Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
0a2933033c6a56be2738887a5da49e893e323f14
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.29 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.6.3.
5 #
6 # Report bugs to <martin.quinson@ens-lyon.fr>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
250
251 case X$ECHO in
252 X*--fallback-echo)
253   # Remove one level of quotation (which was required for Make).
254   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255   ;;
256 esac
257
258 echo=${ECHO-echo}
259 if test "X$1" = X--no-reexec; then
260   # Discard the --no-reexec flag, and continue.
261   shift
262 elif test "X$1" = X--fallback-echo; then
263   # Avoid inline document here, it may be left over
264   :
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266   # Yippee, $echo works!
267   :
268 else
269   # Restart under the correct shell.
270   exec $SHELL "$0" --no-reexec ${1+"$@"}
271 fi
272
273 if test "X$1" = X--fallback-echo; then
274   # used as fallback echo
275   shift
276   cat <<EOF
277 $*
278 EOF
279   exit 0
280 fi
281
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 # if CDPATH is set.
284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285
286 if test -z "$ECHO"; then
287 if test "X${echo_test_string+set}" != Xset; then
288 # find a string as large as possible, as long as the shell can cope with it
289   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
292        echo_test_string="`eval $cmd`" &&
293        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
294     then
295       break
296     fi
297   done
298 fi
299
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302    test "X$echo_testing_string" = "X$echo_test_string"; then
303   :
304 else
305   # The Solaris, AIX, and Digital Unix default echo programs unquote
306   # backslashes.  This makes it impossible to quote backslashes using
307   #   echo "$something" | sed 's/\\/\\\\/g'
308   #
309   # So, first we look for a working echo in the user's PATH.
310
311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312   for dir in $PATH /usr/ucb; do
313     IFS="$lt_save_ifs"
314     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317        test "X$echo_testing_string" = "X$echo_test_string"; then
318       echo="$dir/echo"
319       break
320     fi
321   done
322   IFS="$lt_save_ifs"
323
324   if test "X$echo" = Xecho; then
325     # We didn't find a better echo, so look for alternatives.
326     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328        test "X$echo_testing_string" = "X$echo_test_string"; then
329       # This shell has a builtin print -r that does the trick.
330       echo='print -r'
331     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332          test "X$CONFIG_SHELL" != X/bin/ksh; then
333       # If we have ksh, try running configure again with it.
334       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335       export ORIGINAL_CONFIG_SHELL
336       CONFIG_SHELL=/bin/ksh
337       export CONFIG_SHELL
338       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339     else
340       # Try using printf.
341       echo='printf %s\n'
342       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344          test "X$echo_testing_string" = "X$echo_test_string"; then
345         # Cool, printf works
346         :
347       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348            test "X$echo_testing_string" = 'X\t' &&
349            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350            test "X$echo_testing_string" = "X$echo_test_string"; then
351         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352         export CONFIG_SHELL
353         SHELL="$CONFIG_SHELL"
354         export SHELL
355         echo="$CONFIG_SHELL $0 --fallback-echo"
356       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357            test "X$echo_testing_string" = 'X\t' &&
358            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359            test "X$echo_testing_string" = "X$echo_test_string"; then
360         echo="$CONFIG_SHELL $0 --fallback-echo"
361       else
362         # maybe with a smaller string...
363         prev=:
364
365         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
367           then
368             break
369           fi
370           prev="$cmd"
371         done
372
373         if test "$prev" != 'sed 50q "$0"'; then
374           echo_test_string=`eval $prev`
375           export echo_test_string
376           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377         else
378           # Oops.  We lost completely, so just stick with echo.
379           echo=echo
380         fi
381       fi
382     fi
383   fi
384 fi
385 fi
386
387 # Copy echo and quote the copy suitably for passing to libtool from
388 # the Makefile, instead of quoting the original, which is used later.
389 ECHO=$echo
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
392 fi
393
394
395
396
397 tagnames=${tagnames+${tagnames},}CXX
398
399 tagnames=${tagnames+${tagnames},}F77
400
401 # Name of the host.
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406 exec 6>&1
407
408 #
409 # Initializations.
410 #
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
413 cross_compiling=no
414 subdirs=
415 MFLAGS=
416 MAKEFLAGS=
417 SHELL=${CONFIG_SHELL-/bin/sh}
418
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete.  It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
423
424 # Identity of this package.
425 PACKAGE_NAME='GRAS'
426 PACKAGE_TARNAME='gras'
427 PACKAGE_VERSION='0.6.3'
428 PACKAGE_STRING='GRAS 0.6.3'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
430
431 ac_unique_file="include/gras.h"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 #  include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 #  include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 #  include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LEX LEXLIB LEX_OUTPUT_ROOT HTML_DIR PKG_CONFIG ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE htmldir aci_module_desc_SimGrid aci_pkg_prefix_SimGrid aci_pkg_inc_SimGrid aci_pkg_lib_SimGrid aci_pkg_extra_SimGrid HAVE_SimGrid CFLAGS_SimGrid LIBS_SimGrid HAVE_SG_TRUE HAVE_SG_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT cflags_set BASH WARNING LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
685   -program-transform-name=* | --program-transform-name=* \
686   | --program-transform-nam=* | --program-transform-na=* \
687   | --program-transform-n=* | --program-transform-=* \
688   | --program-transform=* | --program-transfor=* \
689   | --program-transfo=* | --program-transf=* \
690   | --program-trans=* | --program-tran=* \
691   | --progr-tra=* | --program-tr=* | --program-t=*)
692     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
911 ac_env_CC_value=$CC
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955   # Omit some internal or obsolete options to make the list less imposing.
956   # This message is too long to be a string in the A/UX 3.1 sh.
957   cat <<_ACEOF
958 \`configure' configures GRAS 0.6.3 to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968   -h, --help              display this help and exit
969       --help=short        display options specific to this package
970       --help=recursive    display the short help of all the included packages
971   -V, --version           display version information and exit
972   -q, --quiet, --silent   do not print \`checking...' messages
973       --cache-file=FILE   cache test results in FILE [disabled]
974   -C, --config-cache      alias for \`--cache-file=config.cache'
975   -n, --no-create         do not create output files
976       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995   --bindir=DIR           user executables [EPREFIX/bin]
996   --sbindir=DIR          system admin executables [EPREFIX/sbin]
997   --libexecdir=DIR       program executables [EPREFIX/libexec]
998   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002   --libdir=DIR           object code libraries [EPREFIX/lib]
1003   --includedir=DIR       C header files [PREFIX/include]
1004   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005   --infodir=DIR          info documentation [PREFIX/info]
1006   --mandir=DIR           man documentation [PREFIX/man]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 Program names:
1012   --program-prefix=PREFIX            prepend PREFIX to installed program names
1013   --program-suffix=SUFFIX            append SUFFIX to installed program names
1014   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1015
1016 System types:
1017   --build=BUILD     configure for building on BUILD [guessed]
1018   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1019   --target=TARGET   configure for building compilers for TARGET [HOST]
1020 _ACEOF
1021 fi
1022
1023 if test -n "$ac_init_help"; then
1024   case $ac_init_help in
1025      short | recursive ) echo "Configuration of GRAS 0.6.3:";;
1026    esac
1027   cat <<\_ACEOF
1028
1029 Optional Features:
1030   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1031   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1032   --enable-shared[=PKGS]
1033                           build shared libraries [default=yes]
1034   --enable-static[=PKGS]
1035                           build static libraries [default=yes]
1036   --enable-fast-install[=PKGS]
1037                           optimize for fast installation [default=yes]
1038   --disable-dependency-tracking  speeds up one-time build
1039   --enable-dependency-tracking   do not reject slow dependency extractors
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --enable-gtk-doc        use gtk-doc to build documentation default=no
1042   --enable-maintainer-mode  enable make rules and dependencies not useful
1043                           (and sometimes confusing) to the casual installer
1044   --enable-compile-warnings=no/minimum/yes       Turn on compiler warnings.
1045   --enable-iso-c          Try to warn if code is not ISO C
1046
1047 Optional Packages:
1048   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1049   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1050   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1051   --with-pic              try to use only PIC/non-PIC objects [default=use
1052                           both]
1053   --with-tags[=TAGS]
1054                           include additional configurations [automatic]
1055   --with-html-dir=PATH    path to installed docs
1056   --with-SimGrid=DIR      root directory of the SimGrid simulator installation
1057   --with-SimGrid-includes=DIR
1058                           specify exact include dir for the SimGrid simulator
1059                           headers
1060   --with-SimGrid-libraries=DIR
1061                           specify exact library dir for the SimGrid simulator
1062                           library
1063   --with-SimGrid-extra=ARG
1064                           specify extra args to pass to the linker to get the
1065                           the SimGrid simulator library (with no space. A sed
1066                           to change "!" to " " is run)
1067
1068 Some influential environment variables:
1069   CC          C compiler command
1070   CFLAGS      C compiler flags
1071   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1072               nonstandard directory <lib dir>
1073   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074               headers in a nonstandard directory <include dir>
1075   CPP         C preprocessor
1076   CXX         C++ compiler command
1077   CXXFLAGS    C++ compiler flags
1078   CXXCPP      C++ preprocessor
1079   F77         Fortran 77 compiler command
1080   FFLAGS      Fortran 77 compiler flags
1081
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1084
1085 Report bugs to <martin.quinson@ens-lyon.fr>.
1086 _ACEOF
1087 fi
1088
1089 if test "$ac_init_help" = "recursive"; then
1090   # If there are subdirs, report their specific --help.
1091   ac_popdir=`pwd`
1092   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093     test -d $ac_dir || continue
1094     ac_builddir=.
1095
1096 if test "$ac_dir" != .; then
1097   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098   # A "../" for each directory in $ac_dir_suffix.
1099   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100 else
1101   ac_dir_suffix= ac_top_builddir=
1102 fi
1103
1104 case $srcdir in
1105   .)  # No --srcdir option.  We are building in place.
1106     ac_srcdir=.
1107     if test -z "$ac_top_builddir"; then
1108        ac_top_srcdir=.
1109     else
1110        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111     fi ;;
1112   [\\/]* | ?:[\\/]* )  # Absolute path.
1113     ac_srcdir=$srcdir$ac_dir_suffix;
1114     ac_top_srcdir=$srcdir ;;
1115   *) # Relative path.
1116     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 esac
1119
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1122 case `pwd` in
1123 .) ac_abs_builddir="$ac_dir";;
1124 *)
1125   case "$ac_dir" in
1126   .) ac_abs_builddir=`pwd`;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 *)
1134   case ${ac_top_builddir}. in
1135   .) ac_abs_top_builddir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138   esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1142 *)
1143   case $ac_srcdir in
1144   .) ac_abs_srcdir=$ac_abs_builddir;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147   esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 *)
1152   case $ac_top_srcdir in
1153   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156   esac;;
1157 esac
1158
1159     cd $ac_dir
1160     # Check for guested configure; otherwise get Cygnus style configure.
1161     if test -f $ac_srcdir/configure.gnu; then
1162       echo
1163       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1164     elif test -f $ac_srcdir/configure; then
1165       echo
1166       $SHELL $ac_srcdir/configure  --help=recursive
1167     elif test -f $ac_srcdir/configure.ac ||
1168            test -f $ac_srcdir/configure.in; then
1169       echo
1170       $ac_configure --help
1171     else
1172       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173     fi
1174     cd "$ac_popdir"
1175   done
1176 fi
1177
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1180   cat <<\_ACEOF
1181 GRAS configure 0.6.3
1182 generated by GNU Autoconf 2.59
1183
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1187 _ACEOF
1188   exit 0
1189 fi
1190 exec 5>config.log
1191 cat >&5 <<_ACEOF
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1194
1195 It was created by GRAS $as_me 0.6.3, which was
1196 generated by GNU Autoconf 2.59.  Invocation command line was
1197
1198   $ $0 $@
1199
1200 _ACEOF
1201 {
1202 cat <<_ASUNAME
1203 ## --------- ##
1204 ## Platform. ##
1205 ## --------- ##
1206
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1215
1216 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1217 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1220 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1221 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1222 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1223
1224 _ASUNAME
1225
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227 for as_dir in $PATH
1228 do
1229   IFS=$as_save_IFS
1230   test -z "$as_dir" && as_dir=.
1231   echo "PATH: $as_dir"
1232 done
1233
1234 } >&5
1235
1236 cat >&5 <<_ACEOF
1237
1238
1239 ## ----------- ##
1240 ## Core tests. ##
1241 ## ----------- ##
1242
1243 _ACEOF
1244
1245
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_configure_args=
1252 ac_configure_args0=
1253 ac_configure_args1=
1254 ac_sep=
1255 ac_must_keep_next=false
1256 for ac_pass in 1 2
1257 do
1258   for ac_arg
1259   do
1260     case $ac_arg in
1261     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263     | -silent | --silent | --silen | --sile | --sil)
1264       continue ;;
1265     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267     esac
1268     case $ac_pass in
1269     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270     2)
1271       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272       if test $ac_must_keep_next = true; then
1273         ac_must_keep_next=false # Got value, back to normal.
1274       else
1275         case $ac_arg in
1276           *=* | --config-cache | -C | -disable-* | --disable-* \
1277           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279           | -with-* | --with-* | -without-* | --without-* | --x)
1280             case "$ac_configure_args0 " in
1281               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282             esac
1283             ;;
1284           -* ) ac_must_keep_next=true ;;
1285         esac
1286       fi
1287       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288       # Get rid of the leading space.
1289       ac_sep=" "
1290       ;;
1291     esac
1292   done
1293 done
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log.  We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303   # Save into config.log some information that might help in debugging.
1304   {
1305     echo
1306
1307     cat <<\_ASBOX
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1311 _ASBOX
1312     echo
1313     # The following way of writing the cache mishandles newlines in values,
1314 {
1315   (set) 2>&1 |
1316     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317     *ac_space=\ *)
1318       sed -n \
1319         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1321       ;;
1322     *)
1323       sed -n \
1324         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325       ;;
1326     esac;
1327 }
1328     echo
1329
1330     cat <<\_ASBOX
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1334 _ASBOX
1335     echo
1336     for ac_var in $ac_subst_vars
1337     do
1338       eval ac_val=$`echo $ac_var`
1339       echo "$ac_var='"'"'$ac_val'"'"'"
1340     done | sort
1341     echo
1342
1343     if test -n "$ac_subst_files"; then
1344       cat <<\_ASBOX
1345 ## ------------- ##
1346 ## Output files. ##
1347 ## ------------- ##
1348 _ASBOX
1349       echo
1350       for ac_var in $ac_subst_files
1351       do
1352         eval ac_val=$`echo $ac_var`
1353         echo "$ac_var='"'"'$ac_val'"'"'"
1354       done | sort
1355       echo
1356     fi
1357
1358     if test -s confdefs.h; then
1359       cat <<\_ASBOX
1360 ## ----------- ##
1361 ## confdefs.h. ##
1362 ## ----------- ##
1363 _ASBOX
1364       echo
1365       sed "/^$/d" confdefs.h | sort
1366       echo
1367     fi
1368     test "$ac_signal" != 0 &&
1369       echo "$as_me: caught signal $ac_signal"
1370     echo "$as_me: exit $exit_status"
1371   } >&5
1372   rm -f core *.core &&
1373   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374     exit $exit_status
1375      ' 0
1376 for ac_signal in 1 2 13 15; do
1377   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378 done
1379 ac_signal=0
1380
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 echo >confdefs.h
1385
1386 # Predefined preprocessor variables.
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410 _ACEOF
1411
1412
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416   if test "x$prefix" != xNONE; then
1417     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418   else
1419     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420   fi
1421 fi
1422 for ac_site_file in $CONFIG_SITE; do
1423   if test -r "$ac_site_file"; then
1424     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426     sed 's/^/| /' "$ac_site_file" >&5
1427     . "$ac_site_file"
1428   fi
1429 done
1430
1431 if test -r "$cache_file"; then
1432   # Some versions of bash will fail to source /dev/null (special
1433   # files actually), so we avoid doing that.
1434   if test -f "$cache_file"; then
1435     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1437     case $cache_file in
1438       [\\/]* | ?:[\\/]* ) . $cache_file;;
1439       *)                      . ./$cache_file;;
1440     esac
1441   fi
1442 else
1443   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1445   >$cache_file
1446 fi
1447
1448 # Check that the precious variables saved in the cache have kept the same
1449 # value.
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454   eval ac_new_set=\$ac_env_${ac_var}_set
1455   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456   eval ac_new_val="\$ac_env_${ac_var}_value"
1457   case $ac_old_set,$ac_new_set in
1458     set,)
1459       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461       ac_cache_corrupted=: ;;
1462     ,set)
1463       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465       ac_cache_corrupted=: ;;
1466     ,);;
1467     *)
1468       if test "x$ac_old_val" != "x$ac_new_val"; then
1469         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1472 echo "$as_me:   former value:  $ac_old_val" >&2;}
1473         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1474 echo "$as_me:   current value: $ac_new_val" >&2;}
1475         ac_cache_corrupted=:
1476       fi;;
1477   esac
1478   # Pass precious variables to config.status.
1479   if test "$ac_new_set" = set; then
1480     case $ac_new_val in
1481     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483     *) ac_arg=$ac_var=$ac_new_val ;;
1484     esac
1485     case " $ac_configure_args " in
1486       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1487       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488     esac
1489   fi
1490 done
1491 if $ac_cache_corrupted; then
1492   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496    { (exit 1); exit 1; }; }
1497 fi
1498
1499 ac_ext=c
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532           ac_config_headers="$ac_config_headers src/gras_config.h"
1533
1534
1535
1536 ac_aux_dir=
1537 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1538   if test -f $ac_dir/install-sh; then
1539     ac_aux_dir=$ac_dir
1540     ac_install_sh="$ac_aux_dir/install-sh -c"
1541     break
1542   elif test -f $ac_dir/install.sh; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/install.sh -c"
1545     break
1546   elif test -f $ac_dir/shtool; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/shtool install -c"
1549     break
1550   fi
1551 done
1552 if test -z "$ac_aux_dir"; then
1553   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1554 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1555    { (exit 1); exit 1; }; }
1556 fi
1557 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560
1561 # Make sure we can run config.sub.
1562 $ac_config_sub sun4 >/dev/null 2>&1 ||
1563   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1564 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1565    { (exit 1); exit 1; }; }
1566
1567 echo "$as_me:$LINENO: checking build system type" >&5
1568 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1569 if test "${ac_cv_build+set}" = set; then
1570   echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572   ac_cv_build_alias=$build_alias
1573 test -z "$ac_cv_build_alias" &&
1574   ac_cv_build_alias=`$ac_config_guess`
1575 test -z "$ac_cv_build_alias" &&
1576   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1577 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1578    { (exit 1); exit 1; }; }
1579 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1580   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1581 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1582    { (exit 1); exit 1; }; }
1583
1584 fi
1585 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1586 echo "${ECHO_T}$ac_cv_build" >&6
1587 build=$ac_cv_build
1588 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591
1592
1593 echo "$as_me:$LINENO: checking host system type" >&5
1594 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1595 if test "${ac_cv_host+set}" = set; then
1596   echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598   ac_cv_host_alias=$host_alias
1599 test -z "$ac_cv_host_alias" &&
1600   ac_cv_host_alias=$ac_cv_build_alias
1601 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1602   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1603 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1604    { (exit 1); exit 1; }; }
1605
1606 fi
1607 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1608 echo "${ECHO_T}$ac_cv_host" >&6
1609 host=$ac_cv_host
1610 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1611 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1612 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1613
1614
1615 echo "$as_me:$LINENO: checking target system type" >&5
1616 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1617 if test "${ac_cv_target+set}" = set; then
1618   echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620   ac_cv_target_alias=$target_alias
1621 test "x$ac_cv_target_alias" = "x" &&
1622   ac_cv_target_alias=$ac_cv_host_alias
1623 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1624   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1625 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1626    { (exit 1); exit 1; }; }
1627
1628 fi
1629 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1630 echo "${ECHO_T}$ac_cv_target" >&6
1631 target=$ac_cv_target
1632 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1635
1636
1637 # The aliases save the names the user supplied, while $host etc.
1638 # will get canonicalized.
1639 test -n "$target_alias" &&
1640   test "$program_prefix$program_suffix$program_transform_name" = \
1641     NONENONEs,x,x, &&
1642   program_prefix=${target_alias}-
1643 ac_ext=c
1644 ac_cpp='$CPP $CPPFLAGS'
1645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1648
1649
1650 am__api_version="1.8"
1651 # Find a good install program.  We prefer a C program (faster),
1652 # so one script is as good as another.  But avoid the broken or
1653 # incompatible versions:
1654 # SysV /etc/install, /usr/sbin/install
1655 # SunOS /usr/etc/install
1656 # IRIX /sbin/install
1657 # AIX /bin/install
1658 # AmigaOS /C/install, which installs bootblocks on floppy discs
1659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1662 # OS/2's system install, which has a completely different semantic
1663 # ./install, which can be erroneously created by make from ./install.sh.
1664 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1666 if test -z "$INSTALL"; then
1667 if test "${ac_cv_path_install+set}" = set; then
1668   echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1672 do
1673   IFS=$as_save_IFS
1674   test -z "$as_dir" && as_dir=.
1675   # Account for people who put trailing slashes in PATH elements.
1676 case $as_dir/ in
1677   ./ | .// | /cC/* | \
1678   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1679   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1680   /usr/ucb/* ) ;;
1681   *)
1682     # OSF1 and SCO ODT 3.0 have their own names for install.
1683     # Don't use installbsd from OSF since it installs stuff as root
1684     # by default.
1685     for ac_prog in ginstall scoinst install; do
1686       for ac_exec_ext in '' $ac_executable_extensions; do
1687         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1688           if test $ac_prog = install &&
1689             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690             # AIX install.  It has an incompatible calling convention.
1691             :
1692           elif test $ac_prog = install &&
1693             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1694             # program-specific install script used by HP pwplus--don't use.
1695             :
1696           else
1697             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1698             break 3
1699           fi
1700         fi
1701       done
1702     done
1703     ;;
1704 esac
1705 done
1706
1707
1708 fi
1709   if test "${ac_cv_path_install+set}" = set; then
1710     INSTALL=$ac_cv_path_install
1711   else
1712     # As a last resort, use the slow shell script.  We don't cache a
1713     # path for INSTALL within a source directory, because that will
1714     # break other packages using the cache if that directory is
1715     # removed, or if the path is relative.
1716     INSTALL=$ac_install_sh
1717   fi
1718 fi
1719 echo "$as_me:$LINENO: result: $INSTALL" >&5
1720 echo "${ECHO_T}$INSTALL" >&6
1721
1722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1723 # It thinks the first close brace ends the variable substitution.
1724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1725
1726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1727
1728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1729
1730 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1731 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1732 # Just in case
1733 sleep 1
1734 echo timestamp > conftest.file
1735 # Do `set' in a subshell so we don't clobber the current shell's
1736 # arguments.  Must try -L first in case configure is actually a
1737 # symlink; some systems play weird games with the mod time of symlinks
1738 # (eg FreeBSD returns the mod time of the symlink's containing
1739 # directory).
1740 if (
1741    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1742    if test "$*" = "X"; then
1743       # -L didn't work.
1744       set X `ls -t $srcdir/configure conftest.file`
1745    fi
1746    rm -f conftest.file
1747    if test "$*" != "X $srcdir/configure conftest.file" \
1748       && test "$*" != "X conftest.file $srcdir/configure"; then
1749
1750       # If neither matched, then we have a broken ls.  This can happen
1751       # if, for instance, CONFIG_SHELL is bash and it inherits a
1752       # broken ls alias from the environment.  This has actually
1753       # happened.  Such a system could not be considered "sane".
1754       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1755 alias in your environment" >&5
1756 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1757 alias in your environment" >&2;}
1758    { (exit 1); exit 1; }; }
1759    fi
1760
1761    test "$2" = conftest.file
1762    )
1763 then
1764    # Ok.
1765    :
1766 else
1767    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1768 Check your system clock" >&5
1769 echo "$as_me: error: newly created file is older than distributed files!
1770 Check your system clock" >&2;}
1771    { (exit 1); exit 1; }; }
1772 fi
1773 echo "$as_me:$LINENO: result: yes" >&5
1774 echo "${ECHO_T}yes" >&6
1775 test "$program_prefix" != NONE &&
1776   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1777 # Use a double $ so make ignores it.
1778 test "$program_suffix" != NONE &&
1779   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1780 # Double any \ or $.  echo might interpret backslashes.
1781 # By default was `s,x,x', remove it if useless.
1782 cat <<\_ACEOF >conftest.sed
1783 s/[\\$]/&&/g;s/;s,x,x,$//
1784 _ACEOF
1785 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1786 rm conftest.sed
1787
1788 # expand $ac_aux_dir to an absolute path
1789 am_aux_dir=`cd $ac_aux_dir && pwd`
1790
1791 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1792 # Use eval to expand $SHELL
1793 if eval "$MISSING --run true"; then
1794   am_missing_run="$MISSING --run "
1795 else
1796   am_missing_run=
1797   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1798 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1799 fi
1800
1801 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1802   # Keeping the `.' argument allows $(mkdir_p) to be used without
1803   # argument.  Indeed, we sometimes output rules like
1804   #   $(mkdir_p) $(somedir)
1805   # where $(somedir) is conditionally defined.
1806   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1807   # expensive solution, as it forces Make to start a sub-shell.)
1808   mkdir_p='mkdir -p -- .'
1809 else
1810   # On NextStep and OpenStep, the `mkdir' command does not
1811   # recognize any option.  It will interpret all options as
1812   # directories to create, and then abort because `.' already
1813   # exists.
1814   for d in ./-p ./--version;
1815   do
1816     test -d $d && rmdir $d
1817   done
1818   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1819   if test -f "$ac_aux_dir/mkinstalldirs"; then
1820     mkdir_p='$(mkinstalldirs)'
1821   else
1822     mkdir_p='$(install_sh) -d'
1823   fi
1824 fi
1825
1826 for ac_prog in gawk mawk nawk awk
1827 do
1828   # Extract the first word of "$ac_prog", so it can be a program name with args.
1829 set dummy $ac_prog; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_AWK+set}" = set; then
1833   echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835   if test -n "$AWK"; then
1836   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1840 do
1841   IFS=$as_save_IFS
1842   test -z "$as_dir" && as_dir=.
1843   for ac_exec_ext in '' $ac_executable_extensions; do
1844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845     ac_cv_prog_AWK="$ac_prog"
1846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847     break 2
1848   fi
1849 done
1850 done
1851
1852 fi
1853 fi
1854 AWK=$ac_cv_prog_AWK
1855 if test -n "$AWK"; then
1856   echo "$as_me:$LINENO: result: $AWK" >&5
1857 echo "${ECHO_T}$AWK" >&6
1858 else
1859   echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1861 fi
1862
1863   test -n "$AWK" && break
1864 done
1865
1866 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1867 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1868 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1869 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1870   echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872   cat >conftest.make <<\_ACEOF
1873 all:
1874         @echo 'ac_maketemp="$(MAKE)"'
1875 _ACEOF
1876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1877 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1878 if test -n "$ac_maketemp"; then
1879   eval ac_cv_prog_make_${ac_make}_set=yes
1880 else
1881   eval ac_cv_prog_make_${ac_make}_set=no
1882 fi
1883 rm -f conftest.make
1884 fi
1885 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1886   echo "$as_me:$LINENO: result: yes" >&5
1887 echo "${ECHO_T}yes" >&6
1888   SET_MAKE=
1889 else
1890   echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1892   SET_MAKE="MAKE=${MAKE-make}"
1893 fi
1894
1895 rm -rf .tst 2>/dev/null
1896 mkdir .tst 2>/dev/null
1897 if test -d .tst; then
1898   am__leading_dot=.
1899 else
1900   am__leading_dot=_
1901 fi
1902 rmdir .tst 2>/dev/null
1903
1904 # test to see if srcdir already configured
1905 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1906    test -f $srcdir/config.status; then
1907   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1908 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1909    { (exit 1); exit 1; }; }
1910 fi
1911
1912 # test whether we have cygpath
1913 if test -z "$CYGPATH_W"; then
1914   if (cygpath --version) >/dev/null 2>/dev/null; then
1915     CYGPATH_W='cygpath -w'
1916   else
1917     CYGPATH_W=echo
1918   fi
1919 fi
1920
1921
1922 # Define the identity of the package.
1923  PACKAGE='gras'
1924  VERSION='0.6.3'
1925
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE "$PACKAGE"
1929 _ACEOF
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define VERSION "$VERSION"
1934 _ACEOF
1935
1936 # Some tools Automake needs.
1937
1938 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1939
1940
1941 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1942
1943
1944 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1945
1946
1947 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1948
1949
1950 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1951
1952
1953 AMTAR=${AMTAR-"${am_missing_run}tar"}
1954
1955 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1956
1957 # Installed binaries are usually stripped using `strip' when the user
1958 # run `make install-strip'.  However `strip' might not be the right
1959 # tool to use in cross-compilation environments, therefore Automake
1960 # will honor the `STRIP' environment variable to overrule this program.
1961 if test "$cross_compiling" != no; then
1962   if test -n "$ac_tool_prefix"; then
1963   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1964 set dummy ${ac_tool_prefix}strip; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_STRIP+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   if test -n "$STRIP"; then
1971   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976   IFS=$as_save_IFS
1977   test -z "$as_dir" && as_dir=.
1978   for ac_exec_ext in '' $ac_executable_extensions; do
1979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982     break 2
1983   fi
1984 done
1985 done
1986
1987 fi
1988 fi
1989 STRIP=$ac_cv_prog_STRIP
1990 if test -n "$STRIP"; then
1991   echo "$as_me:$LINENO: result: $STRIP" >&5
1992 echo "${ECHO_T}$STRIP" >&6
1993 else
1994   echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1996 fi
1997
1998 fi
1999 if test -z "$ac_cv_prog_STRIP"; then
2000   ac_ct_STRIP=$STRIP
2001   # Extract the first word of "strip", so it can be a program name with args.
2002 set dummy strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$ac_ct_STRIP"; then
2009   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018     ac_cv_prog_ac_ct_STRIP="strip"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2026 fi
2027 fi
2028 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2029 if test -n "$ac_ct_STRIP"; then
2030   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2031 echo "${ECHO_T}$ac_ct_STRIP" >&6
2032 else
2033   echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 fi
2036
2037   STRIP=$ac_ct_STRIP
2038 else
2039   STRIP="$ac_cv_prog_STRIP"
2040 fi
2041
2042 fi
2043 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2044
2045 # We need awk for the "check" target.  The system "awk" is bad on
2046 # some platforms.
2047
2048
2049
2050 # MACRO_DIR should tell aclocal to search for my macro. That's the autoconf
2051 # maintainer plan, but automake does not implement this yet (as in 1.8)
2052 case acmacro in
2053   [\\/]* | ?:[\\/]* ) ac_macro_dir=acmacro         ;;
2054   *)                      ac_macro_dir=$srcdir/acmacro ;;
2055 esac
2056 if test -d "$ac_macro_dir"; then :
2057 else
2058   { { echo "$as_me:$LINENO: error: cannot find macro directory \`acmacro'" >&5
2059 echo "$as_me: error: cannot find macro directory \`acmacro'" >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2062
2063 # It seems to be called ACLOCAL_INCLUDE...
2064 # A M_ACLOCAL_INCLUDE(acmacro)
2065
2066
2067
2068
2069 # Check whether --enable-shared or --disable-shared was given.
2070 if test "${enable_shared+set}" = set; then
2071   enableval="$enable_shared"
2072   p=${PACKAGE-default}
2073     case $enableval in
2074     yes) enable_shared=yes ;;
2075     no) enable_shared=no ;;
2076     *)
2077       enable_shared=no
2078       # Look at the argument we got.  We use all the common list separators.
2079       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2080       for pkg in $enableval; do
2081         IFS="$lt_save_ifs"
2082         if test "X$pkg" = "X$p"; then
2083           enable_shared=yes
2084         fi
2085       done
2086       IFS="$lt_save_ifs"
2087       ;;
2088     esac
2089 else
2090   enable_shared=yes
2091 fi;
2092
2093 # Check whether --enable-static or --disable-static was given.
2094 if test "${enable_static+set}" = set; then
2095   enableval="$enable_static"
2096   p=${PACKAGE-default}
2097     case $enableval in
2098     yes) enable_static=yes ;;
2099     no) enable_static=no ;;
2100     *)
2101      enable_static=no
2102       # Look at the argument we got.  We use all the common list separators.
2103       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2104       for pkg in $enableval; do
2105         IFS="$lt_save_ifs"
2106         if test "X$pkg" = "X$p"; then
2107           enable_static=yes
2108         fi
2109       done
2110       IFS="$lt_save_ifs"
2111       ;;
2112     esac
2113 else
2114   enable_static=yes
2115 fi;
2116
2117 # Check whether --enable-fast-install or --disable-fast-install was given.
2118 if test "${enable_fast_install+set}" = set; then
2119   enableval="$enable_fast_install"
2120   p=${PACKAGE-default}
2121     case $enableval in
2122     yes) enable_fast_install=yes ;;
2123     no) enable_fast_install=no ;;
2124     *)
2125       enable_fast_install=no
2126       # Look at the argument we got.  We use all the common list separators.
2127       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2128       for pkg in $enableval; do
2129         IFS="$lt_save_ifs"
2130         if test "X$pkg" = "X$p"; then
2131           enable_fast_install=yes
2132         fi
2133       done
2134       IFS="$lt_save_ifs"
2135       ;;
2136     esac
2137 else
2138   enable_fast_install=yes
2139 fi;
2140
2141 DEPDIR="${am__leading_dot}deps"
2142
2143           ac_config_commands="$ac_config_commands depfiles"
2144
2145
2146 am_make=${MAKE-make}
2147 cat > confinc << 'END'
2148 am__doit:
2149         @echo done
2150 .PHONY: am__doit
2151 END
2152 # If we don't find an include directive, just comment out the code.
2153 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2154 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2155 am__include="#"
2156 am__quote=
2157 _am_result=none
2158 # First try GNU make style include.
2159 echo "include confinc" > confmf
2160 # We grep out `Entering directory' and `Leaving directory'
2161 # messages which can occur if `w' ends up in MAKEFLAGS.
2162 # In particular we don't look at `^make:' because GNU make might
2163 # be invoked under some other name (usually "gmake"), in which
2164 # case it prints its new name instead of `make'.
2165 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2166    am__include=include
2167    am__quote=
2168    _am_result=GNU
2169 fi
2170 # Now try BSD make style include.
2171 if test "$am__include" = "#"; then
2172    echo '.include "confinc"' > confmf
2173    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2174       am__include=.include
2175       am__quote="\""
2176       _am_result=BSD
2177    fi
2178 fi
2179
2180
2181 echo "$as_me:$LINENO: result: $_am_result" >&5
2182 echo "${ECHO_T}$_am_result" >&6
2183 rm -f confinc confmf
2184
2185 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2186 if test "${enable_dependency_tracking+set}" = set; then
2187   enableval="$enable_dependency_tracking"
2188
2189 fi;
2190 if test "x$enable_dependency_tracking" != xno; then
2191   am_depcomp="$ac_aux_dir/depcomp"
2192   AMDEPBACKSLASH='\'
2193 fi
2194
2195
2196 if test "x$enable_dependency_tracking" != xno; then
2197   AMDEP_TRUE=
2198   AMDEP_FALSE='#'
2199 else
2200   AMDEP_TRUE='#'
2201   AMDEP_FALSE=
2202 fi
2203
2204
2205
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211 if test -n "$ac_tool_prefix"; then
2212   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_CC+set}" = set; then
2217   echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219   if test -n "$CC"; then
2220   ac_cv_prog_CC="$CC" # Let the user override the test.
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2224 do
2225   IFS=$as_save_IFS
2226   test -z "$as_dir" && as_dir=.
2227   for ac_exec_ext in '' $ac_executable_extensions; do
2228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231     break 2
2232   fi
2233 done
2234 done
2235
2236 fi
2237 fi
2238 CC=$ac_cv_prog_CC
2239 if test -n "$CC"; then
2240   echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6
2242 else
2243   echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2245 fi
2246
2247 fi
2248 if test -z "$ac_cv_prog_CC"; then
2249   ac_ct_CC=$CC
2250   # Extract the first word of "gcc", so it can be a program name with args.
2251 set dummy gcc; ac_word=$2
2252 echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2255   echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257   if test -n "$ac_ct_CC"; then
2258   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2262 do
2263   IFS=$as_save_IFS
2264   test -z "$as_dir" && as_dir=.
2265   for ac_exec_ext in '' $ac_executable_extensions; do
2266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2267     ac_cv_prog_ac_ct_CC="gcc"
2268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269     break 2
2270   fi
2271 done
2272 done
2273
2274 fi
2275 fi
2276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2277 if test -n "$ac_ct_CC"; then
2278   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2279 echo "${ECHO_T}$ac_ct_CC" >&6
2280 else
2281   echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6
2283 fi
2284
2285   CC=$ac_ct_CC
2286 else
2287   CC="$ac_cv_prog_CC"
2288 fi
2289
2290 if test -z "$CC"; then
2291   if test -n "$ac_tool_prefix"; then
2292   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}cc; ac_word=$2
2294 echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2296 if test "${ac_cv_prog_CC+set}" = set; then
2297   echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299   if test -n "$CC"; then
2300   ac_cv_prog_CC="$CC" # Let the user override the test.
2301 else
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305   IFS=$as_save_IFS
2306   test -z "$as_dir" && as_dir=.
2307   for ac_exec_ext in '' $ac_executable_extensions; do
2308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309     ac_cv_prog_CC="${ac_tool_prefix}cc"
2310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311     break 2
2312   fi
2313 done
2314 done
2315
2316 fi
2317 fi
2318 CC=$ac_cv_prog_CC
2319 if test -n "$CC"; then
2320   echo "$as_me:$LINENO: result: $CC" >&5
2321 echo "${ECHO_T}$CC" >&6
2322 else
2323   echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2325 fi
2326
2327 fi
2328 if test -z "$ac_cv_prog_CC"; then
2329   ac_ct_CC=$CC
2330   # Extract the first word of "cc", so it can be a program name with args.
2331 set dummy cc; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2335   echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337   if test -n "$ac_ct_CC"; then
2338   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2342 do
2343   IFS=$as_save_IFS
2344   test -z "$as_dir" && as_dir=.
2345   for ac_exec_ext in '' $ac_executable_extensions; do
2346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347     ac_cv_prog_ac_ct_CC="cc"
2348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349     break 2
2350   fi
2351 done
2352 done
2353
2354 fi
2355 fi
2356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357 if test -n "$ac_ct_CC"; then
2358   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359 echo "${ECHO_T}$ac_ct_CC" >&6
2360 else
2361   echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2363 fi
2364
2365   CC=$ac_ct_CC
2366 else
2367   CC="$ac_cv_prog_CC"
2368 fi
2369
2370 fi
2371 if test -z "$CC"; then
2372   # Extract the first word of "cc", so it can be a program name with args.
2373 set dummy cc; ac_word=$2
2374 echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377   echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379   if test -n "$CC"; then
2380   ac_cv_prog_CC="$CC" # Let the user override the test.
2381 else
2382   ac_prog_rejected=no
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386   IFS=$as_save_IFS
2387   test -z "$as_dir" && as_dir=.
2388   for ac_exec_ext in '' $ac_executable_extensions; do
2389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2391        ac_prog_rejected=yes
2392        continue
2393      fi
2394     ac_cv_prog_CC="cc"
2395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396     break 2
2397   fi
2398 done
2399 done
2400
2401 if test $ac_prog_rejected = yes; then
2402   # We found a bogon in the path, so make sure we never use it.
2403   set dummy $ac_cv_prog_CC
2404   shift
2405   if test $# != 0; then
2406     # We chose a different compiler from the bogus one.
2407     # However, it has the same basename, so the bogon will be chosen
2408     # first if we set CC to just the basename; use the full file name.
2409     shift
2410     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2411   fi
2412 fi
2413 fi
2414 fi
2415 CC=$ac_cv_prog_CC
2416 if test -n "$CC"; then
2417   echo "$as_me:$LINENO: result: $CC" >&5
2418 echo "${ECHO_T}$CC" >&6
2419 else
2420   echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6
2422 fi
2423
2424 fi
2425 if test -z "$CC"; then
2426   if test -n "$ac_tool_prefix"; then
2427   for ac_prog in cl
2428   do
2429     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2431 echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2433 if test "${ac_cv_prog_CC+set}" = set; then
2434   echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436   if test -n "$CC"; then
2437   ac_cv_prog_CC="$CC" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442   IFS=$as_save_IFS
2443   test -z "$as_dir" && as_dir=.
2444   for ac_exec_ext in '' $ac_executable_extensions; do
2445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448     break 2
2449   fi
2450 done
2451 done
2452
2453 fi
2454 fi
2455 CC=$ac_cv_prog_CC
2456 if test -n "$CC"; then
2457   echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6
2459 else
2460   echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6
2462 fi
2463
2464     test -n "$CC" && break
2465   done
2466 fi
2467 if test -z "$CC"; then
2468   ac_ct_CC=$CC
2469   for ac_prog in cl
2470 do
2471   # Extract the first word of "$ac_prog", so it can be a program name with args.
2472 set dummy $ac_prog; ac_word=$2
2473 echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2476   echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478   if test -n "$ac_ct_CC"; then
2479   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484   IFS=$as_save_IFS
2485   test -z "$as_dir" && as_dir=.
2486   for ac_exec_ext in '' $ac_executable_extensions; do
2487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488     ac_cv_prog_ac_ct_CC="$ac_prog"
2489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490     break 2
2491   fi
2492 done
2493 done
2494
2495 fi
2496 fi
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6
2501 else
2502   echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2504 fi
2505
2506   test -n "$ac_ct_CC" && break
2507 done
2508
2509   CC=$ac_ct_CC
2510 fi
2511
2512 fi
2513
2514
2515 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: no acceptable C compiler found in \$PATH
2518 See \`config.log' for more details." >&2;}
2519    { (exit 1); exit 1; }; }
2520
2521 # Provide some information about the compiler.
2522 echo "$as_me:$LINENO:" \
2523      "checking for C compiler version" >&5
2524 ac_compiler=`set X $ac_compile; echo $2`
2525 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2526   (eval $ac_compiler --version </dev/null >&5) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }
2530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2531   (eval $ac_compiler -v </dev/null >&5) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }
2535 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2536   (eval $ac_compiler -V </dev/null >&5) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }
2540
2541 cat >conftest.$ac_ext <<_ACEOF
2542 /* confdefs.h.  */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h.  */
2547
2548 int
2549 main ()
2550 {
2551
2552   ;
2553   return 0;
2554 }
2555 _ACEOF
2556 ac_clean_files_save=$ac_clean_files
2557 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2558 # Try to create an executable without -o first, disregard a.out.
2559 # It will help us diagnose broken compilers, and finding out an intuition
2560 # of exeext.
2561 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2562 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2563 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2564 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2565   (eval $ac_link_default) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; then
2569   # Find the output, starting from the most likely.  This scheme is
2570 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2571 # resort.
2572
2573 # Be careful to initialize this variable, since it used to be cached.
2574 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2575 ac_cv_exeext=
2576 # b.out is created by i960 compilers.
2577 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2578 do
2579   test -f "$ac_file" || continue
2580   case $ac_file in
2581     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2582         ;;
2583     conftest.$ac_ext )
2584         # This is the source file.
2585         ;;
2586     [ab].out )
2587         # We found the default executable, but exeext='' is most
2588         # certainly right.
2589         break;;
2590     *.* )
2591         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2592         # FIXME: I believe we export ac_cv_exeext for Libtool,
2593         # but it would be cool to find out if it's true.  Does anybody
2594         # maintain Libtool? --akim.
2595         export ac_cv_exeext
2596         break;;
2597     * )
2598         break;;
2599   esac
2600 done
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: C compiler cannot create executables
2608 See \`config.log' for more details." >&2;}
2609    { (exit 77); exit 77; }; }
2610 fi
2611
2612 ac_exeext=$ac_cv_exeext
2613 echo "$as_me:$LINENO: result: $ac_file" >&5
2614 echo "${ECHO_T}$ac_file" >&6
2615
2616 # Check the compiler produces executables we can run.  If not, either
2617 # the compiler is broken, or we cross compile.
2618 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2619 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2620 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2621 # If not cross compiling, check that we can run a simple program.
2622 if test "$cross_compiling" != yes; then
2623   if { ac_try='./$ac_file'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629     cross_compiling=no
2630   else
2631     if test "$cross_compiling" = maybe; then
2632         cross_compiling=yes
2633     else
2634         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2635 If you meant to cross compile, use \`--host'.
2636 See \`config.log' for more details." >&5
2637 echo "$as_me: error: cannot run C compiled programs.
2638 If you meant to cross compile, use \`--host'.
2639 See \`config.log' for more details." >&2;}
2640    { (exit 1); exit 1; }; }
2641     fi
2642   fi
2643 fi
2644 echo "$as_me:$LINENO: result: yes" >&5
2645 echo "${ECHO_T}yes" >&6
2646
2647 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2648 ac_clean_files=$ac_clean_files_save
2649 # Check the compiler produces executables we can run.  If not, either
2650 # the compiler is broken, or we cross compile.
2651 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2652 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2653 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2654 echo "${ECHO_T}$cross_compiling" >&6
2655
2656 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2657 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2659   (eval $ac_link) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; then
2663   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2664 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2665 # work properly (i.e., refer to `conftest.exe'), while it won't with
2666 # `rm'.
2667 for ac_file in conftest.exe conftest conftest.*; do
2668   test -f "$ac_file" || continue
2669   case $ac_file in
2670     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2671     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2672           export ac_cv_exeext
2673           break;;
2674     * ) break;;
2675   esac
2676 done
2677 else
2678   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2679 See \`config.log' for more details." >&5
2680 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2681 See \`config.log' for more details." >&2;}
2682    { (exit 1); exit 1; }; }
2683 fi
2684
2685 rm -f conftest$ac_cv_exeext
2686 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2687 echo "${ECHO_T}$ac_cv_exeext" >&6
2688
2689 rm -f conftest.$ac_ext
2690 EXEEXT=$ac_cv_exeext
2691 ac_exeext=$EXEEXT
2692 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2693 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2694 if test "${ac_cv_objext+set}" = set; then
2695   echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697   cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h.  */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h.  */
2703
2704 int
2705 main ()
2706 {
2707
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.o conftest.obj
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714   (eval $ac_compile) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; then
2718   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2719   case $ac_file in
2720     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2721     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2722        break;;
2723   esac
2724 done
2725 else
2726   echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2730 See \`config.log' for more details." >&5
2731 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2732 See \`config.log' for more details." >&2;}
2733    { (exit 1); exit 1; }; }
2734 fi
2735
2736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2737 fi
2738 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2739 echo "${ECHO_T}$ac_cv_objext" >&6
2740 OBJEXT=$ac_cv_objext
2741 ac_objext=$OBJEXT
2742 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2743 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2744 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h.  */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h.  */
2753
2754 int
2755 main ()
2756 {
2757 #ifndef __GNUC__
2758        choke me
2759 #endif
2760
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767   (eval $ac_compile) 2>conftest.er1
2768   ac_status=$?
2769   grep -v '^ *+' conftest.er1 >conftest.err
2770   rm -f conftest.er1
2771   cat conftest.err >&5
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); } &&
2774          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776   (eval $ac_try) 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); }; } &&
2780          { ac_try='test -s conftest.$ac_objext'
2781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782   (eval $ac_try) 2>&5
2783   ac_status=$?
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); }; }; then
2786   ac_compiler_gnu=yes
2787 else
2788   echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2790
2791 ac_compiler_gnu=no
2792 fi
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2795
2796 fi
2797 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2798 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2799 GCC=`test $ac_compiler_gnu = yes && echo yes`
2800 ac_test_CFLAGS=${CFLAGS+set}
2801 ac_save_CFLAGS=$CFLAGS
2802 CFLAGS="-g"
2803 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2804 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2805 if test "${ac_cv_prog_cc_g+set}" = set; then
2806   echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808   cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h.  */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h.  */
2814
2815 int
2816 main ()
2817 {
2818
2819   ;
2820   return 0;
2821 }
2822 _ACEOF
2823 rm -f conftest.$ac_objext
2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825   (eval $ac_compile) 2>conftest.er1
2826   ac_status=$?
2827   grep -v '^ *+' conftest.er1 >conftest.err
2828   rm -f conftest.er1
2829   cat conftest.err >&5
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); } &&
2832          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834   (eval $ac_try) 2>&5
2835   ac_status=$?
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); }; } &&
2838          { ac_try='test -s conftest.$ac_objext'
2839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840   (eval $ac_try) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); }; }; then
2844   ac_cv_prog_cc_g=yes
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849 ac_cv_prog_cc_g=no
2850 fi
2851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2852 fi
2853 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2854 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2855 if test "$ac_test_CFLAGS" = set; then
2856   CFLAGS=$ac_save_CFLAGS
2857 elif test $ac_cv_prog_cc_g = yes; then
2858   if test "$GCC" = yes; then
2859     CFLAGS="-g -O2"
2860   else
2861     CFLAGS="-g"
2862   fi
2863 else
2864   if test "$GCC" = yes; then
2865     CFLAGS="-O2"
2866   else
2867     CFLAGS=
2868   fi
2869 fi
2870 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2871 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2872 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2873   echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875   ac_cv_prog_cc_stdc=no
2876 ac_save_CC=$CC
2877 cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h.  */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h.  */
2883 #include <stdarg.h>
2884 #include <stdio.h>
2885 #include <sys/types.h>
2886 #include <sys/stat.h>
2887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2888 struct buf { int x; };
2889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2890 static char *e (p, i)
2891      char **p;
2892      int i;
2893 {
2894   return p[i];
2895 }
2896 static char *f (char * (*g) (char **, int), char **p, ...)
2897 {
2898   char *s;
2899   va_list v;
2900   va_start (v,p);
2901   s = g (p, va_arg (v,int));
2902   va_end (v);
2903   return s;
2904 }
2905
2906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2907    function prototypes and stuff, but not '\xHH' hex character constants.
2908    These don't provoke an error unfortunately, instead are silently treated
2909    as 'x'.  The following induces an error, until -std1 is added to get
2910    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2911    array size at least.  It's necessary to write '\x00'==0 to get something
2912    that's true only with -std1.  */
2913 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2914
2915 int test (int i, double x);
2916 struct s1 {int (*f) (int a);};
2917 struct s2 {int (*f) (double a);};
2918 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2919 int argc;
2920 char **argv;
2921 int
2922 main ()
2923 {
2924 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2925   ;
2926   return 0;
2927 }
2928 _ACEOF
2929 # Don't try gcc -ansi; that turns off useful extensions and
2930 # breaks some systems' header files.
2931 # AIX                   -qlanglvl=ansi
2932 # Ultrix and OSF/1      -std1
2933 # HP-UX 10.20 and later -Ae
2934 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2935 # SVR4                  -Xc -D__EXTENSIONS__
2936 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2937 do
2938   CC="$ac_save_CC $ac_arg"
2939   rm -f conftest.$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941   (eval $ac_compile) 2>conftest.er1
2942   ac_status=$?
2943   grep -v '^ *+' conftest.er1 >conftest.err
2944   rm -f conftest.er1
2945   cat conftest.err >&5
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); } &&
2948          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950   (eval $ac_try) 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); }; } &&
2954          { ac_try='test -s conftest.$ac_objext'
2955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956   (eval $ac_try) 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }; }; then
2960   ac_cv_prog_cc_stdc=$ac_arg
2961 break
2962 else
2963   echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 fi
2967 rm -f conftest.err conftest.$ac_objext
2968 done
2969 rm -f conftest.$ac_ext conftest.$ac_objext
2970 CC=$ac_save_CC
2971
2972 fi
2973
2974 case "x$ac_cv_prog_cc_stdc" in
2975   x|xno)
2976     echo "$as_me:$LINENO: result: none needed" >&5
2977 echo "${ECHO_T}none needed" >&6 ;;
2978   *)
2979     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2980 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2981     CC="$CC $ac_cv_prog_cc_stdc" ;;
2982 esac
2983
2984 # Some people use a C++ compiler to compile C.  Since we use `exit',
2985 # in C++ we need to declare it.  In case someone uses the same compiler
2986 # for both compiling C and C++ we need to have the C++ compiler decide
2987 # the declaration of exit, since it's the most demanding environment.
2988 cat >conftest.$ac_ext <<_ACEOF
2989 #ifndef __cplusplus
2990   choke me
2991 #endif
2992 _ACEOF
2993 rm -f conftest.$ac_objext
2994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2995   (eval $ac_compile) 2>conftest.er1
2996   ac_status=$?
2997   grep -v '^ *+' conftest.er1 >conftest.err
2998   rm -f conftest.er1
2999   cat conftest.err >&5
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); } &&
3002          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004   (eval $ac_try) 2>&5
3005   ac_status=$?
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); }; } &&
3008          { ac_try='test -s conftest.$ac_objext'
3009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010   (eval $ac_try) 2>&5
3011   ac_status=$?
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); }; }; then
3014   for ac_declaration in \
3015    '' \
3016    'extern "C" void std::exit (int) throw (); using std::exit;' \
3017    'extern "C" void std::exit (int); using std::exit;' \
3018    'extern "C" void exit (int) throw ();' \
3019    'extern "C" void exit (int);' \
3020    'void exit (int);'
3021 do
3022   cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028 $ac_declaration
3029 #include <stdlib.h>
3030 int
3031 main ()
3032 {
3033 exit (42);
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040   (eval $ac_compile) 2>conftest.er1
3041   ac_status=$?
3042   grep -v '^ *+' conftest.er1 >conftest.err
3043   rm -f conftest.er1
3044   cat conftest.err >&5
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); } &&
3047          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049   (eval $ac_try) 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); }; } &&
3053          { ac_try='test -s conftest.$ac_objext'
3054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055   (eval $ac_try) 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; }; then
3059   :
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064 continue
3065 fi
3066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3067   cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073 $ac_declaration
3074 int
3075 main ()
3076 {
3077 exit (42);
3078   ;
3079   return 0;
3080 }
3081 _ACEOF
3082 rm -f conftest.$ac_objext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3084   (eval $ac_compile) 2>conftest.er1
3085   ac_status=$?
3086   grep -v '^ *+' conftest.er1 >conftest.err
3087   rm -f conftest.er1
3088   cat conftest.err >&5
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); } &&
3091          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093   (eval $ac_try) 2>&5
3094   ac_status=$?
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); }; } &&
3097          { ac_try='test -s conftest.$ac_objext'
3098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099   (eval $ac_try) 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; }; then
3103   break
3104 else
3105   echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 fi
3109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3110 done
3111 rm -f conftest*
3112 if test -n "$ac_declaration"; then
3113   echo '#ifdef __cplusplus' >>confdefs.h
3114   echo $ac_declaration      >>confdefs.h
3115   echo '#endif'             >>confdefs.h
3116 fi
3117
3118 else
3119   echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122 fi
3123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129
3130 depcc="$CC"   am_compiler_list=
3131
3132 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3133 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3134 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3135   echo $ECHO_N "(cached) $ECHO_C" >&6
3136 else
3137   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3138   # We make a subdir and do the tests there.  Otherwise we can end up
3139   # making bogus files that we don't know about and never remove.  For
3140   # instance it was reported that on HP-UX the gcc test will end up
3141   # making a dummy file named `D' -- because `-MD' means `put the output
3142   # in D'.
3143   mkdir conftest.dir
3144   # Copy depcomp to subdir because otherwise we won't find it if we're
3145   # using a relative directory.
3146   cp "$am_depcomp" conftest.dir
3147   cd conftest.dir
3148   # We will build objects and dependencies in a subdirectory because
3149   # it helps to detect inapplicable dependency modes.  For instance
3150   # both Tru64's cc and ICC support -MD to output dependencies as a
3151   # side effect of compilation, but ICC will put the dependencies in
3152   # the current directory while Tru64 will put them in the object
3153   # directory.
3154   mkdir sub
3155
3156   am_cv_CC_dependencies_compiler_type=none
3157   if test "$am_compiler_list" = ""; then
3158      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3159   fi
3160   for depmode in $am_compiler_list; do
3161     # Setup a source with many dependencies, because some compilers
3162     # like to wrap large dependency lists on column 80 (with \), and
3163     # we should not choose a depcomp mode which is confused by this.
3164     #
3165     # We need to recreate these files for each test, as the compiler may
3166     # overwrite some of them when testing with obscure command lines.
3167     # This happens at least with the AIX C compiler.
3168     : > sub/conftest.c
3169     for i in 1 2 3 4 5 6; do
3170       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3171       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3172       # Solaris 8's {/usr,}/bin/sh.
3173       touch sub/conftst$i.h
3174     done
3175     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3176
3177     case $depmode in
3178     nosideeffect)
3179       # after this tag, mechanisms are not by side-effect, so they'll
3180       # only be used when explicitly requested
3181       if test "x$enable_dependency_tracking" = xyes; then
3182         continue
3183       else
3184         break
3185       fi
3186       ;;
3187     none) break ;;
3188     esac
3189     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3190     # mode.  It turns out that the SunPro C++ compiler does not properly
3191     # handle `-M -o', and we need to detect this.
3192     if depmode=$depmode \
3193        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3194        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3195        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3196          >/dev/null 2>conftest.err &&
3197        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3198        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3199        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3200       # icc doesn't choke on unknown options, it will just issue warnings
3201       # or remarks (even with -Werror).  So we grep stderr for any message
3202       # that says an option was ignored or not supported.
3203       # When given -MP, icc 7.0 and 7.1 complain thusly:
3204       #   icc: Command line warning: ignoring option '-M'; no argument required
3205       # The diagnosis changed in icc 8.0:
3206       #   icc: Command line remark: option '-MP' not supported
3207       if (grep 'ignoring option' conftest.err ||
3208           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3209         am_cv_CC_dependencies_compiler_type=$depmode
3210         break
3211       fi
3212     fi
3213   done
3214
3215   cd ..
3216   rm -rf conftest.dir
3217 else
3218   am_cv_CC_dependencies_compiler_type=none
3219 fi
3220
3221 fi
3222 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3223 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3224 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3225
3226
3227
3228 if
3229   test "x$enable_dependency_tracking" != xno \
3230   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3231   am__fastdepCC_TRUE=
3232   am__fastdepCC_FALSE='#'
3233 else
3234   am__fastdepCC_TRUE='#'
3235   am__fastdepCC_FALSE=
3236 fi
3237
3238
3239 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3240 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3241 if test "${lt_cv_path_SED+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244   # Loop through the user's path and test for sed and gsed.
3245 # Then use that list of sed's as ones to test for truncation.
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249   IFS=$as_save_IFS
3250   test -z "$as_dir" && as_dir=.
3251   for lt_ac_prog in sed gsed; do
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3254         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3255       fi
3256     done
3257   done
3258 done
3259 lt_ac_max=0
3260 lt_ac_count=0
3261 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3262 # along with /bin/sed that truncates output.
3263 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3264   test ! -f $lt_ac_sed && break
3265   cat /dev/null > conftest.in
3266   lt_ac_count=0
3267   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3268   # Check for GNU sed and select it if it is found.
3269   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3270     lt_cv_path_SED=$lt_ac_sed
3271     break
3272   fi
3273   while true; do
3274     cat conftest.in conftest.in >conftest.tmp
3275     mv conftest.tmp conftest.in
3276     cp conftest.in conftest.nl
3277     echo >>conftest.nl
3278     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3279     cmp -s conftest.out conftest.nl || break
3280     # 10000 chars as input seems more than enough
3281     test $lt_ac_count -gt 10 && break
3282     lt_ac_count=`expr $lt_ac_count + 1`
3283     if test $lt_ac_count -gt $lt_ac_max; then
3284       lt_ac_max=$lt_ac_count
3285       lt_cv_path_SED=$lt_ac_sed
3286     fi
3287   done
3288 done
3289 SED=$lt_cv_path_SED
3290
3291 fi
3292
3293 echo "$as_me:$LINENO: result: $SED" >&5
3294 echo "${ECHO_T}$SED" >&6
3295
3296 echo "$as_me:$LINENO: checking for egrep" >&5
3297 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3298 if test "${ac_cv_prog_egrep+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3302     then ac_cv_prog_egrep='grep -E'
3303     else ac_cv_prog_egrep='egrep'
3304     fi
3305 fi
3306 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3307 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3308  EGREP=$ac_cv_prog_egrep
3309
3310
3311
3312 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3313 if test "${with_gnu_ld+set}" = set; then
3314   withval="$with_gnu_ld"
3315   test "$withval" = no || with_gnu_ld=yes
3316 else
3317   with_gnu_ld=no
3318 fi;
3319 ac_prog=ld
3320 if test "$GCC" = yes; then
3321   # Check if gcc -print-prog-name=ld gives a path.
3322   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3323 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3324   case $host in
3325   *-*-mingw*)
3326     # gcc leaves a trailing carriage return which upsets mingw
3327     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3328   *)
3329     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3330   esac
3331   case $ac_prog in
3332     # Accept absolute paths.
3333     [\\/]* | ?:[\\/]*)
3334       re_direlt='/[^/][^/]*/\.\./'
3335       # Canonicalize the pathname of ld
3336       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3337       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3338         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3339       done
3340       test -z "$LD" && LD="$ac_prog"
3341       ;;
3342   "")
3343     # If it fails, then pretend we aren't using GCC.
3344     ac_prog=ld
3345     ;;
3346   *)
3347     # If it is relative, then search for the first ld in PATH.
3348     with_gnu_ld=unknown
3349     ;;
3350   esac
3351 elif test "$with_gnu_ld" = yes; then
3352   echo "$as_me:$LINENO: checking for GNU ld" >&5
3353 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3354 else
3355   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3356 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3357 fi
3358 if test "${lt_cv_path_LD+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   if test -z "$LD"; then
3362   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3363   for ac_dir in $PATH; do
3364     IFS="$lt_save_ifs"
3365     test -z "$ac_dir" && ac_dir=.
3366     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3367       lt_cv_path_LD="$ac_dir/$ac_prog"
3368       # Check to see if the program is GNU ld.  I'd rather use --version,
3369       # but apparently some GNU ld's only accept -v.
3370       # Break only if it was the GNU/non-GNU ld that we prefer.
3371       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3372       *GNU* | *'with BFD'*)
3373         test "$with_gnu_ld" != no && break
3374         ;;
3375       *)
3376         test "$with_gnu_ld" != yes && break
3377         ;;
3378       esac
3379     fi
3380   done
3381   IFS="$lt_save_ifs"
3382 else
3383   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3384 fi
3385 fi
3386
3387 LD="$lt_cv_path_LD"
3388 if test -n "$LD"; then
3389   echo "$as_me:$LINENO: result: $LD" >&5
3390 echo "${ECHO_T}$LD" >&6
3391 else
3392   echo "$as_me:$LINENO: result: no" >&5
3393 echo "${ECHO_T}no" >&6
3394 fi
3395 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3396 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3397    { (exit 1); exit 1; }; }
3398 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3399 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3400 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3404 case `$LD -v 2>&1 </dev/null` in
3405 *GNU* | *'with BFD'*)
3406   lt_cv_prog_gnu_ld=yes
3407   ;;
3408 *)
3409   lt_cv_prog_gnu_ld=no
3410   ;;
3411 esac
3412 fi
3413 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3414 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3415 with_gnu_ld=$lt_cv_prog_gnu_ld
3416
3417
3418 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3419 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3420 if test "${lt_cv_ld_reload_flag+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   lt_cv_ld_reload_flag='-r'
3424 fi
3425 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3426 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3427 reload_flag=$lt_cv_ld_reload_flag
3428 case $reload_flag in
3429 "" | " "*) ;;
3430 *) reload_flag=" $reload_flag" ;;
3431 esac
3432 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3433
3434 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3435 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3436 if test "${lt_cv_path_NM+set}" = set; then
3437   echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439   if test -n "$NM"; then
3440   # Let the user override the test.
3441   lt_cv_path_NM="$NM"
3442 else
3443   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3444   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3445     IFS="$lt_save_ifs"
3446     test -z "$ac_dir" && ac_dir=.
3447     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3448     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3449       # Check to see if the nm accepts a BSD-compat flag.
3450       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3451       #   nm: unknown option "B" ignored
3452       # Tru64's nm complains that /dev/null is an invalid object file
3453       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3454       */dev/null* | *'Invalid file or object type'*)
3455         lt_cv_path_NM="$tmp_nm -B"
3456         break
3457         ;;
3458       *)
3459         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3460         */dev/null*)
3461           lt_cv_path_NM="$tmp_nm -p"
3462           break
3463           ;;
3464         *)
3465           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3466           continue # so that we can try to find one that supports BSD flags
3467           ;;
3468         esac
3469       esac
3470     fi
3471   done
3472   IFS="$lt_save_ifs"
3473   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3474 fi
3475 fi
3476 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3477 echo "${ECHO_T}$lt_cv_path_NM" >&6
3478 NM="$lt_cv_path_NM"
3479
3480 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3481 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3482 LN_S=$as_ln_s
3483 if test "$LN_S" = "ln -s"; then
3484   echo "$as_me:$LINENO: result: yes" >&5
3485 echo "${ECHO_T}yes" >&6
3486 else
3487   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3488 echo "${ECHO_T}no, using $LN_S" >&6
3489 fi
3490
3491 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3492 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3493 if test "${lt_cv_deplibs_check_method+set}" = set; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496   lt_cv_file_magic_cmd='$MAGIC_CMD'
3497 lt_cv_file_magic_test_file=
3498 lt_cv_deplibs_check_method='unknown'
3499 # Need to set the preceding variable on all platforms that support
3500 # interlibrary dependencies.
3501 # 'none' -- dependencies not supported.
3502 # `unknown' -- same as none, but documents that we really don't know.
3503 # 'pass_all' -- all dependencies passed with no checks.
3504 # 'test_compile' -- check by making test program.
3505 # 'file_magic [[regex]]' -- check by looking for files in library path
3506 # which responds to the $file_magic_cmd with a given extended regex.
3507 # If you have `file' or equivalent on your system and you're not sure
3508 # whether `pass_all' will *always* work, you probably want this one.
3509
3510 case $host_os in
3511 aix4* | aix5*)
3512   lt_cv_deplibs_check_method=pass_all
3513   ;;
3514
3515 beos*)
3516   lt_cv_deplibs_check_method=pass_all
3517   ;;
3518
3519 bsdi4*)
3520   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3521   lt_cv_file_magic_cmd='/usr/bin/file -L'
3522   lt_cv_file_magic_test_file=/shlib/libc.so
3523   ;;
3524
3525 cygwin*)
3526   # func_win32_libid is a shell function defined in ltmain.sh
3527   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3528   lt_cv_file_magic_cmd='func_win32_libid'
3529   ;;
3530
3531 mingw* | pw32*)
3532   # Base MSYS/MinGW do not provide the 'file' command needed by
3533   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3534   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3535   lt_cv_file_magic_cmd='$OBJDUMP -f'
3536   ;;
3537
3538 darwin* | rhapsody*)
3539   lt_cv_deplibs_check_method=pass_all
3540   ;;
3541
3542 freebsd* | kfreebsd*-gnu)
3543   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3544     case $host_cpu in
3545     i*86 )
3546       # Not sure whether the presence of OpenBSD here was a mistake.
3547       # Let's accept both of them until this is cleared up.
3548       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3549       lt_cv_file_magic_cmd=/usr/bin/file
3550       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3551       ;;
3552     esac
3553   else
3554     lt_cv_deplibs_check_method=pass_all
3555   fi
3556   ;;
3557
3558 gnu*)
3559   lt_cv_deplibs_check_method=pass_all
3560   ;;
3561
3562 hpux10.20* | hpux11*)
3563   lt_cv_file_magic_cmd=/usr/bin/file
3564   case "$host_cpu" in
3565   ia64*)
3566     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3567     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3568     ;;
3569   hppa*64*)
3570     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3571     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3572     ;;
3573   *)
3574     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3575     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3576     ;;
3577   esac
3578   ;;
3579
3580 irix5* | irix6* | nonstopux*)
3581   case $LD in
3582   *-32|*"-32 ") libmagic=32-bit;;
3583   *-n32|*"-n32 ") libmagic=N32;;
3584   *-64|*"-64 ") libmagic=64-bit;;
3585   *) libmagic=never-match;;
3586   esac
3587   lt_cv_deplibs_check_method=pass_all
3588   ;;
3589
3590 # This must be Linux ELF.
3591 linux*)
3592   lt_cv_deplibs_check_method=pass_all
3593   ;;
3594
3595 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3596   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3597     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3598   else
3599     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3600   fi
3601   ;;
3602
3603 newos6*)
3604   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3605   lt_cv_file_magic_cmd=/usr/bin/file
3606   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3607   ;;
3608
3609 nto-qnx*)
3610   lt_cv_deplibs_check_method=unknown
3611   ;;
3612
3613 openbsd*)
3614   lt_cv_file_magic_cmd=/usr/bin/file
3615   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3616   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3617     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3618   else
3619     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3620   fi
3621   ;;
3622
3623 osf3* | osf4* | osf5*)
3624   lt_cv_deplibs_check_method=pass_all
3625   ;;
3626
3627 sco3.2v5*)
3628   lt_cv_deplibs_check_method=pass_all
3629   ;;
3630
3631 solaris*)
3632   lt_cv_deplibs_check_method=pass_all
3633   ;;
3634
3635 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3636   case $host_vendor in
3637   motorola)
3638     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3639     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3640     ;;
3641   ncr)
3642     lt_cv_deplibs_check_method=pass_all
3643     ;;
3644   sequent)
3645     lt_cv_file_magic_cmd='/bin/file'
3646     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3647     ;;
3648   sni)
3649     lt_cv_file_magic_cmd='/bin/file'
3650     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3651     lt_cv_file_magic_test_file=/lib/libc.so
3652     ;;
3653   siemens)
3654     lt_cv_deplibs_check_method=pass_all
3655     ;;
3656   esac
3657   ;;
3658
3659 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3660   lt_cv_deplibs_check_method=pass_all
3661   ;;
3662 esac
3663
3664 fi
3665 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3666 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3667 file_magic_cmd=$lt_cv_file_magic_cmd
3668 deplibs_check_method=$lt_cv_deplibs_check_method
3669 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3670
3671
3672
3673
3674 # If no C compiler was specified, use CC.
3675 LTCC=${LTCC-"$CC"}
3676
3677 # Allow CC to be a program name with arguments.
3678 compiler=$CC
3679
3680
3681 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3682 if test "${enable_libtool_lock+set}" = set; then
3683   enableval="$enable_libtool_lock"
3684
3685 fi;
3686 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3687
3688 # Some flags need to be propagated to the compiler or linker for good
3689 # libtool support.
3690 case $host in
3691 ia64-*-hpux*)
3692   # Find out which ABI we are using.
3693   echo 'int i;' > conftest.$ac_ext
3694   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3695   (eval $ac_compile) 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); }; then
3699     case `/usr/bin/file conftest.$ac_objext` in
3700     *ELF-32*)
3701       HPUX_IA64_MODE="32"
3702       ;;
3703     *ELF-64*)
3704       HPUX_IA64_MODE="64"
3705       ;;
3706     esac
3707   fi
3708   rm -rf conftest*
3709   ;;
3710 *-*-irix6*)
3711   # Find out which ABI we are using.
3712   echo '#line 3712 "configure"' > conftest.$ac_ext
3713   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714   (eval $ac_compile) 2>&5
3715   ac_status=$?
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); }; then
3718    if test "$lt_cv_prog_gnu_ld" = yes; then
3719     case `/usr/bin/file conftest.$ac_objext` in
3720     *32-bit*)
3721       LD="${LD-ld} -melf32bsmip"
3722       ;;
3723     *N32*)
3724       LD="${LD-ld} -melf32bmipn32"
3725       ;;
3726     *64-bit*)
3727       LD="${LD-ld} -melf64bmip"
3728       ;;
3729     esac
3730    else
3731     case `/usr/bin/file conftest.$ac_objext` in
3732     *32-bit*)
3733       LD="${LD-ld} -32"
3734       ;;
3735     *N32*)
3736       LD="${LD-ld} -n32"
3737       ;;
3738     *64-bit*)
3739       LD="${LD-ld} -64"
3740       ;;
3741     esac
3742    fi
3743   fi
3744   rm -rf conftest*
3745   ;;
3746
3747 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3748   # Find out which ABI we are using.
3749   echo 'int i;' > conftest.$ac_ext
3750   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751   (eval $ac_compile) 2>&5
3752   ac_status=$?
3753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754   (exit $ac_status); }; then
3755     case "`/usr/bin/file conftest.o`" in
3756     *32-bit*)
3757       case $host in
3758         x86_64-*linux*)
3759           LD="${LD-ld} -m elf_i386"
3760           ;;
3761         ppc64-*linux*|powerpc64-*linux*)
3762           LD="${LD-ld} -m elf32ppclinux"
3763           ;;
3764         s390x-*linux*)
3765           LD="${LD-ld} -m elf_s390"
3766           ;;
3767         sparc64-*linux*)
3768           LD="${LD-ld} -m elf32_sparc"
3769           ;;
3770       esac
3771       ;;
3772     *64-bit*)
3773       case $host in
3774         x86_64-*linux*)
3775           LD="${LD-ld} -m elf_x86_64"
3776           ;;
3777         ppc*-*linux*|powerpc*-*linux*)
3778           LD="${LD-ld} -m elf64ppc"
3779           ;;
3780         s390*-*linux*)
3781           LD="${LD-ld} -m elf64_s390"
3782           ;;
3783         sparc*-*linux*)
3784           LD="${LD-ld} -m elf64_sparc"
3785           ;;
3786       esac
3787       ;;
3788     esac
3789   fi
3790   rm -rf conftest*
3791   ;;
3792
3793 *-*-sco3.2v5*)
3794   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3795   SAVE_CFLAGS="$CFLAGS"
3796   CFLAGS="$CFLAGS -belf"
3797   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3798 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3799 if test "${lt_cv_cc_needs_belf+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   ac_ext=c
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3807
3808      cat >conftest.$ac_ext <<_ACEOF
3809 /* confdefs.h.  */
3810 _ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h.  */
3814
3815 int
3816 main ()
3817 {
3818
3819   ;
3820   return 0;
3821 }
3822 _ACEOF
3823 rm -f conftest.$ac_objext conftest$ac_exeext
3824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3825   (eval $ac_link) 2>conftest.er1
3826   ac_status=$?
3827   grep -v '^ *+' conftest.er1 >conftest.err
3828   rm -f conftest.er1
3829   cat conftest.err >&5
3830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); } &&
3832          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834   (eval $ac_try) 2>&5
3835   ac_status=$?
3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837   (exit $ac_status); }; } &&
3838          { ac_try='test -s conftest$ac_exeext'
3839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840   (eval $ac_try) 2>&5
3841   ac_status=$?
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); }; }; then
3844   lt_cv_cc_needs_belf=yes
3845 else
3846   echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849 lt_cv_cc_needs_belf=no
3850 fi
3851 rm -f conftest.err conftest.$ac_objext \
3852       conftest$ac_exeext conftest.$ac_ext
3853      ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858
3859 fi
3860 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3861 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3862   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3863     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3864     CFLAGS="$SAVE_CFLAGS"
3865   fi
3866   ;;
3867
3868 esac
3869
3870 need_locks="$enable_libtool_lock"
3871
3872
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3879 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3880 # On Suns, sometimes $CPP names a directory.
3881 if test -n "$CPP" && test -d "$CPP"; then
3882   CPP=
3883 fi
3884 if test -z "$CPP"; then
3885   if test "${ac_cv_prog_CPP+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888       # Double quotes because CPP needs to be expanded
3889     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3890     do
3891       ac_preproc_ok=false
3892 for ac_c_preproc_warn_flag in '' yes
3893 do
3894   # Use a header file that comes with gcc, so configuring glibc
3895   # with a fresh cross-compiler works.
3896   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897   # <limits.h> exists even on freestanding compilers.
3898   # On the NeXT, cc -E runs the code through the compiler's parser,
3899   # not just through cpp. "Syntax error" is here to catch this case.
3900   cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h.  */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h.  */
3906 #ifdef __STDC__
3907 # include <limits.h>
3908 #else
3909 # include <assert.h>
3910 #endif
3911                      Syntax error
3912 _ACEOF
3913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3915   ac_status=$?
3916   grep -v '^ *+' conftest.er1 >conftest.err
3917   rm -f conftest.er1
3918   cat conftest.err >&5
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } >/dev/null; then
3921   if test -s conftest.err; then
3922     ac_cpp_err=$ac_c_preproc_warn_flag
3923     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3924   else
3925     ac_cpp_err=
3926   fi
3927 else
3928   ac_cpp_err=yes
3929 fi
3930 if test -z "$ac_cpp_err"; then
3931   :
3932 else
3933   echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3935
3936   # Broken: fails on valid input.
3937 continue
3938 fi
3939 rm -f conftest.err conftest.$ac_ext
3940
3941   # OK, works on sane cases.  Now check whether non-existent headers
3942   # can be detected and how.
3943   cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949 #include <ac_nonexistent.h>
3950 _ACEOF
3951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3953   ac_status=$?
3954   grep -v '^ *+' conftest.er1 >conftest.err
3955   rm -f conftest.er1
3956   cat conftest.err >&5
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); } >/dev/null; then
3959   if test -s conftest.err; then
3960     ac_cpp_err=$ac_c_preproc_warn_flag
3961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3962   else
3963     ac_cpp_err=
3964   fi
3965 else
3966   ac_cpp_err=yes
3967 fi
3968 if test -z "$ac_cpp_err"; then
3969   # Broken: success on invalid input.
3970 continue
3971 else
3972   echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3974
3975   # Passes both tests.
3976 ac_preproc_ok=:
3977 break
3978 fi
3979 rm -f conftest.err conftest.$ac_ext
3980
3981 done
3982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3983 rm -f conftest.err conftest.$ac_ext
3984 if $ac_preproc_ok; then
3985   break
3986 fi
3987
3988     done
3989     ac_cv_prog_CPP=$CPP
3990
3991 fi
3992   CPP=$ac_cv_prog_CPP
3993 else
3994   ac_cv_prog_CPP=$CPP
3995 fi
3996 echo "$as_me:$LINENO: result: $CPP" >&5
3997 echo "${ECHO_T}$CPP" >&6
3998 ac_preproc_ok=false
3999 for ac_c_preproc_warn_flag in '' yes
4000 do
4001   # Use a header file that comes with gcc, so configuring glibc
4002   # with a fresh cross-compiler works.
4003   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4004   # <limits.h> exists even on freestanding compilers.
4005   # On the NeXT, cc -E runs the code through the compiler's parser,
4006   # not just through cpp. "Syntax error" is here to catch this case.
4007   cat >conftest.$ac_ext <<_ACEOF
4008 /* confdefs.h.  */
4009 _ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h.  */
4013 #ifdef __STDC__
4014 # include <limits.h>
4015 #else
4016 # include <assert.h>
4017 #endif
4018                      Syntax error
4019 _ACEOF
4020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4022   ac_status=$?
4023   grep -v '^ *+' conftest.er1 >conftest.err
4024   rm -f conftest.er1
4025   cat conftest.err >&5
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); } >/dev/null; then
4028   if test -s conftest.err; then
4029     ac_cpp_err=$ac_c_preproc_warn_flag
4030     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4031   else
4032     ac_cpp_err=
4033   fi
4034 else
4035   ac_cpp_err=yes
4036 fi
4037 if test -z "$ac_cpp_err"; then
4038   :
4039 else
4040   echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4042
4043   # Broken: fails on valid input.
4044 continue
4045 fi
4046 rm -f conftest.err conftest.$ac_ext
4047
4048   # OK, works on sane cases.  Now check whether non-existent headers
4049   # can be detected and how.
4050   cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h.  */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h.  */
4056 #include <ac_nonexistent.h>
4057 _ACEOF
4058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4060   ac_status=$?
4061   grep -v '^ *+' conftest.er1 >conftest.err
4062   rm -f conftest.er1
4063   cat conftest.err >&5
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } >/dev/null; then
4066   if test -s conftest.err; then
4067     ac_cpp_err=$ac_c_preproc_warn_flag
4068     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4069   else
4070     ac_cpp_err=
4071   fi
4072 else
4073   ac_cpp_err=yes
4074 fi
4075 if test -z "$ac_cpp_err"; then
4076   # Broken: success on invalid input.
4077 continue
4078 else
4079   echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4081
4082   # Passes both tests.
4083 ac_preproc_ok=:
4084 break
4085 fi
4086 rm -f conftest.err conftest.$ac_ext
4087
4088 done
4089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4090 rm -f conftest.err conftest.$ac_ext
4091 if $ac_preproc_ok; then
4092   :
4093 else
4094   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4095 See \`config.log' for more details." >&5
4096 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4097 See \`config.log' for more details." >&2;}
4098    { (exit 1); exit 1; }; }
4099 fi
4100
4101 ac_ext=c
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106
4107
4108 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4109 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4110 if test "${ac_cv_header_stdc+set}" = set; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h.  */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h.  */
4119 #include <stdlib.h>
4120 #include <stdarg.h>
4121 #include <string.h>
4122 #include <float.h>
4123
4124 int
4125 main ()
4126 {
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134   (eval $ac_compile) 2>conftest.er1
4135   ac_status=$?
4136   grep -v '^ *+' conftest.er1 >conftest.err
4137   rm -f conftest.er1
4138   cat conftest.err >&5
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); } &&
4141          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143   (eval $ac_try) 2>&5
4144   ac_status=$?
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); }; } &&
4147          { ac_try='test -s conftest.$ac_objext'
4148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149   (eval $ac_try) 2>&5
4150   ac_status=$?
4151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152   (exit $ac_status); }; }; then
4153   ac_cv_header_stdc=yes
4154 else
4155   echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4157
4158 ac_cv_header_stdc=no
4159 fi
4160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4161
4162 if test $ac_cv_header_stdc = yes; then
4163   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4164   cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170 #include <string.h>
4171
4172 _ACEOF
4173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174   $EGREP "memchr" >/dev/null 2>&1; then
4175   :
4176 else
4177   ac_cv_header_stdc=no
4178 fi
4179 rm -f conftest*
4180
4181 fi
4182
4183 if test $ac_cv_header_stdc = yes; then
4184   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4185   cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 #include <stdlib.h>
4192
4193 _ACEOF
4194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4195   $EGREP "free" >/dev/null 2>&1; then
4196   :
4197 else
4198   ac_cv_header_stdc=no
4199 fi
4200 rm -f conftest*
4201
4202 fi
4203
4204 if test $ac_cv_header_stdc = yes; then
4205   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4206   if test "$cross_compiling" = yes; then
4207   :
4208 else
4209   cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h.  */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h.  */
4215 #include <ctype.h>
4216 #if ((' ' & 0x0FF) == 0x020)
4217 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4218 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4219 #else
4220 # define ISLOWER(c) \
4221                    (('a' <= (c) && (c) <= 'i') \
4222                      || ('j' <= (c) && (c) <= 'r') \
4223                      || ('s' <= (c) && (c) <= 'z'))
4224 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4225 #endif
4226
4227 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4228 int
4229 main ()
4230 {
4231   int i;
4232   for (i = 0; i < 256; i++)
4233     if (XOR (islower (i), ISLOWER (i))
4234         || toupper (i) != TOUPPER (i))
4235       exit(2);
4236   exit (0);
4237 }
4238 _ACEOF
4239 rm -f conftest$ac_exeext
4240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4241   (eval $ac_link) 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246   (eval $ac_try) 2>&5
4247   ac_status=$?
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); }; }; then
4250   :
4251 else
4252   echo "$as_me: program exited with status $ac_status" >&5
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256 ( exit $ac_status )
4257 ac_cv_header_stdc=no
4258 fi
4259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4260 fi
4261 fi
4262 fi
4263 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4264 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4265 if test $ac_cv_header_stdc = yes; then
4266
4267 cat >>confdefs.h <<\_ACEOF
4268 #define STDC_HEADERS 1
4269 _ACEOF
4270
4271 fi
4272
4273 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4284                   inttypes.h stdint.h unistd.h
4285 do
4286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4287 echo "$as_me:$LINENO: checking for $ac_header" >&5
4288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h.  */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h.  */
4298 $ac_includes_default
4299
4300 #include <$ac_header>
4301 _ACEOF
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304   (eval $ac_compile) 2>conftest.er1
4305   ac_status=$?
4306   grep -v '^ *+' conftest.er1 >conftest.err
4307   rm -f conftest.er1
4308   cat conftest.err >&5
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); } &&
4311          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313   (eval $ac_try) 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }; } &&
4317          { ac_try='test -s conftest.$ac_objext'
4318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319   (eval $ac_try) 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); }; }; then
4323   eval "$as_ac_Header=yes"
4324 else
4325   echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328 eval "$as_ac_Header=no"
4329 fi
4330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331 fi
4332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4335   cat >>confdefs.h <<_ACEOF
4336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4337 _ACEOF
4338
4339 fi
4340
4341 done
4342
4343
4344
4345 for ac_header in dlfcn.h
4346 do
4347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4349   echo "$as_me:$LINENO: checking for $ac_header" >&5
4350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 fi
4354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4356 else
4357   # Is the header compilable?
4358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4360 cat >conftest.$ac_ext <<_ACEOF
4361 /* confdefs.h.  */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h.  */
4366 $ac_includes_default
4367 #include <$ac_header>
4368 _ACEOF
4369 rm -f conftest.$ac_objext
4370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4371   (eval $ac_compile) 2>conftest.er1
4372   ac_status=$?
4373   grep -v '^ *+' conftest.er1 >conftest.err
4374   rm -f conftest.er1
4375   cat conftest.err >&5
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); } &&
4378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380   (eval $ac_try) 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); }; } &&
4384          { ac_try='test -s conftest.$ac_objext'
4385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386   (eval $ac_try) 2>&5
4387   ac_status=$?
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); }; }; then
4390   ac_header_compiler=yes
4391 else
4392   echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4394
4395 ac_header_compiler=no
4396 fi
4397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4399 echo "${ECHO_T}$ac_header_compiler" >&6
4400
4401 # Is the header present?
4402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4404 cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h.  */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h.  */
4410 #include <$ac_header>
4411 _ACEOF
4412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4414   ac_status=$?
4415   grep -v '^ *+' conftest.er1 >conftest.err
4416   rm -f conftest.er1
4417   cat conftest.err >&5
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); } >/dev/null; then
4420   if test -s conftest.err; then
4421     ac_cpp_err=$ac_c_preproc_warn_flag
4422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4423   else
4424     ac_cpp_err=
4425   fi
4426 else
4427   ac_cpp_err=yes
4428 fi
4429 if test -z "$ac_cpp_err"; then
4430   ac_header_preproc=yes
4431 else
4432   echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4434
4435   ac_header_preproc=no
4436 fi
4437 rm -f conftest.err conftest.$ac_ext
4438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4439 echo "${ECHO_T}$ac_header_preproc" >&6
4440
4441 # So?  What about this header?
4442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4443   yes:no: )
4444     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4448     ac_header_preproc=yes
4449     ;;
4450   no:yes:* )
4451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4453     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4454 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4455     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4457     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4458 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4461     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4463     (
4464       cat <<\_ASBOX
4465 ## ----------------------------------------- ##
4466 ## Report this to martin.quinson@ens-lyon.fr ##
4467 ## ----------------------------------------- ##
4468 _ASBOX
4469     ) |
4470       sed "s/^/$as_me: WARNING:     /" >&2
4471     ;;
4472 esac
4473 echo "$as_me:$LINENO: checking for $ac_header" >&5
4474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4476   echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478   eval "$as_ac_Header=\$ac_header_preproc"
4479 fi
4480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4482
4483 fi
4484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4485   cat >>confdefs.h <<_ACEOF
4486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4487 _ACEOF
4488
4489 fi
4490
4491 done
4492
4493 ac_ext=cc
4494 ac_cpp='$CXXCPP $CPPFLAGS'
4495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4498 if test -n "$ac_tool_prefix"; then
4499   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4500   do
4501     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4503 echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_prog_CXX+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508   if test -n "$CXX"; then
4509   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514   IFS=$as_save_IFS
4515   test -z "$as_dir" && as_dir=.
4516   for ac_exec_ext in '' $ac_executable_extensions; do
4517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520     break 2
4521   fi
4522 done
4523 done
4524
4525 fi
4526 fi
4527 CXX=$ac_cv_prog_CXX
4528 if test -n "$CXX"; then
4529   echo "$as_me:$LINENO: result: $CXX" >&5
4530 echo "${ECHO_T}$CXX" >&6
4531 else
4532   echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4534 fi
4535
4536     test -n "$CXX" && break
4537   done
4538 fi
4539 if test -z "$CXX"; then
4540   ac_ct_CXX=$CXX
4541   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4542 do
4543   # Extract the first word of "$ac_prog", so it can be a program name with args.
4544 set dummy $ac_prog; ac_word=$2
4545 echo "$as_me:$LINENO: checking for $ac_word" >&5
4546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4547 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4548   echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550   if test -n "$ac_ct_CXX"; then
4551   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556   IFS=$as_save_IFS
4557   test -z "$as_dir" && as_dir=.
4558   for ac_exec_ext in '' $ac_executable_extensions; do
4559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560     ac_cv_prog_ac_ct_CXX="$ac_prog"
4561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562     break 2
4563   fi
4564 done
4565 done
4566
4567 fi
4568 fi
4569 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4570 if test -n "$ac_ct_CXX"; then
4571   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4572 echo "${ECHO_T}$ac_ct_CXX" >&6
4573 else
4574   echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4576 fi
4577
4578   test -n "$ac_ct_CXX" && break
4579 done
4580 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4581
4582   CXX=$ac_ct_CXX
4583 fi
4584
4585
4586 # Provide some information about the compiler.
4587 echo "$as_me:$LINENO:" \
4588      "checking for C++ compiler version" >&5
4589 ac_compiler=`set X $ac_compile; echo $2`
4590 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4591   (eval $ac_compiler --version </dev/null >&5) 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); }
4595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4596   (eval $ac_compiler -v </dev/null >&5) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }
4600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4601   (eval $ac_compiler -V </dev/null >&5) 2>&5
4602   ac_status=$?
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); }
4605
4606 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4607 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4608 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4609   echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611   cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h.  */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h.  */
4617
4618 int
4619 main ()
4620 {
4621 #ifndef __GNUC__
4622        choke me
4623 #endif
4624
4625   ;
4626   return 0;
4627 }
4628 _ACEOF
4629 rm -f conftest.$ac_objext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631   (eval $ac_compile) 2>conftest.er1
4632   ac_status=$?
4633   grep -v '^ *+' conftest.er1 >conftest.err
4634   rm -f conftest.er1
4635   cat conftest.err >&5
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); } &&
4638          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640   (eval $ac_try) 2>&5
4641   ac_status=$?
4642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643   (exit $ac_status); }; } &&
4644          { ac_try='test -s conftest.$ac_objext'
4645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646   (eval $ac_try) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); }; }; then
4650   ac_compiler_gnu=yes
4651 else
4652   echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4654
4655 ac_compiler_gnu=no
4656 fi
4657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4658 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4659
4660 fi
4661 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4662 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4663 GXX=`test $ac_compiler_gnu = yes && echo yes`
4664 ac_test_CXXFLAGS=${CXXFLAGS+set}
4665 ac_save_CXXFLAGS=$CXXFLAGS
4666 CXXFLAGS="-g"
4667 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4668 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4669 if test "${ac_cv_prog_cxx_g+set}" = set; then
4670   echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672   cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h.  */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h.  */
4678
4679 int
4680 main ()
4681 {
4682
4683   ;
4684   return 0;
4685 }
4686 _ACEOF
4687 rm -f conftest.$ac_objext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689   (eval $ac_compile) 2>conftest.er1
4690   ac_status=$?
4691   grep -v '^ *+' conftest.er1 >conftest.err
4692   rm -f conftest.er1
4693   cat conftest.err >&5
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); } &&
4696          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698   (eval $ac_try) 2>&5
4699   ac_status=$?
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); }; } &&
4702          { ac_try='test -s conftest.$ac_objext'
4703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704   (eval $ac_try) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }; }; then
4708   ac_cv_prog_cxx_g=yes
4709 else
4710   echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4712
4713 ac_cv_prog_cxx_g=no
4714 fi
4715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4716 fi
4717 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4718 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4719 if test "$ac_test_CXXFLAGS" = set; then
4720   CXXFLAGS=$ac_save_CXXFLAGS
4721 elif test $ac_cv_prog_cxx_g = yes; then
4722   if test "$GXX" = yes; then
4723     CXXFLAGS="-g -O2"
4724   else
4725     CXXFLAGS="-g"
4726   fi
4727 else
4728   if test "$GXX" = yes; then
4729     CXXFLAGS="-O2"
4730   else
4731     CXXFLAGS=
4732   fi
4733 fi
4734 for ac_declaration in \
4735    '' \
4736    'extern "C" void std::exit (int) throw (); using std::exit;' \
4737    'extern "C" void std::exit (int); using std::exit;' \
4738    'extern "C" void exit (int) throw ();' \
4739    'extern "C" void exit (int);' \
4740    'void exit (int);'
4741 do
4742   cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h.  */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h.  */
4748 $ac_declaration
4749 #include <stdlib.h>
4750 int
4751 main ()
4752 {
4753 exit (42);
4754   ;
4755   return 0;
4756 }
4757 _ACEOF
4758 rm -f conftest.$ac_objext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760   (eval $ac_compile) 2>conftest.er1
4761   ac_status=$?
4762   grep -v '^ *+' conftest.er1 >conftest.err
4763   rm -f conftest.er1
4764   cat conftest.err >&5
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); } &&
4767          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769   (eval $ac_try) 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); }; } &&
4773          { ac_try='test -s conftest.$ac_objext'
4774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775   (eval $ac_try) 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; }; then
4779   :
4780 else
4781   echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4783
4784 continue
4785 fi
4786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4787   cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h.  */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h.  */
4793 $ac_declaration
4794 int
4795 main ()
4796 {
4797 exit (42);
4798   ;
4799   return 0;
4800 }
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804   (eval $ac_compile) 2>conftest.er1
4805   ac_status=$?
4806   grep -v '^ *+' conftest.er1 >conftest.err
4807   rm -f conftest.er1
4808   cat conftest.err >&5
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); } &&
4811          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813   (eval $ac_try) 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); }; } &&
4817          { ac_try='test -s conftest.$ac_objext'
4818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819   (eval $ac_try) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; }; then
4823   break
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 fi
4829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830 done
4831 rm -f conftest*
4832 if test -n "$ac_declaration"; then
4833   echo '#ifdef __cplusplus' >>confdefs.h
4834   echo $ac_declaration      >>confdefs.h
4835   echo '#endif'             >>confdefs.h
4836 fi
4837
4838 ac_ext=cc
4839 ac_cpp='$CXXCPP $CPPFLAGS'
4840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4843
4844 depcc="$CXX"  am_compiler_list=
4845
4846 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4847 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4848 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4849   echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4852   # We make a subdir and do the tests there.  Otherwise we can end up
4853   # making bogus files that we don't know about and never remove.  For
4854   # instance it was reported that on HP-UX the gcc test will end up
4855   # making a dummy file named `D' -- because `-MD' means `put the output
4856   # in D'.
4857   mkdir conftest.dir
4858   # Copy depcomp to subdir because otherwise we won't find it if we're
4859   # using a relative directory.
4860   cp "$am_depcomp" conftest.dir
4861   cd conftest.dir
4862   # We will build objects and dependencies in a subdirectory because
4863   # it helps to detect inapplicable dependency modes.  For instance
4864   # both Tru64's cc and ICC support -MD to output dependencies as a
4865   # side effect of compilation, but ICC will put the dependencies in
4866   # the current directory while Tru64 will put them in the object
4867   # directory.
4868   mkdir sub
4869
4870   am_cv_CXX_dependencies_compiler_type=none
4871   if test "$am_compiler_list" = ""; then
4872      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4873   fi
4874   for depmode in $am_compiler_list; do
4875     # Setup a source with many dependencies, because some compilers
4876     # like to wrap large dependency lists on column 80 (with \), and
4877     # we should not choose a depcomp mode which is confused by this.
4878     #
4879     # We need to recreate these files for each test, as the compiler may
4880     # overwrite some of them when testing with obscure command lines.
4881     # This happens at least with the AIX C compiler.
4882     : > sub/conftest.c
4883     for i in 1 2 3 4 5 6; do
4884       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4885       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4886       # Solaris 8's {/usr,}/bin/sh.
4887       touch sub/conftst$i.h
4888     done
4889     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4890
4891     case $depmode in
4892     nosideeffect)
4893       # after this tag, mechanisms are not by side-effect, so they'll
4894       # only be used when explicitly requested
4895       if test "x$enable_dependency_tracking" = xyes; then
4896         continue
4897       else
4898         break
4899       fi
4900       ;;
4901     none) break ;;
4902     esac
4903     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4904     # mode.  It turns out that the SunPro C++ compiler does not properly
4905     # handle `-M -o', and we need to detect this.
4906     if depmode=$depmode \
4907        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4908        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4909        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4910          >/dev/null 2>conftest.err &&
4911        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4912        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4913        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4914       # icc doesn't choke on unknown options, it will just issue warnings
4915       # or remarks (even with -Werror).  So we grep stderr for any message
4916       # that says an option was ignored or not supported.
4917       # When given -MP, icc 7.0 and 7.1 complain thusly:
4918       #   icc: Command line warning: ignoring option '-M'; no argument required
4919       # The diagnosis changed in icc 8.0:
4920       #   icc: Command line remark: option '-MP' not supported
4921       if (grep 'ignoring option' conftest.err ||
4922           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4923         am_cv_CXX_dependencies_compiler_type=$depmode
4924         break
4925       fi
4926     fi
4927   done
4928
4929   cd ..
4930   rm -rf conftest.dir
4931 else
4932   am_cv_CXX_dependencies_compiler_type=none
4933 fi
4934
4935 fi
4936 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4937 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4938 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4939
4940
4941
4942 if
4943   test "x$enable_dependency_tracking" != xno \
4944   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4945   am__fastdepCXX_TRUE=
4946   am__fastdepCXX_FALSE='#'
4947 else
4948   am__fastdepCXX_TRUE='#'
4949   am__fastdepCXX_FALSE=
4950 fi
4951
4952
4953 ac_ext=cc
4954 ac_cpp='$CXXCPP $CPPFLAGS'
4955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4958 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4959 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4960 if test -z "$CXXCPP"; then
4961   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964       # Double quotes because CXXCPP needs to be expanded
4965     for CXXCPP in "$CXX -E" "/lib/cpp"
4966     do
4967       ac_preproc_ok=false
4968 for ac_cxx_preproc_warn_flag in '' yes
4969 do
4970   # Use a header file that comes with gcc, so configuring glibc
4971   # with a fresh cross-compiler works.
4972   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4973   # <limits.h> exists even on freestanding compilers.
4974   # On the NeXT, cc -E runs the code through the compiler's parser,
4975   # not just through cpp. "Syntax error" is here to catch this case.
4976   cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h.  */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h.  */
4982 #ifdef __STDC__
4983 # include <limits.h>
4984 #else
4985 # include <assert.h>
4986 #endif
4987                      Syntax error
4988 _ACEOF
4989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4991   ac_status=$?
4992   grep -v '^ *+' conftest.er1 >conftest.err
4993   rm -f conftest.er1
4994   cat conftest.err >&5
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } >/dev/null; then
4997   if test -s conftest.err; then
4998     ac_cpp_err=$ac_cxx_preproc_warn_flag
4999     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5000   else
5001     ac_cpp_err=
5002   fi
5003 else
5004   ac_cpp_err=yes
5005 fi
5006 if test -z "$ac_cpp_err"; then
5007   :
5008 else
5009   echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012   # Broken: fails on valid input.
5013 continue
5014 fi
5015 rm -f conftest.err conftest.$ac_ext
5016
5017   # OK, works on sane cases.  Now check whether non-existent headers
5018   # can be detected and how.
5019   cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h.  */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h.  */
5025 #include <ac_nonexistent.h>
5026 _ACEOF
5027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5029   ac_status=$?
5030   grep -v '^ *+' conftest.er1 >conftest.err
5031   rm -f conftest.er1
5032   cat conftest.err >&5
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } >/dev/null; then
5035   if test -s conftest.err; then
5036     ac_cpp_err=$ac_cxx_preproc_warn_flag
5037     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5038   else
5039     ac_cpp_err=
5040   fi
5041 else
5042   ac_cpp_err=yes
5043 fi
5044 if test -z "$ac_cpp_err"; then
5045   # Broken: success on invalid input.
5046 continue
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051   # Passes both tests.
5052 ac_preproc_ok=:
5053 break
5054 fi
5055 rm -f conftest.err conftest.$ac_ext
5056
5057 done
5058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5059 rm -f conftest.err conftest.$ac_ext
5060 if $ac_preproc_ok; then
5061   break
5062 fi
5063
5064     done
5065     ac_cv_prog_CXXCPP=$CXXCPP
5066
5067 fi
5068   CXXCPP=$ac_cv_prog_CXXCPP
5069 else
5070   ac_cv_prog_CXXCPP=$CXXCPP
5071 fi
5072 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5073 echo "${ECHO_T}$CXXCPP" >&6
5074 ac_preproc_ok=false
5075 for ac_cxx_preproc_warn_flag in '' yes
5076 do
5077   # Use a header file that comes with gcc, so configuring glibc
5078   # with a fresh cross-compiler works.
5079   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080   # <limits.h> exists even on freestanding compilers.
5081   # On the NeXT, cc -E runs the code through the compiler's parser,
5082   # not just through cpp. "Syntax error" is here to catch this case.
5083   cat >conftest.$ac_ext <<_ACEOF
5084 /* confdefs.h.  */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h.  */
5089 #ifdef __STDC__
5090 # include <limits.h>
5091 #else
5092 # include <assert.h>
5093 #endif
5094                      Syntax error
5095 _ACEOF
5096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5098   ac_status=$?
5099   grep -v '^ *+' conftest.er1 >conftest.err
5100   rm -f conftest.er1
5101   cat conftest.err >&5
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } >/dev/null; then
5104   if test -s conftest.err; then
5105     ac_cpp_err=$ac_cxx_preproc_warn_flag
5106     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5107   else
5108     ac_cpp_err=
5109   fi
5110 else
5111   ac_cpp_err=yes
5112 fi
5113 if test -z "$ac_cpp_err"; then
5114   :
5115 else
5116   echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119   # Broken: fails on valid input.
5120 continue
5121 fi
5122 rm -f conftest.err conftest.$ac_ext
5123
5124   # OK, works on sane cases.  Now check whether non-existent headers
5125   # can be detected and how.
5126   cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132 #include <ac_nonexistent.h>
5133 _ACEOF
5134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5136   ac_status=$?
5137   grep -v '^ *+' conftest.er1 >conftest.err
5138   rm -f conftest.er1
5139   cat conftest.err >&5
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } >/dev/null; then
5142   if test -s conftest.err; then
5143     ac_cpp_err=$ac_cxx_preproc_warn_flag
5144     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5145   else
5146     ac_cpp_err=
5147   fi
5148 else
5149   ac_cpp_err=yes
5150 fi
5151 if test -z "$ac_cpp_err"; then
5152   # Broken: success on invalid input.
5153 continue
5154 else
5155   echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5157
5158   # Passes both tests.
5159 ac_preproc_ok=:
5160 break
5161 fi
5162 rm -f conftest.err conftest.$ac_ext
5163
5164 done
5165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5166 rm -f conftest.err conftest.$ac_ext
5167 if $ac_preproc_ok; then
5168   :
5169 else
5170   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5171 See \`config.log' for more details." >&5
5172 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5173 See \`config.log' for more details." >&2;}
5174    { (exit 1); exit 1; }; }
5175 fi
5176
5177 ac_ext=cc
5178 ac_cpp='$CXXCPP $CPPFLAGS'
5179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5182
5183
5184 ac_ext=f
5185 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5186 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5188 if test -n "$ac_tool_prefix"; then
5189   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5190   do
5191     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5193 echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195 if test "${ac_cv_prog_F77+set}" = set; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   if test -n "$F77"; then
5199   ac_cv_prog_F77="$F77" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204   IFS=$as_save_IFS
5205   test -z "$as_dir" && as_dir=.
5206   for ac_exec_ext in '' $ac_executable_extensions; do
5207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210     break 2
5211   fi
5212 done
5213 done
5214
5215 fi
5216 fi
5217 F77=$ac_cv_prog_F77
5218 if test -n "$F77"; then
5219   echo "$as_me:$LINENO: result: $F77" >&5
5220 echo "${ECHO_T}$F77" >&6
5221 else
5222   echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6
5224 fi
5225
5226     test -n "$F77" && break
5227   done
5228 fi
5229 if test -z "$F77"; then
5230   ac_ct_F77=$F77
5231   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5232 do
5233   # Extract the first word of "$ac_prog", so it can be a program name with args.
5234 set dummy $ac_prog; ac_word=$2
5235 echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5237 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5238   echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240   if test -n "$ac_ct_F77"; then
5241   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246   IFS=$as_save_IFS
5247   test -z "$as_dir" && as_dir=.
5248   for ac_exec_ext in '' $ac_executable_extensions; do
5249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250     ac_cv_prog_ac_ct_F77="$ac_prog"
5251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252     break 2
5253   fi
5254 done
5255 done
5256
5257 fi
5258 fi
5259 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5260 if test -n "$ac_ct_F77"; then
5261   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5262 echo "${ECHO_T}$ac_ct_F77" >&6
5263 else
5264   echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6
5266 fi
5267
5268   test -n "$ac_ct_F77" && break
5269 done
5270
5271   F77=$ac_ct_F77
5272 fi
5273
5274
5275 # Provide some information about the compiler.
5276 echo "$as_me:5276:" \
5277      "checking for Fortran 77 compiler version" >&5
5278 ac_compiler=`set X $ac_compile; echo $2`
5279 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5280   (eval $ac_compiler --version </dev/null >&5) 2>&5
5281   ac_status=$?
5282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283   (exit $ac_status); }
5284 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5285   (eval $ac_compiler -v </dev/null >&5) 2>&5
5286   ac_status=$?
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); }
5289 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5290   (eval $ac_compiler -V </dev/null >&5) 2>&5
5291   ac_status=$?
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); }
5294 rm -f a.out
5295
5296 # If we don't use `.F' as extension, the preprocessor is not run on the
5297 # input file.  (Note that this only needs to work for GNU compilers.)
5298 ac_save_ext=$ac_ext
5299 ac_ext=F
5300 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5301 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5302 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5303   echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305   cat >conftest.$ac_ext <<_ACEOF
5306       program main
5307 #ifndef __GNUC__
5308        choke me
5309 #endif
5310
5311       end
5312 _ACEOF
5313 rm -f conftest.$ac_objext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5315   (eval $ac_compile) 2>conftest.er1
5316   ac_status=$?
5317   grep -v '^ *+' conftest.er1 >conftest.err
5318   rm -f conftest.er1
5319   cat conftest.err >&5
5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321   (exit $ac_status); } &&
5322          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324   (eval $ac_try) 2>&5
5325   ac_status=$?
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); }; } &&
5328          { ac_try='test -s conftest.$ac_objext'
5329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330   (eval $ac_try) 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); }; }; then
5334   ac_compiler_gnu=yes
5335 else
5336   echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339 ac_compiler_gnu=no
5340 fi
5341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5342 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5343
5344 fi
5345 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5346 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5347 ac_ext=$ac_save_ext
5348 ac_test_FFLAGS=${FFLAGS+set}
5349 ac_save_FFLAGS=$FFLAGS
5350 FFLAGS=
5351 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5352 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5353 if test "${ac_cv_prog_f77_g+set}" = set; then
5354   echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356   FFLAGS=-g
5357 cat >conftest.$ac_ext <<_ACEOF
5358       program main
5359
5360       end
5361 _ACEOF
5362 rm -f conftest.$ac_objext
5363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5364   (eval $ac_compile) 2>conftest.er1
5365   ac_status=$?
5366   grep -v '^ *+' conftest.er1 >conftest.err
5367   rm -f conftest.er1
5368   cat conftest.err >&5
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); } &&
5371          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373   (eval $ac_try) 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; } &&
5377          { ac_try='test -s conftest.$ac_objext'
5378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379   (eval $ac_try) 2>&5
5380   ac_status=$?
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); }; }; then
5383   ac_cv_prog_f77_g=yes
5384 else
5385   echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5387
5388 ac_cv_prog_f77_g=no
5389 fi
5390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5391
5392 fi
5393 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5394 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5395 if test "$ac_test_FFLAGS" = set; then
5396   FFLAGS=$ac_save_FFLAGS
5397 elif test $ac_cv_prog_f77_g = yes; then
5398   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5399     FFLAGS="-g -O2"
5400   else
5401     FFLAGS="-g"
5402   fi
5403 else
5404   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5405     FFLAGS="-O2"
5406   else
5407     FFLAGS=
5408   fi
5409 fi
5410
5411 G77=`test $ac_compiler_gnu = yes && echo yes`
5412 ac_ext=c
5413 ac_cpp='$CPP $CPPFLAGS'
5414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5417
5418
5419
5420 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5421
5422 # find the maximum length of command line arguments
5423 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5424 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5425 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5426   echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428     i=0
5429   teststring="ABCD"
5430
5431   case $build_os in
5432   msdosdjgpp*)
5433     # On DJGPP, this test can blow up pretty badly due to problems in libc
5434     # (any single argument exceeding 2000 bytes causes a buffer overrun
5435     # during glob expansion).  Even if it were fixed, the result of this
5436     # check would be larger than it should be.
5437     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5438     ;;
5439
5440   gnu*)
5441     # Under GNU Hurd, this test is not required because there is
5442     # no limit to the length of command line arguments.
5443     # Libtool will interpret -1 as no limit whatsoever
5444     lt_cv_sys_max_cmd_len=-1;
5445     ;;
5446
5447   cygwin* | mingw*)
5448     # On Win9x/ME, this test blows up -- it succeeds, but takes
5449     # about 5 minutes as the teststring grows exponentially.
5450     # Worse, since 9x/ME are not pre-emptively multitasking,
5451     # you end up with a "frozen" computer, even though with patience
5452     # the test eventually succeeds (with a max line length of 256k).
5453     # Instead, let's just punt: use the minimum linelength reported by
5454     # all of the supported platforms: 8192 (on NT/2K/XP).
5455     lt_cv_sys_max_cmd_len=8192;
5456     ;;
5457
5458   amigaos*)
5459     # On AmigaOS with pdksh, this test takes hours, literally.
5460     # So we just punt and use a minimum line length of 8192.
5461     lt_cv_sys_max_cmd_len=8192;
5462     ;;
5463
5464  *)
5465     # If test is not a shell built-in, we'll probably end up computing a
5466     # maximum length that is only half of the actual maximum length, but
5467     # we can't tell.
5468     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5469                = "XX$teststring") >/dev/null 2>&1 &&
5470             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5471             lt_cv_sys_max_cmd_len=$new_result &&
5472             test $i != 17 # 1/2 MB should be enough
5473     do
5474       i=`expr $i + 1`
5475       teststring=$teststring$teststring
5476     done
5477     teststring=
5478     # Add a significant safety factor because C++ compilers can tack on massive
5479     # amounts of additional arguments before passing them to the linker.
5480     # It appears as though 1/2 is a usable value.
5481     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5482     ;;
5483   esac
5484
5485 fi
5486
5487 if test -n $lt_cv_sys_max_cmd_len ; then
5488   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5489 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5490 else
5491   echo "$as_me:$LINENO: result: none" >&5
5492 echo "${ECHO_T}none" >&6
5493 fi
5494
5495
5496
5497
5498 # Check for command to grab the raw symbol name followed by C symbol from nm.
5499 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5500 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5501 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504
5505 # These are sane defaults that work on at least a few old systems.
5506 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5507
5508 # Character class describing NM global symbol codes.
5509 symcode='[BCDEGRST]'
5510
5511 # Regexp to match symbols that can be accessed directly from C.
5512 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5513
5514 # Transform the above into a raw symbol and a C symbol.
5515 symxfrm='\1 \2\3 \3'
5516
5517 # Transform an extracted symbol line into a proper C declaration
5518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5519
5520 # Transform an extracted symbol line into symbol name and symbol address
5521 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5522
5523 # Define system-specific variables.
5524 case $host_os in
5525 aix*)
5526   symcode='[BCDT]'
5527   ;;
5528 cygwin* | mingw* | pw32*)
5529   symcode='[ABCDGISTW]'
5530   ;;
5531 hpux*) # Its linker distinguishes data from code symbols
5532   if test "$host_cpu" = ia64; then
5533     symcode='[ABCDEGRST]'
5534   fi
5535   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5536   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5537   ;;
5538 irix* | nonstopux*)
5539   symcode='[BCDEGRST]'
5540   ;;
5541 osf*)
5542   symcode='[BCDEGQRST]'
5543   ;;
5544 solaris* | sysv5*)
5545   symcode='[BDRT]'
5546   ;;
5547 sysv4)
5548   symcode='[DFNSTU]'
5549   ;;
5550 esac
5551
5552 # Handle CRLF in mingw tool chain
5553 opt_cr=
5554 case $build_os in
5555 mingw*)
5556   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5557   ;;
5558 esac
5559
5560 # If we're using GNU nm, then use its standard symbol codes.
5561 case `$NM -V 2>&1` in
5562 *GNU* | *'with BFD'*)
5563   symcode='[ABCDGIRSTW]' ;;
5564 esac
5565
5566 # Try without a prefix undercore, then with it.
5567 for ac_symprfx in "" "_"; do
5568
5569   # Write the raw and C identifiers.
5570   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5571
5572   # Check to see that the pipe works correctly.
5573   pipe_works=no
5574
5575   rm -f conftest*
5576   cat > conftest.$ac_ext <<EOF
5577 #ifdef __cplusplus
5578 extern "C" {
5579 #endif
5580 char nm_test_var;
5581 void nm_test_func(){}
5582 #ifdef __cplusplus
5583 }
5584 #endif
5585 int main(){nm_test_var='a';nm_test_func();return(0);}
5586 EOF
5587
5588   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589   (eval $ac_compile) 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); }; then
5593     # Now try to grab the symbols.
5594     nlist=conftest.nm
5595     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5596   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); } && test -s "$nlist"; then
5600       # Try sorting and uniquifying the output.
5601       if sort "$nlist" | uniq > "$nlist"T; then
5602         mv -f "$nlist"T "$nlist"
5603       else
5604         rm -f "$nlist"T
5605       fi
5606
5607       # Make sure that we snagged all the symbols we need.
5608       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5609         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5610           cat <<EOF > conftest.$ac_ext
5611 #ifdef __cplusplus
5612 extern "C" {
5613 #endif
5614
5615 EOF
5616           # Now generate the symbol file.
5617           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5618
5619           cat <<EOF >> conftest.$ac_ext
5620 #if defined (__STDC__) && __STDC__
5621 # define lt_ptr_t void *
5622 #else
5623 # define lt_ptr_t char *
5624 # define const
5625 #endif
5626
5627 /* The mapping between symbol names and symbols. */
5628 const struct {
5629   const char *name;
5630   lt_ptr_t address;
5631 }
5632 lt_preloaded_symbols[] =
5633 {
5634 EOF
5635           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5636           cat <<\EOF >> conftest.$ac_ext
5637   {0, (lt_ptr_t) 0}
5638 };
5639
5640 #ifdef __cplusplus
5641 }
5642 #endif
5643 EOF
5644           # Now try linking the two files.
5645           mv conftest.$ac_objext conftstm.$ac_objext
5646           lt_save_LIBS="$LIBS"
5647           lt_save_CFLAGS="$CFLAGS"
5648           LIBS="conftstm.$ac_objext"
5649           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5650           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651   (eval $ac_link) 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5655             pipe_works=yes
5656           fi
5657           LIBS="$lt_save_LIBS"
5658           CFLAGS="$lt_save_CFLAGS"
5659         else
5660           echo "cannot find nm_test_func in $nlist" >&5
5661         fi
5662       else
5663         echo "cannot find nm_test_var in $nlist" >&5
5664       fi
5665     else
5666       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5667     fi
5668   else
5669     echo "$progname: failed program was:" >&5
5670     cat conftest.$ac_ext >&5
5671   fi
5672   rm -f conftest* conftst*
5673
5674   # Do not use the global_symbol_pipe unless it works.
5675   if test "$pipe_works" = yes; then
5676     break
5677   else
5678     lt_cv_sys_global_symbol_pipe=
5679   fi
5680 done
5681
5682 fi
5683
5684 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5685   lt_cv_sys_global_symbol_to_cdecl=
5686 fi
5687 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5688   echo "$as_me:$LINENO: result: failed" >&5
5689 echo "${ECHO_T}failed" >&6
5690 else
5691   echo "$as_me:$LINENO: result: ok" >&5
5692 echo "${ECHO_T}ok" >&6
5693 fi
5694
5695 echo "$as_me:$LINENO: checking for objdir" >&5
5696 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5697 if test "${lt_cv_objdir+set}" = set; then
5698   echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700   rm -f .libs 2>/dev/null
5701 mkdir .libs 2>/dev/null
5702 if test -d .libs; then
5703   lt_cv_objdir=.libs
5704 else
5705   # MS-DOS does not allow filenames that begin with a dot.
5706   lt_cv_objdir=_libs
5707 fi
5708 rmdir .libs 2>/dev/null
5709 fi
5710 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5711 echo "${ECHO_T}$lt_cv_objdir" >&6
5712 objdir=$lt_cv_objdir
5713
5714
5715
5716
5717
5718 case $host_os in
5719 aix3*)
5720   # AIX sometimes has problems with the GCC collect2 program.  For some
5721   # reason, if we set the COLLECT_NAMES environment variable, the problems
5722   # vanish in a puff of smoke.
5723   if test "X${COLLECT_NAMES+set}" != Xset; then
5724     COLLECT_NAMES=
5725     export COLLECT_NAMES
5726   fi
5727   ;;
5728 esac
5729
5730 # Sed substitution that helps us do robust quoting.  It backslashifies
5731 # metacharacters that are still active within double-quoted strings.
5732 Xsed='sed -e s/^X//'
5733 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5734
5735 # Same as above, but do not quote variable references.
5736 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5737
5738 # Sed substitution to delay expansion of an escaped shell variable in a
5739 # double_quote_subst'ed string.
5740 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5741
5742 # Sed substitution to avoid accidental globbing in evaled expressions
5743 no_glob_subst='s/\*/\\\*/g'
5744
5745 # Constants:
5746 rm="rm -f"
5747
5748 # Global variables:
5749 default_ofile=libtool
5750 can_build_shared=yes
5751
5752 # All known linkers require a `.a' archive for static linking (except M$VC,
5753 # which needs '.lib').
5754 libext=a
5755 ltmain="$ac_aux_dir/ltmain.sh"
5756 ofile="$default_ofile"
5757 with_gnu_ld="$lt_cv_prog_gnu_ld"
5758
5759 if test -n "$ac_tool_prefix"; then
5760   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5761 set dummy ${ac_tool_prefix}ar; ac_word=$2
5762 echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5764 if test "${ac_cv_prog_AR+set}" = set; then
5765   echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767   if test -n "$AR"; then
5768   ac_cv_prog_AR="$AR" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773   IFS=$as_save_IFS
5774   test -z "$as_dir" && as_dir=.
5775   for ac_exec_ext in '' $ac_executable_extensions; do
5776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777     ac_cv_prog_AR="${ac_tool_prefix}ar"
5778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779     break 2
5780   fi
5781 done
5782 done
5783
5784 fi
5785 fi
5786 AR=$ac_cv_prog_AR
5787 if test -n "$AR"; then
5788   echo "$as_me:$LINENO: result: $AR" >&5
5789 echo "${ECHO_T}$AR" >&6
5790 else
5791   echo "$as_me:$LINENO: result: no" >&5
5792 echo "${ECHO_T}no" >&6
5793 fi
5794
5795 fi
5796 if test -z "$ac_cv_prog_AR"; then
5797   ac_ct_AR=$AR
5798   # Extract the first word of "ar", so it can be a program name with args.
5799 set dummy ar; ac_word=$2
5800 echo "$as_me:$LINENO: checking for $ac_word" >&5
5801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5802 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   if test -n "$ac_ct_AR"; then
5806   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811   IFS=$as_save_IFS
5812   test -z "$as_dir" && as_dir=.
5813   for ac_exec_ext in '' $ac_executable_extensions; do
5814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815     ac_cv_prog_ac_ct_AR="ar"
5816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5817     break 2
5818   fi
5819 done
5820 done
5821
5822   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5823 fi
5824 fi
5825 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5826 if test -n "$ac_ct_AR"; then
5827   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5828 echo "${ECHO_T}$ac_ct_AR" >&6
5829 else
5830   echo "$as_me:$LINENO: result: no" >&5
5831 echo "${ECHO_T}no" >&6
5832 fi
5833
5834   AR=$ac_ct_AR
5835 else
5836   AR="$ac_cv_prog_AR"
5837 fi
5838
5839 if test -n "$ac_tool_prefix"; then
5840   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5841 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5842 echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5844 if test "${ac_cv_prog_RANLIB+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   if test -n "$RANLIB"; then
5848   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853   IFS=$as_save_IFS
5854   test -z "$as_dir" && as_dir=.
5855   for ac_exec_ext in '' $ac_executable_extensions; do
5856   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859     break 2
5860   fi
5861 done
5862 done
5863
5864 fi
5865 fi
5866 RANLIB=$ac_cv_prog_RANLIB
5867 if test -n "$RANLIB"; then
5868   echo "$as_me:$LINENO: result: $RANLIB" >&5
5869 echo "${ECHO_T}$RANLIB" >&6
5870 else
5871   echo "$as_me:$LINENO: result: no" >&5
5872 echo "${ECHO_T}no" >&6
5873 fi
5874
5875 fi
5876 if test -z "$ac_cv_prog_RANLIB"; then
5877   ac_ct_RANLIB=$RANLIB
5878   # Extract the first word of "ranlib", so it can be a program name with args.
5879 set dummy ranlib; ac_word=$2
5880 echo "$as_me:$LINENO: checking for $ac_word" >&5
5881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5882 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   if test -n "$ac_ct_RANLIB"; then
5886   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891   IFS=$as_save_IFS
5892   test -z "$as_dir" && as_dir=.
5893   for ac_exec_ext in '' $ac_executable_extensions; do
5894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895     ac_cv_prog_ac_ct_RANLIB="ranlib"
5896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897     break 2
5898   fi
5899 done
5900 done
5901
5902   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5903 fi
5904 fi
5905 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5906 if test -n "$ac_ct_RANLIB"; then
5907   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5908 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5909 else
5910   echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6
5912 fi
5913
5914   RANLIB=$ac_ct_RANLIB
5915 else
5916   RANLIB="$ac_cv_prog_RANLIB"
5917 fi
5918
5919 if test -n "$ac_tool_prefix"; then
5920   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5921 set dummy ${ac_tool_prefix}strip; ac_word=$2
5922 echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5924 if test "${ac_cv_prog_STRIP+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   if test -n "$STRIP"; then
5928   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933   IFS=$as_save_IFS
5934   test -z "$as_dir" && as_dir=.
5935   for ac_exec_ext in '' $ac_executable_extensions; do
5936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939     break 2
5940   fi
5941 done
5942 done
5943
5944 fi
5945 fi
5946 STRIP=$ac_cv_prog_STRIP
5947 if test -n "$STRIP"; then
5948   echo "$as_me:$LINENO: result: $STRIP" >&5
5949 echo "${ECHO_T}$STRIP" >&6
5950 else
5951   echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6
5953 fi
5954
5955 fi
5956 if test -z "$ac_cv_prog_STRIP"; then
5957   ac_ct_STRIP=$STRIP
5958   # Extract the first word of "strip", so it can be a program name with args.
5959 set dummy strip; ac_word=$2
5960 echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5962 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   if test -n "$ac_ct_STRIP"; then
5966   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971   IFS=$as_save_IFS
5972   test -z "$as_dir" && as_dir=.
5973   for ac_exec_ext in '' $ac_executable_extensions; do
5974   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975     ac_cv_prog_ac_ct_STRIP="strip"
5976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977     break 2
5978   fi
5979 done
5980 done
5981
5982   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5983 fi
5984 fi
5985 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5986 if test -n "$ac_ct_STRIP"; then
5987   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5988 echo "${ECHO_T}$ac_ct_STRIP" >&6
5989 else
5990   echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6
5992 fi
5993
5994   STRIP=$ac_ct_STRIP
5995 else
5996   STRIP="$ac_cv_prog_STRIP"
5997 fi
5998
5999
6000 old_CC="$CC"
6001 old_CFLAGS="$CFLAGS"
6002
6003 # Set sane defaults for various variables
6004 test -z "$AR" && AR=ar
6005 test -z "$AR_FLAGS" && AR_FLAGS=cru
6006 test -z "$AS" && AS=as
6007 test -z "$CC" && CC=cc
6008 test -z "$LTCC" && LTCC=$CC
6009 test -z "$DLLTOOL" && DLLTOOL=dlltool
6010 test -z "$LD" && LD=ld
6011 test -z "$LN_S" && LN_S="ln -s"
6012 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6013 test -z "$NM" && NM=nm
6014 test -z "$SED" && SED=sed
6015 test -z "$OBJDUMP" && OBJDUMP=objdump
6016 test -z "$RANLIB" && RANLIB=:
6017 test -z "$STRIP" && STRIP=:
6018 test -z "$ac_objext" && ac_objext=o
6019
6020 # Determine commands to create old-style static archives.
6021 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6022 old_postinstall_cmds='chmod 644 $oldlib'
6023 old_postuninstall_cmds=
6024
6025 if test -n "$RANLIB"; then
6026   case $host_os in
6027   openbsd*)
6028     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6029     ;;
6030   *)
6031     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6032     ;;
6033   esac
6034   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6035 fi
6036
6037 # Only perform the check for file, if the check method requires it
6038 case $deplibs_check_method in
6039 file_magic*)
6040   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6041     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6042 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6043 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   case $MAGIC_CMD in
6047 [\\/*] |  ?:[\\/]*)
6048   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6049   ;;
6050 *)
6051   lt_save_MAGIC_CMD="$MAGIC_CMD"
6052   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6053   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6054   for ac_dir in $ac_dummy; do
6055     IFS="$lt_save_ifs"
6056     test -z "$ac_dir" && ac_dir=.
6057     if test -f $ac_dir/${ac_tool_prefix}file; then
6058       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6059       if test -n "$file_magic_test_file"; then
6060         case $deplibs_check_method in
6061         "file_magic "*)
6062           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6063           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6064           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6065             $EGREP "$file_magic_regex" > /dev/null; then
6066             :
6067           else
6068             cat <<EOF 1>&2
6069
6070 *** Warning: the command libtool uses to detect shared libraries,
6071 *** $file_magic_cmd, produces output that libtool cannot recognize.
6072 *** The result is that libtool may fail to recognize shared libraries
6073 *** as such.  This will affect the creation of libtool libraries that
6074 *** depend on shared libraries, but programs linked with such libtool
6075 *** libraries will work regardless of this problem.  Nevertheless, you
6076 *** may want to report the problem to your system manager and/or to
6077 *** bug-libtool@gnu.org
6078
6079 EOF
6080           fi ;;
6081         esac
6082       fi
6083       break
6084     fi
6085   done
6086   IFS="$lt_save_ifs"
6087   MAGIC_CMD="$lt_save_MAGIC_CMD"
6088   ;;
6089 esac
6090 fi
6091
6092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6093 if test -n "$MAGIC_CMD"; then
6094   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6095 echo "${ECHO_T}$MAGIC_CMD" >&6
6096 else
6097   echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6
6099 fi
6100
6101 if test -z "$lt_cv_path_MAGIC_CMD"; then
6102   if test -n "$ac_tool_prefix"; then
6103     echo "$as_me:$LINENO: checking for file" >&5
6104 echo $ECHO_N "checking for file... $ECHO_C" >&6
6105 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   case $MAGIC_CMD in
6109 [\\/*] |  ?:[\\/]*)
6110   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6111   ;;
6112 *)
6113   lt_save_MAGIC_CMD="$MAGIC_CMD"
6114   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6115   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6116   for ac_dir in $ac_dummy; do
6117     IFS="$lt_save_ifs"
6118     test -z "$ac_dir" && ac_dir=.
6119     if test -f $ac_dir/file; then
6120       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6121       if test -n "$file_magic_test_file"; then
6122         case $deplibs_check_method in
6123         "file_magic "*)
6124           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6125           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6126           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6127             $EGREP "$file_magic_regex" > /dev/null; then
6128             :
6129           else
6130             cat <<EOF 1>&2
6131
6132 *** Warning: the command libtool uses to detect shared libraries,
6133 *** $file_magic_cmd, produces output that libtool cannot recognize.
6134 *** The result is that libtool may fail to recognize shared libraries
6135 *** as such.  This will affect the creation of libtool libraries that
6136 *** depend on shared libraries, but programs linked with such libtool
6137 *** libraries will work regardless of this problem.  Nevertheless, you
6138 *** may want to report the problem to your system manager and/or to
6139 *** bug-libtool@gnu.org
6140
6141 EOF
6142           fi ;;
6143         esac
6144       fi
6145       break
6146     fi
6147   done
6148   IFS="$lt_save_ifs"
6149   MAGIC_CMD="$lt_save_MAGIC_CMD"
6150   ;;
6151 esac
6152 fi
6153
6154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6155 if test -n "$MAGIC_CMD"; then
6156   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6157 echo "${ECHO_T}$MAGIC_CMD" >&6
6158 else
6159   echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6
6161 fi
6162
6163   else
6164     MAGIC_CMD=:
6165   fi
6166 fi
6167
6168   fi
6169   ;;
6170 esac
6171
6172 enable_dlopen=no
6173 enable_win32_dll=no
6174
6175 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6176 if test "${enable_libtool_lock+set}" = set; then
6177   enableval="$enable_libtool_lock"
6178
6179 fi;
6180 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6181
6182
6183 # Check whether --with-pic or --without-pic was given.
6184 if test "${with_pic+set}" = set; then
6185   withval="$with_pic"
6186   pic_mode="$withval"
6187 else
6188   pic_mode=default
6189 fi;
6190 test -z "$pic_mode" && pic_mode=default
6191
6192 # Use C for the default configuration in the libtool script
6193 tagname=
6194 lt_save_CC="$CC"
6195 ac_ext=c
6196 ac_cpp='$CPP $CPPFLAGS'
6197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6200
6201
6202 # Source file extension for C test sources.
6203 ac_ext=c
6204
6205 # Object file extension for compiled C test sources.
6206 objext=o
6207 objext=$objext
6208
6209 # Code to be used in simple compile tests
6210 lt_simple_compile_test_code="int some_variable = 0;\n"
6211
6212 # Code to be used in simple link tests
6213 lt_simple_link_test_code='int main(){return(0);}\n'
6214
6215
6216 # If no C compiler was specified, use CC.
6217 LTCC=${LTCC-"$CC"}
6218
6219 # Allow CC to be a program name with arguments.
6220 compiler=$CC
6221
6222
6223 #
6224 # Check for any special shared library compilation flags.
6225 #
6226 lt_prog_cc_shlib=
6227 if test "$GCC" = no; then
6228   case $host_os in
6229   sco3.2v5*)
6230     lt_prog_cc_shlib='-belf'
6231     ;;
6232   esac
6233 fi
6234 if test -n "$lt_prog_cc_shlib"; then
6235   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6236 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6237   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6238   else
6239     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6240 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6241     lt_cv_prog_cc_can_build_shared=no
6242   fi
6243 fi
6244
6245
6246 #
6247 # Check to make sure the static flag actually works.
6248 #
6249 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6250 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6251 if test "${lt_prog_compiler_static_works+set}" = set; then
6252   echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254   lt_prog_compiler_static_works=no
6255    save_LDFLAGS="$LDFLAGS"
6256    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6257    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6258    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6259      # The compiler can only warn and ignore the option if not recognized
6260      # So say no if there are warnings
6261      if test -s conftest.err; then
6262        # Append any errors to the config.log.
6263        cat conftest.err 1>&5
6264      else
6265        lt_prog_compiler_static_works=yes
6266      fi
6267    fi
6268    $rm conftest*
6269    LDFLAGS="$save_LDFLAGS"
6270
6271 fi
6272 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6273 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6274
6275 if test x"$lt_prog_compiler_static_works" = xyes; then
6276     :
6277 else
6278     lt_prog_compiler_static=
6279 fi
6280
6281
6282
6283
6284 lt_prog_compiler_no_builtin_flag=
6285
6286 if test "$GCC" = yes; then
6287   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6288
6289
6290 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6291 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6292 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6293   echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295   lt_cv_prog_compiler_rtti_exceptions=no
6296   ac_outfile=conftest.$ac_objext
6297    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6298    lt_compiler_flag="-fno-rtti -fno-exceptions"
6299    # Insert the option either (1) after the last *FLAGS variable, or
6300    # (2) before a word containing "conftest.", or (3) at the end.
6301    # Note that $ac_compile itself does not contain backslashes and begins
6302    # with a dollar sign (not a hyphen), so the echo should work correctly.
6303    # The option is referenced via a variable to avoid confusing sed.
6304    lt_compile=`echo "$ac_compile" | $SED \
6305    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6306    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6307    -e 's:$: $lt_compiler_flag:'`
6308    (eval echo "\"\$as_me:6308: $lt_compile\"" >&5)
6309    (eval "$lt_compile" 2>conftest.err)
6310    ac_status=$?
6311    cat conftest.err >&5
6312    echo "$as_me:6312: \$? = $ac_status" >&5
6313    if (exit $ac_status) && test -s "$ac_outfile"; then
6314      # The compiler can only warn and ignore the option if not recognized
6315      # So say no if there are warnings
6316      if test ! -s conftest.err; then
6317        lt_cv_prog_compiler_rtti_exceptions=yes
6318      fi
6319    fi
6320    $rm conftest*
6321
6322 fi
6323 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6324 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6325
6326 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6327     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6328 else
6329     :
6330 fi
6331
6332 fi
6333
6334 lt_prog_compiler_wl=
6335 lt_prog_compiler_pic=
6336 lt_prog_compiler_static=
6337
6338 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6339 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6340
6341   if test "$GCC" = yes; then
6342     lt_prog_compiler_wl='-Wl,'
6343     lt_prog_compiler_static='-static'
6344
6345     case $host_os in
6346       aix*)
6347       # All AIX code is PIC.
6348       if test "$host_cpu" = ia64; then
6349         # AIX 5 now supports IA64 processor
6350         lt_prog_compiler_static='-Bstatic'
6351       fi
6352       ;;
6353
6354     amigaos*)
6355       # FIXME: we need at least 68020 code to build shared libraries, but
6356       # adding the `-m68020' flag to GCC prevents building anything better,
6357       # like `-m68040'.
6358       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6359       ;;
6360
6361     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6362       # PIC is the default for these OSes.
6363       ;;
6364
6365     mingw* | pw32* | os2*)
6366       # This hack is so that the source file can tell whether it is being
6367       # built for inclusion in a dll (and should export symbols for example).
6368       lt_prog_compiler_pic='-DDLL_EXPORT'
6369       ;;
6370
6371     darwin* | rhapsody*)
6372       # PIC is the default on this platform
6373       # Common symbols not allowed in MH_DYLIB files
6374       lt_prog_compiler_pic='-fno-common'
6375       ;;
6376
6377     msdosdjgpp*)
6378       # Just because we use GCC doesn't mean we suddenly get shared libraries
6379       # on systems that don't support them.
6380       lt_prog_compiler_can_build_shared=no
6381       enable_shared=no
6382       ;;
6383
6384     sysv4*MP*)
6385       if test -d /usr/nec; then
6386         lt_prog_compiler_pic=-Kconform_pic
6387       fi
6388       ;;
6389
6390     hpux*)
6391       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6392       # not for PA HP-UX.
6393       case "$host_cpu" in
6394       hppa*64*|ia64*)
6395         # +Z the default
6396         ;;
6397       *)
6398         lt_prog_compiler_pic='-fPIC'
6399         ;;
6400       esac
6401       ;;
6402
6403     *)
6404       lt_prog_compiler_pic='-fPIC'
6405       ;;
6406     esac
6407   else
6408     # PORTME Check for flag to pass linker flags through the system compiler.
6409     case $host_os in
6410     aix*)
6411       lt_prog_compiler_wl='-Wl,'
6412       if test "$host_cpu" = ia64; then
6413         # AIX 5 now supports IA64 processor
6414         lt_prog_compiler_static='-Bstatic'
6415       else
6416         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6417       fi
6418       ;;
6419
6420     mingw* | pw32* | os2*)
6421       # This hack is so that the source file can tell whether it is being
6422       # built for inclusion in a dll (and should export symbols for example).
6423       lt_prog_compiler_pic='-DDLL_EXPORT'
6424       ;;
6425
6426     hpux9* | hpux10* | hpux11*)
6427       lt_prog_compiler_wl='-Wl,'
6428       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6429       # not for PA HP-UX.
6430       case "$host_cpu" in
6431       hppa*64*|ia64*)
6432         # +Z the default
6433         ;;
6434       *)
6435         lt_prog_compiler_pic='+Z'
6436         ;;
6437       esac
6438       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6439       lt_prog_compiler_static='${wl}-a ${wl}archive'
6440       ;;
6441
6442     irix5* | irix6* | nonstopux*)
6443       lt_prog_compiler_wl='-Wl,'
6444       # PIC (with -KPIC) is the default.
6445       lt_prog_compiler_static='-non_shared'
6446       ;;
6447
6448     newsos6)
6449       lt_prog_compiler_pic='-KPIC'
6450       lt_prog_compiler_static='-Bstatic'
6451       ;;
6452
6453     linux*)
6454       case $CC in
6455       icc* | ecc*)
6456         lt_prog_compiler_wl='-Wl,'
6457         lt_prog_compiler_pic='-KPIC'
6458         lt_prog_compiler_static='-static'
6459         ;;
6460       ccc*)
6461         lt_prog_compiler_wl='-Wl,'
6462         # All Alpha code is PIC.
6463         lt_prog_compiler_static='-non_shared'
6464         ;;
6465       esac
6466       ;;
6467
6468     osf3* | osf4* | osf5*)
6469       lt_prog_compiler_wl='-Wl,'
6470       # All OSF/1 code is PIC.
6471       lt_prog_compiler_static='-non_shared'
6472       ;;
6473
6474     sco3.2v5*)
6475       lt_prog_compiler_pic='-Kpic'
6476       lt_prog_compiler_static='-dn'
6477       ;;
6478
6479     solaris*)
6480       lt_prog_compiler_wl='-Wl,'
6481       lt_prog_compiler_pic='-KPIC'
6482       lt_prog_compiler_static='-Bstatic'
6483       ;;
6484
6485     sunos4*)
6486       lt_prog_compiler_wl='-Qoption ld '
6487       lt_prog_compiler_pic='-PIC'
6488       lt_prog_compiler_static='-Bstatic'
6489       ;;
6490
6491     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6492       lt_prog_compiler_wl='-Wl,'
6493       lt_prog_compiler_pic='-KPIC'
6494       lt_prog_compiler_static='-Bstatic'
6495       ;;
6496
6497     sysv4*MP*)
6498       if test -d /usr/nec ;then
6499         lt_prog_compiler_pic='-Kconform_pic'
6500         lt_prog_compiler_static='-Bstatic'
6501       fi
6502       ;;
6503
6504     uts4*)
6505       lt_prog_compiler_pic='-pic'
6506       lt_prog_compiler_static='-Bstatic'
6507       ;;
6508
6509     *)
6510       lt_prog_compiler_can_build_shared=no
6511       ;;
6512     esac
6513   fi
6514
6515 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6516 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6517
6518 #
6519 # Check to make sure the PIC flag actually works.
6520 #
6521 if test -n "$lt_prog_compiler_pic"; then
6522
6523 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6524 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6525 if test "${lt_prog_compiler_pic_works+set}" = set; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   lt_prog_compiler_pic_works=no
6529   ac_outfile=conftest.$ac_objext
6530    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6531    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6532    # Insert the option either (1) after the last *FLAGS variable, or
6533    # (2) before a word containing "conftest.", or (3) at the end.
6534    # Note that $ac_compile itself does not contain backslashes and begins
6535    # with a dollar sign (not a hyphen), so the echo should work correctly.
6536    # The option is referenced via a variable to avoid confusing sed.
6537    lt_compile=`echo "$ac_compile" | $SED \
6538    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6540    -e 's:$: $lt_compiler_flag:'`
6541    (eval echo "\"\$as_me:6541: $lt_compile\"" >&5)
6542    (eval "$lt_compile" 2>conftest.err)
6543    ac_status=$?
6544    cat conftest.err >&5
6545    echo "$as_me:6545: \$? = $ac_status" >&5
6546    if (exit $ac_status) && test -s "$ac_outfile"; then
6547      # The compiler can only warn and ignore the option if not recognized
6548      # So say no if there are warnings
6549      if test ! -s conftest.err; then
6550        lt_prog_compiler_pic_works=yes
6551      fi
6552    fi
6553    $rm conftest*
6554
6555 fi
6556 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6557 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6558
6559 if test x"$lt_prog_compiler_pic_works" = xyes; then
6560     case $lt_prog_compiler_pic in
6561      "" | " "*) ;;
6562      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6563      esac
6564 else
6565     lt_prog_compiler_pic=
6566      lt_prog_compiler_can_build_shared=no
6567 fi
6568
6569 fi
6570 case "$host_os" in
6571   # For platforms which do not support PIC, -DPIC is meaningless:
6572   *djgpp*)
6573     lt_prog_compiler_pic=
6574     ;;
6575   *)
6576     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6577     ;;
6578 esac
6579
6580 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6581 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6582 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585   lt_cv_prog_compiler_c_o=no
6586    $rm -r conftest 2>/dev/null
6587    mkdir conftest
6588    cd conftest
6589    mkdir out
6590    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6591
6592    lt_compiler_flag="-o out/conftest2.$ac_objext"
6593    # Insert the option either (1) after the last *FLAGS variable, or
6594    # (2) before a word containing "conftest.", or (3) at the end.
6595    # Note that $ac_compile itself does not contain backslashes and begins
6596    # with a dollar sign (not a hyphen), so the echo should work correctly.
6597    lt_compile=`echo "$ac_compile" | $SED \
6598    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6599    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6600    -e 's:$: $lt_compiler_flag:'`
6601    (eval echo "\"\$as_me:6601: $lt_compile\"" >&5)
6602    (eval "$lt_compile" 2>out/conftest.err)
6603    ac_status=$?
6604    cat out/conftest.err >&5
6605    echo "$as_me:6605: \$? = $ac_status" >&5
6606    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6607    then
6608      # The compiler can only warn and ignore the option if not recognized
6609      # So say no if there are warnings
6610      if test ! -s out/conftest.err; then
6611        lt_cv_prog_compiler_c_o=yes
6612      fi
6613    fi
6614    chmod u+w .
6615    $rm conftest*
6616    # SGI C++ compiler will create directory out/ii_files/ for
6617    # template instantiation
6618    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6619    $rm out/* && rmdir out
6620    cd ..
6621    rmdir conftest
6622    $rm conftest*
6623
6624 fi
6625 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6626 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6627
6628
6629 hard_links="nottested"
6630 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6631   # do not overwrite the value of need_locks provided by the user
6632   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6633 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6634   hard_links=yes
6635   $rm conftest*
6636   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6637   touch conftest.a
6638   ln conftest.a conftest.b 2>&5 || hard_links=no
6639   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6640   echo "$as_me:$LINENO: result: $hard_links" >&5
6641 echo "${ECHO_T}$hard_links" >&6
6642   if test "$hard_links" = no; then
6643     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6644 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6645     need_locks=warn
6646   fi
6647 else
6648   need_locks=no
6649 fi
6650
6651 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6652 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6653
6654   runpath_var=
6655   allow_undefined_flag=
6656   enable_shared_with_static_runtimes=no
6657   archive_cmds=
6658   archive_expsym_cmds=
6659   old_archive_From_new_cmds=
6660   old_archive_from_expsyms_cmds=
6661   export_dynamic_flag_spec=
6662   whole_archive_flag_spec=
6663   thread_safe_flag_spec=
6664   hardcode_libdir_flag_spec=
6665   hardcode_libdir_flag_spec_ld=
6666   hardcode_libdir_separator=
6667   hardcode_direct=no
6668   hardcode_minus_L=no
6669   hardcode_shlibpath_var=unsupported
6670   link_all_deplibs=unknown
6671   hardcode_automatic=no
6672   module_cmds=
6673   module_expsym_cmds=
6674   always_export_symbols=no
6675   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6676   # include_expsyms should be a list of space-separated symbols to be *always*
6677   # included in the symbol list
6678   include_expsyms=
6679   # exclude_expsyms can be an extended regexp of symbols to exclude
6680   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6681   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6682   # as well as any symbol that contains `d'.
6683   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6684   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6685   # platforms (ab)use it in PIC code, but their linkers get confused if
6686   # the symbol is explicitly referenced.  Since portable code cannot
6687   # rely on this symbol name, it's probably fine to never include it in
6688   # preloaded symbol tables.
6689   extract_expsyms_cmds=
6690
6691   case $host_os in
6692   cygwin* | mingw* | pw32*)
6693     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6694     # When not using gcc, we currently assume that we are using
6695     # Microsoft Visual C++.
6696     if test "$GCC" != yes; then
6697       with_gnu_ld=no
6698     fi
6699     ;;
6700   openbsd*)
6701     with_gnu_ld=no
6702     ;;
6703   esac
6704
6705   ld_shlibs=yes
6706   if test "$with_gnu_ld" = yes; then
6707     # If archive_cmds runs LD, not CC, wlarc should be empty
6708     wlarc='${wl}'
6709
6710     # See if GNU ld supports shared libraries.
6711     case $host_os in
6712     aix3* | aix4* | aix5*)
6713       # On AIX/PPC, the GNU linker is very broken
6714       if test "$host_cpu" != ia64; then
6715         ld_shlibs=no
6716         cat <<EOF 1>&2
6717
6718 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6719 *** to be unable to reliably create shared libraries on AIX.
6720 *** Therefore, libtool is disabling shared libraries support.  If you
6721 *** really care for shared libraries, you may want to modify your PATH
6722 *** so that a non-GNU linker is found, and then restart.
6723
6724 EOF
6725       fi
6726       ;;
6727
6728     amigaos*)
6729       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6730       hardcode_libdir_flag_spec='-L$libdir'
6731       hardcode_minus_L=yes
6732
6733       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6734       # that the semantics of dynamic libraries on AmigaOS, at least up
6735       # to version 4, is to share data among multiple programs linked
6736       # with the same dynamic library.  Since this doesn't match the
6737       # behavior of shared libraries on other platforms, we can't use
6738       # them.
6739       ld_shlibs=no
6740       ;;
6741
6742     beos*)
6743       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6744         allow_undefined_flag=unsupported
6745         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6746         # support --undefined.  This deserves some investigation.  FIXME
6747         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6748       else
6749         ld_shlibs=no
6750       fi
6751       ;;
6752
6753     cygwin* | mingw* | pw32*)
6754       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6755       # as there is no search path for DLLs.
6756       hardcode_libdir_flag_spec='-L$libdir'
6757       allow_undefined_flag=unsupported
6758       always_export_symbols=no
6759       enable_shared_with_static_runtimes=yes
6760       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6761
6762       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6763         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6764         # If the export-symbols file already is a .def file (1st line
6765         # is EXPORTS), use it as is; otherwise, prepend...
6766         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6767           cp $export_symbols $output_objdir/$soname.def;
6768         else
6769           echo EXPORTS > $output_objdir/$soname.def;
6770           cat $export_symbols >> $output_objdir/$soname.def;
6771         fi~
6772         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6773       else
6774         ld_shlibs=no
6775       fi
6776       ;;
6777
6778     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6779       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6780         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6781         wlarc=
6782       else
6783         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6784         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6785       fi
6786       ;;
6787
6788     solaris* | sysv5*)
6789       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6790         ld_shlibs=no
6791         cat <<EOF 1>&2
6792
6793 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6794 *** create shared libraries on Solaris systems.  Therefore, libtool
6795 *** is disabling shared libraries support.  We urge you to upgrade GNU
6796 *** binutils to release 2.9.1 or newer.  Another option is to modify
6797 *** your PATH or compiler configuration so that the native linker is
6798 *** used, and then restart.
6799
6800 EOF
6801       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6802         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6803         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6804       else
6805         ld_shlibs=no
6806       fi
6807       ;;
6808
6809     sunos4*)
6810       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6811       wlarc=
6812       hardcode_direct=yes
6813       hardcode_shlibpath_var=no
6814       ;;
6815
6816   linux*)
6817     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6818         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6819         archive_cmds="$tmp_archive_cmds"
6820       supports_anon_versioning=no
6821       case `$LD -v 2>/dev/null` in
6822         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6823         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6824         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6825         *\ 2.11.*) ;; # other 2.11 versions
6826         *) supports_anon_versioning=yes ;;
6827       esac
6828       if test $supports_anon_versioning = yes; then
6829         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6830 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6831 $echo "local: *; };" >> $output_objdir/$libname.ver~
6832         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6833       else
6834         archive_expsym_cmds="$tmp_archive_cmds"
6835       fi
6836       link_all_deplibs=no
6837     else
6838       ld_shlibs=no
6839     fi
6840     ;;
6841
6842     *)
6843       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6844         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6845         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6846       else
6847         ld_shlibs=no
6848       fi
6849       ;;
6850     esac
6851
6852     if test "$ld_shlibs" = yes; then
6853       runpath_var=LD_RUN_PATH
6854       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6855       export_dynamic_flag_spec='${wl}--export-dynamic'
6856       # ancient GNU ld didn't support --whole-archive et. al.
6857       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6858         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6859       else
6860         whole_archive_flag_spec=
6861       fi
6862     fi
6863   else
6864     # PORTME fill in a description of your system's linker (not GNU ld)
6865     case $host_os in
6866     aix3*)
6867       allow_undefined_flag=unsupported
6868       always_export_symbols=yes
6869       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6870       # Note: this linker hardcodes the directories in LIBPATH if there
6871       # are no directories specified by -L.
6872       hardcode_minus_L=yes
6873       if test "$GCC" = yes && test -z "$link_static_flag"; then
6874         # Neither direct hardcoding nor static linking is supported with a
6875         # broken collect2.
6876         hardcode_direct=unsupported
6877       fi
6878       ;;
6879
6880     aix4* | aix5*)
6881       if test "$host_cpu" = ia64; then
6882         # On IA64, the linker does run time linking by default, so we don't
6883         # have to do anything special.
6884         aix_use_runtimelinking=no
6885         exp_sym_flag='-Bexport'
6886         no_entry_flag=""
6887       else
6888         # If we're using GNU nm, then we don't want the "-C" option.
6889         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6890         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6891           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6892         else
6893           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6894         fi
6895         aix_use_runtimelinking=no
6896
6897         # Test if we are trying to use run time linking or normal
6898         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6899         # need to do runtime linking.
6900         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6901           for ld_flag in $LDFLAGS; do
6902           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6903             aix_use_runtimelinking=yes
6904             break
6905           fi
6906           done
6907         esac
6908
6909         exp_sym_flag='-bexport'
6910         no_entry_flag='-bnoentry'
6911       fi
6912
6913       # When large executables or shared objects are built, AIX ld can
6914       # have problems creating the table of contents.  If linking a library
6915       # or program results in "error TOC overflow" add -mminimal-toc to
6916       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6917       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6918
6919       archive_cmds=''
6920       hardcode_direct=yes
6921       hardcode_libdir_separator=':'
6922       link_all_deplibs=yes
6923
6924       if test "$GCC" = yes; then
6925         case $host_os in aix4.012|aix4.012.*)
6926         # We only want to do this on AIX 4.2 and lower, the check
6927         # below for broken collect2 doesn't work under 4.3+
6928           collect2name=`${CC} -print-prog-name=collect2`
6929           if test -f "$collect2name" && \
6930            strings "$collect2name" | grep resolve_lib_name >/dev/null
6931           then
6932           # We have reworked collect2
6933           hardcode_direct=yes
6934           else
6935           # We have old collect2
6936           hardcode_direct=unsupported
6937           # It fails to find uninstalled libraries when the uninstalled
6938           # path is not listed in the libpath.  Setting hardcode_minus_L
6939           # to unsupported forces relinking
6940           hardcode_minus_L=yes
6941           hardcode_libdir_flag_spec='-L$libdir'
6942           hardcode_libdir_separator=
6943           fi
6944         esac
6945         shared_flag='-shared'
6946       else
6947         # not using gcc
6948         if test "$host_cpu" = ia64; then
6949         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6950         # chokes on -Wl,-G. The following line is correct:
6951           shared_flag='-G'
6952         else
6953         if test "$aix_use_runtimelinking" = yes; then
6954             shared_flag='${wl}-G'
6955           else
6956             shared_flag='${wl}-bM:SRE'
6957         fi
6958         fi
6959       fi
6960
6961       # It seems that -bexpall does not export symbols beginning with
6962       # underscore (_), so it is better to generate a list of symbols to export.
6963       always_export_symbols=yes
6964       if test "$aix_use_runtimelinking" = yes; then
6965         # Warning - without using the other runtime loading flags (-brtl),
6966         # -berok will link without error, but may produce a broken library.
6967         allow_undefined_flag='-berok'
6968        # Determine the default libpath from the value encoded in an empty executable.
6969        cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h.  */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h.  */
6975
6976 int
6977 main ()
6978 {
6979
6980   ;
6981   return 0;
6982 }
6983 _ACEOF
6984 rm -f conftest.$ac_objext conftest$ac_exeext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6986   (eval $ac_link) 2>conftest.er1
6987   ac_status=$?
6988   grep -v '^ *+' conftest.er1 >conftest.err
6989   rm -f conftest.er1
6990   cat conftest.err >&5
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); } &&
6993          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995   (eval $ac_try) 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); }; } &&
6999          { ac_try='test -s conftest$ac_exeext'
7000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001   (eval $ac_try) 2>&5
7002   ac_status=$?
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); }; }; then
7005
7006 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7007 }'`
7008 # Check for a 64-bit object if we didn't find anything.
7009 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7010 }'`; fi
7011 else
7012   echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7014
7015 fi
7016 rm -f conftest.err conftest.$ac_objext \
7017       conftest$ac_exeext conftest.$ac_ext
7018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7019
7020        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7021         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7022        else
7023         if test "$host_cpu" = ia64; then
7024           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7025           allow_undefined_flag="-z nodefs"
7026           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7027         else
7028          # Determine the default libpath from the value encoded in an empty executable.
7029          cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h.  */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h.  */
7035
7036 int
7037 main ()
7038 {
7039
7040   ;
7041   return 0;
7042 }
7043 _ACEOF
7044 rm -f conftest.$ac_objext conftest$ac_exeext
7045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046   (eval $ac_link) 2>conftest.er1
7047   ac_status=$?
7048   grep -v '^ *+' conftest.er1 >conftest.err
7049   rm -f conftest.er1
7050   cat conftest.err >&5
7051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052   (exit $ac_status); } &&
7053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055   (eval $ac_try) 2>&5
7056   ac_status=$?
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); }; } &&
7059          { ac_try='test -s conftest$ac_exeext'
7060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061   (eval $ac_try) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; }; then
7065
7066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7067 }'`
7068 # Check for a 64-bit object if we didn't find anything.
7069 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7070 }'`; fi
7071 else
7072   echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7074
7075 fi
7076 rm -f conftest.err conftest.$ac_objext \
7077       conftest$ac_exeext conftest.$ac_ext
7078 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7079
7080          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7081           # Warning - without using the other run time loading flags,
7082           # -berok will link without error, but may produce a broken library.
7083           no_undefined_flag=' ${wl}-bernotok'
7084           allow_undefined_flag=' ${wl}-berok'
7085           # -bexpall does not export symbols beginning with underscore (_)
7086           always_export_symbols=yes
7087           # Exported symbols can be pulled into shared objects from archives
7088           whole_archive_flag_spec=' '
7089           archive_cmds_need_lc=yes
7090           # This is similar to how AIX traditionally builds it's shared libraries.
7091           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7092         fi
7093       fi
7094       ;;
7095
7096     amigaos*)
7097       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7098       hardcode_libdir_flag_spec='-L$libdir'
7099       hardcode_minus_L=yes
7100       # see comment about different semantics on the GNU ld section
7101       ld_shlibs=no
7102       ;;
7103
7104     bsdi4*)
7105       export_dynamic_flag_spec=-rdynamic
7106       ;;
7107
7108     cygwin* | mingw* | pw32*)
7109       # When not using gcc, we currently assume that we are using
7110       # Microsoft Visual C++.
7111       # hardcode_libdir_flag_spec is actually meaningless, as there is
7112       # no search path for DLLs.
7113       hardcode_libdir_flag_spec=' '
7114       allow_undefined_flag=unsupported
7115       # Tell ltmain to make .lib files, not .a files.
7116       libext=lib
7117       # Tell ltmain to make .dll files, not .so files.
7118       shrext_cmds=".dll"
7119       # FIXME: Setting linknames here is a bad hack.
7120       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7121       # The linker will automatically build a .lib file if we build a DLL.
7122       old_archive_From_new_cmds='true'
7123       # FIXME: Should let the user specify the lib program.
7124       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7125       fix_srcfile_path='`cygpath -w "$srcfile"`'
7126       enable_shared_with_static_runtimes=yes
7127       ;;
7128
7129     darwin* | rhapsody*)
7130     if test "$GXX" = yes ; then
7131       archive_cmds_need_lc=no
7132       case "$host_os" in
7133       rhapsody* | darwin1.[012])
7134         allow_undefined_flag='-undefined suppress'
7135         ;;
7136       *) # Darwin 1.3 on
7137       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7138         allow_undefined_flag='-flat_namespace -undefined suppress'
7139       else
7140         case ${MACOSX_DEPLOYMENT_TARGET} in
7141           10.[012])
7142             allow_undefined_flag='-flat_namespace -undefined suppress'
7143             ;;
7144           10.*)
7145             allow_undefined_flag='-undefined dynamic_lookup'
7146             ;;
7147         esac
7148       fi
7149         ;;
7150       esac
7151         lt_int_apple_cc_single_mod=no
7152         output_verbose_link_cmd='echo'
7153         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7154           lt_int_apple_cc_single_mod=yes
7155         fi
7156         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7157           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7158         else
7159         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7160       fi
7161       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7162       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7163         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7164           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7165         else
7166           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7167         fi
7168           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7169       hardcode_direct=no
7170       hardcode_automatic=yes
7171       hardcode_shlibpath_var=unsupported
7172       whole_archive_flag_spec='-all_load $convenience'
7173       link_all_deplibs=yes
7174     else
7175       ld_shlibs=no
7176     fi
7177       ;;
7178
7179     dgux*)
7180       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7181       hardcode_libdir_flag_spec='-L$libdir'
7182       hardcode_shlibpath_var=no
7183       ;;
7184
7185     freebsd1*)
7186       ld_shlibs=no
7187       ;;
7188
7189     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7190     # support.  Future versions do this automatically, but an explicit c++rt0.o
7191     # does not break anything, and helps significantly (at the cost of a little
7192     # extra space).
7193     freebsd2.2*)
7194       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7195       hardcode_libdir_flag_spec='-R$libdir'
7196       hardcode_direct=yes
7197       hardcode_shlibpath_var=no
7198       ;;
7199
7200     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7201     freebsd2*)
7202       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7203       hardcode_direct=yes
7204       hardcode_minus_L=yes
7205       hardcode_shlibpath_var=no
7206       ;;
7207
7208     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7209     freebsd* | kfreebsd*-gnu)
7210       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7211       hardcode_libdir_flag_spec='-R$libdir'
7212       hardcode_direct=yes
7213       hardcode_shlibpath_var=no
7214       ;;
7215
7216     hpux9*)
7217       if test "$GCC" = yes; then
7218         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7219       else
7220         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7221       fi
7222       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7223       hardcode_libdir_separator=:
7224       hardcode_direct=yes
7225
7226       # hardcode_minus_L: Not really in the search PATH,
7227       # but as the default location of the library.
7228       hardcode_minus_L=yes
7229       export_dynamic_flag_spec='${wl}-E'
7230       ;;
7231
7232     hpux10* | hpux11*)
7233       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7234         case "$host_cpu" in
7235         hppa*64*|ia64*)
7236           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7237           ;;
7238         *)
7239           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7240           ;;
7241         esac
7242       else
7243         case "$host_cpu" in
7244         hppa*64*|ia64*)
7245           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7246           ;;
7247         *)
7248           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7249           ;;
7250         esac
7251       fi
7252       if test "$with_gnu_ld" = no; then
7253         case "$host_cpu" in
7254         hppa*64*)
7255           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7256           hardcode_libdir_flag_spec_ld='+b $libdir'
7257           hardcode_libdir_separator=:
7258           hardcode_direct=no
7259           hardcode_shlibpath_var=no
7260           ;;
7261         ia64*)
7262           hardcode_libdir_flag_spec='-L$libdir'
7263           hardcode_direct=no
7264           hardcode_shlibpath_var=no
7265
7266           # hardcode_minus_L: Not really in the search PATH,
7267           # but as the default location of the library.
7268           hardcode_minus_L=yes
7269           ;;
7270         *)
7271           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7272           hardcode_libdir_separator=:
7273           hardcode_direct=yes
7274           export_dynamic_flag_spec='${wl}-E'
7275
7276           # hardcode_minus_L: Not really in the search PATH,
7277           # but as the default location of the library.
7278           hardcode_minus_L=yes
7279           ;;
7280         esac
7281       fi
7282       ;;
7283
7284     irix5* | irix6* | nonstopux*)
7285       if test "$GCC" = yes; then
7286         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7287       else
7288         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7289         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7290       fi
7291       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7292       hardcode_libdir_separator=:
7293       link_all_deplibs=yes
7294       ;;
7295
7296     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7297       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7298         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7299       else
7300         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7301       fi
7302       hardcode_libdir_flag_spec='-R$libdir'
7303       hardcode_direct=yes
7304       hardcode_shlibpath_var=no
7305       ;;
7306
7307     newsos6)
7308       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7309       hardcode_direct=yes
7310       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7311       hardcode_libdir_separator=:
7312       hardcode_shlibpath_var=no
7313       ;;
7314
7315     openbsd*)
7316       hardcode_direct=yes
7317       hardcode_shlibpath_var=no
7318       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7319         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7320         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7321         export_dynamic_flag_spec='${wl}-E'
7322       else
7323        case $host_os in
7324          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7325            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7326            hardcode_libdir_flag_spec='-R$libdir'
7327            ;;
7328          *)
7329            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7330            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7331            ;;
7332        esac
7333       fi
7334       ;;
7335
7336     os2*)
7337       hardcode_libdir_flag_spec='-L$libdir'
7338       hardcode_minus_L=yes
7339       allow_undefined_flag=unsupported
7340       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7341       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7342       ;;
7343
7344     osf3*)
7345       if test "$GCC" = yes; then
7346         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7347         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7348       else
7349         allow_undefined_flag=' -expect_unresolved \*'
7350         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7351       fi
7352       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7353       hardcode_libdir_separator=:
7354       ;;
7355
7356     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7357       if test "$GCC" = yes; then
7358         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7359         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7360         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7361       else
7362         allow_undefined_flag=' -expect_unresolved \*'
7363         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7364         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7365         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7366
7367         # Both c and cxx compiler support -rpath directly
7368         hardcode_libdir_flag_spec='-rpath $libdir'
7369       fi
7370       hardcode_libdir_separator=:
7371       ;;
7372
7373     sco3.2v5*)
7374       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7375       hardcode_shlibpath_var=no
7376       export_dynamic_flag_spec='${wl}-Bexport'
7377       runpath_var=LD_RUN_PATH
7378       hardcode_runpath_var=yes
7379       ;;
7380
7381     solaris*)
7382       no_undefined_flag=' -z text'
7383       if test "$GCC" = yes; then
7384         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7385         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7386           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7387       else
7388         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7389         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7390         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7391       fi
7392       hardcode_libdir_flag_spec='-R$libdir'
7393       hardcode_shlibpath_var=no
7394       case $host_os in
7395       solaris2.[0-5] | solaris2.[0-5].*) ;;
7396       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7397         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7398       esac
7399       link_all_deplibs=yes
7400       ;;
7401
7402     sunos4*)
7403       if test "x$host_vendor" = xsequent; then
7404         # Use $CC to link under sequent, because it throws in some extra .o
7405         # files that make .init and .fini sections work.
7406         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7407       else
7408         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7409       fi
7410       hardcode_libdir_flag_spec='-L$libdir'
7411       hardcode_direct=yes
7412       hardcode_minus_L=yes
7413       hardcode_shlibpath_var=no
7414       ;;
7415
7416     sysv4)
7417       case $host_vendor in
7418         sni)
7419           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7420           hardcode_direct=yes # is this really true???
7421         ;;
7422         siemens)
7423           ## LD is ld it makes a PLAMLIB
7424           ## CC just makes a GrossModule.
7425           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7426           reload_cmds='$CC -r -o $output$reload_objs'
7427           hardcode_direct=no
7428         ;;
7429         motorola)
7430           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7431           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7432         ;;
7433       esac
7434       runpath_var='LD_RUN_PATH'
7435       hardcode_shlibpath_var=no
7436       ;;
7437
7438     sysv4.3*)
7439       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7440       hardcode_shlibpath_var=no
7441       export_dynamic_flag_spec='-Bexport'
7442       ;;
7443
7444     sysv4*MP*)
7445       if test -d /usr/nec; then
7446         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7447         hardcode_shlibpath_var=no
7448         runpath_var=LD_RUN_PATH
7449         hardcode_runpath_var=yes
7450         ld_shlibs=yes
7451       fi
7452       ;;
7453
7454     sysv4.2uw2*)
7455       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7456       hardcode_direct=yes
7457       hardcode_minus_L=no
7458       hardcode_shlibpath_var=no
7459       hardcode_runpath_var=yes
7460       runpath_var=LD_RUN_PATH
7461       ;;
7462
7463    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7464       no_undefined_flag='${wl}-z ${wl}text'
7465       if test "$GCC" = yes; then
7466         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7467       else
7468         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7469       fi
7470       runpath_var='LD_RUN_PATH'
7471       hardcode_shlibpath_var=no
7472       ;;
7473
7474     sysv5*)
7475       no_undefined_flag=' -z text'
7476       # $CC -shared without GNU ld will not create a library from C++
7477       # object files and a static libstdc++, better avoid it by now
7478       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7479       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7480                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7481       hardcode_libdir_flag_spec=
7482       hardcode_shlibpath_var=no
7483       runpath_var='LD_RUN_PATH'
7484       ;;
7485
7486     uts4*)
7487       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7488       hardcode_libdir_flag_spec='-L$libdir'
7489       hardcode_shlibpath_var=no
7490       ;;
7491
7492     *)
7493       ld_shlibs=no
7494       ;;
7495     esac
7496   fi
7497
7498 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7499 echo "${ECHO_T}$ld_shlibs" >&6
7500 test "$ld_shlibs" = no && can_build_shared=no
7501
7502 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7503 if test "$GCC" = yes; then
7504   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7505 fi
7506
7507 #
7508 # Do we need to explicitly link libc?
7509 #
7510 case "x$archive_cmds_need_lc" in
7511 x|xyes)
7512   # Assume -lc should be added
7513   archive_cmds_need_lc=yes
7514
7515   if test "$enable_shared" = yes && test "$GCC" = yes; then
7516     case $archive_cmds in
7517     *'~'*)
7518       # FIXME: we may have to deal with multi-command sequences.
7519       ;;
7520     '$CC '*)
7521       # Test whether the compiler implicitly links with -lc since on some
7522       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7523       # to ld, don't add -lc before -lgcc.
7524       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7525 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7526       $rm conftest*
7527       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7528
7529       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7530   (eval $ac_compile) 2>&5
7531   ac_status=$?
7532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533   (exit $ac_status); } 2>conftest.err; then
7534         soname=conftest
7535         lib=conftest
7536         libobjs=conftest.$ac_objext
7537         deplibs=
7538         wl=$lt_prog_compiler_wl
7539         compiler_flags=-v
7540         linker_flags=-v
7541         verstring=
7542         output_objdir=.
7543         libname=conftest
7544         lt_save_allow_undefined_flag=$allow_undefined_flag
7545         allow_undefined_flag=
7546         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7547   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7548   ac_status=$?
7549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550   (exit $ac_status); }
7551         then
7552           archive_cmds_need_lc=no
7553         else
7554           archive_cmds_need_lc=yes
7555         fi
7556         allow_undefined_flag=$lt_save_allow_undefined_flag
7557       else
7558         cat conftest.err 1>&5
7559       fi
7560       $rm conftest*
7561       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7562 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7563       ;;
7564     esac
7565   fi
7566   ;;
7567 esac
7568
7569 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7570 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7571 library_names_spec=
7572 libname_spec='lib$name'
7573 soname_spec=
7574 shrext_cmds=".so"
7575 postinstall_cmds=
7576 postuninstall_cmds=
7577 finish_cmds=
7578 finish_eval=
7579 shlibpath_var=
7580 shlibpath_overrides_runpath=unknown
7581 version_type=none
7582 dynamic_linker="$host_os ld.so"
7583 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7584 if test "$GCC" = yes; then
7585   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7586   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7587     # if the path contains ";" then we assume it to be the separator
7588     # otherwise default to the standard path separator (i.e. ":") - it is
7589     # assumed that no part of a normal pathname contains ";" but that should
7590     # okay in the real world where ";" in dirpaths is itself problematic.
7591     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7592   else
7593     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7594   fi
7595 else
7596   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7597 fi
7598 need_lib_prefix=unknown
7599 hardcode_into_libs=no
7600
7601 # when you set need_version to no, make sure it does not cause -set_version
7602 # flags to be left without arguments
7603 need_version=unknown
7604
7605 case $host_os in
7606 aix3*)
7607   version_type=linux
7608   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7609   shlibpath_var=LIBPATH
7610
7611   # AIX 3 has no versioning support, so we append a major version to the name.
7612   soname_spec='${libname}${release}${shared_ext}$major'
7613   ;;
7614
7615 aix4* | aix5*)
7616   version_type=linux
7617   need_lib_prefix=no
7618   need_version=no
7619   hardcode_into_libs=yes
7620   if test "$host_cpu" = ia64; then
7621     # AIX 5 supports IA64
7622     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7623     shlibpath_var=LD_LIBRARY_PATH
7624   else
7625     # With GCC up to 2.95.x, collect2 would create an import file
7626     # for dependence libraries.  The import file would start with
7627     # the line `#! .'.  This would cause the generated library to
7628     # depend on `.', always an invalid library.  This was fixed in
7629     # development snapshots of GCC prior to 3.0.
7630     case $host_os in
7631       aix4 | aix4.[01] | aix4.[01].*)
7632       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7633            echo ' yes '
7634            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7635         :
7636       else
7637         can_build_shared=no
7638       fi
7639       ;;
7640     esac
7641     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7642     # soname into executable. Probably we can add versioning support to
7643     # collect2, so additional links can be useful in future.
7644     if test "$aix_use_runtimelinking" = yes; then
7645       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7646       # instead of lib<name>.a to let people know that these are not
7647       # typical AIX shared libraries.
7648       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7649     else
7650       # We preserve .a as extension for shared libraries through AIX4.2
7651       # and later when we are not doing run time linking.
7652       library_names_spec='${libname}${release}.a $libname.a'
7653       soname_spec='${libname}${release}${shared_ext}$major'
7654     fi
7655     shlibpath_var=LIBPATH
7656   fi
7657   ;;
7658
7659 amigaos*)
7660   library_names_spec='$libname.ixlibrary $libname.a'
7661   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7662   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
7663   ;;
7664
7665 beos*)
7666   library_names_spec='${libname}${shared_ext}'
7667   dynamic_linker="$host_os ld.so"
7668   shlibpath_var=LIBRARY_PATH
7669   ;;
7670
7671 bsdi4*)
7672   version_type=linux
7673   need_version=no
7674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7675   soname_spec='${libname}${release}${shared_ext}$major'
7676   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7677   shlibpath_var=LD_LIBRARY_PATH
7678   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7679   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7680   # the default ld.so.conf also contains /usr/contrib/lib and
7681   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7682   # libtool to hard-code these into programs
7683   ;;
7684
7685 cygwin* | mingw* | pw32*)
7686   version_type=windows
7687   shrext_cmds=".dll"
7688   need_version=no
7689   need_lib_prefix=no
7690
7691   case $GCC,$host_os in
7692   yes,cygwin* | yes,mingw* | yes,pw32*)
7693     library_names_spec='$libname.dll.a'
7694     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7695     postinstall_cmds='base_file=`basename \${file}`~
7696       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7697       dldir=$destdir/`dirname \$dlpath`~
7698       test -d \$dldir || mkdir -p \$dldir~
7699       $install_prog $dir/$dlname \$dldir/$dlname'
7700     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7701       dlpath=$dir/\$dldll~
7702        $rm \$dlpath'
7703     shlibpath_overrides_runpath=yes
7704
7705     case $host_os in
7706     cygwin*)
7707       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7708       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7709       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7710       ;;
7711     mingw*)
7712       # MinGW DLLs use traditional 'lib' prefix
7713       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7714       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7715       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7716         # It is most probably a Windows format PATH printed by
7717         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7718         # path with ; separators, and with drive letters. We can handle the
7719         # drive letters (cygwin fileutils understands them), so leave them,
7720         # especially as we might pass files found there to a mingw objdump,
7721         # which wouldn't understand a cygwinified path. Ahh.
7722         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7723       else
7724         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7725       fi
7726       ;;
7727     pw32*)
7728       # pw32 DLLs use 'pw' prefix rather than 'lib'
7729       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7730       ;;
7731     esac
7732     ;;
7733
7734   *)
7735     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7736     ;;
7737   esac
7738   dynamic_linker='Win32 ld.exe'
7739   # FIXME: first we should search . and the directory the executable is in
7740   shlibpath_var=PATH
7741   ;;
7742
7743 darwin* | rhapsody*)
7744   dynamic_linker="$host_os dyld"
7745   version_type=darwin
7746   need_lib_prefix=no
7747   need_version=no
7748   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7749   soname_spec='${libname}${release}${major}$shared_ext'
7750   shlibpath_overrides_runpath=yes
7751   shlibpath_var=DYLD_LIBRARY_PATH
7752   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7753   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7754   if test "$GCC" = yes; then
7755     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7756   else
7757     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7758   fi
7759   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7760   ;;
7761
7762 dgux*)
7763   version_type=linux
7764   need_lib_prefix=no
7765   need_version=no
7766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7767   soname_spec='${libname}${release}${shared_ext}$major'
7768   shlibpath_var=LD_LIBRARY_PATH
7769   ;;
7770
7771 freebsd1*)
7772   dynamic_linker=no
7773   ;;
7774
7775 kfreebsd*-gnu)
7776   version_type=linux
7777   need_lib_prefix=no
7778   need_version=no
7779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7780   soname_spec='${libname}${release}${shared_ext}$major'
7781   shlibpath_var=LD_LIBRARY_PATH
7782   shlibpath_overrides_runpath=no
7783   hardcode_into_libs=yes
7784   dynamic_linker='GNU ld.so'
7785   ;;
7786
7787 freebsd*)
7788   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7789   version_type=freebsd-$objformat
7790   case $version_type in
7791     freebsd-elf*)
7792       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7793       need_version=no
7794       need_lib_prefix=no
7795       ;;
7796     freebsd-*)
7797       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7798       need_version=yes
7799       ;;
7800   esac
7801   shlibpath_var=LD_LIBRARY_PATH
7802   case $host_os in
7803   freebsd2*)
7804     shlibpath_overrides_runpath=yes
7805     ;;
7806   freebsd3.01* | freebsdelf3.01*)
7807     shlibpath_overrides_runpath=yes
7808     hardcode_into_libs=yes
7809     ;;
7810   *) # from 3.2 on
7811     shlibpath_overrides_runpath=no
7812     hardcode_into_libs=yes
7813     ;;
7814   esac
7815   ;;
7816
7817 gnu*)
7818   version_type=linux
7819   need_lib_prefix=no
7820   need_version=no
7821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7822   soname_spec='${libname}${release}${shared_ext}$major'
7823   shlibpath_var=LD_LIBRARY_PATH
7824   hardcode_into_libs=yes
7825   ;;
7826
7827 hpux9* | hpux10* | hpux11*)
7828   # Give a soname corresponding to the major version so that dld.sl refuses to
7829   # link against other versions.
7830   version_type=sunos
7831   need_lib_prefix=no
7832   need_version=no
7833   case "$host_cpu" in
7834   ia64*)
7835     shrext_cmds='.so'
7836     hardcode_into_libs=yes
7837     dynamic_linker="$host_os dld.so"
7838     shlibpath_var=LD_LIBRARY_PATH
7839     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7840     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7841     soname_spec='${libname}${release}${shared_ext}$major'
7842     if test "X$HPUX_IA64_MODE" = X32; then
7843       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7844     else
7845       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7846     fi
7847     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7848     ;;
7849    hppa*64*)
7850      shrext_cmds='.sl'
7851      hardcode_into_libs=yes
7852      dynamic_linker="$host_os dld.sl"
7853      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7854      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7855      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7856      soname_spec='${libname}${release}${shared_ext}$major'
7857      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7858      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7859      ;;
7860    *)
7861     shrext_cmds='.sl'
7862     dynamic_linker="$host_os dld.sl"
7863     shlibpath_var=SHLIB_PATH
7864     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866     soname_spec='${libname}${release}${shared_ext}$major'
7867     ;;
7868   esac
7869   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7870   postinstall_cmds='chmod 555 $lib'
7871   ;;
7872
7873 irix5* | irix6* | nonstopux*)
7874   case $host_os in
7875     nonstopux*) version_type=nonstopux ;;
7876     *)
7877         if test "$lt_cv_prog_gnu_ld" = yes; then
7878                 version_type=linux
7879         else
7880                 version_type=irix
7881         fi ;;
7882   esac
7883   need_lib_prefix=no
7884   need_version=no
7885   soname_spec='${libname}${release}${shared_ext}$major'
7886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7887   case $host_os in
7888   irix5* | nonstopux*)
7889     libsuff= shlibsuff=
7890     ;;
7891   *)
7892     case $LD in # libtool.m4 will add one of these switches to LD
7893     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7894       libsuff= shlibsuff= libmagic=32-bit;;
7895     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7896       libsuff=32 shlibsuff=N32 libmagic=N32;;
7897     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7898       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7899     *) libsuff= shlibsuff= libmagic=never-match;;
7900     esac
7901     ;;
7902   esac
7903   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7904   shlibpath_overrides_runpath=no
7905   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7906   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7907   hardcode_into_libs=yes
7908   ;;
7909
7910 # No shared lib support for Linux oldld, aout, or coff.
7911 linux*oldld* | linux*aout* | linux*coff*)
7912   dynamic_linker=no
7913   ;;
7914
7915 # This must be Linux ELF.
7916 linux*)
7917   version_type=linux
7918   need_lib_prefix=no
7919   need_version=no
7920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7921   soname_spec='${libname}${release}${shared_ext}$major'
7922   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7923   shlibpath_var=LD_LIBRARY_PATH
7924   shlibpath_overrides_runpath=no
7925   # This implies no fast_install, which is unacceptable.
7926   # Some rework will be needed to allow for fast_install
7927   # before this can be enabled.
7928   hardcode_into_libs=yes
7929
7930   # Append ld.so.conf contents to the search path
7931   if test -f /etc/ld.so.conf; then
7932     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7933     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7934   fi
7935
7936   # We used to test for /lib/ld.so.1 and disable shared libraries on
7937   # powerpc, because MkLinux only supported shared libraries with the
7938   # GNU dynamic linker.  Since this was broken with cross compilers,
7939   # most powerpc-linux boxes support dynamic linking these days and
7940   # people can always --disable-shared, the test was removed, and we
7941   # assume the GNU/Linux dynamic linker is in use.
7942   dynamic_linker='GNU/Linux ld.so'
7943   ;;
7944
7945 netbsdelf*-gnu)
7946   version_type=linux
7947   need_lib_prefix=no
7948   need_version=no
7949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7950   soname_spec='${libname}${release}${shared_ext}$major'
7951   shlibpath_var=LD_LIBRARY_PATH
7952   shlibpath_overrides_runpath=no
7953   hardcode_into_libs=yes
7954   dynamic_linker='NetBSD ld.elf_so'
7955   ;;
7956
7957 knetbsd*-gnu)
7958   version_type=linux
7959   need_lib_prefix=no
7960   need_version=no
7961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7962   soname_spec='${libname}${release}${shared_ext}$major'
7963   shlibpath_var=LD_LIBRARY_PATH
7964   shlibpath_overrides_runpath=no
7965   hardcode_into_libs=yes
7966   dynamic_linker='GNU ld.so'
7967   ;;
7968
7969 netbsd*)
7970   version_type=sunos
7971   need_lib_prefix=no
7972   need_version=no
7973   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7975     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7976     dynamic_linker='NetBSD (a.out) ld.so'
7977   else
7978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7979     soname_spec='${libname}${release}${shared_ext}$major'
7980     dynamic_linker='NetBSD ld.elf_so'
7981   fi
7982   shlibpath_var=LD_LIBRARY_PATH
7983   shlibpath_overrides_runpath=yes
7984   hardcode_into_libs=yes
7985   ;;
7986
7987 newsos6)
7988   version_type=linux
7989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990   shlibpath_var=LD_LIBRARY_PATH
7991   shlibpath_overrides_runpath=yes
7992   ;;
7993
7994 nto-qnx*)
7995   version_type=linux
7996   need_lib_prefix=no
7997   need_version=no
7998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7999   soname_spec='${libname}${release}${shared_ext}$major'
8000   shlibpath_var=LD_LIBRARY_PATH
8001   shlibpath_overrides_runpath=yes
8002   ;;
8003
8004 openbsd*)
8005   version_type=sunos
8006   need_lib_prefix=no
8007   need_version=yes
8008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8009   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8010   shlibpath_var=LD_LIBRARY_PATH
8011   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8012     case $host_os in
8013       openbsd2.[89] | openbsd2.[89].*)
8014         shlibpath_overrides_runpath=no
8015         ;;
8016       *)
8017         shlibpath_overrides_runpath=yes
8018         ;;
8019       esac
8020   else
8021     shlibpath_overrides_runpath=yes
8022   fi
8023   ;;
8024
8025 os2*)
8026   libname_spec='$name'
8027   shrext_cmds=".dll"
8028   need_lib_prefix=no
8029   library_names_spec='$libname${shared_ext} $libname.a'
8030   dynamic_linker='OS/2 ld.exe'
8031   shlibpath_var=LIBPATH
8032   ;;
8033
8034 osf3* | osf4* | osf5*)
8035   version_type=osf
8036   need_lib_prefix=no
8037   need_version=no
8038   soname_spec='${libname}${release}${shared_ext}$major'
8039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8040   shlibpath_var=LD_LIBRARY_PATH
8041   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8042   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8043   ;;
8044
8045 sco3.2v5*)
8046   version_type=osf
8047   soname_spec='${libname}${release}${shared_ext}$major'
8048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8049   shlibpath_var=LD_LIBRARY_PATH
8050   ;;
8051
8052 solaris*)
8053   version_type=linux
8054   need_lib_prefix=no
8055   need_version=no
8056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8057   soname_spec='${libname}${release}${shared_ext}$major'
8058   shlibpath_var=LD_LIBRARY_PATH
8059   shlibpath_overrides_runpath=yes
8060   hardcode_into_libs=yes
8061   # ldd complains unless libraries are executable
8062   postinstall_cmds='chmod +x $lib'
8063   ;;
8064
8065 sunos4*)
8066   version_type=sunos
8067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8068   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8069   shlibpath_var=LD_LIBRARY_PATH
8070   shlibpath_overrides_runpath=yes
8071   if test "$with_gnu_ld" = yes; then
8072     need_lib_prefix=no
8073   fi
8074   need_version=yes
8075   ;;
8076
8077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8078   version_type=linux
8079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8080   soname_spec='${libname}${release}${shared_ext}$major'
8081   shlibpath_var=LD_LIBRARY_PATH
8082   case $host_vendor in
8083     sni)
8084       shlibpath_overrides_runpath=no
8085       need_lib_prefix=no
8086       export_dynamic_flag_spec='${wl}-Blargedynsym'
8087       runpath_var=LD_RUN_PATH
8088       ;;
8089     siemens)
8090       need_lib_prefix=no
8091       ;;
8092     motorola)
8093       need_lib_prefix=no
8094       need_version=no
8095       shlibpath_overrides_runpath=no
8096       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8097       ;;
8098   esac
8099   ;;
8100
8101 sysv4*MP*)
8102   if test -d /usr/nec ;then
8103     version_type=linux
8104     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8105     soname_spec='$libname${shared_ext}.$major'
8106     shlibpath_var=LD_LIBRARY_PATH
8107   fi
8108   ;;
8109
8110 uts4*)
8111   version_type=linux
8112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8113   soname_spec='${libname}${release}${shared_ext}$major'
8114   shlibpath_var=LD_LIBRARY_PATH
8115   ;;
8116
8117 *)
8118   dynamic_linker=no
8119   ;;
8120 esac
8121 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8122 echo "${ECHO_T}$dynamic_linker" >&6
8123 test "$dynamic_linker" = no && can_build_shared=no
8124
8125 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8126 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8127 hardcode_action=
8128 if test -n "$hardcode_libdir_flag_spec" || \
8129    test -n "$runpath_var " || \
8130    test "X$hardcode_automatic"="Xyes" ; then
8131
8132   # We can hardcode non-existant directories.
8133   if test "$hardcode_direct" != no &&
8134      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8135      # have to relink, otherwise we might link with an installed library
8136      # when we should be linking with a yet-to-be-installed one
8137      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8138      test "$hardcode_minus_L" != no; then
8139     # Linking always hardcodes the temporary library directory.
8140     hardcode_action=relink
8141   else
8142     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8143     hardcode_action=immediate
8144   fi
8145 else
8146   # We cannot hardcode anything, or else we can only hardcode existing
8147   # directories.
8148   hardcode_action=unsupported
8149 fi
8150 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8151 echo "${ECHO_T}$hardcode_action" >&6
8152
8153 if test "$hardcode_action" = relink; then
8154   # Fast installation is not supported
8155   enable_fast_install=no
8156 elif test "$shlibpath_overrides_runpath" = yes ||
8157      test "$enable_shared" = no; then
8158   # Fast installation is not necessary
8159   enable_fast_install=needless
8160 fi
8161
8162 striplib=
8163 old_striplib=
8164 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8165 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8166 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8167   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8168   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8169   echo "$as_me:$LINENO: result: yes" >&5
8170 echo "${ECHO_T}yes" >&6
8171 else
8172 # FIXME - insert some real tests, host_os isn't really good enough
8173   case $host_os in
8174    darwin*)
8175        if test -n "$STRIP" ; then
8176          striplib="$STRIP -x"
8177          echo "$as_me:$LINENO: result: yes" >&5
8178 echo "${ECHO_T}yes" >&6
8179        else
8180   echo "$as_me:$LINENO: result: no" >&5
8181 echo "${ECHO_T}no" >&6
8182 fi
8183        ;;
8184    *)
8185   echo "$as_me:$LINENO: result: no" >&5
8186 echo "${ECHO_T}no" >&6
8187     ;;
8188   esac
8189 fi
8190
8191 if test "x$enable_dlopen" != xyes; then
8192   enable_dlopen=unknown
8193   enable_dlopen_self=unknown
8194   enable_dlopen_self_static=unknown
8195 else
8196   lt_cv_dlopen=no
8197   lt_cv_dlopen_libs=
8198
8199   case $host_os in
8200   beos*)
8201     lt_cv_dlopen="load_add_on"
8202     lt_cv_dlopen_libs=
8203     lt_cv_dlopen_self=yes
8204     ;;
8205
8206   mingw* | pw32*)
8207     lt_cv_dlopen="LoadLibrary"
8208     lt_cv_dlopen_libs=
8209    ;;
8210
8211   cygwin*)
8212     lt_cv_dlopen="dlopen"
8213     lt_cv_dlopen_libs=
8214    ;;
8215
8216   darwin*)
8217   # if libdl is installed we need to link against it
8218     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8219 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8220 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223   ac_check_lib_save_LIBS=$LIBS
8224 LIBS="-ldl  $LIBS"
8225 cat >conftest.$ac_ext <<_ACEOF
8226 /* confdefs.h.  */
8227 _ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h.  */
8231
8232 /* Override any gcc2 internal prototype to avoid an error.  */
8233 #ifdef __cplusplus
8234 extern "C"
8235 #endif
8236 /* We use char because int might match the return type of a gcc2
8237    builtin and then its argument prototype would still apply.  */
8238 char dlopen ();
8239 int
8240 main ()
8241 {
8242 dlopen ();
8243   ;
8244   return 0;
8245 }
8246 _ACEOF
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8249   (eval $ac_link) 2>conftest.er1
8250   ac_status=$?
8251   grep -v '^ *+' conftest.er1 >conftest.err
8252   rm -f conftest.er1
8253   cat conftest.err >&5
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); } &&
8256          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258   (eval $ac_try) 2>&5
8259   ac_status=$?
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); }; } &&
8262          { ac_try='test -s conftest$ac_exeext'
8263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264   (eval $ac_try) 2>&5
8265   ac_status=$?
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); }; }; then
8268   ac_cv_lib_dl_dlopen=yes
8269 else
8270   echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8272
8273 ac_cv_lib_dl_dlopen=no
8274 fi
8275 rm -f conftest.err conftest.$ac_objext \
8276       conftest$ac_exeext conftest.$ac_ext
8277 LIBS=$ac_check_lib_save_LIBS
8278 fi
8279 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8280 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8281 if test $ac_cv_lib_dl_dlopen = yes; then
8282   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8283 else
8284
8285     lt_cv_dlopen="dyld"
8286     lt_cv_dlopen_libs=
8287     lt_cv_dlopen_self=yes
8288
8289 fi
8290
8291    ;;
8292
8293   *)
8294     echo "$as_me:$LINENO: checking for shl_load" >&5
8295 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8296 if test "${ac_cv_func_shl_load+set}" = set; then
8297   echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299   cat >conftest.$ac_ext <<_ACEOF
8300 /* confdefs.h.  */
8301 _ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h.  */
8305 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8307 #define shl_load innocuous_shl_load
8308
8309 /* System header to define __stub macros and hopefully few prototypes,
8310     which can conflict with char shl_load (); below.
8311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8312     <limits.h> exists even on freestanding compilers.  */
8313
8314 #ifdef __STDC__
8315 # include <limits.h>
8316 #else
8317 # include <assert.h>
8318 #endif
8319
8320 #undef shl_load
8321
8322 /* Override any gcc2 internal prototype to avoid an error.  */
8323 #ifdef __cplusplus
8324 extern "C"
8325 {
8326 #endif
8327 /* We use char because int might match the return type of a gcc2
8328    builtin and then its argument prototype would still apply.  */
8329 char shl_load ();
8330 /* The GNU C library defines this for functions which it implements
8331     to always fail with ENOSYS.  Some functions are actually named
8332     something starting with __ and the normal name is an alias.  */
8333 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8334 choke me
8335 #else
8336 char (*f) () = shl_load;
8337 #endif
8338 #ifdef __cplusplus
8339 }
8340 #endif
8341
8342 int
8343 main ()
8344 {
8345 return f != shl_load;
8346   ;
8347   return 0;
8348 }
8349 _ACEOF
8350 rm -f conftest.$ac_objext conftest$ac_exeext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8352   (eval $ac_link) 2>conftest.er1
8353   ac_status=$?
8354   grep -v '^ *+' conftest.er1 >conftest.err
8355   rm -f conftest.er1
8356   cat conftest.err >&5
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); } &&
8359          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361   (eval $ac_try) 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; } &&
8365          { ac_try='test -s conftest$ac_exeext'
8366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367   (eval $ac_try) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); }; }; then
8371   ac_cv_func_shl_load=yes
8372 else
8373   echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8375
8376 ac_cv_func_shl_load=no
8377 fi
8378 rm -f conftest.err conftest.$ac_objext \
8379       conftest$ac_exeext conftest.$ac_ext
8380 fi
8381 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8382 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8383 if test $ac_cv_func_shl_load = yes; then
8384   lt_cv_dlopen="shl_load"
8385 else
8386   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8387 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8388 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8389   echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8391   ac_check_lib_save_LIBS=$LIBS
8392 LIBS="-ldld  $LIBS"
8393 cat >conftest.$ac_ext <<_ACEOF
8394 /* confdefs.h.  */
8395 _ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h.  */
8399
8400 /* Override any gcc2 internal prototype to avoid an error.  */
8401 #ifdef __cplusplus
8402 extern "C"
8403 #endif
8404 /* We use char because int might match the return type of a gcc2
8405    builtin and then its argument prototype would still apply.  */
8406 char shl_load ();
8407 int
8408 main ()
8409 {
8410 shl_load ();
8411   ;
8412   return 0;
8413 }
8414 _ACEOF
8415 rm -f conftest.$ac_objext conftest$ac_exeext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8417   (eval $ac_link) 2>conftest.er1
8418   ac_status=$?
8419   grep -v '^ *+' conftest.er1 >conftest.err
8420   rm -f conftest.er1
8421   cat conftest.err >&5
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); } &&
8424          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; } &&
8430          { ac_try='test -s conftest$ac_exeext'
8431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432   (eval $ac_try) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; }; then
8436   ac_cv_lib_dld_shl_load=yes
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 ac_cv_lib_dld_shl_load=no
8442 fi
8443 rm -f conftest.err conftest.$ac_objext \
8444       conftest$ac_exeext conftest.$ac_ext
8445 LIBS=$ac_check_lib_save_LIBS
8446 fi
8447 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8448 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8449 if test $ac_cv_lib_dld_shl_load = yes; then
8450   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8451 else
8452   echo "$as_me:$LINENO: checking for dlopen" >&5
8453 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8454 if test "${ac_cv_func_dlopen+set}" = set; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457   cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h.  */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h.  */
8463 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8465 #define dlopen innocuous_dlopen
8466
8467 /* System header to define __stub macros and hopefully few prototypes,
8468     which can conflict with char dlopen (); below.
8469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8470     <limits.h> exists even on freestanding compilers.  */
8471
8472 #ifdef __STDC__
8473 # include <limits.h>
8474 #else
8475 # include <assert.h>
8476 #endif
8477
8478 #undef dlopen
8479
8480 /* Override any gcc2 internal prototype to avoid an error.  */
8481 #ifdef __cplusplus
8482 extern "C"
8483 {
8484 #endif
8485 /* We use char because int might match the return type of a gcc2
8486    builtin and then its argument prototype would still apply.  */
8487 char dlopen ();
8488 /* The GNU C library defines this for functions which it implements
8489     to always fail with ENOSYS.  Some functions are actually named
8490     something starting with __ and the normal name is an alias.  */
8491 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8492 choke me
8493 #else
8494 char (*f) () = dlopen;
8495 #endif
8496 #ifdef __cplusplus
8497 }
8498 #endif
8499
8500 int
8501 main ()
8502 {
8503 return f != dlopen;
8504   ;
8505   return 0;
8506 }
8507 _ACEOF
8508 rm -f conftest.$ac_objext conftest$ac_exeext
8509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8510   (eval $ac_link) 2>conftest.er1
8511   ac_status=$?
8512   grep -v '^ *+' conftest.er1 >conftest.err
8513   rm -f conftest.er1
8514   cat conftest.err >&5
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); } &&
8517          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519   (eval $ac_try) 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); }; } &&
8523          { ac_try='test -s conftest$ac_exeext'
8524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525   (eval $ac_try) 2>&5
8526   ac_status=$?
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); }; }; then
8529   ac_cv_func_dlopen=yes
8530 else
8531   echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8533
8534 ac_cv_func_dlopen=no
8535 fi
8536 rm -f conftest.err conftest.$ac_objext \
8537       conftest$ac_exeext conftest.$ac_ext
8538 fi
8539 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8540 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8541 if test $ac_cv_func_dlopen = yes; then
8542   lt_cv_dlopen="dlopen"
8543 else
8544   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8545 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8546 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   ac_check_lib_save_LIBS=$LIBS
8550 LIBS="-ldl  $LIBS"
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h.  */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h.  */
8557
8558 /* Override any gcc2 internal prototype to avoid an error.  */
8559 #ifdef __cplusplus
8560 extern "C"
8561 #endif
8562 /* We use char because int might match the return type of a gcc2
8563    builtin and then its argument prototype would still apply.  */
8564 char dlopen ();
8565 int
8566 main ()
8567 {
8568 dlopen ();
8569   ;
8570   return 0;
8571 }
8572 _ACEOF
8573 rm -f conftest.$ac_objext conftest$ac_exeext
8574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8575   (eval $ac_link) 2>conftest.er1
8576   ac_status=$?
8577   grep -v '^ *+' conftest.er1 >conftest.err
8578   rm -f conftest.er1
8579   cat conftest.err >&5
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); } &&
8582          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584   (eval $ac_try) 2>&5
8585   ac_status=$?
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); }; } &&
8588          { ac_try='test -s conftest$ac_exeext'
8589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590   (eval $ac_try) 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); }; }; then
8594   ac_cv_lib_dl_dlopen=yes
8595 else
8596   echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_cv_lib_dl_dlopen=no
8600 fi
8601 rm -f conftest.err conftest.$ac_objext \
8602       conftest$ac_exeext conftest.$ac_ext
8603 LIBS=$ac_check_lib_save_LIBS
8604 fi
8605 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8606 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8607 if test $ac_cv_lib_dl_dlopen = yes; then
8608   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8609 else
8610   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8611 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8612 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8613   echo $ECHO_N "(cached) $ECHO_C" >&6
8614 else
8615   ac_check_lib_save_LIBS=$LIBS
8616 LIBS="-lsvld  $LIBS"
8617 cat >conftest.$ac_ext <<_ACEOF
8618 /* confdefs.h.  */
8619 _ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h.  */
8623
8624 /* Override any gcc2 internal prototype to avoid an error.  */
8625 #ifdef __cplusplus
8626 extern "C"
8627 #endif
8628 /* We use char because int might match the return type of a gcc2
8629    builtin and then its argument prototype would still apply.  */
8630 char dlopen ();
8631 int
8632 main ()
8633 {
8634 dlopen ();
8635   ;
8636   return 0;
8637 }
8638 _ACEOF
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641   (eval $ac_link) 2>conftest.er1
8642   ac_status=$?
8643   grep -v '^ *+' conftest.er1 >conftest.err
8644   rm -f conftest.er1
8645   cat conftest.err >&5
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); } &&
8648          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650   (eval $ac_try) 2>&5
8651   ac_status=$?
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); }; } &&
8654          { ac_try='test -s conftest$ac_exeext'
8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656   (eval $ac_try) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; }; then
8660   ac_cv_lib_svld_dlopen=yes
8661 else
8662   echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8664
8665 ac_cv_lib_svld_dlopen=no
8666 fi
8667 rm -f conftest.err conftest.$ac_objext \
8668       conftest$ac_exeext conftest.$ac_ext
8669 LIBS=$ac_check_lib_save_LIBS
8670 fi
8671 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8672 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8673 if test $ac_cv_lib_svld_dlopen = yes; then
8674   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8675 else
8676   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8677 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8678 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8679   echo $ECHO_N "(cached) $ECHO_C" >&6
8680 else
8681   ac_check_lib_save_LIBS=$LIBS
8682 LIBS="-ldld  $LIBS"
8683 cat >conftest.$ac_ext <<_ACEOF
8684 /* confdefs.h.  */
8685 _ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h.  */
8689
8690 /* Override any gcc2 internal prototype to avoid an error.  */
8691 #ifdef __cplusplus
8692 extern "C"
8693 #endif
8694 /* We use char because int might match the return type of a gcc2
8695    builtin and then its argument prototype would still apply.  */
8696 char dld_link ();
8697 int
8698 main ()
8699 {
8700 dld_link ();
8701   ;
8702   return 0;
8703 }
8704 _ACEOF
8705 rm -f conftest.$ac_objext conftest$ac_exeext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8707   (eval $ac_link) 2>conftest.er1
8708   ac_status=$?
8709   grep -v '^ *+' conftest.er1 >conftest.err
8710   rm -f conftest.er1
8711   cat conftest.err >&5
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); } &&
8714          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716   (eval $ac_try) 2>&5
8717   ac_status=$?
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); }; } &&
8720          { ac_try='test -s conftest$ac_exeext'
8721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722   (eval $ac_try) 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); }; }; then
8726   ac_cv_lib_dld_dld_link=yes
8727 else
8728   echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8730
8731 ac_cv_lib_dld_dld_link=no
8732 fi
8733 rm -f conftest.err conftest.$ac_objext \
8734       conftest$ac_exeext conftest.$ac_ext
8735 LIBS=$ac_check_lib_save_LIBS
8736 fi
8737 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8738 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8739 if test $ac_cv_lib_dld_dld_link = yes; then
8740   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8741 fi
8742
8743
8744 fi
8745
8746
8747 fi
8748
8749
8750 fi
8751
8752
8753 fi
8754
8755
8756 fi
8757
8758     ;;
8759   esac
8760
8761   if test "x$lt_cv_dlopen" != xno; then
8762     enable_dlopen=yes
8763   else
8764     enable_dlopen=no
8765   fi
8766
8767   case $lt_cv_dlopen in
8768   dlopen)
8769     save_CPPFLAGS="$CPPFLAGS"
8770     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8771
8772     save_LDFLAGS="$LDFLAGS"
8773     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8774
8775     save_LIBS="$LIBS"
8776     LIBS="$lt_cv_dlopen_libs $LIBS"
8777
8778     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8779 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8780 if test "${lt_cv_dlopen_self+set}" = set; then
8781   echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783           if test "$cross_compiling" = yes; then :
8784   lt_cv_dlopen_self=cross
8785 else
8786   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8787   lt_status=$lt_dlunknown
8788   cat > conftest.$ac_ext <<EOF
8789 #line 8789 "configure"
8790 #include "confdefs.h"
8791
8792 #if HAVE_DLFCN_H
8793 #include <dlfcn.h>
8794 #endif
8795
8796 #include <stdio.h>
8797
8798 #ifdef RTLD_GLOBAL
8799 #  define LT_DLGLOBAL           RTLD_GLOBAL
8800 #else
8801 #  ifdef DL_GLOBAL
8802 #    define LT_DLGLOBAL         DL_GLOBAL
8803 #  else
8804 #    define LT_DLGLOBAL         0
8805 #  endif
8806 #endif
8807
8808 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8809    find out it does not work in some platform. */
8810 #ifndef LT_DLLAZY_OR_NOW
8811 #  ifdef RTLD_LAZY
8812 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8813 #  else
8814 #    ifdef DL_LAZY
8815 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8816 #    else
8817 #      ifdef RTLD_NOW
8818 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8819 #      else
8820 #        ifdef DL_NOW
8821 #          define LT_DLLAZY_OR_NOW      DL_NOW
8822 #        else
8823 #          define LT_DLLAZY_OR_NOW      0
8824 #        endif
8825 #      endif
8826 #    endif
8827 #  endif
8828 #endif
8829
8830 #ifdef __cplusplus
8831 extern "C" void exit (int);
8832 #endif
8833
8834 void fnord() { int i=42;}
8835 int main ()
8836 {
8837   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8838   int status = $lt_dlunknown;
8839
8840   if (self)
8841     {
8842       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8843       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8844       /* dlclose (self); */
8845     }
8846
8847     exit (status);
8848 }
8849 EOF
8850   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8851   (eval $ac_link) 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8855     (./conftest; exit; ) 2>/dev/null
8856     lt_status=$?
8857     case x$lt_status in
8858       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8859       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8860       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8861     esac
8862   else :
8863     # compilation failed
8864     lt_cv_dlopen_self=no
8865   fi
8866 fi
8867 rm -fr conftest*
8868
8869
8870 fi
8871 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8872 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8873
8874     if test "x$lt_cv_dlopen_self" = xyes; then
8875       LDFLAGS="$LDFLAGS $link_static_flag"
8876       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8877 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8878 if test "${lt_cv_dlopen_self_static+set}" = set; then
8879   echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881           if test "$cross_compiling" = yes; then :
8882   lt_cv_dlopen_self_static=cross
8883 else
8884   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8885   lt_status=$lt_dlunknown
8886   cat > conftest.$ac_ext <<EOF
8887 #line 8887 "configure"
8888 #include "confdefs.h"
8889
8890 #if HAVE_DLFCN_H
8891 #include <dlfcn.h>
8892 #endif
8893
8894 #include <stdio.h>
8895
8896 #ifdef RTLD_GLOBAL
8897 #  define LT_DLGLOBAL           RTLD_GLOBAL
8898 #else
8899 #  ifdef DL_GLOBAL
8900 #    define LT_DLGLOBAL         DL_GLOBAL
8901 #  else
8902 #    define LT_DLGLOBAL         0
8903 #  endif
8904 #endif
8905
8906 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8907    find out it does not work in some platform. */
8908 #ifndef LT_DLLAZY_OR_NOW
8909 #  ifdef RTLD_LAZY
8910 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8911 #  else
8912 #    ifdef DL_LAZY
8913 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8914 #    else
8915 #      ifdef RTLD_NOW
8916 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8917 #      else
8918 #        ifdef DL_NOW
8919 #          define LT_DLLAZY_OR_NOW      DL_NOW
8920 #        else
8921 #          define LT_DLLAZY_OR_NOW      0
8922 #        endif
8923 #      endif
8924 #    endif
8925 #  endif
8926 #endif
8927
8928 #ifdef __cplusplus
8929 extern "C" void exit (int);
8930 #endif
8931
8932 void fnord() { int i=42;}
8933 int main ()
8934 {
8935   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8936   int status = $lt_dlunknown;
8937
8938   if (self)
8939     {
8940       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8941       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8942       /* dlclose (self); */
8943     }
8944
8945     exit (status);
8946 }
8947 EOF
8948   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949   (eval $ac_link) 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8953     (./conftest; exit; ) 2>/dev/null
8954     lt_status=$?
8955     case x$lt_status in
8956       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8957       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8958       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8959     esac
8960   else :
8961     # compilation failed
8962     lt_cv_dlopen_self_static=no
8963   fi
8964 fi
8965 rm -fr conftest*
8966
8967
8968 fi
8969 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8970 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8971     fi
8972
8973     CPPFLAGS="$save_CPPFLAGS"
8974     LDFLAGS="$save_LDFLAGS"
8975     LIBS="$save_LIBS"
8976     ;;
8977   esac
8978
8979   case $lt_cv_dlopen_self in
8980   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8981   *) enable_dlopen_self=unknown ;;
8982   esac
8983
8984   case $lt_cv_dlopen_self_static in
8985   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8986   *) enable_dlopen_self_static=unknown ;;
8987   esac
8988 fi
8989
8990
8991 # Report which librarie types wil actually be built
8992 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8993 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8994 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8995 echo "${ECHO_T}$can_build_shared" >&6
8996
8997 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8998 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8999 test "$can_build_shared" = "no" && enable_shared=no
9000
9001 # On AIX, shared libraries and static libraries use the same namespace, and
9002 # are all built from PIC.
9003 case "$host_os" in
9004 aix3*)
9005   test "$enable_shared" = yes && enable_static=no
9006   if test -n "$RANLIB"; then
9007     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9008     postinstall_cmds='$RANLIB $lib'
9009   fi
9010   ;;
9011
9012 aix4* | aix5*)
9013   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9014     test "$enable_shared" = yes && enable_static=no
9015   fi
9016   ;;
9017   darwin* | rhapsody*)
9018   if test "$GCC" = yes; then
9019     archive_cmds_need_lc=no
9020     case "$host_os" in
9021     rhapsody* | darwin1.[012])
9022       allow_undefined_flag='-undefined suppress'
9023       ;;
9024     *) # Darwin 1.3 on
9025       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9026         allow_undefined_flag='-flat_namespace -undefined suppress'
9027       else
9028         case ${MACOSX_DEPLOYMENT_TARGET} in
9029           10.[012])
9030             allow_undefined_flag='-flat_namespace -undefined suppress'
9031             ;;
9032           10.*)
9033             allow_undefined_flag='-undefined dynamic_lookup'
9034             ;;
9035         esac
9036       fi
9037       ;;
9038     esac
9039     output_verbose_link_cmd='echo'
9040     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9041     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9042     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9043     archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9044     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9045     hardcode_direct=no
9046     hardcode_automatic=yes
9047     hardcode_shlibpath_var=unsupported
9048     whole_archive_flag_spec='-all_load $convenience'
9049     link_all_deplibs=yes
9050   else
9051     ld_shlibs=no
9052   fi
9053     ;;
9054 esac
9055 echo "$as_me:$LINENO: result: $enable_shared" >&5
9056 echo "${ECHO_T}$enable_shared" >&6
9057
9058 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9059 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9060 # Make sure either enable_shared or enable_static is yes.
9061 test "$enable_shared" = yes || enable_static=yes
9062 echo "$as_me:$LINENO: result: $enable_static" >&5
9063 echo "${ECHO_T}$enable_static" >&6
9064
9065 # The else clause should only fire when bootstrapping the
9066 # libtool distribution, otherwise you forgot to ship ltmain.sh
9067 # with your package, and you will get complaints that there are
9068 # no rules to generate ltmain.sh.
9069 if test -f "$ltmain"; then
9070   # See if we are running on zsh, and set the options which allow our commands through
9071   # without removal of \ escapes.
9072   if test -n "${ZSH_VERSION+set}" ; then
9073     setopt NO_GLOB_SUBST
9074   fi
9075   # Now quote all the things that may contain metacharacters while being
9076   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9077   # variables and quote the copies for generation of the libtool script.
9078   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9079     SED SHELL STRIP \
9080     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9081     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9082     deplibs_check_method reload_flag reload_cmds need_locks \
9083     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9084     lt_cv_sys_global_symbol_to_c_name_address \
9085     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9086     old_postinstall_cmds old_postuninstall_cmds \
9087     compiler \
9088     CC \
9089     LD \
9090     lt_prog_compiler_wl \
9091     lt_prog_compiler_pic \
9092     lt_prog_compiler_static \
9093     lt_prog_compiler_no_builtin_flag \
9094     export_dynamic_flag_spec \
9095     thread_safe_flag_spec \
9096     whole_archive_flag_spec \
9097     enable_shared_with_static_runtimes \
9098     old_archive_cmds \
9099     old_archive_from_new_cmds \
9100     predep_objects \
9101     postdep_objects \
9102     predeps \
9103     postdeps \
9104     compiler_lib_search_path \
9105     archive_cmds \
9106     archive_expsym_cmds \
9107     postinstall_cmds \
9108     postuninstall_cmds \
9109     old_archive_from_expsyms_cmds \
9110     allow_undefined_flag \
9111     no_undefined_flag \
9112     export_symbols_cmds \
9113     hardcode_libdir_flag_spec \
9114     hardcode_libdir_flag_spec_ld \
9115     hardcode_libdir_separator \
9116     hardcode_automatic \
9117     module_cmds \
9118     module_expsym_cmds \
9119     lt_cv_prog_compiler_c_o \
9120     exclude_expsyms \
9121     include_expsyms; do
9122
9123     case $var in
9124     old_archive_cmds | \
9125     old_archive_from_new_cmds | \
9126     archive_cmds | \
9127     archive_expsym_cmds | \
9128     module_cmds | \
9129     module_expsym_cmds | \
9130     old_archive_from_expsyms_cmds | \
9131     export_symbols_cmds | \
9132     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9133     postinstall_cmds | postuninstall_cmds | \
9134     old_postinstall_cmds | old_postuninstall_cmds | \
9135     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9136       # Double-quote double-evaled strings.
9137       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9138       ;;
9139     *)
9140       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9141       ;;
9142     esac
9143   done
9144
9145   case $lt_echo in
9146   *'\$0 --fallback-echo"')
9147     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9148     ;;
9149   esac
9150
9151 cfgfile="${ofile}T"
9152   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9153   $rm -f "$cfgfile"
9154   { echo "$as_me:$LINENO: creating $ofile" >&5
9155 echo "$as_me: creating $ofile" >&6;}
9156
9157   cat <<__EOF__ >> "$cfgfile"
9158 #! $SHELL
9159
9160 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9161 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9162 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9163 #
9164 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9165 # Free Software Foundation, Inc.
9166 #
9167 # This file is part of GNU Libtool:
9168 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9169 #
9170 # This program is free software; you can redistribute it and/or modify
9171 # it under the terms of the GNU General Public License as published by
9172 # the Free Software Foundation; either version 2 of the License, or
9173 # (at your option) any later version.
9174 #
9175 # This program is distributed in the hope that it will be useful, but
9176 # WITHOUT ANY WARRANTY; without even the implied warranty of
9177 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9178 # General Public License for more details.
9179 #
9180 # You should have received a copy of the GNU General Public License
9181 # along with this program; if not, write to the Free Software
9182 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9183 #
9184 # As a special exception to the GNU General Public License, if you
9185 # distribute this file as part of a program that contains a
9186 # configuration script generated by Autoconf, you may include it under
9187 # the same distribution terms that you use for the rest of that program.
9188
9189 # A sed program that does not truncate output.
9190 SED=$lt_SED
9191
9192 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9193 Xsed="$SED -e s/^X//"
9194
9195 # The HP-UX ksh and POSIX shell print the target directory to stdout
9196 # if CDPATH is set.
9197 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9198
9199 # The names of the tagged configurations supported by this script.
9200 available_tags=
9201
9202 # ### BEGIN LIBTOOL CONFIG
9203
9204 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9205
9206 # Shell to use when invoking shell scripts.
9207 SHELL=$lt_SHELL
9208
9209 # Whether or not to build shared libraries.
9210 build_libtool_libs=$enable_shared
9211
9212 # Whether or not to build static libraries.
9213 build_old_libs=$enable_static
9214
9215 # Whether or not to add -lc for building shared libraries.
9216 build_libtool_need_lc=$archive_cmds_need_lc
9217
9218 # Whether or not to disallow shared libs when runtime libs are static
9219 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9220
9221 # Whether or not to optimize for fast installation.
9222 fast_install=$enable_fast_install
9223
9224 # The host system.
9225 host_alias=$host_alias
9226 host=$host
9227
9228 # An echo program that does not interpret backslashes.
9229 echo=$lt_echo
9230
9231 # The archiver.
9232 AR=$lt_AR
9233 AR_FLAGS=$lt_AR_FLAGS
9234
9235 # A C compiler.
9236 LTCC=$lt_LTCC
9237
9238 # A language-specific compiler.
9239 CC=$lt_compiler
9240
9241 # Is the compiler the GNU C compiler?
9242 with_gcc=$GCC
9243
9244 # An ERE matcher.
9245 EGREP=$lt_EGREP
9246
9247 # The linker used to build libraries.
9248 LD=$lt_LD
9249
9250 # Whether we need hard or soft links.
9251 LN_S=$lt_LN_S
9252
9253 # A BSD-compatible nm program.
9254 NM=$lt_NM
9255
9256 # A symbol stripping program
9257 STRIP=$lt_STRIP
9258
9259 # Used to examine libraries when file_magic_cmd begins "file"
9260 MAGIC_CMD=$MAGIC_CMD
9261
9262 # Used on cygwin: DLL creation program.
9263 DLLTOOL="$DLLTOOL"
9264
9265 # Used on cygwin: object dumper.
9266 OBJDUMP="$OBJDUMP"
9267
9268 # Used on cygwin: assembler.
9269 AS="$AS"
9270
9271 # The name of the directory that contains temporary libtool files.
9272 objdir=$objdir
9273
9274 # How to create reloadable object files.
9275 reload_flag=$lt_reload_flag
9276 reload_cmds=$lt_reload_cmds
9277
9278 # How to pass a linker flag through the compiler.
9279 wl=$lt_lt_prog_compiler_wl
9280
9281 # Object file suffix (normally "o").
9282 objext="$ac_objext"
9283
9284 # Old archive suffix (normally "a").
9285 libext="$libext"
9286
9287 # Shared library suffix (normally ".so").
9288 shrext_cmds='$shrext_cmds'
9289
9290 # Executable file suffix (normally "").
9291 exeext="$exeext"
9292
9293 # Additional compiler flags for building library objects.
9294 pic_flag=$lt_lt_prog_compiler_pic
9295 pic_mode=$pic_mode
9296
9297 # What is the maximum length of a command?
9298 max_cmd_len=$lt_cv_sys_max_cmd_len
9299
9300 # Does compiler simultaneously support -c and -o options?
9301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9302
9303 # Must we lock files when doing compilation ?
9304 need_locks=$lt_need_locks
9305
9306 # Do we need the lib prefix for modules?
9307 need_lib_prefix=$need_lib_prefix
9308
9309 # Do we need a version for libraries?
9310 need_version=$need_version
9311
9312 # Whether dlopen is supported.
9313 dlopen_support=$enable_dlopen
9314
9315 # Whether dlopen of programs is supported.
9316 dlopen_self=$enable_dlopen_self
9317
9318 # Whether dlopen of statically linked programs is supported.
9319 dlopen_self_static=$enable_dlopen_self_static
9320
9321 # Compiler flag to prevent dynamic linking.
9322 link_static_flag=$lt_lt_prog_compiler_static
9323
9324 # Compiler flag to turn off builtin functions.
9325 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9326
9327 # Compiler flag to allow reflexive dlopens.
9328 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9329
9330 # Compiler flag to generate shared objects directly from archives.
9331 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9332
9333 # Compiler flag to generate thread-safe objects.
9334 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9335
9336 # Library versioning type.
9337 version_type=$version_type
9338
9339 # Format of library name prefix.
9340 libname_spec=$lt_libname_spec
9341
9342 # List of archive names.  First name is the real one, the rest are links.
9343 # The last name is the one that the linker finds with -lNAME.
9344 library_names_spec=$lt_library_names_spec
9345
9346 # The coded name of the library, if different from the real name.
9347 soname_spec=$lt_soname_spec
9348
9349 # Commands used to build and install an old-style archive.
9350 RANLIB=$lt_RANLIB
9351 old_archive_cmds=$lt_old_archive_cmds
9352 old_postinstall_cmds=$lt_old_postinstall_cmds
9353 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9354
9355 # Create an old-style archive from a shared archive.
9356 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9357
9358 # Create a temporary old-style archive to link instead of a shared archive.
9359 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9360
9361 # Commands used to build and install a shared archive.
9362 archive_cmds=$lt_archive_cmds
9363 archive_expsym_cmds=$lt_archive_expsym_cmds
9364 postinstall_cmds=$lt_postinstall_cmds
9365 postuninstall_cmds=$lt_postuninstall_cmds
9366
9367 # Commands used to build a loadable module (assumed same as above if empty)
9368 module_cmds=$lt_module_cmds
9369 module_expsym_cmds=$lt_module_expsym_cmds
9370
9371 # Commands to strip libraries.
9372 old_striplib=$lt_old_striplib
9373 striplib=$lt_striplib
9374
9375 # Dependencies to place before the objects being linked to create a
9376 # shared library.
9377 predep_objects=$lt_predep_objects
9378
9379 # Dependencies to place after the objects being linked to create a
9380 # shared library.
9381 postdep_objects=$lt_postdep_objects
9382
9383 # Dependencies to place before the objects being linked to create a
9384 # shared library.
9385 predeps=$lt_predeps
9386
9387 # Dependencies to place after the objects being linked to create a
9388 # shared library.
9389 postdeps=$lt_postdeps
9390
9391 # The library search path used internally by the compiler when linking
9392 # a shared library.
9393 compiler_lib_search_path=$lt_compiler_lib_search_path
9394
9395 # Method to check whether dependent libraries are shared objects.
9396 deplibs_check_method=$lt_deplibs_check_method
9397
9398 # Command to use when deplibs_check_method == file_magic.
9399 file_magic_cmd=$lt_file_magic_cmd
9400
9401 # Flag that allows shared libraries with undefined symbols to be built.
9402 allow_undefined_flag=$lt_allow_undefined_flag
9403
9404 # Flag that forces no undefined symbols.
9405 no_undefined_flag=$lt_no_undefined_flag
9406
9407 # Commands used to finish a libtool library installation in a directory.
9408 finish_cmds=$lt_finish_cmds
9409
9410 # Same as above, but a single script fragment to be evaled but not shown.
9411 finish_eval=$lt_finish_eval
9412
9413 # Take the output of nm and produce a listing of raw symbols and C names.
9414 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9415
9416 # Transform the output of nm in a proper C declaration
9417 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9418
9419 # Transform the output of nm in a C name address pair
9420 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9421
9422 # This is the shared library runtime path variable.
9423 runpath_var=$runpath_var
9424
9425 # This is the shared library path variable.
9426 shlibpath_var=$shlibpath_var
9427
9428 # Is shlibpath searched before the hard-coded library search path?
9429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9430
9431 # How to hardcode a shared library path into an executable.
9432 hardcode_action=$hardcode_action
9433
9434 # Whether we should hardcode library paths into libraries.
9435 hardcode_into_libs=$hardcode_into_libs
9436
9437 # Flag to hardcode \$libdir into a binary during linking.
9438 # This must work even if \$libdir does not exist.
9439 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9440
9441 # If ld is used when linking, flag to hardcode \$libdir into
9442 # a binary during linking. This must work even if \$libdir does
9443 # not exist.
9444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9445
9446 # Whether we need a single -rpath flag with a separated argument.
9447 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9448
9449 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9450 # resulting binary.
9451 hardcode_direct=$hardcode_direct
9452
9453 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9454 # resulting binary.
9455 hardcode_minus_L=$hardcode_minus_L
9456
9457 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9458 # the resulting binary.
9459 hardcode_shlibpath_var=$hardcode_shlibpath_var
9460
9461 # Set to yes if building a shared library automatically hardcodes DIR into the library
9462 # and all subsequent libraries and executables linked against it.
9463 hardcode_automatic=$hardcode_automatic
9464
9465 # Variables whose values should be saved in libtool wrapper scripts and
9466 # restored at relink time.
9467 variables_saved_for_relink="$variables_saved_for_relink"
9468
9469 # Whether libtool must link a program against all its dependency libraries.
9470 link_all_deplibs=$link_all_deplibs
9471
9472 # Compile-time system search path for libraries
9473 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9474
9475 # Run-time system search path for libraries
9476 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9477
9478 # Fix the shell variable \$srcfile for the compiler.
9479 fix_srcfile_path="$fix_srcfile_path"
9480
9481 # Set to yes if exported symbols are required.
9482 always_export_symbols=$always_export_symbols
9483
9484 # The commands to list exported symbols.
9485 export_symbols_cmds=$lt_export_symbols_cmds
9486
9487 # The commands to extract the exported symbol list from a shared archive.
9488 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9489
9490 # Symbols that should not be listed in the preloaded symbols.
9491 exclude_expsyms=$lt_exclude_expsyms
9492
9493 # Symbols that must always be exported.
9494 include_expsyms=$lt_include_expsyms
9495
9496 # ### END LIBTOOL CONFIG
9497
9498 __EOF__
9499
9500
9501   case $host_os in
9502   aix3*)
9503     cat <<\EOF >> "$cfgfile"
9504
9505 # AIX sometimes has problems with the GCC collect2 program.  For some
9506 # reason, if we set the COLLECT_NAMES environment variable, the problems
9507 # vanish in a puff of smoke.
9508 if test "X${COLLECT_NAMES+set}" != Xset; then
9509   COLLECT_NAMES=
9510   export COLLECT_NAMES
9511 fi
9512 EOF
9513     ;;
9514   esac
9515
9516   # We use sed instead of cat because bash on DJGPP gets confused if
9517   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9518   # text mode, it properly converts lines to CR/LF.  This bash problem
9519   # is reportedly fixed, but why not run on old versions too?
9520   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9521
9522   mv -f "$cfgfile" "$ofile" || \
9523     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9524   chmod +x "$ofile"
9525
9526 else
9527   # If there is no Makefile yet, we rely on a make rule to execute
9528   # `config.status --recheck' to rerun these tests and create the
9529   # libtool script then.
9530   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9531   if test -f "$ltmain_in"; then
9532     test -f Makefile && make "$ltmain"
9533   fi
9534 fi
9535
9536
9537 ac_ext=c
9538 ac_cpp='$CPP $CPPFLAGS'
9539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9542
9543 CC="$lt_save_CC"
9544
9545
9546 # Check whether --with-tags or --without-tags was given.
9547 if test "${with_tags+set}" = set; then
9548   withval="$with_tags"
9549   tagnames="$withval"
9550 fi;
9551
9552 if test -f "$ltmain" && test -n "$tagnames"; then
9553   if test ! -f "${ofile}"; then
9554     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9555 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9556   fi
9557
9558   if test -z "$LTCC"; then
9559     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9560     if test -z "$LTCC"; then
9561       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9562 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9563     else
9564       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9565 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9566     fi
9567   fi
9568
9569   # Extract list of available tagged configurations in $ofile.
9570   # Note that this assumes the entire list is on one line.
9571   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9572
9573   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9574   for tagname in $tagnames; do
9575     IFS="$lt_save_ifs"
9576     # Check whether tagname contains only valid characters
9577     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9578     "") ;;
9579     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9580 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9581    { (exit 1); exit 1; }; }
9582         ;;
9583     esac
9584
9585     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9586     then
9587       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9588 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9589    { (exit 1); exit 1; }; }
9590     fi
9591
9592     # Update the list of available tags.
9593     if test -n "$tagname"; then
9594       echo appending configuration tag \"$tagname\" to $ofile
9595
9596       case $tagname in
9597       CXX)
9598         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9599           ac_ext=cc
9600 ac_cpp='$CXXCPP $CPPFLAGS'
9601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9604
9605
9606
9607
9608 archive_cmds_need_lc_CXX=no
9609 allow_undefined_flag_CXX=
9610 always_export_symbols_CXX=no
9611 archive_expsym_cmds_CXX=
9612 export_dynamic_flag_spec_CXX=
9613 hardcode_direct_CXX=no
9614 hardcode_libdir_flag_spec_CXX=
9615 hardcode_libdir_flag_spec_ld_CXX=
9616 hardcode_libdir_separator_CXX=
9617 hardcode_minus_L_CXX=no
9618 hardcode_automatic_CXX=no
9619 module_cmds_CXX=
9620 module_expsym_cmds_CXX=
9621 link_all_deplibs_CXX=unknown
9622 old_archive_cmds_CXX=$old_archive_cmds
9623 no_undefined_flag_CXX=
9624 whole_archive_flag_spec_CXX=
9625 enable_shared_with_static_runtimes_CXX=no
9626
9627 # Dependencies to place before and after the object being linked:
9628 predep_objects_CXX=
9629 postdep_objects_CXX=
9630 predeps_CXX=
9631 postdeps_CXX=
9632 compiler_lib_search_path_CXX=
9633
9634 # Source file extension for C++ test sources.
9635 ac_ext=cc
9636
9637 # Object file extension for compiled C++ test sources.
9638 objext=o
9639 objext_CXX=$objext
9640
9641 # Code to be used in simple compile tests
9642 lt_simple_compile_test_code="int some_variable = 0;\n"
9643
9644 # Code to be used in simple link tests
9645 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9646
9647 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9648
9649 # If no C compiler was specified, use CC.
9650 LTCC=${LTCC-"$CC"}
9651
9652 # Allow CC to be a program name with arguments.
9653 compiler=$CC
9654
9655
9656 # Allow CC to be a program name with arguments.
9657 lt_save_CC=$CC
9658 lt_save_LD=$LD
9659 lt_save_GCC=$GCC
9660 GCC=$GXX
9661 lt_save_with_gnu_ld=$with_gnu_ld
9662 lt_save_path_LD=$lt_cv_path_LD
9663 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9664   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9665 else
9666   unset lt_cv_prog_gnu_ld
9667 fi
9668 if test -n "${lt_cv_path_LDCXX+set}"; then
9669   lt_cv_path_LD=$lt_cv_path_LDCXX
9670 else
9671   unset lt_cv_path_LD
9672 fi
9673 test -z "${LDCXX+set}" || LD=$LDCXX
9674 CC=${CXX-"c++"}
9675 compiler=$CC
9676 compiler_CXX=$CC
9677 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9678
9679 # We don't want -fno-exception wen compiling C++ code, so set the
9680 # no_builtin_flag separately
9681 if test "$GXX" = yes; then
9682   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9683 else
9684   lt_prog_compiler_no_builtin_flag_CXX=
9685 fi
9686
9687 if test "$GXX" = yes; then
9688   # Set up default GNU C++ configuration
9689
9690
9691 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9692 if test "${with_gnu_ld+set}" = set; then
9693   withval="$with_gnu_ld"
9694   test "$withval" = no || with_gnu_ld=yes
9695 else
9696   with_gnu_ld=no
9697 fi;
9698 ac_prog=ld
9699 if test "$GCC" = yes; then
9700   # Check if gcc -print-prog-name=ld gives a path.
9701   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9702 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9703   case $host in
9704   *-*-mingw*)
9705     # gcc leaves a trailing carriage return which upsets mingw
9706     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9707   *)
9708     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9709   esac
9710   case $ac_prog in
9711     # Accept absolute paths.
9712     [\\/]* | ?:[\\/]*)
9713       re_direlt='/[^/][^/]*/\.\./'
9714       # Canonicalize the pathname of ld
9715       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9716       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9717         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9718       done
9719       test -z "$LD" && LD="$ac_prog"
9720       ;;
9721   "")
9722     # If it fails, then pretend we aren't using GCC.
9723     ac_prog=ld
9724     ;;
9725   *)
9726     # If it is relative, then search for the first ld in PATH.
9727     with_gnu_ld=unknown
9728     ;;
9729   esac
9730 elif test "$with_gnu_ld" = yes; then
9731   echo "$as_me:$LINENO: checking for GNU ld" >&5
9732 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9733 else
9734   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9735 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9736 fi
9737 if test "${lt_cv_path_LD+set}" = set; then
9738   echo $ECHO_N "(cached) $ECHO_C" >&6
9739 else
9740   if test -z "$LD"; then
9741   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9742   for ac_dir in $PATH; do
9743     IFS="$lt_save_ifs"
9744     test -z "$ac_dir" && ac_dir=.
9745     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9746       lt_cv_path_LD="$ac_dir/$ac_prog"
9747       # Check to see if the program is GNU ld.  I'd rather use --version,
9748       # but apparently some GNU ld's only accept -v.
9749       # Break only if it was the GNU/non-GNU ld that we prefer.
9750       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9751       *GNU* | *'with BFD'*)
9752         test "$with_gnu_ld" != no && break
9753         ;;
9754       *)
9755         test "$with_gnu_ld" != yes && break
9756         ;;
9757       esac
9758     fi
9759   done
9760   IFS="$lt_save_ifs"
9761 else
9762   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9763 fi
9764 fi
9765
9766 LD="$lt_cv_path_LD"
9767 if test -n "$LD"; then
9768   echo "$as_me:$LINENO: result: $LD" >&5
9769 echo "${ECHO_T}$LD" >&6
9770 else
9771   echo "$as_me:$LINENO: result: no" >&5
9772 echo "${ECHO_T}no" >&6
9773 fi
9774 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9775 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9776    { (exit 1); exit 1; }; }
9777 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9778 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9779 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9780   echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9783 case `$LD -v 2>&1 </dev/null` in
9784 *GNU* | *'with BFD'*)
9785   lt_cv_prog_gnu_ld=yes
9786   ;;
9787 *)
9788   lt_cv_prog_gnu_ld=no
9789   ;;
9790 esac
9791 fi
9792 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9793 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9794 with_gnu_ld=$lt_cv_prog_gnu_ld
9795
9796
9797
9798   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9799   # archiving commands below assume that GNU ld is being used.
9800   if test "$with_gnu_ld" = yes; then
9801     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9803
9804     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9805     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9806
9807     # If archive_cmds runs LD, not CC, wlarc should be empty
9808     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9809     #     investigate it a little bit more. (MM)
9810     wlarc='${wl}'
9811
9812     # ancient GNU ld didn't support --whole-archive et. al.
9813     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9814         grep 'no-whole-archive' > /dev/null; then
9815       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9816     else
9817       whole_archive_flag_spec_CXX=
9818     fi
9819   else
9820     with_gnu_ld=no
9821     wlarc=
9822
9823     # A generic and very simple default shared library creation
9824     # command for GNU C++ for the case where it uses the native
9825     # linker, instead of GNU ld.  If possible, this setting should
9826     # overridden to take advantage of the native linker features on
9827     # the platform it is being used on.
9828     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9829   fi
9830
9831   # Commands to make compiler produce verbose output that lists
9832   # what "hidden" libraries, object files and flags are used when
9833   # linking a shared library.
9834   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9835
9836 else
9837   GXX=no
9838   with_gnu_ld=no
9839   wlarc=
9840 fi
9841
9842 # PORTME: fill in a description of your system's C++ link characteristics
9843 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9844 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9845 ld_shlibs_CXX=yes
9846 case $host_os in
9847   aix3*)
9848     # FIXME: insert proper C++ library support
9849     ld_shlibs_CXX=no
9850     ;;
9851   aix4* | aix5*)
9852     if test "$host_cpu" = ia64; then
9853       # On IA64, the linker does run time linking by default, so we don't
9854       # have to do anything special.
9855       aix_use_runtimelinking=no
9856       exp_sym_flag='-Bexport'
9857       no_entry_flag=""
9858     else
9859       aix_use_runtimelinking=no
9860
9861       # Test if we are trying to use run time linking or normal
9862       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9863       # need to do runtime linking.
9864       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9865         for ld_flag in $LDFLAGS; do
9866           case $ld_flag in
9867           *-brtl*)
9868             aix_use_runtimelinking=yes
9869             break
9870             ;;
9871           esac
9872         done
9873       esac
9874
9875       exp_sym_flag='-bexport'
9876       no_entry_flag='-bnoentry'
9877     fi
9878
9879     # When large executables or shared objects are built, AIX ld can
9880     # have problems creating the table of contents.  If linking a library
9881     # or program results in "error TOC overflow" add -mminimal-toc to
9882     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9883     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9884
9885     archive_cmds_CXX=''
9886     hardcode_direct_CXX=yes
9887     hardcode_libdir_separator_CXX=':'
9888     link_all_deplibs_CXX=yes
9889
9890     if test "$GXX" = yes; then
9891       case $host_os in aix4.012|aix4.012.*)
9892       # We only want to do this on AIX 4.2 and lower, the check
9893       # below for broken collect2 doesn't work under 4.3+
9894         collect2name=`${CC} -print-prog-name=collect2`
9895         if test -f "$collect2name" && \
9896            strings "$collect2name" | grep resolve_lib_name >/dev/null
9897         then
9898           # We have reworked collect2
9899           hardcode_direct_CXX=yes
9900         else
9901           # We have old collect2
9902           hardcode_direct_CXX=unsupported
9903           # It fails to find uninstalled libraries when the uninstalled
9904           # path is not listed in the libpath.  Setting hardcode_minus_L
9905           # to unsupported forces relinking
9906           hardcode_minus_L_CXX=yes
9907           hardcode_libdir_flag_spec_CXX='-L$libdir'
9908           hardcode_libdir_separator_CXX=
9909         fi
9910       esac
9911       shared_flag='-shared'
9912     else
9913       # not using gcc
9914       if test "$host_cpu" = ia64; then
9915         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9916         # chokes on -Wl,-G. The following line is correct:
9917         shared_flag='-G'
9918       else
9919         if test "$aix_use_runtimelinking" = yes; then
9920           shared_flag='${wl}-G'
9921         else
9922           shared_flag='${wl}-bM:SRE'
9923         fi
9924       fi
9925     fi
9926
9927     # It seems that -bexpall does not export symbols beginning with
9928     # underscore (_), so it is better to generate a list of symbols to export.
9929     always_export_symbols_CXX=yes
9930     if test "$aix_use_runtimelinking" = yes; then
9931       # Warning - without using the other runtime loading flags (-brtl),
9932       # -berok will link without error, but may produce a broken library.
9933       allow_undefined_flag_CXX='-berok'
9934       # Determine the default libpath from the value encoded in an empty executable.
9935       cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h.  */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h.  */
9941
9942 int
9943 main ()
9944 {
9945
9946   ;
9947   return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952   (eval $ac_link) 2>conftest.er1
9953   ac_status=$?
9954   grep -v '^ *+' conftest.er1 >conftest.err
9955   rm -f conftest.er1
9956   cat conftest.err >&5
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); } &&
9959          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961   (eval $ac_try) 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); }; } &&
9965          { ac_try='test -s conftest$ac_exeext'
9966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967   (eval $ac_try) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; }; then
9971
9972 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9973 }'`
9974 # Check for a 64-bit object if we didn't find anything.
9975 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9976 }'`; fi
9977 else
9978   echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9980
9981 fi
9982 rm -f conftest.err conftest.$ac_objext \
9983       conftest$ac_exeext conftest.$ac_ext
9984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9985
9986       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9987
9988       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9989      else
9990       if test "$host_cpu" = ia64; then
9991         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9992         allow_undefined_flag_CXX="-z nodefs"
9993         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9994       else
9995         # Determine the default libpath from the value encoded in an empty executable.
9996         cat >conftest.$ac_ext <<_ACEOF
9997 /* confdefs.h.  */
9998 _ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h.  */
10002
10003 int
10004 main ()
10005 {
10006
10007   ;
10008   return 0;
10009 }
10010 _ACEOF
10011 rm -f conftest.$ac_objext conftest$ac_exeext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10013   (eval $ac_link) 2>conftest.er1
10014   ac_status=$?
10015   grep -v '^ *+' conftest.er1 >conftest.err
10016   rm -f conftest.er1
10017   cat conftest.err >&5
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); } &&
10020          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022   (eval $ac_try) 2>&5
10023   ac_status=$?
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); }; } &&
10026          { ac_try='test -s conftest$ac_exeext'
10027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028   (eval $ac_try) 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); }; }; then
10032
10033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10034 }'`
10035 # Check for a 64-bit object if we didn't find anything.
10036 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10037 }'`; fi
10038 else
10039   echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10041
10042 fi
10043 rm -f conftest.err conftest.$ac_objext \
10044       conftest$ac_exeext conftest.$ac_ext
10045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10046
10047         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10048         # Warning - without using the other run time loading flags,
10049         # -berok will link without error, but may produce a broken library.
10050         no_undefined_flag_CXX=' ${wl}-bernotok'
10051         allow_undefined_flag_CXX=' ${wl}-berok'
10052         # -bexpall does not export symbols beginning with underscore (_)
10053         always_export_symbols_CXX=yes
10054         # Exported symbols can be pulled into shared objects from archives
10055         whole_archive_flag_spec_CXX=' '
10056         archive_cmds_need_lc_CXX=yes
10057         # This is similar to how AIX traditionally builds it's shared libraries.
10058         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10059       fi
10060     fi
10061     ;;
10062   chorus*)
10063     case $cc_basename in
10064       *)
10065         # FIXME: insert proper C++ library support
10066         ld_shlibs_CXX=no
10067         ;;
10068     esac
10069     ;;
10070
10071   cygwin* | mingw* | pw32*)
10072     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10073     # as there is no search path for DLLs.
10074     hardcode_libdir_flag_spec_CXX='-L$libdir'
10075     allow_undefined_flag_CXX=unsupported
10076     always_export_symbols_CXX=no
10077     enable_shared_with_static_runtimes_CXX=yes
10078
10079     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10080       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10081       # If the export-symbols file already is a .def file (1st line
10082       # is EXPORTS), use it as is; otherwise, prepend...
10083       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10084         cp $export_symbols $output_objdir/$soname.def;
10085       else
10086         echo EXPORTS > $output_objdir/$soname.def;
10087         cat $export_symbols >> $output_objdir/$soname.def;
10088       fi~
10089       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10090     else
10091       ld_shlibs_CXX=no
10092     fi
10093   ;;
10094
10095   darwin* | rhapsody*)
10096   if test "$GXX" = yes; then
10097     archive_cmds_need_lc_CXX=no
10098     case "$host_os" in
10099     rhapsody* | darwin1.[012])
10100       allow_undefined_flag_CXX='-undefined suppress'
10101       ;;
10102     *) # Darwin 1.3 on
10103       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10104         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10105       else
10106         case ${MACOSX_DEPLOYMENT_TARGET} in
10107           10.[012])
10108             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10109             ;;
10110           10.*)
10111             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10112             ;;
10113         esac
10114       fi
10115       ;;
10116     esac
10117     lt_int_apple_cc_single_mod=no
10118     output_verbose_link_cmd='echo'
10119     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10120       lt_int_apple_cc_single_mod=yes
10121     fi
10122     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10123       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10124     else
10125       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10126     fi
10127     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10128
10129     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10130     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10131       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10132     else
10133       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10134     fi
10135     module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10136     hardcode_direct_CXX=no
10137     hardcode_automatic_CXX=yes
10138     hardcode_shlibpath_var_CXX=unsupported
10139     whole_archive_flag_spec_CXX='-all_load $convenience'
10140     link_all_deplibs_CXX=yes
10141   else
10142     ld_shlibs_CXX=no
10143   fi
10144     ;;
10145
10146   dgux*)
10147     case $cc_basename in
10148       ec++)
10149         # FIXME: insert proper C++ library support
10150         ld_shlibs_CXX=no
10151         ;;
10152       ghcx)
10153         # Green Hills C++ Compiler
10154         # FIXME: insert proper C++ library support
10155         ld_shlibs_CXX=no
10156         ;;
10157       *)
10158         # FIXME: insert proper C++ library support
10159         ld_shlibs_CXX=no
10160         ;;
10161     esac
10162     ;;
10163   freebsd12*)
10164     # C++ shared libraries reported to be fairly broken before switch to ELF
10165     ld_shlibs_CXX=no
10166     ;;
10167   freebsd-elf*)
10168     archive_cmds_need_lc_CXX=no
10169     ;;
10170   freebsd* | kfreebsd*-gnu)
10171     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10172     # conventions
10173     ld_shlibs_CXX=yes
10174     ;;
10175   gnu*)
10176     ;;
10177   hpux9*)
10178     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10179     hardcode_libdir_separator_CXX=:
10180     export_dynamic_flag_spec_CXX='${wl}-E'
10181     hardcode_direct_CXX=yes
10182     hardcode_minus_L_CXX=yes # Not in the search PATH,
10183                                 # but as the default
10184                                 # location of the library.
10185
10186     case $cc_basename in
10187     CC)
10188       # FIXME: insert proper C++ library support
10189       ld_shlibs_CXX=no
10190       ;;
10191     aCC)
10192       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10193       # Commands to make compiler produce verbose output that lists
10194       # what "hidden" libraries, object files and flags are used when
10195       # linking a shared library.
10196       #
10197       # There doesn't appear to be a way to prevent this compiler from
10198       # explicitly linking system object files so we need to strip them
10199       # from the output so that they don't get included in the library
10200       # dependencies.
10201       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10202       ;;
10203     *)
10204       if test "$GXX" = yes; then
10205         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10206       else
10207         # FIXME: insert proper C++ library support
10208         ld_shlibs_CXX=no
10209       fi
10210       ;;
10211     esac
10212     ;;
10213   hpux10*|hpux11*)
10214     if test $with_gnu_ld = no; then
10215       case "$host_cpu" in
10216       hppa*64*)
10217         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10218         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10219         hardcode_libdir_separator_CXX=:
10220         ;;
10221       ia64*)
10222         hardcode_libdir_flag_spec_CXX='-L$libdir'
10223         ;;
10224       *)
10225         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10226         hardcode_libdir_separator_CXX=:
10227         export_dynamic_flag_spec_CXX='${wl}-E'
10228         ;;
10229       esac
10230     fi
10231     case "$host_cpu" in
10232     hppa*64*)
10233       hardcode_direct_CXX=no
10234       hardcode_shlibpath_var_CXX=no
10235       ;;
10236     ia64*)
10237       hardcode_direct_CXX=no
10238       hardcode_shlibpath_var_CXX=no
10239       hardcode_minus_L_CXX=yes # Not in the search PATH,
10240                                               # but as the default
10241                                               # location of the library.
10242       ;;
10243     *)
10244       hardcode_direct_CXX=yes
10245       hardcode_minus_L_CXX=yes # Not in the search PATH,
10246                                               # but as the default
10247                                               # location of the library.
10248       ;;
10249     esac
10250
10251     case $cc_basename in
10252       CC)
10253         # FIXME: insert proper C++ library support
10254         ld_shlibs_CXX=no
10255         ;;
10256       aCC)
10257         case "$host_cpu" in
10258         hppa*64*|ia64*)
10259           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10260           ;;
10261         *)
10262           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10263           ;;
10264         esac
10265         # Commands to make compiler produce verbose output that lists
10266         # what "hidden" libraries, object files and flags are used when
10267         # linking a shared library.
10268         #
10269         # There doesn't appear to be a way to prevent this compiler from
10270         # explicitly linking system object files so we need to strip them
10271         # from the output so that they don't get included in the library
10272         # dependencies.
10273         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10274         ;;
10275       *)
10276         if test "$GXX" = yes; then
10277           if test $with_gnu_ld = no; then
10278             case "$host_cpu" in
10279             ia64*|hppa*64*)
10280               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10281               ;;
10282             *)
10283               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10284               ;;
10285             esac
10286           fi
10287         else
10288           # FIXME: insert proper C++ library support
10289           ld_shlibs_CXX=no
10290         fi
10291         ;;
10292     esac
10293     ;;
10294   irix5* | irix6*)
10295     case $cc_basename in
10296       CC)
10297         # SGI C++
10298         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10299
10300         # Archives containing C++ object files must be created using
10301         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10302         # necessary to make sure instantiated templates are included
10303         # in the archive.
10304         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10305         ;;
10306       *)
10307         if test "$GXX" = yes; then
10308           if test "$with_gnu_ld" = no; then
10309             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10310           else
10311             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10312           fi
10313         fi
10314         link_all_deplibs_CXX=yes
10315         ;;
10316     esac
10317     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10318     hardcode_libdir_separator_CXX=:
10319     ;;
10320   linux*)
10321     case $cc_basename in
10322       KCC)
10323         # Kuck and Associates, Inc. (KAI) C++ Compiler
10324
10325         # KCC will only create a shared library if the output file
10326         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10327         # to its proper name (with version) after linking.
10328         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10329         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10330         # Commands to make compiler produce verbose output that lists
10331         # what "hidden" libraries, object files and flags are used when
10332         # linking a shared library.
10333         #
10334         # There doesn't appear to be a way to prevent this compiler from
10335         # explicitly linking system object files so we need to strip them
10336         # from the output so that they don't get included in the library
10337         # dependencies.
10338         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10339
10340         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10341         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10342
10343         # Archives containing C++ object files must be created using
10344         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10345         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10346         ;;
10347       icpc)
10348         # Intel C++
10349         with_gnu_ld=yes
10350         archive_cmds_need_lc_CXX=no
10351         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10352         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10353         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10354         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10355         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10356         ;;
10357       cxx)
10358         # Compaq C++
10359         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10360         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10361
10362         runpath_var=LD_RUN_PATH
10363         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10364         hardcode_libdir_separator_CXX=:
10365
10366         # Commands to make compiler produce verbose output that lists
10367         # what "hidden" libraries, object files and flags are used when
10368         # linking a shared library.
10369         #
10370         # There doesn't appear to be a way to prevent this compiler from
10371         # explicitly linking system object files so we need to strip them
10372         # from the output so that they don't get included in the library
10373         # dependencies.
10374         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10375         ;;
10376     esac
10377     ;;
10378   lynxos*)
10379     # FIXME: insert proper C++ library support
10380     ld_shlibs_CXX=no
10381     ;;
10382   m88k*)
10383     # FIXME: insert proper C++ library support
10384     ld_shlibs_CXX=no
10385     ;;
10386   mvs*)
10387     case $cc_basename in
10388       cxx)
10389         # FIXME: insert proper C++ library support
10390         ld_shlibs_CXX=no
10391         ;;
10392       *)
10393         # FIXME: insert proper C++ library support
10394         ld_shlibs_CXX=no
10395         ;;
10396     esac
10397     ;;
10398   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10399     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10400       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10401       wlarc=
10402       hardcode_libdir_flag_spec_CXX='-R$libdir'
10403       hardcode_direct_CXX=yes
10404       hardcode_shlibpath_var_CXX=no
10405     fi
10406     # Workaround some broken pre-1.5 toolchains
10407     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10408     ;;
10409   osf3*)
10410     case $cc_basename in
10411       KCC)
10412         # Kuck and Associates, Inc. (KAI) C++ Compiler
10413
10414         # KCC will only create a shared library if the output file
10415         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10416         # to its proper name (with version) after linking.
10417         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10418
10419         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10420         hardcode_libdir_separator_CXX=:
10421
10422         # Archives containing C++ object files must be created using
10423         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10424         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10425
10426         ;;
10427       RCC)
10428         # Rational C++ 2.4.1
10429         # FIXME: insert proper C++ library support
10430         ld_shlibs_CXX=no
10431         ;;
10432       cxx)
10433         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10434         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10435
10436         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10437         hardcode_libdir_separator_CXX=:
10438
10439         # Commands to make compiler produce verbose output that lists
10440         # what "hidden" libraries, object files and flags are used when
10441         # linking a shared library.
10442         #
10443         # There doesn't appear to be a way to prevent this compiler from
10444         # explicitly linking system object files so we need to strip them
10445         # from the output so that they don't get included in the library
10446         # dependencies.
10447         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10448         ;;
10449       *)
10450         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10451           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10452           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10453
10454           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10455           hardcode_libdir_separator_CXX=:
10456
10457           # Commands to make compiler produce verbose output that lists
10458           # what "hidden" libraries, object files and flags are used when
10459           # linking a shared library.
10460           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10461
10462         else
10463           # FIXME: insert proper C++ library support
10464           ld_shlibs_CXX=no
10465         fi
10466         ;;
10467     esac
10468     ;;
10469   osf4* | osf5*)
10470     case $cc_basename in
10471       KCC)
10472         # Kuck and Associates, Inc. (KAI) C++ Compiler
10473
10474         # KCC will only create a shared library if the output file
10475         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10476         # to its proper name (with version) after linking.
10477         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10478
10479         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10480         hardcode_libdir_separator_CXX=:
10481
10482         # Archives containing C++ object files must be created using
10483         # the KAI C++ compiler.
10484         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10485         ;;
10486       RCC)
10487         # Rational C++ 2.4.1
10488         # FIXME: insert proper C++ library support
10489         ld_shlibs_CXX=no
10490         ;;
10491       cxx)
10492         allow_undefined_flag_CXX=' -expect_unresolved \*'
10493         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10494         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10495           echo "-hidden">> $lib.exp~
10496           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10497           $rm $lib.exp'
10498
10499         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10500         hardcode_libdir_separator_CXX=:
10501
10502         # Commands to make compiler produce verbose output that lists
10503         # what "hidden" libraries, object files and flags are used when
10504         # linking a shared library.
10505         #
10506         # There doesn't appear to be a way to prevent this compiler from
10507         # explicitly linking system object files so we need to strip them
10508         # from the output so that they don't get included in the library
10509         # dependencies.
10510         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10511         ;;
10512       *)
10513         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10514           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10515          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10516
10517           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10518           hardcode_libdir_separator_CXX=:
10519
10520           # Commands to make compiler produce verbose output that lists
10521           # what "hidden" libraries, object files and flags are used when
10522           # linking a shared library.
10523           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10524
10525         else
10526           # FIXME: insert proper C++ library support
10527           ld_shlibs_CXX=no
10528         fi
10529         ;;
10530     esac
10531     ;;
10532   psos*)
10533     # FIXME: insert proper C++ library support
10534     ld_shlibs_CXX=no
10535     ;;
10536   sco*)
10537     archive_cmds_need_lc_CXX=no
10538     case $cc_basename in
10539       CC)
10540         # FIXME: insert proper C++ library support
10541         ld_shlibs_CXX=no
10542         ;;
10543       *)
10544         # FIXME: insert proper C++ library support
10545         ld_shlibs_CXX=no
10546         ;;
10547     esac
10548     ;;
10549   sunos4*)
10550     case $cc_basename in
10551       CC)
10552         # Sun C++ 4.x
10553         # FIXME: insert proper C++ library support
10554         ld_shlibs_CXX=no
10555         ;;
10556       lcc)
10557         # Lucid
10558         # FIXME: insert proper C++ library support
10559         ld_shlibs_CXX=no
10560         ;;
10561       *)
10562         # FIXME: insert proper C++ library support
10563         ld_shlibs_CXX=no
10564         ;;
10565     esac
10566     ;;
10567   solaris*)
10568     case $cc_basename in
10569       CC)
10570         # Sun C++ 4.2, 5.x and Centerline C++
10571         no_undefined_flag_CXX=' -zdefs'
10572         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10573         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10574         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10575
10576         hardcode_libdir_flag_spec_CXX='-R$libdir'
10577         hardcode_shlibpath_var_CXX=no
10578         case $host_os in
10579           solaris2.0-5 | solaris2.0-5.*) ;;
10580           *)
10581             # The C++ compiler is used as linker so we must use $wl
10582             # flag to pass the commands to the underlying system
10583             # linker.
10584             # Supported since Solaris 2.6 (maybe 2.5.1?)
10585             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10586             ;;
10587         esac
10588         link_all_deplibs_CXX=yes
10589
10590         # Commands to make compiler produce verbose output that lists
10591         # what "hidden" libraries, object files and flags are used when
10592         # linking a shared library.
10593         #
10594         # There doesn't appear to be a way to prevent this compiler from
10595         # explicitly linking system object files so we need to strip them
10596         # from the output so that they don't get included in the library
10597         # dependencies.
10598         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10599
10600         # Archives containing C++ object files must be created using
10601         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10602         # necessary to make sure instantiated templates are included
10603         # in the archive.
10604         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10605         ;;
10606       gcx)
10607         # Green Hills C++ Compiler
10608         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10609
10610         # The C++ compiler must be used to create the archive.
10611         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10612         ;;
10613       *)
10614         # GNU C++ compiler with Solaris linker
10615         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10616           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10617           if $CC --version | grep -v '^2\.7' > /dev/null; then
10618             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10619             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10620                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10621
10622             # Commands to make compiler produce verbose output that lists
10623             # what "hidden" libraries, object files and flags are used when
10624             # linking a shared library.
10625             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10626           else
10627             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10628             # platform.
10629             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10630             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10631                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10632
10633             # Commands to make compiler produce verbose output that lists
10634             # what "hidden" libraries, object files and flags are used when
10635             # linking a shared library.
10636             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10637           fi
10638
10639           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10640         fi
10641         ;;
10642     esac
10643     ;;
10644   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10645     archive_cmds_need_lc_CXX=no
10646     ;;
10647   tandem*)
10648     case $cc_basename in
10649       NCC)
10650         # NonStop-UX NCC 3.20
10651         # FIXME: insert proper C++ library support
10652         ld_shlibs_CXX=no
10653         ;;
10654       *)
10655         # FIXME: insert proper C++ library support
10656         ld_shlibs_CXX=no
10657         ;;
10658     esac
10659     ;;
10660   vxworks*)
10661     # FIXME: insert proper C++ library support
10662     ld_shlibs_CXX=no
10663     ;;
10664   *)
10665     # FIXME: insert proper C++ library support
10666     ld_shlibs_CXX=no
10667     ;;
10668 esac
10669 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10670 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10671 test "$ld_shlibs_CXX" = no && can_build_shared=no
10672
10673 GCC_CXX="$GXX"
10674 LD_CXX="$LD"
10675
10676
10677 cat > conftest.$ac_ext <<EOF
10678 class Foo
10679 {
10680 public:
10681   Foo (void) { a = 0; }
10682 private:
10683   int a;
10684 };
10685 EOF
10686
10687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10688   (eval $ac_compile) 2>&5
10689   ac_status=$?
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); }; then
10692   # Parse the compiler output and extract the necessary
10693   # objects, libraries and library flags.
10694
10695   # Sentinel used to keep track of whether or not we are before
10696   # the conftest object file.
10697   pre_test_object_deps_done=no
10698
10699   # The `*' in the case matches for architectures that use `case' in
10700   # $output_verbose_cmd can trigger glob expansion during the loop
10701   # eval without this substitution.
10702   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10703
10704   for p in `eval $output_verbose_link_cmd`; do
10705     case $p in
10706
10707     -L* | -R* | -l*)
10708        # Some compilers place space between "-{L,R}" and the path.
10709        # Remove the space.
10710        if test $p = "-L" \
10711           || test $p = "-R"; then
10712          prev=$p
10713          continue
10714        else
10715          prev=
10716        fi
10717
10718        if test "$pre_test_object_deps_done" = no; then
10719          case $p in
10720          -L* | -R*)
10721            # Internal compiler library paths should come after those
10722            # provided the user.  The postdeps already come after the
10723            # user supplied libs so there is no need to process them.
10724            if test -z "$compiler_lib_search_path_CXX"; then
10725              compiler_lib_search_path_CXX="${prev}${p}"
10726            else
10727              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10728            fi
10729            ;;
10730          # The "-l" case would never come before the object being
10731          # linked, so don't bother handling this case.
10732          esac
10733        else
10734          if test -z "$postdeps_CXX"; then
10735            postdeps_CXX="${prev}${p}"
10736          else
10737            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10738          fi
10739        fi
10740        ;;
10741
10742     *.$objext)
10743        # This assumes that the test object file only shows up
10744        # once in the compiler output.
10745        if test "$p" = "conftest.$objext"; then
10746          pre_test_object_deps_done=yes
10747          continue
10748        fi
10749
10750        if test "$pre_test_object_deps_done" = no; then
10751          if test -z "$predep_objects_CXX"; then
10752            predep_objects_CXX="$p"
10753          else
10754            predep_objects_CXX="$predep_objects_CXX $p"
10755          fi
10756        else
10757          if test -z "$postdep_objects_CXX"; then
10758            postdep_objects_CXX="$p"
10759          else
10760            postdep_objects_CXX="$postdep_objects_CXX $p"
10761          fi
10762        fi
10763        ;;
10764
10765     *) ;; # Ignore the rest.
10766
10767     esac
10768   done
10769
10770   # Clean up.
10771   rm -f a.out a.exe
10772 else
10773   echo "libtool.m4: error: problem compiling CXX test program"
10774 fi
10775
10776 $rm -f confest.$objext
10777
10778 case " $postdeps_CXX " in
10779 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10780 esac
10781
10782 lt_prog_compiler_wl_CXX=
10783 lt_prog_compiler_pic_CXX=
10784 lt_prog_compiler_static_CXX=
10785
10786 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10787 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10788
10789   # C++ specific cases for pic, static, wl, etc.
10790   if test "$GXX" = yes; then
10791     lt_prog_compiler_wl_CXX='-Wl,'
10792     lt_prog_compiler_static_CXX='-static'
10793
10794     case $host_os in
10795     aix*)
10796       # All AIX code is PIC.
10797       if test "$host_cpu" = ia64; then
10798         # AIX 5 now supports IA64 processor
10799         lt_prog_compiler_static_CXX='-Bstatic'
10800       fi
10801       ;;
10802     amigaos*)
10803       # FIXME: we need at least 68020 code to build shared libraries, but
10804       # adding the `-m68020' flag to GCC prevents building anything better,
10805       # like `-m68040'.
10806       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10807       ;;
10808     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10809       # PIC is the default for these OSes.
10810       ;;
10811     mingw* | os2* | pw32*)
10812       # This hack is so that the source file can tell whether it is being
10813       # built for inclusion in a dll (and should export symbols for example).
10814       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10815       ;;
10816     darwin* | rhapsody*)
10817       # PIC is the default on this platform
10818       # Common symbols not allowed in MH_DYLIB files
10819       lt_prog_compiler_pic_CXX='-fno-common'
10820       ;;
10821     *djgpp*)
10822       # DJGPP does not support shared libraries at all
10823       lt_prog_compiler_pic_CXX=
10824       ;;
10825     sysv4*MP*)
10826       if test -d /usr/nec; then
10827         lt_prog_compiler_pic_CXX=-Kconform_pic
10828       fi
10829       ;;
10830     hpux*)
10831       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10832       # not for PA HP-UX.
10833       case "$host_cpu" in
10834       hppa*64*|ia64*)
10835         ;;
10836       *)
10837         lt_prog_compiler_pic_CXX='-fPIC'
10838         ;;
10839       esac
10840       ;;
10841     *)
10842       lt_prog_compiler_pic_CXX='-fPIC'
10843       ;;
10844     esac
10845   else
10846     case $host_os in
10847       aix4* | aix5*)
10848         # All AIX code is PIC.
10849         if test "$host_cpu" = ia64; then
10850           # AIX 5 now supports IA64 processor
10851           lt_prog_compiler_static_CXX='-Bstatic'
10852         else
10853           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10854         fi
10855         ;;
10856       chorus*)
10857         case $cc_basename in
10858         cxch68)
10859           # Green Hills C++ Compiler
10860           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10861           ;;
10862         esac
10863         ;;
10864       dgux*)
10865         case $cc_basename in
10866           ec++)
10867             lt_prog_compiler_pic_CXX='-KPIC'
10868             ;;
10869           ghcx)
10870             # Green Hills C++ Compiler
10871             lt_prog_compiler_pic_CXX='-pic'
10872             ;;
10873           *)
10874             ;;
10875         esac
10876         ;;
10877       freebsd* | kfreebsd*-gnu)
10878         # FreeBSD uses GNU C++
10879         ;;
10880       hpux9* | hpux10* | hpux11*)
10881         case $cc_basename in
10882           CC)
10883             lt_prog_compiler_wl_CXX='-Wl,'
10884             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10885             if test "$host_cpu" != ia64; then
10886               lt_prog_compiler_pic_CXX='+Z'
10887             fi
10888             ;;
10889           aCC)
10890             lt_prog_compiler_wl_CXX='-Wl,'
10891             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10892             case "$host_cpu" in
10893             hppa*64*|ia64*)
10894               # +Z the default
10895               ;;
10896             *)
10897               lt_prog_compiler_pic_CXX='+Z'
10898               ;;
10899             esac
10900             ;;
10901           *)
10902             ;;
10903         esac
10904         ;;
10905       irix5* | irix6* | nonstopux*)
10906         case $cc_basename in
10907           CC)
10908             lt_prog_compiler_wl_CXX='-Wl,'
10909             lt_prog_compiler_static_CXX='-non_shared'
10910             # CC pic flag -KPIC is the default.
10911             ;;
10912           *)
10913             ;;
10914         esac
10915         ;;
10916       linux*)
10917         case $cc_basename in
10918           KCC)
10919             # KAI C++ Compiler
10920             lt_prog_compiler_wl_CXX='--backend -Wl,'
10921             lt_prog_compiler_pic_CXX='-fPIC'
10922             ;;
10923           icpc)
10924             # Intel C++
10925             lt_prog_compiler_wl_CXX='-Wl,'
10926             lt_prog_compiler_pic_CXX='-KPIC'
10927             lt_prog_compiler_static_CXX='-static'
10928             ;;
10929           cxx)
10930             # Compaq C++
10931             # Make sure the PIC flag is empty.  It appears that all Alpha
10932             # Linux and Compaq Tru64 Unix objects are PIC.
10933             lt_prog_compiler_pic_CXX=
10934             lt_prog_compiler_static_CXX='-non_shared'
10935             ;;
10936           *)
10937             ;;
10938         esac
10939         ;;
10940       lynxos*)
10941         ;;
10942       m88k*)
10943         ;;
10944       mvs*)
10945         case $cc_basename in
10946           cxx)
10947             lt_prog_compiler_pic_CXX='-W c,exportall'
10948             ;;
10949           *)
10950             ;;
10951         esac
10952         ;;
10953       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10954         ;;
10955       osf3* | osf4* | osf5*)
10956         case $cc_basename in
10957           KCC)
10958             lt_prog_compiler_wl_CXX='--backend -Wl,'
10959             ;;
10960           RCC)
10961             # Rational C++ 2.4.1
10962             lt_prog_compiler_pic_CXX='-pic'
10963             ;;
10964           cxx)
10965             # Digital/Compaq C++
10966             lt_prog_compiler_wl_CXX='-Wl,'
10967             # Make sure the PIC flag is empty.  It appears that all Alpha
10968             # Linux and Compaq Tru64 Unix objects are PIC.
10969             lt_prog_compiler_pic_CXX=
10970             lt_prog_compiler_static_CXX='-non_shared'
10971             ;;
10972           *)
10973             ;;
10974         esac
10975         ;;
10976       psos*)
10977         ;;
10978       sco*)
10979         case $cc_basename in
10980           CC)
10981             lt_prog_compiler_pic_CXX='-fPIC'
10982             ;;
10983           *)
10984             ;;
10985         esac
10986         ;;
10987       solaris*)
10988         case $cc_basename in
10989           CC)
10990             # Sun C++ 4.2, 5.x and Centerline C++
10991             lt_prog_compiler_pic_CXX='-KPIC'
10992             lt_prog_compiler_static_CXX='-Bstatic'
10993             lt_prog_compiler_wl_CXX='-Qoption ld '
10994             ;;
10995           gcx)
10996             # Green Hills C++ Compiler
10997             lt_prog_compiler_pic_CXX='-PIC'
10998             ;;
10999           *)
11000             ;;
11001         esac
11002         ;;
11003       sunos4*)
11004         case $cc_basename in
11005           CC)
11006             # Sun C++ 4.x
11007             lt_prog_compiler_pic_CXX='-pic'
11008             lt_prog_compiler_static_CXX='-Bstatic'
11009             ;;
11010           lcc)
11011             # Lucid
11012             lt_prog_compiler_pic_CXX='-pic'
11013             ;;
11014           *)
11015             ;;
11016         esac
11017         ;;
11018       tandem*)
11019         case $cc_basename in
11020           NCC)
11021             # NonStop-UX NCC 3.20
11022             lt_prog_compiler_pic_CXX='-KPIC'
11023             ;;
11024           *)
11025             ;;
11026         esac
11027         ;;
11028       unixware*)
11029         ;;
11030       vxworks*)
11031         ;;
11032       *)
11033         lt_prog_compiler_can_build_shared_CXX=no
11034         ;;
11035     esac
11036   fi
11037
11038 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11039 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11040
11041 #
11042 # Check to make sure the PIC flag actually works.
11043 #
11044 if test -n "$lt_prog_compiler_pic_CXX"; then
11045
11046 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11047 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11048 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11049   echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051   lt_prog_compiler_pic_works_CXX=no
11052   ac_outfile=conftest.$ac_objext
11053    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11054    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11055    # Insert the option either (1) after the last *FLAGS variable, or
11056    # (2) before a word containing "conftest.", or (3) at the end.
11057    # Note that $ac_compile itself does not contain backslashes and begins
11058    # with a dollar sign (not a hyphen), so the echo should work correctly.
11059    # The option is referenced via a variable to avoid confusing sed.
11060    lt_compile=`echo "$ac_compile" | $SED \
11061    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11062    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11063    -e 's:$: $lt_compiler_flag:'`
11064    (eval echo "\"\$as_me:11064: $lt_compile\"" >&5)
11065    (eval "$lt_compile" 2>conftest.err)
11066    ac_status=$?
11067    cat conftest.err >&5
11068    echo "$as_me:11068: \$? = $ac_status" >&5
11069    if (exit $ac_status) && test -s "$ac_outfile"; then
11070      # The compiler can only warn and ignore the option if not recognized
11071      # So say no if there are warnings
11072      if test ! -s conftest.err; then
11073        lt_prog_compiler_pic_works_CXX=yes
11074      fi
11075    fi
11076    $rm conftest*
11077
11078 fi
11079 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11080 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11081
11082 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11083     case $lt_prog_compiler_pic_CXX in
11084      "" | " "*) ;;
11085      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11086      esac
11087 else
11088     lt_prog_compiler_pic_CXX=
11089      lt_prog_compiler_can_build_shared_CXX=no
11090 fi
11091
11092 fi
11093 case "$host_os" in
11094   # For platforms which do not support PIC, -DPIC is meaningless:
11095   *djgpp*)
11096     lt_prog_compiler_pic_CXX=
11097     ;;
11098   *)
11099     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11100     ;;
11101 esac
11102
11103 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11105 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11106   echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108   lt_cv_prog_compiler_c_o_CXX=no
11109    $rm -r conftest 2>/dev/null
11110    mkdir conftest
11111    cd conftest
11112    mkdir out
11113    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11114
11115    lt_compiler_flag="-o out/conftest2.$ac_objext"
11116    # Insert the option either (1) after the last *FLAGS variable, or
11117    # (2) before a word containing "conftest.", or (3) at the end.
11118    # Note that $ac_compile itself does not contain backslashes and begins
11119    # with a dollar sign (not a hyphen), so the echo should work correctly.
11120    lt_compile=`echo "$ac_compile" | $SED \
11121    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11122    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11123    -e 's:$: $lt_compiler_flag:'`
11124    (eval echo "\"\$as_me:11124: $lt_compile\"" >&5)
11125    (eval "$lt_compile" 2>out/conftest.err)
11126    ac_status=$?
11127    cat out/conftest.err >&5
11128    echo "$as_me:11128: \$? = $ac_status" >&5
11129    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11130    then
11131      # The compiler can only warn and ignore the option if not recognized
11132      # So say no if there are warnings
11133      if test ! -s out/conftest.err; then
11134        lt_cv_prog_compiler_c_o_CXX=yes
11135      fi
11136    fi
11137    chmod u+w .
11138    $rm conftest*
11139    # SGI C++ compiler will create directory out/ii_files/ for
11140    # template instantiation
11141    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11142    $rm out/* && rmdir out
11143    cd ..
11144    rmdir conftest
11145    $rm conftest*
11146
11147 fi
11148 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11149 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11150
11151
11152 hard_links="nottested"
11153 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11154   # do not overwrite the value of need_locks provided by the user
11155   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11156 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11157   hard_links=yes
11158   $rm conftest*
11159   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11160   touch conftest.a
11161   ln conftest.a conftest.b 2>&5 || hard_links=no
11162   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11163   echo "$as_me:$LINENO: result: $hard_links" >&5
11164 echo "${ECHO_T}$hard_links" >&6
11165   if test "$hard_links" = no; then
11166     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11167 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11168     need_locks=warn
11169   fi
11170 else
11171   need_locks=no
11172 fi
11173
11174 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11175 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11176
11177   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11178   case $host_os in
11179   aix4* | aix5*)
11180     # If we're using GNU nm, then we don't want the "-C" option.
11181     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11182     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11183       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11184     else
11185       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11186     fi
11187     ;;
11188   pw32*)
11189     export_symbols_cmds_CXX="$ltdll_cmds"
11190   ;;
11191   cygwin* | mingw*)
11192     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11193   ;;
11194   linux*)
11195     link_all_deplibs_CXX=no
11196   ;;
11197   *)
11198     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11199   ;;
11200   esac
11201
11202 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11203 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11204 test "$ld_shlibs_CXX" = no && can_build_shared=no
11205
11206 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11207 if test "$GCC" = yes; then
11208   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11209 fi
11210
11211 #
11212 # Do we need to explicitly link libc?
11213 #
11214 case "x$archive_cmds_need_lc_CXX" in
11215 x|xyes)
11216   # Assume -lc should be added
11217   archive_cmds_need_lc_CXX=yes
11218
11219   if test "$enable_shared" = yes && test "$GCC" = yes; then
11220     case $archive_cmds_CXX in
11221     *'~'*)
11222       # FIXME: we may have to deal with multi-command sequences.
11223       ;;
11224     '$CC '*)
11225       # Test whether the compiler implicitly links with -lc since on some
11226       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11227       # to ld, don't add -lc before -lgcc.
11228       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11229 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11230       $rm conftest*
11231       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11232
11233       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234   (eval $ac_compile) 2>&5
11235   ac_status=$?
11236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237   (exit $ac_status); } 2>conftest.err; then
11238         soname=conftest
11239         lib=conftest
11240         libobjs=conftest.$ac_objext
11241         deplibs=
11242         wl=$lt_prog_compiler_wl_CXX
11243         compiler_flags=-v
11244         linker_flags=-v
11245         verstring=
11246         output_objdir=.
11247         libname=conftest
11248         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11249         allow_undefined_flag_CXX=
11250         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11251   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11252   ac_status=$?
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); }
11255         then
11256           archive_cmds_need_lc_CXX=no
11257         else
11258           archive_cmds_need_lc_CXX=yes
11259         fi
11260         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11261       else
11262         cat conftest.err 1>&5
11263       fi
11264       $rm conftest*
11265       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11266 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11267       ;;
11268     esac
11269   fi
11270   ;;
11271 esac
11272
11273 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11274 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11275 library_names_spec=
11276 libname_spec='lib$name'
11277 soname_spec=
11278 shrext_cmds=".so"
11279 postinstall_cmds=
11280 postuninstall_cmds=
11281 finish_cmds=
11282 finish_eval=
11283 shlibpath_var=
11284 shlibpath_overrides_runpath=unknown
11285 version_type=none
11286 dynamic_linker="$host_os ld.so"
11287 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11288 if test "$GCC" = yes; then
11289   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11290   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11291     # if the path contains ";" then we assume it to be the separator
11292     # otherwise default to the standard path separator (i.e. ":") - it is
11293     # assumed that no part of a normal pathname contains ";" but that should
11294     # okay in the real world where ";" in dirpaths is itself problematic.
11295     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11296   else
11297     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11298   fi
11299 else
11300   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11301 fi
11302 need_lib_prefix=unknown
11303 hardcode_into_libs=no
11304
11305 # when you set need_version to no, make sure it does not cause -set_version
11306 # flags to be left without arguments
11307 need_version=unknown
11308
11309 case $host_os in
11310 aix3*)
11311   version_type=linux
11312   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11313   shlibpath_var=LIBPATH
11314
11315   # AIX 3 has no versioning support, so we append a major version to the name.
11316   soname_spec='${libname}${release}${shared_ext}$major'
11317   ;;
11318
11319 aix4* | aix5*)
11320   version_type=linux
11321   need_lib_prefix=no
11322   need_version=no
11323   hardcode_into_libs=yes
11324   if test "$host_cpu" = ia64; then
11325     # AIX 5 supports IA64
11326     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11327     shlibpath_var=LD_LIBRARY_PATH
11328   else
11329     # With GCC up to 2.95.x, collect2 would create an import file
11330     # for dependence libraries.  The import file would start with
11331     # the line `#! .'.  This would cause the generated library to
11332     # depend on `.', always an invalid library.  This was fixed in
11333     # development snapshots of GCC prior to 3.0.
11334     case $host_os in
11335       aix4 | aix4.[01] | aix4.[01].*)
11336       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11337            echo ' yes '
11338            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11339         :
11340       else
11341         can_build_shared=no
11342       fi
11343       ;;
11344     esac
11345     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11346     # soname into executable. Probably we can add versioning support to
11347     # collect2, so additional links can be useful in future.
11348     if test "$aix_use_runtimelinking" = yes; then
11349       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11350       # instead of lib<name>.a to let people know that these are not
11351       # typical AIX shared libraries.
11352       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353     else
11354       # We preserve .a as extension for shared libraries through AIX4.2
11355       # and later when we are not doing run time linking.
11356       library_names_spec='${libname}${release}.a $libname.a'
11357       soname_spec='${libname}${release}${shared_ext}$major'
11358     fi
11359     shlibpath_var=LIBPATH
11360   fi
11361   ;;
11362
11363 amigaos*)
11364   library_names_spec='$libname.ixlibrary $libname.a'
11365   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11366   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11367   ;;
11368
11369 beos*)
11370   library_names_spec='${libname}${shared_ext}'
11371   dynamic_linker="$host_os ld.so"
11372   shlibpath_var=LIBRARY_PATH
11373   ;;
11374
11375 bsdi4*)
11376   version_type=linux
11377   need_version=no
11378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379   soname_spec='${libname}${release}${shared_ext}$major'
11380   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11381   shlibpath_var=LD_LIBRARY_PATH
11382   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11383   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11384   # the default ld.so.conf also contains /usr/contrib/lib and
11385   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11386   # libtool to hard-code these into programs
11387   ;;
11388
11389 cygwin* | mingw* | pw32*)
11390   version_type=windows
11391   shrext_cmds=".dll"
11392   need_version=no
11393   need_lib_prefix=no
11394
11395   case $GCC,$host_os in
11396   yes,cygwin* | yes,mingw* | yes,pw32*)
11397     library_names_spec='$libname.dll.a'
11398     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11399     postinstall_cmds='base_file=`basename \${file}`~
11400       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11401       dldir=$destdir/`dirname \$dlpath`~
11402       test -d \$dldir || mkdir -p \$dldir~
11403       $install_prog $dir/$dlname \$dldir/$dlname'
11404     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11405       dlpath=$dir/\$dldll~
11406        $rm \$dlpath'
11407     shlibpath_overrides_runpath=yes
11408
11409     case $host_os in
11410     cygwin*)
11411       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11412       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11413       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11414       ;;
11415     mingw*)
11416       # MinGW DLLs use traditional 'lib' prefix
11417       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11418       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11419       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11420         # It is most probably a Windows format PATH printed by
11421         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11422         # path with ; separators, and with drive letters. We can handle the
11423         # drive letters (cygwin fileutils understands them), so leave them,
11424         # especially as we might pass files found there to a mingw objdump,
11425         # which wouldn't understand a cygwinified path. Ahh.
11426         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11427       else
11428         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11429       fi
11430       ;;
11431     pw32*)
11432       # pw32 DLLs use 'pw' prefix rather than 'lib'
11433       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11434       ;;
11435     esac
11436     ;;
11437
11438   *)
11439     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11440     ;;
11441   esac
11442   dynamic_linker='Win32 ld.exe'
11443   # FIXME: first we should search . and the directory the executable is in
11444   shlibpath_var=PATH
11445   ;;
11446
11447 darwin* | rhapsody*)
11448   dynamic_linker="$host_os dyld"
11449   version_type=darwin
11450   need_lib_prefix=no
11451   need_version=no
11452   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11453   soname_spec='${libname}${release}${major}$shared_ext'
11454   shlibpath_overrides_runpath=yes
11455   shlibpath_var=DYLD_LIBRARY_PATH
11456   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11457   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11458   if test "$GCC" = yes; then
11459     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11460   else
11461     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11462   fi
11463   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11464   ;;
11465
11466 dgux*)
11467   version_type=linux
11468   need_lib_prefix=no
11469   need_version=no
11470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11471   soname_spec='${libname}${release}${shared_ext}$major'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   ;;
11474
11475 freebsd1*)
11476   dynamic_linker=no
11477   ;;
11478
11479 kfreebsd*-gnu)
11480   version_type=linux
11481   need_lib_prefix=no
11482   need_version=no
11483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11484   soname_spec='${libname}${release}${shared_ext}$major'
11485   shlibpath_var=LD_LIBRARY_PATH
11486   shlibpath_overrides_runpath=no
11487   hardcode_into_libs=yes
11488   dynamic_linker='GNU ld.so'
11489   ;;
11490
11491 freebsd*)
11492   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11493   version_type=freebsd-$objformat
11494   case $version_type in
11495     freebsd-elf*)
11496       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11497       need_version=no
11498       need_lib_prefix=no
11499       ;;
11500     freebsd-*)
11501       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11502       need_version=yes
11503       ;;
11504   esac
11505   shlibpath_var=LD_LIBRARY_PATH
11506   case $host_os in
11507   freebsd2*)
11508     shlibpath_overrides_runpath=yes
11509     ;;
11510   freebsd3.01* | freebsdelf3.01*)
11511     shlibpath_overrides_runpath=yes
11512     hardcode_into_libs=yes
11513     ;;
11514   *) # from 3.2 on
11515     shlibpath_overrides_runpath=no
11516     hardcode_into_libs=yes
11517     ;;
11518   esac
11519   ;;
11520
11521 gnu*)
11522   version_type=linux
11523   need_lib_prefix=no
11524   need_version=no
11525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11526   soname_spec='${libname}${release}${shared_ext}$major'
11527   shlibpath_var=LD_LIBRARY_PATH
11528   hardcode_into_libs=yes
11529   ;;
11530
11531 hpux9* | hpux10* | hpux11*)
11532   # Give a soname corresponding to the major version so that dld.sl refuses to
11533   # link against other versions.
11534   version_type=sunos
11535   need_lib_prefix=no
11536   need_version=no
11537   case "$host_cpu" in
11538   ia64*)
11539     shrext_cmds='.so'
11540     hardcode_into_libs=yes
11541     dynamic_linker="$host_os dld.so"
11542     shlibpath_var=LD_LIBRARY_PATH
11543     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11545     soname_spec='${libname}${release}${shared_ext}$major'
11546     if test "X$HPUX_IA64_MODE" = X32; then
11547       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11548     else
11549       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11550     fi
11551     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11552     ;;
11553    hppa*64*)
11554      shrext_cmds='.sl'
11555      hardcode_into_libs=yes
11556      dynamic_linker="$host_os dld.sl"
11557      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11558      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11559      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560      soname_spec='${libname}${release}${shared_ext}$major'
11561      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11562      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11563      ;;
11564    *)
11565     shrext_cmds='.sl'
11566     dynamic_linker="$host_os dld.sl"
11567     shlibpath_var=SHLIB_PATH
11568     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570     soname_spec='${libname}${release}${shared_ext}$major'
11571     ;;
11572   esac
11573   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11574   postinstall_cmds='chmod 555 $lib'
11575   ;;
11576
11577 irix5* | irix6* | nonstopux*)
11578   case $host_os in
11579     nonstopux*) version_type=nonstopux ;;
11580     *)
11581         if test "$lt_cv_prog_gnu_ld" = yes; then
11582                 version_type=linux
11583         else
11584                 version_type=irix
11585         fi ;;
11586   esac
11587   need_lib_prefix=no
11588   need_version=no
11589   soname_spec='${libname}${release}${shared_ext}$major'
11590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11591   case $host_os in
11592   irix5* | nonstopux*)
11593     libsuff= shlibsuff=
11594     ;;
11595   *)
11596     case $LD in # libtool.m4 will add one of these switches to LD
11597     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11598       libsuff= shlibsuff= libmagic=32-bit;;
11599     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11600       libsuff=32 shlibsuff=N32 libmagic=N32;;
11601     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11602       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11603     *) libsuff= shlibsuff= libmagic=never-match;;
11604     esac
11605     ;;
11606   esac
11607   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11608   shlibpath_overrides_runpath=no
11609   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11610   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11611   hardcode_into_libs=yes
11612   ;;
11613
11614 # No shared lib support for Linux oldld, aout, or coff.
11615 linux*oldld* | linux*aout* | linux*coff*)
11616   dynamic_linker=no
11617   ;;
11618
11619 # This must be Linux ELF.
11620 linux*)
11621   version_type=linux
11622   need_lib_prefix=no
11623   need_version=no
11624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11625   soname_spec='${libname}${release}${shared_ext}$major'
11626   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11627   shlibpath_var=LD_LIBRARY_PATH
11628   shlibpath_overrides_runpath=no
11629   # This implies no fast_install, which is unacceptable.
11630   # Some rework will be needed to allow for fast_install
11631   # before this can be enabled.
11632   hardcode_into_libs=yes
11633
11634   # Append ld.so.conf contents to the search path
11635   if test -f /etc/ld.so.conf; then
11636     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11637     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11638   fi
11639
11640   # We used to test for /lib/ld.so.1 and disable shared libraries on
11641   # powerpc, because MkLinux only supported shared libraries with the
11642   # GNU dynamic linker.  Since this was broken with cross compilers,
11643   # most powerpc-linux boxes support dynamic linking these days and
11644   # people can always --disable-shared, the test was removed, and we
11645   # assume the GNU/Linux dynamic linker is in use.
11646   dynamic_linker='GNU/Linux ld.so'
11647   ;;
11648
11649 netbsdelf*-gnu)
11650   version_type=linux
11651   need_lib_prefix=no
11652   need_version=no
11653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11654   soname_spec='${libname}${release}${shared_ext}$major'
11655   shlibpath_var=LD_LIBRARY_PATH
11656   shlibpath_overrides_runpath=no
11657   hardcode_into_libs=yes
11658   dynamic_linker='NetBSD ld.elf_so'
11659   ;;
11660
11661 knetbsd*-gnu)
11662   version_type=linux
11663   need_lib_prefix=no
11664   need_version=no
11665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11666   soname_spec='${libname}${release}${shared_ext}$major'
11667   shlibpath_var=LD_LIBRARY_PATH
11668   shlibpath_overrides_runpath=no
11669   hardcode_into_libs=yes
11670   dynamic_linker='GNU ld.so'
11671   ;;
11672
11673 netbsd*)
11674   version_type=sunos
11675   need_lib_prefix=no
11676   need_version=no
11677   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11678     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11679     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11680     dynamic_linker='NetBSD (a.out) ld.so'
11681   else
11682     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11683     soname_spec='${libname}${release}${shared_ext}$major'
11684     dynamic_linker='NetBSD ld.elf_so'
11685   fi
11686   shlibpath_var=LD_LIBRARY_PATH
11687   shlibpath_overrides_runpath=yes
11688   hardcode_into_libs=yes
11689   ;;
11690
11691 newsos6)
11692   version_type=linux
11693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694   shlibpath_var=LD_LIBRARY_PATH
11695   shlibpath_overrides_runpath=yes
11696   ;;
11697
11698 nto-qnx*)
11699   version_type=linux
11700   need_lib_prefix=no
11701   need_version=no
11702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11703   soname_spec='${libname}${release}${shared_ext}$major'
11704   shlibpath_var=LD_LIBRARY_PATH
11705   shlibpath_overrides_runpath=yes
11706   ;;
11707
11708 openbsd*)
11709   version_type=sunos
11710   need_lib_prefix=no
11711   need_version=yes
11712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11713   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11714   shlibpath_var=LD_LIBRARY_PATH
11715   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11716     case $host_os in
11717       openbsd2.[89] | openbsd2.[89].*)
11718         shlibpath_overrides_runpath=no
11719         ;;
11720       *)
11721         shlibpath_overrides_runpath=yes
11722         ;;
11723       esac
11724   else
11725     shlibpath_overrides_runpath=yes
11726   fi
11727   ;;
11728
11729 os2*)
11730   libname_spec='$name'
11731   shrext_cmds=".dll"
11732   need_lib_prefix=no
11733   library_names_spec='$libname${shared_ext} $libname.a'
11734   dynamic_linker='OS/2 ld.exe'
11735   shlibpath_var=LIBPATH
11736   ;;
11737
11738 osf3* | osf4* | osf5*)
11739   version_type=osf
11740   need_lib_prefix=no
11741   need_version=no
11742   soname_spec='${libname}${release}${shared_ext}$major'
11743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11744   shlibpath_var=LD_LIBRARY_PATH
11745   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11746   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11747   ;;
11748
11749 sco3.2v5*)
11750   version_type=osf
11751   soname_spec='${libname}${release}${shared_ext}$major'
11752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11753   shlibpath_var=LD_LIBRARY_PATH
11754   ;;
11755
11756 solaris*)
11757   version_type=linux
11758   need_lib_prefix=no
11759   need_version=no
11760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761   soname_spec='${libname}${release}${shared_ext}$major'
11762   shlibpath_var=LD_LIBRARY_PATH
11763   shlibpath_overrides_runpath=yes
11764   hardcode_into_libs=yes
11765   # ldd complains unless libraries are executable
11766   postinstall_cmds='chmod +x $lib'
11767   ;;
11768
11769 sunos4*)
11770   version_type=sunos
11771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11772   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11773   shlibpath_var=LD_LIBRARY_PATH
11774   shlibpath_overrides_runpath=yes
11775   if test "$with_gnu_ld" = yes; then
11776     need_lib_prefix=no
11777   fi
11778   need_version=yes
11779   ;;
11780
11781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11782   version_type=linux
11783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784   soname_spec='${libname}${release}${shared_ext}$major'
11785   shlibpath_var=LD_LIBRARY_PATH
11786   case $host_vendor in
11787     sni)
11788       shlibpath_overrides_runpath=no
11789       need_lib_prefix=no
11790       export_dynamic_flag_spec='${wl}-Blargedynsym'
11791       runpath_var=LD_RUN_PATH
11792       ;;
11793     siemens)
11794       need_lib_prefix=no
11795       ;;
11796     motorola)
11797       need_lib_prefix=no
11798       need_version=no
11799       shlibpath_overrides_runpath=no
11800       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11801       ;;
11802   esac
11803   ;;
11804
11805 sysv4*MP*)
11806   if test -d /usr/nec ;then
11807     version_type=linux
11808     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11809     soname_spec='$libname${shared_ext}.$major'
11810     shlibpath_var=LD_LIBRARY_PATH
11811   fi
11812   ;;
11813
11814 uts4*)
11815   version_type=linux
11816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817   soname_spec='${libname}${release}${shared_ext}$major'
11818   shlibpath_var=LD_LIBRARY_PATH
11819   ;;
11820
11821 *)
11822   dynamic_linker=no
11823   ;;
11824 esac
11825 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11826 echo "${ECHO_T}$dynamic_linker" >&6
11827 test "$dynamic_linker" = no && can_build_shared=no
11828
11829 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11830 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11831 hardcode_action_CXX=
11832 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11833    test -n "$runpath_var CXX" || \
11834    test "X$hardcode_automatic_CXX"="Xyes" ; then
11835
11836   # We can hardcode non-existant directories.
11837   if test "$hardcode_direct_CXX" != no &&
11838      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11839      # have to relink, otherwise we might link with an installed library
11840      # when we should be linking with a yet-to-be-installed one
11841      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11842      test "$hardcode_minus_L_CXX" != no; then
11843     # Linking always hardcodes the temporary library directory.
11844     hardcode_action_CXX=relink
11845   else
11846     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11847     hardcode_action_CXX=immediate
11848   fi
11849 else
11850   # We cannot hardcode anything, or else we can only hardcode existing
11851   # directories.
11852   hardcode_action_CXX=unsupported
11853 fi
11854 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11855 echo "${ECHO_T}$hardcode_action_CXX" >&6
11856
11857 if test "$hardcode_action_CXX" = relink; then
11858   # Fast installation is not supported
11859   enable_fast_install=no
11860 elif test "$shlibpath_overrides_runpath" = yes ||
11861      test "$enable_shared" = no; then
11862   # Fast installation is not necessary
11863   enable_fast_install=needless
11864 fi
11865
11866 striplib=
11867 old_striplib=
11868 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11869 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11870 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11871   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11872   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11873   echo "$as_me:$LINENO: result: yes" >&5
11874 echo "${ECHO_T}yes" >&6
11875 else
11876 # FIXME - insert some real tests, host_os isn't really good enough
11877   case $host_os in
11878    darwin*)
11879        if test -n "$STRIP" ; then
11880          striplib="$STRIP -x"
11881          echo "$as_me:$LINENO: result: yes" >&5
11882 echo "${ECHO_T}yes" >&6
11883        else
11884   echo "$as_me:$LINENO: result: no" >&5
11885 echo "${ECHO_T}no" >&6
11886 fi
11887        ;;
11888    *)
11889   echo "$as_me:$LINENO: result: no" >&5
11890 echo "${ECHO_T}no" >&6
11891     ;;
11892   esac
11893 fi
11894
11895 if test "x$enable_dlopen" != xyes; then
11896   enable_dlopen=unknown
11897   enable_dlopen_self=unknown
11898   enable_dlopen_self_static=unknown
11899 else
11900   lt_cv_dlopen=no
11901   lt_cv_dlopen_libs=
11902
11903   case $host_os in
11904   beos*)
11905     lt_cv_dlopen="load_add_on"
11906     lt_cv_dlopen_libs=
11907     lt_cv_dlopen_self=yes
11908     ;;
11909
11910   mingw* | pw32*)
11911     lt_cv_dlopen="LoadLibrary"
11912     lt_cv_dlopen_libs=
11913    ;;
11914
11915   cygwin*)
11916     lt_cv_dlopen="dlopen"
11917     lt_cv_dlopen_libs=
11918    ;;
11919
11920   darwin*)
11921   # if libdl is installed we need to link against it
11922     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11923 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11924 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11925   echo $ECHO_N "(cached) $ECHO_C" >&6
11926 else
11927   ac_check_lib_save_LIBS=$LIBS
11928 LIBS="-ldl  $LIBS"
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h.  */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h.  */
11935
11936 /* Override any gcc2 internal prototype to avoid an error.  */
11937 #ifdef __cplusplus
11938 extern "C"
11939 #endif
11940 /* We use char because int might match the return type of a gcc2
11941    builtin and then its argument prototype would still apply.  */
11942 char dlopen ();
11943 int
11944 main ()
11945 {
11946 dlopen ();
11947   ;
11948   return 0;
11949 }
11950 _ACEOF
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11953   (eval $ac_link) 2>conftest.er1
11954   ac_status=$?
11955   grep -v '^ *+' conftest.er1 >conftest.err
11956   rm -f conftest.er1
11957   cat conftest.err >&5
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); } &&
11960          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962   (eval $ac_try) 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); }; } &&
11966          { ac_try='test -s conftest$ac_exeext'
11967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968   (eval $ac_try) 2>&5
11969   ac_status=$?
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); }; }; then
11972   ac_cv_lib_dl_dlopen=yes
11973 else
11974   echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977 ac_cv_lib_dl_dlopen=no
11978 fi
11979 rm -f conftest.err conftest.$ac_objext \
11980       conftest$ac_exeext conftest.$ac_ext
11981 LIBS=$ac_check_lib_save_LIBS
11982 fi
11983 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11984 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11985 if test $ac_cv_lib_dl_dlopen = yes; then
11986   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11987 else
11988
11989     lt_cv_dlopen="dyld"
11990     lt_cv_dlopen_libs=
11991     lt_cv_dlopen_self=yes
11992
11993 fi
11994
11995    ;;
11996
11997   *)
11998     echo "$as_me:$LINENO: checking for shl_load" >&5
11999 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12000 if test "${ac_cv_func_shl_load+set}" = set; then
12001   echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003   cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h.  */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h.  */
12009 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12011 #define shl_load innocuous_shl_load
12012
12013 /* System header to define __stub macros and hopefully few prototypes,
12014     which can conflict with char shl_load (); below.
12015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12016     <limits.h> exists even on freestanding compilers.  */
12017
12018 #ifdef __STDC__
12019 # include <limits.h>
12020 #else
12021 # include <assert.h>
12022 #endif
12023
12024 #undef shl_load
12025
12026 /* Override any gcc2 internal prototype to avoid an error.  */
12027 #ifdef __cplusplus
12028 extern "C"
12029 {
12030 #endif
12031 /* We use char because int might match the return type of a gcc2
12032    builtin and then its argument prototype would still apply.  */
12033 char shl_load ();
12034 /* The GNU C library defines this for functions which it implements
12035     to always fail with ENOSYS.  Some functions are actually named
12036     something starting with __ and the normal name is an alias.  */
12037 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12038 choke me
12039 #else
12040 char (*f) () = shl_load;
12041 #endif
12042 #ifdef __cplusplus
12043 }
12044 #endif
12045
12046 int
12047 main ()
12048 {
12049 return f != shl_load;
12050   ;
12051   return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056   (eval $ac_link) 2>conftest.er1
12057   ac_status=$?
12058   grep -v '^ *+' conftest.er1 >conftest.err
12059   rm -f conftest.er1
12060   cat conftest.err >&5
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); } &&
12063          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065   (eval $ac_try) 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); }; } &&
12069          { ac_try='test -s conftest$ac_exeext'
12070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071   (eval $ac_try) 2>&5
12072   ac_status=$?
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); }; }; then
12075   ac_cv_func_shl_load=yes
12076 else
12077   echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12079
12080 ac_cv_func_shl_load=no
12081 fi
12082 rm -f conftest.err conftest.$ac_objext \
12083       conftest$ac_exeext conftest.$ac_ext
12084 fi
12085 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12086 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12087 if test $ac_cv_func_shl_load = yes; then
12088   lt_cv_dlopen="shl_load"
12089 else
12090   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12091 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12092 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12093   echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095   ac_check_lib_save_LIBS=$LIBS
12096 LIBS="-ldld  $LIBS"
12097 cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h.  */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h.  */
12103
12104 /* Override any gcc2 internal prototype to avoid an error.  */
12105 #ifdef __cplusplus
12106 extern "C"
12107 #endif
12108 /* We use char because int might match the return type of a gcc2
12109    builtin and then its argument prototype would still apply.  */
12110 char shl_load ();
12111 int
12112 main ()
12113 {
12114 shl_load ();
12115   ;
12116   return 0;
12117 }
12118 _ACEOF
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12121   (eval $ac_link) 2>conftest.er1
12122   ac_status=$?
12123   grep -v '^ *+' conftest.er1 >conftest.err
12124   rm -f conftest.er1
12125   cat conftest.err >&5
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); } &&
12128          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130   (eval $ac_try) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; } &&
12134          { ac_try='test -s conftest$ac_exeext'
12135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136   (eval $ac_try) 2>&5
12137   ac_status=$?
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); }; }; then
12140   ac_cv_lib_dld_shl_load=yes
12141 else
12142   echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145 ac_cv_lib_dld_shl_load=no
12146 fi
12147 rm -f conftest.err conftest.$ac_objext \
12148       conftest$ac_exeext conftest.$ac_ext
12149 LIBS=$ac_check_lib_save_LIBS
12150 fi
12151 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12152 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12153 if test $ac_cv_lib_dld_shl_load = yes; then
12154   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12155 else
12156   echo "$as_me:$LINENO: checking for dlopen" >&5
12157 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12158 if test "${ac_cv_func_dlopen+set}" = set; then
12159   echo $ECHO_N "(cached) $ECHO_C" >&6
12160 else
12161   cat >conftest.$ac_ext <<_ACEOF
12162 /* confdefs.h.  */
12163 _ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h.  */
12167 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12169 #define dlopen innocuous_dlopen
12170
12171 /* System header to define __stub macros and hopefully few prototypes,
12172     which can conflict with char dlopen (); below.
12173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12174     <limits.h> exists even on freestanding compilers.  */
12175
12176 #ifdef __STDC__
12177 # include <limits.h>
12178 #else
12179 # include <assert.h>
12180 #endif
12181
12182 #undef dlopen
12183
12184 /* Override any gcc2 internal prototype to avoid an error.  */
12185 #ifdef __cplusplus
12186 extern "C"
12187 {
12188 #endif
12189 /* We use char because int might match the return type of a gcc2
12190    builtin and then its argument prototype would still apply.  */
12191 char dlopen ();
12192 /* The GNU C library defines this for functions which it implements
12193     to always fail with ENOSYS.  Some functions are actually named
12194     something starting with __ and the normal name is an alias.  */
12195 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12196 choke me
12197 #else
12198 char (*f) () = dlopen;
12199 #endif
12200 #ifdef __cplusplus
12201 }
12202 #endif
12203
12204 int
12205 main ()
12206 {
12207 return f != dlopen;
12208   ;
12209   return 0;
12210 }
12211 _ACEOF
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12214   (eval $ac_link) 2>conftest.er1
12215   ac_status=$?
12216   grep -v '^ *+' conftest.er1 >conftest.err
12217   rm -f conftest.er1
12218   cat conftest.err >&5
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); } &&
12221          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223   (eval $ac_try) 2>&5
12224   ac_status=$?
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); }; } &&
12227          { ac_try='test -s conftest$ac_exeext'
12228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229   (eval $ac_try) 2>&5
12230   ac_status=$?
12231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232   (exit $ac_status); }; }; then
12233   ac_cv_func_dlopen=yes
12234 else
12235   echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12237
12238 ac_cv_func_dlopen=no
12239 fi
12240 rm -f conftest.err conftest.$ac_objext \
12241       conftest$ac_exeext conftest.$ac_ext
12242 fi
12243 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12244 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12245 if test $ac_cv_func_dlopen = yes; then
12246   lt_cv_dlopen="dlopen"
12247 else
12248   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12249 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12251   echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253   ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-ldl  $LIBS"
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261
12262 /* Override any gcc2 internal prototype to avoid an error.  */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 /* We use char because int might match the return type of a gcc2
12267    builtin and then its argument prototype would still apply.  */
12268 char dlopen ();
12269 int
12270 main ()
12271 {
12272 dlopen ();
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279   (eval $ac_link) 2>conftest.er1
12280   ac_status=$?
12281   grep -v '^ *+' conftest.er1 >conftest.err
12282   rm -f conftest.er1
12283   cat conftest.err >&5
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } &&
12286          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288   (eval $ac_try) 2>&5
12289   ac_status=$?
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); }; } &&
12292          { ac_try='test -s conftest$ac_exeext'
12293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294   (eval $ac_try) 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; }; then
12298   ac_cv_lib_dl_dlopen=yes
12299 else
12300   echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12302
12303 ac_cv_lib_dl_dlopen=no
12304 fi
12305 rm -f conftest.err conftest.$ac_objext \
12306       conftest$ac_exeext conftest.$ac_ext
12307 LIBS=$ac_check_lib_save_LIBS
12308 fi
12309 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12310 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12311 if test $ac_cv_lib_dl_dlopen = yes; then
12312   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12313 else
12314   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12315 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12316 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12317   echo $ECHO_N "(cached) $ECHO_C" >&6
12318 else
12319   ac_check_lib_save_LIBS=$LIBS
12320 LIBS="-lsvld  $LIBS"
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h.  */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h.  */
12327
12328 /* Override any gcc2 internal prototype to avoid an error.  */
12329 #ifdef __cplusplus
12330 extern "C"
12331 #endif
12332 /* We use char because int might match the return type of a gcc2
12333    builtin and then its argument prototype would still apply.  */
12334 char dlopen ();
12335 int
12336 main ()
12337 {
12338 dlopen ();
12339   ;
12340   return 0;
12341 }
12342 _ACEOF
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12345   (eval $ac_link) 2>conftest.er1
12346   ac_status=$?
12347   grep -v '^ *+' conftest.er1 >conftest.err
12348   rm -f conftest.er1
12349   cat conftest.err >&5
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); } &&
12352          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354   (eval $ac_try) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); }; } &&
12358          { ac_try='test -s conftest$ac_exeext'
12359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360   (eval $ac_try) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; }; then
12364   ac_cv_lib_svld_dlopen=yes
12365 else
12366   echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369 ac_cv_lib_svld_dlopen=no
12370 fi
12371 rm -f conftest.err conftest.$ac_objext \
12372       conftest$ac_exeext conftest.$ac_ext
12373 LIBS=$ac_check_lib_save_LIBS
12374 fi
12375 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12376 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12377 if test $ac_cv_lib_svld_dlopen = yes; then
12378   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12379 else
12380   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12381 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12382 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12383   echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385   ac_check_lib_save_LIBS=$LIBS
12386 LIBS="-ldld  $LIBS"
12387 cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h.  */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h.  */
12393
12394 /* Override any gcc2 internal prototype to avoid an error.  */
12395 #ifdef __cplusplus
12396 extern "C"
12397 #endif
12398 /* We use char because int might match the return type of a gcc2
12399    builtin and then its argument prototype would still apply.  */
12400 char dld_link ();
12401 int
12402 main ()
12403 {
12404 dld_link ();
12405   ;
12406   return 0;
12407 }
12408 _ACEOF
12409 rm -f conftest.$ac_objext conftest$ac_exeext
12410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12411   (eval $ac_link) 2>conftest.er1
12412   ac_status=$?
12413   grep -v '^ *+' conftest.er1 >conftest.err
12414   rm -f conftest.er1
12415   cat conftest.err >&5
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); } &&
12418          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420   (eval $ac_try) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; } &&
12424          { ac_try='test -s conftest$ac_exeext'
12425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426   (eval $ac_try) 2>&5
12427   ac_status=$?
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); }; }; then
12430   ac_cv_lib_dld_dld_link=yes
12431 else
12432   echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12434
12435 ac_cv_lib_dld_dld_link=no
12436 fi
12437 rm -f conftest.err conftest.$ac_objext \
12438       conftest$ac_exeext conftest.$ac_ext
12439 LIBS=$ac_check_lib_save_LIBS
12440 fi
12441 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12442 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12443 if test $ac_cv_lib_dld_dld_link = yes; then
12444   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12445 fi
12446
12447
12448 fi
12449
12450
12451 fi
12452
12453
12454 fi
12455
12456
12457 fi
12458
12459
12460 fi
12461
12462     ;;
12463   esac
12464
12465   if test "x$lt_cv_dlopen" != xno; then
12466     enable_dlopen=yes
12467   else
12468     enable_dlopen=no
12469   fi
12470
12471   case $lt_cv_dlopen in
12472   dlopen)
12473     save_CPPFLAGS="$CPPFLAGS"
12474     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12475
12476     save_LDFLAGS="$LDFLAGS"
12477     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12478
12479     save_LIBS="$LIBS"
12480     LIBS="$lt_cv_dlopen_libs $LIBS"
12481
12482     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12483 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12484 if test "${lt_cv_dlopen_self+set}" = set; then
12485   echo $ECHO_N "(cached) $ECHO_C" >&6
12486 else
12487           if test "$cross_compiling" = yes; then :
12488   lt_cv_dlopen_self=cross
12489 else
12490   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12491   lt_status=$lt_dlunknown
12492   cat > conftest.$ac_ext <<EOF
12493 #line 12493 "configure"
12494 #include "confdefs.h"
12495
12496 #if HAVE_DLFCN_H
12497 #include <dlfcn.h>
12498 #endif
12499
12500 #include <stdio.h>
12501
12502 #ifdef RTLD_GLOBAL
12503 #  define LT_DLGLOBAL           RTLD_GLOBAL
12504 #else
12505 #  ifdef DL_GLOBAL
12506 #    define LT_DLGLOBAL         DL_GLOBAL
12507 #  else
12508 #    define LT_DLGLOBAL         0
12509 #  endif
12510 #endif
12511
12512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12513    find out it does not work in some platform. */
12514 #ifndef LT_DLLAZY_OR_NOW
12515 #  ifdef RTLD_LAZY
12516 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12517 #  else
12518 #    ifdef DL_LAZY
12519 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12520 #    else
12521 #      ifdef RTLD_NOW
12522 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12523 #      else
12524 #        ifdef DL_NOW
12525 #          define LT_DLLAZY_OR_NOW      DL_NOW
12526 #        else
12527 #          define LT_DLLAZY_OR_NOW      0
12528 #        endif
12529 #      endif
12530 #    endif
12531 #  endif
12532 #endif
12533
12534 #ifdef __cplusplus
12535 extern "C" void exit (int);
12536 #endif
12537
12538 void fnord() { int i=42;}
12539 int main ()
12540 {
12541   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12542   int status = $lt_dlunknown;
12543
12544   if (self)
12545     {
12546       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12547       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12548       /* dlclose (self); */
12549     }
12550
12551     exit (status);
12552 }
12553 EOF
12554   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12555   (eval $ac_link) 2>&5
12556   ac_status=$?
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12559     (./conftest; exit; ) 2>/dev/null
12560     lt_status=$?
12561     case x$lt_status in
12562       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12563       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12564       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12565     esac
12566   else :
12567     # compilation failed
12568     lt_cv_dlopen_self=no
12569   fi
12570 fi
12571 rm -fr conftest*
12572
12573
12574 fi
12575 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12576 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12577
12578     if test "x$lt_cv_dlopen_self" = xyes; then
12579       LDFLAGS="$LDFLAGS $link_static_flag"
12580       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12581 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12582 if test "${lt_cv_dlopen_self_static+set}" = set; then
12583   echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585           if test "$cross_compiling" = yes; then :
12586   lt_cv_dlopen_self_static=cross
12587 else
12588   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12589   lt_status=$lt_dlunknown
12590   cat > conftest.$ac_ext <<EOF
12591 #line 12591 "configure"
12592 #include "confdefs.h"
12593
12594 #if HAVE_DLFCN_H
12595 #include <dlfcn.h>
12596 #endif
12597
12598 #include <stdio.h>
12599
12600 #ifdef RTLD_GLOBAL
12601 #  define LT_DLGLOBAL           RTLD_GLOBAL
12602 #else
12603 #  ifdef DL_GLOBAL
12604 #    define LT_DLGLOBAL         DL_GLOBAL
12605 #  else
12606 #    define LT_DLGLOBAL         0
12607 #  endif
12608 #endif
12609
12610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12611    find out it does not work in some platform. */
12612 #ifndef LT_DLLAZY_OR_NOW
12613 #  ifdef RTLD_LAZY
12614 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12615 #  else
12616 #    ifdef DL_LAZY
12617 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12618 #    else
12619 #      ifdef RTLD_NOW
12620 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12621 #      else
12622 #        ifdef DL_NOW
12623 #          define LT_DLLAZY_OR_NOW      DL_NOW
12624 #        else
12625 #          define LT_DLLAZY_OR_NOW      0
12626 #        endif
12627 #      endif
12628 #    endif
12629 #  endif
12630 #endif
12631
12632 #ifdef __cplusplus
12633 extern "C" void exit (int);
12634 #endif
12635
12636 void fnord() { int i=42;}
12637 int main ()
12638 {
12639   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12640   int status = $lt_dlunknown;
12641
12642   if (self)
12643     {
12644       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12645       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12646       /* dlclose (self); */
12647     }
12648
12649     exit (status);
12650 }
12651 EOF
12652   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653   (eval $ac_link) 2>&5
12654   ac_status=$?
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12657     (./conftest; exit; ) 2>/dev/null
12658     lt_status=$?
12659     case x$lt_status in
12660       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12661       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12662       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12663     esac
12664   else :
12665     # compilation failed
12666     lt_cv_dlopen_self_static=no
12667   fi
12668 fi
12669 rm -fr conftest*
12670
12671
12672 fi
12673 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12674 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12675     fi
12676
12677     CPPFLAGS="$save_CPPFLAGS"
12678     LDFLAGS="$save_LDFLAGS"
12679     LIBS="$save_LIBS"
12680     ;;
12681   esac
12682
12683   case $lt_cv_dlopen_self in
12684   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12685   *) enable_dlopen_self=unknown ;;
12686   esac
12687
12688   case $lt_cv_dlopen_self_static in
12689   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12690   *) enable_dlopen_self_static=unknown ;;
12691   esac
12692 fi
12693
12694
12695 # The else clause should only fire when bootstrapping the
12696 # libtool distribution, otherwise you forgot to ship ltmain.sh
12697 # with your package, and you will get complaints that there are
12698 # no rules to generate ltmain.sh.
12699 if test -f "$ltmain"; then
12700   # See if we are running on zsh, and set the options which allow our commands through
12701   # without removal of \ escapes.
12702   if test -n "${ZSH_VERSION+set}" ; then
12703     setopt NO_GLOB_SUBST
12704   fi
12705   # Now quote all the things that may contain metacharacters while being
12706   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12707   # variables and quote the copies for generation of the libtool script.
12708   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12709     SED SHELL STRIP \
12710     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12711     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12712     deplibs_check_method reload_flag reload_cmds need_locks \
12713     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12714     lt_cv_sys_global_symbol_to_c_name_address \
12715     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12716     old_postinstall_cmds old_postuninstall_cmds \
12717     compiler_CXX \
12718     CC_CXX \
12719     LD_CXX \
12720     lt_prog_compiler_wl_CXX \
12721     lt_prog_compiler_pic_CXX \
12722     lt_prog_compiler_static_CXX \
12723     lt_prog_compiler_no_builtin_flag_CXX \
12724     export_dynamic_flag_spec_CXX \
12725     thread_safe_flag_spec_CXX \
12726     whole_archive_flag_spec_CXX \
12727     enable_shared_with_static_runtimes_CXX \
12728     old_archive_cmds_CXX \
12729     old_archive_from_new_cmds_CXX \
12730     predep_objects_CXX \
12731     postdep_objects_CXX \
12732     predeps_CXX \
12733     postdeps_CXX \
12734     compiler_lib_search_path_CXX \
12735     archive_cmds_CXX \
12736     archive_expsym_cmds_CXX \
12737     postinstall_cmds_CXX \
12738     postuninstall_cmds_CXX \
12739     old_archive_from_expsyms_cmds_CXX \
12740     allow_undefined_flag_CXX \
12741     no_undefined_flag_CXX \
12742     export_symbols_cmds_CXX \
12743     hardcode_libdir_flag_spec_CXX \
12744     hardcode_libdir_flag_spec_ld_CXX \
12745     hardcode_libdir_separator_CXX \
12746     hardcode_automatic_CXX \
12747     module_cmds_CXX \
12748     module_expsym_cmds_CXX \
12749     lt_cv_prog_compiler_c_o_CXX \
12750     exclude_expsyms_CXX \
12751     include_expsyms_CXX; do
12752
12753     case $var in
12754     old_archive_cmds_CXX | \
12755     old_archive_from_new_cmds_CXX | \
12756     archive_cmds_CXX | \
12757     archive_expsym_cmds_CXX | \
12758     module_cmds_CXX | \
12759     module_expsym_cmds_CXX | \
12760     old_archive_from_expsyms_cmds_CXX | \
12761     export_symbols_cmds_CXX | \
12762     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12763     postinstall_cmds | postuninstall_cmds | \
12764     old_postinstall_cmds | old_postuninstall_cmds | \
12765     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12766       # Double-quote double-evaled strings.
12767       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12768       ;;
12769     *)
12770       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12771       ;;
12772     esac
12773   done
12774
12775   case $lt_echo in
12776   *'\$0 --fallback-echo"')
12777     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12778     ;;
12779   esac
12780
12781 cfgfile="$ofile"
12782
12783   cat <<__EOF__ >> "$cfgfile"
12784 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12785
12786 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12787
12788 # Shell to use when invoking shell scripts.
12789 SHELL=$lt_SHELL
12790
12791 # Whether or not to build shared libraries.
12792 build_libtool_libs=$enable_shared
12793
12794 # Whether or not to build static libraries.
12795 build_old_libs=$enable_static
12796
12797 # Whether or not to add -lc for building shared libraries.
12798 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12799
12800 # Whether or not to disallow shared libs when runtime libs are static
12801 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12802
12803 # Whether or not to optimize for fast installation.
12804 fast_install=$enable_fast_install
12805
12806 # The host system.
12807 host_alias=$host_alias
12808 host=$host
12809
12810 # An echo program that does not interpret backslashes.
12811 echo=$lt_echo
12812
12813 # The archiver.
12814 AR=$lt_AR
12815 AR_FLAGS=$lt_AR_FLAGS
12816
12817 # A C compiler.
12818 LTCC=$lt_LTCC
12819
12820 # A language-specific compiler.
12821 CC=$lt_compiler_CXX
12822
12823 # Is the compiler the GNU C compiler?
12824 with_gcc=$GCC_CXX
12825
12826 # An ERE matcher.
12827 EGREP=$lt_EGREP
12828
12829 # The linker used to build libraries.
12830 LD=$lt_LD_CXX
12831
12832 # Whether we need hard or soft links.
12833 LN_S=$lt_LN_S
12834
12835 # A BSD-compatible nm program.
12836 NM=$lt_NM
12837
12838 # A symbol stripping program
12839 STRIP=$lt_STRIP
12840
12841 # Used to examine libraries when file_magic_cmd begins "file"
12842 MAGIC_CMD=$MAGIC_CMD
12843
12844 # Used on cygwin: DLL creation program.
12845 DLLTOOL="$DLLTOOL"
12846
12847 # Used on cygwin: object dumper.
12848 OBJDUMP="$OBJDUMP"
12849
12850 # Used on cygwin: assembler.
12851 AS="$AS"
12852
12853 # The name of the directory that contains temporary libtool files.
12854 objdir=$objdir
12855
12856 # How to create reloadable object files.
12857 reload_flag=$lt_reload_flag
12858 reload_cmds=$lt_reload_cmds
12859
12860 # How to pass a linker flag through the compiler.
12861 wl=$lt_lt_prog_compiler_wl_CXX
12862
12863 # Object file suffix (normally "o").
12864 objext="$ac_objext"
12865
12866 # Old archive suffix (normally "a").
12867 libext="$libext"
12868
12869 # Shared library suffix (normally ".so").
12870 shrext_cmds='$shrext_cmds'
12871
12872 # Executable file suffix (normally "").
12873 exeext="$exeext"
12874
12875 # Additional compiler flags for building library objects.
12876 pic_flag=$lt_lt_prog_compiler_pic_CXX
12877 pic_mode=$pic_mode
12878
12879 # What is the maximum length of a command?
12880 max_cmd_len=$lt_cv_sys_max_cmd_len
12881
12882 # Does compiler simultaneously support -c and -o options?
12883 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12884
12885 # Must we lock files when doing compilation ?
12886 need_locks=$lt_need_locks
12887
12888 # Do we need the lib prefix for modules?
12889 need_lib_prefix=$need_lib_prefix
12890
12891 # Do we need a version for libraries?
12892 need_version=$need_version
12893
12894 # Whether dlopen is supported.
12895 dlopen_support=$enable_dlopen
12896
12897 # Whether dlopen of programs is supported.
12898 dlopen_self=$enable_dlopen_self
12899
12900 # Whether dlopen of statically linked programs is supported.
12901 dlopen_self_static=$enable_dlopen_self_static
12902
12903 # Compiler flag to prevent dynamic linking.
12904 link_static_flag=$lt_lt_prog_compiler_static_CXX
12905
12906 # Compiler flag to turn off builtin functions.
12907 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12908
12909 # Compiler flag to allow reflexive dlopens.
12910 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12911
12912 # Compiler flag to generate shared objects directly from archives.
12913 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12914
12915 # Compiler flag to generate thread-safe objects.
12916 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12917
12918 # Library versioning type.
12919 version_type=$version_type
12920
12921 # Format of library name prefix.
12922 libname_spec=$lt_libname_spec
12923
12924 # List of archive names.  First name is the real one, the rest are links.
12925 # The last name is the one that the linker finds with -lNAME.
12926 library_names_spec=$lt_library_names_spec
12927
12928 # The coded name of the library, if different from the real name.
12929 soname_spec=$lt_soname_spec
12930
12931 # Commands used to build and install an old-style archive.
12932 RANLIB=$lt_RANLIB
12933 old_archive_cmds=$lt_old_archive_cmds_CXX
12934 old_postinstall_cmds=$lt_old_postinstall_cmds
12935 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12936
12937 # Create an old-style archive from a shared archive.
12938 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12939
12940 # Create a temporary old-style archive to link instead of a shared archive.
12941 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12942
12943 # Commands used to build and install a shared archive.
12944 archive_cmds=$lt_archive_cmds_CXX
12945 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12946 postinstall_cmds=$lt_postinstall_cmds
12947 postuninstall_cmds=$lt_postuninstall_cmds
12948
12949 # Commands used to build a loadable module (assumed same as above if empty)
12950 module_cmds=$lt_module_cmds_CXX
12951 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12952
12953 # Commands to strip libraries.
12954 old_striplib=$lt_old_striplib
12955 striplib=$lt_striplib
12956
12957 # Dependencies to place before the objects being linked to create a
12958 # shared library.
12959 predep_objects=$lt_predep_objects_CXX
12960
12961 # Dependencies to place after the objects being linked to create a
12962 # shared library.
12963 postdep_objects=$lt_postdep_objects_CXX
12964
12965 # Dependencies to place before the objects being linked to create a
12966 # shared library.
12967 predeps=$lt_predeps_CXX
12968
12969 # Dependencies to place after the objects being linked to create a
12970 # shared library.
12971 postdeps=$lt_postdeps_CXX
12972
12973 # The library search path used internally by the compiler when linking
12974 # a shared library.
12975 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12976
12977 # Method to check whether dependent libraries are shared objects.
12978 deplibs_check_method=$lt_deplibs_check_method
12979
12980 # Command to use when deplibs_check_method == file_magic.
12981 file_magic_cmd=$lt_file_magic_cmd
12982
12983 # Flag that allows shared libraries with undefined symbols to be built.
12984 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12985
12986 # Flag that forces no undefined symbols.
12987 no_undefined_flag=$lt_no_undefined_flag_CXX
12988
12989 # Commands used to finish a libtool library installation in a directory.
12990 finish_cmds=$lt_finish_cmds
12991
12992 # Same as above, but a single script fragment to be evaled but not shown.
12993 finish_eval=$lt_finish_eval
12994
12995 # Take the output of nm and produce a listing of raw symbols and C names.
12996 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12997
12998 # Transform the output of nm in a proper C declaration
12999 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13000
13001 # Transform the output of nm in a C name address pair
13002 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13003
13004 # This is the shared library runtime path variable.
13005 runpath_var=$runpath_var
13006
13007 # This is the shared library path variable.
13008 shlibpath_var=$shlibpath_var
13009
13010 # Is shlibpath searched before the hard-coded library search path?
13011 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13012
13013 # How to hardcode a shared library path into an executable.
13014 hardcode_action=$hardcode_action_CXX
13015
13016 # Whether we should hardcode library paths into libraries.
13017 hardcode_into_libs=$hardcode_into_libs
13018
13019 # Flag to hardcode \$libdir into a binary during linking.
13020 # This must work even if \$libdir does not exist.
13021 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13022
13023 # If ld is used when linking, flag to hardcode \$libdir into
13024 # a binary during linking. This must work even if \$libdir does
13025 # not exist.
13026 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13027
13028 # Whether we need a single -rpath flag with a separated argument.
13029 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13030
13031 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13032 # resulting binary.
13033 hardcode_direct=$hardcode_direct_CXX
13034
13035 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13036 # resulting binary.
13037 hardcode_minus_L=$hardcode_minus_L_CXX
13038
13039 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13040 # the resulting binary.
13041 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13042
13043 # Set to yes if building a shared library automatically hardcodes DIR into the library
13044 # and all subsequent libraries and executables linked against it.
13045 hardcode_automatic=$hardcode_automatic_CXX
13046
13047 # Variables whose values should be saved in libtool wrapper scripts and
13048 # restored at relink time.
13049 variables_saved_for_relink="$variables_saved_for_relink"
13050
13051 # Whether libtool must link a program against all its dependency libraries.
13052 link_all_deplibs=$link_all_deplibs_CXX
13053
13054 # Compile-time system search path for libraries
13055 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13056
13057 # Run-time system search path for libraries
13058 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13059
13060 # Fix the shell variable \$srcfile for the compiler.
13061 fix_srcfile_path="$fix_srcfile_path_CXX"
13062
13063 # Set to yes if exported symbols are required.
13064 always_export_symbols=$always_export_symbols_CXX
13065
13066 # The commands to list exported symbols.
13067 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13068
13069 # The commands to extract the exported symbol list from a shared archive.
13070 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13071
13072 # Symbols that should not be listed in the preloaded symbols.
13073 exclude_expsyms=$lt_exclude_expsyms_CXX
13074
13075 # Symbols that must always be exported.
13076 include_expsyms=$lt_include_expsyms_CXX
13077
13078 # ### END LIBTOOL TAG CONFIG: $tagname
13079
13080 __EOF__
13081
13082
13083 else
13084   # If there is no Makefile yet, we rely on a make rule to execute
13085   # `config.status --recheck' to rerun these tests and create the
13086   # libtool script then.
13087   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13088   if test -f "$ltmain_in"; then
13089     test -f Makefile && make "$ltmain"
13090   fi
13091 fi
13092
13093
13094 ac_ext=c
13095 ac_cpp='$CPP $CPPFLAGS'
13096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13099
13100 CC=$lt_save_CC
13101 LDCXX=$LD
13102 LD=$lt_save_LD
13103 GCC=$lt_save_GCC
13104 with_gnu_ldcxx=$with_gnu_ld
13105 with_gnu_ld=$lt_save_with_gnu_ld
13106 lt_cv_path_LDCXX=$lt_cv_path_LD
13107 lt_cv_path_LD=$lt_save_path_LD
13108 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13109 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13110
13111         else
13112           tagname=""
13113         fi
13114         ;;
13115
13116       F77)
13117         if test -n "$F77" && test "X$F77" != "Xno"; then
13118
13119 ac_ext=f
13120 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13121 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13122 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13123
13124
13125 archive_cmds_need_lc_F77=no
13126 allow_undefined_flag_F77=
13127 always_export_symbols_F77=no
13128 archive_expsym_cmds_F77=
13129 export_dynamic_flag_spec_F77=
13130 hardcode_direct_F77=no
13131 hardcode_libdir_flag_spec_F77=
13132 hardcode_libdir_flag_spec_ld_F77=
13133 hardcode_libdir_separator_F77=
13134 hardcode_minus_L_F77=no
13135 hardcode_automatic_F77=no
13136 module_cmds_F77=
13137 module_expsym_cmds_F77=
13138 link_all_deplibs_F77=unknown
13139 old_archive_cmds_F77=$old_archive_cmds
13140 no_undefined_flag_F77=
13141 whole_archive_flag_spec_F77=
13142 enable_shared_with_static_runtimes_F77=no
13143
13144 # Source file extension for f77 test sources.
13145 ac_ext=f
13146
13147 # Object file extension for compiled f77 test sources.
13148 objext=o
13149 objext_F77=$objext
13150
13151 # Code to be used in simple compile tests
13152 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13153
13154 # Code to be used in simple link tests
13155 lt_simple_link_test_code="      program t\n      end\n"
13156
13157 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13158
13159 # If no C compiler was specified, use CC.
13160 LTCC=${LTCC-"$CC"}
13161
13162 # Allow CC to be a program name with arguments.
13163 compiler=$CC
13164
13165
13166 # Allow CC to be a program name with arguments.
13167 lt_save_CC="$CC"
13168 CC=${F77-"f77"}
13169 compiler=$CC
13170 compiler_F77=$CC
13171 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13172
13173 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13174 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13175 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13176 echo "${ECHO_T}$can_build_shared" >&6
13177
13178 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13179 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13180 test "$can_build_shared" = "no" && enable_shared=no
13181
13182 # On AIX, shared libraries and static libraries use the same namespace, and
13183 # are all built from PIC.
13184 case "$host_os" in
13185 aix3*)
13186   test "$enable_shared" = yes && enable_static=no
13187   if test -n "$RANLIB"; then
13188     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13189     postinstall_cmds='$RANLIB $lib'
13190   fi
13191   ;;
13192 aix4* | aix5*)
13193   test "$enable_shared" = yes && enable_static=no
13194   ;;
13195 esac
13196 echo "$as_me:$LINENO: result: $enable_shared" >&5
13197 echo "${ECHO_T}$enable_shared" >&6
13198
13199 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13200 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13201 # Make sure either enable_shared or enable_static is yes.
13202 test "$enable_shared" = yes || enable_static=yes
13203 echo "$as_me:$LINENO: result: $enable_static" >&5
13204 echo "${ECHO_T}$enable_static" >&6
13205
13206 test "$ld_shlibs_F77" = no && can_build_shared=no
13207
13208 GCC_F77="$G77"
13209 LD_F77="$LD"
13210
13211 lt_prog_compiler_wl_F77=
13212 lt_prog_compiler_pic_F77=
13213 lt_prog_compiler_static_F77=
13214
13215 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13216 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13217
13218   if test "$GCC" = yes; then
13219     lt_prog_compiler_wl_F77='-Wl,'
13220     lt_prog_compiler_static_F77='-static'
13221
13222     case $host_os in
13223       aix*)
13224       # All AIX code is PIC.
13225       if test "$host_cpu" = ia64; then
13226         # AIX 5 now supports IA64 processor
13227         lt_prog_compiler_static_F77='-Bstatic'
13228       fi
13229       ;;
13230
13231     amigaos*)
13232       # FIXME: we need at least 68020 code to build shared libraries, but
13233       # adding the `-m68020' flag to GCC prevents building anything better,
13234       # like `-m68040'.
13235       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13236       ;;
13237
13238     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13239       # PIC is the default for these OSes.
13240       ;;
13241
13242     mingw* | pw32* | os2*)
13243       # This hack is so that the source file can tell whether it is being
13244       # built for inclusion in a dll (and should export symbols for example).
13245       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13246       ;;
13247
13248     darwin* | rhapsody*)
13249       # PIC is the default on this platform
13250       # Common symbols not allowed in MH_DYLIB files
13251       lt_prog_compiler_pic_F77='-fno-common'
13252       ;;
13253
13254     msdosdjgpp*)
13255       # Just because we use GCC doesn't mean we suddenly get shared libraries
13256       # on systems that don't support them.
13257       lt_prog_compiler_can_build_shared_F77=no
13258       enable_shared=no
13259       ;;
13260
13261     sysv4*MP*)
13262       if test -d /usr/nec; then
13263         lt_prog_compiler_pic_F77=-Kconform_pic
13264       fi
13265       ;;
13266
13267     hpux*)
13268       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13269       # not for PA HP-UX.
13270       case "$host_cpu" in
13271       hppa*64*|ia64*)
13272         # +Z the default
13273         ;;
13274       *)
13275         lt_prog_compiler_pic_F77='-fPIC'
13276         ;;
13277       esac
13278       ;;
13279
13280     *)
13281       lt_prog_compiler_pic_F77='-fPIC'
13282       ;;
13283     esac
13284   else
13285     # PORTME Check for flag to pass linker flags through the system compiler.
13286     case $host_os in
13287     aix*)
13288       lt_prog_compiler_wl_F77='-Wl,'
13289       if test "$host_cpu" = ia64; then
13290         # AIX 5 now supports IA64 processor
13291         lt_prog_compiler_static_F77='-Bstatic'
13292       else
13293         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13294       fi
13295       ;;
13296
13297     mingw* | pw32* | os2*)
13298       # This hack is so that the source file can tell whether it is being
13299       # built for inclusion in a dll (and should export symbols for example).
13300       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13301       ;;
13302
13303     hpux9* | hpux10* | hpux11*)
13304       lt_prog_compiler_wl_F77='-Wl,'
13305       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13306       # not for PA HP-UX.
13307       case "$host_cpu" in
13308       hppa*64*|ia64*)
13309         # +Z the default
13310         ;;
13311       *)
13312         lt_prog_compiler_pic_F77='+Z'
13313         ;;
13314       esac
13315       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13316       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13317       ;;
13318
13319     irix5* | irix6* | nonstopux*)
13320       lt_prog_compiler_wl_F77='-Wl,'
13321       # PIC (with -KPIC) is the default.
13322       lt_prog_compiler_static_F77='-non_shared'
13323       ;;
13324
13325     newsos6)
13326       lt_prog_compiler_pic_F77='-KPIC'
13327       lt_prog_compiler_static_F77='-Bstatic'
13328       ;;
13329
13330     linux*)
13331       case $CC in
13332       icc* | ecc*)
13333         lt_prog_compiler_wl_F77='-Wl,'
13334         lt_prog_compiler_pic_F77='-KPIC'
13335         lt_prog_compiler_static_F77='-static'
13336         ;;
13337       ccc*)
13338         lt_prog_compiler_wl_F77='-Wl,'
13339         # All Alpha code is PIC.
13340         lt_prog_compiler_static_F77='-non_shared'
13341         ;;
13342       esac
13343       ;;
13344
13345     osf3* | osf4* | osf5*)
13346       lt_prog_compiler_wl_F77='-Wl,'
13347       # All OSF/1 code is PIC.
13348       lt_prog_compiler_static_F77='-non_shared'
13349       ;;
13350
13351     sco3.2v5*)
13352       lt_prog_compiler_pic_F77='-Kpic'
13353       lt_prog_compiler_static_F77='-dn'
13354       ;;
13355
13356     solaris*)
13357       lt_prog_compiler_wl_F77='-Wl,'
13358       lt_prog_compiler_pic_F77='-KPIC'
13359       lt_prog_compiler_static_F77='-Bstatic'
13360       ;;
13361
13362     sunos4*)
13363       lt_prog_compiler_wl_F77='-Qoption ld '
13364       lt_prog_compiler_pic_F77='-PIC'
13365       lt_prog_compiler_static_F77='-Bstatic'
13366       ;;
13367
13368     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13369       lt_prog_compiler_wl_F77='-Wl,'
13370       lt_prog_compiler_pic_F77='-KPIC'
13371       lt_prog_compiler_static_F77='-Bstatic'
13372       ;;
13373
13374     sysv4*MP*)
13375       if test -d /usr/nec ;then
13376         lt_prog_compiler_pic_F77='-Kconform_pic'
13377         lt_prog_compiler_static_F77='-Bstatic'
13378       fi
13379       ;;
13380
13381     uts4*)
13382       lt_prog_compiler_pic_F77='-pic'
13383       lt_prog_compiler_static_F77='-Bstatic'
13384       ;;
13385
13386     *)
13387       lt_prog_compiler_can_build_shared_F77=no
13388       ;;
13389     esac
13390   fi
13391
13392 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13393 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13394
13395 #
13396 # Check to make sure the PIC flag actually works.
13397 #
13398 if test -n "$lt_prog_compiler_pic_F77"; then
13399
13400 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13401 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13402 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13403   echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405   lt_prog_compiler_pic_works_F77=no
13406   ac_outfile=conftest.$ac_objext
13407    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13408    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13409    # Insert the option either (1) after the last *FLAGS variable, or
13410    # (2) before a word containing "conftest.", or (3) at the end.
13411    # Note that $ac_compile itself does not contain backslashes and begins
13412    # with a dollar sign (not a hyphen), so the echo should work correctly.
13413    # The option is referenced via a variable to avoid confusing sed.
13414    lt_compile=`echo "$ac_compile" | $SED \
13415    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13416    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13417    -e 's:$: $lt_compiler_flag:'`
13418    (eval echo "\"\$as_me:13418: $lt_compile\"" >&5)
13419    (eval "$lt_compile" 2>conftest.err)
13420    ac_status=$?
13421    cat conftest.err >&5
13422    echo "$as_me:13422: \$? = $ac_status" >&5
13423    if (exit $ac_status) && test -s "$ac_outfile"; then
13424      # The compiler can only warn and ignore the option if not recognized
13425      # So say no if there are warnings
13426      if test ! -s conftest.err; then
13427        lt_prog_compiler_pic_works_F77=yes
13428      fi
13429    fi
13430    $rm conftest*
13431
13432 fi
13433 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13434 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13435
13436 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13437     case $lt_prog_compiler_pic_F77 in
13438      "" | " "*) ;;
13439      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13440      esac
13441 else
13442     lt_prog_compiler_pic_F77=
13443      lt_prog_compiler_can_build_shared_F77=no
13444 fi
13445
13446 fi
13447 case "$host_os" in
13448   # For platforms which do not support PIC, -DPIC is meaningless:
13449   *djgpp*)
13450     lt_prog_compiler_pic_F77=
13451     ;;
13452   *)
13453     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13454     ;;
13455 esac
13456
13457 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13458 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13459 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13460   echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462   lt_cv_prog_compiler_c_o_F77=no
13463    $rm -r conftest 2>/dev/null
13464    mkdir conftest
13465    cd conftest
13466    mkdir out
13467    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13468
13469    lt_compiler_flag="-o out/conftest2.$ac_objext"
13470    # Insert the option either (1) after the last *FLAGS variable, or
13471    # (2) before a word containing "conftest.", or (3) at the end.
13472    # Note that $ac_compile itself does not contain backslashes and begins
13473    # with a dollar sign (not a hyphen), so the echo should work correctly.
13474    lt_compile=`echo "$ac_compile" | $SED \
13475    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13476    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13477    -e 's:$: $lt_compiler_flag:'`
13478    (eval echo "\"\$as_me:13478: $lt_compile\"" >&5)
13479    (eval "$lt_compile" 2>out/conftest.err)
13480    ac_status=$?
13481    cat out/conftest.err >&5
13482    echo "$as_me:13482: \$? = $ac_status" >&5
13483    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13484    then
13485      # The compiler can only warn and ignore the option if not recognized
13486      # So say no if there are warnings
13487      if test ! -s out/conftest.err; then
13488        lt_cv_prog_compiler_c_o_F77=yes
13489      fi
13490    fi
13491    chmod u+w .
13492    $rm conftest*
13493    # SGI C++ compiler will create directory out/ii_files/ for
13494    # template instantiation
13495    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13496    $rm out/* && rmdir out
13497    cd ..
13498    rmdir conftest
13499    $rm conftest*
13500
13501 fi
13502 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13503 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13504
13505
13506 hard_links="nottested"
13507 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13508   # do not overwrite the value of need_locks provided by the user
13509   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13510 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13511   hard_links=yes
13512   $rm conftest*
13513   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13514   touch conftest.a
13515   ln conftest.a conftest.b 2>&5 || hard_links=no
13516   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13517   echo "$as_me:$LINENO: result: $hard_links" >&5
13518 echo "${ECHO_T}$hard_links" >&6
13519   if test "$hard_links" = no; then
13520     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13521 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13522     need_locks=warn
13523   fi
13524 else
13525   need_locks=no
13526 fi
13527
13528 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13529 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13530
13531   runpath_var=
13532   allow_undefined_flag_F77=
13533   enable_shared_with_static_runtimes_F77=no
13534   archive_cmds_F77=
13535   archive_expsym_cmds_F77=
13536   old_archive_From_new_cmds_F77=
13537   old_archive_from_expsyms_cmds_F77=
13538   export_dynamic_flag_spec_F77=
13539   whole_archive_flag_spec_F77=
13540   thread_safe_flag_spec_F77=
13541   hardcode_libdir_flag_spec_F77=
13542   hardcode_libdir_flag_spec_ld_F77=
13543   hardcode_libdir_separator_F77=
13544   hardcode_direct_F77=no
13545   hardcode_minus_L_F77=no
13546   hardcode_shlibpath_var_F77=unsupported
13547   link_all_deplibs_F77=unknown
13548   hardcode_automatic_F77=no
13549   module_cmds_F77=
13550   module_expsym_cmds_F77=
13551   always_export_symbols_F77=no
13552   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13553   # include_expsyms should be a list of space-separated symbols to be *always*
13554   # included in the symbol list
13555   include_expsyms_F77=
13556   # exclude_expsyms can be an extended regexp of symbols to exclude
13557   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13558   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13559   # as well as any symbol that contains `d'.
13560   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13561   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13562   # platforms (ab)use it in PIC code, but their linkers get confused if
13563   # the symbol is explicitly referenced.  Since portable code cannot
13564   # rely on this symbol name, it's probably fine to never include it in
13565   # preloaded symbol tables.
13566   extract_expsyms_cmds=
13567
13568   case $host_os in
13569   cygwin* | mingw* | pw32*)
13570     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13571     # When not using gcc, we currently assume that we are using
13572     # Microsoft Visual C++.
13573     if test "$GCC" != yes; then
13574       with_gnu_ld=no
13575     fi
13576     ;;
13577   openbsd*)
13578     with_gnu_ld=no
13579     ;;
13580   esac
13581
13582   ld_shlibs_F77=yes
13583   if test "$with_gnu_ld" = yes; then
13584     # If archive_cmds runs LD, not CC, wlarc should be empty
13585     wlarc='${wl}'
13586
13587     # See if GNU ld supports shared libraries.
13588     case $host_os in
13589     aix3* | aix4* | aix5*)
13590       # On AIX/PPC, the GNU linker is very broken
13591       if test "$host_cpu" != ia64; then
13592         ld_shlibs_F77=no
13593         cat <<EOF 1>&2
13594
13595 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13596 *** to be unable to reliably create shared libraries on AIX.
13597 *** Therefore, libtool is disabling shared libraries support.  If you
13598 *** really care for shared libraries, you may want to modify your PATH
13599 *** so that a non-GNU linker is found, and then restart.
13600
13601 EOF
13602       fi
13603       ;;
13604
13605     amigaos*)
13606       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13607       hardcode_libdir_flag_spec_F77='-L$libdir'
13608       hardcode_minus_L_F77=yes
13609
13610       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13611       # that the semantics of dynamic libraries on AmigaOS, at least up
13612       # to version 4, is to share data among multiple programs linked
13613       # with the same dynamic library.  Since this doesn't match the
13614       # behavior of shared libraries on other platforms, we can't use
13615       # them.
13616       ld_shlibs_F77=no
13617       ;;
13618
13619     beos*)
13620       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13621         allow_undefined_flag_F77=unsupported
13622         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13623         # support --undefined.  This deserves some investigation.  FIXME
13624         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13625       else
13626         ld_shlibs_F77=no
13627       fi
13628       ;;
13629
13630     cygwin* | mingw* | pw32*)
13631       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13632       # as there is no search path for DLLs.
13633       hardcode_libdir_flag_spec_F77='-L$libdir'
13634       allow_undefined_flag_F77=unsupported
13635       always_export_symbols_F77=no
13636       enable_shared_with_static_runtimes_F77=yes
13637       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13638
13639       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13640         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13641         # If the export-symbols file already is a .def file (1st line
13642         # is EXPORTS), use it as is; otherwise, prepend...
13643         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13644           cp $export_symbols $output_objdir/$soname.def;
13645         else
13646           echo EXPORTS > $output_objdir/$soname.def;
13647           cat $export_symbols >> $output_objdir/$soname.def;
13648         fi~
13649         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13650       else
13651         ld_shlibs=no
13652       fi
13653       ;;
13654
13655     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13656       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13657         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13658         wlarc=
13659       else
13660         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13661         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13662       fi
13663       ;;
13664
13665     solaris* | sysv5*)
13666       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13667         ld_shlibs_F77=no
13668         cat <<EOF 1>&2
13669
13670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13671 *** create shared libraries on Solaris systems.  Therefore, libtool
13672 *** is disabling shared libraries support.  We urge you to upgrade GNU
13673 *** binutils to release 2.9.1 or newer.  Another option is to modify
13674 *** your PATH or compiler configuration so that the native linker is
13675 *** used, and then restart.
13676
13677 EOF
13678       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13679         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13680         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13681       else
13682         ld_shlibs_F77=no
13683       fi
13684       ;;
13685
13686     sunos4*)
13687       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13688       wlarc=
13689       hardcode_direct_F77=yes
13690       hardcode_shlibpath_var_F77=no
13691       ;;
13692
13693   linux*)
13694     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13695         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13696         archive_cmds_F77="$tmp_archive_cmds"
13697       supports_anon_versioning=no
13698       case `$LD -v 2>/dev/null` in
13699         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13700         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13701         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13702         *\ 2.11.*) ;; # other 2.11 versions
13703         *) supports_anon_versioning=yes ;;
13704       esac
13705       if test $supports_anon_versioning = yes; then
13706         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13707 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13708 $echo "local: *; };" >> $output_objdir/$libname.ver~
13709         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13710       else
13711         archive_expsym_cmds_F77="$tmp_archive_cmds"
13712       fi
13713       link_all_deplibs_F77=no
13714     else
13715       ld_shlibs_F77=no
13716     fi
13717     ;;
13718
13719     *)
13720       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13721         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13722         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13723       else
13724         ld_shlibs_F77=no
13725       fi
13726       ;;
13727     esac
13728
13729     if test "$ld_shlibs_F77" = yes; then
13730       runpath_var=LD_RUN_PATH
13731       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13732       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13733       # ancient GNU ld didn't support --whole-archive et. al.
13734       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13735         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13736       else
13737         whole_archive_flag_spec_F77=
13738       fi
13739     fi
13740   else
13741     # PORTME fill in a description of your system's linker (not GNU ld)
13742     case $host_os in
13743     aix3*)
13744       allow_undefined_flag_F77=unsupported
13745       always_export_symbols_F77=yes
13746       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13747       # Note: this linker hardcodes the directories in LIBPATH if there
13748       # are no directories specified by -L.
13749       hardcode_minus_L_F77=yes
13750       if test "$GCC" = yes && test -z "$link_static_flag"; then
13751         # Neither direct hardcoding nor static linking is supported with a
13752         # broken collect2.
13753         hardcode_direct_F77=unsupported
13754       fi
13755       ;;
13756
13757     aix4* | aix5*)
13758       if test "$host_cpu" = ia64; then
13759         # On IA64, the linker does run time linking by default, so we don't
13760         # have to do anything special.
13761         aix_use_runtimelinking=no
13762         exp_sym_flag='-Bexport'
13763         no_entry_flag=""
13764       else
13765         # If we're using GNU nm, then we don't want the "-C" option.
13766         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13767         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13768           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13769         else
13770           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13771         fi
13772         aix_use_runtimelinking=no
13773
13774         # Test if we are trying to use run time linking or normal
13775         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13776         # need to do runtime linking.
13777         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13778           for ld_flag in $LDFLAGS; do
13779           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13780             aix_use_runtimelinking=yes
13781             break
13782           fi
13783           done
13784         esac
13785
13786         exp_sym_flag='-bexport'
13787         no_entry_flag='-bnoentry'
13788       fi
13789
13790       # When large executables or shared objects are built, AIX ld can
13791       # have problems creating the table of contents.  If linking a library
13792       # or program results in "error TOC overflow" add -mminimal-toc to
13793       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13794       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13795
13796       archive_cmds_F77=''
13797       hardcode_direct_F77=yes
13798       hardcode_libdir_separator_F77=':'
13799       link_all_deplibs_F77=yes
13800
13801       if test "$GCC" = yes; then
13802         case $host_os in aix4.012|aix4.012.*)
13803         # We only want to do this on AIX 4.2 and lower, the check
13804         # below for broken collect2 doesn't work under 4.3+
13805           collect2name=`${CC} -print-prog-name=collect2`
13806           if test -f "$collect2name" && \
13807            strings "$collect2name" | grep resolve_lib_name >/dev/null
13808           then
13809           # We have reworked collect2
13810           hardcode_direct_F77=yes
13811           else
13812           # We have old collect2
13813           hardcode_direct_F77=unsupported
13814           # It fails to find uninstalled libraries when the uninstalled
13815           # path is not listed in the libpath.  Setting hardcode_minus_L
13816           # to unsupported forces relinking
13817           hardcode_minus_L_F77=yes
13818           hardcode_libdir_flag_spec_F77='-L$libdir'
13819           hardcode_libdir_separator_F77=
13820           fi
13821         esac
13822         shared_flag='-shared'
13823       else
13824         # not using gcc
13825         if test "$host_cpu" = ia64; then
13826         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13827         # chokes on -Wl,-G. The following line is correct:
13828           shared_flag='-G'
13829         else
13830         if test "$aix_use_runtimelinking" = yes; then
13831             shared_flag='${wl}-G'
13832           else
13833             shared_flag='${wl}-bM:SRE'
13834         fi
13835         fi
13836       fi
13837
13838       # It seems that -bexpall does not export symbols beginning with
13839       # underscore (_), so it is better to generate a list of symbols to export.
13840       always_export_symbols_F77=yes
13841       if test "$aix_use_runtimelinking" = yes; then
13842         # Warning - without using the other runtime loading flags (-brtl),
13843         # -berok will link without error, but may produce a broken library.
13844         allow_undefined_flag_F77='-berok'
13845        # Determine the default libpath from the value encoded in an empty executable.
13846        cat >conftest.$ac_ext <<_ACEOF
13847       program main
13848
13849       end
13850 _ACEOF
13851 rm -f conftest.$ac_objext conftest$ac_exeext
13852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13853   (eval $ac_link) 2>conftest.er1
13854   ac_status=$?
13855   grep -v '^ *+' conftest.er1 >conftest.err
13856   rm -f conftest.er1
13857   cat conftest.err >&5
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); } &&
13860          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862   (eval $ac_try) 2>&5
13863   ac_status=$?
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); }; } &&
13866          { ac_try='test -s conftest$ac_exeext'
13867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868   (eval $ac_try) 2>&5
13869   ac_status=$?
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); }; }; then
13872
13873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13874 }'`
13875 # Check for a 64-bit object if we didn't find anything.
13876 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13877 }'`; fi
13878 else
13879   echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13881
13882 fi
13883 rm -f conftest.err conftest.$ac_objext \
13884       conftest$ac_exeext conftest.$ac_ext
13885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13886
13887        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13888         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13889        else
13890         if test "$host_cpu" = ia64; then
13891           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13892           allow_undefined_flag_F77="-z nodefs"
13893           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13894         else
13895          # Determine the default libpath from the value encoded in an empty executable.
13896          cat >conftest.$ac_ext <<_ACEOF
13897       program main
13898
13899       end
13900 _ACEOF
13901 rm -f conftest.$ac_objext conftest$ac_exeext
13902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13903   (eval $ac_link) 2>conftest.er1
13904   ac_status=$?
13905   grep -v '^ *+' conftest.er1 >conftest.err
13906   rm -f conftest.er1
13907   cat conftest.err >&5
13908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   (exit $ac_status); } &&
13910          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912   (eval $ac_try) 2>&5
13913   ac_status=$?
13914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915   (exit $ac_status); }; } &&
13916          { ac_try='test -s conftest$ac_exeext'
13917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918   (eval $ac_try) 2>&5
13919   ac_status=$?
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); }; }; then
13922
13923 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13924 }'`
13925 # Check for a 64-bit object if we didn't find anything.
13926 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13927 }'`; fi
13928 else
13929   echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13931
13932 fi
13933 rm -f conftest.err conftest.$ac_objext \
13934       conftest$ac_exeext conftest.$ac_ext
13935 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13936
13937          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13938           # Warning - without using the other run time loading flags,
13939           # -berok will link without error, but may produce a broken library.
13940           no_undefined_flag_F77=' ${wl}-bernotok'
13941           allow_undefined_flag_F77=' ${wl}-berok'
13942           # -bexpall does not export symbols beginning with underscore (_)
13943           always_export_symbols_F77=yes
13944           # Exported symbols can be pulled into shared objects from archives
13945           whole_archive_flag_spec_F77=' '
13946           archive_cmds_need_lc_F77=yes
13947           # This is similar to how AIX traditionally builds it's shared libraries.
13948           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13949         fi
13950       fi
13951       ;;
13952
13953     amigaos*)
13954       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13955       hardcode_libdir_flag_spec_F77='-L$libdir'
13956       hardcode_minus_L_F77=yes
13957       # see comment about different semantics on the GNU ld section
13958       ld_shlibs_F77=no
13959       ;;
13960
13961     bsdi4*)
13962       export_dynamic_flag_spec_F77=-rdynamic
13963       ;;
13964
13965     cygwin* | mingw* | pw32*)
13966       # When not using gcc, we currently assume that we are using
13967       # Microsoft Visual C++.
13968       # hardcode_libdir_flag_spec is actually meaningless, as there is
13969       # no search path for DLLs.
13970       hardcode_libdir_flag_spec_F77=' '
13971       allow_undefined_flag_F77=unsupported
13972       # Tell ltmain to make .lib files, not .a files.
13973       libext=lib
13974       # Tell ltmain to make .dll files, not .so files.
13975       shrext_cmds=".dll"
13976       # FIXME: Setting linknames here is a bad hack.
13977       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13978       # The linker will automatically build a .lib file if we build a DLL.
13979       old_archive_From_new_cmds_F77='true'
13980       # FIXME: Should let the user specify the lib program.
13981       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13982       fix_srcfile_path='`cygpath -w "$srcfile"`'
13983       enable_shared_with_static_runtimes_F77=yes
13984       ;;
13985
13986     darwin* | rhapsody*)
13987     if test "$GXX" = yes ; then
13988       archive_cmds_need_lc_F77=no
13989       case "$host_os" in
13990       rhapsody* | darwin1.[012])
13991         allow_undefined_flag_F77='-undefined suppress'
13992         ;;
13993       *) # Darwin 1.3 on
13994       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13995         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13996       else
13997         case ${MACOSX_DEPLOYMENT_TARGET} in
13998           10.[012])
13999             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14000             ;;
14001           10.*)
14002             allow_undefined_flag_F77='-undefined dynamic_lookup'
14003             ;;
14004         esac
14005       fi
14006         ;;
14007       esac
14008         lt_int_apple_cc_single_mod=no
14009         output_verbose_link_cmd='echo'
14010         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14011           lt_int_apple_cc_single_mod=yes
14012         fi
14013         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14014           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14015         else
14016         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14017       fi
14018       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14019       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14020         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14021           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14022         else
14023           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14024         fi
14025           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14026       hardcode_direct_F77=no
14027       hardcode_automatic_F77=yes
14028       hardcode_shlibpath_var_F77=unsupported
14029       whole_archive_flag_spec_F77='-all_load $convenience'
14030       link_all_deplibs_F77=yes
14031     else
14032       ld_shlibs_F77=no
14033     fi
14034       ;;
14035
14036     dgux*)
14037       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14038       hardcode_libdir_flag_spec_F77='-L$libdir'
14039       hardcode_shlibpath_var_F77=no
14040       ;;
14041
14042     freebsd1*)
14043       ld_shlibs_F77=no
14044       ;;
14045
14046     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14047     # support.  Future versions do this automatically, but an explicit c++rt0.o
14048     # does not break anything, and helps significantly (at the cost of a little
14049     # extra space).
14050     freebsd2.2*)
14051       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14052       hardcode_libdir_flag_spec_F77='-R$libdir'
14053       hardcode_direct_F77=yes
14054       hardcode_shlibpath_var_F77=no
14055       ;;
14056
14057     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14058     freebsd2*)
14059       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14060       hardcode_direct_F77=yes
14061       hardcode_minus_L_F77=yes
14062       hardcode_shlibpath_var_F77=no
14063       ;;
14064
14065     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14066     freebsd* | kfreebsd*-gnu)
14067       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14068       hardcode_libdir_flag_spec_F77='-R$libdir'
14069       hardcode_direct_F77=yes
14070       hardcode_shlibpath_var_F77=no
14071       ;;
14072
14073     hpux9*)
14074       if test "$GCC" = yes; then
14075         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14076       else
14077         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14078       fi
14079       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14080       hardcode_libdir_separator_F77=:
14081       hardcode_direct_F77=yes
14082
14083       # hardcode_minus_L: Not really in the search PATH,
14084       # but as the default location of the library.
14085       hardcode_minus_L_F77=yes
14086       export_dynamic_flag_spec_F77='${wl}-E'
14087       ;;
14088
14089     hpux10* | hpux11*)
14090       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14091         case "$host_cpu" in
14092         hppa*64*|ia64*)
14093           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14094           ;;
14095         *)
14096           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14097           ;;
14098         esac
14099       else
14100         case "$host_cpu" in
14101         hppa*64*|ia64*)
14102           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14103           ;;
14104         *)
14105           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14106           ;;
14107         esac
14108       fi
14109       if test "$with_gnu_ld" = no; then
14110         case "$host_cpu" in
14111         hppa*64*)
14112           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14113           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14114           hardcode_libdir_separator_F77=:
14115           hardcode_direct_F77=no
14116           hardcode_shlibpath_var_F77=no
14117           ;;
14118         ia64*)
14119           hardcode_libdir_flag_spec_F77='-L$libdir'
14120           hardcode_direct_F77=no
14121           hardcode_shlibpath_var_F77=no
14122
14123           # hardcode_minus_L: Not really in the search PATH,
14124           # but as the default location of the library.
14125           hardcode_minus_L_F77=yes
14126           ;;
14127         *)
14128           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14129           hardcode_libdir_separator_F77=:
14130           hardcode_direct_F77=yes
14131           export_dynamic_flag_spec_F77='${wl}-E'
14132
14133           # hardcode_minus_L: Not really in the search PATH,
14134           # but as the default location of the library.
14135           hardcode_minus_L_F77=yes
14136           ;;
14137         esac
14138       fi
14139       ;;
14140
14141     irix5* | irix6* | nonstopux*)
14142       if test "$GCC" = yes; then
14143         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14144       else
14145         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14146         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14147       fi
14148       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14149       hardcode_libdir_separator_F77=:
14150       link_all_deplibs_F77=yes
14151       ;;
14152
14153     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14154       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14155         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14156       else
14157         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14158       fi
14159       hardcode_libdir_flag_spec_F77='-R$libdir'
14160       hardcode_direct_F77=yes
14161       hardcode_shlibpath_var_F77=no
14162       ;;
14163
14164     newsos6)
14165       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14166       hardcode_direct_F77=yes
14167       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14168       hardcode_libdir_separator_F77=:
14169       hardcode_shlibpath_var_F77=no
14170       ;;
14171
14172     openbsd*)
14173       hardcode_direct_F77=yes
14174       hardcode_shlibpath_var_F77=no
14175       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14176         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14177         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14178         export_dynamic_flag_spec_F77='${wl}-E'
14179       else
14180        case $host_os in
14181          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14182            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14183            hardcode_libdir_flag_spec_F77='-R$libdir'
14184            ;;
14185          *)
14186            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14187            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14188            ;;
14189        esac
14190       fi
14191       ;;
14192
14193     os2*)
14194       hardcode_libdir_flag_spec_F77='-L$libdir'
14195       hardcode_minus_L_F77=yes
14196       allow_undefined_flag_F77=unsupported
14197       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14198       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14199       ;;
14200
14201     osf3*)
14202       if test "$GCC" = yes; then
14203         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14204         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14205       else
14206         allow_undefined_flag_F77=' -expect_unresolved \*'
14207         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14208       fi
14209       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14210       hardcode_libdir_separator_F77=:
14211       ;;
14212
14213     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14214       if test "$GCC" = yes; then
14215         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14216         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14217         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14218       else
14219         allow_undefined_flag_F77=' -expect_unresolved \*'
14220         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14221         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14222         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14223
14224         # Both c and cxx compiler support -rpath directly
14225         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14226       fi
14227       hardcode_libdir_separator_F77=:
14228       ;;
14229
14230     sco3.2v5*)
14231       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14232       hardcode_shlibpath_var_F77=no
14233       export_dynamic_flag_spec_F77='${wl}-Bexport'
14234       runpath_var=LD_RUN_PATH
14235       hardcode_runpath_var=yes
14236       ;;
14237
14238     solaris*)
14239       no_undefined_flag_F77=' -z text'
14240       if test "$GCC" = yes; then
14241         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14242         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14243           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14244       else
14245         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14246         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14247         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14248       fi
14249       hardcode_libdir_flag_spec_F77='-R$libdir'
14250       hardcode_shlibpath_var_F77=no
14251       case $host_os in
14252       solaris2.[0-5] | solaris2.[0-5].*) ;;
14253       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14254         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14255       esac
14256       link_all_deplibs_F77=yes
14257       ;;
14258
14259     sunos4*)
14260       if test "x$host_vendor" = xsequent; then
14261         # Use $CC to link under sequent, because it throws in some extra .o
14262         # files that make .init and .fini sections work.
14263         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14264       else
14265         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14266       fi
14267       hardcode_libdir_flag_spec_F77='-L$libdir'
14268       hardcode_direct_F77=yes
14269       hardcode_minus_L_F77=yes
14270       hardcode_shlibpath_var_F77=no
14271       ;;
14272
14273     sysv4)
14274       case $host_vendor in
14275         sni)
14276           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14277           hardcode_direct_F77=yes # is this really true???
14278         ;;
14279         siemens)
14280           ## LD is ld it makes a PLAMLIB
14281           ## CC just makes a GrossModule.
14282           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14283           reload_cmds_F77='$CC -r -o $output$reload_objs'
14284           hardcode_direct_F77=no
14285         ;;
14286         motorola)
14287           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14288           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14289         ;;
14290       esac
14291       runpath_var='LD_RUN_PATH'
14292       hardcode_shlibpath_var_F77=no
14293       ;;
14294
14295     sysv4.3*)
14296       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14297       hardcode_shlibpath_var_F77=no
14298       export_dynamic_flag_spec_F77='-Bexport'
14299       ;;
14300
14301     sysv4*MP*)
14302       if test -d /usr/nec; then
14303         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14304         hardcode_shlibpath_var_F77=no
14305         runpath_var=LD_RUN_PATH
14306         hardcode_runpath_var=yes
14307         ld_shlibs_F77=yes
14308       fi
14309       ;;
14310
14311     sysv4.2uw2*)
14312       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14313       hardcode_direct_F77=yes
14314       hardcode_minus_L_F77=no
14315       hardcode_shlibpath_var_F77=no
14316       hardcode_runpath_var=yes
14317       runpath_var=LD_RUN_PATH
14318       ;;
14319
14320    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14321       no_undefined_flag_F77='${wl}-z ${wl}text'
14322       if test "$GCC" = yes; then
14323         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14324       else
14325         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14326       fi
14327       runpath_var='LD_RUN_PATH'
14328       hardcode_shlibpath_var_F77=no
14329       ;;
14330
14331     sysv5*)
14332       no_undefined_flag_F77=' -z text'
14333       # $CC -shared without GNU ld will not create a library from C++
14334       # object files and a static libstdc++, better avoid it by now
14335       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14336       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14337                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14338       hardcode_libdir_flag_spec_F77=
14339       hardcode_shlibpath_var_F77=no
14340       runpath_var='LD_RUN_PATH'
14341       ;;
14342
14343     uts4*)
14344       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14345       hardcode_libdir_flag_spec_F77='-L$libdir'
14346       hardcode_shlibpath_var_F77=no
14347       ;;
14348
14349     *)
14350       ld_shlibs_F77=no
14351       ;;
14352     esac
14353   fi
14354
14355 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14356 echo "${ECHO_T}$ld_shlibs_F77" >&6
14357 test "$ld_shlibs_F77" = no && can_build_shared=no
14358
14359 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14360 if test "$GCC" = yes; then
14361   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14362 fi
14363
14364 #
14365 # Do we need to explicitly link libc?
14366 #
14367 case "x$archive_cmds_need_lc_F77" in
14368 x|xyes)
14369   # Assume -lc should be added
14370   archive_cmds_need_lc_F77=yes
14371
14372   if test "$enable_shared" = yes && test "$GCC" = yes; then
14373     case $archive_cmds_F77 in
14374     *'~'*)
14375       # FIXME: we may have to deal with multi-command sequences.
14376       ;;
14377     '$CC '*)
14378       # Test whether the compiler implicitly links with -lc since on some
14379       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14380       # to ld, don't add -lc before -lgcc.
14381       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14382 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14383       $rm conftest*
14384       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14385
14386       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387   (eval $ac_compile) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); } 2>conftest.err; then
14391         soname=conftest
14392         lib=conftest
14393         libobjs=conftest.$ac_objext
14394         deplibs=
14395         wl=$lt_prog_compiler_wl_F77
14396         compiler_flags=-v
14397         linker_flags=-v
14398         verstring=
14399         output_objdir=.
14400         libname=conftest
14401         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14402         allow_undefined_flag_F77=
14403         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14404   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }
14408         then
14409           archive_cmds_need_lc_F77=no
14410         else
14411           archive_cmds_need_lc_F77=yes
14412         fi
14413         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14414       else
14415         cat conftest.err 1>&5
14416       fi
14417       $rm conftest*
14418       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14419 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14420       ;;
14421     esac
14422   fi
14423   ;;
14424 esac
14425
14426 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14427 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14428 library_names_spec=
14429 libname_spec='lib$name'
14430 soname_spec=
14431 shrext_cmds=".so"
14432 postinstall_cmds=
14433 postuninstall_cmds=
14434 finish_cmds=
14435 finish_eval=
14436 shlibpath_var=
14437 shlibpath_overrides_runpath=unknown
14438 version_type=none
14439 dynamic_linker="$host_os ld.so"
14440 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14441 if test "$GCC" = yes; then
14442   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14443   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14444     # if the path contains ";" then we assume it to be the separator
14445     # otherwise default to the standard path separator (i.e. ":") - it is
14446     # assumed that no part of a normal pathname contains ";" but that should
14447     # okay in the real world where ";" in dirpaths is itself problematic.
14448     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14449   else
14450     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14451   fi
14452 else
14453   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14454 fi
14455 need_lib_prefix=unknown
14456 hardcode_into_libs=no
14457
14458 # when you set need_version to no, make sure it does not cause -set_version
14459 # flags to be left without arguments
14460 need_version=unknown
14461
14462 case $host_os in
14463 aix3*)
14464   version_type=linux
14465   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14466   shlibpath_var=LIBPATH
14467
14468   # AIX 3 has no versioning support, so we append a major version to the name.
14469   soname_spec='${libname}${release}${shared_ext}$major'
14470   ;;
14471
14472 aix4* | aix5*)
14473   version_type=linux
14474   need_lib_prefix=no
14475   need_version=no
14476   hardcode_into_libs=yes
14477   if test "$host_cpu" = ia64; then
14478     # AIX 5 supports IA64
14479     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14480     shlibpath_var=LD_LIBRARY_PATH
14481   else
14482     # With GCC up to 2.95.x, collect2 would create an import file
14483     # for dependence libraries.  The import file would start with
14484     # the line `#! .'.  This would cause the generated library to
14485     # depend on `.', always an invalid library.  This was fixed in
14486     # development snapshots of GCC prior to 3.0.
14487     case $host_os in
14488       aix4 | aix4.[01] | aix4.[01].*)
14489       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14490            echo ' yes '
14491            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14492         :
14493       else
14494         can_build_shared=no
14495       fi
14496       ;;
14497     esac
14498     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14499     # soname into executable. Probably we can add versioning support to
14500     # collect2, so additional links can be useful in future.
14501     if test "$aix_use_runtimelinking" = yes; then
14502       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14503       # instead of lib<name>.a to let people know that these are not
14504       # typical AIX shared libraries.
14505       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506     else
14507       # We preserve .a as extension for shared libraries through AIX4.2
14508       # and later when we are not doing run time linking.
14509       library_names_spec='${libname}${release}.a $libname.a'
14510       soname_spec='${libname}${release}${shared_ext}$major'
14511     fi
14512     shlibpath_var=LIBPATH
14513   fi
14514   ;;
14515
14516 amigaos*)
14517   library_names_spec='$libname.ixlibrary $libname.a'
14518   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14519   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14520   ;;
14521
14522 beos*)
14523   library_names_spec='${libname}${shared_ext}'
14524   dynamic_linker="$host_os ld.so"
14525   shlibpath_var=LIBRARY_PATH
14526   ;;
14527
14528 bsdi4*)
14529   version_type=linux
14530   need_version=no
14531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532   soname_spec='${libname}${release}${shared_ext}$major'
14533   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14534   shlibpath_var=LD_LIBRARY_PATH
14535   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14536   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14537   # the default ld.so.conf also contains /usr/contrib/lib and
14538   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14539   # libtool to hard-code these into programs
14540   ;;
14541
14542 cygwin* | mingw* | pw32*)
14543   version_type=windows
14544   shrext_cmds=".dll"
14545   need_version=no
14546   need_lib_prefix=no
14547
14548   case $GCC,$host_os in
14549   yes,cygwin* | yes,mingw* | yes,pw32*)
14550     library_names_spec='$libname.dll.a'
14551     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14552     postinstall_cmds='base_file=`basename \${file}`~
14553       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14554       dldir=$destdir/`dirname \$dlpath`~
14555       test -d \$dldir || mkdir -p \$dldir~
14556       $install_prog $dir/$dlname \$dldir/$dlname'
14557     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14558       dlpath=$dir/\$dldll~
14559        $rm \$dlpath'
14560     shlibpath_overrides_runpath=yes
14561
14562     case $host_os in
14563     cygwin*)
14564       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14565       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14566       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14567       ;;
14568     mingw*)
14569       # MinGW DLLs use traditional 'lib' prefix
14570       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14571       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14572       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14573         # It is most probably a Windows format PATH printed by
14574         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14575         # path with ; separators, and with drive letters. We can handle the
14576         # drive letters (cygwin fileutils understands them), so leave them,
14577         # especially as we might pass files found there to a mingw objdump,
14578         # which wouldn't understand a cygwinified path. Ahh.
14579         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14580       else
14581         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14582       fi
14583       ;;
14584     pw32*)
14585       # pw32 DLLs use 'pw' prefix rather than 'lib'
14586       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14587       ;;
14588     esac
14589     ;;
14590
14591   *)
14592     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14593     ;;
14594   esac
14595   dynamic_linker='Win32 ld.exe'
14596   # FIXME: first we should search . and the directory the executable is in
14597   shlibpath_var=PATH
14598   ;;
14599
14600 darwin* | rhapsody*)
14601   dynamic_linker="$host_os dyld"
14602   version_type=darwin
14603   need_lib_prefix=no
14604   need_version=no
14605   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14606   soname_spec='${libname}${release}${major}$shared_ext'
14607   shlibpath_overrides_runpath=yes
14608   shlibpath_var=DYLD_LIBRARY_PATH
14609   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14610   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14611   if test "$GCC" = yes; then
14612     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14613   else
14614     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14615   fi
14616   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14617   ;;
14618
14619 dgux*)
14620   version_type=linux
14621   need_lib_prefix=no
14622   need_version=no
14623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14624   soname_spec='${libname}${release}${shared_ext}$major'
14625   shlibpath_var=LD_LIBRARY_PATH
14626   ;;
14627
14628 freebsd1*)
14629   dynamic_linker=no
14630   ;;
14631
14632 kfreebsd*-gnu)
14633   version_type=linux
14634   need_lib_prefix=no
14635   need_version=no
14636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14637   soname_spec='${libname}${release}${shared_ext}$major'
14638   shlibpath_var=LD_LIBRARY_PATH
14639   shlibpath_overrides_runpath=no
14640   hardcode_into_libs=yes
14641   dynamic_linker='GNU ld.so'
14642   ;;
14643
14644 freebsd*)
14645   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14646   version_type=freebsd-$objformat
14647   case $version_type in
14648     freebsd-elf*)
14649       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14650       need_version=no
14651       need_lib_prefix=no
14652       ;;
14653     freebsd-*)
14654       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14655       need_version=yes
14656       ;;
14657   esac
14658   shlibpath_var=LD_LIBRARY_PATH
14659   case $host_os in
14660   freebsd2*)
14661     shlibpath_overrides_runpath=yes
14662     ;;
14663   freebsd3.01* | freebsdelf3.01*)
14664     shlibpath_overrides_runpath=yes
14665     hardcode_into_libs=yes
14666     ;;
14667   *) # from 3.2 on
14668     shlibpath_overrides_runpath=no
14669     hardcode_into_libs=yes
14670     ;;
14671   esac
14672   ;;
14673
14674 gnu*)
14675   version_type=linux
14676   need_lib_prefix=no
14677   need_version=no
14678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14679   soname_spec='${libname}${release}${shared_ext}$major'
14680   shlibpath_var=LD_LIBRARY_PATH
14681   hardcode_into_libs=yes
14682   ;;
14683
14684 hpux9* | hpux10* | hpux11*)
14685   # Give a soname corresponding to the major version so that dld.sl refuses to
14686   # link against other versions.
14687   version_type=sunos
14688   need_lib_prefix=no
14689   need_version=no
14690   case "$host_cpu" in
14691   ia64*)
14692     shrext_cmds='.so'
14693     hardcode_into_libs=yes
14694     dynamic_linker="$host_os dld.so"
14695     shlibpath_var=LD_LIBRARY_PATH
14696     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14697     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698     soname_spec='${libname}${release}${shared_ext}$major'
14699     if test "X$HPUX_IA64_MODE" = X32; then
14700       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14701     else
14702       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14703     fi
14704     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14705     ;;
14706    hppa*64*)
14707      shrext_cmds='.sl'
14708      hardcode_into_libs=yes
14709      dynamic_linker="$host_os dld.sl"
14710      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14711      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14712      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713      soname_spec='${libname}${release}${shared_ext}$major'
14714      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14715      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14716      ;;
14717    *)
14718     shrext_cmds='.sl'
14719     dynamic_linker="$host_os dld.sl"
14720     shlibpath_var=SHLIB_PATH
14721     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14722     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723     soname_spec='${libname}${release}${shared_ext}$major'
14724     ;;
14725   esac
14726   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14727   postinstall_cmds='chmod 555 $lib'
14728   ;;
14729
14730 irix5* | irix6* | nonstopux*)
14731   case $host_os in
14732     nonstopux*) version_type=nonstopux ;;
14733     *)
14734         if test "$lt_cv_prog_gnu_ld" = yes; then
14735                 version_type=linux
14736         else
14737                 version_type=irix
14738         fi ;;
14739   esac
14740   need_lib_prefix=no
14741   need_version=no
14742   soname_spec='${libname}${release}${shared_ext}$major'
14743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14744   case $host_os in
14745   irix5* | nonstopux*)
14746     libsuff= shlibsuff=
14747     ;;
14748   *)
14749     case $LD in # libtool.m4 will add one of these switches to LD
14750     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14751       libsuff= shlibsuff= libmagic=32-bit;;
14752     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14753       libsuff=32 shlibsuff=N32 libmagic=N32;;
14754     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14755       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14756     *) libsuff= shlibsuff= libmagic=never-match;;
14757     esac
14758     ;;
14759   esac
14760   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14761   shlibpath_overrides_runpath=no
14762   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14763   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14764   hardcode_into_libs=yes
14765   ;;
14766
14767 # No shared lib support for Linux oldld, aout, or coff.
14768 linux*oldld* | linux*aout* | linux*coff*)
14769   dynamic_linker=no
14770   ;;
14771
14772 # This must be Linux ELF.
14773 linux*)
14774   version_type=linux
14775   need_lib_prefix=no
14776   need_version=no
14777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778   soname_spec='${libname}${release}${shared_ext}$major'
14779   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14780   shlibpath_var=LD_LIBRARY_PATH
14781   shlibpath_overrides_runpath=no
14782   # This implies no fast_install, which is unacceptable.
14783   # Some rework will be needed to allow for fast_install
14784   # before this can be enabled.
14785   hardcode_into_libs=yes
14786
14787   # Append ld.so.conf contents to the search path
14788   if test -f /etc/ld.so.conf; then
14789     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14790     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14791   fi
14792
14793   # We used to test for /lib/ld.so.1 and disable shared libraries on
14794   # powerpc, because MkLinux only supported shared libraries with the
14795   # GNU dynamic linker.  Since this was broken with cross compilers,
14796   # most powerpc-linux boxes support dynamic linking these days and
14797   # people can always --disable-shared, the test was removed, and we
14798   # assume the GNU/Linux dynamic linker is in use.
14799   dynamic_linker='GNU/Linux ld.so'
14800   ;;
14801
14802 netbsdelf*-gnu)
14803   version_type=linux
14804   need_lib_prefix=no
14805   need_version=no
14806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14807   soname_spec='${libname}${release}${shared_ext}$major'
14808   shlibpath_var=LD_LIBRARY_PATH
14809   shlibpath_overrides_runpath=no
14810   hardcode_into_libs=yes
14811   dynamic_linker='NetBSD ld.elf_so'
14812   ;;
14813
14814 knetbsd*-gnu)
14815   version_type=linux
14816   need_lib_prefix=no
14817   need_version=no
14818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14819   soname_spec='${libname}${release}${shared_ext}$major'
14820   shlibpath_var=LD_LIBRARY_PATH
14821   shlibpath_overrides_runpath=no
14822   hardcode_into_libs=yes
14823   dynamic_linker='GNU ld.so'
14824   ;;
14825
14826 netbsd*)
14827   version_type=sunos
14828   need_lib_prefix=no
14829   need_version=no
14830   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14832     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14833     dynamic_linker='NetBSD (a.out) ld.so'
14834   else
14835     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14836     soname_spec='${libname}${release}${shared_ext}$major'
14837     dynamic_linker='NetBSD ld.elf_so'
14838   fi
14839   shlibpath_var=LD_LIBRARY_PATH
14840   shlibpath_overrides_runpath=yes
14841   hardcode_into_libs=yes
14842   ;;
14843
14844 newsos6)
14845   version_type=linux
14846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847   shlibpath_var=LD_LIBRARY_PATH
14848   shlibpath_overrides_runpath=yes
14849   ;;
14850
14851 nto-qnx*)
14852   version_type=linux
14853   need_lib_prefix=no
14854   need_version=no
14855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856   soname_spec='${libname}${release}${shared_ext}$major'
14857   shlibpath_var=LD_LIBRARY_PATH
14858   shlibpath_overrides_runpath=yes
14859   ;;
14860
14861 openbsd*)
14862   version_type=sunos
14863   need_lib_prefix=no
14864   need_version=yes
14865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14866   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14867   shlibpath_var=LD_LIBRARY_PATH
14868   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14869     case $host_os in
14870       openbsd2.[89] | openbsd2.[89].*)
14871         shlibpath_overrides_runpath=no
14872         ;;
14873       *)
14874         shlibpath_overrides_runpath=yes
14875         ;;
14876       esac
14877   else
14878     shlibpath_overrides_runpath=yes
14879   fi
14880   ;;
14881
14882 os2*)
14883   libname_spec='$name'
14884   shrext_cmds=".dll"
14885   need_lib_prefix=no
14886   library_names_spec='$libname${shared_ext} $libname.a'
14887   dynamic_linker='OS/2 ld.exe'
14888   shlibpath_var=LIBPATH
14889   ;;
14890
14891 osf3* | osf4* | osf5*)
14892   version_type=osf
14893   need_lib_prefix=no
14894   need_version=no
14895   soname_spec='${libname}${release}${shared_ext}$major'
14896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897   shlibpath_var=LD_LIBRARY_PATH
14898   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14899   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14900   ;;
14901
14902 sco3.2v5*)
14903   version_type=osf
14904   soname_spec='${libname}${release}${shared_ext}$major'
14905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14906   shlibpath_var=LD_LIBRARY_PATH
14907   ;;
14908
14909 solaris*)
14910   version_type=linux
14911   need_lib_prefix=no
14912   need_version=no
14913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914   soname_spec='${libname}${release}${shared_ext}$major'
14915   shlibpath_var=LD_LIBRARY_PATH
14916   shlibpath_overrides_runpath=yes
14917   hardcode_into_libs=yes
14918   # ldd complains unless libraries are executable
14919   postinstall_cmds='chmod +x $lib'
14920   ;;
14921
14922 sunos4*)
14923   version_type=sunos
14924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14925   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14926   shlibpath_var=LD_LIBRARY_PATH
14927   shlibpath_overrides_runpath=yes
14928   if test "$with_gnu_ld" = yes; then
14929     need_lib_prefix=no
14930   fi
14931   need_version=yes
14932   ;;
14933
14934 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14935   version_type=linux
14936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937   soname_spec='${libname}${release}${shared_ext}$major'
14938   shlibpath_var=LD_LIBRARY_PATH
14939   case $host_vendor in
14940     sni)
14941       shlibpath_overrides_runpath=no
14942       need_lib_prefix=no
14943       export_dynamic_flag_spec='${wl}-Blargedynsym'
14944       runpath_var=LD_RUN_PATH
14945       ;;
14946     siemens)
14947       need_lib_prefix=no
14948       ;;
14949     motorola)
14950       need_lib_prefix=no
14951       need_version=no
14952       shlibpath_overrides_runpath=no
14953       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14954       ;;
14955   esac
14956   ;;
14957
14958 sysv4*MP*)
14959   if test -d /usr/nec ;then
14960     version_type=linux
14961     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14962     soname_spec='$libname${shared_ext}.$major'
14963     shlibpath_var=LD_LIBRARY_PATH
14964   fi
14965   ;;
14966
14967 uts4*)
14968   version_type=linux
14969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970   soname_spec='${libname}${release}${shared_ext}$major'
14971   shlibpath_var=LD_LIBRARY_PATH
14972   ;;
14973
14974 *)
14975   dynamic_linker=no
14976   ;;
14977 esac
14978 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14979 echo "${ECHO_T}$dynamic_linker" >&6
14980 test "$dynamic_linker" = no && can_build_shared=no
14981
14982 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14983 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14984 hardcode_action_F77=
14985 if test -n "$hardcode_libdir_flag_spec_F77" || \
14986    test -n "$runpath_var F77" || \
14987    test "X$hardcode_automatic_F77"="Xyes" ; then
14988
14989   # We can hardcode non-existant directories.
14990   if test "$hardcode_direct_F77" != no &&
14991      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14992      # have to relink, otherwise we might link with an installed library
14993      # when we should be linking with a yet-to-be-installed one
14994      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14995      test "$hardcode_minus_L_F77" != no; then
14996     # Linking always hardcodes the temporary library directory.
14997     hardcode_action_F77=relink
14998   else
14999     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15000     hardcode_action_F77=immediate
15001   fi
15002 else
15003   # We cannot hardcode anything, or else we can only hardcode existing
15004   # directories.
15005   hardcode_action_F77=unsupported
15006 fi
15007 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15008 echo "${ECHO_T}$hardcode_action_F77" >&6
15009
15010 if test "$hardcode_action_F77" = relink; then
15011   # Fast installation is not supported
15012   enable_fast_install=no
15013 elif test "$shlibpath_overrides_runpath" = yes ||
15014      test "$enable_shared" = no; then
15015   # Fast installation is not necessary
15016   enable_fast_install=needless
15017 fi
15018
15019 striplib=
15020 old_striplib=
15021 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15022 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15023 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15024   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15025   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15026   echo "$as_me:$LINENO: result: yes" >&5
15027 echo "${ECHO_T}yes" >&6
15028 else
15029 # FIXME - insert some real tests, host_os isn't really good enough
15030   case $host_os in
15031    darwin*)
15032        if test -n "$STRIP" ; then
15033          striplib="$STRIP -x"
15034          echo "$as_me:$LINENO: result: yes" >&5
15035 echo "${ECHO_T}yes" >&6
15036        else
15037   echo "$as_me:$LINENO: result: no" >&5
15038 echo "${ECHO_T}no" >&6
15039 fi
15040        ;;
15041    *)
15042   echo "$as_me:$LINENO: result: no" >&5
15043 echo "${ECHO_T}no" >&6
15044     ;;
15045   esac
15046 fi
15047
15048
15049
15050 # The else clause should only fire when bootstrapping the
15051 # libtool distribution, otherwise you forgot to ship ltmain.sh
15052 # with your package, and you will get complaints that there are
15053 # no rules to generate ltmain.sh.
15054 if test -f "$ltmain"; then
15055   # See if we are running on zsh, and set the options which allow our commands through
15056   # without removal of \ escapes.
15057   if test -n "${ZSH_VERSION+set}" ; then
15058     setopt NO_GLOB_SUBST
15059   fi
15060   # Now quote all the things that may contain metacharacters while being
15061   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15062   # variables and quote the copies for generation of the libtool script.
15063   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15064     SED SHELL STRIP \
15065     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15066     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15067     deplibs_check_method reload_flag reload_cmds need_locks \
15068     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15069     lt_cv_sys_global_symbol_to_c_name_address \
15070     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15071     old_postinstall_cmds old_postuninstall_cmds \
15072     compiler_F77 \
15073     CC_F77 \
15074     LD_F77 \
15075     lt_prog_compiler_wl_F77 \
15076     lt_prog_compiler_pic_F77 \
15077     lt_prog_compiler_static_F77 \
15078     lt_prog_compiler_no_builtin_flag_F77 \
15079     export_dynamic_flag_spec_F77 \
15080     thread_safe_flag_spec_F77 \
15081     whole_archive_flag_spec_F77 \
15082     enable_shared_with_static_runtimes_F77 \
15083     old_archive_cmds_F77 \
15084     old_archive_from_new_cmds_F77 \
15085     predep_objects_F77 \
15086     postdep_objects_F77 \
15087     predeps_F77 \
15088     postdeps_F77 \
15089     compiler_lib_search_path_F77 \
15090     archive_cmds_F77 \
15091     archive_expsym_cmds_F77 \
15092     postinstall_cmds_F77 \
15093     postuninstall_cmds_F77 \
15094     old_archive_from_expsyms_cmds_F77 \
15095     allow_undefined_flag_F77 \
15096     no_undefined_flag_F77 \
15097     export_symbols_cmds_F77 \
15098     hardcode_libdir_flag_spec_F77 \
15099     hardcode_libdir_flag_spec_ld_F77 \
15100     hardcode_libdir_separator_F77 \
15101     hardcode_automatic_F77 \
15102     module_cmds_F77 \
15103     module_expsym_cmds_F77 \
15104     lt_cv_prog_compiler_c_o_F77 \
15105     exclude_expsyms_F77 \
15106     include_expsyms_F77; do
15107
15108     case $var in
15109     old_archive_cmds_F77 | \
15110     old_archive_from_new_cmds_F77 | \
15111     archive_cmds_F77 | \
15112     archive_expsym_cmds_F77 | \
15113     module_cmds_F77 | \
15114     module_expsym_cmds_F77 | \
15115     old_archive_from_expsyms_cmds_F77 | \
15116     export_symbols_cmds_F77 | \
15117     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15118     postinstall_cmds | postuninstall_cmds | \
15119     old_postinstall_cmds | old_postuninstall_cmds | \
15120     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15121       # Double-quote double-evaled strings.
15122       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15123       ;;
15124     *)
15125       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15126       ;;
15127     esac
15128   done
15129
15130   case $lt_echo in
15131   *'\$0 --fallback-echo"')
15132     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15133     ;;
15134   esac
15135
15136 cfgfile="$ofile"
15137
15138   cat <<__EOF__ >> "$cfgfile"
15139 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15140
15141 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15142
15143 # Shell to use when invoking shell scripts.
15144 SHELL=$lt_SHELL
15145
15146 # Whether or not to build shared libraries.
15147 build_libtool_libs=$enable_shared
15148
15149 # Whether or not to build static libraries.
15150 build_old_libs=$enable_static
15151
15152 # Whether or not to add -lc for building shared libraries.
15153 build_libtool_need_lc=$archive_cmds_need_lc_F77
15154
15155 # Whether or not to disallow shared libs when runtime libs are static
15156 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15157
15158 # Whether or not to optimize for fast installation.
15159 fast_install=$enable_fast_install
15160
15161 # The host system.
15162 host_alias=$host_alias
15163 host=$host
15164
15165 # An echo program that does not interpret backslashes.
15166 echo=$lt_echo
15167
15168 # The archiver.
15169 AR=$lt_AR
15170 AR_FLAGS=$lt_AR_FLAGS
15171
15172 # A C compiler.
15173 LTCC=$lt_LTCC
15174
15175 # A language-specific compiler.
15176 CC=$lt_compiler_F77
15177
15178 # Is the compiler the GNU C compiler?
15179 with_gcc=$GCC_F77
15180
15181 # An ERE matcher.
15182 EGREP=$lt_EGREP
15183
15184 # The linker used to build libraries.
15185 LD=$lt_LD_F77
15186
15187 # Whether we need hard or soft links.
15188 LN_S=$lt_LN_S
15189
15190 # A BSD-compatible nm program.
15191 NM=$lt_NM
15192
15193 # A symbol stripping program
15194 STRIP=$lt_STRIP
15195
15196 # Used to examine libraries when file_magic_cmd begins "file"
15197 MAGIC_CMD=$MAGIC_CMD
15198
15199 # Used on cygwin: DLL creation program.
15200 DLLTOOL="$DLLTOOL"
15201
15202 # Used on cygwin: object dumper.
15203 OBJDUMP="$OBJDUMP"
15204
15205 # Used on cygwin: assembler.
15206 AS="$AS"
15207
15208 # The name of the directory that contains temporary libtool files.
15209 objdir=$objdir
15210
15211 # How to create reloadable object files.
15212 reload_flag=$lt_reload_flag
15213 reload_cmds=$lt_reload_cmds
15214
15215 # How to pass a linker flag through the compiler.
15216 wl=$lt_lt_prog_compiler_wl_F77
15217
15218 # Object file suffix (normally "o").
15219 objext="$ac_objext"
15220
15221 # Old archive suffix (normally "a").
15222 libext="$libext"
15223
15224 # Shared library suffix (normally ".so").
15225 shrext_cmds='$shrext_cmds'
15226
15227 # Executable file suffix (normally "").
15228 exeext="$exeext"
15229
15230 # Additional compiler flags for building library objects.
15231 pic_flag=$lt_lt_prog_compiler_pic_F77
15232 pic_mode=$pic_mode
15233
15234 # What is the maximum length of a command?
15235 max_cmd_len=$lt_cv_sys_max_cmd_len
15236
15237 # Does compiler simultaneously support -c and -o options?
15238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15239
15240 # Must we lock files when doing compilation ?
15241 need_locks=$lt_need_locks
15242
15243 # Do we need the lib prefix for modules?
15244 need_lib_prefix=$need_lib_prefix
15245
15246 # Do we need a version for libraries?
15247 need_version=$need_version
15248
15249 # Whether dlopen is supported.
15250 dlopen_support=$enable_dlopen
15251
15252 # Whether dlopen of programs is supported.
15253 dlopen_self=$enable_dlopen_self
15254
15255 # Whether dlopen of statically linked programs is supported.
15256 dlopen_self_static=$enable_dlopen_self_static
15257
15258 # Compiler flag to prevent dynamic linking.
15259 link_static_flag=$lt_lt_prog_compiler_static_F77
15260
15261 # Compiler flag to turn off builtin functions.
15262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15263
15264 # Compiler flag to allow reflexive dlopens.
15265 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15266
15267 # Compiler flag to generate shared objects directly from archives.
15268 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15269
15270 # Compiler flag to generate thread-safe objects.
15271 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15272
15273 # Library versioning type.
15274 version_type=$version_type
15275
15276 # Format of library name prefix.
15277 libname_spec=$lt_libname_spec
15278
15279 # List of archive names.  First name is the real one, the rest are links.
15280 # The last name is the one that the linker finds with -lNAME.
15281 library_names_spec=$lt_library_names_spec
15282
15283 # The coded name of the library, if different from the real name.
15284 soname_spec=$lt_soname_spec
15285
15286 # Commands used to build and install an old-style archive.
15287 RANLIB=$lt_RANLIB
15288 old_archive_cmds=$lt_old_archive_cmds_F77
15289 old_postinstall_cmds=$lt_old_postinstall_cmds
15290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15291
15292 # Create an old-style archive from a shared archive.
15293 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15294
15295 # Create a temporary old-style archive to link instead of a shared archive.
15296 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15297
15298 # Commands used to build and install a shared archive.
15299 archive_cmds=$lt_archive_cmds_F77
15300 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15301 postinstall_cmds=$lt_postinstall_cmds
15302 postuninstall_cmds=$lt_postuninstall_cmds
15303
15304 # Commands used to build a loadable module (assumed same as above if empty)
15305 module_cmds=$lt_module_cmds_F77
15306 module_expsym_cmds=$lt_module_expsym_cmds_F77
15307
15308 # Commands to strip libraries.
15309 old_striplib=$lt_old_striplib
15310 striplib=$lt_striplib
15311
15312 # Dependencies to place before the objects being linked to create a
15313 # shared library.
15314 predep_objects=$lt_predep_objects_F77
15315
15316 # Dependencies to place after the objects being linked to create a
15317 # shared library.
15318 postdep_objects=$lt_postdep_objects_F77
15319
15320 # Dependencies to place before the objects being linked to create a
15321 # shared library.
15322 predeps=$lt_predeps_F77
15323
15324 # Dependencies to place after the objects being linked to create a
15325 # shared library.
15326 postdeps=$lt_postdeps_F77
15327
15328 # The library search path used internally by the compiler when linking
15329 # a shared library.
15330 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15331
15332 # Method to check whether dependent libraries are shared objects.
15333 deplibs_check_method=$lt_deplibs_check_method
15334
15335 # Command to use when deplibs_check_method == file_magic.
15336 file_magic_cmd=$lt_file_magic_cmd
15337
15338 # Flag that allows shared libraries with undefined symbols to be built.
15339 allow_undefined_flag=$lt_allow_undefined_flag_F77
15340
15341 # Flag that forces no undefined symbols.
15342 no_undefined_flag=$lt_no_undefined_flag_F77
15343
15344 # Commands used to finish a libtool library installation in a directory.
15345 finish_cmds=$lt_finish_cmds
15346
15347 # Same as above, but a single script fragment to be evaled but not shown.
15348 finish_eval=$lt_finish_eval
15349
15350 # Take the output of nm and produce a listing of raw symbols and C names.
15351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15352
15353 # Transform the output of nm in a proper C declaration
15354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15355
15356 # Transform the output of nm in a C name address pair
15357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15358
15359 # This is the shared library runtime path variable.
15360 runpath_var=$runpath_var
15361
15362 # This is the shared library path variable.
15363 shlibpath_var=$shlibpath_var
15364
15365 # Is shlibpath searched before the hard-coded library search path?
15366 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15367
15368 # How to hardcode a shared library path into an executable.
15369 hardcode_action=$hardcode_action_F77
15370
15371 # Whether we should hardcode library paths into libraries.
15372 hardcode_into_libs=$hardcode_into_libs
15373
15374 # Flag to hardcode \$libdir into a binary during linking.
15375 # This must work even if \$libdir does not exist.
15376 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15377
15378 # If ld is used when linking, flag to hardcode \$libdir into
15379 # a binary during linking. This must work even if \$libdir does
15380 # not exist.
15381 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15382
15383 # Whether we need a single -rpath flag with a separated argument.
15384 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15385
15386 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15387 # resulting binary.
15388 hardcode_direct=$hardcode_direct_F77
15389
15390 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15391 # resulting binary.
15392 hardcode_minus_L=$hardcode_minus_L_F77
15393
15394 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15395 # the resulting binary.
15396 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15397
15398 # Set to yes if building a shared library automatically hardcodes DIR into the library
15399 # and all subsequent libraries and executables linked against it.
15400 hardcode_automatic=$hardcode_automatic_F77
15401
15402 # Variables whose values should be saved in libtool wrapper scripts and
15403 # restored at relink time.
15404 variables_saved_for_relink="$variables_saved_for_relink"
15405
15406 # Whether libtool must link a program against all its dependency libraries.
15407 link_all_deplibs=$link_all_deplibs_F77
15408
15409 # Compile-time system search path for libraries
15410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15411
15412 # Run-time system search path for libraries
15413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15414
15415 # Fix the shell variable \$srcfile for the compiler.
15416 fix_srcfile_path="$fix_srcfile_path_F77"
15417
15418 # Set to yes if exported symbols are required.
15419 always_export_symbols=$always_export_symbols_F77
15420
15421 # The commands to list exported symbols.
15422 export_symbols_cmds=$lt_export_symbols_cmds_F77
15423
15424 # The commands to extract the exported symbol list from a shared archive.
15425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15426
15427 # Symbols that should not be listed in the preloaded symbols.
15428 exclude_expsyms=$lt_exclude_expsyms_F77
15429
15430 # Symbols that must always be exported.
15431 include_expsyms=$lt_include_expsyms_F77
15432
15433 # ### END LIBTOOL TAG CONFIG: $tagname
15434
15435 __EOF__
15436
15437
15438 else
15439   # If there is no Makefile yet, we rely on a make rule to execute
15440   # `config.status --recheck' to rerun these tests and create the
15441   # libtool script then.
15442   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15443   if test -f "$ltmain_in"; then
15444     test -f Makefile && make "$ltmain"
15445   fi
15446 fi
15447
15448
15449 ac_ext=c
15450 ac_cpp='$CPP $CPPFLAGS'
15451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15454
15455 CC="$lt_save_CC"
15456
15457         else
15458           tagname=""
15459         fi
15460         ;;
15461
15462       GCJ)
15463         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15464
15465
15466
15467 # Source file extension for Java test sources.
15468 ac_ext=java
15469
15470 # Object file extension for compiled Java test sources.
15471 objext=o
15472 objext_GCJ=$objext
15473
15474 # Code to be used in simple compile tests
15475 lt_simple_compile_test_code="class foo {}\n"
15476
15477 # Code to be used in simple link tests
15478 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15479
15480 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15481
15482 # If no C compiler was specified, use CC.
15483 LTCC=${LTCC-"$CC"}
15484
15485 # Allow CC to be a program name with arguments.
15486 compiler=$CC
15487
15488
15489 # Allow CC to be a program name with arguments.
15490 lt_save_CC="$CC"
15491 CC=${GCJ-"gcj"}
15492 compiler=$CC
15493 compiler_GCJ=$CC
15494
15495 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15496 archive_cmds_need_lc_GCJ=no
15497
15498
15499 lt_prog_compiler_no_builtin_flag_GCJ=
15500
15501 if test "$GCC" = yes; then
15502   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15503
15504
15505 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15506 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15507 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15508   echo $ECHO_N "(cached) $ECHO_C" >&6
15509 else
15510   lt_cv_prog_compiler_rtti_exceptions=no
15511   ac_outfile=conftest.$ac_objext
15512    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15513    lt_compiler_flag="-fno-rtti -fno-exceptions"
15514    # Insert the option either (1) after the last *FLAGS variable, or
15515    # (2) before a word containing "conftest.", or (3) at the end.
15516    # Note that $ac_compile itself does not contain backslashes and begins
15517    # with a dollar sign (not a hyphen), so the echo should work correctly.
15518    # The option is referenced via a variable to avoid confusing sed.
15519    lt_compile=`echo "$ac_compile" | $SED \
15520    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15521    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15522    -e 's:$: $lt_compiler_flag:'`
15523    (eval echo "\"\$as_me:15523: $lt_compile\"" >&5)
15524    (eval "$lt_compile" 2>conftest.err)
15525    ac_status=$?
15526    cat conftest.err >&5
15527    echo "$as_me:15527: \$? = $ac_status" >&5
15528    if (exit $ac_status) && test -s "$ac_outfile"; then
15529      # The compiler can only warn and ignore the option if not recognized
15530      # So say no if there are warnings
15531      if test ! -s conftest.err; then
15532        lt_cv_prog_compiler_rtti_exceptions=yes
15533      fi
15534    fi
15535    $rm conftest*
15536
15537 fi
15538 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15539 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15540
15541 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15542     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15543 else
15544     :
15545 fi
15546
15547 fi
15548
15549 lt_prog_compiler_wl_GCJ=
15550 lt_prog_compiler_pic_GCJ=
15551 lt_prog_compiler_static_GCJ=
15552
15553 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15554 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15555
15556   if test "$GCC" = yes; then
15557     lt_prog_compiler_wl_GCJ='-Wl,'
15558     lt_prog_compiler_static_GCJ='-static'
15559
15560     case $host_os in
15561       aix*)
15562       # All AIX code is PIC.
15563       if test "$host_cpu" = ia64; then
15564         # AIX 5 now supports IA64 processor
15565         lt_prog_compiler_static_GCJ='-Bstatic'
15566       fi
15567       ;;
15568
15569     amigaos*)
15570       # FIXME: we need at least 68020 code to build shared libraries, but
15571       # adding the `-m68020' flag to GCC prevents building anything better,
15572       # like `-m68040'.
15573       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15574       ;;
15575
15576     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15577       # PIC is the default for these OSes.
15578       ;;
15579
15580     mingw* | pw32* | os2*)
15581       # This hack is so that the source file can tell whether it is being
15582       # built for inclusion in a dll (and should export symbols for example).
15583       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15584       ;;
15585
15586     darwin* | rhapsody*)
15587       # PIC is the default on this platform
15588       # Common symbols not allowed in MH_DYLIB files
15589       lt_prog_compiler_pic_GCJ='-fno-common'
15590       ;;
15591
15592     msdosdjgpp*)
15593       # Just because we use GCC doesn't mean we suddenly get shared libraries
15594       # on systems that don't support them.
15595       lt_prog_compiler_can_build_shared_GCJ=no
15596       enable_shared=no
15597       ;;
15598
15599     sysv4*MP*)
15600       if test -d /usr/nec; then
15601         lt_prog_compiler_pic_GCJ=-Kconform_pic
15602       fi
15603       ;;
15604
15605     hpux*)
15606       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15607       # not for PA HP-UX.
15608       case "$host_cpu" in
15609       hppa*64*|ia64*)
15610         # +Z the default
15611         ;;
15612       *)
15613         lt_prog_compiler_pic_GCJ='-fPIC'
15614         ;;
15615       esac
15616       ;;
15617
15618     *)
15619       lt_prog_compiler_pic_GCJ='-fPIC'
15620       ;;
15621     esac
15622   else
15623     # PORTME Check for flag to pass linker flags through the system compiler.
15624     case $host_os in
15625     aix*)
15626       lt_prog_compiler_wl_GCJ='-Wl,'
15627       if test "$host_cpu" = ia64; then
15628         # AIX 5 now supports IA64 processor
15629         lt_prog_compiler_static_GCJ='-Bstatic'
15630       else
15631         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15632       fi
15633       ;;
15634
15635     mingw* | pw32* | os2*)
15636       # This hack is so that the source file can tell whether it is being
15637       # built for inclusion in a dll (and should export symbols for example).
15638       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15639       ;;
15640
15641     hpux9* | hpux10* | hpux11*)
15642       lt_prog_compiler_wl_GCJ='-Wl,'
15643       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15644       # not for PA HP-UX.
15645       case "$host_cpu" in
15646       hppa*64*|ia64*)
15647         # +Z the default
15648         ;;
15649       *)
15650         lt_prog_compiler_pic_GCJ='+Z'
15651         ;;
15652       esac
15653       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15654       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15655       ;;
15656
15657     irix5* | irix6* | nonstopux*)
15658       lt_prog_compiler_wl_GCJ='-Wl,'
15659       # PIC (with -KPIC) is the default.
15660       lt_prog_compiler_static_GCJ='-non_shared'
15661       ;;
15662
15663     newsos6)
15664       lt_prog_compiler_pic_GCJ='-KPIC'
15665       lt_prog_compiler_static_GCJ='-Bstatic'
15666       ;;
15667
15668     linux*)
15669       case $CC in
15670       icc* | ecc*)
15671         lt_prog_compiler_wl_GCJ='-Wl,'
15672         lt_prog_compiler_pic_GCJ='-KPIC'
15673         lt_prog_compiler_static_GCJ='-static'
15674         ;;
15675       ccc*)
15676         lt_prog_compiler_wl_GCJ='-Wl,'
15677         # All Alpha code is PIC.
15678         lt_prog_compiler_static_GCJ='-non_shared'
15679         ;;
15680       esac
15681       ;;
15682
15683     osf3* | osf4* | osf5*)
15684       lt_prog_compiler_wl_GCJ='-Wl,'
15685       # All OSF/1 code is PIC.
15686       lt_prog_compiler_static_GCJ='-non_shared'
15687       ;;
15688
15689     sco3.2v5*)
15690       lt_prog_compiler_pic_GCJ='-Kpic'
15691       lt_prog_compiler_static_GCJ='-dn'
15692       ;;
15693
15694     solaris*)
15695       lt_prog_compiler_wl_GCJ='-Wl,'
15696       lt_prog_compiler_pic_GCJ='-KPIC'
15697       lt_prog_compiler_static_GCJ='-Bstatic'
15698       ;;
15699
15700     sunos4*)
15701       lt_prog_compiler_wl_GCJ='-Qoption ld '
15702       lt_prog_compiler_pic_GCJ='-PIC'
15703       lt_prog_compiler_static_GCJ='-Bstatic'
15704       ;;
15705
15706     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15707       lt_prog_compiler_wl_GCJ='-Wl,'
15708       lt_prog_compiler_pic_GCJ='-KPIC'
15709       lt_prog_compiler_static_GCJ='-Bstatic'
15710       ;;
15711
15712     sysv4*MP*)
15713       if test -d /usr/nec ;then
15714         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15715         lt_prog_compiler_static_GCJ='-Bstatic'
15716       fi
15717       ;;
15718
15719     uts4*)
15720       lt_prog_compiler_pic_GCJ='-pic'
15721       lt_prog_compiler_static_GCJ='-Bstatic'
15722       ;;
15723
15724     *)
15725       lt_prog_compiler_can_build_shared_GCJ=no
15726       ;;
15727     esac
15728   fi
15729
15730 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15731 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15732
15733 #
15734 # Check to make sure the PIC flag actually works.
15735 #
15736 if test -n "$lt_prog_compiler_pic_GCJ"; then
15737
15738 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15739 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15740 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15741   echo $ECHO_N "(cached) $ECHO_C" >&6
15742 else
15743   lt_prog_compiler_pic_works_GCJ=no
15744   ac_outfile=conftest.$ac_objext
15745    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15746    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15747    # Insert the option either (1) after the last *FLAGS variable, or
15748    # (2) before a word containing "conftest.", or (3) at the end.
15749    # Note that $ac_compile itself does not contain backslashes and begins
15750    # with a dollar sign (not a hyphen), so the echo should work correctly.
15751    # The option is referenced via a variable to avoid confusing sed.
15752    lt_compile=`echo "$ac_compile" | $SED \
15753    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15754    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15755    -e 's:$: $lt_compiler_flag:'`
15756    (eval echo "\"\$as_me:15756: $lt_compile\"" >&5)
15757    (eval "$lt_compile" 2>conftest.err)
15758    ac_status=$?
15759    cat conftest.err >&5
15760    echo "$as_me:15760: \$? = $ac_status" >&5
15761    if (exit $ac_status) && test -s "$ac_outfile"; then
15762      # The compiler can only warn and ignore the option if not recognized
15763      # So say no if there are warnings
15764      if test ! -s conftest.err; then
15765        lt_prog_compiler_pic_works_GCJ=yes
15766      fi
15767    fi
15768    $rm conftest*
15769
15770 fi
15771 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15772 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15773
15774 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15775     case $lt_prog_compiler_pic_GCJ in
15776      "" | " "*) ;;
15777      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15778      esac
15779 else
15780     lt_prog_compiler_pic_GCJ=
15781      lt_prog_compiler_can_build_shared_GCJ=no
15782 fi
15783
15784 fi
15785 case "$host_os" in
15786   # For platforms which do not support PIC, -DPIC is meaningless:
15787   *djgpp*)
15788     lt_prog_compiler_pic_GCJ=
15789     ;;
15790   *)
15791     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15792     ;;
15793 esac
15794
15795 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15796 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15797 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15798   echo $ECHO_N "(cached) $ECHO_C" >&6
15799 else
15800   lt_cv_prog_compiler_c_o_GCJ=no
15801    $rm -r conftest 2>/dev/null
15802    mkdir conftest
15803    cd conftest
15804    mkdir out
15805    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15806
15807    lt_compiler_flag="-o out/conftest2.$ac_objext"
15808    # Insert the option either (1) after the last *FLAGS variable, or
15809    # (2) before a word containing "conftest.", or (3) at the end.
15810    # Note that $ac_compile itself does not contain backslashes and begins
15811    # with a dollar sign (not a hyphen), so the echo should work correctly.
15812    lt_compile=`echo "$ac_compile" | $SED \
15813    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15814    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15815    -e 's:$: $lt_compiler_flag:'`
15816    (eval echo "\"\$as_me:15816: $lt_compile\"" >&5)
15817    (eval "$lt_compile" 2>out/conftest.err)
15818    ac_status=$?
15819    cat out/conftest.err >&5
15820    echo "$as_me:15820: \$? = $ac_status" >&5
15821    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15822    then
15823      # The compiler can only warn and ignore the option if not recognized
15824      # So say no if there are warnings
15825      if test ! -s out/conftest.err; then
15826        lt_cv_prog_compiler_c_o_GCJ=yes
15827      fi
15828    fi
15829    chmod u+w .
15830    $rm conftest*
15831    # SGI C++ compiler will create directory out/ii_files/ for
15832    # template instantiation
15833    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15834    $rm out/* && rmdir out
15835    cd ..
15836    rmdir conftest
15837    $rm conftest*
15838
15839 fi
15840 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15841 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15842
15843
15844 hard_links="nottested"
15845 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15846   # do not overwrite the value of need_locks provided by the user
15847   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15848 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15849   hard_links=yes
15850   $rm conftest*
15851   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15852   touch conftest.a
15853   ln conftest.a conftest.b 2>&5 || hard_links=no
15854   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15855   echo "$as_me:$LINENO: result: $hard_links" >&5
15856 echo "${ECHO_T}$hard_links" >&6
15857   if test "$hard_links" = no; then
15858     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15859 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15860     need_locks=warn
15861   fi
15862 else
15863   need_locks=no
15864 fi
15865
15866 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15867 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15868
15869   runpath_var=
15870   allow_undefined_flag_GCJ=
15871   enable_shared_with_static_runtimes_GCJ=no
15872   archive_cmds_GCJ=
15873   archive_expsym_cmds_GCJ=
15874   old_archive_From_new_cmds_GCJ=
15875   old_archive_from_expsyms_cmds_GCJ=
15876   export_dynamic_flag_spec_GCJ=
15877   whole_archive_flag_spec_GCJ=
15878   thread_safe_flag_spec_GCJ=
15879   hardcode_libdir_flag_spec_GCJ=
15880   hardcode_libdir_flag_spec_ld_GCJ=
15881   hardcode_libdir_separator_GCJ=
15882   hardcode_direct_GCJ=no
15883   hardcode_minus_L_GCJ=no
15884   hardcode_shlibpath_var_GCJ=unsupported
15885   link_all_deplibs_GCJ=unknown
15886   hardcode_automatic_GCJ=no
15887   module_cmds_GCJ=
15888   module_expsym_cmds_GCJ=
15889   always_export_symbols_GCJ=no
15890   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15891   # include_expsyms should be a list of space-separated symbols to be *always*
15892   # included in the symbol list
15893   include_expsyms_GCJ=
15894   # exclude_expsyms can be an extended regexp of symbols to exclude
15895   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15896   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15897   # as well as any symbol that contains `d'.
15898   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15899   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15900   # platforms (ab)use it in PIC code, but their linkers get confused if
15901   # the symbol is explicitly referenced.  Since portable code cannot
15902   # rely on this symbol name, it's probably fine to never include it in
15903   # preloaded symbol tables.
15904   extract_expsyms_cmds=
15905
15906   case $host_os in
15907   cygwin* | mingw* | pw32*)
15908     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15909     # When not using gcc, we currently assume that we are using
15910     # Microsoft Visual C++.
15911     if test "$GCC" != yes; then
15912       with_gnu_ld=no
15913     fi
15914     ;;
15915   openbsd*)
15916     with_gnu_ld=no
15917     ;;
15918   esac
15919
15920   ld_shlibs_GCJ=yes
15921   if test "$with_gnu_ld" = yes; then
15922     # If archive_cmds runs LD, not CC, wlarc should be empty
15923     wlarc='${wl}'
15924
15925     # See if GNU ld supports shared libraries.
15926     case $host_os in
15927     aix3* | aix4* | aix5*)
15928       # On AIX/PPC, the GNU linker is very broken
15929       if test "$host_cpu" != ia64; then
15930         ld_shlibs_GCJ=no
15931         cat <<EOF 1>&2
15932
15933 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15934 *** to be unable to reliably create shared libraries on AIX.
15935 *** Therefore, libtool is disabling shared libraries support.  If you
15936 *** really care for shared libraries, you may want to modify your PATH
15937 *** so that a non-GNU linker is found, and then restart.
15938
15939 EOF
15940       fi
15941       ;;
15942
15943     amigaos*)
15944       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15945       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15946       hardcode_minus_L_GCJ=yes
15947
15948       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15949       # that the semantics of dynamic libraries on AmigaOS, at least up
15950       # to version 4, is to share data among multiple programs linked
15951       # with the same dynamic library.  Since this doesn't match the
15952       # behavior of shared libraries on other platforms, we can't use
15953       # them.
15954       ld_shlibs_GCJ=no
15955       ;;
15956
15957     beos*)
15958       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15959         allow_undefined_flag_GCJ=unsupported
15960         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15961         # support --undefined.  This deserves some investigation.  FIXME
15962         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15963       else
15964         ld_shlibs_GCJ=no
15965       fi
15966       ;;
15967
15968     cygwin* | mingw* | pw32*)
15969       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15970       # as there is no search path for DLLs.
15971       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15972       allow_undefined_flag_GCJ=unsupported
15973       always_export_symbols_GCJ=no
15974       enable_shared_with_static_runtimes_GCJ=yes
15975       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15976
15977       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15978         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15979         # If the export-symbols file already is a .def file (1st line
15980         # is EXPORTS), use it as is; otherwise, prepend...
15981         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15982           cp $export_symbols $output_objdir/$soname.def;
15983         else
15984           echo EXPORTS > $output_objdir/$soname.def;
15985           cat $export_symbols >> $output_objdir/$soname.def;
15986         fi~
15987         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15988       else
15989         ld_shlibs=no
15990       fi
15991       ;;
15992
15993     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15994       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15995         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15996         wlarc=
15997       else
15998         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15999         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16000       fi
16001       ;;
16002
16003     solaris* | sysv5*)
16004       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16005         ld_shlibs_GCJ=no
16006         cat <<EOF 1>&2
16007
16008 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16009 *** create shared libraries on Solaris systems.  Therefore, libtool
16010 *** is disabling shared libraries support.  We urge you to upgrade GNU
16011 *** binutils to release 2.9.1 or newer.  Another option is to modify
16012 *** your PATH or compiler configuration so that the native linker is
16013 *** used, and then restart.
16014
16015 EOF
16016       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16017         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16018         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16019       else
16020         ld_shlibs_GCJ=no
16021       fi
16022       ;;
16023
16024     sunos4*)
16025       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16026       wlarc=
16027       hardcode_direct_GCJ=yes
16028       hardcode_shlibpath_var_GCJ=no
16029       ;;
16030
16031   linux*)
16032     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16033         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16034         archive_cmds_GCJ="$tmp_archive_cmds"
16035       supports_anon_versioning=no
16036       case `$LD -v 2>/dev/null` in
16037         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16038         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16039         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16040         *\ 2.11.*) ;; # other 2.11 versions
16041         *) supports_anon_versioning=yes ;;
16042       esac
16043       if test $supports_anon_versioning = yes; then
16044         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16045 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16046 $echo "local: *; };" >> $output_objdir/$libname.ver~
16047         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16048       else
16049         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16050       fi
16051       link_all_deplibs_GCJ=no
16052     else
16053       ld_shlibs_GCJ=no
16054     fi
16055     ;;
16056
16057     *)
16058       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16059         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16060         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16061       else
16062         ld_shlibs_GCJ=no
16063       fi
16064       ;;
16065     esac
16066
16067     if test "$ld_shlibs_GCJ" = yes; then
16068       runpath_var=LD_RUN_PATH
16069       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16070       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16071       # ancient GNU ld didn't support --whole-archive et. al.
16072       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16073         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16074       else
16075         whole_archive_flag_spec_GCJ=
16076       fi
16077     fi
16078   else
16079     # PORTME fill in a description of your system's linker (not GNU ld)
16080     case $host_os in
16081     aix3*)
16082       allow_undefined_flag_GCJ=unsupported
16083       always_export_symbols_GCJ=yes
16084       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16085       # Note: this linker hardcodes the directories in LIBPATH if there
16086       # are no directories specified by -L.
16087       hardcode_minus_L_GCJ=yes
16088       if test "$GCC" = yes && test -z "$link_static_flag"; then
16089         # Neither direct hardcoding nor static linking is supported with a
16090         # broken collect2.
16091         hardcode_direct_GCJ=unsupported
16092       fi
16093       ;;
16094
16095     aix4* | aix5*)
16096       if test "$host_cpu" = ia64; then
16097         # On IA64, the linker does run time linking by default, so we don't
16098         # have to do anything special.
16099         aix_use_runtimelinking=no
16100         exp_sym_flag='-Bexport'
16101         no_entry_flag=""
16102       else
16103         # If we're using GNU nm, then we don't want the "-C" option.
16104         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16105         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16106           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16107         else
16108           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16109         fi
16110         aix_use_runtimelinking=no
16111
16112         # Test if we are trying to use run time linking or normal
16113         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16114         # need to do runtime linking.
16115         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16116           for ld_flag in $LDFLAGS; do
16117           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16118             aix_use_runtimelinking=yes
16119             break
16120           fi
16121           done
16122         esac
16123
16124         exp_sym_flag='-bexport'
16125         no_entry_flag='-bnoentry'
16126       fi
16127
16128       # When large executables or shared objects are built, AIX ld can
16129       # have problems creating the table of contents.  If linking a library
16130       # or program results in "error TOC overflow" add -mminimal-toc to
16131       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16132       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16133
16134       archive_cmds_GCJ=''
16135       hardcode_direct_GCJ=yes
16136       hardcode_libdir_separator_GCJ=':'
16137       link_all_deplibs_GCJ=yes
16138
16139       if test "$GCC" = yes; then
16140         case $host_os in aix4.012|aix4.012.*)
16141         # We only want to do this on AIX 4.2 and lower, the check
16142         # below for broken collect2 doesn't work under 4.3+
16143           collect2name=`${CC} -print-prog-name=collect2`
16144           if test -f "$collect2name" && \
16145            strings "$collect2name" | grep resolve_lib_name >/dev/null
16146           then
16147           # We have reworked collect2
16148           hardcode_direct_GCJ=yes
16149           else
16150           # We have old collect2
16151           hardcode_direct_GCJ=unsupported
16152           # It fails to find uninstalled libraries when the uninstalled
16153           # path is not listed in the libpath.  Setting hardcode_minus_L
16154           # to unsupported forces relinking
16155           hardcode_minus_L_GCJ=yes
16156           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16157           hardcode_libdir_separator_GCJ=
16158           fi
16159         esac
16160         shared_flag='-shared'
16161       else
16162         # not using gcc
16163         if test "$host_cpu" = ia64; then
16164         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16165         # chokes on -Wl,-G. The following line is correct:
16166           shared_flag='-G'
16167         else
16168         if test "$aix_use_runtimelinking" = yes; then
16169             shared_flag='${wl}-G'
16170           else
16171             shared_flag='${wl}-bM:SRE'
16172         fi
16173         fi
16174       fi
16175
16176       # It seems that -bexpall does not export symbols beginning with
16177       # underscore (_), so it is better to generate a list of symbols to export.
16178       always_export_symbols_GCJ=yes
16179       if test "$aix_use_runtimelinking" = yes; then
16180         # Warning - without using the other runtime loading flags (-brtl),
16181         # -berok will link without error, but may produce a broken library.
16182         allow_undefined_flag_GCJ='-berok'
16183        # Determine the default libpath from the value encoded in an empty executable.
16184        cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h.  */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h.  */
16190
16191 int
16192 main ()
16193 {
16194
16195   ;
16196   return 0;
16197 }
16198 _ACEOF
16199 rm -f conftest.$ac_objext conftest$ac_exeext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16201   (eval $ac_link) 2>conftest.er1
16202   ac_status=$?
16203   grep -v '^ *+' conftest.er1 >conftest.err
16204   rm -f conftest.er1
16205   cat conftest.err >&5
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); } &&
16208          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210   (eval $ac_try) 2>&5
16211   ac_status=$?
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); }; } &&
16214          { ac_try='test -s conftest$ac_exeext'
16215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216   (eval $ac_try) 2>&5
16217   ac_status=$?
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); }; }; then
16220
16221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16222 }'`
16223 # Check for a 64-bit object if we didn't find anything.
16224 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16225 }'`; fi
16226 else
16227   echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16229
16230 fi
16231 rm -f conftest.err conftest.$ac_objext \
16232       conftest$ac_exeext conftest.$ac_ext
16233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16234
16235        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16236         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16237        else
16238         if test "$host_cpu" = ia64; then
16239           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16240           allow_undefined_flag_GCJ="-z nodefs"
16241           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16242         else
16243          # Determine the default libpath from the value encoded in an empty executable.
16244          cat >conftest.$ac_ext <<_ACEOF
16245 /* confdefs.h.  */
16246 _ACEOF
16247 cat confdefs.h >>conftest.$ac_ext
16248 cat >>conftest.$ac_ext <<_ACEOF
16249 /* end confdefs.h.  */
16250
16251 int
16252 main ()
16253 {
16254
16255   ;
16256   return 0;
16257 }
16258 _ACEOF
16259 rm -f conftest.$ac_objext conftest$ac_exeext
16260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16261   (eval $ac_link) 2>conftest.er1
16262   ac_status=$?
16263   grep -v '^ *+' conftest.er1 >conftest.err
16264   rm -f conftest.er1
16265   cat conftest.err >&5
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); } &&
16268          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270   (eval $ac_try) 2>&5
16271   ac_status=$?
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); }; } &&
16274          { ac_try='test -s conftest$ac_exeext'
16275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276   (eval $ac_try) 2>&5
16277   ac_status=$?
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); }; }; then
16280
16281 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16282 }'`
16283 # Check for a 64-bit object if we didn't find anything.
16284 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16285 }'`; fi
16286 else
16287   echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16289
16290 fi
16291 rm -f conftest.err conftest.$ac_objext \
16292       conftest$ac_exeext conftest.$ac_ext
16293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16294
16295          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16296           # Warning - without using the other run time loading flags,
16297           # -berok will link without error, but may produce a broken library.
16298           no_undefined_flag_GCJ=' ${wl}-bernotok'
16299           allow_undefined_flag_GCJ=' ${wl}-berok'
16300           # -bexpall does not export symbols beginning with underscore (_)
16301           always_export_symbols_GCJ=yes
16302           # Exported symbols can be pulled into shared objects from archives
16303           whole_archive_flag_spec_GCJ=' '
16304           archive_cmds_need_lc_GCJ=yes
16305           # This is similar to how AIX traditionally builds it's shared libraries.
16306           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16307         fi
16308       fi
16309       ;;
16310
16311     amigaos*)
16312       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16313       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16314       hardcode_minus_L_GCJ=yes
16315       # see comment about different semantics on the GNU ld section
16316       ld_shlibs_GCJ=no
16317       ;;
16318
16319     bsdi4*)
16320       export_dynamic_flag_spec_GCJ=-rdynamic
16321       ;;
16322
16323     cygwin* | mingw* | pw32*)
16324       # When not using gcc, we currently assume that we are using
16325       # Microsoft Visual C++.
16326       # hardcode_libdir_flag_spec is actually meaningless, as there is
16327       # no search path for DLLs.
16328       hardcode_libdir_flag_spec_GCJ=' '
16329       allow_undefined_flag_GCJ=unsupported
16330       # Tell ltmain to make .lib files, not .a files.
16331       libext=lib
16332       # Tell ltmain to make .dll files, not .so files.
16333       shrext_cmds=".dll"
16334       # FIXME: Setting linknames here is a bad hack.
16335       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16336       # The linker will automatically build a .lib file if we build a DLL.
16337       old_archive_From_new_cmds_GCJ='true'
16338       # FIXME: Should let the user specify the lib program.
16339       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16340       fix_srcfile_path='`cygpath -w "$srcfile"`'
16341       enable_shared_with_static_runtimes_GCJ=yes
16342       ;;
16343
16344     darwin* | rhapsody*)
16345     if test "$GXX" = yes ; then
16346       archive_cmds_need_lc_GCJ=no
16347       case "$host_os" in
16348       rhapsody* | darwin1.[012])
16349         allow_undefined_flag_GCJ='-undefined suppress'
16350         ;;
16351       *) # Darwin 1.3 on
16352       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16353         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16354       else
16355         case ${MACOSX_DEPLOYMENT_TARGET} in
16356           10.[012])
16357             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16358             ;;
16359           10.*)
16360             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16361             ;;
16362         esac
16363       fi
16364         ;;
16365       esac
16366         lt_int_apple_cc_single_mod=no
16367         output_verbose_link_cmd='echo'
16368         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16369           lt_int_apple_cc_single_mod=yes
16370         fi
16371         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16372           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16373         else
16374         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16375       fi
16376       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16377       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16378         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16379           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16380         else
16381           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16382         fi
16383           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16384       hardcode_direct_GCJ=no
16385       hardcode_automatic_GCJ=yes
16386       hardcode_shlibpath_var_GCJ=unsupported
16387       whole_archive_flag_spec_GCJ='-all_load $convenience'
16388       link_all_deplibs_GCJ=yes
16389     else
16390       ld_shlibs_GCJ=no
16391     fi
16392       ;;
16393
16394     dgux*)
16395       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16396       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16397       hardcode_shlibpath_var_GCJ=no
16398       ;;
16399
16400     freebsd1*)
16401       ld_shlibs_GCJ=no
16402       ;;
16403
16404     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16405     # support.  Future versions do this automatically, but an explicit c++rt0.o
16406     # does not break anything, and helps significantly (at the cost of a little
16407     # extra space).
16408     freebsd2.2*)
16409       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16410       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16411       hardcode_direct_GCJ=yes
16412       hardcode_shlibpath_var_GCJ=no
16413       ;;
16414
16415     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16416     freebsd2*)
16417       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16418       hardcode_direct_GCJ=yes
16419       hardcode_minus_L_GCJ=yes
16420       hardcode_shlibpath_var_GCJ=no
16421       ;;
16422
16423     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16424     freebsd* | kfreebsd*-gnu)
16425       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16426       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16427       hardcode_direct_GCJ=yes
16428       hardcode_shlibpath_var_GCJ=no
16429       ;;
16430
16431     hpux9*)
16432       if test "$GCC" = yes; then
16433         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16434       else
16435         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16436       fi
16437       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16438       hardcode_libdir_separator_GCJ=:
16439       hardcode_direct_GCJ=yes
16440
16441       # hardcode_minus_L: Not really in the search PATH,
16442       # but as the default location of the library.
16443       hardcode_minus_L_GCJ=yes
16444       export_dynamic_flag_spec_GCJ='${wl}-E'
16445       ;;
16446
16447     hpux10* | hpux11*)
16448       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16449         case "$host_cpu" in
16450         hppa*64*|ia64*)
16451           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16452           ;;
16453         *)
16454           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16455           ;;
16456         esac
16457       else
16458         case "$host_cpu" in
16459         hppa*64*|ia64*)
16460           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16461           ;;
16462         *)
16463           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16464           ;;
16465         esac
16466       fi
16467       if test "$with_gnu_ld" = no; then
16468         case "$host_cpu" in
16469         hppa*64*)
16470           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16471           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16472           hardcode_libdir_separator_GCJ=:
16473           hardcode_direct_GCJ=no
16474           hardcode_shlibpath_var_GCJ=no
16475           ;;
16476         ia64*)
16477           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16478           hardcode_direct_GCJ=no
16479           hardcode_shlibpath_var_GCJ=no
16480
16481           # hardcode_minus_L: Not really in the search PATH,
16482           # but as the default location of the library.
16483           hardcode_minus_L_GCJ=yes
16484           ;;
16485         *)
16486           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16487           hardcode_libdir_separator_GCJ=:
16488           hardcode_direct_GCJ=yes
16489           export_dynamic_flag_spec_GCJ='${wl}-E'
16490
16491           # hardcode_minus_L: Not really in the search PATH,
16492           # but as the default location of the library.
16493           hardcode_minus_L_GCJ=yes
16494           ;;
16495         esac
16496       fi
16497       ;;
16498
16499     irix5* | irix6* | nonstopux*)
16500       if test "$GCC" = yes; then
16501         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16502       else
16503         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16504         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16505       fi
16506       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16507       hardcode_libdir_separator_GCJ=:
16508       link_all_deplibs_GCJ=yes
16509       ;;
16510
16511     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16512       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16513         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16514       else
16515         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16516       fi
16517       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16518       hardcode_direct_GCJ=yes
16519       hardcode_shlibpath_var_GCJ=no
16520       ;;
16521
16522     newsos6)
16523       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16524       hardcode_direct_GCJ=yes
16525       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16526       hardcode_libdir_separator_GCJ=:
16527       hardcode_shlibpath_var_GCJ=no
16528       ;;
16529
16530     openbsd*)
16531       hardcode_direct_GCJ=yes
16532       hardcode_shlibpath_var_GCJ=no
16533       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16534         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16535         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16536         export_dynamic_flag_spec_GCJ='${wl}-E'
16537       else
16538        case $host_os in
16539          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16540            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16541            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16542            ;;
16543          *)
16544            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16545            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16546            ;;
16547        esac
16548       fi
16549       ;;
16550
16551     os2*)
16552       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16553       hardcode_minus_L_GCJ=yes
16554       allow_undefined_flag_GCJ=unsupported
16555       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16556       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16557       ;;
16558
16559     osf3*)
16560       if test "$GCC" = yes; then
16561         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16562         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16563       else
16564         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16565         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16566       fi
16567       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16568       hardcode_libdir_separator_GCJ=:
16569       ;;
16570
16571     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16572       if test "$GCC" = yes; then
16573         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16574         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16575         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16576       else
16577         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16578         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16579         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16580         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16581
16582         # Both c and cxx compiler support -rpath directly
16583         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16584       fi
16585       hardcode_libdir_separator_GCJ=:
16586       ;;
16587
16588     sco3.2v5*)
16589       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16590       hardcode_shlibpath_var_GCJ=no
16591       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16592       runpath_var=LD_RUN_PATH
16593       hardcode_runpath_var=yes
16594       ;;
16595
16596     solaris*)
16597       no_undefined_flag_GCJ=' -z text'
16598       if test "$GCC" = yes; then
16599         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16600         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16601           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16602       else
16603         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16604         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16605         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16606       fi
16607       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16608       hardcode_shlibpath_var_GCJ=no
16609       case $host_os in
16610       solaris2.[0-5] | solaris2.[0-5].*) ;;
16611       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16612         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16613       esac
16614       link_all_deplibs_GCJ=yes
16615       ;;
16616
16617     sunos4*)
16618       if test "x$host_vendor" = xsequent; then
16619         # Use $CC to link under sequent, because it throws in some extra .o
16620         # files that make .init and .fini sections work.
16621         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16622       else
16623         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16624       fi
16625       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16626       hardcode_direct_GCJ=yes
16627       hardcode_minus_L_GCJ=yes
16628       hardcode_shlibpath_var_GCJ=no
16629       ;;
16630
16631     sysv4)
16632       case $host_vendor in
16633         sni)
16634           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16635           hardcode_direct_GCJ=yes # is this really true???
16636         ;;
16637         siemens)
16638           ## LD is ld it makes a PLAMLIB
16639           ## CC just makes a GrossModule.
16640           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16641           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16642           hardcode_direct_GCJ=no
16643         ;;
16644         motorola)
16645           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16646           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16647         ;;
16648       esac
16649       runpath_var='LD_RUN_PATH'
16650       hardcode_shlibpath_var_GCJ=no
16651       ;;
16652
16653     sysv4.3*)
16654       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16655       hardcode_shlibpath_var_GCJ=no
16656       export_dynamic_flag_spec_GCJ='-Bexport'
16657       ;;
16658
16659     sysv4*MP*)
16660       if test -d /usr/nec; then
16661         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662         hardcode_shlibpath_var_GCJ=no
16663         runpath_var=LD_RUN_PATH
16664         hardcode_runpath_var=yes
16665         ld_shlibs_GCJ=yes
16666       fi
16667       ;;
16668
16669     sysv4.2uw2*)
16670       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16671       hardcode_direct_GCJ=yes
16672       hardcode_minus_L_GCJ=no
16673       hardcode_shlibpath_var_GCJ=no
16674       hardcode_runpath_var=yes
16675       runpath_var=LD_RUN_PATH
16676       ;;
16677
16678    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16679       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16680       if test "$GCC" = yes; then
16681         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16682       else
16683         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16684       fi
16685       runpath_var='LD_RUN_PATH'
16686       hardcode_shlibpath_var_GCJ=no
16687       ;;
16688
16689     sysv5*)
16690       no_undefined_flag_GCJ=' -z text'
16691       # $CC -shared without GNU ld will not create a library from C++
16692       # object files and a static libstdc++, better avoid it by now
16693       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16694       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16695                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16696       hardcode_libdir_flag_spec_GCJ=
16697       hardcode_shlibpath_var_GCJ=no
16698       runpath_var='LD_RUN_PATH'
16699       ;;
16700
16701     uts4*)
16702       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16704       hardcode_shlibpath_var_GCJ=no
16705       ;;
16706
16707     *)
16708       ld_shlibs_GCJ=no
16709       ;;
16710     esac
16711   fi
16712
16713 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16714 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16715 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16716
16717 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16718 if test "$GCC" = yes; then
16719   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16720 fi
16721
16722 #
16723 # Do we need to explicitly link libc?
16724 #
16725 case "x$archive_cmds_need_lc_GCJ" in
16726 x|xyes)
16727   # Assume -lc should be added
16728   archive_cmds_need_lc_GCJ=yes
16729
16730   if test "$enable_shared" = yes && test "$GCC" = yes; then
16731     case $archive_cmds_GCJ in
16732     *'~'*)
16733       # FIXME: we may have to deal with multi-command sequences.
16734       ;;
16735     '$CC '*)
16736       # Test whether the compiler implicitly links with -lc since on some
16737       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16738       # to ld, don't add -lc before -lgcc.
16739       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16740 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16741       $rm conftest*
16742       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16743
16744       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745   (eval $ac_compile) 2>&5
16746   ac_status=$?
16747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); } 2>conftest.err; then
16749         soname=conftest
16750         lib=conftest
16751         libobjs=conftest.$ac_objext
16752         deplibs=
16753         wl=$lt_prog_compiler_wl_GCJ
16754         compiler_flags=-v
16755         linker_flags=-v
16756         verstring=
16757         output_objdir=.
16758         libname=conftest
16759         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16760         allow_undefined_flag_GCJ=
16761         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16762   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16763   ac_status=$?
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); }
16766         then
16767           archive_cmds_need_lc_GCJ=no
16768         else
16769           archive_cmds_need_lc_GCJ=yes
16770         fi
16771         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16772       else
16773         cat conftest.err 1>&5
16774       fi
16775       $rm conftest*
16776       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16777 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16778       ;;
16779     esac
16780   fi
16781   ;;
16782 esac
16783
16784 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16785 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16786 library_names_spec=
16787 libname_spec='lib$name'
16788 soname_spec=
16789 shrext_cmds=".so"
16790 postinstall_cmds=
16791 postuninstall_cmds=
16792 finish_cmds=
16793 finish_eval=
16794 shlibpath_var=
16795 shlibpath_overrides_runpath=unknown
16796 version_type=none
16797 dynamic_linker="$host_os ld.so"
16798 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16799 if test "$GCC" = yes; then
16800   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16801   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16802     # if the path contains ";" then we assume it to be the separator
16803     # otherwise default to the standard path separator (i.e. ":") - it is
16804     # assumed that no part of a normal pathname contains ";" but that should
16805     # okay in the real world where ";" in dirpaths is itself problematic.
16806     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16807   else
16808     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16809   fi
16810 else
16811   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16812 fi
16813 need_lib_prefix=unknown
16814 hardcode_into_libs=no
16815
16816 # when you set need_version to no, make sure it does not cause -set_version
16817 # flags to be left without arguments
16818 need_version=unknown
16819
16820 case $host_os in
16821 aix3*)
16822   version_type=linux
16823   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16824   shlibpath_var=LIBPATH
16825
16826   # AIX 3 has no versioning support, so we append a major version to the name.
16827   soname_spec='${libname}${release}${shared_ext}$major'
16828   ;;
16829
16830 aix4* | aix5*)
16831   version_type=linux
16832   need_lib_prefix=no
16833   need_version=no
16834   hardcode_into_libs=yes
16835   if test "$host_cpu" = ia64; then
16836     # AIX 5 supports IA64
16837     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16838     shlibpath_var=LD_LIBRARY_PATH
16839   else
16840     # With GCC up to 2.95.x, collect2 would create an import file
16841     # for dependence libraries.  The import file would start with
16842     # the line `#! .'.  This would cause the generated library to
16843     # depend on `.', always an invalid library.  This was fixed in
16844     # development snapshots of GCC prior to 3.0.
16845     case $host_os in
16846       aix4 | aix4.[01] | aix4.[01].*)
16847       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16848            echo ' yes '
16849            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16850         :
16851       else
16852         can_build_shared=no
16853       fi
16854       ;;
16855     esac
16856     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16857     # soname into executable. Probably we can add versioning support to
16858     # collect2, so additional links can be useful in future.
16859     if test "$aix_use_runtimelinking" = yes; then
16860       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16861       # instead of lib<name>.a to let people know that these are not
16862       # typical AIX shared libraries.
16863       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864     else
16865       # We preserve .a as extension for shared libraries through AIX4.2
16866       # and later when we are not doing run time linking.
16867       library_names_spec='${libname}${release}.a $libname.a'
16868       soname_spec='${libname}${release}${shared_ext}$major'
16869     fi
16870     shlibpath_var=LIBPATH
16871   fi
16872   ;;
16873
16874 amigaos*)
16875   library_names_spec='$libname.ixlibrary $libname.a'
16876   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16877   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16878   ;;
16879
16880 beos*)
16881   library_names_spec='${libname}${shared_ext}'
16882   dynamic_linker="$host_os ld.so"
16883   shlibpath_var=LIBRARY_PATH
16884   ;;
16885
16886 bsdi4*)
16887   version_type=linux
16888   need_version=no
16889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890   soname_spec='${libname}${release}${shared_ext}$major'
16891   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16892   shlibpath_var=LD_LIBRARY_PATH
16893   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16894   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16895   # the default ld.so.conf also contains /usr/contrib/lib and
16896   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16897   # libtool to hard-code these into programs
16898   ;;
16899
16900 cygwin* | mingw* | pw32*)
16901   version_type=windows
16902   shrext_cmds=".dll"
16903   need_version=no
16904   need_lib_prefix=no
16905
16906   case $GCC,$host_os in
16907   yes,cygwin* | yes,mingw* | yes,pw32*)
16908     library_names_spec='$libname.dll.a'
16909     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16910     postinstall_cmds='base_file=`basename \${file}`~
16911       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16912       dldir=$destdir/`dirname \$dlpath`~
16913       test -d \$dldir || mkdir -p \$dldir~
16914       $install_prog $dir/$dlname \$dldir/$dlname'
16915     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16916       dlpath=$dir/\$dldll~
16917        $rm \$dlpath'
16918     shlibpath_overrides_runpath=yes
16919
16920     case $host_os in
16921     cygwin*)
16922       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16923       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16924       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16925       ;;
16926     mingw*)
16927       # MinGW DLLs use traditional 'lib' prefix
16928       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16929       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16930       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16931         # It is most probably a Windows format PATH printed by
16932         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16933         # path with ; separators, and with drive letters. We can handle the
16934         # drive letters (cygwin fileutils understands them), so leave them,
16935         # especially as we might pass files found there to a mingw objdump,
16936         # which wouldn't understand a cygwinified path. Ahh.
16937         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16938       else
16939         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16940       fi
16941       ;;
16942     pw32*)
16943       # pw32 DLLs use 'pw' prefix rather than 'lib'
16944       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16945       ;;
16946     esac
16947     ;;
16948
16949   *)
16950     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16951     ;;
16952   esac
16953   dynamic_linker='Win32 ld.exe'
16954   # FIXME: first we should search . and the directory the executable is in
16955   shlibpath_var=PATH
16956   ;;
16957
16958 darwin* | rhapsody*)
16959   dynamic_linker="$host_os dyld"
16960   version_type=darwin
16961   need_lib_prefix=no
16962   need_version=no
16963   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16964   soname_spec='${libname}${release}${major}$shared_ext'
16965   shlibpath_overrides_runpath=yes
16966   shlibpath_var=DYLD_LIBRARY_PATH
16967   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16968   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16969   if test "$GCC" = yes; then
16970     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16971   else
16972     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16973   fi
16974   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16975   ;;
16976
16977 dgux*)
16978   version_type=linux
16979   need_lib_prefix=no
16980   need_version=no
16981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16982   soname_spec='${libname}${release}${shared_ext}$major'
16983   shlibpath_var=LD_LIBRARY_PATH
16984   ;;
16985
16986 freebsd1*)
16987   dynamic_linker=no
16988   ;;
16989
16990 kfreebsd*-gnu)
16991   version_type=linux
16992   need_lib_prefix=no
16993   need_version=no
16994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16995   soname_spec='${libname}${release}${shared_ext}$major'
16996   shlibpath_var=LD_LIBRARY_PATH
16997   shlibpath_overrides_runpath=no
16998   hardcode_into_libs=yes
16999   dynamic_linker='GNU ld.so'
17000   ;;
17001
17002 freebsd*)
17003   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17004   version_type=freebsd-$objformat
17005   case $version_type in
17006     freebsd-elf*)
17007       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17008       need_version=no
17009       need_lib_prefix=no
17010       ;;
17011     freebsd-*)
17012       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17013       need_version=yes
17014       ;;
17015   esac
17016   shlibpath_var=LD_LIBRARY_PATH
17017   case $host_os in
17018   freebsd2*)
17019     shlibpath_overrides_runpath=yes
17020     ;;
17021   freebsd3.01* | freebsdelf3.01*)
17022     shlibpath_overrides_runpath=yes
17023     hardcode_into_libs=yes
17024     ;;
17025   *) # from 3.2 on
17026     shlibpath_overrides_runpath=no
17027     hardcode_into_libs=yes
17028     ;;
17029   esac
17030   ;;
17031
17032 gnu*)
17033   version_type=linux
17034   need_lib_prefix=no
17035   need_version=no
17036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17037   soname_spec='${libname}${release}${shared_ext}$major'
17038   shlibpath_var=LD_LIBRARY_PATH
17039   hardcode_into_libs=yes
17040   ;;
17041
17042 hpux9* | hpux10* | hpux11*)
17043   # Give a soname corresponding to the major version so that dld.sl refuses to
17044   # link against other versions.
17045   version_type=sunos
17046   need_lib_prefix=no
17047   need_version=no
17048   case "$host_cpu" in
17049   ia64*)
17050     shrext_cmds='.so'
17051     hardcode_into_libs=yes
17052     dynamic_linker="$host_os dld.so"
17053     shlibpath_var=LD_LIBRARY_PATH
17054     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17056     soname_spec='${libname}${release}${shared_ext}$major'
17057     if test "X$HPUX_IA64_MODE" = X32; then
17058       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17059     else
17060       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17061     fi
17062     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17063     ;;
17064    hppa*64*)
17065      shrext_cmds='.sl'
17066      hardcode_into_libs=yes
17067      dynamic_linker="$host_os dld.sl"
17068      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17069      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17070      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071      soname_spec='${libname}${release}${shared_ext}$major'
17072      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17073      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17074      ;;
17075    *)
17076     shrext_cmds='.sl'
17077     dynamic_linker="$host_os dld.sl"
17078     shlibpath_var=SHLIB_PATH
17079     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17081     soname_spec='${libname}${release}${shared_ext}$major'
17082     ;;
17083   esac
17084   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17085   postinstall_cmds='chmod 555 $lib'
17086   ;;
17087
17088 irix5* | irix6* | nonstopux*)
17089   case $host_os in
17090     nonstopux*) version_type=nonstopux ;;
17091     *)
17092         if test "$lt_cv_prog_gnu_ld" = yes; then
17093                 version_type=linux
17094         else
17095                 version_type=irix
17096         fi ;;
17097   esac
17098   need_lib_prefix=no
17099   need_version=no
17100   soname_spec='${libname}${release}${shared_ext}$major'
17101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17102   case $host_os in
17103   irix5* | nonstopux*)
17104     libsuff= shlibsuff=
17105     ;;
17106   *)
17107     case $LD in # libtool.m4 will add one of these switches to LD
17108     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17109       libsuff= shlibsuff= libmagic=32-bit;;
17110     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17111       libsuff=32 shlibsuff=N32 libmagic=N32;;
17112     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17113       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17114     *) libsuff= shlibsuff= libmagic=never-match;;
17115     esac
17116     ;;
17117   esac
17118   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17119   shlibpath_overrides_runpath=no
17120   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17121   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17122   hardcode_into_libs=yes
17123   ;;
17124
17125 # No shared lib support for Linux oldld, aout, or coff.
17126 linux*oldld* | linux*aout* | linux*coff*)
17127   dynamic_linker=no
17128   ;;
17129
17130 # This must be Linux ELF.
17131 linux*)
17132   version_type=linux
17133   need_lib_prefix=no
17134   need_version=no
17135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136   soname_spec='${libname}${release}${shared_ext}$major'
17137   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17138   shlibpath_var=LD_LIBRARY_PATH
17139   shlibpath_overrides_runpath=no
17140   # This implies no fast_install, which is unacceptable.
17141   # Some rework will be needed to allow for fast_install
17142   # before this can be enabled.
17143   hardcode_into_libs=yes
17144
17145   # Append ld.so.conf contents to the search path
17146   if test -f /etc/ld.so.conf; then
17147     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17148     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17149   fi
17150
17151   # We used to test for /lib/ld.so.1 and disable shared libraries on
17152   # powerpc, because MkLinux only supported shared libraries with the
17153   # GNU dynamic linker.  Since this was broken with cross compilers,
17154   # most powerpc-linux boxes support dynamic linking these days and
17155   # people can always --disable-shared, the test was removed, and we
17156   # assume the GNU/Linux dynamic linker is in use.
17157   dynamic_linker='GNU/Linux ld.so'
17158   ;;
17159
17160 netbsdelf*-gnu)
17161   version_type=linux
17162   need_lib_prefix=no
17163   need_version=no
17164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17165   soname_spec='${libname}${release}${shared_ext}$major'
17166   shlibpath_var=LD_LIBRARY_PATH
17167   shlibpath_overrides_runpath=no
17168   hardcode_into_libs=yes
17169   dynamic_linker='NetBSD ld.elf_so'
17170   ;;
17171
17172 knetbsd*-gnu)
17173   version_type=linux
17174   need_lib_prefix=no
17175   need_version=no
17176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17177   soname_spec='${libname}${release}${shared_ext}$major'
17178   shlibpath_var=LD_LIBRARY_PATH
17179   shlibpath_overrides_runpath=no
17180   hardcode_into_libs=yes
17181   dynamic_linker='GNU ld.so'
17182   ;;
17183
17184 netbsd*)
17185   version_type=sunos
17186   need_lib_prefix=no
17187   need_version=no
17188   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17190     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17191     dynamic_linker='NetBSD (a.out) ld.so'
17192   else
17193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17194     soname_spec='${libname}${release}${shared_ext}$major'
17195     dynamic_linker='NetBSD ld.elf_so'
17196   fi
17197   shlibpath_var=LD_LIBRARY_PATH
17198   shlibpath_overrides_runpath=yes
17199   hardcode_into_libs=yes
17200   ;;
17201
17202 newsos6)
17203   version_type=linux
17204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205   shlibpath_var=LD_LIBRARY_PATH
17206   shlibpath_overrides_runpath=yes
17207   ;;
17208
17209 nto-qnx*)
17210   version_type=linux
17211   need_lib_prefix=no
17212   need_version=no
17213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214   soname_spec='${libname}${release}${shared_ext}$major'
17215   shlibpath_var=LD_LIBRARY_PATH
17216   shlibpath_overrides_runpath=yes
17217   ;;
17218
17219 openbsd*)
17220   version_type=sunos
17221   need_lib_prefix=no
17222   need_version=yes
17223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17224   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17225   shlibpath_var=LD_LIBRARY_PATH
17226   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17227     case $host_os in
17228       openbsd2.[89] | openbsd2.[89].*)
17229         shlibpath_overrides_runpath=no
17230         ;;
17231       *)
17232         shlibpath_overrides_runpath=yes
17233         ;;
17234       esac
17235   else
17236     shlibpath_overrides_runpath=yes
17237   fi
17238   ;;
17239
17240 os2*)
17241   libname_spec='$name'
17242   shrext_cmds=".dll"
17243   need_lib_prefix=no
17244   library_names_spec='$libname${shared_ext} $libname.a'
17245   dynamic_linker='OS/2 ld.exe'
17246   shlibpath_var=LIBPATH
17247   ;;
17248
17249 osf3* | osf4* | osf5*)
17250   version_type=osf
17251   need_lib_prefix=no
17252   need_version=no
17253   soname_spec='${libname}${release}${shared_ext}$major'
17254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255   shlibpath_var=LD_LIBRARY_PATH
17256   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17257   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17258   ;;
17259
17260 sco3.2v5*)
17261   version_type=osf
17262   soname_spec='${libname}${release}${shared_ext}$major'
17263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17264   shlibpath_var=LD_LIBRARY_PATH
17265   ;;
17266
17267 solaris*)
17268   version_type=linux
17269   need_lib_prefix=no
17270   need_version=no
17271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272   soname_spec='${libname}${release}${shared_ext}$major'
17273   shlibpath_var=LD_LIBRARY_PATH
17274   shlibpath_overrides_runpath=yes
17275   hardcode_into_libs=yes
17276   # ldd complains unless libraries are executable
17277   postinstall_cmds='chmod +x $lib'
17278   ;;
17279
17280 sunos4*)
17281   version_type=sunos
17282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17283   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17284   shlibpath_var=LD_LIBRARY_PATH
17285   shlibpath_overrides_runpath=yes
17286   if test "$with_gnu_ld" = yes; then
17287     need_lib_prefix=no
17288   fi
17289   need_version=yes
17290   ;;
17291
17292 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17293   version_type=linux
17294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295   soname_spec='${libname}${release}${shared_ext}$major'
17296   shlibpath_var=LD_LIBRARY_PATH
17297   case $host_vendor in
17298     sni)
17299       shlibpath_overrides_runpath=no
17300       need_lib_prefix=no
17301       export_dynamic_flag_spec='${wl}-Blargedynsym'
17302       runpath_var=LD_RUN_PATH
17303       ;;
17304     siemens)
17305       need_lib_prefix=no
17306       ;;
17307     motorola)
17308       need_lib_prefix=no
17309       need_version=no
17310       shlibpath_overrides_runpath=no
17311       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17312       ;;
17313   esac
17314   ;;
17315
17316 sysv4*MP*)
17317   if test -d /usr/nec ;then
17318     version_type=linux
17319     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17320     soname_spec='$libname${shared_ext}.$major'
17321     shlibpath_var=LD_LIBRARY_PATH
17322   fi
17323   ;;
17324
17325 uts4*)
17326   version_type=linux
17327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17328   soname_spec='${libname}${release}${shared_ext}$major'
17329   shlibpath_var=LD_LIBRARY_PATH
17330   ;;
17331
17332 *)
17333   dynamic_linker=no
17334   ;;
17335 esac
17336 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17337 echo "${ECHO_T}$dynamic_linker" >&6
17338 test "$dynamic_linker" = no && can_build_shared=no
17339
17340 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17341 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17342 hardcode_action_GCJ=
17343 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17344    test -n "$runpath_var GCJ" || \
17345    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17346
17347   # We can hardcode non-existant directories.
17348   if test "$hardcode_direct_GCJ" != no &&
17349      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17350      # have to relink, otherwise we might link with an installed library
17351      # when we should be linking with a yet-to-be-installed one
17352      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17353      test "$hardcode_minus_L_GCJ" != no; then
17354     # Linking always hardcodes the temporary library directory.
17355     hardcode_action_GCJ=relink
17356   else
17357     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17358     hardcode_action_GCJ=immediate
17359   fi
17360 else
17361   # We cannot hardcode anything, or else we can only hardcode existing
17362   # directories.
17363   hardcode_action_GCJ=unsupported
17364 fi
17365 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17366 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17367
17368 if test "$hardcode_action_GCJ" = relink; then
17369   # Fast installation is not supported
17370   enable_fast_install=no
17371 elif test "$shlibpath_overrides_runpath" = yes ||
17372      test "$enable_shared" = no; then
17373   # Fast installation is not necessary
17374   enable_fast_install=needless
17375 fi
17376
17377 striplib=
17378 old_striplib=
17379 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17380 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17381 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17382   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17383   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17384   echo "$as_me:$LINENO: result: yes" >&5
17385 echo "${ECHO_T}yes" >&6
17386 else
17387 # FIXME - insert some real tests, host_os isn't really good enough
17388   case $host_os in
17389    darwin*)
17390        if test -n "$STRIP" ; then
17391          striplib="$STRIP -x"
17392          echo "$as_me:$LINENO: result: yes" >&5
17393 echo "${ECHO_T}yes" >&6
17394        else
17395   echo "$as_me:$LINENO: result: no" >&5
17396 echo "${ECHO_T}no" >&6
17397 fi
17398        ;;
17399    *)
17400   echo "$as_me:$LINENO: result: no" >&5
17401 echo "${ECHO_T}no" >&6
17402     ;;
17403   esac
17404 fi
17405
17406 if test "x$enable_dlopen" != xyes; then
17407   enable_dlopen=unknown
17408   enable_dlopen_self=unknown
17409   enable_dlopen_self_static=unknown
17410 else
17411   lt_cv_dlopen=no
17412   lt_cv_dlopen_libs=
17413
17414   case $host_os in
17415   beos*)
17416     lt_cv_dlopen="load_add_on"
17417     lt_cv_dlopen_libs=
17418     lt_cv_dlopen_self=yes
17419     ;;
17420
17421   mingw* | pw32*)
17422     lt_cv_dlopen="LoadLibrary"
17423     lt_cv_dlopen_libs=
17424    ;;
17425
17426   cygwin*)
17427     lt_cv_dlopen="dlopen"
17428     lt_cv_dlopen_libs=
17429    ;;
17430
17431   darwin*)
17432   # if libdl is installed we need to link against it
17433     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17434 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17435 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17436   echo $ECHO_N "(cached) $ECHO_C" >&6
17437 else
17438   ac_check_lib_save_LIBS=$LIBS
17439 LIBS="-ldl  $LIBS"
17440 cat >conftest.$ac_ext <<_ACEOF
17441 /* confdefs.h.  */
17442 _ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h.  */
17446
17447 /* Override any gcc2 internal prototype to avoid an error.  */
17448 #ifdef __cplusplus
17449 extern "C"
17450 #endif
17451 /* We use char because int might match the return type of a gcc2
17452    builtin and then its argument prototype would still apply.  */
17453 char dlopen ();
17454 int
17455 main ()
17456 {
17457 dlopen ();
17458   ;
17459   return 0;
17460 }
17461 _ACEOF
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17464   (eval $ac_link) 2>conftest.er1
17465   ac_status=$?
17466   grep -v '^ *+' conftest.er1 >conftest.err
17467   rm -f conftest.er1
17468   cat conftest.err >&5
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); } &&
17471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473   (eval $ac_try) 2>&5
17474   ac_status=$?
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); }; } &&
17477          { ac_try='test -s conftest$ac_exeext'
17478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479   (eval $ac_try) 2>&5
17480   ac_status=$?
17481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482   (exit $ac_status); }; }; then
17483   ac_cv_lib_dl_dlopen=yes
17484 else
17485   echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17487
17488 ac_cv_lib_dl_dlopen=no
17489 fi
17490 rm -f conftest.err conftest.$ac_objext \
17491       conftest$ac_exeext conftest.$ac_ext
17492 LIBS=$ac_check_lib_save_LIBS
17493 fi
17494 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17495 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17496 if test $ac_cv_lib_dl_dlopen = yes; then
17497   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17498 else
17499
17500     lt_cv_dlopen="dyld"
17501     lt_cv_dlopen_libs=
17502     lt_cv_dlopen_self=yes
17503
17504 fi
17505
17506    ;;
17507
17508   *)
17509     echo "$as_me:$LINENO: checking for shl_load" >&5
17510 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17511 if test "${ac_cv_func_shl_load+set}" = set; then
17512   echo $ECHO_N "(cached) $ECHO_C" >&6
17513 else
17514   cat >conftest.$ac_ext <<_ACEOF
17515 /* confdefs.h.  */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h.  */
17520 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17522 #define shl_load innocuous_shl_load
17523
17524 /* System header to define __stub macros and hopefully few prototypes,
17525     which can conflict with char shl_load (); below.
17526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17527     <limits.h> exists even on freestanding compilers.  */
17528
17529 #ifdef __STDC__
17530 # include <limits.h>
17531 #else
17532 # include <assert.h>
17533 #endif
17534
17535 #undef shl_load
17536
17537 /* Override any gcc2 internal prototype to avoid an error.  */
17538 #ifdef __cplusplus
17539 extern "C"
17540 {
17541 #endif
17542 /* We use char because int might match the return type of a gcc2
17543    builtin and then its argument prototype would still apply.  */
17544 char shl_load ();
17545 /* The GNU C library defines this for functions which it implements
17546     to always fail with ENOSYS.  Some functions are actually named
17547     something starting with __ and the normal name is an alias.  */
17548 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17549 choke me
17550 #else
17551 char (*f) () = shl_load;
17552 #endif
17553 #ifdef __cplusplus
17554 }
17555 #endif
17556
17557 int
17558 main ()
17559 {
17560 return f != shl_load;
17561   ;
17562   return 0;
17563 }
17564 _ACEOF
17565 rm -f conftest.$ac_objext conftest$ac_exeext
17566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17567   (eval $ac_link) 2>conftest.er1
17568   ac_status=$?
17569   grep -v '^ *+' conftest.er1 >conftest.err
17570   rm -f conftest.er1
17571   cat conftest.err >&5
17572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573   (exit $ac_status); } &&
17574          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576   (eval $ac_try) 2>&5
17577   ac_status=$?
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); }; } &&
17580          { ac_try='test -s conftest$ac_exeext'
17581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582   (eval $ac_try) 2>&5
17583   ac_status=$?
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); }; }; then
17586   ac_cv_func_shl_load=yes
17587 else
17588   echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17590
17591 ac_cv_func_shl_load=no
17592 fi
17593 rm -f conftest.err conftest.$ac_objext \
17594       conftest$ac_exeext conftest.$ac_ext
17595 fi
17596 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17597 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17598 if test $ac_cv_func_shl_load = yes; then
17599   lt_cv_dlopen="shl_load"
17600 else
17601   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17602 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17603 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17604   echo $ECHO_N "(cached) $ECHO_C" >&6
17605 else
17606   ac_check_lib_save_LIBS=$LIBS
17607 LIBS="-ldld  $LIBS"
17608 cat >conftest.$ac_ext <<_ACEOF
17609 /* confdefs.h.  */
17610 _ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h.  */
17614
17615 /* Override any gcc2 internal prototype to avoid an error.  */
17616 #ifdef __cplusplus
17617 extern "C"
17618 #endif
17619 /* We use char because int might match the return type of a gcc2
17620    builtin and then its argument prototype would still apply.  */
17621 char shl_load ();
17622 int
17623 main ()
17624 {
17625 shl_load ();
17626   ;
17627   return 0;
17628 }
17629 _ACEOF
17630 rm -f conftest.$ac_objext conftest$ac_exeext
17631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17632   (eval $ac_link) 2>conftest.er1
17633   ac_status=$?
17634   grep -v '^ *+' conftest.er1 >conftest.err
17635   rm -f conftest.er1
17636   cat conftest.err >&5
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); } &&
17639          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641   (eval $ac_try) 2>&5
17642   ac_status=$?
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); }; } &&
17645          { ac_try='test -s conftest$ac_exeext'
17646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647   (eval $ac_try) 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; }; then
17651   ac_cv_lib_dld_shl_load=yes
17652 else
17653   echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17655
17656 ac_cv_lib_dld_shl_load=no
17657 fi
17658 rm -f conftest.err conftest.$ac_objext \
17659       conftest$ac_exeext conftest.$ac_ext
17660 LIBS=$ac_check_lib_save_LIBS
17661 fi
17662 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17663 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17664 if test $ac_cv_lib_dld_shl_load = yes; then
17665   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17666 else
17667   echo "$as_me:$LINENO: checking for dlopen" >&5
17668 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17669 if test "${ac_cv_func_dlopen+set}" = set; then
17670   echo $ECHO_N "(cached) $ECHO_C" >&6
17671 else
17672   cat >conftest.$ac_ext <<_ACEOF
17673 /* confdefs.h.  */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h.  */
17678 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17680 #define dlopen innocuous_dlopen
17681
17682 /* System header to define __stub macros and hopefully few prototypes,
17683     which can conflict with char dlopen (); below.
17684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17685     <limits.h> exists even on freestanding compilers.  */
17686
17687 #ifdef __STDC__
17688 # include <limits.h>
17689 #else
17690 # include <assert.h>
17691 #endif
17692
17693 #undef dlopen
17694
17695 /* Override any gcc2 internal prototype to avoid an error.  */
17696 #ifdef __cplusplus
17697 extern "C"
17698 {
17699 #endif
17700 /* We use char because int might match the return type of a gcc2
17701    builtin and then its argument prototype would still apply.  */
17702 char dlopen ();
17703 /* The GNU C library defines this for functions which it implements
17704     to always fail with ENOSYS.  Some functions are actually named
17705     something starting with __ and the normal name is an alias.  */
17706 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17707 choke me
17708 #else
17709 char (*f) () = dlopen;
17710 #endif
17711 #ifdef __cplusplus
17712 }
17713 #endif
17714
17715 int
17716 main ()
17717 {
17718 return f != dlopen;
17719   ;
17720   return 0;
17721 }
17722 _ACEOF
17723 rm -f conftest.$ac_objext conftest$ac_exeext
17724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17725   (eval $ac_link) 2>conftest.er1
17726   ac_status=$?
17727   grep -v '^ *+' conftest.er1 >conftest.err
17728   rm -f conftest.er1
17729   cat conftest.err >&5
17730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731   (exit $ac_status); } &&
17732          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734   (eval $ac_try) 2>&5
17735   ac_status=$?
17736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737   (exit $ac_status); }; } &&
17738          { ac_try='test -s conftest$ac_exeext'
17739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740   (eval $ac_try) 2>&5
17741   ac_status=$?
17742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743   (exit $ac_status); }; }; then
17744   ac_cv_func_dlopen=yes
17745 else
17746   echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17748
17749 ac_cv_func_dlopen=no
17750 fi
17751 rm -f conftest.err conftest.$ac_objext \
17752       conftest$ac_exeext conftest.$ac_ext
17753 fi
17754 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17755 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17756 if test $ac_cv_func_dlopen = yes; then
17757   lt_cv_dlopen="dlopen"
17758 else
17759   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17760 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17761 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17762   echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764   ac_check_lib_save_LIBS=$LIBS
17765 LIBS="-ldl  $LIBS"
17766 cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h.  */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h.  */
17772
17773 /* Override any gcc2 internal prototype to avoid an error.  */
17774 #ifdef __cplusplus
17775 extern "C"
17776 #endif
17777 /* We use char because int might match the return type of a gcc2
17778    builtin and then its argument prototype would still apply.  */
17779 char dlopen ();
17780 int
17781 main ()
17782 {
17783 dlopen ();
17784   ;
17785   return 0;
17786 }
17787 _ACEOF
17788 rm -f conftest.$ac_objext conftest$ac_exeext
17789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17790   (eval $ac_link) 2>conftest.er1
17791   ac_status=$?
17792   grep -v '^ *+' conftest.er1 >conftest.err
17793   rm -f conftest.er1
17794   cat conftest.err >&5
17795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796   (exit $ac_status); } &&
17797          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799   (eval $ac_try) 2>&5
17800   ac_status=$?
17801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802   (exit $ac_status); }; } &&
17803          { ac_try='test -s conftest$ac_exeext'
17804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805   (eval $ac_try) 2>&5
17806   ac_status=$?
17807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); }; }; then
17809   ac_cv_lib_dl_dlopen=yes
17810 else
17811   echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17813
17814 ac_cv_lib_dl_dlopen=no
17815 fi
17816 rm -f conftest.err conftest.$ac_objext \
17817       conftest$ac_exeext conftest.$ac_ext
17818 LIBS=$ac_check_lib_save_LIBS
17819 fi
17820 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17821 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17822 if test $ac_cv_lib_dl_dlopen = yes; then
17823   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17824 else
17825   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17826 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17827 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17828   echo $ECHO_N "(cached) $ECHO_C" >&6
17829 else
17830   ac_check_lib_save_LIBS=$LIBS
17831 LIBS="-lsvld  $LIBS"
17832 cat >conftest.$ac_ext <<_ACEOF
17833 /* confdefs.h.  */
17834 _ACEOF
17835 cat confdefs.h >>conftest.$ac_ext
17836 cat >>conftest.$ac_ext <<_ACEOF
17837 /* end confdefs.h.  */
17838
17839 /* Override any gcc2 internal prototype to avoid an error.  */
17840 #ifdef __cplusplus
17841 extern "C"
17842 #endif
17843 /* We use char because int might match the return type of a gcc2
17844    builtin and then its argument prototype would still apply.  */
17845 char dlopen ();
17846 int
17847 main ()
17848 {
17849 dlopen ();
17850   ;
17851   return 0;
17852 }
17853 _ACEOF
17854 rm -f conftest.$ac_objext conftest$ac_exeext
17855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17856   (eval $ac_link) 2>conftest.er1
17857   ac_status=$?
17858   grep -v '^ *+' conftest.er1 >conftest.err
17859   rm -f conftest.er1
17860   cat conftest.err >&5
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); } &&
17863          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865   (eval $ac_try) 2>&5
17866   ac_status=$?
17867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); }; } &&
17869          { ac_try='test -s conftest$ac_exeext'
17870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871   (eval $ac_try) 2>&5
17872   ac_status=$?
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); }; }; then
17875   ac_cv_lib_svld_dlopen=yes
17876 else
17877   echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17879
17880 ac_cv_lib_svld_dlopen=no
17881 fi
17882 rm -f conftest.err conftest.$ac_objext \
17883       conftest$ac_exeext conftest.$ac_ext
17884 LIBS=$ac_check_lib_save_LIBS
17885 fi
17886 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17887 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17888 if test $ac_cv_lib_svld_dlopen = yes; then
17889   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17890 else
17891   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17892 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17893 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17894   echo $ECHO_N "(cached) $ECHO_C" >&6
17895 else
17896   ac_check_lib_save_LIBS=$LIBS
17897 LIBS="-ldld  $LIBS"
17898 cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h.  */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h.  */
17904
17905 /* Override any gcc2 internal prototype to avoid an error.  */
17906 #ifdef __cplusplus
17907 extern "C"
17908 #endif
17909 /* We use char because int might match the return type of a gcc2
17910    builtin and then its argument prototype would still apply.  */
17911 char dld_link ();
17912 int
17913 main ()
17914 {
17915 dld_link ();
17916   ;
17917   return 0;
17918 }
17919 _ACEOF
17920 rm -f conftest.$ac_objext conftest$ac_exeext
17921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17922   (eval $ac_link) 2>conftest.er1
17923   ac_status=$?
17924   grep -v '^ *+' conftest.er1 >conftest.err
17925   rm -f conftest.er1
17926   cat conftest.err >&5
17927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928   (exit $ac_status); } &&
17929          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931   (eval $ac_try) 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); }; } &&
17935          { ac_try='test -s conftest$ac_exeext'
17936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937   (eval $ac_try) 2>&5
17938   ac_status=$?
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); }; }; then
17941   ac_cv_lib_dld_dld_link=yes
17942 else
17943   echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946 ac_cv_lib_dld_dld_link=no
17947 fi
17948 rm -f conftest.err conftest.$ac_objext \
17949       conftest$ac_exeext conftest.$ac_ext
17950 LIBS=$ac_check_lib_save_LIBS
17951 fi
17952 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17953 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17954 if test $ac_cv_lib_dld_dld_link = yes; then
17955   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17956 fi
17957
17958
17959 fi
17960
17961
17962 fi
17963
17964
17965 fi
17966
17967
17968 fi
17969
17970
17971 fi
17972
17973     ;;
17974   esac
17975
17976   if test "x$lt_cv_dlopen" != xno; then
17977     enable_dlopen=yes
17978   else
17979     enable_dlopen=no
17980   fi
17981
17982   case $lt_cv_dlopen in
17983   dlopen)
17984     save_CPPFLAGS="$CPPFLAGS"
17985     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17986
17987     save_LDFLAGS="$LDFLAGS"
17988     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17989
17990     save_LIBS="$LIBS"
17991     LIBS="$lt_cv_dlopen_libs $LIBS"
17992
17993     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17994 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17995 if test "${lt_cv_dlopen_self+set}" = set; then
17996   echo $ECHO_N "(cached) $ECHO_C" >&6
17997 else
17998           if test "$cross_compiling" = yes; then :
17999   lt_cv_dlopen_self=cross
18000 else
18001   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18002   lt_status=$lt_dlunknown
18003   cat > conftest.$ac_ext <<EOF
18004 #line 18004 "configure"
18005 #include "confdefs.h"
18006
18007 #if HAVE_DLFCN_H
18008 #include <dlfcn.h>
18009 #endif
18010
18011 #include <stdio.h>
18012
18013 #ifdef RTLD_GLOBAL
18014 #  define LT_DLGLOBAL           RTLD_GLOBAL
18015 #else
18016 #  ifdef DL_GLOBAL
18017 #    define LT_DLGLOBAL         DL_GLOBAL
18018 #  else
18019 #    define LT_DLGLOBAL         0
18020 #  endif
18021 #endif
18022
18023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18024    find out it does not work in some platform. */
18025 #ifndef LT_DLLAZY_OR_NOW
18026 #  ifdef RTLD_LAZY
18027 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18028 #  else
18029 #    ifdef DL_LAZY
18030 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18031 #    else
18032 #      ifdef RTLD_NOW
18033 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18034 #      else
18035 #        ifdef DL_NOW
18036 #          define LT_DLLAZY_OR_NOW      DL_NOW
18037 #        else
18038 #          define LT_DLLAZY_OR_NOW      0
18039 #        endif
18040 #      endif
18041 #    endif
18042 #  endif
18043 #endif
18044
18045 #ifdef __cplusplus
18046 extern "C" void exit (int);
18047 #endif
18048
18049 void fnord() { int i=42;}
18050 int main ()
18051 {
18052   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18053   int status = $lt_dlunknown;
18054
18055   if (self)
18056     {
18057       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18058       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18059       /* dlclose (self); */
18060     }
18061
18062     exit (status);
18063 }
18064 EOF
18065   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18066   (eval $ac_link) 2>&5
18067   ac_status=$?
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18070     (./conftest; exit; ) 2>/dev/null
18071     lt_status=$?
18072     case x$lt_status in
18073       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18074       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18075       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18076     esac
18077   else :
18078     # compilation failed
18079     lt_cv_dlopen_self=no
18080   fi
18081 fi
18082 rm -fr conftest*
18083
18084
18085 fi
18086 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18087 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18088
18089     if test "x$lt_cv_dlopen_self" = xyes; then
18090       LDFLAGS="$LDFLAGS $link_static_flag"
18091       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18092 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18093 if test "${lt_cv_dlopen_self_static+set}" = set; then
18094   echo $ECHO_N "(cached) $ECHO_C" >&6
18095 else
18096           if test "$cross_compiling" = yes; then :
18097   lt_cv_dlopen_self_static=cross
18098 else
18099   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18100   lt_status=$lt_dlunknown
18101   cat > conftest.$ac_ext <<EOF
18102 #line 18102 "configure"
18103 #include "confdefs.h"
18104
18105 #if HAVE_DLFCN_H
18106 #include <dlfcn.h>
18107 #endif
18108
18109 #include <stdio.h>
18110
18111 #ifdef RTLD_GLOBAL
18112 #  define LT_DLGLOBAL           RTLD_GLOBAL
18113 #else
18114 #  ifdef DL_GLOBAL
18115 #    define LT_DLGLOBAL         DL_GLOBAL
18116 #  else
18117 #    define LT_DLGLOBAL         0
18118 #  endif
18119 #endif
18120
18121 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18122    find out it does not work in some platform. */
18123 #ifndef LT_DLLAZY_OR_NOW
18124 #  ifdef RTLD_LAZY
18125 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18126 #  else
18127 #    ifdef DL_LAZY
18128 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18129 #    else
18130 #      ifdef RTLD_NOW
18131 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18132 #      else
18133 #        ifdef DL_NOW
18134 #          define LT_DLLAZY_OR_NOW      DL_NOW
18135 #        else
18136 #          define LT_DLLAZY_OR_NOW      0
18137 #        endif
18138 #      endif
18139 #    endif
18140 #  endif
18141 #endif
18142
18143 #ifdef __cplusplus
18144 extern "C" void exit (int);
18145 #endif
18146
18147 void fnord() { int i=42;}
18148 int main ()
18149 {
18150   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18151   int status = $lt_dlunknown;
18152
18153   if (self)
18154     {
18155       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18156       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18157       /* dlclose (self); */
18158     }
18159
18160     exit (status);
18161 }
18162 EOF
18163   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18164   (eval $ac_link) 2>&5
18165   ac_status=$?
18166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18168     (./conftest; exit; ) 2>/dev/null
18169     lt_status=$?
18170     case x$lt_status in
18171       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18172       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18173       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18174     esac
18175   else :
18176     # compilation failed
18177     lt_cv_dlopen_self_static=no
18178   fi
18179 fi
18180 rm -fr conftest*
18181
18182
18183 fi
18184 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18185 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18186     fi
18187
18188     CPPFLAGS="$save_CPPFLAGS"
18189     LDFLAGS="$save_LDFLAGS"
18190     LIBS="$save_LIBS"
18191     ;;
18192   esac
18193
18194   case $lt_cv_dlopen_self in
18195   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18196   *) enable_dlopen_self=unknown ;;
18197   esac
18198
18199   case $lt_cv_dlopen_self_static in
18200   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18201   *) enable_dlopen_self_static=unknown ;;
18202   esac
18203 fi
18204
18205
18206 # The else clause should only fire when bootstrapping the
18207 # libtool distribution, otherwise you forgot to ship ltmain.sh
18208 # with your package, and you will get complaints that there are
18209 # no rules to generate ltmain.sh.
18210 if test -f "$ltmain"; then
18211   # See if we are running on zsh, and set the options which allow our commands through
18212   # without removal of \ escapes.
18213   if test -n "${ZSH_VERSION+set}" ; then
18214     setopt NO_GLOB_SUBST
18215   fi
18216   # Now quote all the things that may contain metacharacters while being
18217   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18218   # variables and quote the copies for generation of the libtool script.
18219   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18220     SED SHELL STRIP \
18221     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18222     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18223     deplibs_check_method reload_flag reload_cmds need_locks \
18224     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18225     lt_cv_sys_global_symbol_to_c_name_address \
18226     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18227     old_postinstall_cmds old_postuninstall_cmds \
18228     compiler_GCJ \
18229     CC_GCJ \
18230     LD_GCJ \
18231     lt_prog_compiler_wl_GCJ \
18232     lt_prog_compiler_pic_GCJ \
18233     lt_prog_compiler_static_GCJ \
18234     lt_prog_compiler_no_builtin_flag_GCJ \
18235     export_dynamic_flag_spec_GCJ \
18236     thread_safe_flag_spec_GCJ \
18237     whole_archive_flag_spec_GCJ \
18238     enable_shared_with_static_runtimes_GCJ \
18239     old_archive_cmds_GCJ \
18240     old_archive_from_new_cmds_GCJ \
18241     predep_objects_GCJ \
18242     postdep_objects_GCJ \
18243     predeps_GCJ \
18244     postdeps_GCJ \
18245     compiler_lib_search_path_GCJ \
18246     archive_cmds_GCJ \
18247     archive_expsym_cmds_GCJ \
18248     postinstall_cmds_GCJ \
18249     postuninstall_cmds_GCJ \
18250     old_archive_from_expsyms_cmds_GCJ \
18251     allow_undefined_flag_GCJ \
18252     no_undefined_flag_GCJ \
18253     export_symbols_cmds_GCJ \
18254     hardcode_libdir_flag_spec_GCJ \
18255     hardcode_libdir_flag_spec_ld_GCJ \
18256     hardcode_libdir_separator_GCJ \
18257     hardcode_automatic_GCJ \
18258     module_cmds_GCJ \
18259     module_expsym_cmds_GCJ \
18260     lt_cv_prog_compiler_c_o_GCJ \
18261     exclude_expsyms_GCJ \
18262     include_expsyms_GCJ; do
18263
18264     case $var in
18265     old_archive_cmds_GCJ | \
18266     old_archive_from_new_cmds_GCJ | \
18267     archive_cmds_GCJ | \
18268     archive_expsym_cmds_GCJ | \
18269     module_cmds_GCJ | \
18270     module_expsym_cmds_GCJ | \
18271     old_archive_from_expsyms_cmds_GCJ | \
18272     export_symbols_cmds_GCJ | \
18273     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18274     postinstall_cmds | postuninstall_cmds | \
18275     old_postinstall_cmds | old_postuninstall_cmds | \
18276     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18277       # Double-quote double-evaled strings.
18278       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18279       ;;
18280     *)
18281       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18282       ;;
18283     esac
18284   done
18285
18286   case $lt_echo in
18287   *'\$0 --fallback-echo"')
18288     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18289     ;;
18290   esac
18291
18292 cfgfile="$ofile"
18293
18294   cat <<__EOF__ >> "$cfgfile"
18295 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18296
18297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18298
18299 # Shell to use when invoking shell scripts.
18300 SHELL=$lt_SHELL
18301
18302 # Whether or not to build shared libraries.
18303 build_libtool_libs=$enable_shared
18304
18305 # Whether or not to build static libraries.
18306 build_old_libs=$enable_static
18307
18308 # Whether or not to add -lc for building shared libraries.
18309 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18310
18311 # Whether or not to disallow shared libs when runtime libs are static
18312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18313
18314 # Whether or not to optimize for fast installation.
18315 fast_install=$enable_fast_install
18316
18317 # The host system.
18318 host_alias=$host_alias
18319 host=$host
18320
18321 # An echo program that does not interpret backslashes.
18322 echo=$lt_echo
18323
18324 # The archiver.
18325 AR=$lt_AR
18326 AR_FLAGS=$lt_AR_FLAGS
18327
18328 # A C compiler.
18329 LTCC=$lt_LTCC
18330
18331 # A language-specific compiler.
18332 CC=$lt_compiler_GCJ
18333
18334 # Is the compiler the GNU C compiler?
18335 with_gcc=$GCC_GCJ
18336
18337 # An ERE matcher.
18338 EGREP=$lt_EGREP
18339
18340 # The linker used to build libraries.
18341 LD=$lt_LD_GCJ
18342
18343 # Whether we need hard or soft links.
18344 LN_S=$lt_LN_S
18345
18346 # A BSD-compatible nm program.
18347 NM=$lt_NM
18348
18349 # A symbol stripping program
18350 STRIP=$lt_STRIP
18351
18352 # Used to examine libraries when file_magic_cmd begins "file"
18353 MAGIC_CMD=$MAGIC_CMD
18354
18355 # Used on cygwin: DLL creation program.
18356 DLLTOOL="$DLLTOOL"
18357
18358 # Used on cygwin: object dumper.
18359 OBJDUMP="$OBJDUMP"
18360
18361 # Used on cygwin: assembler.
18362 AS="$AS"
18363
18364 # The name of the directory that contains temporary libtool files.
18365 objdir=$objdir
18366
18367 # How to create reloadable object files.
18368 reload_flag=$lt_reload_flag
18369 reload_cmds=$lt_reload_cmds
18370
18371 # How to pass a linker flag through the compiler.
18372 wl=$lt_lt_prog_compiler_wl_GCJ
18373
18374 # Object file suffix (normally "o").
18375 objext="$ac_objext"
18376
18377 # Old archive suffix (normally "a").
18378 libext="$libext"
18379
18380 # Shared library suffix (normally ".so").
18381 shrext_cmds='$shrext_cmds'
18382
18383 # Executable file suffix (normally "").
18384 exeext="$exeext"
18385
18386 # Additional compiler flags for building library objects.
18387 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18388 pic_mode=$pic_mode
18389
18390 # What is the maximum length of a command?
18391 max_cmd_len=$lt_cv_sys_max_cmd_len
18392
18393 # Does compiler simultaneously support -c and -o options?
18394 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18395
18396 # Must we lock files when doing compilation ?
18397 need_locks=$lt_need_locks
18398
18399 # Do we need the lib prefix for modules?
18400 need_lib_prefix=$need_lib_prefix
18401
18402 # Do we need a version for libraries?
18403 need_version=$need_version
18404
18405 # Whether dlopen is supported.
18406 dlopen_support=$enable_dlopen
18407
18408 # Whether dlopen of programs is supported.
18409 dlopen_self=$enable_dlopen_self
18410
18411 # Whether dlopen of statically linked programs is supported.
18412 dlopen_self_static=$enable_dlopen_self_static
18413
18414 # Compiler flag to prevent dynamic linking.
18415 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18416
18417 # Compiler flag to turn off builtin functions.
18418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18419
18420 # Compiler flag to allow reflexive dlopens.
18421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18422
18423 # Compiler flag to generate shared objects directly from archives.
18424 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18425
18426 # Compiler flag to generate thread-safe objects.
18427 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18428
18429 # Library versioning type.
18430 version_type=$version_type
18431
18432 # Format of library name prefix.
18433 libname_spec=$lt_libname_spec
18434
18435 # List of archive names.  First name is the real one, the rest are links.
18436 # The last name is the one that the linker finds with -lNAME.
18437 library_names_spec=$lt_library_names_spec
18438
18439 # The coded name of the library, if different from the real name.
18440 soname_spec=$lt_soname_spec
18441
18442 # Commands used to build and install an old-style archive.
18443 RANLIB=$lt_RANLIB
18444 old_archive_cmds=$lt_old_archive_cmds_GCJ
18445 old_postinstall_cmds=$lt_old_postinstall_cmds
18446 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18447
18448 # Create an old-style archive from a shared archive.
18449 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18450
18451 # Create a temporary old-style archive to link instead of a shared archive.
18452 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18453
18454 # Commands used to build and install a shared archive.
18455 archive_cmds=$lt_archive_cmds_GCJ
18456 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18457 postinstall_cmds=$lt_postinstall_cmds
18458 postuninstall_cmds=$lt_postuninstall_cmds
18459
18460 # Commands used to build a loadable module (assumed same as above if empty)
18461 module_cmds=$lt_module_cmds_GCJ
18462 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18463
18464 # Commands to strip libraries.
18465 old_striplib=$lt_old_striplib
18466 striplib=$lt_striplib
18467
18468 # Dependencies to place before the objects being linked to create a
18469 # shared library.
18470 predep_objects=$lt_predep_objects_GCJ
18471
18472 # Dependencies to place after the objects being linked to create a
18473 # shared library.
18474 postdep_objects=$lt_postdep_objects_GCJ
18475
18476 # Dependencies to place before the objects being linked to create a
18477 # shared library.
18478 predeps=$lt_predeps_GCJ
18479
18480 # Dependencies to place after the objects being linked to create a
18481 # shared library.
18482 postdeps=$lt_postdeps_GCJ
18483
18484 # The library search path used internally by the compiler when linking
18485 # a shared library.
18486 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18487
18488 # Method to check whether dependent libraries are shared objects.
18489 deplibs_check_method=$lt_deplibs_check_method
18490
18491 # Command to use when deplibs_check_method == file_magic.
18492 file_magic_cmd=$lt_file_magic_cmd
18493
18494 # Flag that allows shared libraries with undefined symbols to be built.
18495 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18496
18497 # Flag that forces no undefined symbols.
18498 no_undefined_flag=$lt_no_undefined_flag_GCJ
18499
18500 # Commands used to finish a libtool library installation in a directory.
18501 finish_cmds=$lt_finish_cmds
18502
18503 # Same as above, but a single script fragment to be evaled but not shown.
18504 finish_eval=$lt_finish_eval
18505
18506 # Take the output of nm and produce a listing of raw symbols and C names.
18507 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18508
18509 # Transform the output of nm in a proper C declaration
18510 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18511
18512 # Transform the output of nm in a C name address pair
18513 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18514
18515 # This is the shared library runtime path variable.
18516 runpath_var=$runpath_var
18517
18518 # This is the shared library path variable.
18519 shlibpath_var=$shlibpath_var
18520
18521 # Is shlibpath searched before the hard-coded library search path?
18522 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18523
18524 # How to hardcode a shared library path into an executable.
18525 hardcode_action=$hardcode_action_GCJ
18526
18527 # Whether we should hardcode library paths into libraries.
18528 hardcode_into_libs=$hardcode_into_libs
18529
18530 # Flag to hardcode \$libdir into a binary during linking.
18531 # This must work even if \$libdir does not exist.
18532 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18533
18534 # If ld is used when linking, flag to hardcode \$libdir into
18535 # a binary during linking. This must work even if \$libdir does
18536 # not exist.
18537 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18538
18539 # Whether we need a single -rpath flag with a separated argument.
18540 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18541
18542 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18543 # resulting binary.
18544 hardcode_direct=$hardcode_direct_GCJ
18545
18546 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18547 # resulting binary.
18548 hardcode_minus_L=$hardcode_minus_L_GCJ
18549
18550 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18551 # the resulting binary.
18552 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18553
18554 # Set to yes if building a shared library automatically hardcodes DIR into the library
18555 # and all subsequent libraries and executables linked against it.
18556 hardcode_automatic=$hardcode_automatic_GCJ
18557
18558 # Variables whose values should be saved in libtool wrapper scripts and
18559 # restored at relink time.
18560 variables_saved_for_relink="$variables_saved_for_relink"
18561
18562 # Whether libtool must link a program against all its dependency libraries.
18563 link_all_deplibs=$link_all_deplibs_GCJ
18564
18565 # Compile-time system search path for libraries
18566 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18567
18568 # Run-time system search path for libraries
18569 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18570
18571 # Fix the shell variable \$srcfile for the compiler.
18572 fix_srcfile_path="$fix_srcfile_path_GCJ"
18573
18574 # Set to yes if exported symbols are required.
18575 always_export_symbols=$always_export_symbols_GCJ
18576
18577 # The commands to list exported symbols.
18578 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18579
18580 # The commands to extract the exported symbol list from a shared archive.
18581 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18582
18583 # Symbols that should not be listed in the preloaded symbols.
18584 exclude_expsyms=$lt_exclude_expsyms_GCJ
18585
18586 # Symbols that must always be exported.
18587 include_expsyms=$lt_include_expsyms_GCJ
18588
18589 # ### END LIBTOOL TAG CONFIG: $tagname
18590
18591 __EOF__
18592
18593
18594 else
18595   # If there is no Makefile yet, we rely on a make rule to execute
18596   # `config.status --recheck' to rerun these tests and create the
18597   # libtool script then.
18598   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18599   if test -f "$ltmain_in"; then
18600     test -f Makefile && make "$ltmain"
18601   fi
18602 fi
18603
18604
18605 ac_ext=c
18606 ac_cpp='$CPP $CPPFLAGS'
18607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18610
18611 CC="$lt_save_CC"
18612
18613         else
18614           tagname=""
18615         fi
18616         ;;
18617
18618       RC)
18619
18620
18621
18622 # Source file extension for RC test sources.
18623 ac_ext=rc
18624
18625 # Object file extension for compiled RC test sources.
18626 objext=o
18627 objext_RC=$objext
18628
18629 # Code to be used in simple compile tests
18630 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18631
18632 # Code to be used in simple link tests
18633 lt_simple_link_test_code="$lt_simple_compile_test_code"
18634
18635 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18636
18637 # If no C compiler was specified, use CC.
18638 LTCC=${LTCC-"$CC"}
18639
18640 # Allow CC to be a program name with arguments.
18641 compiler=$CC
18642
18643
18644 # Allow CC to be a program name with arguments.
18645 lt_save_CC="$CC"
18646 CC=${RC-"windres"}
18647 compiler=$CC
18648 compiler_RC=$CC
18649 lt_cv_prog_compiler_c_o_RC=yes
18650
18651 # The else clause should only fire when bootstrapping the
18652 # libtool distribution, otherwise you forgot to ship ltmain.sh
18653 # with your package, and you will get complaints that there are
18654 # no rules to generate ltmain.sh.
18655 if test -f "$ltmain"; then
18656   # See if we are running on zsh, and set the options which allow our commands through
18657   # without removal of \ escapes.
18658   if test -n "${ZSH_VERSION+set}" ; then
18659     setopt NO_GLOB_SUBST
18660   fi
18661   # Now quote all the things that may contain metacharacters while being
18662   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18663   # variables and quote the copies for generation of the libtool script.
18664   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18665     SED SHELL STRIP \
18666     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18667     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18668     deplibs_check_method reload_flag reload_cmds need_locks \
18669     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18670     lt_cv_sys_global_symbol_to_c_name_address \
18671     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18672     old_postinstall_cmds old_postuninstall_cmds \
18673     compiler_RC \
18674     CC_RC \
18675     LD_RC \
18676     lt_prog_compiler_wl_RC \
18677     lt_prog_compiler_pic_RC \
18678     lt_prog_compiler_static_RC \
18679     lt_prog_compiler_no_builtin_flag_RC \
18680     export_dynamic_flag_spec_RC \
18681     thread_safe_flag_spec_RC \
18682     whole_archive_flag_spec_RC \
18683     enable_shared_with_static_runtimes_RC \
18684     old_archive_cmds_RC \
18685     old_archive_from_new_cmds_RC \
18686     predep_objects_RC \
18687     postdep_objects_RC \
18688     predeps_RC \
18689     postdeps_RC \
18690     compiler_lib_search_path_RC \
18691     archive_cmds_RC \
18692     archive_expsym_cmds_RC \
18693     postinstall_cmds_RC \
18694     postuninstall_cmds_RC \
18695     old_archive_from_expsyms_cmds_RC \
18696     allow_undefined_flag_RC \
18697     no_undefined_flag_RC \
18698     export_symbols_cmds_RC \
18699     hardcode_libdir_flag_spec_RC \
18700     hardcode_libdir_flag_spec_ld_RC \
18701     hardcode_libdir_separator_RC \
18702     hardcode_automatic_RC \
18703     module_cmds_RC \
18704     module_expsym_cmds_RC \
18705     lt_cv_prog_compiler_c_o_RC \
18706     exclude_expsyms_RC \
18707     include_expsyms_RC; do
18708
18709     case $var in
18710     old_archive_cmds_RC | \
18711     old_archive_from_new_cmds_RC | \
18712     archive_cmds_RC | \
18713     archive_expsym_cmds_RC | \
18714     module_cmds_RC | \
18715     module_expsym_cmds_RC | \
18716     old_archive_from_expsyms_cmds_RC | \
18717     export_symbols_cmds_RC | \
18718     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18719     postinstall_cmds | postuninstall_cmds | \
18720     old_postinstall_cmds | old_postuninstall_cmds | \
18721     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18722       # Double-quote double-evaled strings.
18723       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18724       ;;
18725     *)
18726       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18727       ;;
18728     esac
18729   done
18730
18731   case $lt_echo in
18732   *'\$0 --fallback-echo"')
18733     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18734     ;;
18735   esac
18736
18737 cfgfile="$ofile"
18738
18739   cat <<__EOF__ >> "$cfgfile"
18740 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18741
18742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18743
18744 # Shell to use when invoking shell scripts.
18745 SHELL=$lt_SHELL
18746
18747 # Whether or not to build shared libraries.
18748 build_libtool_libs=$enable_shared
18749
18750 # Whether or not to build static libraries.
18751 build_old_libs=$enable_static
18752
18753 # Whether or not to add -lc for building shared libraries.
18754 build_libtool_need_lc=$archive_cmds_need_lc_RC
18755
18756 # Whether or not to disallow shared libs when runtime libs are static
18757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18758
18759 # Whether or not to optimize for fast installation.
18760 fast_install=$enable_fast_install
18761
18762 # The host system.
18763 host_alias=$host_alias
18764 host=$host
18765
18766 # An echo program that does not interpret backslashes.
18767 echo=$lt_echo
18768
18769 # The archiver.
18770 AR=$lt_AR
18771 AR_FLAGS=$lt_AR_FLAGS
18772
18773 # A C compiler.
18774 LTCC=$lt_LTCC
18775
18776 # A language-specific compiler.
18777 CC=$lt_compiler_RC
18778
18779 # Is the compiler the GNU C compiler?
18780 with_gcc=$GCC_RC
18781
18782 # An ERE matcher.
18783 EGREP=$lt_EGREP
18784
18785 # The linker used to build libraries.
18786 LD=$lt_LD_RC
18787
18788 # Whether we need hard or soft links.
18789 LN_S=$lt_LN_S
18790
18791 # A BSD-compatible nm program.
18792 NM=$lt_NM
18793
18794 # A symbol stripping program
18795 STRIP=$lt_STRIP
18796
18797 # Used to examine libraries when file_magic_cmd begins "file"
18798 MAGIC_CMD=$MAGIC_CMD
18799
18800 # Used on cygwin: DLL creation program.
18801 DLLTOOL="$DLLTOOL"
18802
18803 # Used on cygwin: object dumper.
18804 OBJDUMP="$OBJDUMP"
18805
18806 # Used on cygwin: assembler.
18807 AS="$AS"
18808
18809 # The name of the directory that contains temporary libtool files.
18810 objdir=$objdir
18811
18812 # How to create reloadable object files.
18813 reload_flag=$lt_reload_flag
18814 reload_cmds=$lt_reload_cmds
18815
18816 # How to pass a linker flag through the compiler.
18817 wl=$lt_lt_prog_compiler_wl_RC
18818
18819 # Object file suffix (normally "o").
18820 objext="$ac_objext"
18821
18822 # Old archive suffix (normally "a").
18823 libext="$libext"
18824
18825 # Shared library suffix (normally ".so").
18826 shrext_cmds='$shrext_cmds'
18827
18828 # Executable file suffix (normally "").
18829 exeext="$exeext"
18830
18831 # Additional compiler flags for building library objects.
18832 pic_flag=$lt_lt_prog_compiler_pic_RC
18833 pic_mode=$pic_mode
18834
18835 # What is the maximum length of a command?
18836 max_cmd_len=$lt_cv_sys_max_cmd_len
18837
18838 # Does compiler simultaneously support -c and -o options?
18839 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18840
18841 # Must we lock files when doing compilation ?
18842 need_locks=$lt_need_locks
18843
18844 # Do we need the lib prefix for modules?
18845 need_lib_prefix=$need_lib_prefix
18846
18847 # Do we need a version for libraries?
18848 need_version=$need_version
18849
18850 # Whether dlopen is supported.
18851 dlopen_support=$enable_dlopen
18852
18853 # Whether dlopen of programs is supported.
18854 dlopen_self=$enable_dlopen_self
18855
18856 # Whether dlopen of statically linked programs is supported.
18857 dlopen_self_static=$enable_dlopen_self_static
18858
18859 # Compiler flag to prevent dynamic linking.
18860 link_static_flag=$lt_lt_prog_compiler_static_RC
18861
18862 # Compiler flag to turn off builtin functions.
18863 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18864
18865 # Compiler flag to allow reflexive dlopens.
18866 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18867
18868 # Compiler flag to generate shared objects directly from archives.
18869 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18870
18871 # Compiler flag to generate thread-safe objects.
18872 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18873
18874 # Library versioning type.
18875 version_type=$version_type
18876
18877 # Format of library name prefix.
18878 libname_spec=$lt_libname_spec
18879
18880 # List of archive names.  First name is the real one, the rest are links.
18881 # The last name is the one that the linker finds with -lNAME.
18882 library_names_spec=$lt_library_names_spec
18883
18884 # The coded name of the library, if different from the real name.
18885 soname_spec=$lt_soname_spec
18886
18887 # Commands used to build and install an old-style archive.
18888 RANLIB=$lt_RANLIB
18889 old_archive_cmds=$lt_old_archive_cmds_RC
18890 old_postinstall_cmds=$lt_old_postinstall_cmds
18891 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18892
18893 # Create an old-style archive from a shared archive.
18894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18895
18896 # Create a temporary old-style archive to link instead of a shared archive.
18897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18898
18899 # Commands used to build and install a shared archive.
18900 archive_cmds=$lt_archive_cmds_RC
18901 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18902 postinstall_cmds=$lt_postinstall_cmds
18903 postuninstall_cmds=$lt_postuninstall_cmds
18904
18905 # Commands used to build a loadable module (assumed same as above if empty)
18906 module_cmds=$lt_module_cmds_RC
18907 module_expsym_cmds=$lt_module_expsym_cmds_RC
18908
18909 # Commands to strip libraries.
18910 old_striplib=$lt_old_striplib
18911 striplib=$lt_striplib
18912
18913 # Dependencies to place before the objects being linked to create a
18914 # shared library.
18915 predep_objects=$lt_predep_objects_RC
18916
18917 # Dependencies to place after the objects being linked to create a
18918 # shared library.
18919 postdep_objects=$lt_postdep_objects_RC
18920
18921 # Dependencies to place before the objects being linked to create a
18922 # shared library.
18923 predeps=$lt_predeps_RC
18924
18925 # Dependencies to place after the objects being linked to create a
18926 # shared library.
18927 postdeps=$lt_postdeps_RC
18928
18929 # The library search path used internally by the compiler when linking
18930 # a shared library.
18931 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18932
18933 # Method to check whether dependent libraries are shared objects.
18934 deplibs_check_method=$lt_deplibs_check_method
18935
18936 # Command to use when deplibs_check_method == file_magic.
18937 file_magic_cmd=$lt_file_magic_cmd
18938
18939 # Flag that allows shared libraries with undefined symbols to be built.
18940 allow_undefined_flag=$lt_allow_undefined_flag_RC
18941
18942 # Flag that forces no undefined symbols.
18943 no_undefined_flag=$lt_no_undefined_flag_RC
18944
18945 # Commands used to finish a libtool library installation in a directory.
18946 finish_cmds=$lt_finish_cmds
18947
18948 # Same as above, but a single script fragment to be evaled but not shown.
18949 finish_eval=$lt_finish_eval
18950
18951 # Take the output of nm and produce a listing of raw symbols and C names.
18952 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18953
18954 # Transform the output of nm in a proper C declaration
18955 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18956
18957 # Transform the output of nm in a C name address pair
18958 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18959
18960 # This is the shared library runtime path variable.
18961 runpath_var=$runpath_var
18962
18963 # This is the shared library path variable.
18964 shlibpath_var=$shlibpath_var
18965
18966 # Is shlibpath searched before the hard-coded library search path?
18967 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18968
18969 # How to hardcode a shared library path into an executable.
18970 hardcode_action=$hardcode_action_RC
18971
18972 # Whether we should hardcode library paths into libraries.
18973 hardcode_into_libs=$hardcode_into_libs
18974
18975 # Flag to hardcode \$libdir into a binary during linking.
18976 # This must work even if \$libdir does not exist.
18977 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18978
18979 # If ld is used when linking, flag to hardcode \$libdir into
18980 # a binary during linking. This must work even if \$libdir does
18981 # not exist.
18982 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18983
18984 # Whether we need a single -rpath flag with a separated argument.
18985 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18986
18987 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18988 # resulting binary.
18989 hardcode_direct=$hardcode_direct_RC
18990
18991 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18992 # resulting binary.
18993 hardcode_minus_L=$hardcode_minus_L_RC
18994
18995 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18996 # the resulting binary.
18997 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18998
18999 # Set to yes if building a shared library automatically hardcodes DIR into the library
19000 # and all subsequent libraries and executables linked against it.
19001 hardcode_automatic=$hardcode_automatic_RC
19002
19003 # Variables whose values should be saved in libtool wrapper scripts and
19004 # restored at relink time.
19005 variables_saved_for_relink="$variables_saved_for_relink"
19006
19007 # Whether libtool must link a program against all its dependency libraries.
19008 link_all_deplibs=$link_all_deplibs_RC
19009
19010 # Compile-time system search path for libraries
19011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19012
19013 # Run-time system search path for libraries
19014 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19015
19016 # Fix the shell variable \$srcfile for the compiler.
19017 fix_srcfile_path="$fix_srcfile_path_RC"
19018
19019 # Set to yes if exported symbols are required.
19020 always_export_symbols=$always_export_symbols_RC
19021
19022 # The commands to list exported symbols.
19023 export_symbols_cmds=$lt_export_symbols_cmds_RC
19024
19025 # The commands to extract the exported symbol list from a shared archive.
19026 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19027
19028 # Symbols that should not be listed in the preloaded symbols.
19029 exclude_expsyms=$lt_exclude_expsyms_RC
19030
19031 # Symbols that must always be exported.
19032 include_expsyms=$lt_include_expsyms_RC
19033
19034 # ### END LIBTOOL TAG CONFIG: $tagname
19035
19036 __EOF__
19037
19038
19039 else
19040   # If there is no Makefile yet, we rely on a make rule to execute
19041   # `config.status --recheck' to rerun these tests and create the
19042   # libtool script then.
19043   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19044   if test -f "$ltmain_in"; then
19045     test -f Makefile && make "$ltmain"
19046   fi
19047 fi
19048
19049
19050 ac_ext=c
19051 ac_cpp='$CPP $CPPFLAGS'
19052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19055
19056 CC="$lt_save_CC"
19057
19058         ;;
19059
19060       *)
19061         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19062 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19063    { (exit 1); exit 1; }; }
19064         ;;
19065       esac
19066
19067       # Append the new tag name to the list of available tags.
19068       if test -n "$tagname" ; then
19069       available_tags="$available_tags $tagname"
19070     fi
19071     fi
19072   done
19073   IFS="$lt_save_ifs"
19074
19075   # Now substitute the updated list of available tags.
19076   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19077     mv "${ofile}T" "$ofile"
19078     chmod +x "$ofile"
19079   else
19080     rm -f "${ofile}T"
19081     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19082 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19083    { (exit 1); exit 1; }; }
19084   fi
19085 fi
19086
19087
19088
19089 # This can be used to rebuild libtool when needed
19090 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19091
19092 # Always use our own libtool.
19093 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19094
19095 # Prevent multiple expansion
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117 # declare the modules (no optional module)
19118
19119 ACLOCAL="$ACLOCAL -I acmacro"
19120
19121
19122 ac_ext=c
19123 ac_cpp='$CPP $CPPFLAGS'
19124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19127 if test -n "$ac_tool_prefix"; then
19128   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19129 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19130 echo "$as_me:$LINENO: checking for $ac_word" >&5
19131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19132 if test "${ac_cv_prog_CC+set}" = set; then
19133   echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135   if test -n "$CC"; then
19136   ac_cv_prog_CC="$CC" # Let the user override the test.
19137 else
19138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19139 for as_dir in $PATH
19140 do
19141   IFS=$as_save_IFS
19142   test -z "$as_dir" && as_dir=.
19143   for ac_exec_ext in '' $ac_executable_extensions; do
19144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19145     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19147     break 2
19148   fi
19149 done
19150 done
19151
19152 fi
19153 fi
19154 CC=$ac_cv_prog_CC
19155 if test -n "$CC"; then
19156   echo "$as_me:$LINENO: result: $CC" >&5
19157 echo "${ECHO_T}$CC" >&6
19158 else
19159   echo "$as_me:$LINENO: result: no" >&5
19160 echo "${ECHO_T}no" >&6
19161 fi
19162
19163 fi
19164 if test -z "$ac_cv_prog_CC"; then
19165   ac_ct_CC=$CC
19166   # Extract the first word of "gcc", so it can be a program name with args.
19167 set dummy gcc; ac_word=$2
19168 echo "$as_me:$LINENO: checking for $ac_word" >&5
19169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19170 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19171   echo $ECHO_N "(cached) $ECHO_C" >&6
19172 else
19173   if test -n "$ac_ct_CC"; then
19174   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19175 else
19176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19177 for as_dir in $PATH
19178 do
19179   IFS=$as_save_IFS
19180   test -z "$as_dir" && as_dir=.
19181   for ac_exec_ext in '' $ac_executable_extensions; do
19182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19183     ac_cv_prog_ac_ct_CC="gcc"
19184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19185     break 2
19186   fi
19187 done
19188 done
19189
19190 fi
19191 fi
19192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19193 if test -n "$ac_ct_CC"; then
19194   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19195 echo "${ECHO_T}$ac_ct_CC" >&6
19196 else
19197   echo "$as_me:$LINENO: result: no" >&5
19198 echo "${ECHO_T}no" >&6
19199 fi
19200
19201   CC=$ac_ct_CC
19202 else
19203   CC="$ac_cv_prog_CC"
19204 fi
19205
19206 if test -z "$CC"; then
19207   if test -n "$ac_tool_prefix"; then
19208   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19209 set dummy ${ac_tool_prefix}cc; ac_word=$2
19210 echo "$as_me:$LINENO: checking for $ac_word" >&5
19211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19212 if test "${ac_cv_prog_CC+set}" = set; then
19213   echo $ECHO_N "(cached) $ECHO_C" >&6
19214 else
19215   if test -n "$CC"; then
19216   ac_cv_prog_CC="$CC" # Let the user override the test.
19217 else
19218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19219 for as_dir in $PATH
19220 do
19221   IFS=$as_save_IFS
19222   test -z "$as_dir" && as_dir=.
19223   for ac_exec_ext in '' $ac_executable_extensions; do
19224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19225     ac_cv_prog_CC="${ac_tool_prefix}cc"
19226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19227     break 2
19228   fi
19229 done
19230 done
19231
19232 fi
19233 fi
19234 CC=$ac_cv_prog_CC
19235 if test -n "$CC"; then
19236   echo "$as_me:$LINENO: result: $CC" >&5
19237 echo "${ECHO_T}$CC" >&6
19238 else
19239   echo "$as_me:$LINENO: result: no" >&5
19240 echo "${ECHO_T}no" >&6
19241 fi
19242
19243 fi
19244 if test -z "$ac_cv_prog_CC"; then
19245   ac_ct_CC=$CC
19246   # Extract the first word of "cc", so it can be a program name with args.
19247 set dummy cc; ac_word=$2
19248 echo "$as_me:$LINENO: checking for $ac_word" >&5
19249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19251   echo $ECHO_N "(cached) $ECHO_C" >&6
19252 else
19253   if test -n "$ac_ct_CC"; then
19254   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19255 else
19256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19257 for as_dir in $PATH
19258 do
19259   IFS=$as_save_IFS
19260   test -z "$as_dir" && as_dir=.
19261   for ac_exec_ext in '' $ac_executable_extensions; do
19262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19263     ac_cv_prog_ac_ct_CC="cc"
19264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19265     break 2
19266   fi
19267 done
19268 done
19269
19270 fi
19271 fi
19272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19273 if test -n "$ac_ct_CC"; then
19274   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19275 echo "${ECHO_T}$ac_ct_CC" >&6
19276 else
19277   echo "$as_me:$LINENO: result: no" >&5
19278 echo "${ECHO_T}no" >&6
19279 fi
19280
19281   CC=$ac_ct_CC
19282 else
19283   CC="$ac_cv_prog_CC"
19284 fi
19285
19286 fi
19287 if test -z "$CC"; then
19288   # Extract the first word of "cc", so it can be a program name with args.
19289 set dummy cc; ac_word=$2
19290 echo "$as_me:$LINENO: checking for $ac_word" >&5
19291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19292 if test "${ac_cv_prog_CC+set}" = set; then
19293   echo $ECHO_N "(cached) $ECHO_C" >&6
19294 else
19295   if test -n "$CC"; then
19296   ac_cv_prog_CC="$CC" # Let the user override the test.
19297 else
19298   ac_prog_rejected=no
19299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19300 for as_dir in $PATH
19301 do
19302   IFS=$as_save_IFS
19303   test -z "$as_dir" && as_dir=.
19304   for ac_exec_ext in '' $ac_executable_extensions; do
19305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19306     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19307        ac_prog_rejected=yes
19308        continue
19309      fi
19310     ac_cv_prog_CC="cc"
19311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19312     break 2
19313   fi
19314 done
19315 done
19316
19317 if test $ac_prog_rejected = yes; then
19318   # We found a bogon in the path, so make sure we never use it.
19319   set dummy $ac_cv_prog_CC
19320   shift
19321   if test $# != 0; then
19322     # We chose a different compiler from the bogus one.
19323     # However, it has the same basename, so the bogon will be chosen
19324     # first if we set CC to just the basename; use the full file name.
19325     shift
19326     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19327   fi
19328 fi
19329 fi
19330 fi
19331 CC=$ac_cv_prog_CC
19332 if test -n "$CC"; then
19333   echo "$as_me:$LINENO: result: $CC" >&5
19334 echo "${ECHO_T}$CC" >&6
19335 else
19336   echo "$as_me:$LINENO: result: no" >&5
19337 echo "${ECHO_T}no" >&6
19338 fi
19339
19340 fi
19341 if test -z "$CC"; then
19342   if test -n "$ac_tool_prefix"; then
19343   for ac_prog in cl
19344   do
19345     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19347 echo "$as_me:$LINENO: checking for $ac_word" >&5
19348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19349 if test "${ac_cv_prog_CC+set}" = set; then
19350   echo $ECHO_N "(cached) $ECHO_C" >&6
19351 else
19352   if test -n "$CC"; then
19353   ac_cv_prog_CC="$CC" # Let the user override the test.
19354 else
19355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19356 for as_dir in $PATH
19357 do
19358   IFS=$as_save_IFS
19359   test -z "$as_dir" && as_dir=.
19360   for ac_exec_ext in '' $ac_executable_extensions; do
19361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19362     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19364     break 2
19365   fi
19366 done
19367 done
19368
19369 fi
19370 fi
19371 CC=$ac_cv_prog_CC
19372 if test -n "$CC"; then
19373   echo "$as_me:$LINENO: result: $CC" >&5
19374 echo "${ECHO_T}$CC" >&6
19375 else
19376   echo "$as_me:$LINENO: result: no" >&5
19377 echo "${ECHO_T}no" >&6
19378 fi
19379
19380     test -n "$CC" && break
19381   done
19382 fi
19383 if test -z "$CC"; then
19384   ac_ct_CC=$CC
19385   for ac_prog in cl
19386 do
19387   # Extract the first word of "$ac_prog", so it can be a program name with args.
19388 set dummy $ac_prog; ac_word=$2
19389 echo "$as_me:$LINENO: checking for $ac_word" >&5
19390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19391 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19392   echo $ECHO_N "(cached) $ECHO_C" >&6
19393 else
19394   if test -n "$ac_ct_CC"; then
19395   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19396 else
19397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19398 for as_dir in $PATH
19399 do
19400   IFS=$as_save_IFS
19401   test -z "$as_dir" && as_dir=.
19402   for ac_exec_ext in '' $ac_executable_extensions; do
19403   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19404     ac_cv_prog_ac_ct_CC="$ac_prog"
19405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19406     break 2
19407   fi
19408 done
19409 done
19410
19411 fi
19412 fi
19413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19414 if test -n "$ac_ct_CC"; then
19415   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19416 echo "${ECHO_T}$ac_ct_CC" >&6
19417 else
19418   echo "$as_me:$LINENO: result: no" >&5
19419 echo "${ECHO_T}no" >&6
19420 fi
19421
19422   test -n "$ac_ct_CC" && break
19423 done
19424
19425   CC=$ac_ct_CC
19426 fi
19427
19428 fi
19429
19430
19431 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19432 See \`config.log' for more details." >&5
19433 echo "$as_me: error: no acceptable C compiler found in \$PATH
19434 See \`config.log' for more details." >&2;}
19435    { (exit 1); exit 1; }; }
19436
19437 # Provide some information about the compiler.
19438 echo "$as_me:$LINENO:" \
19439      "checking for C compiler version" >&5
19440 ac_compiler=`set X $ac_compile; echo $2`
19441 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19442   (eval $ac_compiler --version </dev/null >&5) 2>&5
19443   ac_status=$?
19444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445   (exit $ac_status); }
19446 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19447   (eval $ac_compiler -v </dev/null >&5) 2>&5
19448   ac_status=$?
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); }
19451 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19452   (eval $ac_compiler -V </dev/null >&5) 2>&5
19453   ac_status=$?
19454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455   (exit $ac_status); }
19456
19457 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19458 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19459 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19460   echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462   cat >conftest.$ac_ext <<_ACEOF
19463 /* confdefs.h.  */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h.  */
19468
19469 int
19470 main ()
19471 {
19472 #ifndef __GNUC__
19473        choke me
19474 #endif
19475
19476   ;
19477   return 0;
19478 }
19479 _ACEOF
19480 rm -f conftest.$ac_objext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19482   (eval $ac_compile) 2>conftest.er1
19483   ac_status=$?
19484   grep -v '^ *+' conftest.er1 >conftest.err
19485   rm -f conftest.er1
19486   cat conftest.err >&5
19487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); } &&
19489          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491   (eval $ac_try) 2>&5
19492   ac_status=$?
19493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); }; } &&
19495          { ac_try='test -s conftest.$ac_objext'
19496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19497   (eval $ac_try) 2>&5
19498   ac_status=$?
19499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500   (exit $ac_status); }; }; then
19501   ac_compiler_gnu=yes
19502 else
19503   echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19505
19506 ac_compiler_gnu=no
19507 fi
19508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19509 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19510
19511 fi
19512 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19513 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19514 GCC=`test $ac_compiler_gnu = yes && echo yes`
19515 ac_test_CFLAGS=${CFLAGS+set}
19516 ac_save_CFLAGS=$CFLAGS
19517 CFLAGS="-g"
19518 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19519 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19520 if test "${ac_cv_prog_cc_g+set}" = set; then
19521   echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523   cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h.  */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h.  */
19529
19530 int
19531 main ()
19532 {
19533
19534   ;
19535   return 0;
19536 }
19537 _ACEOF
19538 rm -f conftest.$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540   (eval $ac_compile) 2>conftest.er1
19541   ac_status=$?
19542   grep -v '^ *+' conftest.er1 >conftest.err
19543   rm -f conftest.er1
19544   cat conftest.err >&5
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } &&
19547          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549   (eval $ac_try) 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); }; } &&
19553          { ac_try='test -s conftest.$ac_objext'
19554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555   (eval $ac_try) 2>&5
19556   ac_status=$?
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); }; }; then
19559   ac_cv_prog_cc_g=yes
19560 else
19561   echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19563
19564 ac_cv_prog_cc_g=no
19565 fi
19566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19567 fi
19568 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19569 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19570 if test "$ac_test_CFLAGS" = set; then
19571   CFLAGS=$ac_save_CFLAGS
19572 elif test $ac_cv_prog_cc_g = yes; then
19573   if test "$GCC" = yes; then
19574     CFLAGS="-g -O2"
19575   else
19576     CFLAGS="-g"
19577   fi
19578 else
19579   if test "$GCC" = yes; then
19580     CFLAGS="-O2"
19581   else
19582     CFLAGS=
19583   fi
19584 fi
19585 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19586 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19587 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19588   echo $ECHO_N "(cached) $ECHO_C" >&6
19589 else
19590   ac_cv_prog_cc_stdc=no
19591 ac_save_CC=$CC
19592 cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h.  */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h.  */
19598 #include <stdarg.h>
19599 #include <stdio.h>
19600 #include <sys/types.h>
19601 #include <sys/stat.h>
19602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19603 struct buf { int x; };
19604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19605 static char *e (p, i)
19606      char **p;
19607      int i;
19608 {
19609   return p[i];
19610 }
19611 static char *f (char * (*g) (char **, int), char **p, ...)
19612 {
19613   char *s;
19614   va_list v;
19615   va_start (v,p);
19616   s = g (p, va_arg (v,int));
19617   va_end (v);
19618   return s;
19619 }
19620
19621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19622    function prototypes and stuff, but not '\xHH' hex character constants.
19623    These don't provoke an error unfortunately, instead are silently treated
19624    as 'x'.  The following induces an error, until -std1 is added to get
19625    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19626    array size at least.  It's necessary to write '\x00'==0 to get something
19627    that's true only with -std1.  */
19628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19629
19630 int test (int i, double x);
19631 struct s1 {int (*f) (int a);};
19632 struct s2 {int (*f) (double a);};
19633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19634 int argc;
19635 char **argv;
19636 int
19637 main ()
19638 {
19639 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19640   ;
19641   return 0;
19642 }
19643 _ACEOF
19644 # Don't try gcc -ansi; that turns off useful extensions and
19645 # breaks some systems' header files.
19646 # AIX                   -qlanglvl=ansi
19647 # Ultrix and OSF/1      -std1
19648 # HP-UX 10.20 and later -Ae
19649 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19650 # SVR4                  -Xc -D__EXTENSIONS__
19651 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19652 do
19653   CC="$ac_save_CC $ac_arg"
19654   rm -f conftest.$ac_objext
19655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19656   (eval $ac_compile) 2>conftest.er1
19657   ac_status=$?
19658   grep -v '^ *+' conftest.er1 >conftest.err
19659   rm -f conftest.er1
19660   cat conftest.err >&5
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); } &&
19663          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665   (eval $ac_try) 2>&5
19666   ac_status=$?
19667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668   (exit $ac_status); }; } &&
19669          { ac_try='test -s conftest.$ac_objext'
19670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671   (eval $ac_try) 2>&5
19672   ac_status=$?
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); }; }; then
19675   ac_cv_prog_cc_stdc=$ac_arg
19676 break
19677 else
19678   echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19680
19681 fi
19682 rm -f conftest.err conftest.$ac_objext
19683 done
19684 rm -f conftest.$ac_ext conftest.$ac_objext
19685 CC=$ac_save_CC
19686
19687 fi
19688
19689 case "x$ac_cv_prog_cc_stdc" in
19690   x|xno)
19691     echo "$as_me:$LINENO: result: none needed" >&5
19692 echo "${ECHO_T}none needed" >&6 ;;
19693   *)
19694     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19695 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19696     CC="$CC $ac_cv_prog_cc_stdc" ;;
19697 esac
19698
19699 # Some people use a C++ compiler to compile C.  Since we use `exit',
19700 # in C++ we need to declare it.  In case someone uses the same compiler
19701 # for both compiling C and C++ we need to have the C++ compiler decide
19702 # the declaration of exit, since it's the most demanding environment.
19703 cat >conftest.$ac_ext <<_ACEOF
19704 #ifndef __cplusplus
19705   choke me
19706 #endif
19707 _ACEOF
19708 rm -f conftest.$ac_objext
19709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19710   (eval $ac_compile) 2>conftest.er1
19711   ac_status=$?
19712   grep -v '^ *+' conftest.er1 >conftest.err
19713   rm -f conftest.er1
19714   cat conftest.err >&5
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); } &&
19717          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719   (eval $ac_try) 2>&5
19720   ac_status=$?
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); }; } &&
19723          { ac_try='test -s conftest.$ac_objext'
19724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725   (eval $ac_try) 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); }; }; then
19729   for ac_declaration in \
19730    '' \
19731    'extern "C" void std::exit (int) throw (); using std::exit;' \
19732    'extern "C" void std::exit (int); using std::exit;' \
19733    'extern "C" void exit (int) throw ();' \
19734    'extern "C" void exit (int);' \
19735    'void exit (int);'
19736 do
19737   cat >conftest.$ac_ext <<_ACEOF
19738 /* confdefs.h.  */
19739 _ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h.  */
19743 $ac_declaration
19744 #include <stdlib.h>
19745 int
19746 main ()
19747 {
19748 exit (42);
19749   ;
19750   return 0;
19751 }
19752 _ACEOF
19753 rm -f conftest.$ac_objext
19754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19755   (eval $ac_compile) 2>conftest.er1
19756   ac_status=$?
19757   grep -v '^ *+' conftest.er1 >conftest.err
19758   rm -f conftest.er1
19759   cat conftest.err >&5
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); } &&
19762          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19764   (eval $ac_try) 2>&5
19765   ac_status=$?
19766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767   (exit $ac_status); }; } &&
19768          { ac_try='test -s conftest.$ac_objext'
19769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770   (eval $ac_try) 2>&5
19771   ac_status=$?
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); }; }; then
19774   :
19775 else
19776   echo "$as_me: failed program was:" >&5
19777 sed 's/^/| /' conftest.$ac_ext >&5
19778
19779 continue
19780 fi
19781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19782   cat >conftest.$ac_ext <<_ACEOF
19783 /* confdefs.h.  */
19784 _ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h.  */
19788 $ac_declaration
19789 int
19790 main ()
19791 {
19792 exit (42);
19793   ;
19794   return 0;
19795 }
19796 _ACEOF
19797 rm -f conftest.$ac_objext
19798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19799   (eval $ac_compile) 2>conftest.er1
19800   ac_status=$?
19801   grep -v '^ *+' conftest.er1 >conftest.err
19802   rm -f conftest.er1
19803   cat conftest.err >&5
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); } &&
19806          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808   (eval $ac_try) 2>&5
19809   ac_status=$?
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); }; } &&
19812          { ac_try='test -s conftest.$ac_objext'
19813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814   (eval $ac_try) 2>&5
19815   ac_status=$?
19816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817   (exit $ac_status); }; }; then
19818   break
19819 else
19820   echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19822
19823 fi
19824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19825 done
19826 rm -f conftest*
19827 if test -n "$ac_declaration"; then
19828   echo '#ifdef __cplusplus' >>confdefs.h
19829   echo $ac_declaration      >>confdefs.h
19830   echo '#endif'             >>confdefs.h
19831 fi
19832
19833 else
19834   echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19836
19837 fi
19838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19839 ac_ext=c
19840 ac_cpp='$CPP $CPPFLAGS'
19841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19844
19845 depcc="$CC"   am_compiler_list=
19846
19847 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19848 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19849 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19850   echo $ECHO_N "(cached) $ECHO_C" >&6
19851 else
19852   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19853   # We make a subdir and do the tests there.  Otherwise we can end up
19854   # making bogus files that we don't know about and never remove.  For
19855   # instance it was reported that on HP-UX the gcc test will end up
19856   # making a dummy file named `D' -- because `-MD' means `put the output
19857   # in D'.
19858   mkdir conftest.dir
19859   # Copy depcomp to subdir because otherwise we won't find it if we're
19860   # using a relative directory.
19861   cp "$am_depcomp" conftest.dir
19862   cd conftest.dir
19863   # We will build objects and dependencies in a subdirectory because
19864   # it helps to detect inapplicable dependency modes.  For instance
19865   # both Tru64's cc and ICC support -MD to output dependencies as a
19866   # side effect of compilation, but ICC will put the dependencies in
19867   # the current directory while Tru64 will put them in the object
19868   # directory.
19869   mkdir sub
19870
19871   am_cv_CC_dependencies_compiler_type=none
19872   if test "$am_compiler_list" = ""; then
19873      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19874   fi
19875   for depmode in $am_compiler_list; do
19876     # Setup a source with many dependencies, because some compilers
19877     # like to wrap large dependency lists on column 80 (with \), and
19878     # we should not choose a depcomp mode which is confused by this.
19879     #
19880     # We need to recreate these files for each test, as the compiler may
19881     # overwrite some of them when testing with obscure command lines.
19882     # This happens at least with the AIX C compiler.
19883     : > sub/conftest.c
19884     for i in 1 2 3 4 5 6; do
19885       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19886       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19887       # Solaris 8's {/usr,}/bin/sh.
19888       touch sub/conftst$i.h
19889     done
19890     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19891
19892     case $depmode in
19893     nosideeffect)
19894       # after this tag, mechanisms are not by side-effect, so they'll
19895       # only be used when explicitly requested
19896       if test "x$enable_dependency_tracking" = xyes; then
19897         continue
19898       else
19899         break
19900       fi
19901       ;;
19902     none) break ;;
19903     esac
19904     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19905     # mode.  It turns out that the SunPro C++ compiler does not properly
19906     # handle `-M -o', and we need to detect this.
19907     if depmode=$depmode \
19908        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19909        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19910        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19911          >/dev/null 2>conftest.err &&
19912        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19913        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19914        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19915       # icc doesn't choke on unknown options, it will just issue warnings
19916       # or remarks (even with -Werror).  So we grep stderr for any message
19917       # that says an option was ignored or not supported.
19918       # When given -MP, icc 7.0 and 7.1 complain thusly:
19919       #   icc: Command line warning: ignoring option '-M'; no argument required
19920       # The diagnosis changed in icc 8.0:
19921       #   icc: Command line remark: option '-MP' not supported
19922       if (grep 'ignoring option' conftest.err ||
19923           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19924         am_cv_CC_dependencies_compiler_type=$depmode
19925         break
19926       fi
19927     fi
19928   done
19929
19930   cd ..
19931   rm -rf conftest.dir
19932 else
19933   am_cv_CC_dependencies_compiler_type=none
19934 fi
19935
19936 fi
19937 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19938 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19939 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19940
19941
19942
19943 if
19944   test "x$enable_dependency_tracking" != xno \
19945   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19946   am__fastdepCC_TRUE=
19947   am__fastdepCC_FALSE='#'
19948 else
19949   am__fastdepCC_TRUE='#'
19950   am__fastdepCC_FALSE=
19951 fi
19952
19953
19954 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19955 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19956 # Just in case
19957 sleep 1
19958 echo timestamp > conftest.file
19959 # Do `set' in a subshell so we don't clobber the current shell's
19960 # arguments.  Must try -L first in case configure is actually a
19961 # symlink; some systems play weird games with the mod time of symlinks
19962 # (eg FreeBSD returns the mod time of the symlink's containing
19963 # directory).
19964 if (
19965    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19966    if test "$*" = "X"; then
19967       # -L didn't work.
19968       set X `ls -t $srcdir/configure conftest.file`
19969    fi
19970    rm -f conftest.file
19971    if test "$*" != "X $srcdir/configure conftest.file" \
19972       && test "$*" != "X conftest.file $srcdir/configure"; then
19973
19974       # If neither matched, then we have a broken ls.  This can happen
19975       # if, for instance, CONFIG_SHELL is bash and it inherits a
19976       # broken ls alias from the environment.  This has actually
19977       # happened.  Such a system could not be considered "sane".
19978       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19979 alias in your environment" >&5
19980 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19981 alias in your environment" >&2;}
19982    { (exit 1); exit 1; }; }
19983    fi
19984
19985    test "$2" = conftest.file
19986    )
19987 then
19988    # Ok.
19989    :
19990 else
19991    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19992 Check your system clock" >&5
19993 echo "$as_me: error: newly created file is older than distributed files!
19994 Check your system clock" >&2;}
19995    { (exit 1); exit 1; }; }
19996 fi
19997 echo "$as_me:$LINENO: result: yes" >&5
19998 echo "${ECHO_T}yes" >&6
19999 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20000 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20001 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20002 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20003   echo $ECHO_N "(cached) $ECHO_C" >&6
20004 else
20005   cat >conftest.make <<\_ACEOF
20006 all:
20007         @echo 'ac_maketemp="$(MAKE)"'
20008 _ACEOF
20009 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20010 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20011 if test -n "$ac_maketemp"; then
20012   eval ac_cv_prog_make_${ac_make}_set=yes
20013 else
20014   eval ac_cv_prog_make_${ac_make}_set=no
20015 fi
20016 rm -f conftest.make
20017 fi
20018 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20019   echo "$as_me:$LINENO: result: yes" >&5
20020 echo "${ECHO_T}yes" >&6
20021   SET_MAKE=
20022 else
20023   echo "$as_me:$LINENO: result: no" >&5
20024 echo "${ECHO_T}no" >&6
20025   SET_MAKE="MAKE=${MAKE-make}"
20026 fi
20027
20028
20029 # Check architecture signature begin
20030
20031 # Check for the architecture
20032 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20033 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20034 if test "${ac_cv_c_bigendian+set}" = set; then
20035   echo $ECHO_N "(cached) $ECHO_C" >&6
20036 else
20037   # See if sys/param.h defines the BYTE_ORDER macro.
20038 cat >conftest.$ac_ext <<_ACEOF
20039 /* confdefs.h.  */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h.  */
20044 #include <sys/types.h>
20045 #include <sys/param.h>
20046
20047 int
20048 main ()
20049 {
20050 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20051  bogus endian macros
20052 #endif
20053
20054   ;
20055   return 0;
20056 }
20057 _ACEOF
20058 rm -f conftest.$ac_objext
20059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20060   (eval $ac_compile) 2>conftest.er1
20061   ac_status=$?
20062   grep -v '^ *+' conftest.er1 >conftest.err
20063   rm -f conftest.er1
20064   cat conftest.err >&5
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); } &&
20067          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069   (eval $ac_try) 2>&5
20070   ac_status=$?
20071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072   (exit $ac_status); }; } &&
20073          { ac_try='test -s conftest.$ac_objext'
20074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075   (eval $ac_try) 2>&5
20076   ac_status=$?
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); }; }; then
20079   # It does; now see whether it defined to BIG_ENDIAN or not.
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h.  */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h.  */
20086 #include <sys/types.h>
20087 #include <sys/param.h>
20088
20089 int
20090 main ()
20091 {
20092 #if BYTE_ORDER != BIG_ENDIAN
20093  not big endian
20094 #endif
20095
20096   ;
20097   return 0;
20098 }
20099 _ACEOF
20100 rm -f conftest.$ac_objext
20101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20102   (eval $ac_compile) 2>conftest.er1
20103   ac_status=$?
20104   grep -v '^ *+' conftest.er1 >conftest.err
20105   rm -f conftest.er1
20106   cat conftest.err >&5
20107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   (exit $ac_status); } &&
20109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111   (eval $ac_try) 2>&5
20112   ac_status=$?
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); }; } &&
20115          { ac_try='test -s conftest.$ac_objext'
20116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117   (eval $ac_try) 2>&5
20118   ac_status=$?
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); }; }; then
20121   ac_cv_c_bigendian=yes
20122 else
20123   echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20125
20126 ac_cv_c_bigendian=no
20127 fi
20128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20129 else
20130   echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20132
20133 # It does not; compile a test program.
20134 if test "$cross_compiling" = yes; then
20135   # try to guess the endianness by grepping values into an object file
20136   ac_cv_c_bigendian=unknown
20137   cat >conftest.$ac_ext <<_ACEOF
20138 /* confdefs.h.  */
20139 _ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h.  */
20143 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20144 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20145 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20146 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20147 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20148 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20149 int
20150 main ()
20151 {
20152  _ascii (); _ebcdic ();
20153   ;
20154   return 0;
20155 }
20156 _ACEOF
20157 rm -f conftest.$ac_objext
20158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20159   (eval $ac_compile) 2>conftest.er1
20160   ac_status=$?
20161   grep -v '^ *+' conftest.er1 >conftest.err
20162   rm -f conftest.er1
20163   cat conftest.err >&5
20164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165   (exit $ac_status); } &&
20166          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168   (eval $ac_try) 2>&5
20169   ac_status=$?
20170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171   (exit $ac_status); }; } &&
20172          { ac_try='test -s conftest.$ac_objext'
20173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174   (eval $ac_try) 2>&5
20175   ac_status=$?
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); }; }; then
20178   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20179   ac_cv_c_bigendian=yes
20180 fi
20181 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20182   if test "$ac_cv_c_bigendian" = unknown; then
20183     ac_cv_c_bigendian=no
20184   else
20185     # finding both strings is unlikely to happen, but who knows?
20186     ac_cv_c_bigendian=unknown
20187   fi
20188 fi
20189 else
20190   echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193 fi
20194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20195 else
20196   cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202 int
20203 main ()
20204 {
20205   /* Are we little or big endian?  From Harbison&Steele.  */
20206   union
20207   {
20208     long l;
20209     char c[sizeof (long)];
20210   } u;
20211   u.l = 1;
20212   exit (u.c[sizeof (long) - 1] == 1);
20213 }
20214 _ACEOF
20215 rm -f conftest$ac_exeext
20216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20217   (eval $ac_link) 2>&5
20218   ac_status=$?
20219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222   (eval $ac_try) 2>&5
20223   ac_status=$?
20224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225   (exit $ac_status); }; }; then
20226   ac_cv_c_bigendian=no
20227 else
20228   echo "$as_me: program exited with status $ac_status" >&5
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232 ( exit $ac_status )
20233 ac_cv_c_bigendian=yes
20234 fi
20235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20236 fi
20237 fi
20238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20239 fi
20240 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20241 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20242 case $ac_cv_c_bigendian in
20243   yes)
20244     endian=1 ;;
20245   no)
20246     endian=0 ;;
20247   *)
20248     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
20249 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
20250    { (exit 1); exit 1; }; } ;;
20251 esac
20252
20253
20254 echo "$as_me:$LINENO: checking whether int is two-compliment" >&5
20255 echo $ECHO_N "checking whether int is two-compliment... $ECHO_C" >&6
20256 if test "$cross_compiling" = yes; then
20257   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20258 See \`config.log' for more details." >&5
20259 echo "$as_me: error: cannot run test program while cross compiling
20260 See \`config.log' for more details." >&2;}
20261    { (exit 1); exit 1; }; }
20262 else
20263   cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h.  */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h.  */
20269 #include "confdefs.h"
20270 union {
20271    signed int testInt;
20272    unsigned char bytes[sizeof(int)];
20273 } intTester;
20274
20275 int
20276 main ()
20277 {
20278
20279    intTester.testInt = -2;
20280    return ((unsigned int)intTester.bytes[0] +
20281            (unsigned int)intTester.bytes[sizeof(int) - 1]) - 509; /* should be 0 */
20282
20283   ;
20284   return 0;
20285 }
20286 _ACEOF
20287 rm -f conftest$ac_exeext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20289   (eval $ac_link) 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294   (eval $ac_try) 2>&5
20295   ac_status=$?
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); }; }; then
20298   two_compliment=yes
20299 else
20300   echo "$as_me: program exited with status $ac_status" >&5
20301 echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20303
20304 ( exit $ac_status )
20305 two_compliment=no
20306 fi
20307 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20308 fi
20309 echo "$as_me:$LINENO: result: $two_compliment" >&5
20310 echo "${ECHO_T}$two_compliment" >&6
20311 if test x$two_compliment != xyes ; then
20312   { { echo "$as_me:$LINENO: error: GRAS works only two-compliment integers (yet)" >&5
20313 echo "$as_me: error: GRAS works only two-compliment integers (yet)" >&2;}
20314    { (exit 1); exit 1; }; }
20315 fi
20316
20317
20318 cat >>confdefs.h <<_ACEOF
20319 #define GRAS_BIGENDIAN $endian
20320 _ACEOF
20321
20322
20323 echo "$as_me:$LINENO: checking size of char" >&5
20324 echo $ECHO_N "checking size of char... $ECHO_C" >&6
20325     if test "${ac_cv_sizeof_char+set}" = set; then
20326   echo $ECHO_N "(cached) $ECHO_C" >&6
20327 else
20328   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20329    cat >conftest.$ac_ext <<_ACEOF
20330 /* confdefs.h.  */
20331 _ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h.  */
20335 #include "confdefs.h"
20336    #include <sys/types.h>
20337
20338
20339 int
20340 main ()
20341 {
20342 switch (0) case 0: case (sizeof (char) == $ac_size):;
20343   ;
20344   return 0;
20345 }
20346 _ACEOF
20347 rm -f conftest.$ac_objext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20349   (eval $ac_compile) 2>conftest.er1
20350   ac_status=$?
20351   grep -v '^ *+' conftest.er1 >conftest.err
20352   rm -f conftest.er1
20353   cat conftest.err >&5
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); } &&
20356          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358   (eval $ac_try) 2>&5
20359   ac_status=$?
20360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); }; } &&
20362          { ac_try='test -s conftest.$ac_objext'
20363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364   (eval $ac_try) 2>&5
20365   ac_status=$?
20366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); }; }; then
20368   ac_cv_sizeof_char=$ac_size
20369 else
20370   echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20372
20373 fi
20374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20375    if test x$ac_cv_sizeof_char != x ; then break; fi
20376   done
20377
20378 fi
20379
20380
20381 unspecif=$ac_cv_sizeof_char
20382 if test x$unspecif = x ; then
20383   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
20384 echo "$as_me: error: cannot determine a size for char" >&2;}
20385    { (exit 1); exit 1; }; }
20386 fi
20387
20388     if test "${ac_cv_sizeof_signed_char+set}" = set; then
20389   echo $ECHO_N "(cached) $ECHO_C" >&6
20390 else
20391   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20392    cat >conftest.$ac_ext <<_ACEOF
20393 /* confdefs.h.  */
20394 _ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h.  */
20398 #include "confdefs.h"
20399    #include <sys/types.h>
20400
20401
20402 int
20403 main ()
20404 {
20405 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
20406   ;
20407   return 0;
20408 }
20409 _ACEOF
20410 rm -f conftest.$ac_objext
20411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20412   (eval $ac_compile) 2>conftest.er1
20413   ac_status=$?
20414   grep -v '^ *+' conftest.er1 >conftest.err
20415   rm -f conftest.er1
20416   cat conftest.err >&5
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); } &&
20419          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421   (eval $ac_try) 2>&5
20422   ac_status=$?
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); }; } &&
20425          { ac_try='test -s conftest.$ac_objext'
20426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427   (eval $ac_try) 2>&5
20428   ac_status=$?
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); }; }; then
20431   ac_cv_sizeof_signed_char=$ac_size
20432 else
20433   echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20435
20436 fi
20437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20438    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
20439   done
20440
20441 fi
20442
20443
20444 signed=$ac_cv_sizeof_signed_char
20445 if test x$signed = x ; then
20446   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
20447 echo "$as_me: error: cannot determine a size for signed char" >&2;}
20448    { (exit 1); exit 1; }; }
20449 fi
20450 if test x$unspecif != x$signed ; then
20451   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
20452 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
20453    { (exit 1); exit 1; }; }
20454 fi
20455
20456     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
20457   echo $ECHO_N "(cached) $ECHO_C" >&6
20458 else
20459   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20460    cat >conftest.$ac_ext <<_ACEOF
20461 /* confdefs.h.  */
20462 _ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h.  */
20466 #include "confdefs.h"
20467    #include <sys/types.h>
20468
20469
20470 int
20471 main ()
20472 {
20473 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
20474   ;
20475   return 0;
20476 }
20477 _ACEOF
20478 rm -f conftest.$ac_objext
20479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20480   (eval $ac_compile) 2>conftest.er1
20481   ac_status=$?
20482   grep -v '^ *+' conftest.er1 >conftest.err
20483   rm -f conftest.er1
20484   cat conftest.err >&5
20485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486   (exit $ac_status); } &&
20487          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489   (eval $ac_try) 2>&5
20490   ac_status=$?
20491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492   (exit $ac_status); }; } &&
20493          { ac_try='test -s conftest.$ac_objext'
20494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495   (eval $ac_try) 2>&5
20496   ac_status=$?
20497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498   (exit $ac_status); }; }; then
20499   ac_cv_sizeof_unsigned_char=$ac_size
20500 else
20501   echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20503
20504 fi
20505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20506    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
20507   done
20508
20509 fi
20510
20511
20512 unsigned=$ac_cv_sizeof_unsigned_char
20513 if test x$unsigned = x ; then
20514   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
20515 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
20516    { (exit 1); exit 1; }; }
20517 fi
20518 if test x$unsigned != x$signed ; then
20519   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
20520 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
20521    { (exit 1); exit 1; }; }
20522 fi
20523
20524 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
20525 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
20526                   echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
20527 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6
20528
20529  if test "${ac_cv_struct_boundary_char+set}" = set; then
20530   echo $ECHO_N "(cached) $ECHO_C" >&6
20531 else
20532   for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
20533    cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h.  */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h.  */
20539 #include "confdefs.h"
20540      #include <sys/types.h>
20541      struct s { char c; char i; };
20542
20543 int
20544 main ()
20545 {
20546 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
20547   ;
20548   return 0;
20549 }
20550 _ACEOF
20551 rm -f conftest.$ac_objext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20553   (eval $ac_compile) 2>conftest.er1
20554   ac_status=$?
20555   grep -v '^ *+' conftest.er1 >conftest.err
20556   rm -f conftest.er1
20557   cat conftest.err >&5
20558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559   (exit $ac_status); } &&
20560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562   (eval $ac_try) 2>&5
20563   ac_status=$?
20564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565   (exit $ac_status); }; } &&
20566          { ac_try='test -s conftest.$ac_objext'
20567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568   (eval $ac_try) 2>&5
20569   ac_status=$?
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); }; }; then
20572   ac_cv_struct_boundary_char=$ac_size
20573 else
20574   echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577 fi
20578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20579    if test x$ac_cv_struct_boundary_char != x ; then break; fi
20580   done
20581
20582 fi
20583
20584  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
20585 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6
20586
20587 echo "$as_me:$LINENO: checking size of short int" >&5
20588 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
20589     if test "${ac_cv_sizeof_short_int+set}" = set; then
20590   echo $ECHO_N "(cached) $ECHO_C" >&6
20591 else
20592   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20593    cat >conftest.$ac_ext <<_ACEOF
20594 /* confdefs.h.  */
20595 _ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h.  */
20599 #include "confdefs.h"
20600    #include <sys/types.h>
20601
20602
20603 int
20604 main ()
20605 {
20606 switch (0) case 0: case (sizeof (short int) == $ac_size):;
20607   ;
20608   return 0;
20609 }
20610 _ACEOF
20611 rm -f conftest.$ac_objext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20613   (eval $ac_compile) 2>conftest.er1
20614   ac_status=$?
20615   grep -v '^ *+' conftest.er1 >conftest.err
20616   rm -f conftest.er1
20617   cat conftest.err >&5
20618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619   (exit $ac_status); } &&
20620          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20622   (eval $ac_try) 2>&5
20623   ac_status=$?
20624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625   (exit $ac_status); }; } &&
20626          { ac_try='test -s conftest.$ac_objext'
20627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20628   (eval $ac_try) 2>&5
20629   ac_status=$?
20630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631   (exit $ac_status); }; }; then
20632   ac_cv_sizeof_short_int=$ac_size
20633 else
20634   echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20636
20637 fi
20638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20639    if test x$ac_cv_sizeof_short_int != x ; then break; fi
20640   done
20641
20642 fi
20643
20644
20645 unspecif=$ac_cv_sizeof_short_int
20646 if test x$unspecif = x ; then
20647   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
20648 echo "$as_me: error: cannot determine a size for short int" >&2;}
20649    { (exit 1); exit 1; }; }
20650 fi
20651
20652     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
20653   echo $ECHO_N "(cached) $ECHO_C" >&6
20654 else
20655   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20656    cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h.  */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h.  */
20662 #include "confdefs.h"
20663    #include <sys/types.h>
20664
20665
20666 int
20667 main ()
20668 {
20669 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
20670   ;
20671   return 0;
20672 }
20673 _ACEOF
20674 rm -f conftest.$ac_objext
20675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20676   (eval $ac_compile) 2>conftest.er1
20677   ac_status=$?
20678   grep -v '^ *+' conftest.er1 >conftest.err
20679   rm -f conftest.er1
20680   cat conftest.err >&5
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); } &&
20683          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685   (eval $ac_try) 2>&5
20686   ac_status=$?
20687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688   (exit $ac_status); }; } &&
20689          { ac_try='test -s conftest.$ac_objext'
20690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691   (eval $ac_try) 2>&5
20692   ac_status=$?
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); }; }; then
20695   ac_cv_sizeof_signed_short_int=$ac_size
20696 else
20697   echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20699
20700 fi
20701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20702    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
20703   done
20704
20705 fi
20706
20707
20708 signed=$ac_cv_sizeof_signed_short_int
20709 if test x$signed = x ; then
20710   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
20711 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
20712    { (exit 1); exit 1; }; }
20713 fi
20714 if test x$unspecif != x$signed ; then
20715   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
20716 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
20717    { (exit 1); exit 1; }; }
20718 fi
20719
20720     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
20721   echo $ECHO_N "(cached) $ECHO_C" >&6
20722 else
20723   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20724    cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h.  */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h.  */
20730 #include "confdefs.h"
20731    #include <sys/types.h>
20732
20733
20734 int
20735 main ()
20736 {
20737 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
20738   ;
20739   return 0;
20740 }
20741 _ACEOF
20742 rm -f conftest.$ac_objext
20743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20744   (eval $ac_compile) 2>conftest.er1
20745   ac_status=$?
20746   grep -v '^ *+' conftest.er1 >conftest.err
20747   rm -f conftest.er1
20748   cat conftest.err >&5
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); } &&
20751          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753   (eval $ac_try) 2>&5
20754   ac_status=$?
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); }; } &&
20757          { ac_try='test -s conftest.$ac_objext'
20758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20759   (eval $ac_try) 2>&5
20760   ac_status=$?
20761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762   (exit $ac_status); }; }; then
20763   ac_cv_sizeof_unsigned_short_int=$ac_size
20764 else
20765   echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20767
20768 fi
20769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20770    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
20771   done
20772
20773 fi
20774
20775
20776 unsigned=$ac_cv_sizeof_unsigned_short_int
20777 if test x$unsigned = x ; then
20778   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
20779 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
20780    { (exit 1); exit 1; }; }
20781 fi
20782 if test x$unsigned != x$signed ; then
20783   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
20784 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
20785    { (exit 1); exit 1; }; }
20786 fi
20787
20788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
20789 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
20790              echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
20791 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6
20792
20793  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
20794   echo $ECHO_N "(cached) $ECHO_C" >&6
20795 else
20796   for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
20797    cat >conftest.$ac_ext <<_ACEOF
20798 /* confdefs.h.  */
20799 _ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h.  */
20803 #include "confdefs.h"
20804      #include <sys/types.h>
20805      struct s { char c; short int i; };
20806
20807 int
20808 main ()
20809 {
20810 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
20811   ;
20812   return 0;
20813 }
20814 _ACEOF
20815 rm -f conftest.$ac_objext
20816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20817   (eval $ac_compile) 2>conftest.er1
20818   ac_status=$?
20819   grep -v '^ *+' conftest.er1 >conftest.err
20820   rm -f conftest.er1
20821   cat conftest.err >&5
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); } &&
20824          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826   (eval $ac_try) 2>&5
20827   ac_status=$?
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); }; } &&
20830          { ac_try='test -s conftest.$ac_objext'
20831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832   (eval $ac_try) 2>&5
20833   ac_status=$?
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   (exit $ac_status); }; }; then
20836   ac_cv_struct_boundary_short_int=$ac_size
20837 else
20838   echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20840
20841 fi
20842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20843    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
20844   done
20845
20846 fi
20847
20848  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
20849 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6
20850
20851 echo "$as_me:$LINENO: checking size of int" >&5
20852 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20853     if test "${ac_cv_sizeof_int+set}" = set; then
20854   echo $ECHO_N "(cached) $ECHO_C" >&6
20855 else
20856   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20857    cat >conftest.$ac_ext <<_ACEOF
20858 /* confdefs.h.  */
20859 _ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h.  */
20863 #include "confdefs.h"
20864    #include <sys/types.h>
20865
20866
20867 int
20868 main ()
20869 {
20870 switch (0) case 0: case (sizeof (int) == $ac_size):;
20871   ;
20872   return 0;
20873 }
20874 _ACEOF
20875 rm -f conftest.$ac_objext
20876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20877   (eval $ac_compile) 2>conftest.er1
20878   ac_status=$?
20879   grep -v '^ *+' conftest.er1 >conftest.err
20880   rm -f conftest.er1
20881   cat conftest.err >&5
20882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883   (exit $ac_status); } &&
20884          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886   (eval $ac_try) 2>&5
20887   ac_status=$?
20888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889   (exit $ac_status); }; } &&
20890          { ac_try='test -s conftest.$ac_objext'
20891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892   (eval $ac_try) 2>&5
20893   ac_status=$?
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); }; }; then
20896   ac_cv_sizeof_int=$ac_size
20897 else
20898   echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20900
20901 fi
20902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20903    if test x$ac_cv_sizeof_int != x ; then break; fi
20904   done
20905
20906 fi
20907
20908
20909 unspecif=$ac_cv_sizeof_int
20910 if test x$unspecif = x ; then
20911   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
20912 echo "$as_me: error: cannot determine a size for int" >&2;}
20913    { (exit 1); exit 1; }; }
20914 fi
20915
20916     if test "${ac_cv_sizeof_signed_int+set}" = set; then
20917   echo $ECHO_N "(cached) $ECHO_C" >&6
20918 else
20919   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20920    cat >conftest.$ac_ext <<_ACEOF
20921 /* confdefs.h.  */
20922 _ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h.  */
20926 #include "confdefs.h"
20927    #include <sys/types.h>
20928
20929
20930 int
20931 main ()
20932 {
20933 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
20934   ;
20935   return 0;
20936 }
20937 _ACEOF
20938 rm -f conftest.$ac_objext
20939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20940   (eval $ac_compile) 2>conftest.er1
20941   ac_status=$?
20942   grep -v '^ *+' conftest.er1 >conftest.err
20943   rm -f conftest.er1
20944   cat conftest.err >&5
20945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946   (exit $ac_status); } &&
20947          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20949   (eval $ac_try) 2>&5
20950   ac_status=$?
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); }; } &&
20953          { ac_try='test -s conftest.$ac_objext'
20954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20955   (eval $ac_try) 2>&5
20956   ac_status=$?
20957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958   (exit $ac_status); }; }; then
20959   ac_cv_sizeof_signed_int=$ac_size
20960 else
20961   echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20963
20964 fi
20965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20966    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
20967   done
20968
20969 fi
20970
20971
20972 signed=$ac_cv_sizeof_signed_int
20973 if test x$signed = x ; then
20974   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
20975 echo "$as_me: error: cannot determine a size for signed int" >&2;}
20976    { (exit 1); exit 1; }; }
20977 fi
20978 if test x$unspecif != x$signed ; then
20979   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
20980 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
20981    { (exit 1); exit 1; }; }
20982 fi
20983
20984     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
20985   echo $ECHO_N "(cached) $ECHO_C" >&6
20986 else
20987   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20988    cat >conftest.$ac_ext <<_ACEOF
20989 /* confdefs.h.  */
20990 _ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h.  */
20994 #include "confdefs.h"
20995    #include <sys/types.h>
20996
20997
20998 int
20999 main ()
21000 {
21001 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
21002   ;
21003   return 0;
21004 }
21005 _ACEOF
21006 rm -f conftest.$ac_objext
21007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21008   (eval $ac_compile) 2>conftest.er1
21009   ac_status=$?
21010   grep -v '^ *+' conftest.er1 >conftest.err
21011   rm -f conftest.er1
21012   cat conftest.err >&5
21013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); } &&
21015          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017   (eval $ac_try) 2>&5
21018   ac_status=$?
21019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); }; } &&
21021          { ac_try='test -s conftest.$ac_objext'
21022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023   (eval $ac_try) 2>&5
21024   ac_status=$?
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); }; }; then
21027   ac_cv_sizeof_unsigned_int=$ac_size
21028 else
21029   echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21031
21032 fi
21033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21034    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
21035   done
21036
21037 fi
21038
21039
21040 unsigned=$ac_cv_sizeof_unsigned_int
21041 if test x$unsigned = x ; then
21042   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
21043 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
21044    { (exit 1); exit 1; }; }
21045 fi
21046 if test x$unsigned != x$signed ; then
21047   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
21048 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
21049    { (exit 1); exit 1; }; }
21050 fi
21051
21052 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
21053 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
21054                    echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
21055 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6
21056
21057  if test "${ac_cv_struct_boundary_int+set}" = set; then
21058   echo $ECHO_N "(cached) $ECHO_C" >&6
21059 else
21060   for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
21061    cat >conftest.$ac_ext <<_ACEOF
21062 /* confdefs.h.  */
21063 _ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h.  */
21067 #include "confdefs.h"
21068      #include <sys/types.h>
21069      struct s { char c; int i; };
21070
21071 int
21072 main ()
21073 {
21074 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
21075   ;
21076   return 0;
21077 }
21078 _ACEOF
21079 rm -f conftest.$ac_objext
21080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21081   (eval $ac_compile) 2>conftest.er1
21082   ac_status=$?
21083   grep -v '^ *+' conftest.er1 >conftest.err
21084   rm -f conftest.er1
21085   cat conftest.err >&5
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); } &&
21088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090   (eval $ac_try) 2>&5
21091   ac_status=$?
21092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093   (exit $ac_status); }; } &&
21094          { ac_try='test -s conftest.$ac_objext'
21095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096   (eval $ac_try) 2>&5
21097   ac_status=$?
21098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); }; }; then
21100   ac_cv_struct_boundary_int=$ac_size
21101 else
21102   echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21104
21105 fi
21106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21107    if test x$ac_cv_struct_boundary_int != x ; then break; fi
21108   done
21109
21110 fi
21111
21112  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
21113 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6
21114
21115 echo "$as_me:$LINENO: checking size of long int" >&5
21116 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
21117     if test "${ac_cv_sizeof_long_int+set}" = set; then
21118   echo $ECHO_N "(cached) $ECHO_C" >&6
21119 else
21120   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21121    cat >conftest.$ac_ext <<_ACEOF
21122 /* confdefs.h.  */
21123 _ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h.  */
21127 #include "confdefs.h"
21128    #include <sys/types.h>
21129
21130
21131 int
21132 main ()
21133 {
21134 switch (0) case 0: case (sizeof (long int) == $ac_size):;
21135   ;
21136   return 0;
21137 }
21138 _ACEOF
21139 rm -f conftest.$ac_objext
21140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21141   (eval $ac_compile) 2>conftest.er1
21142   ac_status=$?
21143   grep -v '^ *+' conftest.er1 >conftest.err
21144   rm -f conftest.er1
21145   cat conftest.err >&5
21146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147   (exit $ac_status); } &&
21148          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150   (eval $ac_try) 2>&5
21151   ac_status=$?
21152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153   (exit $ac_status); }; } &&
21154          { ac_try='test -s conftest.$ac_objext'
21155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156   (eval $ac_try) 2>&5
21157   ac_status=$?
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); }; }; then
21160   ac_cv_sizeof_long_int=$ac_size
21161 else
21162   echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21164
21165 fi
21166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21167    if test x$ac_cv_sizeof_long_int != x ; then break; fi
21168   done
21169
21170 fi
21171
21172
21173 unspecif=$ac_cv_sizeof_long_int
21174 if test x$unspecif = x ; then
21175   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
21176 echo "$as_me: error: cannot determine a size for long int" >&2;}
21177    { (exit 1); exit 1; }; }
21178 fi
21179
21180     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
21181   echo $ECHO_N "(cached) $ECHO_C" >&6
21182 else
21183   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21184    cat >conftest.$ac_ext <<_ACEOF
21185 /* confdefs.h.  */
21186 _ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h.  */
21190 #include "confdefs.h"
21191    #include <sys/types.h>
21192
21193
21194 int
21195 main ()
21196 {
21197 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
21198   ;
21199   return 0;
21200 }
21201 _ACEOF
21202 rm -f conftest.$ac_objext
21203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21204   (eval $ac_compile) 2>conftest.er1
21205   ac_status=$?
21206   grep -v '^ *+' conftest.er1 >conftest.err
21207   rm -f conftest.er1
21208   cat conftest.err >&5
21209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210   (exit $ac_status); } &&
21211          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213   (eval $ac_try) 2>&5
21214   ac_status=$?
21215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216   (exit $ac_status); }; } &&
21217          { ac_try='test -s conftest.$ac_objext'
21218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219   (eval $ac_try) 2>&5
21220   ac_status=$?
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); }; }; then
21223   ac_cv_sizeof_signed_long_int=$ac_size
21224 else
21225   echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21227
21228 fi
21229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21230    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
21231   done
21232
21233 fi
21234
21235
21236 signed=$ac_cv_sizeof_signed_long_int
21237 if test x$signed = x ; then
21238   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
21239 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
21240    { (exit 1); exit 1; }; }
21241 fi
21242 if test x$unspecif != x$signed ; then
21243   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
21244 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
21245    { (exit 1); exit 1; }; }
21246 fi
21247
21248     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
21249   echo $ECHO_N "(cached) $ECHO_C" >&6
21250 else
21251   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21252    cat >conftest.$ac_ext <<_ACEOF
21253 /* confdefs.h.  */
21254 _ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h.  */
21258 #include "confdefs.h"
21259    #include <sys/types.h>
21260
21261
21262 int
21263 main ()
21264 {
21265 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
21266   ;
21267   return 0;
21268 }
21269 _ACEOF
21270 rm -f conftest.$ac_objext
21271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21272   (eval $ac_compile) 2>conftest.er1
21273   ac_status=$?
21274   grep -v '^ *+' conftest.er1 >conftest.err
21275   rm -f conftest.er1
21276   cat conftest.err >&5
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); } &&
21279          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281   (eval $ac_try) 2>&5
21282   ac_status=$?
21283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284   (exit $ac_status); }; } &&
21285          { ac_try='test -s conftest.$ac_objext'
21286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287   (eval $ac_try) 2>&5
21288   ac_status=$?
21289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290   (exit $ac_status); }; }; then
21291   ac_cv_sizeof_unsigned_long_int=$ac_size
21292 else
21293   echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21295
21296 fi
21297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21298    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
21299   done
21300
21301 fi
21302
21303
21304 unsigned=$ac_cv_sizeof_unsigned_long_int
21305 if test x$unsigned = x ; then
21306   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
21307 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
21308    { (exit 1); exit 1; }; }
21309 fi
21310 if test x$unsigned != x$signed ; then
21311   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
21312 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
21313    { (exit 1); exit 1; }; }
21314 fi
21315
21316 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
21317 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
21318               echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
21319 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6
21320
21321  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
21322   echo $ECHO_N "(cached) $ECHO_C" >&6
21323 else
21324   for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
21325    cat >conftest.$ac_ext <<_ACEOF
21326 /* confdefs.h.  */
21327 _ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h.  */
21331 #include "confdefs.h"
21332      #include <sys/types.h>
21333      struct s { char c; long int i; };
21334
21335 int
21336 main ()
21337 {
21338 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
21339   ;
21340   return 0;
21341 }
21342 _ACEOF
21343 rm -f conftest.$ac_objext
21344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21345   (eval $ac_compile) 2>conftest.er1
21346   ac_status=$?
21347   grep -v '^ *+' conftest.er1 >conftest.err
21348   rm -f conftest.er1
21349   cat conftest.err >&5
21350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351   (exit $ac_status); } &&
21352          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354   (eval $ac_try) 2>&5
21355   ac_status=$?
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); }; } &&
21358          { ac_try='test -s conftest.$ac_objext'
21359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360   (eval $ac_try) 2>&5
21361   ac_status=$?
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); }; }; then
21364   ac_cv_struct_boundary_long_int=$ac_size
21365 else
21366   echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21368
21369 fi
21370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21371    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
21372   done
21373
21374 fi
21375
21376  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
21377 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6
21378
21379 echo "$as_me:$LINENO: checking size of long long int" >&5
21380 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
21381     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
21382   echo $ECHO_N "(cached) $ECHO_C" >&6
21383 else
21384   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21385    cat >conftest.$ac_ext <<_ACEOF
21386 /* confdefs.h.  */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h.  */
21391 #include "confdefs.h"
21392    #include <sys/types.h>
21393
21394
21395 int
21396 main ()
21397 {
21398 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
21399   ;
21400   return 0;
21401 }
21402 _ACEOF
21403 rm -f conftest.$ac_objext
21404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21405   (eval $ac_compile) 2>conftest.er1
21406   ac_status=$?
21407   grep -v '^ *+' conftest.er1 >conftest.err
21408   rm -f conftest.er1
21409   cat conftest.err >&5
21410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); } &&
21412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21414   (eval $ac_try) 2>&5
21415   ac_status=$?
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); }; } &&
21418          { ac_try='test -s conftest.$ac_objext'
21419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420   (eval $ac_try) 2>&5
21421   ac_status=$?
21422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423   (exit $ac_status); }; }; then
21424   ac_cv_sizeof_long_long_int=$ac_size
21425 else
21426   echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21428
21429 fi
21430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21431    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
21432   done
21433
21434 fi
21435
21436
21437 unspecif=$ac_cv_sizeof_long_long_int
21438 if test x$unspecif = x ; then
21439   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
21440 echo "$as_me: error: cannot determine a size for long long int" >&2;}
21441    { (exit 1); exit 1; }; }
21442 fi
21443
21444     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
21445   echo $ECHO_N "(cached) $ECHO_C" >&6
21446 else
21447   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21448    cat >conftest.$ac_ext <<_ACEOF
21449 /* confdefs.h.  */
21450 _ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h.  */
21454 #include "confdefs.h"
21455    #include <sys/types.h>
21456
21457
21458 int
21459 main ()
21460 {
21461 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
21462   ;
21463   return 0;
21464 }
21465 _ACEOF
21466 rm -f conftest.$ac_objext
21467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21468   (eval $ac_compile) 2>conftest.er1
21469   ac_status=$?
21470   grep -v '^ *+' conftest.er1 >conftest.err
21471   rm -f conftest.er1
21472   cat conftest.err >&5
21473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); } &&
21475          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477   (eval $ac_try) 2>&5
21478   ac_status=$?
21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); }; } &&
21481          { ac_try='test -s conftest.$ac_objext'
21482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483   (eval $ac_try) 2>&5
21484   ac_status=$?
21485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486   (exit $ac_status); }; }; then
21487   ac_cv_sizeof_signed_long_long_int=$ac_size
21488 else
21489   echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21491
21492 fi
21493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21494    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
21495   done
21496
21497 fi
21498
21499
21500 signed=$ac_cv_sizeof_signed_long_long_int
21501 if test x$signed = x ; then
21502   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
21503 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
21504    { (exit 1); exit 1; }; }
21505 fi
21506 if test x$unspecif != x$signed ; then
21507   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
21508 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
21509    { (exit 1); exit 1; }; }
21510 fi
21511
21512     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
21513   echo $ECHO_N "(cached) $ECHO_C" >&6
21514 else
21515   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21516    cat >conftest.$ac_ext <<_ACEOF
21517 /* confdefs.h.  */
21518 _ACEOF
21519 cat confdefs.h >>conftest.$ac_ext
21520 cat >>conftest.$ac_ext <<_ACEOF
21521 /* end confdefs.h.  */
21522 #include "confdefs.h"
21523    #include <sys/types.h>
21524
21525
21526 int
21527 main ()
21528 {
21529 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
21530   ;
21531   return 0;
21532 }
21533 _ACEOF
21534 rm -f conftest.$ac_objext
21535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21536   (eval $ac_compile) 2>conftest.er1
21537   ac_status=$?
21538   grep -v '^ *+' conftest.er1 >conftest.err
21539   rm -f conftest.er1
21540   cat conftest.err >&5
21541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542   (exit $ac_status); } &&
21543          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545   (eval $ac_try) 2>&5
21546   ac_status=$?
21547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548   (exit $ac_status); }; } &&
21549          { ac_try='test -s conftest.$ac_objext'
21550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551   (eval $ac_try) 2>&5
21552   ac_status=$?
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); }; }; then
21555   ac_cv_sizeof_unsigned_long_long_int=$ac_size
21556 else
21557   echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560 fi
21561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21562    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
21563   done
21564
21565 fi
21566
21567
21568 unsigned=$ac_cv_sizeof_unsigned_long_long_int
21569 if test x$unsigned = x ; then
21570   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
21571 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
21572    { (exit 1); exit 1; }; }
21573 fi
21574 if test x$unsigned != x$signed ; then
21575   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
21576 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
21577    { (exit 1); exit 1; }; }
21578 fi
21579
21580 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
21581 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
21582          echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
21583 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6
21584
21585  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
21586   echo $ECHO_N "(cached) $ECHO_C" >&6
21587 else
21588   for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
21589    cat >conftest.$ac_ext <<_ACEOF
21590 /* confdefs.h.  */
21591 _ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h.  */
21595 #include "confdefs.h"
21596      #include <sys/types.h>
21597      struct s { char c; long long int i; };
21598
21599 int
21600 main ()
21601 {
21602 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
21603   ;
21604   return 0;
21605 }
21606 _ACEOF
21607 rm -f conftest.$ac_objext
21608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609   (eval $ac_compile) 2>conftest.er1
21610   ac_status=$?
21611   grep -v '^ *+' conftest.er1 >conftest.err
21612   rm -f conftest.er1
21613   cat conftest.err >&5
21614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615   (exit $ac_status); } &&
21616          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618   (eval $ac_try) 2>&5
21619   ac_status=$?
21620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621   (exit $ac_status); }; } &&
21622          { ac_try='test -s conftest.$ac_objext'
21623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624   (eval $ac_try) 2>&5
21625   ac_status=$?
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); }; }; then
21628   ac_cv_struct_boundary_long_long_int=$ac_size
21629 else
21630   echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21632
21633 fi
21634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21635    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
21636   done
21637
21638 fi
21639
21640  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
21641 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6
21642
21643
21644     echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
21645 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6
21646
21647  if test "${ac_cv_struct_boundary_float+set}" = set; then
21648   echo $ECHO_N "(cached) $ECHO_C" >&6
21649 else
21650   for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
21651    cat >conftest.$ac_ext <<_ACEOF
21652 /* confdefs.h.  */
21653 _ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h.  */
21657 #include "confdefs.h"
21658      #include <sys/types.h>
21659      struct s { char c; float i; };
21660
21661 int
21662 main ()
21663 {
21664 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
21665   ;
21666   return 0;
21667 }
21668 _ACEOF
21669 rm -f conftest.$ac_objext
21670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21671   (eval $ac_compile) 2>conftest.er1
21672   ac_status=$?
21673   grep -v '^ *+' conftest.er1 >conftest.err
21674   rm -f conftest.er1
21675   cat conftest.err >&5
21676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677   (exit $ac_status); } &&
21678          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680   (eval $ac_try) 2>&5
21681   ac_status=$?
21682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683   (exit $ac_status); }; } &&
21684          { ac_try='test -s conftest.$ac_objext'
21685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21686   (eval $ac_try) 2>&5
21687   ac_status=$?
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); }; }; then
21690   ac_cv_struct_boundary_float=$ac_size
21691 else
21692   echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21694
21695 fi
21696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21697    if test x$ac_cv_struct_boundary_float != x ; then break; fi
21698   done
21699
21700 fi
21701
21702  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
21703 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6
21704                echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
21705 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6
21706
21707  if test "${ac_cv_struct_boundary_double+set}" = set; then
21708   echo $ECHO_N "(cached) $ECHO_C" >&6
21709 else
21710   for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
21711    cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h.  */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h.  */
21717 #include "confdefs.h"
21718      #include <sys/types.h>
21719      struct s { char c; double i; };
21720
21721 int
21722 main ()
21723 {
21724 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
21725   ;
21726   return 0;
21727 }
21728 _ACEOF
21729 rm -f conftest.$ac_objext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731   (eval $ac_compile) 2>conftest.er1
21732   ac_status=$?
21733   grep -v '^ *+' conftest.er1 >conftest.err
21734   rm -f conftest.er1
21735   cat conftest.err >&5
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); } &&
21738          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740   (eval $ac_try) 2>&5
21741   ac_status=$?
21742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743   (exit $ac_status); }; } &&
21744          { ac_try='test -s conftest.$ac_objext'
21745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746   (eval $ac_try) 2>&5
21747   ac_status=$?
21748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749   (exit $ac_status); }; }; then
21750   ac_cv_struct_boundary_double=$ac_size
21751 else
21752   echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21754
21755 fi
21756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21757    if test x$ac_cv_struct_boundary_double != x ; then break; fi
21758   done
21759
21760 fi
21761
21762  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
21763 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6
21764
21765
21766 echo "$as_me:$LINENO: checking size of void *" >&5
21767 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
21768     if test "${ac_cv_sizeof_void_p+set}" = set; then
21769   echo $ECHO_N "(cached) $ECHO_C" >&6
21770 else
21771   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21772    cat >conftest.$ac_ext <<_ACEOF
21773 /* confdefs.h.  */
21774 _ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h.  */
21778 #include "confdefs.h"
21779    #include <sys/types.h>
21780
21781
21782 int
21783 main ()
21784 {
21785 switch (0) case 0: case (sizeof (void *) == $ac_size):;
21786   ;
21787   return 0;
21788 }
21789 _ACEOF
21790 rm -f conftest.$ac_objext
21791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21792   (eval $ac_compile) 2>conftest.er1
21793   ac_status=$?
21794   grep -v '^ *+' conftest.er1 >conftest.err
21795   rm -f conftest.er1
21796   cat conftest.err >&5
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); } &&
21799          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801   (eval $ac_try) 2>&5
21802   ac_status=$?
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); }; } &&
21805          { ac_try='test -s conftest.$ac_objext'
21806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807   (eval $ac_try) 2>&5
21808   ac_status=$?
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); }; }; then
21811   ac_cv_sizeof_void_p=$ac_size
21812 else
21813   echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21815
21816 fi
21817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21818    if test x$ac_cv_sizeof_void_p != x ; then break; fi
21819   done
21820
21821 fi
21822
21823
21824 if test x$ac_cv_sizeof_void_p = x ; then
21825   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
21826 echo "$as_me: error: cannot determine a size for void *" >&2;}
21827    { (exit 1); exit 1; }; }
21828 fi
21829 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21830 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
21831                  echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
21832 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6
21833
21834  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
21835   echo $ECHO_N "(cached) $ECHO_C" >&6
21836 else
21837   for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
21838    cat >conftest.$ac_ext <<_ACEOF
21839 /* confdefs.h.  */
21840 _ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h.  */
21844 #include "confdefs.h"
21845      #include <sys/types.h>
21846      struct s { char c; void * i; };
21847
21848 int
21849 main ()
21850 {
21851 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
21852   ;
21853   return 0;
21854 }
21855 _ACEOF
21856 rm -f conftest.$ac_objext
21857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21858   (eval $ac_compile) 2>conftest.er1
21859   ac_status=$?
21860   grep -v '^ *+' conftest.er1 >conftest.err
21861   rm -f conftest.er1
21862   cat conftest.err >&5
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); } &&
21865          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867   (eval $ac_try) 2>&5
21868   ac_status=$?
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); }; } &&
21871          { ac_try='test -s conftest.$ac_objext'
21872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873   (eval $ac_try) 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); }; }; then
21877   ac_cv_struct_boundary_void_p=$ac_size
21878 else
21879   echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21881
21882 fi
21883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21884    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
21885   done
21886
21887 fi
21888
21889  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
21890 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6
21891
21892 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
21893 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
21894     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
21895   echo $ECHO_N "(cached) $ECHO_C" >&6
21896 else
21897   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21898    cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h.  */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h.  */
21904 #include "confdefs.h"
21905    #include <sys/types.h>
21906
21907
21908 int
21909 main ()
21910 {
21911 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
21912   ;
21913   return 0;
21914 }
21915 _ACEOF
21916 rm -f conftest.$ac_objext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21918   (eval $ac_compile) 2>conftest.er1
21919   ac_status=$?
21920   grep -v '^ *+' conftest.er1 >conftest.err
21921   rm -f conftest.er1
21922   cat conftest.err >&5
21923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); } &&
21925          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21927   (eval $ac_try) 2>&5
21928   ac_status=$?
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); }; } &&
21931          { ac_try='test -s conftest.$ac_objext'
21932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933   (eval $ac_try) 2>&5
21934   ac_status=$?
21935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936   (exit $ac_status); }; }; then
21937   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
21938 else
21939   echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21941
21942 fi
21943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21944    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
21945   done
21946
21947 fi
21948
21949
21950 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
21951   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
21952 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
21953    { (exit 1); exit 1; }; }
21954 fi
21955 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
21956 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
21957
21958
21959
21960 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
21961 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
21962 if test x$endian = x1 ; then
21963   trace_endian=B
21964 else
21965   trace_endian=l
21966 fi
21967 gras_arch=unknown
21968 trace="$trace_endian"
21969
21970 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
21971
21972 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
21973 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
21974 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
21975 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
21976
21977 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
21978 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
21979
21980 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
21981
21982 # sizeof float/double are not tested since IEEE 754 is assumed.
21983 # Check README.IEEE for rational.
21984 case $trace in
21985   l_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=0; gras_arch_name=little32;;
21986   l_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=1; gras_arch_name=little64;;
21987   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=2; gras_arch_name=big32;;
21988   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=3; gras_arch_name=big64;;
21989   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=4; gras_arch_name=aix;;
21990 esac
21991 if test x$gras_arch = xunknown ; then
21992   echo "$as_me:$LINENO: result: damnit ($trace)" >&5
21993 echo "${ECHO_T}damnit ($trace)" >&6
21994   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
21995 Please report this architecture trace ($trace) and what it corresponds to." >&5
21996 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
21997 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
21998    { (exit 1); exit 1; }; }
21999 fi
22000 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
22001
22002 cat >>confdefs.h <<_ACEOF
22003 #define GRAS_THISARCH $gras_arch
22004 _ACEOF
22005
22006 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
22007 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
22008
22009 # Check architecture signature end
22010   echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
22011 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6
22012    cat >conftest.$ac_ext <<_ACEOF
22013 /* confdefs.h.  */
22014 _ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h.  */
22018 #include "confdefs.h"
22019         #include <sys/types.h>
22020         #include <stddef.h> /* offsetof() */
22021         struct s {char c; double d;};
22022
22023 int
22024 main ()
22025 {
22026 switch (0)
22027         case 0:
22028         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
22029
22030   ;
22031   return 0;
22032 }
22033 _ACEOF
22034 rm -f conftest.$ac_objext
22035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22036   (eval $ac_compile) 2>conftest.er1
22037   ac_status=$?
22038   grep -v '^ *+' conftest.er1 >conftest.err
22039   rm -f conftest.er1
22040   cat conftest.err >&5
22041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042   (exit $ac_status); } &&
22043          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22045   (eval $ac_try) 2>&5
22046   ac_status=$?
22047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048   (exit $ac_status); }; } &&
22049          { ac_try='test -s conftest.$ac_objext'
22050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051   (eval $ac_try) 2>&5
22052   ac_status=$?
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); }; }; then
22055   gras_struct_packed=yes
22056 else
22057   echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22059
22060 gras_struct_packed=no
22061 fi
22062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22063
22064    echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
22065 echo "${ECHO_T}$gras_struct_packed" >&6
22066    if test x$gras_struct_packed = "xyes" ; then
22067      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
22068 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
22069    { (exit 1); exit 1; }; }
22070    fi
22071
22072    echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
22073 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6
22074    cat >conftest.$ac_ext <<_ACEOF
22075 /* confdefs.h.  */
22076 _ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h.  */
22080 #include "confdefs.h"
22081         #include <sys/types.h>
22082         #include <stddef.h> /* offsetof() */
22083         struct s {double d; int i; char c;};
22084
22085 int
22086 main ()
22087 {
22088 switch (0)
22089         case 0:
22090         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
22091
22092   ;
22093   return 0;
22094 }
22095 _ACEOF
22096 rm -f conftest.$ac_objext
22097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22098   (eval $ac_compile) 2>conftest.er1
22099   ac_status=$?
22100   grep -v '^ *+' conftest.er1 >conftest.err
22101   rm -f conftest.er1
22102   cat conftest.err >&5
22103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); } &&
22105          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22107   (eval $ac_try) 2>&5
22108   ac_status=$?
22109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110   (exit $ac_status); }; } &&
22111          { ac_try='test -s conftest.$ac_objext'
22112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113   (eval $ac_try) 2>&5
22114   ac_status=$?
22115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116   (exit $ac_status); }; }; then
22117   gras_struct_compact=yes
22118 else
22119   echo "$as_me: failed program was:" >&5
22120 sed 's/^/| /' conftest.$ac_ext >&5
22121
22122 gras_struct_compact=no
22123 fi
22124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22125
22126    echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
22127 echo "${ECHO_T}$gras_struct_compact" >&6
22128
22129    if test x$gras_struct_compact != xyes ; then
22130      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
22131 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
22132    { (exit 1); exit 1; }; }
22133    fi
22134
22135 cat >>confdefs.h <<_ACEOF
22136 #define GRAS_STRUCT_COMPACT 1
22137 _ACEOF
22138
22139    echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
22140 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6
22141
22142    cat >conftest.$ac_ext <<_ACEOF
22143 /* confdefs.h.  */
22144 _ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h.  */
22148 #include "confdefs.h"
22149       #include <sys/types.h>
22150         #include <stddef.h> /* offsetof() */
22151         struct s { double d; int i; char c[6]; };
22152
22153 int
22154 main ()
22155 {
22156 switch (0)
22157       case 0:
22158       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
22159
22160   ;
22161   return 0;
22162 }
22163 _ACEOF
22164 rm -f conftest.$ac_objext
22165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22166   (eval $ac_compile) 2>conftest.er1
22167   ac_status=$?
22168   grep -v '^ *+' conftest.er1 >conftest.err
22169   rm -f conftest.er1
22170   cat conftest.err >&5
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); } &&
22173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22175   (eval $ac_try) 2>&5
22176   ac_status=$?
22177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); }; } &&
22179          { ac_try='test -s conftest.$ac_objext'
22180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181   (eval $ac_try) 2>&5
22182   ac_status=$?
22183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); }; }; then
22185   gras_array_straddle_struct=yes
22186 else
22187   echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22189
22190 gras_array_straddle_struct=no
22191 fi
22192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22193
22194    echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
22195 echo "${ECHO_T}$gras_array_straddle_struct" >&6
22196
22197    if test x$gras_array_straddle_struct = xyes ; then
22198
22199 cat >>confdefs.h <<_ACEOF
22200 #define GRAS_ARRAY_STRADDLE_STRUCT 1
22201 _ACEOF
22202
22203    else
22204      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
22205 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
22206    { (exit 1); exit 1; }; }
22207    fi
22208
22209
22210 # Checks for header files.
22211 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22212 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
22213 if test "${ac_cv_header_stdc+set}" = set; then
22214   echo $ECHO_N "(cached) $ECHO_C" >&6
22215 else
22216   cat >conftest.$ac_ext <<_ACEOF
22217 /* confdefs.h.  */
22218 _ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h.  */
22222 #include <stdlib.h>
22223 #include <stdarg.h>
22224 #include <string.h>
22225 #include <float.h>
22226
22227 int
22228 main ()
22229 {
22230
22231   ;
22232   return 0;
22233 }
22234 _ACEOF
22235 rm -f conftest.$ac_objext
22236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22237   (eval $ac_compile) 2>conftest.er1
22238   ac_status=$?
22239   grep -v '^ *+' conftest.er1 >conftest.err
22240   rm -f conftest.er1
22241   cat conftest.err >&5
22242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243   (exit $ac_status); } &&
22244          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246   (eval $ac_try) 2>&5
22247   ac_status=$?
22248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249   (exit $ac_status); }; } &&
22250          { ac_try='test -s conftest.$ac_objext'
22251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252   (eval $ac_try) 2>&5
22253   ac_status=$?
22254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255   (exit $ac_status); }; }; then
22256   ac_cv_header_stdc=yes
22257 else
22258   echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22260
22261 ac_cv_header_stdc=no
22262 fi
22263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22264
22265 if test $ac_cv_header_stdc = yes; then
22266   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22267   cat >conftest.$ac_ext <<_ACEOF
22268 /* confdefs.h.  */
22269 _ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h.  */
22273 #include <string.h>
22274
22275 _ACEOF
22276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22277   $EGREP "memchr" >/dev/null 2>&1; then
22278   :
22279 else
22280   ac_cv_header_stdc=no
22281 fi
22282 rm -f conftest*
22283
22284 fi
22285
22286 if test $ac_cv_header_stdc = yes; then
22287   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22288   cat >conftest.$ac_ext <<_ACEOF
22289 /* confdefs.h.  */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h.  */
22294 #include <stdlib.h>
22295
22296 _ACEOF
22297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22298   $EGREP "free" >/dev/null 2>&1; then
22299   :
22300 else
22301   ac_cv_header_stdc=no
22302 fi
22303 rm -f conftest*
22304
22305 fi
22306
22307 if test $ac_cv_header_stdc = yes; then
22308   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22309   if test "$cross_compiling" = yes; then
22310   :
22311 else
22312   cat >conftest.$ac_ext <<_ACEOF
22313 /* confdefs.h.  */
22314 _ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h.  */
22318 #include <ctype.h>
22319 #if ((' ' & 0x0FF) == 0x020)
22320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22322 #else
22323 # define ISLOWER(c) \
22324                    (('a' <= (c) && (c) <= 'i') \
22325                      || ('j' <= (c) && (c) <= 'r') \
22326                      || ('s' <= (c) && (c) <= 'z'))
22327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22328 #endif
22329
22330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22331 int
22332 main ()
22333 {
22334   int i;
22335   for (i = 0; i < 256; i++)
22336     if (XOR (islower (i), ISLOWER (i))
22337         || toupper (i) != TOUPPER (i))
22338       exit(2);
22339   exit (0);
22340 }
22341 _ACEOF
22342 rm -f conftest$ac_exeext
22343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22344   (eval $ac_link) 2>&5
22345   ac_status=$?
22346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349   (eval $ac_try) 2>&5
22350   ac_status=$?
22351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352   (exit $ac_status); }; }; then
22353   :
22354 else
22355   echo "$as_me: program exited with status $ac_status" >&5
22356 echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22358
22359 ( exit $ac_status )
22360 ac_cv_header_stdc=no
22361 fi
22362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22363 fi
22364 fi
22365 fi
22366 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22367 echo "${ECHO_T}$ac_cv_header_stdc" >&6
22368 if test $ac_cv_header_stdc = yes; then
22369
22370 cat >>confdefs.h <<\_ACEOF
22371 #define STDC_HEADERS 1
22372 _ACEOF
22373
22374 fi
22375
22376
22377
22378
22379
22380 for ac_header in stddef.h stdlib.h string.h unistd.h
22381 do
22382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22384   echo "$as_me:$LINENO: checking for $ac_header" >&5
22385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22387   echo $ECHO_N "(cached) $ECHO_C" >&6
22388 fi
22389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22391 else
22392   # Is the header compilable?
22393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22395 cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h.  */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h.  */
22401 $ac_includes_default
22402 #include <$ac_header>
22403 _ACEOF
22404 rm -f conftest.$ac_objext
22405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22406   (eval $ac_compile) 2>conftest.er1
22407   ac_status=$?
22408   grep -v '^ *+' conftest.er1 >conftest.err
22409   rm -f conftest.er1
22410   cat conftest.err >&5
22411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412   (exit $ac_status); } &&
22413          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415   (eval $ac_try) 2>&5
22416   ac_status=$?
22417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418   (exit $ac_status); }; } &&
22419          { ac_try='test -s conftest.$ac_objext'
22420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421   (eval $ac_try) 2>&5
22422   ac_status=$?
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); }; }; then
22425   ac_header_compiler=yes
22426 else
22427   echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22429
22430 ac_header_compiler=no
22431 fi
22432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22434 echo "${ECHO_T}$ac_header_compiler" >&6
22435
22436 # Is the header present?
22437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22439 cat >conftest.$ac_ext <<_ACEOF
22440 /* confdefs.h.  */
22441 _ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h.  */
22445 #include <$ac_header>
22446 _ACEOF
22447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22448   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22449   ac_status=$?
22450   grep -v '^ *+' conftest.er1 >conftest.err
22451   rm -f conftest.er1
22452   cat conftest.err >&5
22453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454   (exit $ac_status); } >/dev/null; then
22455   if test -s conftest.err; then
22456     ac_cpp_err=$ac_c_preproc_warn_flag
22457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22458   else
22459     ac_cpp_err=
22460   fi
22461 else
22462   ac_cpp_err=yes
22463 fi
22464 if test -z "$ac_cpp_err"; then
22465   ac_header_preproc=yes
22466 else
22467   echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22469
22470   ac_header_preproc=no
22471 fi
22472 rm -f conftest.err conftest.$ac_ext
22473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22474 echo "${ECHO_T}$ac_header_preproc" >&6
22475
22476 # So?  What about this header?
22477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22478   yes:no: )
22479     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22483     ac_header_preproc=yes
22484     ;;
22485   no:yes:* )
22486     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22488     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22489 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22490     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22492     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22493 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22496     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22498     (
22499       cat <<\_ASBOX
22500 ## ----------------------------------------- ##
22501 ## Report this to martin.quinson@ens-lyon.fr ##
22502 ## ----------------------------------------- ##
22503 _ASBOX
22504     ) |
22505       sed "s/^/$as_me: WARNING:     /" >&2
22506     ;;
22507 esac
22508 echo "$as_me:$LINENO: checking for $ac_header" >&5
22509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22511   echo $ECHO_N "(cached) $ECHO_C" >&6
22512 else
22513   eval "$as_ac_Header=\$ac_header_preproc"
22514 fi
22515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22517
22518 fi
22519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22520   cat >>confdefs.h <<_ACEOF
22521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22522 _ACEOF
22523
22524 fi
22525
22526 done
22527
22528
22529 # Checks for typedefs, structures, and compiler characteristics.
22530 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22531 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22532 if test "${ac_cv_c_const+set}" = set; then
22533   echo $ECHO_N "(cached) $ECHO_C" >&6
22534 else
22535   cat >conftest.$ac_ext <<_ACEOF
22536 /* confdefs.h.  */
22537 _ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h.  */
22541
22542 int
22543 main ()
22544 {
22545 /* FIXME: Include the comments suggested by Paul. */
22546 #ifndef __cplusplus
22547   /* Ultrix mips cc rejects this.  */
22548   typedef int charset[2];
22549   const charset x;
22550   /* SunOS 4.1.1 cc rejects this.  */
22551   char const *const *ccp;
22552   char **p;
22553   /* NEC SVR4.0.2 mips cc rejects this.  */
22554   struct point {int x, y;};
22555   static struct point const zero = {0,0};
22556   /* AIX XL C 1.02.0.0 rejects this.
22557      It does not let you subtract one const X* pointer from another in
22558      an arm of an if-expression whose if-part is not a constant
22559      expression */
22560   const char *g = "string";
22561   ccp = &g + (g ? g-g : 0);
22562   /* HPUX 7.0 cc rejects these. */
22563   ++ccp;
22564   p = (char**) ccp;
22565   ccp = (char const *const *) p;
22566   { /* SCO 3.2v4 cc rejects this.  */
22567     char *t;
22568     char const *s = 0 ? (char *) 0 : (char const *) 0;
22569
22570     *t++ = 0;
22571   }
22572   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22573     int x[] = {25, 17};
22574     const int *foo = &x[0];
22575     ++foo;
22576   }
22577   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22578     typedef const int *iptr;
22579     iptr p = 0;
22580     ++p;
22581   }
22582   { /* AIX XL C 1.02.0.0 rejects this saying
22583        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22584     struct s { int j; const int *ap[3]; };
22585     struct s *b; b->j = 5;
22586   }
22587   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22588     const int foo = 10;
22589   }
22590 #endif
22591
22592   ;
22593   return 0;
22594 }
22595 _ACEOF
22596 rm -f conftest.$ac_objext
22597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22598   (eval $ac_compile) 2>conftest.er1
22599   ac_status=$?
22600   grep -v '^ *+' conftest.er1 >conftest.err
22601   rm -f conftest.er1
22602   cat conftest.err >&5
22603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604   (exit $ac_status); } &&
22605          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607   (eval $ac_try) 2>&5
22608   ac_status=$?
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); }; } &&
22611          { ac_try='test -s conftest.$ac_objext'
22612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613   (eval $ac_try) 2>&5
22614   ac_status=$?
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); }; }; then
22617   ac_cv_c_const=yes
22618 else
22619   echo "$as_me: failed program was:" >&5
22620 sed 's/^/| /' conftest.$ac_ext >&5
22621
22622 ac_cv_c_const=no
22623 fi
22624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22625 fi
22626 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22627 echo "${ECHO_T}$ac_cv_c_const" >&6
22628 if test $ac_cv_c_const = no; then
22629
22630 cat >>confdefs.h <<\_ACEOF
22631 #define const
22632 _ACEOF
22633
22634 fi
22635
22636 echo "$as_me:$LINENO: checking for inline" >&5
22637 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22638 if test "${ac_cv_c_inline+set}" = set; then
22639   echo $ECHO_N "(cached) $ECHO_C" >&6
22640 else
22641   ac_cv_c_inline=no
22642 for ac_kw in inline __inline__ __inline; do
22643   cat >conftest.$ac_ext <<_ACEOF
22644 /* confdefs.h.  */
22645 _ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h.  */
22649 #ifndef __cplusplus
22650 typedef int foo_t;
22651 static $ac_kw foo_t static_foo () {return 0; }
22652 $ac_kw foo_t foo () {return 0; }
22653 #endif
22654
22655 _ACEOF
22656 rm -f conftest.$ac_objext
22657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22658   (eval $ac_compile) 2>conftest.er1
22659   ac_status=$?
22660   grep -v '^ *+' conftest.er1 >conftest.err
22661   rm -f conftest.er1
22662   cat conftest.err >&5
22663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664   (exit $ac_status); } &&
22665          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667   (eval $ac_try) 2>&5
22668   ac_status=$?
22669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670   (exit $ac_status); }; } &&
22671          { ac_try='test -s conftest.$ac_objext'
22672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673   (eval $ac_try) 2>&5
22674   ac_status=$?
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); }; }; then
22677   ac_cv_c_inline=$ac_kw; break
22678 else
22679   echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22681
22682 fi
22683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22684 done
22685
22686 fi
22687 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22688 echo "${ECHO_T}$ac_cv_c_inline" >&6
22689
22690
22691 case $ac_cv_c_inline in
22692   inline | yes) ;;
22693   *)
22694     case $ac_cv_c_inline in
22695       no) ac_val=;;
22696       *) ac_val=$ac_cv_c_inline;;
22697     esac
22698     cat >>confdefs.h <<_ACEOF
22699 #ifndef __cplusplus
22700 #define inline $ac_val
22701 #endif
22702 _ACEOF
22703     ;;
22704 esac
22705
22706 echo "$as_me:$LINENO: checking for size_t" >&5
22707 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22708 if test "${ac_cv_type_size_t+set}" = set; then
22709   echo $ECHO_N "(cached) $ECHO_C" >&6
22710 else
22711   cat >conftest.$ac_ext <<_ACEOF
22712 /* confdefs.h.  */
22713 _ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h.  */
22717 $ac_includes_default
22718 int
22719 main ()
22720 {
22721 if ((size_t *) 0)
22722   return 0;
22723 if (sizeof (size_t))
22724   return 0;
22725   ;
22726   return 0;
22727 }
22728 _ACEOF
22729 rm -f conftest.$ac_objext
22730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22731   (eval $ac_compile) 2>conftest.er1
22732   ac_status=$?
22733   grep -v '^ *+' conftest.er1 >conftest.err
22734   rm -f conftest.er1
22735   cat conftest.err >&5
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); } &&
22738          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740   (eval $ac_try) 2>&5
22741   ac_status=$?
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); }; } &&
22744          { ac_try='test -s conftest.$ac_objext'
22745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746   (eval $ac_try) 2>&5
22747   ac_status=$?
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); }; }; then
22750   ac_cv_type_size_t=yes
22751 else
22752   echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22754
22755 ac_cv_type_size_t=no
22756 fi
22757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22758 fi
22759 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22760 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22761 if test $ac_cv_type_size_t = yes; then
22762   :
22763 else
22764
22765 cat >>confdefs.h <<_ACEOF
22766 #define size_t unsigned
22767 _ACEOF
22768
22769 fi
22770
22771
22772 # Checks for library functions.
22773
22774 for ac_header in stdlib.h
22775 do
22776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22778   echo "$as_me:$LINENO: checking for $ac_header" >&5
22779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22781   echo $ECHO_N "(cached) $ECHO_C" >&6
22782 fi
22783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22785 else
22786   # Is the header compilable?
22787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22789 cat >conftest.$ac_ext <<_ACEOF
22790 /* confdefs.h.  */
22791 _ACEOF
22792 cat confdefs.h >>conftest.$ac_ext
22793 cat >>conftest.$ac_ext <<_ACEOF
22794 /* end confdefs.h.  */
22795 $ac_includes_default
22796 #include <$ac_header>
22797 _ACEOF
22798 rm -f conftest.$ac_objext
22799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22800   (eval $ac_compile) 2>conftest.er1
22801   ac_status=$?
22802   grep -v '^ *+' conftest.er1 >conftest.err
22803   rm -f conftest.er1
22804   cat conftest.err >&5
22805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806   (exit $ac_status); } &&
22807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22809   (eval $ac_try) 2>&5
22810   ac_status=$?
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); }; } &&
22813          { ac_try='test -s conftest.$ac_objext'
22814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22815   (eval $ac_try) 2>&5
22816   ac_status=$?
22817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818   (exit $ac_status); }; }; then
22819   ac_header_compiler=yes
22820 else
22821   echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22823
22824 ac_header_compiler=no
22825 fi
22826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22828 echo "${ECHO_T}$ac_header_compiler" >&6
22829
22830 # Is the header present?
22831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22833 cat >conftest.$ac_ext <<_ACEOF
22834 /* confdefs.h.  */
22835 _ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h.  */
22839 #include <$ac_header>
22840 _ACEOF
22841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22843   ac_status=$?
22844   grep -v '^ *+' conftest.er1 >conftest.err
22845   rm -f conftest.er1
22846   cat conftest.err >&5
22847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848   (exit $ac_status); } >/dev/null; then
22849   if test -s conftest.err; then
22850     ac_cpp_err=$ac_c_preproc_warn_flag
22851     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22852   else
22853     ac_cpp_err=
22854   fi
22855 else
22856   ac_cpp_err=yes
22857 fi
22858 if test -z "$ac_cpp_err"; then
22859   ac_header_preproc=yes
22860 else
22861   echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22863
22864   ac_header_preproc=no
22865 fi
22866 rm -f conftest.err conftest.$ac_ext
22867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22868 echo "${ECHO_T}$ac_header_preproc" >&6
22869
22870 # So?  What about this header?
22871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22872   yes:no: )
22873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22877     ac_header_preproc=yes
22878     ;;
22879   no:yes:* )
22880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22882     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22883 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22884     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22886     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22887 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22890     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22892     (
22893       cat <<\_ASBOX
22894 ## ----------------------------------------- ##
22895 ## Report this to martin.quinson@ens-lyon.fr ##
22896 ## ----------------------------------------- ##
22897 _ASBOX
22898     ) |
22899       sed "s/^/$as_me: WARNING:     /" >&2
22900     ;;
22901 esac
22902 echo "$as_me:$LINENO: checking for $ac_header" >&5
22903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22905   echo $ECHO_N "(cached) $ECHO_C" >&6
22906 else
22907   eval "$as_ac_Header=\$ac_header_preproc"
22908 fi
22909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22911
22912 fi
22913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22914   cat >>confdefs.h <<_ACEOF
22915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22916 _ACEOF
22917
22918 fi
22919
22920 done
22921
22922 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22923 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22924 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22925   echo $ECHO_N "(cached) $ECHO_C" >&6
22926 else
22927   if test "$cross_compiling" = yes; then
22928   ac_cv_func_malloc_0_nonnull=no
22929 else
22930   cat >conftest.$ac_ext <<_ACEOF
22931 /* confdefs.h.  */
22932 _ACEOF
22933 cat confdefs.h >>conftest.$ac_ext
22934 cat >>conftest.$ac_ext <<_ACEOF
22935 /* end confdefs.h.  */
22936 #if STDC_HEADERS || HAVE_STDLIB_H
22937 # include <stdlib.h>
22938 #else
22939 char *malloc ();
22940 #endif
22941
22942 int
22943 main ()
22944 {
22945 exit (malloc (0) ? 0 : 1);
22946   ;
22947   return 0;
22948 }
22949 _ACEOF
22950 rm -f conftest$ac_exeext
22951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22952   (eval $ac_link) 2>&5
22953   ac_status=$?
22954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957   (eval $ac_try) 2>&5
22958   ac_status=$?
22959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960   (exit $ac_status); }; }; then
22961   ac_cv_func_malloc_0_nonnull=yes
22962 else
22963   echo "$as_me: program exited with status $ac_status" >&5
22964 echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22966
22967 ( exit $ac_status )
22968 ac_cv_func_malloc_0_nonnull=no
22969 fi
22970 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22971 fi
22972 fi
22973 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22974 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22975 if test $ac_cv_func_malloc_0_nonnull = yes; then
22976
22977 cat >>confdefs.h <<\_ACEOF
22978 #define HAVE_MALLOC 1
22979 _ACEOF
22980
22981 else
22982   cat >>confdefs.h <<\_ACEOF
22983 #define HAVE_MALLOC 0
22984 _ACEOF
22985
22986    case $LIBOBJS in
22987     "malloc.$ac_objext"   | \
22988   *" malloc.$ac_objext"   | \
22989     "malloc.$ac_objext "* | \
22990   *" malloc.$ac_objext "* ) ;;
22991   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
22992 esac
22993
22994
22995 cat >>confdefs.h <<\_ACEOF
22996 #define malloc rpl_malloc
22997 _ACEOF
22998
22999 fi
23000
23001
23002
23003 echo "$as_me:$LINENO: checking for working memcmp" >&5
23004 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
23005 if test "${ac_cv_func_memcmp_working+set}" = set; then
23006   echo $ECHO_N "(cached) $ECHO_C" >&6
23007 else
23008   if test "$cross_compiling" = yes; then
23009   ac_cv_func_memcmp_working=no
23010 else
23011   cat >conftest.$ac_ext <<_ACEOF
23012 /* confdefs.h.  */
23013 _ACEOF
23014 cat confdefs.h >>conftest.$ac_ext
23015 cat >>conftest.$ac_ext <<_ACEOF
23016 /* end confdefs.h.  */
23017 $ac_includes_default
23018 int
23019 main ()
23020 {
23021
23022   /* Some versions of memcmp are not 8-bit clean.  */
23023   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23024   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23025     exit (1);
23026
23027   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23028      or more and with at least one buffer not starting on a 4-byte boundary.
23029      William Lewis provided this test program.   */
23030   {
23031     char foo[21];
23032     char bar[21];
23033     int i;
23034     for (i = 0; i < 4; i++)
23035       {
23036         char *a = foo + i;
23037         char *b = bar + i;
23038         strcpy (a, "--------01111111");
23039         strcpy (b, "--------10000000");
23040         if (memcmp (a, b, 16) >= 0)
23041           exit (1);
23042       }
23043     exit (0);
23044   }
23045
23046   ;
23047   return 0;
23048 }
23049 _ACEOF
23050 rm -f conftest$ac_exeext
23051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23052   (eval $ac_link) 2>&5
23053   ac_status=$?
23054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057   (eval $ac_try) 2>&5
23058   ac_status=$?
23059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060   (exit $ac_status); }; }; then
23061   ac_cv_func_memcmp_working=yes
23062 else
23063   echo "$as_me: program exited with status $ac_status" >&5
23064 echo "$as_me: failed program was:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23066
23067 ( exit $ac_status )
23068 ac_cv_func_memcmp_working=no
23069 fi
23070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23071 fi
23072 fi
23073 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
23074 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
23075 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
23076     "memcmp.$ac_objext"   | \
23077   *" memcmp.$ac_objext"   | \
23078     "memcmp.$ac_objext "* | \
23079   *" memcmp.$ac_objext "* ) ;;
23080   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
23081 esac
23082
23083
23084
23085
23086
23087
23088 for ac_func in memset strchr strerror usleep
23089 do
23090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23091 echo "$as_me:$LINENO: checking for $ac_func" >&5
23092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23093 if eval "test \"\${$as_ac_var+set}\" = set"; then
23094   echo $ECHO_N "(cached) $ECHO_C" >&6
23095 else
23096   cat >conftest.$ac_ext <<_ACEOF
23097 /* confdefs.h.  */
23098 _ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h.  */
23102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23104 #define $ac_func innocuous_$ac_func
23105
23106 /* System header to define __stub macros and hopefully few prototypes,
23107     which can conflict with char $ac_func (); below.
23108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23109     <limits.h> exists even on freestanding compilers.  */
23110
23111 #ifdef __STDC__
23112 # include <limits.h>
23113 #else
23114 # include <assert.h>
23115 #endif
23116
23117 #undef $ac_func
23118
23119 /* Override any gcc2 internal prototype to avoid an error.  */
23120 #ifdef __cplusplus
23121 extern "C"
23122 {
23123 #endif
23124 /* We use char because int might match the return type of a gcc2
23125    builtin and then its argument prototype would still apply.  */
23126 char $ac_func ();
23127 /* The GNU C library defines this for functions which it implements
23128     to always fail with ENOSYS.  Some functions are actually named
23129     something starting with __ and the normal name is an alias.  */
23130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23131 choke me
23132 #else
23133 char (*f) () = $ac_func;
23134 #endif
23135 #ifdef __cplusplus
23136 }
23137 #endif
23138
23139 int
23140 main ()
23141 {
23142 return f != $ac_func;
23143   ;
23144   return 0;
23145 }
23146 _ACEOF
23147 rm -f conftest.$ac_objext conftest$ac_exeext
23148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23149   (eval $ac_link) 2>conftest.er1
23150   ac_status=$?
23151   grep -v '^ *+' conftest.er1 >conftest.err
23152   rm -f conftest.er1
23153   cat conftest.err >&5
23154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155   (exit $ac_status); } &&
23156          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23158   (eval $ac_try) 2>&5
23159   ac_status=$?
23160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161   (exit $ac_status); }; } &&
23162          { ac_try='test -s conftest$ac_exeext'
23163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164   (eval $ac_try) 2>&5
23165   ac_status=$?
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); }; }; then
23168   eval "$as_ac_var=yes"
23169 else
23170   echo "$as_me: failed program was:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23172
23173 eval "$as_ac_var=no"
23174 fi
23175 rm -f conftest.err conftest.$ac_objext \
23176       conftest$ac_exeext conftest.$ac_ext
23177 fi
23178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23180 if test `eval echo '${'$as_ac_var'}'` = yes; then
23181   cat >>confdefs.h <<_ACEOF
23182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23183 _ACEOF
23184
23185 fi
23186 done
23187
23188
23189 # Can we rebuild the parsers?
23190 # We really want flex and refuse other lex. So, the parser is portable and
23191 # does not induce extra lib dependency
23192 for ac_prog in flex lex
23193 do
23194   # Extract the first word of "$ac_prog", so it can be a program name with args.
23195 set dummy $ac_prog; ac_word=$2
23196 echo "$as_me:$LINENO: checking for $ac_word" >&5
23197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23198 if test "${ac_cv_prog_LEX+set}" = set; then
23199   echo $ECHO_N "(cached) $ECHO_C" >&6
23200 else
23201   if test -n "$LEX"; then
23202   ac_cv_prog_LEX="$LEX" # Let the user override the test.
23203 else
23204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23205 for as_dir in $PATH
23206 do
23207   IFS=$as_save_IFS
23208   test -z "$as_dir" && as_dir=.
23209   for ac_exec_ext in '' $ac_executable_extensions; do
23210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23211     ac_cv_prog_LEX="$ac_prog"
23212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23213     break 2
23214   fi
23215 done
23216 done
23217
23218 fi
23219 fi
23220 LEX=$ac_cv_prog_LEX
23221 if test -n "$LEX"; then
23222   echo "$as_me:$LINENO: result: $LEX" >&5
23223 echo "${ECHO_T}$LEX" >&6
23224 else
23225   echo "$as_me:$LINENO: result: no" >&5
23226 echo "${ECHO_T}no" >&6
23227 fi
23228
23229   test -n "$LEX" && break
23230 done
23231 test -n "$LEX" || LEX=":"
23232
23233 if test -z "$LEXLIB"
23234 then
23235   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
23236 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
23237 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
23238   echo $ECHO_N "(cached) $ECHO_C" >&6
23239 else
23240   ac_check_lib_save_LIBS=$LIBS
23241 LIBS="-lfl  $LIBS"
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248
23249 /* Override any gcc2 internal prototype to avoid an error.  */
23250 #ifdef __cplusplus
23251 extern "C"
23252 #endif
23253 /* We use char because int might match the return type of a gcc2
23254    builtin and then its argument prototype would still apply.  */
23255 char yywrap ();
23256 int
23257 main ()
23258 {
23259 yywrap ();
23260   ;
23261   return 0;
23262 }
23263 _ACEOF
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23266   (eval $ac_link) 2>conftest.er1
23267   ac_status=$?
23268   grep -v '^ *+' conftest.er1 >conftest.err
23269   rm -f conftest.er1
23270   cat conftest.err >&5
23271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); } &&
23273          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275   (eval $ac_try) 2>&5
23276   ac_status=$?
23277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278   (exit $ac_status); }; } &&
23279          { ac_try='test -s conftest$ac_exeext'
23280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281   (eval $ac_try) 2>&5
23282   ac_status=$?
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); }; }; then
23285   ac_cv_lib_fl_yywrap=yes
23286 else
23287   echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23289
23290 ac_cv_lib_fl_yywrap=no
23291 fi
23292 rm -f conftest.err conftest.$ac_objext \
23293       conftest$ac_exeext conftest.$ac_ext
23294 LIBS=$ac_check_lib_save_LIBS
23295 fi
23296 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
23297 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
23298 if test $ac_cv_lib_fl_yywrap = yes; then
23299   LEXLIB="-lfl"
23300 else
23301   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
23302 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
23303 if test "${ac_cv_lib_l_yywrap+set}" = set; then
23304   echo $ECHO_N "(cached) $ECHO_C" >&6
23305 else
23306   ac_check_lib_save_LIBS=$LIBS
23307 LIBS="-ll  $LIBS"
23308 cat >conftest.$ac_ext <<_ACEOF
23309 /* confdefs.h.  */
23310 _ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h.  */
23314
23315 /* Override any gcc2 internal prototype to avoid an error.  */
23316 #ifdef __cplusplus
23317 extern "C"
23318 #endif
23319 /* We use char because int might match the return type of a gcc2
23320    builtin and then its argument prototype would still apply.  */
23321 char yywrap ();
23322 int
23323 main ()
23324 {
23325 yywrap ();
23326   ;
23327   return 0;
23328 }
23329 _ACEOF
23330 rm -f conftest.$ac_objext conftest$ac_exeext
23331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23332   (eval $ac_link) 2>conftest.er1
23333   ac_status=$?
23334   grep -v '^ *+' conftest.er1 >conftest.err
23335   rm -f conftest.er1
23336   cat conftest.err >&5
23337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338   (exit $ac_status); } &&
23339          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341   (eval $ac_try) 2>&5
23342   ac_status=$?
23343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344   (exit $ac_status); }; } &&
23345          { ac_try='test -s conftest$ac_exeext'
23346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347   (eval $ac_try) 2>&5
23348   ac_status=$?
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); }; }; then
23351   ac_cv_lib_l_yywrap=yes
23352 else
23353   echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23355
23356 ac_cv_lib_l_yywrap=no
23357 fi
23358 rm -f conftest.err conftest.$ac_objext \
23359       conftest$ac_exeext conftest.$ac_ext
23360 LIBS=$ac_check_lib_save_LIBS
23361 fi
23362 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
23363 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
23364 if test $ac_cv_lib_l_yywrap = yes; then
23365   LEXLIB="-ll"
23366 fi
23367
23368 fi
23369
23370 fi
23371
23372 if test "x$LEX" != "x:"; then
23373   echo "$as_me:$LINENO: checking lex output file root" >&5
23374 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
23375 if test "${ac_cv_prog_lex_root+set}" = set; then
23376   echo $ECHO_N "(cached) $ECHO_C" >&6
23377 else
23378   # The minimal lex program is just a single line: %%.  But some broken lexes
23379 # (Solaris, I think it was) want two %% lines, so accommodate them.
23380 cat >conftest.l <<_ACEOF
23381 %%
23382 %%
23383 _ACEOF
23384 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
23385   (eval $LEX conftest.l) 2>&5
23386   ac_status=$?
23387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388   (exit $ac_status); }
23389 if test -f lex.yy.c; then
23390   ac_cv_prog_lex_root=lex.yy
23391 elif test -f lexyy.c; then
23392   ac_cv_prog_lex_root=lexyy
23393 else
23394   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
23395 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
23396    { (exit 1); exit 1; }; }
23397 fi
23398 fi
23399 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
23400 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
23401 rm -f conftest.l
23402 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
23403
23404 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
23405 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
23406 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
23407   echo $ECHO_N "(cached) $ECHO_C" >&6
23408 else
23409   # POSIX says lex can declare yytext either as a pointer or an array; the
23410 # default is implementation-dependent. Figure out which it is, since
23411 # not all implementations provide the %pointer and %array declarations.
23412 ac_cv_prog_lex_yytext_pointer=no
23413 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
23414 ac_save_LIBS=$LIBS
23415 LIBS="$LIBS $LEXLIB"
23416 cat >conftest.$ac_ext <<_ACEOF
23417 `cat $LEX_OUTPUT_ROOT.c`
23418 _ACEOF
23419 rm -f conftest.$ac_objext conftest$ac_exeext
23420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23421   (eval $ac_link) 2>conftest.er1
23422   ac_status=$?
23423   grep -v '^ *+' conftest.er1 >conftest.err
23424   rm -f conftest.er1
23425   cat conftest.err >&5
23426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427   (exit $ac_status); } &&
23428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430   (eval $ac_try) 2>&5
23431   ac_status=$?
23432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433   (exit $ac_status); }; } &&
23434          { ac_try='test -s conftest$ac_exeext'
23435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436   (eval $ac_try) 2>&5
23437   ac_status=$?
23438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439   (exit $ac_status); }; }; then
23440   ac_cv_prog_lex_yytext_pointer=yes
23441 else
23442   echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23444
23445 fi
23446 rm -f conftest.err conftest.$ac_objext \
23447       conftest$ac_exeext conftest.$ac_ext
23448 LIBS=$ac_save_LIBS
23449 rm -f "${LEX_OUTPUT_ROOT}.c"
23450
23451 fi
23452 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
23453 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
23454 if test $ac_cv_prog_lex_yytext_pointer = yes; then
23455
23456 cat >>confdefs.h <<\_ACEOF
23457 #define YYTEXT_POINTER 1
23458 _ACEOF
23459
23460 fi
23461
23462 fi
23463 if test "$LEX" != flex; then
23464   LEX="$SHELL $missing_dir/missing flex"
23465 fi
23466
23467 # Can we rebuild the documentation?
23468
23469
23470 # Check whether --with-html-dir or --without-html-dir was given.
23471 if test "${with_html_dir+set}" = set; then
23472   withval="$with_html_dir"
23473
23474 else
23475   with_html_dir='${datadir}/gtk-doc/html'
23476 fi;
23477   HTML_DIR="$with_html_dir"
23478
23479
23480     # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
23481 if test "${enable_gtk_doc+set}" = set; then
23482   enableval="$enable_gtk_doc"
23483
23484 else
23485   enable_gtk_doc=no
23486 fi;
23487
23488   have_gtk_doc=no
23489   if test x$enable_gtk_doc = xyes; then
23490     if test -z "$PKG_CONFIG"; then
23491       # Extract the first word of "pkg-config", so it can be a program name with args.
23492 set dummy pkg-config; ac_word=$2
23493 echo "$as_me:$LINENO: checking for $ac_word" >&5
23494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23495 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23496   echo $ECHO_N "(cached) $ECHO_C" >&6
23497 else
23498   case $PKG_CONFIG in
23499   [\\/]* | ?:[\\/]*)
23500   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23501   ;;
23502   *)
23503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23504 for as_dir in $PATH
23505 do
23506   IFS=$as_save_IFS
23507   test -z "$as_dir" && as_dir=.
23508   for ac_exec_ext in '' $ac_executable_extensions; do
23509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23510     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23512     break 2
23513   fi
23514 done
23515 done
23516
23517   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23518   ;;
23519 esac
23520 fi
23521 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23522
23523 if test -n "$PKG_CONFIG"; then
23524   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23525 echo "${ECHO_T}$PKG_CONFIG" >&6
23526 else
23527   echo "$as_me:$LINENO: result: no" >&5
23528 echo "${ECHO_T}no" >&6
23529 fi
23530
23531     fi
23532     if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
23533       have_gtk_doc=yes
23534     fi
23535
23536
23537     if test "$have_gtk_doc" != yes; then
23538       enable_gtk_doc=no
23539     fi
23540   fi
23541
23542
23543
23544 if test x$enable_gtk_doc = xyes; then
23545   ENABLE_GTK_DOC_TRUE=
23546   ENABLE_GTK_DOC_FALSE='#'
23547 else
23548   ENABLE_GTK_DOC_TRUE='#'
23549   ENABLE_GTK_DOC_FALSE=
23550 fi
23551
23552
23553
23554 if test -n "$LIBTOOL"; then
23555   GTK_DOC_USE_LIBTOOL_TRUE=
23556   GTK_DOC_USE_LIBTOOL_FALSE='#'
23557 else
23558   GTK_DOC_USE_LIBTOOL_TRUE='#'
23559   GTK_DOC_USE_LIBTOOL_FALSE=
23560 fi
23561
23562
23563 htmldir='${datadir}/doc/gras/html'
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574         aci_nameok=`echo SimGrid|sed 'y/-/./'`
23575         if test "xSimGrid" != "x$aci_nameok" ; then
23576           { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
23577 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
23578    { (exit 1); exit 1; }; }
23579         fi
23580         echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
23581         aci_module_desc_SimGrid="the SimGrid simulator"
23582                 aci_packages="$aci_packages SimGrid"
23583
23584
23585 # Check whether --with-SimGrid or --without-SimGrid was given.
23586 if test "${with_SimGrid+set}" = set; then
23587   withval="$with_SimGrid"
23588   with_SimGrid=$withval
23589            good=yes
23590            if test "$withval" = yes ; then good=no; fi
23591            if test "$withval" = no ; then good=no; fi
23592            if test $good = no ; then
23593              { { echo "$as_me:$LINENO: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&5
23594 echo "$as_me: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&2;}
23595    { (exit 1); exit 1; }; }
23596            fi
23597            aci_pkg_prefix_SimGrid="$withval"
23598            CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
23599            LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
23600
23601 fi;
23602
23603
23604 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
23605 if test "${with_SimGrid_includes+set}" = set; then
23606   withval="$with_SimGrid_includes"
23607   CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
23608            aci_pkg_inc_SimGrid="$withval"
23609
23610 fi;
23611
23612
23613 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
23614 if test "${with_SimGrid_libraries+set}" = set; then
23615   withval="$with_SimGrid_libraries"
23616   LIBS_SimGrid="-L$withval $LIBS_SimGrid"
23617              aci_pkg_lib_SimGrid="$withval"
23618 fi;
23619
23620
23621 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
23622 if test "${with_SimGrid_extra+set}" = set; then
23623   withval="$with_SimGrid_extra"
23624   LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
23625              aci_pkg_extra_SimGrid="$withval"
23626 fi;
23627
23628
23629                                 OLD_LDFLAGS=$LDFLAGS
23630         OLD_CFLAGS=$CFLAGS
23631         OLD_CPPFLAGS=$CPPFLAGS
23632
23633                 i=`echo -lsimgrid|wc -l`
23634         if test $i != 1 && test $i != 0 ; then
23635           { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
23636             please no newline and no tab." >&5
23637 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
23638             please no newline and no tab." >&2;}
23639    { (exit 1); exit 1; }; }
23640         fi
23641
23642         ac_func_search_save_LIBS="$LIBS"
23643         ac_func_search_save_this_LIBS="$LIBS_SimGrid"
23644         aci_found="no"
23645         echo "----------------------------------------" >&5
23646         echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
23647 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
23648         cat >conftest.$ac_ext <<_ACEOF
23649 /* confdefs.h.  */
23650 _ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h.  */
23654
23655 /* Override any gcc2 internal prototype to avoid an error.  */
23656 #ifdef __cplusplus
23657 extern "C"
23658 #endif
23659 /* We use char because int might match the return type of a gcc2
23660    builtin and then its argument prototype would still apply.  */
23661 char SG_init ();
23662 int
23663 main ()
23664 {
23665 SG_init ();
23666   ;
23667   return 0;
23668 }
23669 _ACEOF
23670 rm -f conftest.$ac_objext conftest$ac_exeext
23671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23672   (eval $ac_link) 2>conftest.er1
23673   ac_status=$?
23674   grep -v '^ *+' conftest.er1 >conftest.err
23675   rm -f conftest.er1
23676   cat conftest.err >&5
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); } &&
23679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23681   (eval $ac_try) 2>&5
23682   ac_status=$?
23683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684   (exit $ac_status); }; } &&
23685          { ac_try='test -s conftest$ac_exeext'
23686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23687   (eval $ac_try) 2>&5
23688   ac_status=$?
23689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690   (exit $ac_status); }; }; then
23691   echo "$as_me:$LINENO: result: yes" >&5
23692 echo "${ECHO_T}yes" >&6 aci_found="yes"
23693 else
23694   echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23696
23697 echo "$as_me:$LINENO: result: no" >&5
23698 echo "${ECHO_T}no" >&6
23699 fi
23700 rm -f conftest.err conftest.$ac_objext \
23701       conftest$ac_exeext conftest.$ac_ext
23702         if test "$aci_found" = "no"; then
23703           if test -n "$LIBS_SimGrid" ; then
23704             LIBS="$LIBS_SimGrid"
23705             echo "----------------------------------------" >&5
23706             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
23707 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
23708             cat >conftest.$ac_ext <<_ACEOF
23709 /* confdefs.h.  */
23710 _ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h.  */
23714
23715 /* Override any gcc2 internal prototype to avoid an error.  */
23716 #ifdef __cplusplus
23717 extern "C"
23718 #endif
23719 /* We use char because int might match the return type of a gcc2
23720    builtin and then its argument prototype would still apply.  */
23721 char SG_init ();
23722 int
23723 main ()
23724 {
23725 SG_init ();
23726   ;
23727   return 0;
23728 }
23729 _ACEOF
23730 rm -f conftest.$ac_objext conftest$ac_exeext
23731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23732   (eval $ac_link) 2>conftest.er1
23733   ac_status=$?
23734   grep -v '^ *+' conftest.er1 >conftest.err
23735   rm -f conftest.er1
23736   cat conftest.err >&5
23737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738   (exit $ac_status); } &&
23739          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23741   (eval $ac_try) 2>&5
23742   ac_status=$?
23743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744   (exit $ac_status); }; } &&
23745          { ac_try='test -s conftest$ac_exeext'
23746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23747   (eval $ac_try) 2>&5
23748   ac_status=$?
23749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750   (exit $ac_status); }; }; then
23751   aci_found="yes"
23752 else
23753   echo "$as_me: failed program was:" >&5
23754 sed 's/^/| /' conftest.$ac_ext >&5
23755
23756 aci_found="no"
23757 fi
23758 rm -f conftest.err conftest.$ac_objext \
23759       conftest$ac_exeext conftest.$ac_ext
23760             echo "$as_me:$LINENO: result: $aci_found" >&5
23761 echo "${ECHO_T}$aci_found" >&6
23762           fi
23763         fi
23764         for i in -lsimgrid
23765         do
23766           if test "x$aci_found" = "xno"; then
23767             LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
23768             LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
23769             echo "----------------------------------------" >&5
23770             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
23771 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
23772             cat >conftest.$ac_ext <<_ACEOF
23773 /* confdefs.h.  */
23774 _ACEOF
23775 cat confdefs.h >>conftest.$ac_ext
23776 cat >>conftest.$ac_ext <<_ACEOF
23777 /* end confdefs.h.  */
23778
23779 /* Override any gcc2 internal prototype to avoid an error.  */
23780 #ifdef __cplusplus
23781 extern "C"
23782 #endif
23783 /* We use char because int might match the return type of a gcc2
23784    builtin and then its argument prototype would still apply.  */
23785 char SG_init ();
23786 int
23787 main ()
23788 {
23789 SG_init ();
23790   ;
23791   return 0;
23792 }
23793 _ACEOF
23794 rm -f conftest.$ac_objext conftest$ac_exeext
23795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23796   (eval $ac_link) 2>conftest.er1
23797   ac_status=$?
23798   grep -v '^ *+' conftest.er1 >conftest.err
23799   rm -f conftest.er1
23800   cat conftest.err >&5
23801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802   (exit $ac_status); } &&
23803          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23805   (eval $ac_try) 2>&5
23806   ac_status=$?
23807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808   (exit $ac_status); }; } &&
23809          { ac_try='test -s conftest$ac_exeext'
23810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811   (eval $ac_try) 2>&5
23812   ac_status=$?
23813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814   (exit $ac_status); }; }; then
23815   aci_found="yes"
23816 else
23817   echo "$as_me: failed program was:" >&5
23818 sed 's/^/| /' conftest.$ac_ext >&5
23819
23820 aci_found="no"
23821 fi
23822 rm -f conftest.err conftest.$ac_objext \
23823       conftest$ac_exeext conftest.$ac_ext
23824             echo "$as_me:$LINENO: result: $aci_found" >&5
23825 echo "${ECHO_T}$aci_found" >&6
23826           fi
23827         done
23828         LIBS="$ac_func_search_save_LIBS"
23829
23830                                 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
23831           CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
23832           echo "CPPFLAGS=$CPPFLAGS">&5;
23833           if test "${ac_cv_header_simgrid_h+set}" = set; then
23834   echo "$as_me:$LINENO: checking for simgrid.h" >&5
23835 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23836 if test "${ac_cv_header_simgrid_h+set}" = set; then
23837   echo $ECHO_N "(cached) $ECHO_C" >&6
23838 fi
23839 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23840 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23841 else
23842   # Is the header compilable?
23843 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
23844 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
23845 cat >conftest.$ac_ext <<_ACEOF
23846 /* confdefs.h.  */
23847 _ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h.  */
23851 $ac_includes_default
23852 #include <simgrid.h>
23853 _ACEOF
23854 rm -f conftest.$ac_objext
23855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23856   (eval $ac_compile) 2>conftest.er1
23857   ac_status=$?
23858   grep -v '^ *+' conftest.er1 >conftest.err
23859   rm -f conftest.er1
23860   cat conftest.err >&5
23861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862   (exit $ac_status); } &&
23863          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23865   (eval $ac_try) 2>&5
23866   ac_status=$?
23867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868   (exit $ac_status); }; } &&
23869          { ac_try='test -s conftest.$ac_objext'
23870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871   (eval $ac_try) 2>&5
23872   ac_status=$?
23873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874   (exit $ac_status); }; }; then
23875   ac_header_compiler=yes
23876 else
23877   echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23879
23880 ac_header_compiler=no
23881 fi
23882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23884 echo "${ECHO_T}$ac_header_compiler" >&6
23885
23886 # Is the header present?
23887 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
23888 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
23889 cat >conftest.$ac_ext <<_ACEOF
23890 /* confdefs.h.  */
23891 _ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h.  */
23895 #include <simgrid.h>
23896 _ACEOF
23897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23898   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23899   ac_status=$?
23900   grep -v '^ *+' conftest.er1 >conftest.err
23901   rm -f conftest.er1
23902   cat conftest.err >&5
23903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904   (exit $ac_status); } >/dev/null; then
23905   if test -s conftest.err; then
23906     ac_cpp_err=$ac_c_preproc_warn_flag
23907     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23908   else
23909     ac_cpp_err=
23910   fi
23911 else
23912   ac_cpp_err=yes
23913 fi
23914 if test -z "$ac_cpp_err"; then
23915   ac_header_preproc=yes
23916 else
23917   echo "$as_me: failed program was:" >&5
23918 sed 's/^/| /' conftest.$ac_ext >&5
23919
23920   ac_header_preproc=no
23921 fi
23922 rm -f conftest.err conftest.$ac_ext
23923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23924 echo "${ECHO_T}$ac_header_preproc" >&6
23925
23926 # So?  What about this header?
23927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23928   yes:no: )
23929     { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23930 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23931     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
23932 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
23933     ac_header_preproc=yes
23934     ;;
23935   no:yes:* )
23936     { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
23937 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
23938     { echo "$as_me:$LINENO: WARNING: simgrid.h:     check for missing prerequisite headers?" >&5
23939 echo "$as_me: WARNING: simgrid.h:     check for missing prerequisite headers?" >&2;}
23940     { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
23941 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
23942     { echo "$as_me:$LINENO: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&5
23943 echo "$as_me: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23944     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
23945 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
23946     { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
23947 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
23948     (
23949       cat <<\_ASBOX
23950 ## ----------------------------------------- ##
23951 ## Report this to martin.quinson@ens-lyon.fr ##
23952 ## ----------------------------------------- ##
23953 _ASBOX
23954     ) |
23955       sed "s/^/$as_me: WARNING:     /" >&2
23956     ;;
23957 esac
23958 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23959 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23960 if test "${ac_cv_header_simgrid_h+set}" = set; then
23961   echo $ECHO_N "(cached) $ECHO_C" >&6
23962 else
23963   ac_cv_header_simgrid_h=$ac_header_preproc
23964 fi
23965 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23966 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23967
23968 fi
23969 if test $ac_cv_header_simgrid_h = yes; then
23970   good=yes
23971 else
23972   good=no
23973 fi
23974
23975
23976         fi
23977         if test "x$aci_found" = "xno" ; then
23978                                    :
23979         else
23980                         HAVE_SimGrid="yes"
23981                 echo >/dev/null
23982         fi
23983         if test "x$HAVE_SimGrid" != "xyes" ; then
23984           CFLAGS_SimGrid=""
23985           LIBS_SimGrid=""
23986         fi
23987
23988
23989
23990
23991         echo "END OF ACI-PACKAGE(SimGrid)">&5;
23992                 LDFLAGS=$OLDLDFLAGS
23993         CPPFLAGS=$OLDCPPFLAGS
23994         CFLAGS=$OLDCFLAGS
23995
23996
23997
23998 if test x$HAVE_SimGrid = xyes; then
23999   HAVE_SG_TRUE=
24000   HAVE_SG_FALSE='#'
24001 else
24002   HAVE_SG_TRUE='#'
24003   HAVE_SG_FALSE=
24004 fi
24005
24006
24007 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24008 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24009 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24010   echo $ECHO_N "(cached) $ECHO_C" >&6
24011 else
24012   ac_check_lib_save_LIBS=$LIBS
24013 LIBS="-lnsl  $LIBS"
24014 cat >conftest.$ac_ext <<_ACEOF
24015 /* confdefs.h.  */
24016 _ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h.  */
24020
24021 /* Override any gcc2 internal prototype to avoid an error.  */
24022 #ifdef __cplusplus
24023 extern "C"
24024 #endif
24025 /* We use char because int might match the return type of a gcc2
24026    builtin and then its argument prototype would still apply.  */
24027 char gethostbyname ();
24028 int
24029 main ()
24030 {
24031 gethostbyname ();
24032   ;
24033   return 0;
24034 }
24035 _ACEOF
24036 rm -f conftest.$ac_objext conftest$ac_exeext
24037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24038   (eval $ac_link) 2>conftest.er1
24039   ac_status=$?
24040   grep -v '^ *+' conftest.er1 >conftest.err
24041   rm -f conftest.er1
24042   cat conftest.err >&5
24043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044   (exit $ac_status); } &&
24045          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24047   (eval $ac_try) 2>&5
24048   ac_status=$?
24049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050   (exit $ac_status); }; } &&
24051          { ac_try='test -s conftest$ac_exeext'
24052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24053   (eval $ac_try) 2>&5
24054   ac_status=$?
24055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056   (exit $ac_status); }; }; then
24057   ac_cv_lib_nsl_gethostbyname=yes
24058 else
24059   echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24061
24062 ac_cv_lib_nsl_gethostbyname=no
24063 fi
24064 rm -f conftest.err conftest.$ac_objext \
24065       conftest$ac_exeext conftest.$ac_ext
24066 LIBS=$ac_check_lib_save_LIBS
24067 fi
24068 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24069 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24070 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24071   LIBS="$LIBS -lnsl"
24072 fi
24073
24074 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24075 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24076 if test "${ac_cv_lib_socket_connect+set}" = set; then
24077   echo $ECHO_N "(cached) $ECHO_C" >&6
24078 else
24079   ac_check_lib_save_LIBS=$LIBS
24080 LIBS="-lsocket  $LIBS"
24081 cat >conftest.$ac_ext <<_ACEOF
24082 /* confdefs.h.  */
24083 _ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h.  */
24087
24088 /* Override any gcc2 internal prototype to avoid an error.  */
24089 #ifdef __cplusplus
24090 extern "C"
24091 #endif
24092 /* We use char because int might match the return type of a gcc2
24093    builtin and then its argument prototype would still apply.  */
24094 char connect ();
24095 int
24096 main ()
24097 {
24098 connect ();
24099   ;
24100   return 0;
24101 }
24102 _ACEOF
24103 rm -f conftest.$ac_objext conftest$ac_exeext
24104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24105   (eval $ac_link) 2>conftest.er1
24106   ac_status=$?
24107   grep -v '^ *+' conftest.er1 >conftest.err
24108   rm -f conftest.er1
24109   cat conftest.err >&5
24110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111   (exit $ac_status); } &&
24112          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24114   (eval $ac_try) 2>&5
24115   ac_status=$?
24116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117   (exit $ac_status); }; } &&
24118          { ac_try='test -s conftest$ac_exeext'
24119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24120   (eval $ac_try) 2>&5
24121   ac_status=$?
24122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123   (exit $ac_status); }; }; then
24124   ac_cv_lib_socket_connect=yes
24125 else
24126   echo "$as_me: failed program was:" >&5
24127 sed 's/^/| /' conftest.$ac_ext >&5
24128
24129 ac_cv_lib_socket_connect=no
24130 fi
24131 rm -f conftest.err conftest.$ac_objext \
24132       conftest$ac_exeext conftest.$ac_ext
24133 LIBS=$ac_check_lib_save_LIBS
24134 fi
24135 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24136 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24137 if test $ac_cv_lib_socket_connect = yes; then
24138   LIBS="$LIBS -lsocket"
24139 fi
24140
24141
24142 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24143 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24144     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24145 if test "${enable_maintainer_mode+set}" = set; then
24146   enableval="$enable_maintainer_mode"
24147   USE_MAINTAINER_MODE=$enableval
24148 else
24149   USE_MAINTAINER_MODE=no
24150 fi;
24151   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
24152 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
24153
24154
24155 if test $USE_MAINTAINER_MODE = yes; then
24156   MAINTAINER_MODE_TRUE=
24157   MAINTAINER_MODE_FALSE='#'
24158 else
24159   MAINTAINER_MODE_TRUE='#'
24160   MAINTAINER_MODE_FALSE=
24161 fi
24162
24163   MAINT=$MAINTAINER_MODE_TRUE
24164
24165
24166 if test x$USE_MAINTAINER_MODE = xyes
24167 then
24168    enable_iso_c=yes             # Let's go funky
24169
24170   # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
24171 if test "${enable_compile_warnings+set}" = set; then
24172   enableval="$enable_compile_warnings"
24173
24174 else
24175   enable_compile_warnings=yes
24176 fi;
24177
24178   echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
24179 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6
24180   warnCFLAGS=
24181   if test "x$GCC" = "xyes"; then
24182     case " $CFLAGS " in
24183     *-Wall*) ;;
24184     *) warnCFLAGS="-g -Wall -Wunused" ;;
24185     esac
24186
24187     ## -W is not all that useful.  And it cannot be controlled
24188     ## with individual -Wno-xxx flags, unlike -Wall
24189     if test "x$enable_compile_warnings" = "xyes"; then
24190       warnCFLAGS="$warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
24191  -finline-functions  -Wshadow -Wpointer-arith -Wchar-subscripts \
24192  -Wformat=2 -Wno-unused-variable -Wno-unused-function -Wwrite-strings -Werror"
24193     fi
24194   fi
24195
24196   echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
24197 echo "${ECHO_T}$warnCFLAGS" >&6
24198
24199   # Check whether --enable-iso-c or --disable-iso-c was given.
24200 if test "${enable_iso_c+set}" = set; then
24201   enableval="$enable_iso_c"
24202
24203 else
24204   enable_iso_c=no
24205 fi;
24206
24207   echo "$as_me:$LINENO: checking the language compliance flags for this compiler" >&5
24208 echo $ECHO_N "checking the language compliance flags for this compiler... $ECHO_C" >&6
24209   complCFLAGS=
24210   if test "x$GCC" = "xyes"; then
24211     case " $CFLAGS " in
24212     *-ansi*) ;;
24213     *) complCFLAGS="$complCFLAGS -ansi" ;;
24214     esac
24215
24216     case " $CFLAGS " in
24217     *-pedantic*) ;;
24218     *) complCFLAGS="$complCFLAGS -pedantic" ;;
24219     esac
24220   fi
24221   echo "$as_me:$LINENO: result: $complCFLAGS" >&5
24222 echo "${ECHO_T}$complCFLAGS" >&6
24223
24224
24225   echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
24226 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6
24227   optCFLAGS=
24228   if test "x$GCC" = "xyes" ; then
24229       optCFLAGS="-ffast-math -funroll-loops -fno-strict-aliasing"
24230       case " $CFLAGS " in
24231       *-O*) ;;
24232       *) optCFLAGS="-03" ;;
24233       esac
24234   fi
24235   echo "$as_me:$LINENO: result: $complCFLAGS" >&5
24236 echo "${ECHO_T}$complCFLAGS" >&6
24237
24238   # Take the right flags
24239   if test "x$cflags_set" != "xyes" ; then
24240     if test "x$enable_iso_c" != "xno"; then
24241       CFLAGS="$CFLAGS $complCFLAGS"
24242     fi
24243     if test "x$enable_compile_warnings" != "xno" ; then
24244       CFLAGS="$CFLAGS $warnCFLAGS"
24245     fi
24246
24247     cflags_set=yes
24248
24249   fi
24250
24251 fi
24252
24253
24254
24255
24256
24257 # Extract the first word of "bash", so it can be a program name with args.
24258 set dummy bash; ac_word=$2
24259 echo "$as_me:$LINENO: checking for $ac_word" >&5
24260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24261 if test "${ac_cv_prog_BASH+set}" = set; then
24262   echo $ECHO_N "(cached) $ECHO_C" >&6
24263 else
24264   if test -n "$BASH"; then
24265   ac_cv_prog_BASH="$BASH" # Let the user override the test.
24266 else
24267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24268 for as_dir in $PATH
24269 do
24270   IFS=$as_save_IFS
24271   test -z "$as_dir" && as_dir=.
24272   for ac_exec_ext in '' $ac_executable_extensions; do
24273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24274     ac_cv_prog_BASH="`which bash`"
24275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24276     break 2
24277   fi
24278 done
24279 done
24280
24281   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
24282 fi
24283 fi
24284 BASH=$ac_cv_prog_BASH
24285 if test -n "$BASH"; then
24286   echo "$as_me:$LINENO: result: $BASH" >&5
24287 echo "${ECHO_T}$BASH" >&6
24288 else
24289   echo "$as_me:$LINENO: result: no" >&5
24290 echo "${ECHO_T}no" >&6
24291 fi
24292
24293 WARNING="This file is generated, do not edit"
24294
24295
24296                                                                                                                         ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile examples/Makefile examples/ping/Makefile examples/ping/test_sg doc/Makefile tools/compile-remote-worker testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
24297
24298
24299 #    src/gros/Makefile
24300 #    src/gras/Makefile
24301
24302 #      testsuite/gras/Makefile
24303 #
24304 #        testsuite/gras/trp_tcp_usage
24305 #        testsuite/gras/trp_file_usage
24306
24307
24308 #      src/examples/pastry/Makefile
24309 #    src/amok/Makefile
24310 #      src/examples/bandwidth/Makefile src/examples/saturate/Makefile
24311 #      src/examples/alnem/Makefile
24312
24313 cat >confcache <<\_ACEOF
24314 # This file is a shell script that caches the results of configure
24315 # tests run on this system so they can be shared between configure
24316 # scripts and configure runs, see configure's option --config-cache.
24317 # It is not useful on other systems.  If it contains results you don't
24318 # want to keep, you may remove or edit it.
24319 #
24320 # config.status only pays attention to the cache file if you give it
24321 # the --recheck option to rerun configure.
24322 #
24323 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24324 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24325 # following values.
24326
24327 _ACEOF
24328
24329 # The following way of writing the cache mishandles newlines in values,
24330 # but we know of no workaround that is simple, portable, and efficient.
24331 # So, don't put newlines in cache variables' values.
24332 # Ultrix sh set writes to stderr and can't be redirected directly,
24333 # and sets the high bit in the cache file unless we assign to the vars.
24334 {
24335   (set) 2>&1 |
24336     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24337     *ac_space=\ *)
24338       # `set' does not quote correctly, so add quotes (double-quote
24339       # substitution turns \\\\ into \\, and sed turns \\ into \).
24340       sed -n \
24341         "s/'/'\\\\''/g;
24342           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24343       ;;
24344     *)
24345       # `set' quotes correctly as required by POSIX, so do not add quotes.
24346       sed -n \
24347         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24348       ;;
24349     esac;
24350 } |
24351   sed '
24352      t clear
24353      : clear
24354      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24355      t end
24356      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24357      : end' >>confcache
24358 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24359   if test -w $cache_file; then
24360     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24361     cat confcache >$cache_file
24362   else
24363     echo "not updating unwritable cache $cache_file"
24364   fi
24365 fi
24366 rm -f confcache
24367
24368 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24369 # Let make expand exec_prefix.
24370 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24371
24372 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24373 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24374 # trailing colons and then remove the whole line if VPATH becomes empty
24375 # (actually we leave an empty line to preserve line numbers).
24376 if test "x$srcdir" = x.; then
24377   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24378 s/:*\$(srcdir):*/:/;
24379 s/:*\${srcdir}:*/:/;
24380 s/:*@srcdir@:*/:/;
24381 s/^\([^=]*=[     ]*\):*/\1/;
24382 s/:*$//;
24383 s/^[^=]*=[       ]*$//;
24384 }'
24385 fi
24386
24387 DEFS=-DHAVE_CONFIG_H
24388
24389 ac_libobjs=
24390 ac_ltlibobjs=
24391 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24392   # 1. Remove the extension, and $U if already installed.
24393   ac_i=`echo "$ac_i" |
24394          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24395   # 2. Add them.
24396   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24397   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24398 done
24399 LIBOBJS=$ac_libobjs
24400
24401 LTLIBOBJS=$ac_ltlibobjs
24402
24403
24404 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24405   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24406 Usually this means the macro was only invoked conditionally." >&5
24407 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24408 Usually this means the macro was only invoked conditionally." >&2;}
24409    { (exit 1); exit 1; }; }
24410 fi
24411 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24412   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24413 Usually this means the macro was only invoked conditionally." >&5
24414 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24415 Usually this means the macro was only invoked conditionally." >&2;}
24416    { (exit 1); exit 1; }; }
24417 fi
24418 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24419   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24420 Usually this means the macro was only invoked conditionally." >&5
24421 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24422 Usually this means the macro was only invoked conditionally." >&2;}
24423    { (exit 1); exit 1; }; }
24424 fi
24425 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24426   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24427 Usually this means the macro was only invoked conditionally." >&5
24428 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24429 Usually this means the macro was only invoked conditionally." >&2;}
24430    { (exit 1); exit 1; }; }
24431 fi
24432 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
24433   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
24434 Usually this means the macro was only invoked conditionally." >&5
24435 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
24436 Usually this means the macro was only invoked conditionally." >&2;}
24437    { (exit 1); exit 1; }; }
24438 fi
24439 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
24440   { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
24441 Usually this means the macro was only invoked conditionally." >&5
24442 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
24443 Usually this means the macro was only invoked conditionally." >&2;}
24444    { (exit 1); exit 1; }; }
24445 fi
24446 if test -z "${HAVE_SG_TRUE}" && test -z "${HAVE_SG_FALSE}"; then
24447   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SG\" was never defined.
24448 Usually this means the macro was only invoked conditionally." >&5
24449 echo "$as_me: error: conditional \"HAVE_SG\" was never defined.
24450 Usually this means the macro was only invoked conditionally." >&2;}
24451    { (exit 1); exit 1; }; }
24452 fi
24453 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24454   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24455 Usually this means the macro was only invoked conditionally." >&5
24456 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24457 Usually this means the macro was only invoked conditionally." >&2;}
24458    { (exit 1); exit 1; }; }
24459 fi
24460
24461 : ${CONFIG_STATUS=./config.status}
24462 ac_clean_files_save=$ac_clean_files
24463 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24464 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24465 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24466 cat >$CONFIG_STATUS <<_ACEOF
24467 #! $SHELL
24468 # Generated by $as_me.
24469 # Run this file to recreate the current configuration.
24470 # Compiler output produced by configure, useful for debugging
24471 # configure, is in config.log if it exists.
24472
24473 debug=false
24474 ac_cs_recheck=false
24475 ac_cs_silent=false
24476 SHELL=\${CONFIG_SHELL-$SHELL}
24477 _ACEOF
24478
24479 cat >>$CONFIG_STATUS <<\_ACEOF
24480 ## --------------------- ##
24481 ## M4sh Initialization.  ##
24482 ## --------------------- ##
24483
24484 # Be Bourne compatible
24485 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24486   emulate sh
24487   NULLCMD=:
24488   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24489   # is contrary to our usage.  Disable this feature.
24490   alias -g '${1+"$@"}'='"$@"'
24491 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24492   set -o posix
24493 fi
24494 DUALCASE=1; export DUALCASE # for MKS sh
24495
24496 # Support unset when possible.
24497 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24498   as_unset=unset
24499 else
24500   as_unset=false
24501 fi
24502
24503
24504 # Work around bugs in pre-3.0 UWIN ksh.
24505 $as_unset ENV MAIL MAILPATH
24506 PS1='$ '
24507 PS2='> '
24508 PS4='+ '
24509
24510 # NLS nuisances.
24511 for as_var in \
24512   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24513   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24514   LC_TELEPHONE LC_TIME
24515 do
24516   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24517     eval $as_var=C; export $as_var
24518   else
24519     $as_unset $as_var
24520   fi
24521 done
24522
24523 # Required to use basename.
24524 if expr a : '\(a\)' >/dev/null 2>&1; then
24525   as_expr=expr
24526 else
24527   as_expr=false
24528 fi
24529
24530 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24531   as_basename=basename
24532 else
24533   as_basename=false
24534 fi
24535
24536
24537 # Name of the executable.
24538 as_me=`$as_basename "$0" ||
24539 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24540          X"$0" : 'X\(//\)$' \| \
24541          X"$0" : 'X\(/\)$' \| \
24542          .     : '\(.\)' 2>/dev/null ||
24543 echo X/"$0" |
24544     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24545           /^X\/\(\/\/\)$/{ s//\1/; q; }
24546           /^X\/\(\/\).*/{ s//\1/; q; }
24547           s/.*/./; q'`
24548
24549
24550 # PATH needs CR, and LINENO needs CR and PATH.
24551 # Avoid depending upon Character Ranges.
24552 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24553 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24554 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24555 as_cr_digits='0123456789'
24556 as_cr_alnum=$as_cr_Letters$as_cr_digits
24557
24558 # The user is always right.
24559 if test "${PATH_SEPARATOR+set}" != set; then
24560   echo "#! /bin/sh" >conf$$.sh
24561   echo  "exit 0"   >>conf$$.sh
24562   chmod +x conf$$.sh
24563   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24564     PATH_SEPARATOR=';'
24565   else
24566     PATH_SEPARATOR=:
24567   fi
24568   rm -f conf$$.sh
24569 fi
24570
24571
24572   as_lineno_1=$LINENO
24573   as_lineno_2=$LINENO
24574   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24575   test "x$as_lineno_1" != "x$as_lineno_2" &&
24576   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24577   # Find who we are.  Look in the path if we contain no path at all
24578   # relative or not.
24579   case $0 in
24580     *[\\/]* ) as_myself=$0 ;;
24581     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24582 for as_dir in $PATH
24583 do
24584   IFS=$as_save_IFS
24585   test -z "$as_dir" && as_dir=.
24586   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24587 done
24588
24589        ;;
24590   esac
24591   # We did not find ourselves, most probably we were run as `sh COMMAND'
24592   # in which case we are not to be found in the path.
24593   if test "x$as_myself" = x; then
24594     as_myself=$0
24595   fi
24596   if test ! -f "$as_myself"; then
24597     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24598 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24599    { (exit 1); exit 1; }; }
24600   fi
24601   case $CONFIG_SHELL in
24602   '')
24603     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24604 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24605 do
24606   IFS=$as_save_IFS
24607   test -z "$as_dir" && as_dir=.
24608   for as_base in sh bash ksh sh5; do
24609          case $as_dir in
24610          /*)
24611            if ("$as_dir/$as_base" -c '
24612   as_lineno_1=$LINENO
24613   as_lineno_2=$LINENO
24614   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24615   test "x$as_lineno_1" != "x$as_lineno_2" &&
24616   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24617              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24618              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24619              CONFIG_SHELL=$as_dir/$as_base
24620              export CONFIG_SHELL
24621              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24622            fi;;
24623          esac
24624        done
24625 done
24626 ;;
24627   esac
24628
24629   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24630   # uniformly replaced by the line number.  The first 'sed' inserts a
24631   # line-number line before each line; the second 'sed' does the real
24632   # work.  The second script uses 'N' to pair each line-number line
24633   # with the numbered line, and appends trailing '-' during
24634   # substitution so that $LINENO is not a special case at line end.
24635   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24636   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24637   sed '=' <$as_myself |
24638     sed '
24639       N
24640       s,$,-,
24641       : loop
24642       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24643       t loop
24644       s,-$,,
24645       s,^['$as_cr_digits']*\n,,
24646     ' >$as_me.lineno &&
24647   chmod +x $as_me.lineno ||
24648     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24649 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24650    { (exit 1); exit 1; }; }
24651
24652   # Don't try to exec as it changes $[0], causing all sort of problems
24653   # (the dirname of $[0] is not the place where we might find the
24654   # original and so on.  Autoconf is especially sensible to this).
24655   . ./$as_me.lineno
24656   # Exit status is that of the last command.
24657   exit
24658 }
24659
24660
24661 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24662   *c*,-n*) ECHO_N= ECHO_C='
24663 ' ECHO_T='      ' ;;
24664   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24665   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24666 esac
24667
24668 if expr a : '\(a\)' >/dev/null 2>&1; then
24669   as_expr=expr
24670 else
24671   as_expr=false
24672 fi
24673
24674 rm -f conf$$ conf$$.exe conf$$.file
24675 echo >conf$$.file
24676 if ln -s conf$$.file conf$$ 2>/dev/null; then
24677   # We could just check for DJGPP; but this test a) works b) is more generic
24678   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24679   if test -f conf$$.exe; then
24680     # Don't use ln at all; we don't have any links
24681     as_ln_s='cp -p'
24682   else
24683     as_ln_s='ln -s'
24684   fi
24685 elif ln conf$$.file conf$$ 2>/dev/null; then
24686   as_ln_s=ln
24687 else
24688   as_ln_s='cp -p'
24689 fi
24690 rm -f conf$$ conf$$.exe conf$$.file
24691
24692 if mkdir -p . 2>/dev/null; then
24693   as_mkdir_p=:
24694 else
24695   test -d ./-p && rmdir ./-p
24696   as_mkdir_p=false
24697 fi
24698
24699 as_executable_p="test -f"
24700
24701 # Sed expression to map a string onto a valid CPP name.
24702 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24703
24704 # Sed expression to map a string onto a valid variable name.
24705 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24706
24707
24708 # IFS
24709 # We need space, tab and new line, in precisely that order.
24710 as_nl='
24711 '
24712 IFS="   $as_nl"
24713
24714 # CDPATH.
24715 $as_unset CDPATH
24716
24717 exec 6>&1
24718
24719 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24720 # report actual input values of CONFIG_FILES etc. instead of their
24721 # values after options handling.  Logging --version etc. is OK.
24722 exec 5>>config.log
24723 {
24724   echo
24725   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24726 ## Running $as_me. ##
24727 _ASBOX
24728 } >&5
24729 cat >&5 <<_CSEOF
24730
24731 This file was extended by GRAS $as_me 0.6.3, which was
24732 generated by GNU Autoconf 2.59.  Invocation command line was
24733
24734   CONFIG_FILES    = $CONFIG_FILES
24735   CONFIG_HEADERS  = $CONFIG_HEADERS
24736   CONFIG_LINKS    = $CONFIG_LINKS
24737   CONFIG_COMMANDS = $CONFIG_COMMANDS
24738   $ $0 $@
24739
24740 _CSEOF
24741 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24742 echo >&5
24743 _ACEOF
24744
24745 # Files that config.status was made for.
24746 if test -n "$ac_config_files"; then
24747   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24748 fi
24749
24750 if test -n "$ac_config_headers"; then
24751   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24752 fi
24753
24754 if test -n "$ac_config_links"; then
24755   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24756 fi
24757
24758 if test -n "$ac_config_commands"; then
24759   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24760 fi
24761
24762 cat >>$CONFIG_STATUS <<\_ACEOF
24763
24764 ac_cs_usage="\
24765 \`$as_me' instantiates files from templates according to the
24766 current configuration.
24767
24768 Usage: $0 [OPTIONS] [FILE]...
24769
24770   -h, --help       print this help, then exit
24771   -V, --version    print version number, then exit
24772   -q, --quiet      do not print progress messages
24773   -d, --debug      don't remove temporary files
24774       --recheck    update $as_me by reconfiguring in the same conditions
24775   --file=FILE[:TEMPLATE]
24776                    instantiate the configuration file FILE
24777   --header=FILE[:TEMPLATE]
24778                    instantiate the configuration header FILE
24779
24780 Configuration files:
24781 $config_files
24782
24783 Configuration headers:
24784 $config_headers
24785
24786 Configuration commands:
24787 $config_commands
24788
24789 Report bugs to <bug-autoconf@gnu.org>."
24790 _ACEOF
24791
24792 cat >>$CONFIG_STATUS <<_ACEOF
24793 ac_cs_version="\\
24794 GRAS config.status 0.6.3
24795 configured by $0, generated by GNU Autoconf 2.59,
24796   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24797
24798 Copyright (C) 2003 Free Software Foundation, Inc.
24799 This config.status script is free software; the Free Software Foundation
24800 gives unlimited permission to copy, distribute and modify it."
24801 srcdir=$srcdir
24802 INSTALL="$INSTALL"
24803 _ACEOF
24804
24805 cat >>$CONFIG_STATUS <<\_ACEOF
24806 # If no file are specified by the user, then we need to provide default
24807 # value.  By we need to know if files were specified by the user.
24808 ac_need_defaults=:
24809 while test $# != 0
24810 do
24811   case $1 in
24812   --*=*)
24813     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24814     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24815     ac_shift=:
24816     ;;
24817   -*)
24818     ac_option=$1
24819     ac_optarg=$2
24820     ac_shift=shift
24821     ;;
24822   *) # This is not an option, so the user has probably given explicit
24823      # arguments.
24824      ac_option=$1
24825      ac_need_defaults=false;;
24826   esac
24827
24828   case $ac_option in
24829   # Handling of the options.
24830 _ACEOF
24831 cat >>$CONFIG_STATUS <<\_ACEOF
24832   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24833     ac_cs_recheck=: ;;
24834   --version | --vers* | -V )
24835     echo "$ac_cs_version"; exit 0 ;;
24836   --he | --h)
24837     # Conflict between --help and --header
24838     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24839 Try \`$0 --help' for more information." >&5
24840 echo "$as_me: error: ambiguous option: $1
24841 Try \`$0 --help' for more information." >&2;}
24842    { (exit 1); exit 1; }; };;
24843   --help | --hel | -h )
24844     echo "$ac_cs_usage"; exit 0 ;;
24845   --debug | --d* | -d )
24846     debug=: ;;
24847   --file | --fil | --fi | --f )
24848     $ac_shift
24849     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24850     ac_need_defaults=false;;
24851   --header | --heade | --head | --hea )
24852     $ac_shift
24853     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24854     ac_need_defaults=false;;
24855   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24856   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24857     ac_cs_silent=: ;;
24858
24859   # This is an error.
24860   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24861 Try \`$0 --help' for more information." >&5
24862 echo "$as_me: error: unrecognized option: $1
24863 Try \`$0 --help' for more information." >&2;}
24864    { (exit 1); exit 1; }; } ;;
24865
24866   *) ac_config_targets="$ac_config_targets $1" ;;
24867
24868   esac
24869   shift
24870 done
24871
24872 ac_configure_extra_args=
24873
24874 if $ac_cs_silent; then
24875   exec 6>/dev/null
24876   ac_configure_extra_args="$ac_configure_extra_args --silent"
24877 fi
24878
24879 _ACEOF
24880 cat >>$CONFIG_STATUS <<_ACEOF
24881 if \$ac_cs_recheck; then
24882   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24883   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24884 fi
24885
24886 _ACEOF
24887
24888 cat >>$CONFIG_STATUS <<_ACEOF
24889 #
24890 # INIT-COMMANDS section.
24891 #
24892
24893 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24894
24895 _ACEOF
24896
24897
24898
24899 cat >>$CONFIG_STATUS <<\_ACEOF
24900 for ac_config_target in $ac_config_targets
24901 do
24902   case "$ac_config_target" in
24903   # Handling of arguments.
24904   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24905   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24906   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24907   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
24908   "examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/ping/Makefile" ;;
24909   "examples/ping/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/ping/test_sg" ;;
24910   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24911   "tools/compile-remote-worker" ) CONFIG_FILES="$CONFIG_FILES tools/compile-remote-worker" ;;
24912   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
24913   "testsuite/run_tests" ) CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
24914   "testsuite/gras/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
24915   "testsuite/gras/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
24916   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24917   "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
24918   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24919 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24920    { (exit 1); exit 1; }; };;
24921   esac
24922 done
24923
24924 # If the user did not use the arguments to specify the items to instantiate,
24925 # then the envvar interface is used.  Set only those that are not.
24926 # We use the long form for the default assignment because of an extremely
24927 # bizarre bug on SunOS 4.1.3.
24928 if $ac_need_defaults; then
24929   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24930   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24931   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24932 fi
24933
24934 # Have a temporary directory for convenience.  Make it in the build tree
24935 # simply because there is no reason to put it here, and in addition,
24936 # creating and moving files from /tmp can sometimes cause problems.
24937 # Create a temporary directory, and hook for its removal unless debugging.
24938 $debug ||
24939 {
24940   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24941   trap '{ (exit 1); exit 1; }' 1 2 13 15
24942 }
24943
24944 # Create a (secure) tmp directory for tmp files.
24945
24946 {
24947   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24948   test -n "$tmp" && test -d "$tmp"
24949 }  ||
24950 {
24951   tmp=./confstat$$-$RANDOM
24952   (umask 077 && mkdir $tmp)
24953 } ||
24954 {
24955    echo "$me: cannot create a temporary directory in ." >&2
24956    { (exit 1); exit 1; }
24957 }
24958
24959 _ACEOF
24960
24961 cat >>$CONFIG_STATUS <<_ACEOF
24962
24963 #
24964 # CONFIG_FILES section.
24965 #
24966
24967 # No need to generate the scripts if there are no CONFIG_FILES.
24968 # This happens for instance when ./config.status config.h
24969 if test -n "\$CONFIG_FILES"; then
24970   # Protect against being on the right side of a sed subst in config.status.
24971   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24972    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24973 s,@SHELL@,$SHELL,;t t
24974 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24975 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24976 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24977 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24978 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24979 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24980 s,@exec_prefix@,$exec_prefix,;t t
24981 s,@prefix@,$prefix,;t t
24982 s,@program_transform_name@,$program_transform_name,;t t
24983 s,@bindir@,$bindir,;t t
24984 s,@sbindir@,$sbindir,;t t
24985 s,@libexecdir@,$libexecdir,;t t
24986 s,@datadir@,$datadir,;t t
24987 s,@sysconfdir@,$sysconfdir,;t t
24988 s,@sharedstatedir@,$sharedstatedir,;t t
24989 s,@localstatedir@,$localstatedir,;t t
24990 s,@libdir@,$libdir,;t t
24991 s,@includedir@,$includedir,;t t
24992 s,@oldincludedir@,$oldincludedir,;t t
24993 s,@infodir@,$infodir,;t t
24994 s,@mandir@,$mandir,;t t
24995 s,@build_alias@,$build_alias,;t t
24996 s,@host_alias@,$host_alias,;t t
24997 s,@target_alias@,$target_alias,;t t
24998 s,@DEFS@,$DEFS,;t t
24999 s,@ECHO_C@,$ECHO_C,;t t
25000 s,@ECHO_N@,$ECHO_N,;t t
25001 s,@ECHO_T@,$ECHO_T,;t t
25002 s,@LIBS@,$LIBS,;t t
25003 s,@build@,$build,;t t
25004 s,@build_cpu@,$build_cpu,;t t
25005 s,@build_vendor@,$build_vendor,;t t
25006 s,@build_os@,$build_os,;t t
25007 s,@host@,$host,;t t
25008 s,@host_cpu@,$host_cpu,;t t
25009 s,@host_vendor@,$host_vendor,;t t
25010 s,@host_os@,$host_os,;t t
25011 s,@target@,$target,;t t
25012 s,@target_cpu@,$target_cpu,;t t
25013 s,@target_vendor@,$target_vendor,;t t
25014 s,@target_os@,$target_os,;t t
25015 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25016 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25017 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25018 s,@CYGPATH_W@,$CYGPATH_W,;t t
25019 s,@PACKAGE@,$PACKAGE,;t t
25020 s,@VERSION@,$VERSION,;t t
25021 s,@ACLOCAL@,$ACLOCAL,;t t
25022 s,@AUTOCONF@,$AUTOCONF,;t t
25023 s,@AUTOMAKE@,$AUTOMAKE,;t t
25024 s,@AUTOHEADER@,$AUTOHEADER,;t t
25025 s,@MAKEINFO@,$MAKEINFO,;t t
25026 s,@AMTAR@,$AMTAR,;t t
25027 s,@install_sh@,$install_sh,;t t
25028 s,@STRIP@,$STRIP,;t t
25029 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25030 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25031 s,@mkdir_p@,$mkdir_p,;t t
25032 s,@AWK@,$AWK,;t t
25033 s,@SET_MAKE@,$SET_MAKE,;t t
25034 s,@am__leading_dot@,$am__leading_dot,;t t
25035 s,@CC@,$CC,;t t
25036 s,@CFLAGS@,$CFLAGS,;t t
25037 s,@LDFLAGS@,$LDFLAGS,;t t
25038 s,@CPPFLAGS@,$CPPFLAGS,;t t
25039 s,@ac_ct_CC@,$ac_ct_CC,;t t
25040 s,@EXEEXT@,$EXEEXT,;t t
25041 s,@OBJEXT@,$OBJEXT,;t t
25042 s,@DEPDIR@,$DEPDIR,;t t
25043 s,@am__include@,$am__include,;t t
25044 s,@am__quote@,$am__quote,;t t
25045 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25046 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25047 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25048 s,@CCDEPMODE@,$CCDEPMODE,;t t
25049 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
25050 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
25051 s,@EGREP@,$EGREP,;t t
25052 s,@LN_S@,$LN_S,;t t
25053 s,@ECHO@,$ECHO,;t t
25054 s,@AR@,$AR,;t t
25055 s,@ac_ct_AR@,$ac_ct_AR,;t t
25056 s,@RANLIB@,$RANLIB,;t t
25057 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25058 s,@CPP@,$CPP,;t t
25059 s,@CXX@,$CXX,;t t
25060 s,@CXXFLAGS@,$CXXFLAGS,;t t
25061 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25062 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25063 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
25064 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
25065 s,@CXXCPP@,$CXXCPP,;t t
25066 s,@F77@,$F77,;t t
25067 s,@FFLAGS@,$FFLAGS,;t t
25068 s,@ac_ct_F77@,$ac_ct_F77,;t t
25069 s,@LIBTOOL@,$LIBTOOL,;t t
25070 s,@LIBOBJS@,$LIBOBJS,;t t
25071 s,@LEX@,$LEX,;t t
25072 s,@LEXLIB@,$LEXLIB,;t t
25073 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
25074 s,@HTML_DIR@,$HTML_DIR,;t t
25075 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
25076 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
25077 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
25078 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
25079 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
25080 s,@htmldir@,$htmldir,;t t
25081 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
25082 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
25083 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
25084 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
25085 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
25086 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
25087 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
25088 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
25089 s,@HAVE_SG_TRUE@,$HAVE_SG_TRUE,;t t
25090 s,@HAVE_SG_FALSE@,$HAVE_SG_FALSE,;t t
25091 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
25092 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
25093 s,@MAINT@,$MAINT,;t t
25094 s,@cflags_set@,$cflags_set,;t t
25095 s,@BASH@,$BASH,;t t
25096 s,@WARNING@,$WARNING,;t t
25097 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25098 CEOF
25099
25100 _ACEOF
25101
25102   cat >>$CONFIG_STATUS <<\_ACEOF
25103   # Split the substitutions into bite-sized pieces for seds with
25104   # small command number limits, like on Digital OSF/1 and HP-UX.
25105   ac_max_sed_lines=48
25106   ac_sed_frag=1 # Number of current file.
25107   ac_beg=1 # First line for current file.
25108   ac_end=$ac_max_sed_lines # Line after last line for current file.
25109   ac_more_lines=:
25110   ac_sed_cmds=
25111   while $ac_more_lines; do
25112     if test $ac_beg -gt 1; then
25113       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25114     else
25115       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25116     fi
25117     if test ! -s $tmp/subs.frag; then
25118       ac_more_lines=false
25119     else
25120       # The purpose of the label and of the branching condition is to
25121       # speed up the sed processing (if there are no `@' at all, there
25122       # is no need to browse any of the substitutions).
25123       # These are the two extra sed commands mentioned above.
25124       (echo ':t
25125   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25126       if test -z "$ac_sed_cmds"; then
25127         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25128       else
25129         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25130       fi
25131       ac_sed_frag=`expr $ac_sed_frag + 1`
25132       ac_beg=$ac_end
25133       ac_end=`expr $ac_end + $ac_max_sed_lines`
25134     fi
25135   done
25136   if test -z "$ac_sed_cmds"; then
25137     ac_sed_cmds=cat
25138   fi
25139 fi # test -n "$CONFIG_FILES"
25140
25141 _ACEOF
25142 cat >>$CONFIG_STATUS <<\_ACEOF
25143 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25144   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25145   case $ac_file in
25146   - | *:- | *:-:* ) # input from stdin
25147         cat >$tmp/stdin
25148         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25149         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25150   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25151         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25152   * )   ac_file_in=$ac_file.in ;;
25153   esac
25154
25155   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25156   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25157 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25158          X"$ac_file" : 'X\(//\)[^/]' \| \
25159          X"$ac_file" : 'X\(//\)$' \| \
25160          X"$ac_file" : 'X\(/\)' \| \
25161          .     : '\(.\)' 2>/dev/null ||
25162 echo X"$ac_file" |
25163     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25164           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25165           /^X\(\/\/\)$/{ s//\1/; q; }
25166           /^X\(\/\).*/{ s//\1/; q; }
25167           s/.*/./; q'`
25168   { if $as_mkdir_p; then
25169     mkdir -p "$ac_dir"
25170   else
25171     as_dir="$ac_dir"
25172     as_dirs=
25173     while test ! -d "$as_dir"; do
25174       as_dirs="$as_dir $as_dirs"
25175       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25177          X"$as_dir" : 'X\(//\)[^/]' \| \
25178          X"$as_dir" : 'X\(//\)$' \| \
25179          X"$as_dir" : 'X\(/\)' \| \
25180          .     : '\(.\)' 2>/dev/null ||
25181 echo X"$as_dir" |
25182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25183           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25184           /^X\(\/\/\)$/{ s//\1/; q; }
25185           /^X\(\/\).*/{ s//\1/; q; }
25186           s/.*/./; q'`
25187     done
25188     test ! -n "$as_dirs" || mkdir $as_dirs
25189   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25190 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25191    { (exit 1); exit 1; }; }; }
25192
25193   ac_builddir=.
25194
25195 if test "$ac_dir" != .; then
25196   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25197   # A "../" for each directory in $ac_dir_suffix.
25198   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25199 else
25200   ac_dir_suffix= ac_top_builddir=
25201 fi
25202
25203 case $srcdir in
25204   .)  # No --srcdir option.  We are building in place.
25205     ac_srcdir=.
25206     if test -z "$ac_top_builddir"; then
25207        ac_top_srcdir=.
25208     else
25209        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25210     fi ;;
25211   [\\/]* | ?:[\\/]* )  # Absolute path.
25212     ac_srcdir=$srcdir$ac_dir_suffix;
25213     ac_top_srcdir=$srcdir ;;
25214   *) # Relative path.
25215     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25216     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25217 esac
25218
25219 # Do not use `cd foo && pwd` to compute absolute paths, because
25220 # the directories may not exist.
25221 case `pwd` in
25222 .) ac_abs_builddir="$ac_dir";;
25223 *)
25224   case "$ac_dir" in
25225   .) ac_abs_builddir=`pwd`;;
25226   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25227   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25228   esac;;
25229 esac
25230 case $ac_abs_builddir in
25231 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25232 *)
25233   case ${ac_top_builddir}. in
25234   .) ac_abs_top_builddir=$ac_abs_builddir;;
25235   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25236   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25237   esac;;
25238 esac
25239 case $ac_abs_builddir in
25240 .) ac_abs_srcdir=$ac_srcdir;;
25241 *)
25242   case $ac_srcdir in
25243   .) ac_abs_srcdir=$ac_abs_builddir;;
25244   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25245   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25246   esac;;
25247 esac
25248 case $ac_abs_builddir in
25249 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25250 *)
25251   case $ac_top_srcdir in
25252   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25253   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25254   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25255   esac;;
25256 esac
25257
25258
25259   case $INSTALL in
25260   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25261   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25262   esac
25263
25264   # Let's still pretend it is `configure' which instantiates (i.e., don't
25265   # use $as_me), people would be surprised to read:
25266   #    /* config.h.  Generated by config.status.  */
25267   if test x"$ac_file" = x-; then
25268     configure_input=
25269   else
25270     configure_input="$ac_file.  "
25271   fi
25272   configure_input=$configure_input"Generated from `echo $ac_file_in |
25273                                      sed 's,.*/,,'` by configure."
25274
25275   # First look for the input files in the build tree, otherwise in the
25276   # src tree.
25277   ac_file_inputs=`IFS=:
25278     for f in $ac_file_in; do
25279       case $f in
25280       -) echo $tmp/stdin ;;
25281       [\\/$]*)
25282          # Absolute (can't be DOS-style, as IFS=:)
25283          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25284 echo "$as_me: error: cannot find input file: $f" >&2;}
25285    { (exit 1); exit 1; }; }
25286          echo "$f";;
25287       *) # Relative
25288          if test -f "$f"; then
25289            # Build tree
25290            echo "$f"
25291          elif test -f "$srcdir/$f"; then
25292            # Source tree
25293            echo "$srcdir/$f"
25294          else
25295            # /dev/null tree
25296            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25297 echo "$as_me: error: cannot find input file: $f" >&2;}
25298    { (exit 1); exit 1; }; }
25299          fi;;
25300       esac
25301     done` || { (exit 1); exit 1; }
25302
25303   if test x"$ac_file" != x-; then
25304     { echo "$as_me:$LINENO: creating $ac_file" >&5
25305 echo "$as_me: creating $ac_file" >&6;}
25306     rm -f "$ac_file"
25307   fi
25308 _ACEOF
25309 cat >>$CONFIG_STATUS <<_ACEOF
25310   sed "$ac_vpsub
25311 $extrasub
25312 _ACEOF
25313 cat >>$CONFIG_STATUS <<\_ACEOF
25314 :t
25315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25316 s,@configure_input@,$configure_input,;t t
25317 s,@srcdir@,$ac_srcdir,;t t
25318 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25319 s,@top_srcdir@,$ac_top_srcdir,;t t
25320 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25321 s,@builddir@,$ac_builddir,;t t
25322 s,@abs_builddir@,$ac_abs_builddir,;t t
25323 s,@top_builddir@,$ac_top_builddir,;t t
25324 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25325 s,@INSTALL@,$ac_INSTALL,;t t
25326 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25327   rm -f $tmp/stdin
25328   if test x"$ac_file" != x-; then
25329     mv $tmp/out $ac_file
25330   else
25331     cat $tmp/out
25332     rm -f $tmp/out
25333   fi
25334
25335   # Run the commands associated with the file.
25336   case $ac_file in
25337     Makefile )
25338      test -e testsuite/run_tests          && chmod +x testsuite/run_tests;
25339      test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25340      test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25341      test -e tools/compile-remote-worker  && chmod +x tools/compile-remote-worker;
25342      test -e examples/ping/test_sg        && chmod +x examples/ping/test_sg;
25343      chmod +x $srcdir/tools/gras-check-arch;
25344      chmod +x $srcdir/examples/ping/test_rl
25345  ;;
25346     include/Makefile )
25347      test -e testsuite/run_tests          && chmod +x testsuite/run_tests;
25348      test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25349      test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25350      test -e tools/compile-remote-worker  && chmod +x tools/compile-remote-worker;
25351      test -e examples/ping/test_sg        && chmod +x examples/ping/test_sg;
25352      chmod +x $srcdir/tools/gras-check-arch;
25353      chmod +x $srcdir/examples/ping/test_rl
25354  ;;
25355     src/Makefile )
25356      test -e testsuite/run_tests          && chmod +x testsuite/run_tests;
25357      test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25358      test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25359      test -e tools/compile-remote-worker  && chmod +x tools/compile-remote-worker;
25360      test -e examples/ping/test_sg        && chmod +x examples/ping/test_sg;
25361      chmod +x $srcdir/tools/gras-check-arch;
25362      chmod +x $srcdir/examples/ping/test_rl
25363  ;;
25364     examples/Makefile )
25365      test -e testsuite/run_tests          && chmod +x testsuite/run_tests;
25366      test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25367      test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25368      test -e tools/compile-remote-worker  && chmod +x tools/compile-remote-worker;
25369      test -e examples/ping/test_sg        && chmod +x examples/ping/test_sg;
25370      chmod +x $srcdir/tools/gras-check-arch;
25371      chmod +x $srcdir/examples/ping/test_rl
25372  ;;
25373     examples/ping/Makefile )
25374      test -e testsuite/run_tests          && chmod +x testsuite/run_tests;
25375      test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25376      test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25377      test -e tools/compile-remote-worker  && chmod +x tools/compile-remote-worker;
25378      test -e examples/ping/test_sg        && chmod +x examples/ping/test_sg;
25379      chmod +x $srcdir/tools/gras-check-arch;
25380      chmod +x $srcdir/examples/ping/test_rl
25381  ;;
25382     examples/ping/test_sg )
25383      test -e testsuite/run_tests          && chmod +x testsuite/run_tests;
25384      test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25385      test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25386      test -e tools/compile-remote-worker  && chmod +x tools/compile-remote-worker;
25387      test -e examples/ping/test_sg        && chmod +x examples/ping/test_sg;
25388      chmod +x $srcdir/tools/gras-check-arch;
25389      chmod +x $srcdir/examples/ping/test_rl
25390  ;;
25391     doc/Makefile )
25392      test -e testsuite/run_tests          && chmod +x testsuite/run_tests;
25393      test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25394      test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25395      test -e tools/compile-remote-worker  && chmod +x tools/compile-remote-worker;
25396      test -e examples/ping/test_sg        && chmod +x examples/ping/test_sg;
25397      chmod +x $srcdir/tools/gras-check-arch;
25398      chmod +x $srcdir/examples/ping/test_rl
25399  ;;
25400     tools/compile-remote-worker )
25401      test -e testsuite/run_tests          && chmod +x testsuite/run_tests;
25402      test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25403      test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25404      test -e tools/compile-remote-worker  && chmod +x tools/compile-remote-worker;
25405      test -e examples/ping/test_sg        && chmod +x examples/ping/test_sg;
25406      chmod +x $srcdir/tools/gras-check-arch;
25407      chmod +x $srcdir/examples/ping/test_rl
25408  ;;
25409     testsuite/Makefile )
25410      test -e testsuite/run_tests          && chmod +x testsuite/run_tests;
25411      test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25412      test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25413      test -e tools/compile-remote-worker  && chmod +x tools/compile-remote-worker;
25414      test -e examples/ping/test_sg        && chmod +x examples/ping/test_sg;
25415      chmod +x $srcdir/tools/gras-check-arch;
25416      chmod +x $srcdir/examples/ping/test_rl
25417  ;;
25418     testsuite/run_tests )
25419      test -e testsuite/run_tests          && chmod +x testsuite/run_tests;
25420      test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25421      test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25422      test -e tools/compile-remote-worker  && chmod +x tools/compile-remote-worker;
25423      test -e examples/ping/test_sg        && chmod +x examples/ping/test_sg;
25424      chmod +x $srcdir/tools/gras-check-arch;
25425      chmod +x $srcdir/examples/ping/test_rl
25426  ;;
25427     testsuite/gras/trp_tcp_usage )
25428      test -e testsuite/run_tests          && chmod +x testsuite/run_tests;
25429      test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25430      test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25431      test -e tools/compile-remote-worker  && chmod +x tools/compile-remote-worker;
25432      test -e examples/ping/test_sg        && chmod +x examples/ping/test_sg;
25433      chmod +x $srcdir/tools/gras-check-arch;
25434      chmod +x $srcdir/examples/ping/test_rl
25435  ;;
25436     testsuite/gras/trp_file_usage )
25437      test -e testsuite/run_tests          && chmod +x testsuite/run_tests;
25438      test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25439      test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25440      test -e tools/compile-remote-worker  && chmod +x tools/compile-remote-worker;
25441      test -e examples/ping/test_sg        && chmod +x examples/ping/test_sg;
25442      chmod +x $srcdir/tools/gras-check-arch;
25443      chmod +x $srcdir/examples/ping/test_rl
25444  ;;
25445   esac
25446 done
25447 _ACEOF
25448 cat >>$CONFIG_STATUS <<\_ACEOF
25449
25450 #
25451 # CONFIG_HEADER section.
25452 #
25453
25454 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25455 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25456 #
25457 # ac_d sets the value in "#define NAME VALUE" lines.
25458 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25459 ac_dB='[         ].*$,\1#\2'
25460 ac_dC=' '
25461 ac_dD=',;t'
25462 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25463 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25464 ac_uB='$,\1#\2define\3'
25465 ac_uC=' '
25466 ac_uD=',;t'
25467
25468 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25469   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25470   case $ac_file in
25471   - | *:- | *:-:* ) # input from stdin
25472         cat >$tmp/stdin
25473         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25474         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25475   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25476         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25477   * )   ac_file_in=$ac_file.in ;;
25478   esac
25479
25480   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25481 echo "$as_me: creating $ac_file" >&6;}
25482
25483   # First look for the input files in the build tree, otherwise in the
25484   # src tree.
25485   ac_file_inputs=`IFS=:
25486     for f in $ac_file_in; do
25487       case $f in
25488       -) echo $tmp/stdin ;;
25489       [\\/$]*)
25490          # Absolute (can't be DOS-style, as IFS=:)
25491          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25492 echo "$as_me: error: cannot find input file: $f" >&2;}
25493    { (exit 1); exit 1; }; }
25494          # Do quote $f, to prevent DOS paths from being IFS'd.
25495          echo "$f";;
25496       *) # Relative
25497          if test -f "$f"; then
25498            # Build tree
25499            echo "$f"
25500          elif test -f "$srcdir/$f"; then
25501            # Source tree
25502            echo "$srcdir/$f"
25503          else
25504            # /dev/null tree
25505            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25506 echo "$as_me: error: cannot find input file: $f" >&2;}
25507    { (exit 1); exit 1; }; }
25508          fi;;
25509       esac
25510     done` || { (exit 1); exit 1; }
25511   # Remove the trailing spaces.
25512   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25513
25514 _ACEOF
25515
25516 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25517 # `conftest.undefs', that substitutes the proper values into
25518 # config.h.in to produce config.h.  The first handles `#define'
25519 # templates, and the second `#undef' templates.
25520 # And first: Protect against being on the right side of a sed subst in
25521 # config.status.  Protect against being in an unquoted here document
25522 # in config.status.
25523 rm -f conftest.defines conftest.undefs
25524 # Using a here document instead of a string reduces the quoting nightmare.
25525 # Putting comments in sed scripts is not portable.
25526 #
25527 # `end' is used to avoid that the second main sed command (meant for
25528 # 0-ary CPP macros) applies to n-ary macro definitions.
25529 # See the Autoconf documentation for `clear'.
25530 cat >confdef2sed.sed <<\_ACEOF
25531 s/[\\&,]/\\&/g
25532 s,[\\$`],\\&,g
25533 t clear
25534 : clear
25535 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25536 t end
25537 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25538 : end
25539 _ACEOF
25540 # If some macros were called several times there might be several times
25541 # the same #defines, which is useless.  Nevertheless, we may not want to
25542 # sort them, since we want the *last* AC-DEFINE to be honored.
25543 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25544 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25545 rm -f confdef2sed.sed
25546
25547 # This sed command replaces #undef with comments.  This is necessary, for
25548 # example, in the case of _POSIX_SOURCE, which is predefined and required
25549 # on some systems where configure will not decide to define it.
25550 cat >>conftest.undefs <<\_ACEOF
25551 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25552 _ACEOF
25553
25554 # Break up conftest.defines because some shells have a limit on the size
25555 # of here documents, and old seds have small limits too (100 cmds).
25556 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25557 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25558 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25559 echo '  :' >>$CONFIG_STATUS
25560 rm -f conftest.tail
25561 while grep . conftest.defines >/dev/null
25562 do
25563   # Write a limited-size here document to $tmp/defines.sed.
25564   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25565   # Speed up: don't consider the non `#define' lines.
25566   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25567   # Work around the forget-to-reset-the-flag bug.
25568   echo 't clr' >>$CONFIG_STATUS
25569   echo ': clr' >>$CONFIG_STATUS
25570   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25571   echo 'CEOF
25572   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25573   rm -f $tmp/in
25574   mv $tmp/out $tmp/in
25575 ' >>$CONFIG_STATUS
25576   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25577   rm -f conftest.defines
25578   mv conftest.tail conftest.defines
25579 done
25580 rm -f conftest.defines
25581 echo '  fi # grep' >>$CONFIG_STATUS
25582 echo >>$CONFIG_STATUS
25583
25584 # Break up conftest.undefs because some shells have a limit on the size
25585 # of here documents, and old seds have small limits too (100 cmds).
25586 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25587 rm -f conftest.tail
25588 while grep . conftest.undefs >/dev/null
25589 do
25590   # Write a limited-size here document to $tmp/undefs.sed.
25591   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25592   # Speed up: don't consider the non `#undef'
25593   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25594   # Work around the forget-to-reset-the-flag bug.
25595   echo 't clr' >>$CONFIG_STATUS
25596   echo ': clr' >>$CONFIG_STATUS
25597   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25598   echo 'CEOF
25599   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25600   rm -f $tmp/in
25601   mv $tmp/out $tmp/in
25602 ' >>$CONFIG_STATUS
25603   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25604   rm -f conftest.undefs
25605   mv conftest.tail conftest.undefs
25606 done
25607 rm -f conftest.undefs
25608
25609 cat >>$CONFIG_STATUS <<\_ACEOF
25610   # Let's still pretend it is `configure' which instantiates (i.e., don't
25611   # use $as_me), people would be surprised to read:
25612   #    /* config.h.  Generated by config.status.  */
25613   if test x"$ac_file" = x-; then
25614     echo "/* Generated by configure.  */" >$tmp/config.h
25615   else
25616     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25617   fi
25618   cat $tmp/in >>$tmp/config.h
25619   rm -f $tmp/in
25620   if test x"$ac_file" != x-; then
25621     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25622       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25623 echo "$as_me: $ac_file is unchanged" >&6;}
25624     else
25625       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25626 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25627          X"$ac_file" : 'X\(//\)[^/]' \| \
25628          X"$ac_file" : 'X\(//\)$' \| \
25629          X"$ac_file" : 'X\(/\)' \| \
25630          .     : '\(.\)' 2>/dev/null ||
25631 echo X"$ac_file" |
25632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25633           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25634           /^X\(\/\/\)$/{ s//\1/; q; }
25635           /^X\(\/\).*/{ s//\1/; q; }
25636           s/.*/./; q'`
25637       { if $as_mkdir_p; then
25638     mkdir -p "$ac_dir"
25639   else
25640     as_dir="$ac_dir"
25641     as_dirs=
25642     while test ! -d "$as_dir"; do
25643       as_dirs="$as_dir $as_dirs"
25644       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25645 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25646          X"$as_dir" : 'X\(//\)[^/]' \| \
25647          X"$as_dir" : 'X\(//\)$' \| \
25648          X"$as_dir" : 'X\(/\)' \| \
25649          .     : '\(.\)' 2>/dev/null ||
25650 echo X"$as_dir" |
25651     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25652           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25653           /^X\(\/\/\)$/{ s//\1/; q; }
25654           /^X\(\/\).*/{ s//\1/; q; }
25655           s/.*/./; q'`
25656     done
25657     test ! -n "$as_dirs" || mkdir $as_dirs
25658   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25659 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25660    { (exit 1); exit 1; }; }; }
25661
25662       rm -f $ac_file
25663       mv $tmp/config.h $ac_file
25664     fi
25665   else
25666     cat $tmp/config.h
25667     rm -f $tmp/config.h
25668   fi
25669 # Compute $ac_file's index in $config_headers.
25670 _am_stamp_count=1
25671 for _am_header in $config_headers :; do
25672   case $_am_header in
25673     $ac_file | $ac_file:* )
25674       break ;;
25675     * )
25676       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25677   esac
25678 done
25679 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25680 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25681          X$ac_file : 'X\(//\)[^/]' \| \
25682          X$ac_file : 'X\(//\)$' \| \
25683          X$ac_file : 'X\(/\)' \| \
25684          .     : '\(.\)' 2>/dev/null ||
25685 echo X$ac_file |
25686     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25687           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25688           /^X\(\/\/\)$/{ s//\1/; q; }
25689           /^X\(\/\).*/{ s//\1/; q; }
25690           s/.*/./; q'`/stamp-h$_am_stamp_count
25691 done
25692 _ACEOF
25693 cat >>$CONFIG_STATUS <<\_ACEOF
25694
25695 #
25696 # CONFIG_COMMANDS section.
25697 #
25698 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25699   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25700   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25701   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25702 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25703          X"$ac_dest" : 'X\(//\)[^/]' \| \
25704          X"$ac_dest" : 'X\(//\)$' \| \
25705          X"$ac_dest" : 'X\(/\)' \| \
25706          .     : '\(.\)' 2>/dev/null ||
25707 echo X"$ac_dest" |
25708     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25709           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25710           /^X\(\/\/\)$/{ s//\1/; q; }
25711           /^X\(\/\).*/{ s//\1/; q; }
25712           s/.*/./; q'`
25713   { if $as_mkdir_p; then
25714     mkdir -p "$ac_dir"
25715   else
25716     as_dir="$ac_dir"
25717     as_dirs=
25718     while test ! -d "$as_dir"; do
25719       as_dirs="$as_dir $as_dirs"
25720       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25722          X"$as_dir" : 'X\(//\)[^/]' \| \
25723          X"$as_dir" : 'X\(//\)$' \| \
25724          X"$as_dir" : 'X\(/\)' \| \
25725          .     : '\(.\)' 2>/dev/null ||
25726 echo X"$as_dir" |
25727     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25728           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25729           /^X\(\/\/\)$/{ s//\1/; q; }
25730           /^X\(\/\).*/{ s//\1/; q; }
25731           s/.*/./; q'`
25732     done
25733     test ! -n "$as_dirs" || mkdir $as_dirs
25734   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25735 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25736    { (exit 1); exit 1; }; }; }
25737
25738   ac_builddir=.
25739
25740 if test "$ac_dir" != .; then
25741   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25742   # A "../" for each directory in $ac_dir_suffix.
25743   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25744 else
25745   ac_dir_suffix= ac_top_builddir=
25746 fi
25747
25748 case $srcdir in
25749   .)  # No --srcdir option.  We are building in place.
25750     ac_srcdir=.
25751     if test -z "$ac_top_builddir"; then
25752        ac_top_srcdir=.
25753     else
25754        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25755     fi ;;
25756   [\\/]* | ?:[\\/]* )  # Absolute path.
25757     ac_srcdir=$srcdir$ac_dir_suffix;
25758     ac_top_srcdir=$srcdir ;;
25759   *) # Relative path.
25760     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25761     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25762 esac
25763
25764 # Do not use `cd foo && pwd` to compute absolute paths, because
25765 # the directories may not exist.
25766 case `pwd` in
25767 .) ac_abs_builddir="$ac_dir";;
25768 *)
25769   case "$ac_dir" in
25770   .) ac_abs_builddir=`pwd`;;
25771   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25772   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25773   esac;;
25774 esac
25775 case $ac_abs_builddir in
25776 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25777 *)
25778   case ${ac_top_builddir}. in
25779   .) ac_abs_top_builddir=$ac_abs_builddir;;
25780   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25781   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25782   esac;;
25783 esac
25784 case $ac_abs_builddir in
25785 .) ac_abs_srcdir=$ac_srcdir;;
25786 *)
25787   case $ac_srcdir in
25788   .) ac_abs_srcdir=$ac_abs_builddir;;
25789   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25790   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25791   esac;;
25792 esac
25793 case $ac_abs_builddir in
25794 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25795 *)
25796   case $ac_top_srcdir in
25797   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25798   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25799   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25800   esac;;
25801 esac
25802
25803
25804   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25805 echo "$as_me: executing $ac_dest commands" >&6;}
25806   case $ac_dest in
25807     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25808   # Strip MF so we end up with the name of the file.
25809   mf=`echo "$mf" | sed -e 's/:.*$//'`
25810   # Check whether this is an Automake generated Makefile or not.
25811   # We used to match only the files named `Makefile.in', but
25812   # some people rename them; so instead we look at the file content.
25813   # Grep'ing the first line is not enough: some people post-process
25814   # each Makefile.in and add a new line on top of each file to say so.
25815   # So let's grep whole file.
25816   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25817     dirpart=`(dirname "$mf") 2>/dev/null ||
25818 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25819          X"$mf" : 'X\(//\)[^/]' \| \
25820          X"$mf" : 'X\(//\)$' \| \
25821          X"$mf" : 'X\(/\)' \| \
25822          .     : '\(.\)' 2>/dev/null ||
25823 echo X"$mf" |
25824     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25825           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25826           /^X\(\/\/\)$/{ s//\1/; q; }
25827           /^X\(\/\).*/{ s//\1/; q; }
25828           s/.*/./; q'`
25829   else
25830     continue
25831   fi
25832   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25833   # Extract the definition of DEP_FILES from the Makefile without
25834   # running `make'.
25835   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25836   test -z "$DEPDIR" && continue
25837   # When using ansi2knr, U may be empty or an underscore; expand it
25838   U=`sed -n 's/^U = //p' < "$mf"`
25839   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25840   # We invoke sed twice because it is the simplest approach to
25841   # changing $(DEPDIR) to its actual value in the expansion.
25842   for file in `sed -n '
25843     /^DEP_FILES = .*\\\\$/ {
25844       s/^DEP_FILES = //
25845       :loop
25846         s/\\\\$//
25847         p
25848         n
25849         /\\\\$/ b loop
25850       p
25851     }
25852     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
25853        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25854     # Make sure the directory exists.
25855     test -f "$dirpart/$file" && continue
25856     fdir=`(dirname "$file") 2>/dev/null ||
25857 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25858          X"$file" : 'X\(//\)[^/]' \| \
25859          X"$file" : 'X\(//\)$' \| \
25860          X"$file" : 'X\(/\)' \| \
25861          .     : '\(.\)' 2>/dev/null ||
25862 echo X"$file" |
25863     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25864           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25865           /^X\(\/\/\)$/{ s//\1/; q; }
25866           /^X\(\/\).*/{ s//\1/; q; }
25867           s/.*/./; q'`
25868     { if $as_mkdir_p; then
25869     mkdir -p $dirpart/$fdir
25870   else
25871     as_dir=$dirpart/$fdir
25872     as_dirs=
25873     while test ! -d "$as_dir"; do
25874       as_dirs="$as_dir $as_dirs"
25875       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25877          X"$as_dir" : 'X\(//\)[^/]' \| \
25878          X"$as_dir" : 'X\(//\)$' \| \
25879          X"$as_dir" : 'X\(/\)' \| \
25880          .     : '\(.\)' 2>/dev/null ||
25881 echo X"$as_dir" |
25882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25883           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25884           /^X\(\/\/\)$/{ s//\1/; q; }
25885           /^X\(\/\).*/{ s//\1/; q; }
25886           s/.*/./; q'`
25887     done
25888     test ! -n "$as_dirs" || mkdir $as_dirs
25889   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25890 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25891    { (exit 1); exit 1; }; }; }
25892
25893     # echo "creating $dirpart/$file"
25894     echo '# dummy' > "$dirpart/$file"
25895   done
25896 done
25897  ;;
25898   esac
25899 done
25900 _ACEOF
25901
25902 cat >>$CONFIG_STATUS <<\_ACEOF
25903
25904 { (exit 0); exit 0; }
25905 _ACEOF
25906 chmod +x $CONFIG_STATUS
25907 ac_clean_files=$ac_clean_files_save
25908
25909
25910 # configure is writing to config.log, and then calls config.status.
25911 # config.status does its own redirection, appending to config.log.
25912 # Unfortunately, on DOS this fails, as config.log is still kept open
25913 # by configure, so config.status won't be able to write to it; its
25914 # output is simply discarded.  So we exec the FD to /dev/null,
25915 # effectively closing config.log, so it can be properly (re)opened and
25916 # appended to by config.status.  When coming back to configure, we
25917 # need to make the FD available again.
25918 if test "$no_create" != yes; then
25919   ac_cs_success=:
25920   ac_config_status_args=
25921   test "$silent" = yes &&
25922     ac_config_status_args="$ac_config_status_args --quiet"
25923   exec 5>/dev/null
25924   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25925   exec 5>>config.log
25926   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25927   # would make configure fail if this is the last instruction.
25928   $ac_cs_success || { (exit 1); exit 1; }
25929 fi
25930
25931
25932 echo "
25933
25934 Configuration of package \`${PACKAGE}' on $gras_arch_name (=$gras_arch):
25935
25936         Compiler:       ${CC}
25937
25938         CFlags:         ${CFLAGS}
25939         LDFlags:        ${LDFLAGS}
25940 "
25941
25942 exit 0;