Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A debug msg more
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.7 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.0.040304.
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.0.040304'
428 PACKAGE_STRING='GRAS 0.0.040304'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
430
431 ac_unique_file="src/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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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.0.040304 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.0.040304:";;
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-maintainer-mode  enable make rules and dependencies not useful
1042                           (and sometimes confusing) to the casual installer
1043
1044 Optional Packages:
1045   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1046   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1047   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1048   --with-pic              try to use only PIC/non-PIC objects [default=use
1049                           both]
1050   --with-tags[=TAGS]
1051                           include additional configurations [automatic]
1052
1053 Some influential environment variables:
1054   CC          C compiler command
1055   CFLAGS      C compiler flags
1056   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1057               nonstandard directory <lib dir>
1058   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059               headers in a nonstandard directory <include dir>
1060   CPP         C preprocessor
1061   CXX         C++ compiler command
1062   CXXFLAGS    C++ compiler flags
1063   CXXCPP      C++ preprocessor
1064   F77         Fortran 77 compiler command
1065   FFLAGS      Fortran 77 compiler flags
1066
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1069
1070 Report bugs to <martin.quinson@ens-lyon.fr>.
1071 _ACEOF
1072 fi
1073
1074 if test "$ac_init_help" = "recursive"; then
1075   # If there are subdirs, report their specific --help.
1076   ac_popdir=`pwd`
1077   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078     test -d $ac_dir || continue
1079     ac_builddir=.
1080
1081 if test "$ac_dir" != .; then
1082   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083   # A "../" for each directory in $ac_dir_suffix.
1084   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 else
1086   ac_dir_suffix= ac_top_builddir=
1087 fi
1088
1089 case $srcdir in
1090   .)  # No --srcdir option.  We are building in place.
1091     ac_srcdir=.
1092     if test -z "$ac_top_builddir"; then
1093        ac_top_srcdir=.
1094     else
1095        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096     fi ;;
1097   [\\/]* | ?:[\\/]* )  # Absolute path.
1098     ac_srcdir=$srcdir$ac_dir_suffix;
1099     ac_top_srcdir=$srcdir ;;
1100   *) # Relative path.
1101     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 esac
1104
1105 # Do not use `cd foo && pwd` to compute absolute paths, because
1106 # the directories may not exist.
1107 case `pwd` in
1108 .) ac_abs_builddir="$ac_dir";;
1109 *)
1110   case "$ac_dir" in
1111   .) ac_abs_builddir=`pwd`;;
1112   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114   esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *)
1119   case ${ac_top_builddir}. in
1120   .) ac_abs_top_builddir=$ac_abs_builddir;;
1121   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123   esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1127 *)
1128   case $ac_srcdir in
1129   .) ac_abs_srcdir=$ac_abs_builddir;;
1130   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132   esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *)
1137   case $ac_top_srcdir in
1138   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141   esac;;
1142 esac
1143
1144     cd $ac_dir
1145     # Check for guested configure; otherwise get Cygnus style configure.
1146     if test -f $ac_srcdir/configure.gnu; then
1147       echo
1148       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1149     elif test -f $ac_srcdir/configure; then
1150       echo
1151       $SHELL $ac_srcdir/configure  --help=recursive
1152     elif test -f $ac_srcdir/configure.ac ||
1153            test -f $ac_srcdir/configure.in; then
1154       echo
1155       $ac_configure --help
1156     else
1157       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158     fi
1159     cd "$ac_popdir"
1160   done
1161 fi
1162
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1165   cat <<\_ACEOF
1166 GRAS configure 0.0.040304
1167 generated by GNU Autoconf 2.59
1168
1169 Copyright (C) 2003 Free Software Foundation, Inc.
1170 This configure script is free software; the Free Software Foundation
1171 gives unlimited permission to copy, distribute and modify it.
1172 _ACEOF
1173   exit 0
1174 fi
1175 exec 5>config.log
1176 cat >&5 <<_ACEOF
1177 This file contains any messages produced by compilers while
1178 running configure, to aid debugging if configure makes a mistake.
1179
1180 It was created by GRAS $as_me 0.0.040304, which was
1181 generated by GNU Autoconf 2.59.  Invocation command line was
1182
1183   $ $0 $@
1184
1185 _ACEOF
1186 {
1187 cat <<_ASUNAME
1188 ## --------- ##
1189 ## Platform. ##
1190 ## --------- ##
1191
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1200
1201 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1202 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1205 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1206 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1207 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1208
1209 _ASUNAME
1210
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212 for as_dir in $PATH
1213 do
1214   IFS=$as_save_IFS
1215   test -z "$as_dir" && as_dir=.
1216   echo "PATH: $as_dir"
1217 done
1218
1219 } >&5
1220
1221 cat >&5 <<_ACEOF
1222
1223
1224 ## ----------- ##
1225 ## Core tests. ##
1226 ## ----------- ##
1227
1228 _ACEOF
1229
1230
1231 # Keep a trace of the command line.
1232 # Strip out --no-create and --no-recursion so they do not pile up.
1233 # Strip out --silent because we don't want to record it for future runs.
1234 # Also quote any args containing shell meta-characters.
1235 # Make two passes to allow for proper duplicate-argument suppression.
1236 ac_configure_args=
1237 ac_configure_args0=
1238 ac_configure_args1=
1239 ac_sep=
1240 ac_must_keep_next=false
1241 for ac_pass in 1 2
1242 do
1243   for ac_arg
1244   do
1245     case $ac_arg in
1246     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248     | -silent | --silent | --silen | --sile | --sil)
1249       continue ;;
1250     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252     esac
1253     case $ac_pass in
1254     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255     2)
1256       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257       if test $ac_must_keep_next = true; then
1258         ac_must_keep_next=false # Got value, back to normal.
1259       else
1260         case $ac_arg in
1261           *=* | --config-cache | -C | -disable-* | --disable-* \
1262           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264           | -with-* | --with-* | -without-* | --without-* | --x)
1265             case "$ac_configure_args0 " in
1266               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267             esac
1268             ;;
1269           -* ) ac_must_keep_next=true ;;
1270         esac
1271       fi
1272       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273       # Get rid of the leading space.
1274       ac_sep=" "
1275       ;;
1276     esac
1277   done
1278 done
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281
1282 # When interrupted or exit'd, cleanup temporary files, and complete
1283 # config.log.  We remove comments because anyway the quotes in there
1284 # would cause problems or look ugly.
1285 # WARNING: Be sure not to use single quotes in there, as some shells,
1286 # such as our DU 5.0 friend, will then `close' the trap.
1287 trap 'exit_status=$?
1288   # Save into config.log some information that might help in debugging.
1289   {
1290     echo
1291
1292     cat <<\_ASBOX
1293 ## ---------------- ##
1294 ## Cache variables. ##
1295 ## ---------------- ##
1296 _ASBOX
1297     echo
1298     # The following way of writing the cache mishandles newlines in values,
1299 {
1300   (set) 2>&1 |
1301     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302     *ac_space=\ *)
1303       sed -n \
1304         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306       ;;
1307     *)
1308       sed -n \
1309         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310       ;;
1311     esac;
1312 }
1313     echo
1314
1315     cat <<\_ASBOX
1316 ## ----------------- ##
1317 ## Output variables. ##
1318 ## ----------------- ##
1319 _ASBOX
1320     echo
1321     for ac_var in $ac_subst_vars
1322     do
1323       eval ac_val=$`echo $ac_var`
1324       echo "$ac_var='"'"'$ac_val'"'"'"
1325     done | sort
1326     echo
1327
1328     if test -n "$ac_subst_files"; then
1329       cat <<\_ASBOX
1330 ## ------------- ##
1331 ## Output files. ##
1332 ## ------------- ##
1333 _ASBOX
1334       echo
1335       for ac_var in $ac_subst_files
1336       do
1337         eval ac_val=$`echo $ac_var`
1338         echo "$ac_var='"'"'$ac_val'"'"'"
1339       done | sort
1340       echo
1341     fi
1342
1343     if test -s confdefs.h; then
1344       cat <<\_ASBOX
1345 ## ----------- ##
1346 ## confdefs.h. ##
1347 ## ----------- ##
1348 _ASBOX
1349       echo
1350       sed "/^$/d" confdefs.h | sort
1351       echo
1352     fi
1353     test "$ac_signal" != 0 &&
1354       echo "$as_me: caught signal $ac_signal"
1355     echo "$as_me: exit $exit_status"
1356   } >&5
1357   rm -f core *.core &&
1358   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359     exit $exit_status
1360      ' 0
1361 for ac_signal in 1 2 13 15; do
1362   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363 done
1364 ac_signal=0
1365
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1367 rm -rf conftest* confdefs.h
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369 echo >confdefs.h
1370
1371 # Predefined preprocessor variables.
1372
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_NAME "$PACKAGE_NAME"
1375 _ACEOF
1376
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_STRING "$PACKAGE_STRING"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395 _ACEOF
1396
1397
1398 # Let the site file select an alternate cache file if it wants to.
1399 # Prefer explicitly selected file to automatically selected ones.
1400 if test -z "$CONFIG_SITE"; then
1401   if test "x$prefix" != xNONE; then
1402     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403   else
1404     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405   fi
1406 fi
1407 for ac_site_file in $CONFIG_SITE; do
1408   if test -r "$ac_site_file"; then
1409     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410 echo "$as_me: loading site script $ac_site_file" >&6;}
1411     sed 's/^/| /' "$ac_site_file" >&5
1412     . "$ac_site_file"
1413   fi
1414 done
1415
1416 if test -r "$cache_file"; then
1417   # Some versions of bash will fail to source /dev/null (special
1418   # files actually), so we avoid doing that.
1419   if test -f "$cache_file"; then
1420     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421 echo "$as_me: loading cache $cache_file" >&6;}
1422     case $cache_file in
1423       [\\/]* | ?:[\\/]* ) . $cache_file;;
1424       *)                      . ./$cache_file;;
1425     esac
1426   fi
1427 else
1428   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429 echo "$as_me: creating cache $cache_file" >&6;}
1430   >$cache_file
1431 fi
1432
1433 # Check that the precious variables saved in the cache have kept the same
1434 # value.
1435 ac_cache_corrupted=false
1436 for ac_var in `(set) 2>&1 |
1437                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439   eval ac_new_set=\$ac_env_${ac_var}_set
1440   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441   eval ac_new_val="\$ac_env_${ac_var}_value"
1442   case $ac_old_set,$ac_new_set in
1443     set,)
1444       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446       ac_cache_corrupted=: ;;
1447     ,set)
1448       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450       ac_cache_corrupted=: ;;
1451     ,);;
1452     *)
1453       if test "x$ac_old_val" != "x$ac_new_val"; then
1454         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1457 echo "$as_me:   former value:  $ac_old_val" >&2;}
1458         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1459 echo "$as_me:   current value: $ac_new_val" >&2;}
1460         ac_cache_corrupted=:
1461       fi;;
1462   esac
1463   # Pass precious variables to config.status.
1464   if test "$ac_new_set" = set; then
1465     case $ac_new_val in
1466     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468     *) ac_arg=$ac_var=$ac_new_val ;;
1469     esac
1470     case " $ac_configure_args " in
1471       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1472       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473     esac
1474   fi
1475 done
1476 if $ac_cache_corrupted; then
1477   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481    { (exit 1); exit 1; }; }
1482 fi
1483
1484 ac_ext=c
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519 ac_aux_dir=
1520 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521   if test -f $ac_dir/install-sh; then
1522     ac_aux_dir=$ac_dir
1523     ac_install_sh="$ac_aux_dir/install-sh -c"
1524     break
1525   elif test -f $ac_dir/install.sh; then
1526     ac_aux_dir=$ac_dir
1527     ac_install_sh="$ac_aux_dir/install.sh -c"
1528     break
1529   elif test -f $ac_dir/shtool; then
1530     ac_aux_dir=$ac_dir
1531     ac_install_sh="$ac_aux_dir/shtool install -c"
1532     break
1533   fi
1534 done
1535 if test -z "$ac_aux_dir"; then
1536   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538    { (exit 1); exit 1; }; }
1539 fi
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
1544 # Make sure we can run config.sub.
1545 $ac_config_sub sun4 >/dev/null 2>&1 ||
1546   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1547 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1548    { (exit 1); exit 1; }; }
1549
1550 echo "$as_me:$LINENO: checking build system type" >&5
1551 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1552 if test "${ac_cv_build+set}" = set; then
1553   echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555   ac_cv_build_alias=$build_alias
1556 test -z "$ac_cv_build_alias" &&
1557   ac_cv_build_alias=`$ac_config_guess`
1558 test -z "$ac_cv_build_alias" &&
1559   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1560 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1561    { (exit 1); exit 1; }; }
1562 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1563   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1564 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1565    { (exit 1); exit 1; }; }
1566
1567 fi
1568 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1569 echo "${ECHO_T}$ac_cv_build" >&6
1570 build=$ac_cv_build
1571 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574
1575
1576 echo "$as_me:$LINENO: checking host system type" >&5
1577 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1578 if test "${ac_cv_host+set}" = set; then
1579   echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581   ac_cv_host_alias=$host_alias
1582 test -z "$ac_cv_host_alias" &&
1583   ac_cv_host_alias=$ac_cv_build_alias
1584 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1585   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1586 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1587    { (exit 1); exit 1; }; }
1588
1589 fi
1590 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1591 echo "${ECHO_T}$ac_cv_host" >&6
1592 host=$ac_cv_host
1593 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1596
1597
1598 echo "$as_me:$LINENO: checking target system type" >&5
1599 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1600 if test "${ac_cv_target+set}" = set; then
1601   echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603   ac_cv_target_alias=$target_alias
1604 test "x$ac_cv_target_alias" = "x" &&
1605   ac_cv_target_alias=$ac_cv_host_alias
1606 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1607   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1608 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1609    { (exit 1); exit 1; }; }
1610
1611 fi
1612 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1613 echo "${ECHO_T}$ac_cv_target" >&6
1614 target=$ac_cv_target
1615 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1616 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1617 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1618
1619
1620 # The aliases save the names the user supplied, while $host etc.
1621 # will get canonicalized.
1622 test -n "$target_alias" &&
1623   test "$program_prefix$program_suffix$program_transform_name" = \
1624     NONENONEs,x,x, &&
1625   program_prefix=${target_alias}-
1626 ac_ext=c
1627 ac_cpp='$CPP $CPPFLAGS'
1628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1631
1632
1633           ac_config_headers="$ac_config_headers src/gras_config.h"
1634
1635 am__api_version="1.8"
1636 # Find a good install program.  We prefer a C program (faster),
1637 # so one script is as good as another.  But avoid the broken or
1638 # incompatible versions:
1639 # SysV /etc/install, /usr/sbin/install
1640 # SunOS /usr/etc/install
1641 # IRIX /sbin/install
1642 # AIX /bin/install
1643 # AmigaOS /C/install, which installs bootblocks on floppy discs
1644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1647 # OS/2's system install, which has a completely different semantic
1648 # ./install, which can be erroneously created by make from ./install.sh.
1649 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1650 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1651 if test -z "$INSTALL"; then
1652 if test "${ac_cv_path_install+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   # Account for people who put trailing slashes in PATH elements.
1661 case $as_dir/ in
1662   ./ | .// | /cC/* | \
1663   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1664   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1665   /usr/ucb/* ) ;;
1666   *)
1667     # OSF1 and SCO ODT 3.0 have their own names for install.
1668     # Don't use installbsd from OSF since it installs stuff as root
1669     # by default.
1670     for ac_prog in ginstall scoinst install; do
1671       for ac_exec_ext in '' $ac_executable_extensions; do
1672         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1673           if test $ac_prog = install &&
1674             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1675             # AIX install.  It has an incompatible calling convention.
1676             :
1677           elif test $ac_prog = install &&
1678             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1679             # program-specific install script used by HP pwplus--don't use.
1680             :
1681           else
1682             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1683             break 3
1684           fi
1685         fi
1686       done
1687     done
1688     ;;
1689 esac
1690 done
1691
1692
1693 fi
1694   if test "${ac_cv_path_install+set}" = set; then
1695     INSTALL=$ac_cv_path_install
1696   else
1697     # As a last resort, use the slow shell script.  We don't cache a
1698     # path for INSTALL within a source directory, because that will
1699     # break other packages using the cache if that directory is
1700     # removed, or if the path is relative.
1701     INSTALL=$ac_install_sh
1702   fi
1703 fi
1704 echo "$as_me:$LINENO: result: $INSTALL" >&5
1705 echo "${ECHO_T}$INSTALL" >&6
1706
1707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1708 # It thinks the first close brace ends the variable substitution.
1709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1710
1711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1712
1713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1714
1715 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1716 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1717 # Just in case
1718 sleep 1
1719 echo timestamp > conftest.file
1720 # Do `set' in a subshell so we don't clobber the current shell's
1721 # arguments.  Must try -L first in case configure is actually a
1722 # symlink; some systems play weird games with the mod time of symlinks
1723 # (eg FreeBSD returns the mod time of the symlink's containing
1724 # directory).
1725 if (
1726    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1727    if test "$*" = "X"; then
1728       # -L didn't work.
1729       set X `ls -t $srcdir/configure conftest.file`
1730    fi
1731    rm -f conftest.file
1732    if test "$*" != "X $srcdir/configure conftest.file" \
1733       && test "$*" != "X conftest.file $srcdir/configure"; then
1734
1735       # If neither matched, then we have a broken ls.  This can happen
1736       # if, for instance, CONFIG_SHELL is bash and it inherits a
1737       # broken ls alias from the environment.  This has actually
1738       # happened.  Such a system could not be considered "sane".
1739       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1740 alias in your environment" >&5
1741 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1742 alias in your environment" >&2;}
1743    { (exit 1); exit 1; }; }
1744    fi
1745
1746    test "$2" = conftest.file
1747    )
1748 then
1749    # Ok.
1750    :
1751 else
1752    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1753 Check your system clock" >&5
1754 echo "$as_me: error: newly created file is older than distributed files!
1755 Check your system clock" >&2;}
1756    { (exit 1); exit 1; }; }
1757 fi
1758 echo "$as_me:$LINENO: result: yes" >&5
1759 echo "${ECHO_T}yes" >&6
1760 test "$program_prefix" != NONE &&
1761   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1762 # Use a double $ so make ignores it.
1763 test "$program_suffix" != NONE &&
1764   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1765 # Double any \ or $.  echo might interpret backslashes.
1766 # By default was `s,x,x', remove it if useless.
1767 cat <<\_ACEOF >conftest.sed
1768 s/[\\$]/&&/g;s/;s,x,x,$//
1769 _ACEOF
1770 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1771 rm conftest.sed
1772
1773 # expand $ac_aux_dir to an absolute path
1774 am_aux_dir=`cd $ac_aux_dir && pwd`
1775
1776 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1777 # Use eval to expand $SHELL
1778 if eval "$MISSING --run true"; then
1779   am_missing_run="$MISSING --run "
1780 else
1781   am_missing_run=
1782   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1783 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1784 fi
1785
1786 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1787   # Keeping the `.' argument allows $(mkdir_p) to be used without
1788   # argument.  Indeed, we sometimes output rules like
1789   #   $(mkdir_p) $(somedir)
1790   # where $(somedir) is conditionally defined.
1791   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1792   # expensive solution, as it forces Make to start a sub-shell.)
1793   mkdir_p='mkdir -p -- .'
1794 else
1795   # On NextStep and OpenStep, the `mkdir' command does not
1796   # recognize any option.  It will interpret all options as
1797   # directories to create, and then abort because `.' already
1798   # exists.
1799   for d in ./-p ./--version;
1800   do
1801     test -d $d && rmdir $d
1802   done
1803   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1804   if test -f "$ac_aux_dir/mkinstalldirs"; then
1805     mkdir_p='$(mkinstalldirs)'
1806   else
1807     mkdir_p='$(install_sh) -d'
1808   fi
1809 fi
1810
1811 for ac_prog in gawk mawk nawk awk
1812 do
1813   # Extract the first word of "$ac_prog", so it can be a program name with args.
1814 set dummy $ac_prog; ac_word=$2
1815 echo "$as_me:$LINENO: checking for $ac_word" >&5
1816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817 if test "${ac_cv_prog_AWK+set}" = set; then
1818   echo $ECHO_N "(cached) $ECHO_C" >&6
1819 else
1820   if test -n "$AWK"; then
1821   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1822 else
1823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 for as_dir in $PATH
1825 do
1826   IFS=$as_save_IFS
1827   test -z "$as_dir" && as_dir=.
1828   for ac_exec_ext in '' $ac_executable_extensions; do
1829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830     ac_cv_prog_AWK="$ac_prog"
1831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832     break 2
1833   fi
1834 done
1835 done
1836
1837 fi
1838 fi
1839 AWK=$ac_cv_prog_AWK
1840 if test -n "$AWK"; then
1841   echo "$as_me:$LINENO: result: $AWK" >&5
1842 echo "${ECHO_T}$AWK" >&6
1843 else
1844   echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1846 fi
1847
1848   test -n "$AWK" && break
1849 done
1850
1851 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1852 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1853 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1854 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1855   echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857   cat >conftest.make <<\_ACEOF
1858 all:
1859         @echo 'ac_maketemp="$(MAKE)"'
1860 _ACEOF
1861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1862 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1863 if test -n "$ac_maketemp"; then
1864   eval ac_cv_prog_make_${ac_make}_set=yes
1865 else
1866   eval ac_cv_prog_make_${ac_make}_set=no
1867 fi
1868 rm -f conftest.make
1869 fi
1870 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1871   echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1873   SET_MAKE=
1874 else
1875   echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1877   SET_MAKE="MAKE=${MAKE-make}"
1878 fi
1879
1880 rm -rf .tst 2>/dev/null
1881 mkdir .tst 2>/dev/null
1882 if test -d .tst; then
1883   am__leading_dot=.
1884 else
1885   am__leading_dot=_
1886 fi
1887 rmdir .tst 2>/dev/null
1888
1889 # test to see if srcdir already configured
1890 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1891    test -f $srcdir/config.status; then
1892   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1893 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1894    { (exit 1); exit 1; }; }
1895 fi
1896
1897 # test whether we have cygpath
1898 if test -z "$CYGPATH_W"; then
1899   if (cygpath --version) >/dev/null 2>/dev/null; then
1900     CYGPATH_W='cygpath -w'
1901   else
1902     CYGPATH_W=echo
1903   fi
1904 fi
1905
1906
1907 # Define the identity of the package.
1908  PACKAGE='gras'
1909  VERSION='0.0.040304'
1910
1911
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE "$PACKAGE"
1914 _ACEOF
1915
1916
1917 cat >>confdefs.h <<_ACEOF
1918 #define VERSION "$VERSION"
1919 _ACEOF
1920
1921 # Some tools Automake needs.
1922
1923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1924
1925
1926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1927
1928
1929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1930
1931
1932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1933
1934
1935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1936
1937
1938 AMTAR=${AMTAR-"${am_missing_run}tar"}
1939
1940 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1941
1942 # Installed binaries are usually stripped using `strip' when the user
1943 # run `make install-strip'.  However `strip' might not be the right
1944 # tool to use in cross-compilation environments, therefore Automake
1945 # will honor the `STRIP' environment variable to overrule this program.
1946 if test "$cross_compiling" != no; then
1947   if test -n "$ac_tool_prefix"; then
1948   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1949 set dummy ${ac_tool_prefix}strip; ac_word=$2
1950 echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1952 if test "${ac_cv_prog_STRIP+set}" = set; then
1953   echo $ECHO_N "(cached) $ECHO_C" >&6
1954 else
1955   if test -n "$STRIP"; then
1956   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1957 else
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1960 do
1961   IFS=$as_save_IFS
1962   test -z "$as_dir" && as_dir=.
1963   for ac_exec_ext in '' $ac_executable_extensions; do
1964   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1965     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967     break 2
1968   fi
1969 done
1970 done
1971
1972 fi
1973 fi
1974 STRIP=$ac_cv_prog_STRIP
1975 if test -n "$STRIP"; then
1976   echo "$as_me:$LINENO: result: $STRIP" >&5
1977 echo "${ECHO_T}$STRIP" >&6
1978 else
1979   echo "$as_me:$LINENO: result: no" >&5
1980 echo "${ECHO_T}no" >&6
1981 fi
1982
1983 fi
1984 if test -z "$ac_cv_prog_STRIP"; then
1985   ac_ct_STRIP=$STRIP
1986   # Extract the first word of "strip", so it can be a program name with args.
1987 set dummy strip; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1991   echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993   if test -n "$ac_ct_STRIP"; then
1994   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1995 else
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1998 do
1999   IFS=$as_save_IFS
2000   test -z "$as_dir" && as_dir=.
2001   for ac_exec_ext in '' $ac_executable_extensions; do
2002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003     ac_cv_prog_ac_ct_STRIP="strip"
2004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005     break 2
2006   fi
2007 done
2008 done
2009
2010   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2011 fi
2012 fi
2013 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2014 if test -n "$ac_ct_STRIP"; then
2015   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2016 echo "${ECHO_T}$ac_ct_STRIP" >&6
2017 else
2018   echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2020 fi
2021
2022   STRIP=$ac_ct_STRIP
2023 else
2024   STRIP="$ac_cv_prog_STRIP"
2025 fi
2026
2027 fi
2028 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2029
2030 # We need awk for the "check" target.  The system "awk" is bad on
2031 # some platforms.
2032
2033
2034
2035
2036 # Check whether --enable-shared or --disable-shared was given.
2037 if test "${enable_shared+set}" = set; then
2038   enableval="$enable_shared"
2039   p=${PACKAGE-default}
2040     case $enableval in
2041     yes) enable_shared=yes ;;
2042     no) enable_shared=no ;;
2043     *)
2044       enable_shared=no
2045       # Look at the argument we got.  We use all the common list separators.
2046       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2047       for pkg in $enableval; do
2048         IFS="$lt_save_ifs"
2049         if test "X$pkg" = "X$p"; then
2050           enable_shared=yes
2051         fi
2052       done
2053       IFS="$lt_save_ifs"
2054       ;;
2055     esac
2056 else
2057   enable_shared=yes
2058 fi;
2059
2060 # Check whether --enable-static or --disable-static was given.
2061 if test "${enable_static+set}" = set; then
2062   enableval="$enable_static"
2063   p=${PACKAGE-default}
2064     case $enableval in
2065     yes) enable_static=yes ;;
2066     no) enable_static=no ;;
2067     *)
2068      enable_static=no
2069       # Look at the argument we got.  We use all the common list separators.
2070       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2071       for pkg in $enableval; do
2072         IFS="$lt_save_ifs"
2073         if test "X$pkg" = "X$p"; then
2074           enable_static=yes
2075         fi
2076       done
2077       IFS="$lt_save_ifs"
2078       ;;
2079     esac
2080 else
2081   enable_static=yes
2082 fi;
2083
2084 # Check whether --enable-fast-install or --disable-fast-install was given.
2085 if test "${enable_fast_install+set}" = set; then
2086   enableval="$enable_fast_install"
2087   p=${PACKAGE-default}
2088     case $enableval in
2089     yes) enable_fast_install=yes ;;
2090     no) enable_fast_install=no ;;
2091     *)
2092       enable_fast_install=no
2093       # Look at the argument we got.  We use all the common list separators.
2094       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2095       for pkg in $enableval; do
2096         IFS="$lt_save_ifs"
2097         if test "X$pkg" = "X$p"; then
2098           enable_fast_install=yes
2099         fi
2100       done
2101       IFS="$lt_save_ifs"
2102       ;;
2103     esac
2104 else
2105   enable_fast_install=yes
2106 fi;
2107
2108 DEPDIR="${am__leading_dot}deps"
2109
2110           ac_config_commands="$ac_config_commands depfiles"
2111
2112
2113 am_make=${MAKE-make}
2114 cat > confinc << 'END'
2115 am__doit:
2116         @echo done
2117 .PHONY: am__doit
2118 END
2119 # If we don't find an include directive, just comment out the code.
2120 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2121 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2122 am__include="#"
2123 am__quote=
2124 _am_result=none
2125 # First try GNU make style include.
2126 echo "include confinc" > confmf
2127 # We grep out `Entering directory' and `Leaving directory'
2128 # messages which can occur if `w' ends up in MAKEFLAGS.
2129 # In particular we don't look at `^make:' because GNU make might
2130 # be invoked under some other name (usually "gmake"), in which
2131 # case it prints its new name instead of `make'.
2132 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2133    am__include=include
2134    am__quote=
2135    _am_result=GNU
2136 fi
2137 # Now try BSD make style include.
2138 if test "$am__include" = "#"; then
2139    echo '.include "confinc"' > confmf
2140    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2141       am__include=.include
2142       am__quote="\""
2143       _am_result=BSD
2144    fi
2145 fi
2146
2147
2148 echo "$as_me:$LINENO: result: $_am_result" >&5
2149 echo "${ECHO_T}$_am_result" >&6
2150 rm -f confinc confmf
2151
2152 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2153 if test "${enable_dependency_tracking+set}" = set; then
2154   enableval="$enable_dependency_tracking"
2155
2156 fi;
2157 if test "x$enable_dependency_tracking" != xno; then
2158   am_depcomp="$ac_aux_dir/depcomp"
2159   AMDEPBACKSLASH='\'
2160 fi
2161
2162
2163 if test "x$enable_dependency_tracking" != xno; then
2164   AMDEP_TRUE=
2165   AMDEP_FALSE='#'
2166 else
2167   AMDEP_TRUE='#'
2168   AMDEP_FALSE=
2169 fi
2170
2171
2172
2173 ac_ext=c
2174 ac_cpp='$CPP $CPPFLAGS'
2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178 if test -n "$ac_tool_prefix"; then
2179   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2180 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_CC+set}" = set; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   if test -n "$CC"; then
2187   ac_cv_prog_CC="$CC" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192   IFS=$as_save_IFS
2193   test -z "$as_dir" && as_dir=.
2194   for ac_exec_ext in '' $ac_executable_extensions; do
2195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198     break 2
2199   fi
2200 done
2201 done
2202
2203 fi
2204 fi
2205 CC=$ac_cv_prog_CC
2206 if test -n "$CC"; then
2207   echo "$as_me:$LINENO: result: $CC" >&5
2208 echo "${ECHO_T}$CC" >&6
2209 else
2210   echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2212 fi
2213
2214 fi
2215 if test -z "$ac_cv_prog_CC"; then
2216   ac_ct_CC=$CC
2217   # Extract the first word of "gcc", so it can be a program name with args.
2218 set dummy gcc; ac_word=$2
2219 echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   if test -n "$ac_ct_CC"; then
2225   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230   IFS=$as_save_IFS
2231   test -z "$as_dir" && as_dir=.
2232   for ac_exec_ext in '' $ac_executable_extensions; do
2233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234     ac_cv_prog_ac_ct_CC="gcc"
2235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236     break 2
2237   fi
2238 done
2239 done
2240
2241 fi
2242 fi
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246 echo "${ECHO_T}$ac_ct_CC" >&6
2247 else
2248   echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2250 fi
2251
2252   CC=$ac_ct_CC
2253 else
2254   CC="$ac_cv_prog_CC"
2255 fi
2256
2257 if test -z "$CC"; then
2258   if test -n "$ac_tool_prefix"; then
2259   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2260 set dummy ${ac_tool_prefix}cc; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_CC+set}" = set; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   if test -n "$CC"; then
2267   ac_cv_prog_CC="$CC" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2271 do
2272   IFS=$as_save_IFS
2273   test -z "$as_dir" && as_dir=.
2274   for ac_exec_ext in '' $ac_executable_extensions; do
2275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276     ac_cv_prog_CC="${ac_tool_prefix}cc"
2277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278     break 2
2279   fi
2280 done
2281 done
2282
2283 fi
2284 fi
2285 CC=$ac_cv_prog_CC
2286 if test -n "$CC"; then
2287   echo "$as_me:$LINENO: result: $CC" >&5
2288 echo "${ECHO_T}$CC" >&6
2289 else
2290   echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2292 fi
2293
2294 fi
2295 if test -z "$ac_cv_prog_CC"; then
2296   ac_ct_CC=$CC
2297   # Extract the first word of "cc", so it can be a program name with args.
2298 set dummy cc; ac_word=$2
2299 echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   if test -n "$ac_ct_CC"; then
2305   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2309 do
2310   IFS=$as_save_IFS
2311   test -z "$as_dir" && as_dir=.
2312   for ac_exec_ext in '' $ac_executable_extensions; do
2313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314     ac_cv_prog_ac_ct_CC="cc"
2315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316     break 2
2317   fi
2318 done
2319 done
2320
2321 fi
2322 fi
2323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2324 if test -n "$ac_ct_CC"; then
2325   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2326 echo "${ECHO_T}$ac_ct_CC" >&6
2327 else
2328   echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2330 fi
2331
2332   CC=$ac_ct_CC
2333 else
2334   CC="$ac_cv_prog_CC"
2335 fi
2336
2337 fi
2338 if test -z "$CC"; then
2339   # Extract the first word of "cc", so it can be a program name with args.
2340 set dummy cc; ac_word=$2
2341 echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344   echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346   if test -n "$CC"; then
2347   ac_cv_prog_CC="$CC" # Let the user override the test.
2348 else
2349   ac_prog_rejected=no
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 for as_dir in $PATH
2352 do
2353   IFS=$as_save_IFS
2354   test -z "$as_dir" && as_dir=.
2355   for ac_exec_ext in '' $ac_executable_extensions; do
2356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2357     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2358        ac_prog_rejected=yes
2359        continue
2360      fi
2361     ac_cv_prog_CC="cc"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367
2368 if test $ac_prog_rejected = yes; then
2369   # We found a bogon in the path, so make sure we never use it.
2370   set dummy $ac_cv_prog_CC
2371   shift
2372   if test $# != 0; then
2373     # We chose a different compiler from the bogus one.
2374     # However, it has the same basename, so the bogon will be chosen
2375     # first if we set CC to just the basename; use the full file name.
2376     shift
2377     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2378   fi
2379 fi
2380 fi
2381 fi
2382 CC=$ac_cv_prog_CC
2383 if test -n "$CC"; then
2384   echo "$as_me:$LINENO: result: $CC" >&5
2385 echo "${ECHO_T}$CC" >&6
2386 else
2387   echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6
2389 fi
2390
2391 fi
2392 if test -z "$CC"; then
2393   if test -n "$ac_tool_prefix"; then
2394   for ac_prog in cl
2395   do
2396     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2398 echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_CC+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   if test -n "$CC"; then
2404   ac_cv_prog_CC="$CC" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409   IFS=$as_save_IFS
2410   test -z "$as_dir" && as_dir=.
2411   for ac_exec_ext in '' $ac_executable_extensions; do
2412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415     break 2
2416   fi
2417 done
2418 done
2419
2420 fi
2421 fi
2422 CC=$ac_cv_prog_CC
2423 if test -n "$CC"; then
2424   echo "$as_me:$LINENO: result: $CC" >&5
2425 echo "${ECHO_T}$CC" >&6
2426 else
2427   echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2429 fi
2430
2431     test -n "$CC" && break
2432   done
2433 fi
2434 if test -z "$CC"; then
2435   ac_ct_CC=$CC
2436   for ac_prog in cl
2437 do
2438   # Extract the first word of "$ac_prog", so it can be a program name with args.
2439 set dummy $ac_prog; ac_word=$2
2440 echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$ac_ct_CC"; then
2446   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455     ac_cv_prog_ac_ct_CC="$ac_prog"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461
2462 fi
2463 fi
2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465 if test -n "$ac_ct_CC"; then
2466   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467 echo "${ECHO_T}$ac_ct_CC" >&6
2468 else
2469   echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6
2471 fi
2472
2473   test -n "$ac_ct_CC" && break
2474 done
2475
2476   CC=$ac_ct_CC
2477 fi
2478
2479 fi
2480
2481
2482 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2483 See \`config.log' for more details." >&5
2484 echo "$as_me: error: no acceptable C compiler found in \$PATH
2485 See \`config.log' for more details." >&2;}
2486    { (exit 1); exit 1; }; }
2487
2488 # Provide some information about the compiler.
2489 echo "$as_me:$LINENO:" \
2490      "checking for C compiler version" >&5
2491 ac_compiler=`set X $ac_compile; echo $2`
2492 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2493   (eval $ac_compiler --version </dev/null >&5) 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }
2497 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2498   (eval $ac_compiler -v </dev/null >&5) 2>&5
2499   ac_status=$?
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }
2502 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2503   (eval $ac_compiler -V </dev/null >&5) 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); }
2507
2508 cat >conftest.$ac_ext <<_ACEOF
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514
2515 int
2516 main ()
2517 {
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 ac_clean_files_save=$ac_clean_files
2524 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2525 # Try to create an executable without -o first, disregard a.out.
2526 # It will help us diagnose broken compilers, and finding out an intuition
2527 # of exeext.
2528 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2529 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2530 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2531 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2532   (eval $ac_link_default) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; then
2536   # Find the output, starting from the most likely.  This scheme is
2537 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2538 # resort.
2539
2540 # Be careful to initialize this variable, since it used to be cached.
2541 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2542 ac_cv_exeext=
2543 # b.out is created by i960 compilers.
2544 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2545 do
2546   test -f "$ac_file" || continue
2547   case $ac_file in
2548     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2549         ;;
2550     conftest.$ac_ext )
2551         # This is the source file.
2552         ;;
2553     [ab].out )
2554         # We found the default executable, but exeext='' is most
2555         # certainly right.
2556         break;;
2557     *.* )
2558         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559         # FIXME: I believe we export ac_cv_exeext for Libtool,
2560         # but it would be cool to find out if it's true.  Does anybody
2561         # maintain Libtool? --akim.
2562         export ac_cv_exeext
2563         break;;
2564     * )
2565         break;;
2566   esac
2567 done
2568 else
2569   echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2573 See \`config.log' for more details." >&5
2574 echo "$as_me: error: C compiler cannot create executables
2575 See \`config.log' for more details." >&2;}
2576    { (exit 77); exit 77; }; }
2577 fi
2578
2579 ac_exeext=$ac_cv_exeext
2580 echo "$as_me:$LINENO: result: $ac_file" >&5
2581 echo "${ECHO_T}$ac_file" >&6
2582
2583 # Check the compiler produces executables we can run.  If not, either
2584 # the compiler is broken, or we cross compile.
2585 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2586 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2587 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2588 # If not cross compiling, check that we can run a simple program.
2589 if test "$cross_compiling" != yes; then
2590   if { ac_try='./$ac_file'
2591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592   (eval $ac_try) 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; }; then
2596     cross_compiling=no
2597   else
2598     if test "$cross_compiling" = maybe; then
2599         cross_compiling=yes
2600     else
2601         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2602 If you meant to cross compile, use \`--host'.
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot run C compiled programs.
2605 If you meant to cross compile, use \`--host'.
2606 See \`config.log' for more details." >&2;}
2607    { (exit 1); exit 1; }; }
2608     fi
2609   fi
2610 fi
2611 echo "$as_me:$LINENO: result: yes" >&5
2612 echo "${ECHO_T}yes" >&6
2613
2614 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2615 ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
2619 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2620 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2621 echo "${ECHO_T}$cross_compiling" >&6
2622
2623 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2624 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2626   (eval $ac_link) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); }; then
2630   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2631 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2632 # work properly (i.e., refer to `conftest.exe'), while it won't with
2633 # `rm'.
2634 for ac_file in conftest.exe conftest conftest.*; do
2635   test -f "$ac_file" || continue
2636   case $ac_file in
2637     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2638     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2639           export ac_cv_exeext
2640           break;;
2641     * ) break;;
2642   esac
2643 done
2644 else
2645   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2646 See \`config.log' for more details." >&5
2647 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2648 See \`config.log' for more details." >&2;}
2649    { (exit 1); exit 1; }; }
2650 fi
2651
2652 rm -f conftest$ac_cv_exeext
2653 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2654 echo "${ECHO_T}$ac_cv_exeext" >&6
2655
2656 rm -f conftest.$ac_ext
2657 EXEEXT=$ac_cv_exeext
2658 ac_exeext=$EXEEXT
2659 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2660 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2661 if test "${ac_cv_objext+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   cat >conftest.$ac_ext <<_ACEOF
2665 /* confdefs.h.  */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h.  */
2670
2671 int
2672 main ()
2673 {
2674
2675   ;
2676   return 0;
2677 }
2678 _ACEOF
2679 rm -f conftest.o conftest.obj
2680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681   (eval $ac_compile) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }; then
2685   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2686   case $ac_file in
2687     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2688     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2689        break;;
2690   esac
2691 done
2692 else
2693   echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2697 See \`config.log' for more details." >&5
2698 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2699 See \`config.log' for more details." >&2;}
2700    { (exit 1); exit 1; }; }
2701 fi
2702
2703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2704 fi
2705 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2706 echo "${ECHO_T}$ac_cv_objext" >&6
2707 OBJEXT=$ac_cv_objext
2708 ac_objext=$OBJEXT
2709 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2710 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2711 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2712   echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714   cat >conftest.$ac_ext <<_ACEOF
2715 /* confdefs.h.  */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h.  */
2720
2721 int
2722 main ()
2723 {
2724 #ifndef __GNUC__
2725        choke me
2726 #endif
2727
2728   ;
2729   return 0;
2730 }
2731 _ACEOF
2732 rm -f conftest.$ac_objext
2733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734   (eval $ac_compile) 2>conftest.er1
2735   ac_status=$?
2736   grep -v '^ *+' conftest.er1 >conftest.err
2737   rm -f conftest.er1
2738   cat conftest.err >&5
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); } &&
2741          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; } &&
2747          { ac_try='test -s conftest.$ac_objext'
2748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749   (eval $ac_try) 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; }; then
2753   ac_compiler_gnu=yes
2754 else
2755   echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 ac_compiler_gnu=no
2759 fi
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2762
2763 fi
2764 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2765 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2766 GCC=`test $ac_compiler_gnu = yes && echo yes`
2767 ac_test_CFLAGS=${CFLAGS+set}
2768 ac_save_CFLAGS=$CFLAGS
2769 CFLAGS="-g"
2770 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2772 if test "${ac_cv_prog_cc_g+set}" = set; then
2773   echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775   cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781
2782 int
2783 main ()
2784 {
2785
2786   ;
2787   return 0;
2788 }
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792   (eval $ac_compile) 2>conftest.er1
2793   ac_status=$?
2794   grep -v '^ *+' conftest.er1 >conftest.err
2795   rm -f conftest.er1
2796   cat conftest.err >&5
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); } &&
2799          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; } &&
2805          { ac_try='test -s conftest.$ac_objext'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; }; then
2811   ac_cv_prog_cc_g=yes
2812 else
2813   echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815
2816 ac_cv_prog_cc_g=no
2817 fi
2818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2819 fi
2820 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2821 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2822 if test "$ac_test_CFLAGS" = set; then
2823   CFLAGS=$ac_save_CFLAGS
2824 elif test $ac_cv_prog_cc_g = yes; then
2825   if test "$GCC" = yes; then
2826     CFLAGS="-g -O2"
2827   else
2828     CFLAGS="-g"
2829   fi
2830 else
2831   if test "$GCC" = yes; then
2832     CFLAGS="-O2"
2833   else
2834     CFLAGS=
2835   fi
2836 fi
2837 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2838 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2839 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2840   echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842   ac_cv_prog_cc_stdc=no
2843 ac_save_CC=$CC
2844 cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h.  */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h.  */
2850 #include <stdarg.h>
2851 #include <stdio.h>
2852 #include <sys/types.h>
2853 #include <sys/stat.h>
2854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2855 struct buf { int x; };
2856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2857 static char *e (p, i)
2858      char **p;
2859      int i;
2860 {
2861   return p[i];
2862 }
2863 static char *f (char * (*g) (char **, int), char **p, ...)
2864 {
2865   char *s;
2866   va_list v;
2867   va_start (v,p);
2868   s = g (p, va_arg (v,int));
2869   va_end (v);
2870   return s;
2871 }
2872
2873 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2874    function prototypes and stuff, but not '\xHH' hex character constants.
2875    These don't provoke an error unfortunately, instead are silently treated
2876    as 'x'.  The following induces an error, until -std1 is added to get
2877    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2878    array size at least.  It's necessary to write '\x00'==0 to get something
2879    that's true only with -std1.  */
2880 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2881
2882 int test (int i, double x);
2883 struct s1 {int (*f) (int a);};
2884 struct s2 {int (*f) (double a);};
2885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2886 int argc;
2887 char **argv;
2888 int
2889 main ()
2890 {
2891 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2892   ;
2893   return 0;
2894 }
2895 _ACEOF
2896 # Don't try gcc -ansi; that turns off useful extensions and
2897 # breaks some systems' header files.
2898 # AIX                   -qlanglvl=ansi
2899 # Ultrix and OSF/1      -std1
2900 # HP-UX 10.20 and later -Ae
2901 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2902 # SVR4                  -Xc -D__EXTENSIONS__
2903 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2904 do
2905   CC="$ac_save_CC $ac_arg"
2906   rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908   (eval $ac_compile) 2>conftest.er1
2909   ac_status=$?
2910   grep -v '^ *+' conftest.er1 >conftest.err
2911   rm -f conftest.er1
2912   cat conftest.err >&5
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); } &&
2915          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917   (eval $ac_try) 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }; } &&
2921          { ac_try='test -s conftest.$ac_objext'
2922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923   (eval $ac_try) 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }; }; then
2927   ac_cv_prog_cc_stdc=$ac_arg
2928 break
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 fi
2934 rm -f conftest.err conftest.$ac_objext
2935 done
2936 rm -f conftest.$ac_ext conftest.$ac_objext
2937 CC=$ac_save_CC
2938
2939 fi
2940
2941 case "x$ac_cv_prog_cc_stdc" in
2942   x|xno)
2943     echo "$as_me:$LINENO: result: none needed" >&5
2944 echo "${ECHO_T}none needed" >&6 ;;
2945   *)
2946     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2947 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2948     CC="$CC $ac_cv_prog_cc_stdc" ;;
2949 esac
2950
2951 # Some people use a C++ compiler to compile C.  Since we use `exit',
2952 # in C++ we need to declare it.  In case someone uses the same compiler
2953 # for both compiling C and C++ we need to have the C++ compiler decide
2954 # the declaration of exit, since it's the most demanding environment.
2955 cat >conftest.$ac_ext <<_ACEOF
2956 #ifndef __cplusplus
2957   choke me
2958 #endif
2959 _ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2962   (eval $ac_compile) 2>conftest.er1
2963   ac_status=$?
2964   grep -v '^ *+' conftest.er1 >conftest.err
2965   rm -f conftest.er1
2966   cat conftest.err >&5
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); } &&
2969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971   (eval $ac_try) 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); }; } &&
2975          { ac_try='test -s conftest.$ac_objext'
2976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977   (eval $ac_try) 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; }; then
2981   for ac_declaration in \
2982    '' \
2983    'extern "C" void std::exit (int) throw (); using std::exit;' \
2984    'extern "C" void std::exit (int); using std::exit;' \
2985    'extern "C" void exit (int) throw ();' \
2986    'extern "C" void exit (int);' \
2987    'void exit (int);'
2988 do
2989   cat >conftest.$ac_ext <<_ACEOF
2990 /* confdefs.h.  */
2991 _ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h.  */
2995 $ac_declaration
2996 #include <stdlib.h>
2997 int
2998 main ()
2999 {
3000 exit (42);
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007   (eval $ac_compile) 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } &&
3014          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016   (eval $ac_try) 2>&5
3017   ac_status=$?
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); }; } &&
3020          { ac_try='test -s conftest.$ac_objext'
3021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022   (eval $ac_try) 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; }; then
3026   :
3027 else
3028   echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3030
3031 continue
3032 fi
3033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3034   cat >conftest.$ac_ext <<_ACEOF
3035 /* confdefs.h.  */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h.  */
3040 $ac_declaration
3041 int
3042 main ()
3043 {
3044 exit (42);
3045   ;
3046   return 0;
3047 }
3048 _ACEOF
3049 rm -f conftest.$ac_objext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051   (eval $ac_compile) 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } &&
3058          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060   (eval $ac_try) 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; } &&
3064          { ac_try='test -s conftest.$ac_objext'
3065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066   (eval $ac_try) 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; }; then
3070   break
3071 else
3072   echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075 fi
3076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3077 done
3078 rm -f conftest*
3079 if test -n "$ac_declaration"; then
3080   echo '#ifdef __cplusplus' >>confdefs.h
3081   echo $ac_declaration      >>confdefs.h
3082   echo '#endif'             >>confdefs.h
3083 fi
3084
3085 else
3086   echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 fi
3090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3091 ac_ext=c
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096
3097 depcc="$CC"   am_compiler_list=
3098
3099 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3100 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3101 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3102   echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3105   # We make a subdir and do the tests there.  Otherwise we can end up
3106   # making bogus files that we don't know about and never remove.  For
3107   # instance it was reported that on HP-UX the gcc test will end up
3108   # making a dummy file named `D' -- because `-MD' means `put the output
3109   # in D'.
3110   mkdir conftest.dir
3111   # Copy depcomp to subdir because otherwise we won't find it if we're
3112   # using a relative directory.
3113   cp "$am_depcomp" conftest.dir
3114   cd conftest.dir
3115   # We will build objects and dependencies in a subdirectory because
3116   # it helps to detect inapplicable dependency modes.  For instance
3117   # both Tru64's cc and ICC support -MD to output dependencies as a
3118   # side effect of compilation, but ICC will put the dependencies in
3119   # the current directory while Tru64 will put them in the object
3120   # directory.
3121   mkdir sub
3122
3123   am_cv_CC_dependencies_compiler_type=none
3124   if test "$am_compiler_list" = ""; then
3125      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3126   fi
3127   for depmode in $am_compiler_list; do
3128     # Setup a source with many dependencies, because some compilers
3129     # like to wrap large dependency lists on column 80 (with \), and
3130     # we should not choose a depcomp mode which is confused by this.
3131     #
3132     # We need to recreate these files for each test, as the compiler may
3133     # overwrite some of them when testing with obscure command lines.
3134     # This happens at least with the AIX C compiler.
3135     : > sub/conftest.c
3136     for i in 1 2 3 4 5 6; do
3137       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3138       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3139       # Solaris 8's {/usr,}/bin/sh.
3140       touch sub/conftst$i.h
3141     done
3142     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3143
3144     case $depmode in
3145     nosideeffect)
3146       # after this tag, mechanisms are not by side-effect, so they'll
3147       # only be used when explicitly requested
3148       if test "x$enable_dependency_tracking" = xyes; then
3149         continue
3150       else
3151         break
3152       fi
3153       ;;
3154     none) break ;;
3155     esac
3156     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3157     # mode.  It turns out that the SunPro C++ compiler does not properly
3158     # handle `-M -o', and we need to detect this.
3159     if depmode=$depmode \
3160        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3161        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3162        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3163          >/dev/null 2>conftest.err &&
3164        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3165        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3166        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3167       # icc doesn't choke on unknown options, it will just issue warnings
3168       # or remarks (even with -Werror).  So we grep stderr for any message
3169       # that says an option was ignored or not supported.
3170       # When given -MP, icc 7.0 and 7.1 complain thusly:
3171       #   icc: Command line warning: ignoring option '-M'; no argument required
3172       # The diagnosis changed in icc 8.0:
3173       #   icc: Command line remark: option '-MP' not supported
3174       if (grep 'ignoring option' conftest.err ||
3175           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3176         am_cv_CC_dependencies_compiler_type=$depmode
3177         break
3178       fi
3179     fi
3180   done
3181
3182   cd ..
3183   rm -rf conftest.dir
3184 else
3185   am_cv_CC_dependencies_compiler_type=none
3186 fi
3187
3188 fi
3189 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3190 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3191 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3192
3193
3194
3195 if
3196   test "x$enable_dependency_tracking" != xno \
3197   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3198   am__fastdepCC_TRUE=
3199   am__fastdepCC_FALSE='#'
3200 else
3201   am__fastdepCC_TRUE='#'
3202   am__fastdepCC_FALSE=
3203 fi
3204
3205
3206 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3207 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3208 if test "${lt_cv_path_SED+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211   # Loop through the user's path and test for sed and gsed.
3212 # Then use that list of sed's as ones to test for truncation.
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218   for lt_ac_prog in sed gsed; do
3219     for ac_exec_ext in '' $ac_executable_extensions; do
3220       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3221         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3222       fi
3223     done
3224   done
3225 done
3226 lt_ac_max=0
3227 lt_ac_count=0
3228 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3229 # along with /bin/sed that truncates output.
3230 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3231   test ! -f $lt_ac_sed && break
3232   cat /dev/null > conftest.in
3233   lt_ac_count=0
3234   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3235   # Check for GNU sed and select it if it is found.
3236   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3237     lt_cv_path_SED=$lt_ac_sed
3238     break
3239   fi
3240   while true; do
3241     cat conftest.in conftest.in >conftest.tmp
3242     mv conftest.tmp conftest.in
3243     cp conftest.in conftest.nl
3244     echo >>conftest.nl
3245     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3246     cmp -s conftest.out conftest.nl || break
3247     # 10000 chars as input seems more than enough
3248     test $lt_ac_count -gt 10 && break
3249     lt_ac_count=`expr $lt_ac_count + 1`
3250     if test $lt_ac_count -gt $lt_ac_max; then
3251       lt_ac_max=$lt_ac_count
3252       lt_cv_path_SED=$lt_ac_sed
3253     fi
3254   done
3255 done
3256 SED=$lt_cv_path_SED
3257
3258 fi
3259
3260 echo "$as_me:$LINENO: result: $SED" >&5
3261 echo "${ECHO_T}$SED" >&6
3262
3263 echo "$as_me:$LINENO: checking for egrep" >&5
3264 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3265 if test "${ac_cv_prog_egrep+set}" = set; then
3266   echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3269     then ac_cv_prog_egrep='grep -E'
3270     else ac_cv_prog_egrep='egrep'
3271     fi
3272 fi
3273 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3274 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3275  EGREP=$ac_cv_prog_egrep
3276
3277
3278
3279 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3280 if test "${with_gnu_ld+set}" = set; then
3281   withval="$with_gnu_ld"
3282   test "$withval" = no || with_gnu_ld=yes
3283 else
3284   with_gnu_ld=no
3285 fi;
3286 ac_prog=ld
3287 if test "$GCC" = yes; then
3288   # Check if gcc -print-prog-name=ld gives a path.
3289   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3290 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3291   case $host in
3292   *-*-mingw*)
3293     # gcc leaves a trailing carriage return which upsets mingw
3294     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3295   *)
3296     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3297   esac
3298   case $ac_prog in
3299     # Accept absolute paths.
3300     [\\/]* | ?:[\\/]*)
3301       re_direlt='/[^/][^/]*/\.\./'
3302       # Canonicalize the pathname of ld
3303       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3304       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3305         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3306       done
3307       test -z "$LD" && LD="$ac_prog"
3308       ;;
3309   "")
3310     # If it fails, then pretend we aren't using GCC.
3311     ac_prog=ld
3312     ;;
3313   *)
3314     # If it is relative, then search for the first ld in PATH.
3315     with_gnu_ld=unknown
3316     ;;
3317   esac
3318 elif test "$with_gnu_ld" = yes; then
3319   echo "$as_me:$LINENO: checking for GNU ld" >&5
3320 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3321 else
3322   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3323 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3324 fi
3325 if test "${lt_cv_path_LD+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   if test -z "$LD"; then
3329   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3330   for ac_dir in $PATH; do
3331     IFS="$lt_save_ifs"
3332     test -z "$ac_dir" && ac_dir=.
3333     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3334       lt_cv_path_LD="$ac_dir/$ac_prog"
3335       # Check to see if the program is GNU ld.  I'd rather use --version,
3336       # but apparently some GNU ld's only accept -v.
3337       # Break only if it was the GNU/non-GNU ld that we prefer.
3338       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3339       *GNU* | *'with BFD'*)
3340         test "$with_gnu_ld" != no && break
3341         ;;
3342       *)
3343         test "$with_gnu_ld" != yes && break
3344         ;;
3345       esac
3346     fi
3347   done
3348   IFS="$lt_save_ifs"
3349 else
3350   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3351 fi
3352 fi
3353
3354 LD="$lt_cv_path_LD"
3355 if test -n "$LD"; then
3356   echo "$as_me:$LINENO: result: $LD" >&5
3357 echo "${ECHO_T}$LD" >&6
3358 else
3359   echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3361 fi
3362 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3363 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3364    { (exit 1); exit 1; }; }
3365 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3366 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3367 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3371 case `$LD -v 2>&1 </dev/null` in
3372 *GNU* | *'with BFD'*)
3373   lt_cv_prog_gnu_ld=yes
3374   ;;
3375 *)
3376   lt_cv_prog_gnu_ld=no
3377   ;;
3378 esac
3379 fi
3380 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3381 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3382 with_gnu_ld=$lt_cv_prog_gnu_ld
3383
3384
3385 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3386 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3387 if test "${lt_cv_ld_reload_flag+set}" = set; then
3388   echo $ECHO_N "(cached) $ECHO_C" >&6
3389 else
3390   lt_cv_ld_reload_flag='-r'
3391 fi
3392 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3393 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3394 reload_flag=$lt_cv_ld_reload_flag
3395 case $reload_flag in
3396 "" | " "*) ;;
3397 *) reload_flag=" $reload_flag" ;;
3398 esac
3399 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3400
3401 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3402 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3403 if test "${lt_cv_path_NM+set}" = set; then
3404   echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406   if test -n "$NM"; then
3407   # Let the user override the test.
3408   lt_cv_path_NM="$NM"
3409 else
3410   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3411   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3412     IFS="$lt_save_ifs"
3413     test -z "$ac_dir" && ac_dir=.
3414     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3415     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3416       # Check to see if the nm accepts a BSD-compat flag.
3417       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3418       #   nm: unknown option "B" ignored
3419       # Tru64's nm complains that /dev/null is an invalid object file
3420       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3421       */dev/null* | *'Invalid file or object type'*)
3422         lt_cv_path_NM="$tmp_nm -B"
3423         break
3424         ;;
3425       *)
3426         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3427         */dev/null*)
3428           lt_cv_path_NM="$tmp_nm -p"
3429           break
3430           ;;
3431         *)
3432           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3433           continue # so that we can try to find one that supports BSD flags
3434           ;;
3435         esac
3436       esac
3437     fi
3438   done
3439   IFS="$lt_save_ifs"
3440   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3441 fi
3442 fi
3443 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3444 echo "${ECHO_T}$lt_cv_path_NM" >&6
3445 NM="$lt_cv_path_NM"
3446
3447 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3448 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3449 LN_S=$as_ln_s
3450 if test "$LN_S" = "ln -s"; then
3451   echo "$as_me:$LINENO: result: yes" >&5
3452 echo "${ECHO_T}yes" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3455 echo "${ECHO_T}no, using $LN_S" >&6
3456 fi
3457
3458 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3459 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3460 if test "${lt_cv_deplibs_check_method+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463   lt_cv_file_magic_cmd='$MAGIC_CMD'
3464 lt_cv_file_magic_test_file=
3465 lt_cv_deplibs_check_method='unknown'
3466 # Need to set the preceding variable on all platforms that support
3467 # interlibrary dependencies.
3468 # 'none' -- dependencies not supported.
3469 # `unknown' -- same as none, but documents that we really don't know.
3470 # 'pass_all' -- all dependencies passed with no checks.
3471 # 'test_compile' -- check by making test program.
3472 # 'file_magic [[regex]]' -- check by looking for files in library path
3473 # which responds to the $file_magic_cmd with a given extended regex.
3474 # If you have `file' or equivalent on your system and you're not sure
3475 # whether `pass_all' will *always* work, you probably want this one.
3476
3477 case $host_os in
3478 aix4* | aix5*)
3479   lt_cv_deplibs_check_method=pass_all
3480   ;;
3481
3482 beos*)
3483   lt_cv_deplibs_check_method=pass_all
3484   ;;
3485
3486 bsdi4*)
3487   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3488   lt_cv_file_magic_cmd='/usr/bin/file -L'
3489   lt_cv_file_magic_test_file=/shlib/libc.so
3490   ;;
3491
3492 cygwin*)
3493   # func_win32_libid is a shell function defined in ltmain.sh
3494   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3495   lt_cv_file_magic_cmd='func_win32_libid'
3496   ;;
3497
3498 mingw* | pw32*)
3499   # Base MSYS/MinGW do not provide the 'file' command needed by
3500   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3501   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3502   lt_cv_file_magic_cmd='$OBJDUMP -f'
3503   ;;
3504
3505 darwin* | rhapsody*)
3506   lt_cv_deplibs_check_method=pass_all
3507   ;;
3508
3509 freebsd* | kfreebsd*-gnu)
3510   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3511     case $host_cpu in
3512     i*86 )
3513       # Not sure whether the presence of OpenBSD here was a mistake.
3514       # Let's accept both of them until this is cleared up.
3515       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3516       lt_cv_file_magic_cmd=/usr/bin/file
3517       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3518       ;;
3519     esac
3520   else
3521     lt_cv_deplibs_check_method=pass_all
3522   fi
3523   ;;
3524
3525 gnu*)
3526   lt_cv_deplibs_check_method=pass_all
3527   ;;
3528
3529 hpux10.20* | hpux11*)
3530   lt_cv_file_magic_cmd=/usr/bin/file
3531   case "$host_cpu" in
3532   ia64*)
3533     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3534     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3535     ;;
3536   hppa*64*)
3537     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]'
3538     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3539     ;;
3540   *)
3541     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3542     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3543     ;;
3544   esac
3545   ;;
3546
3547 irix5* | irix6* | nonstopux*)
3548   case $LD in
3549   *-32|*"-32 ") libmagic=32-bit;;
3550   *-n32|*"-n32 ") libmagic=N32;;
3551   *-64|*"-64 ") libmagic=64-bit;;
3552   *) libmagic=never-match;;
3553   esac
3554   lt_cv_deplibs_check_method=pass_all
3555   ;;
3556
3557 # This must be Linux ELF.
3558 linux*)
3559   lt_cv_deplibs_check_method=pass_all
3560   ;;
3561
3562 netbsd* | knetbsd*-gnu)
3563   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3564     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3565   else
3566     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3567   fi
3568   ;;
3569
3570 newos6*)
3571   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3572   lt_cv_file_magic_cmd=/usr/bin/file
3573   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3574   ;;
3575
3576 nto-qnx*)
3577   lt_cv_deplibs_check_method=unknown
3578   ;;
3579
3580 openbsd*)
3581   lt_cv_file_magic_cmd=/usr/bin/file
3582   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3583   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3584     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3585   else
3586     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3587   fi
3588   ;;
3589
3590 osf3* | osf4* | osf5*)
3591   lt_cv_deplibs_check_method=pass_all
3592   ;;
3593
3594 sco3.2v5*)
3595   lt_cv_deplibs_check_method=pass_all
3596   ;;
3597
3598 solaris*)
3599   lt_cv_deplibs_check_method=pass_all
3600   ;;
3601
3602 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3603   case $host_vendor in
3604   motorola)
3605     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]'
3606     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3607     ;;
3608   ncr)
3609     lt_cv_deplibs_check_method=pass_all
3610     ;;
3611   sequent)
3612     lt_cv_file_magic_cmd='/bin/file'
3613     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3614     ;;
3615   sni)
3616     lt_cv_file_magic_cmd='/bin/file'
3617     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3618     lt_cv_file_magic_test_file=/lib/libc.so
3619     ;;
3620   siemens)
3621     lt_cv_deplibs_check_method=pass_all
3622     ;;
3623   esac
3624   ;;
3625
3626 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3627   lt_cv_deplibs_check_method=pass_all
3628   ;;
3629 esac
3630
3631 fi
3632 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3633 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3634 file_magic_cmd=$lt_cv_file_magic_cmd
3635 deplibs_check_method=$lt_cv_deplibs_check_method
3636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3637
3638
3639
3640
3641 # If no C compiler was specified, use CC.
3642 LTCC=${LTCC-"$CC"}
3643
3644 # Allow CC to be a program name with arguments.
3645 compiler=$CC
3646
3647
3648 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3649 if test "${enable_libtool_lock+set}" = set; then
3650   enableval="$enable_libtool_lock"
3651
3652 fi;
3653 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3654
3655 # Some flags need to be propagated to the compiler or linker for good
3656 # libtool support.
3657 case $host in
3658 ia64-*-hpux*)
3659   # Find out which ABI we are using.
3660   echo 'int i;' > conftest.$ac_ext
3661   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662   (eval $ac_compile) 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); }; then
3666     case `/usr/bin/file conftest.$ac_objext` in
3667     *ELF-32*)
3668       HPUX_IA64_MODE="32"
3669       ;;
3670     *ELF-64*)
3671       HPUX_IA64_MODE="64"
3672       ;;
3673     esac
3674   fi
3675   rm -rf conftest*
3676   ;;
3677 *-*-irix6*)
3678   # Find out which ABI we are using.
3679   echo '#line 3679 "configure"' > conftest.$ac_ext
3680   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681   (eval $ac_compile) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; then
3685    if test "$lt_cv_prog_gnu_ld" = yes; then
3686     case `/usr/bin/file conftest.$ac_objext` in
3687     *32-bit*)
3688       LD="${LD-ld} -melf32bsmip"
3689       ;;
3690     *N32*)
3691       LD="${LD-ld} -melf32bmipn32"
3692       ;;
3693     *64-bit*)
3694       LD="${LD-ld} -melf64bmip"
3695       ;;
3696     esac
3697    else
3698     case `/usr/bin/file conftest.$ac_objext` in
3699     *32-bit*)
3700       LD="${LD-ld} -32"
3701       ;;
3702     *N32*)
3703       LD="${LD-ld} -n32"
3704       ;;
3705     *64-bit*)
3706       LD="${LD-ld} -64"
3707       ;;
3708     esac
3709    fi
3710   fi
3711   rm -rf conftest*
3712   ;;
3713
3714 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3715   # Find out which ABI we are using.
3716   echo 'int i;' > conftest.$ac_ext
3717   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718   (eval $ac_compile) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }; then
3722     case "`/usr/bin/file conftest.o`" in
3723     *32-bit*)
3724       case $host in
3725         x86_64-*linux*)
3726           LD="${LD-ld} -m elf_i386"
3727           ;;
3728         ppc64-*linux*|powerpc64-*linux*)
3729           LD="${LD-ld} -m elf32ppclinux"
3730           ;;
3731         s390x-*linux*)
3732           LD="${LD-ld} -m elf_s390"
3733           ;;
3734         sparc64-*linux*)
3735           LD="${LD-ld} -m elf32_sparc"
3736           ;;
3737       esac
3738       ;;
3739     *64-bit*)
3740       case $host in
3741         x86_64-*linux*)
3742           LD="${LD-ld} -m elf_x86_64"
3743           ;;
3744         ppc*-*linux*|powerpc*-*linux*)
3745           LD="${LD-ld} -m elf64ppc"
3746           ;;
3747         s390*-*linux*)
3748           LD="${LD-ld} -m elf64_s390"
3749           ;;
3750         sparc*-*linux*)
3751           LD="${LD-ld} -m elf64_sparc"
3752           ;;
3753       esac
3754       ;;
3755     esac
3756   fi
3757   rm -rf conftest*
3758   ;;
3759
3760 *-*-sco3.2v5*)
3761   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3762   SAVE_CFLAGS="$CFLAGS"
3763   CFLAGS="$CFLAGS -belf"
3764   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3765 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3766 if test "${lt_cv_cc_needs_belf+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   ac_ext=c
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774
3775      cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h.  */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h.  */
3781
3782 int
3783 main ()
3784 {
3785
3786   ;
3787   return 0;
3788 }
3789 _ACEOF
3790 rm -f conftest.$ac_objext conftest$ac_exeext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792   (eval $ac_link) 2>conftest.er1
3793   ac_status=$?
3794   grep -v '^ *+' conftest.er1 >conftest.err
3795   rm -f conftest.er1
3796   cat conftest.err >&5
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); } &&
3799          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801   (eval $ac_try) 2>&5
3802   ac_status=$?
3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804   (exit $ac_status); }; } &&
3805          { ac_try='test -s conftest$ac_exeext'
3806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807   (eval $ac_try) 2>&5
3808   ac_status=$?
3809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810   (exit $ac_status); }; }; then
3811   lt_cv_cc_needs_belf=yes
3812 else
3813   echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3815
3816 lt_cv_cc_needs_belf=no
3817 fi
3818 rm -f conftest.err conftest.$ac_objext \
3819       conftest$ac_exeext conftest.$ac_ext
3820      ac_ext=c
3821 ac_cpp='$CPP $CPPFLAGS'
3822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3825
3826 fi
3827 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3828 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3829   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3830     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3831     CFLAGS="$SAVE_CFLAGS"
3832   fi
3833   ;;
3834
3835 esac
3836
3837 need_locks="$enable_libtool_lock"
3838
3839
3840 ac_ext=c
3841 ac_cpp='$CPP $CPPFLAGS'
3842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3846 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3847 # On Suns, sometimes $CPP names a directory.
3848 if test -n "$CPP" && test -d "$CPP"; then
3849   CPP=
3850 fi
3851 if test -z "$CPP"; then
3852   if test "${ac_cv_prog_CPP+set}" = set; then
3853   echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855       # Double quotes because CPP needs to be expanded
3856     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3857     do
3858       ac_preproc_ok=false
3859 for ac_c_preproc_warn_flag in '' yes
3860 do
3861   # Use a header file that comes with gcc, so configuring glibc
3862   # with a fresh cross-compiler works.
3863   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3864   # <limits.h> exists even on freestanding compilers.
3865   # On the NeXT, cc -E runs the code through the compiler's parser,
3866   # not just through cpp. "Syntax error" is here to catch this case.
3867   cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h.  */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h.  */
3873 #ifdef __STDC__
3874 # include <limits.h>
3875 #else
3876 # include <assert.h>
3877 #endif
3878                      Syntax error
3879 _ACEOF
3880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3882   ac_status=$?
3883   grep -v '^ *+' conftest.er1 >conftest.err
3884   rm -f conftest.er1
3885   cat conftest.err >&5
3886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887   (exit $ac_status); } >/dev/null; then
3888   if test -s conftest.err; then
3889     ac_cpp_err=$ac_c_preproc_warn_flag
3890     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3891   else
3892     ac_cpp_err=
3893   fi
3894 else
3895   ac_cpp_err=yes
3896 fi
3897 if test -z "$ac_cpp_err"; then
3898   :
3899 else
3900   echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3902
3903   # Broken: fails on valid input.
3904 continue
3905 fi
3906 rm -f conftest.err conftest.$ac_ext
3907
3908   # OK, works on sane cases.  Now check whether non-existent headers
3909   # can be detected and how.
3910   cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h.  */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h.  */
3916 #include <ac_nonexistent.h>
3917 _ACEOF
3918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3919   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3920   ac_status=$?
3921   grep -v '^ *+' conftest.er1 >conftest.err
3922   rm -f conftest.er1
3923   cat conftest.err >&5
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); } >/dev/null; then
3926   if test -s conftest.err; then
3927     ac_cpp_err=$ac_c_preproc_warn_flag
3928     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3929   else
3930     ac_cpp_err=
3931   fi
3932 else
3933   ac_cpp_err=yes
3934 fi
3935 if test -z "$ac_cpp_err"; then
3936   # Broken: success on invalid input.
3937 continue
3938 else
3939   echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942   # Passes both tests.
3943 ac_preproc_ok=:
3944 break
3945 fi
3946 rm -f conftest.err conftest.$ac_ext
3947
3948 done
3949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3950 rm -f conftest.err conftest.$ac_ext
3951 if $ac_preproc_ok; then
3952   break
3953 fi
3954
3955     done
3956     ac_cv_prog_CPP=$CPP
3957
3958 fi
3959   CPP=$ac_cv_prog_CPP
3960 else
3961   ac_cv_prog_CPP=$CPP
3962 fi
3963 echo "$as_me:$LINENO: result: $CPP" >&5
3964 echo "${ECHO_T}$CPP" >&6
3965 ac_preproc_ok=false
3966 for ac_c_preproc_warn_flag in '' yes
3967 do
3968   # Use a header file that comes with gcc, so configuring glibc
3969   # with a fresh cross-compiler works.
3970   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3971   # <limits.h> exists even on freestanding compilers.
3972   # On the NeXT, cc -E runs the code through the compiler's parser,
3973   # not just through cpp. "Syntax error" is here to catch this case.
3974   cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h.  */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h.  */
3980 #ifdef __STDC__
3981 # include <limits.h>
3982 #else
3983 # include <assert.h>
3984 #endif
3985                      Syntax error
3986 _ACEOF
3987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3989   ac_status=$?
3990   grep -v '^ *+' conftest.er1 >conftest.err
3991   rm -f conftest.er1
3992   cat conftest.err >&5
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); } >/dev/null; then
3995   if test -s conftest.err; then
3996     ac_cpp_err=$ac_c_preproc_warn_flag
3997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3998   else
3999     ac_cpp_err=
4000   fi
4001 else
4002   ac_cpp_err=yes
4003 fi
4004 if test -z "$ac_cpp_err"; then
4005   :
4006 else
4007   echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4009
4010   # Broken: fails on valid input.
4011 continue
4012 fi
4013 rm -f conftest.err conftest.$ac_ext
4014
4015   # OK, works on sane cases.  Now check whether non-existent headers
4016   # can be detected and how.
4017   cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h.  */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h.  */
4023 #include <ac_nonexistent.h>
4024 _ACEOF
4025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4027   ac_status=$?
4028   grep -v '^ *+' conftest.er1 >conftest.err
4029   rm -f conftest.er1
4030   cat conftest.err >&5
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); } >/dev/null; then
4033   if test -s conftest.err; then
4034     ac_cpp_err=$ac_c_preproc_warn_flag
4035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4036   else
4037     ac_cpp_err=
4038   fi
4039 else
4040   ac_cpp_err=yes
4041 fi
4042 if test -z "$ac_cpp_err"; then
4043   # Broken: success on invalid input.
4044 continue
4045 else
4046   echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049   # Passes both tests.
4050 ac_preproc_ok=:
4051 break
4052 fi
4053 rm -f conftest.err conftest.$ac_ext
4054
4055 done
4056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4057 rm -f conftest.err conftest.$ac_ext
4058 if $ac_preproc_ok; then
4059   :
4060 else
4061   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4062 See \`config.log' for more details." >&5
4063 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4064 See \`config.log' for more details." >&2;}
4065    { (exit 1); exit 1; }; }
4066 fi
4067
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073
4074
4075 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4076 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4077 if test "${ac_cv_header_stdc+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h.  */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h.  */
4086 #include <stdlib.h>
4087 #include <stdarg.h>
4088 #include <string.h>
4089 #include <float.h>
4090
4091 int
4092 main ()
4093 {
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101   (eval $ac_compile) 2>conftest.er1
4102   ac_status=$?
4103   grep -v '^ *+' conftest.er1 >conftest.err
4104   rm -f conftest.er1
4105   cat conftest.err >&5
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); } &&
4108          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110   (eval $ac_try) 2>&5
4111   ac_status=$?
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); }; } &&
4114          { ac_try='test -s conftest.$ac_objext'
4115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116   (eval $ac_try) 2>&5
4117   ac_status=$?
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); }; }; then
4120   ac_cv_header_stdc=yes
4121 else
4122   echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4124
4125 ac_cv_header_stdc=no
4126 fi
4127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4128
4129 if test $ac_cv_header_stdc = yes; then
4130   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4131   cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137 #include <string.h>
4138
4139 _ACEOF
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141   $EGREP "memchr" >/dev/null 2>&1; then
4142   :
4143 else
4144   ac_cv_header_stdc=no
4145 fi
4146 rm -f conftest*
4147
4148 fi
4149
4150 if test $ac_cv_header_stdc = yes; then
4151   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152   cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h.  */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h.  */
4158 #include <stdlib.h>
4159
4160 _ACEOF
4161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4162   $EGREP "free" >/dev/null 2>&1; then
4163   :
4164 else
4165   ac_cv_header_stdc=no
4166 fi
4167 rm -f conftest*
4168
4169 fi
4170
4171 if test $ac_cv_header_stdc = yes; then
4172   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4173   if test "$cross_compiling" = yes; then
4174   :
4175 else
4176   cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h.  */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h.  */
4182 #include <ctype.h>
4183 #if ((' ' & 0x0FF) == 0x020)
4184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4186 #else
4187 # define ISLOWER(c) \
4188                    (('a' <= (c) && (c) <= 'i') \
4189                      || ('j' <= (c) && (c) <= 'r') \
4190                      || ('s' <= (c) && (c) <= 'z'))
4191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4192 #endif
4193
4194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4195 int
4196 main ()
4197 {
4198   int i;
4199   for (i = 0; i < 256; i++)
4200     if (XOR (islower (i), ISLOWER (i))
4201         || toupper (i) != TOUPPER (i))
4202       exit(2);
4203   exit (0);
4204 }
4205 _ACEOF
4206 rm -f conftest$ac_exeext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4208   (eval $ac_link) 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213   (eval $ac_try) 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }; }; then
4217   :
4218 else
4219   echo "$as_me: program exited with status $ac_status" >&5
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4222
4223 ( exit $ac_status )
4224 ac_cv_header_stdc=no
4225 fi
4226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4227 fi
4228 fi
4229 fi
4230 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4231 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4232 if test $ac_cv_header_stdc = yes; then
4233
4234 cat >>confdefs.h <<\_ACEOF
4235 #define STDC_HEADERS 1
4236 _ACEOF
4237
4238 fi
4239
4240 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4251                   inttypes.h stdint.h unistd.h
4252 do
4253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4254 echo "$as_me:$LINENO: checking for $ac_header" >&5
4255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4257   echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259   cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h.  */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h.  */
4265 $ac_includes_default
4266
4267 #include <$ac_header>
4268 _ACEOF
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271   (eval $ac_compile) 2>conftest.er1
4272   ac_status=$?
4273   grep -v '^ *+' conftest.er1 >conftest.err
4274   rm -f conftest.er1
4275   cat conftest.err >&5
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); } &&
4278          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280   (eval $ac_try) 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; } &&
4284          { ac_try='test -s conftest.$ac_objext'
4285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286   (eval $ac_try) 2>&5
4287   ac_status=$?
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); }; }; then
4290   eval "$as_ac_Header=yes"
4291 else
4292   echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 eval "$as_ac_Header=no"
4296 fi
4297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4298 fi
4299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302   cat >>confdefs.h <<_ACEOF
4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4304 _ACEOF
4305
4306 fi
4307
4308 done
4309
4310
4311
4312 for ac_header in dlfcn.h
4313 do
4314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4316   echo "$as_me:$LINENO: checking for $ac_header" >&5
4317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4319   echo $ECHO_N "(cached) $ECHO_C" >&6
4320 fi
4321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4323 else
4324   # Is the header compilable?
4325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h.  */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h.  */
4333 $ac_includes_default
4334 #include <$ac_header>
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338   (eval $ac_compile) 2>conftest.er1
4339   ac_status=$?
4340   grep -v '^ *+' conftest.er1 >conftest.err
4341   rm -f conftest.er1
4342   cat conftest.err >&5
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); } &&
4345          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347   (eval $ac_try) 2>&5
4348   ac_status=$?
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); }; } &&
4351          { ac_try='test -s conftest.$ac_objext'
4352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353   (eval $ac_try) 2>&5
4354   ac_status=$?
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); }; }; then
4357   ac_header_compiler=yes
4358 else
4359   echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362 ac_header_compiler=no
4363 fi
4364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4366 echo "${ECHO_T}$ac_header_compiler" >&6
4367
4368 # Is the header present?
4369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377 #include <$ac_header>
4378 _ACEOF
4379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } >/dev/null; then
4387   if test -s conftest.err; then
4388     ac_cpp_err=$ac_c_preproc_warn_flag
4389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4390   else
4391     ac_cpp_err=
4392   fi
4393 else
4394   ac_cpp_err=yes
4395 fi
4396 if test -z "$ac_cpp_err"; then
4397   ac_header_preproc=yes
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402   ac_header_preproc=no
4403 fi
4404 rm -f conftest.err conftest.$ac_ext
4405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4406 echo "${ECHO_T}$ac_header_preproc" >&6
4407
4408 # So?  What about this header?
4409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4410   yes:no: )
4411     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4415     ac_header_preproc=yes
4416     ;;
4417   no:yes:* )
4418     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4420     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4421 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4422     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4424     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4425 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4428     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4430     (
4431       cat <<\_ASBOX
4432 ## ----------------------------------------- ##
4433 ## Report this to martin.quinson@ens-lyon.fr ##
4434 ## ----------------------------------------- ##
4435 _ASBOX
4436     ) |
4437       sed "s/^/$as_me: WARNING:     /" >&2
4438     ;;
4439 esac
4440 echo "$as_me:$LINENO: checking for $ac_header" >&5
4441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   eval "$as_ac_Header=\$ac_header_preproc"
4446 fi
4447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4449
4450 fi
4451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4452   cat >>confdefs.h <<_ACEOF
4453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4454 _ACEOF
4455
4456 fi
4457
4458 done
4459
4460 ac_ext=cc
4461 ac_cpp='$CXXCPP $CPPFLAGS'
4462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4465 if test -n "$ac_tool_prefix"; then
4466   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4467   do
4468     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_prog_CXX+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   if test -n "$CXX"; then
4476   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483   for ac_exec_ext in '' $ac_executable_extensions; do
4484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490 done
4491
4492 fi
4493 fi
4494 CXX=$ac_cv_prog_CXX
4495 if test -n "$CXX"; then
4496   echo "$as_me:$LINENO: result: $CXX" >&5
4497 echo "${ECHO_T}$CXX" >&6
4498 else
4499   echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6
4501 fi
4502
4503     test -n "$CXX" && break
4504   done
4505 fi
4506 if test -z "$CXX"; then
4507   ac_ct_CXX=$CXX
4508   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4509 do
4510   # Extract the first word of "$ac_prog", so it can be a program name with args.
4511 set dummy $ac_prog; ac_word=$2
4512 echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4514 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   if test -n "$ac_ct_CXX"; then
4518   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523   IFS=$as_save_IFS
4524   test -z "$as_dir" && as_dir=.
4525   for ac_exec_ext in '' $ac_executable_extensions; do
4526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527     ac_cv_prog_ac_ct_CXX="$ac_prog"
4528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529     break 2
4530   fi
4531 done
4532 done
4533
4534 fi
4535 fi
4536 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4537 if test -n "$ac_ct_CXX"; then
4538   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4539 echo "${ECHO_T}$ac_ct_CXX" >&6
4540 else
4541   echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6
4543 fi
4544
4545   test -n "$ac_ct_CXX" && break
4546 done
4547 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4548
4549   CXX=$ac_ct_CXX
4550 fi
4551
4552
4553 # Provide some information about the compiler.
4554 echo "$as_me:$LINENO:" \
4555      "checking for C++ compiler version" >&5
4556 ac_compiler=`set X $ac_compile; echo $2`
4557 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4558   (eval $ac_compiler --version </dev/null >&5) 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); }
4562 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4563   (eval $ac_compiler -v </dev/null >&5) 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }
4567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4568   (eval $ac_compiler -V </dev/null >&5) 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); }
4572
4573 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4574 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h.  */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h.  */
4584
4585 int
4586 main ()
4587 {
4588 #ifndef __GNUC__
4589        choke me
4590 #endif
4591
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598   (eval $ac_compile) 2>conftest.er1
4599   ac_status=$?
4600   grep -v '^ *+' conftest.er1 >conftest.err
4601   rm -f conftest.er1
4602   cat conftest.err >&5
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); } &&
4605          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607   (eval $ac_try) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); }; } &&
4611          { ac_try='test -s conftest.$ac_objext'
4612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613   (eval $ac_try) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; }; then
4617   ac_compiler_gnu=yes
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ac_compiler_gnu=no
4623 fi
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4626
4627 fi
4628 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4629 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4630 GXX=`test $ac_compiler_gnu = yes && echo yes`
4631 ac_test_CXXFLAGS=${CXXFLAGS+set}
4632 ac_save_CXXFLAGS=$CXXFLAGS
4633 CXXFLAGS="-g"
4634 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4635 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4636 if test "${ac_cv_prog_cxx_g+set}" = set; then
4637   echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639   cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645
4646 int
4647 main ()
4648 {
4649
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 rm -f conftest.$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656   (eval $ac_compile) 2>conftest.er1
4657   ac_status=$?
4658   grep -v '^ *+' conftest.er1 >conftest.err
4659   rm -f conftest.er1
4660   cat conftest.err >&5
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } &&
4663          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665   (eval $ac_try) 2>&5
4666   ac_status=$?
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); }; } &&
4669          { ac_try='test -s conftest.$ac_objext'
4670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671   (eval $ac_try) 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); }; }; then
4675   ac_cv_prog_cxx_g=yes
4676 else
4677   echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4679
4680 ac_cv_prog_cxx_g=no
4681 fi
4682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683 fi
4684 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4685 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4686 if test "$ac_test_CXXFLAGS" = set; then
4687   CXXFLAGS=$ac_save_CXXFLAGS
4688 elif test $ac_cv_prog_cxx_g = yes; then
4689   if test "$GXX" = yes; then
4690     CXXFLAGS="-g -O2"
4691   else
4692     CXXFLAGS="-g"
4693   fi
4694 else
4695   if test "$GXX" = yes; then
4696     CXXFLAGS="-O2"
4697   else
4698     CXXFLAGS=
4699   fi
4700 fi
4701 for ac_declaration in \
4702    '' \
4703    'extern "C" void std::exit (int) throw (); using std::exit;' \
4704    'extern "C" void std::exit (int); using std::exit;' \
4705    'extern "C" void exit (int) throw ();' \
4706    'extern "C" void exit (int);' \
4707    'void exit (int);'
4708 do
4709   cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h.  */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h.  */
4715 $ac_declaration
4716 #include <stdlib.h>
4717 int
4718 main ()
4719 {
4720 exit (42);
4721   ;
4722   return 0;
4723 }
4724 _ACEOF
4725 rm -f conftest.$ac_objext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727   (eval $ac_compile) 2>conftest.er1
4728   ac_status=$?
4729   grep -v '^ *+' conftest.er1 >conftest.err
4730   rm -f conftest.er1
4731   cat conftest.err >&5
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); } &&
4734          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736   (eval $ac_try) 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); }; } &&
4740          { ac_try='test -s conftest.$ac_objext'
4741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742   (eval $ac_try) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); }; }; then
4746   :
4747 else
4748   echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 continue
4752 fi
4753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754   cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h.  */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h.  */
4760 $ac_declaration
4761 int
4762 main ()
4763 {
4764 exit (42);
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771   (eval $ac_compile) 2>conftest.er1
4772   ac_status=$?
4773   grep -v '^ *+' conftest.er1 >conftest.err
4774   rm -f conftest.er1
4775   cat conftest.err >&5
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); } &&
4778          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780   (eval $ac_try) 2>&5
4781   ac_status=$?
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); }; } &&
4784          { ac_try='test -s conftest.$ac_objext'
4785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786   (eval $ac_try) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; }; then
4790   break
4791 else
4792   echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4794
4795 fi
4796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4797 done
4798 rm -f conftest*
4799 if test -n "$ac_declaration"; then
4800   echo '#ifdef __cplusplus' >>confdefs.h
4801   echo $ac_declaration      >>confdefs.h
4802   echo '#endif'             >>confdefs.h
4803 fi
4804
4805 ac_ext=cc
4806 ac_cpp='$CXXCPP $CPPFLAGS'
4807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4810
4811 depcc="$CXX"  am_compiler_list=
4812
4813 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4814 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4815 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4816   echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4819   # We make a subdir and do the tests there.  Otherwise we can end up
4820   # making bogus files that we don't know about and never remove.  For
4821   # instance it was reported that on HP-UX the gcc test will end up
4822   # making a dummy file named `D' -- because `-MD' means `put the output
4823   # in D'.
4824   mkdir conftest.dir
4825   # Copy depcomp to subdir because otherwise we won't find it if we're
4826   # using a relative directory.
4827   cp "$am_depcomp" conftest.dir
4828   cd conftest.dir
4829   # We will build objects and dependencies in a subdirectory because
4830   # it helps to detect inapplicable dependency modes.  For instance
4831   # both Tru64's cc and ICC support -MD to output dependencies as a
4832   # side effect of compilation, but ICC will put the dependencies in
4833   # the current directory while Tru64 will put them in the object
4834   # directory.
4835   mkdir sub
4836
4837   am_cv_CXX_dependencies_compiler_type=none
4838   if test "$am_compiler_list" = ""; then
4839      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4840   fi
4841   for depmode in $am_compiler_list; do
4842     # Setup a source with many dependencies, because some compilers
4843     # like to wrap large dependency lists on column 80 (with \), and
4844     # we should not choose a depcomp mode which is confused by this.
4845     #
4846     # We need to recreate these files for each test, as the compiler may
4847     # overwrite some of them when testing with obscure command lines.
4848     # This happens at least with the AIX C compiler.
4849     : > sub/conftest.c
4850     for i in 1 2 3 4 5 6; do
4851       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4852       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4853       # Solaris 8's {/usr,}/bin/sh.
4854       touch sub/conftst$i.h
4855     done
4856     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4857
4858     case $depmode in
4859     nosideeffect)
4860       # after this tag, mechanisms are not by side-effect, so they'll
4861       # only be used when explicitly requested
4862       if test "x$enable_dependency_tracking" = xyes; then
4863         continue
4864       else
4865         break
4866       fi
4867       ;;
4868     none) break ;;
4869     esac
4870     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4871     # mode.  It turns out that the SunPro C++ compiler does not properly
4872     # handle `-M -o', and we need to detect this.
4873     if depmode=$depmode \
4874        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4875        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4876        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4877          >/dev/null 2>conftest.err &&
4878        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4879        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4880        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4881       # icc doesn't choke on unknown options, it will just issue warnings
4882       # or remarks (even with -Werror).  So we grep stderr for any message
4883       # that says an option was ignored or not supported.
4884       # When given -MP, icc 7.0 and 7.1 complain thusly:
4885       #   icc: Command line warning: ignoring option '-M'; no argument required
4886       # The diagnosis changed in icc 8.0:
4887       #   icc: Command line remark: option '-MP' not supported
4888       if (grep 'ignoring option' conftest.err ||
4889           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4890         am_cv_CXX_dependencies_compiler_type=$depmode
4891         break
4892       fi
4893     fi
4894   done
4895
4896   cd ..
4897   rm -rf conftest.dir
4898 else
4899   am_cv_CXX_dependencies_compiler_type=none
4900 fi
4901
4902 fi
4903 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4904 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4905 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4906
4907
4908
4909 if
4910   test "x$enable_dependency_tracking" != xno \
4911   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4912   am__fastdepCXX_TRUE=
4913   am__fastdepCXX_FALSE='#'
4914 else
4915   am__fastdepCXX_TRUE='#'
4916   am__fastdepCXX_FALSE=
4917 fi
4918
4919
4920 ac_ext=cc
4921 ac_cpp='$CXXCPP $CPPFLAGS'
4922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4925 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4926 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4927 if test -z "$CXXCPP"; then
4928   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931       # Double quotes because CXXCPP needs to be expanded
4932     for CXXCPP in "$CXX -E" "/lib/cpp"
4933     do
4934       ac_preproc_ok=false
4935 for ac_cxx_preproc_warn_flag in '' yes
4936 do
4937   # Use a header file that comes with gcc, so configuring glibc
4938   # with a fresh cross-compiler works.
4939   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4940   # <limits.h> exists even on freestanding compilers.
4941   # On the NeXT, cc -E runs the code through the compiler's parser,
4942   # not just through cpp. "Syntax error" is here to catch this case.
4943   cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h.  */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h.  */
4949 #ifdef __STDC__
4950 # include <limits.h>
4951 #else
4952 # include <assert.h>
4953 #endif
4954                      Syntax error
4955 _ACEOF
4956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4958   ac_status=$?
4959   grep -v '^ *+' conftest.er1 >conftest.err
4960   rm -f conftest.er1
4961   cat conftest.err >&5
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); } >/dev/null; then
4964   if test -s conftest.err; then
4965     ac_cpp_err=$ac_cxx_preproc_warn_flag
4966     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4967   else
4968     ac_cpp_err=
4969   fi
4970 else
4971   ac_cpp_err=yes
4972 fi
4973 if test -z "$ac_cpp_err"; then
4974   :
4975 else
4976   echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979   # Broken: fails on valid input.
4980 continue
4981 fi
4982 rm -f conftest.err conftest.$ac_ext
4983
4984   # OK, works on sane cases.  Now check whether non-existent headers
4985   # can be detected and how.
4986   cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h.  */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h.  */
4992 #include <ac_nonexistent.h>
4993 _ACEOF
4994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4996   ac_status=$?
4997   grep -v '^ *+' conftest.er1 >conftest.err
4998   rm -f conftest.er1
4999   cat conftest.err >&5
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); } >/dev/null; then
5002   if test -s conftest.err; then
5003     ac_cpp_err=$ac_cxx_preproc_warn_flag
5004     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5005   else
5006     ac_cpp_err=
5007   fi
5008 else
5009   ac_cpp_err=yes
5010 fi
5011 if test -z "$ac_cpp_err"; then
5012   # Broken: success on invalid input.
5013 continue
5014 else
5015   echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5017
5018   # Passes both tests.
5019 ac_preproc_ok=:
5020 break
5021 fi
5022 rm -f conftest.err conftest.$ac_ext
5023
5024 done
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.err conftest.$ac_ext
5027 if $ac_preproc_ok; then
5028   break
5029 fi
5030
5031     done
5032     ac_cv_prog_CXXCPP=$CXXCPP
5033
5034 fi
5035   CXXCPP=$ac_cv_prog_CXXCPP
5036 else
5037   ac_cv_prog_CXXCPP=$CXXCPP
5038 fi
5039 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5040 echo "${ECHO_T}$CXXCPP" >&6
5041 ac_preproc_ok=false
5042 for ac_cxx_preproc_warn_flag in '' yes
5043 do
5044   # Use a header file that comes with gcc, so configuring glibc
5045   # with a fresh cross-compiler works.
5046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047   # <limits.h> exists even on freestanding compilers.
5048   # On the NeXT, cc -E runs the code through the compiler's parser,
5049   # not just through cpp. "Syntax error" is here to catch this case.
5050   cat >conftest.$ac_ext <<_ACEOF
5051 /* confdefs.h.  */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h.  */
5056 #ifdef __STDC__
5057 # include <limits.h>
5058 #else
5059 # include <assert.h>
5060 #endif
5061                      Syntax error
5062 _ACEOF
5063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5065   ac_status=$?
5066   grep -v '^ *+' conftest.er1 >conftest.err
5067   rm -f conftest.er1
5068   cat conftest.err >&5
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); } >/dev/null; then
5071   if test -s conftest.err; then
5072     ac_cpp_err=$ac_cxx_preproc_warn_flag
5073     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5074   else
5075     ac_cpp_err=
5076   fi
5077 else
5078   ac_cpp_err=yes
5079 fi
5080 if test -z "$ac_cpp_err"; then
5081   :
5082 else
5083   echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5085
5086   # Broken: fails on valid input.
5087 continue
5088 fi
5089 rm -f conftest.err conftest.$ac_ext
5090
5091   # OK, works on sane cases.  Now check whether non-existent headers
5092   # can be detected and how.
5093   cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h.  */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h.  */
5099 #include <ac_nonexistent.h>
5100 _ACEOF
5101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5103   ac_status=$?
5104   grep -v '^ *+' conftest.er1 >conftest.err
5105   rm -f conftest.er1
5106   cat conftest.err >&5
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); } >/dev/null; then
5109   if test -s conftest.err; then
5110     ac_cpp_err=$ac_cxx_preproc_warn_flag
5111     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5112   else
5113     ac_cpp_err=
5114   fi
5115 else
5116   ac_cpp_err=yes
5117 fi
5118 if test -z "$ac_cpp_err"; then
5119   # Broken: success on invalid input.
5120 continue
5121 else
5122   echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5124
5125   # Passes both tests.
5126 ac_preproc_ok=:
5127 break
5128 fi
5129 rm -f conftest.err conftest.$ac_ext
5130
5131 done
5132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5133 rm -f conftest.err conftest.$ac_ext
5134 if $ac_preproc_ok; then
5135   :
5136 else
5137   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5138 See \`config.log' for more details." >&5
5139 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5140 See \`config.log' for more details." >&2;}
5141    { (exit 1); exit 1; }; }
5142 fi
5143
5144 ac_ext=cc
5145 ac_cpp='$CXXCPP $CPPFLAGS'
5146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5149
5150
5151 ac_ext=f
5152 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5153 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5155 if test -n "$ac_tool_prefix"; then
5156   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5157   do
5158     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_F77+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   if test -n "$F77"; then
5166   ac_cv_prog_F77="$F77" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173   for ac_exec_ext in '' $ac_executable_extensions; do
5174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177     break 2
5178   fi
5179 done
5180 done
5181
5182 fi
5183 fi
5184 F77=$ac_cv_prog_F77
5185 if test -n "$F77"; then
5186   echo "$as_me:$LINENO: result: $F77" >&5
5187 echo "${ECHO_T}$F77" >&6
5188 else
5189   echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5191 fi
5192
5193     test -n "$F77" && break
5194   done
5195 fi
5196 if test -z "$F77"; then
5197   ac_ct_F77=$F77
5198   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5199 do
5200   # Extract the first word of "$ac_prog", so it can be a program name with args.
5201 set dummy $ac_prog; ac_word=$2
5202 echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5205   echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207   if test -n "$ac_ct_F77"; then
5208   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213   IFS=$as_save_IFS
5214   test -z "$as_dir" && as_dir=.
5215   for ac_exec_ext in '' $ac_executable_extensions; do
5216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217     ac_cv_prog_ac_ct_F77="$ac_prog"
5218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219     break 2
5220   fi
5221 done
5222 done
5223
5224 fi
5225 fi
5226 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5227 if test -n "$ac_ct_F77"; then
5228   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5229 echo "${ECHO_T}$ac_ct_F77" >&6
5230 else
5231   echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6
5233 fi
5234
5235   test -n "$ac_ct_F77" && break
5236 done
5237
5238   F77=$ac_ct_F77
5239 fi
5240
5241
5242 # Provide some information about the compiler.
5243 echo "$as_me:5243:" \
5244      "checking for Fortran 77 compiler version" >&5
5245 ac_compiler=`set X $ac_compile; echo $2`
5246 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5247   (eval $ac_compiler --version </dev/null >&5) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); }
5251 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5252   (eval $ac_compiler -v </dev/null >&5) 2>&5
5253   ac_status=$?
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); }
5256 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5257   (eval $ac_compiler -V </dev/null >&5) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }
5261 rm -f a.out
5262
5263 # If we don't use `.F' as extension, the preprocessor is not run on the
5264 # input file.  (Note that this only needs to work for GNU compilers.)
5265 ac_save_ext=$ac_ext
5266 ac_ext=F
5267 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5268 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5269 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5270   echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272   cat >conftest.$ac_ext <<_ACEOF
5273       program main
5274 #ifndef __GNUC__
5275        choke me
5276 #endif
5277
5278       end
5279 _ACEOF
5280 rm -f conftest.$ac_objext
5281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282   (eval $ac_compile) 2>conftest.er1
5283   ac_status=$?
5284   grep -v '^ *+' conftest.er1 >conftest.err
5285   rm -f conftest.er1
5286   cat conftest.err >&5
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); } &&
5289          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291   (eval $ac_try) 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); }; } &&
5295          { ac_try='test -s conftest.$ac_objext'
5296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297   (eval $ac_try) 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }; }; then
5301   ac_compiler_gnu=yes
5302 else
5303   echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306 ac_compiler_gnu=no
5307 fi
5308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5309 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5310
5311 fi
5312 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5313 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5314 ac_ext=$ac_save_ext
5315 ac_test_FFLAGS=${FFLAGS+set}
5316 ac_save_FFLAGS=$FFLAGS
5317 FFLAGS=
5318 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5319 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5320 if test "${ac_cv_prog_f77_g+set}" = set; then
5321   echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323   FFLAGS=-g
5324 cat >conftest.$ac_ext <<_ACEOF
5325       program main
5326
5327       end
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331   (eval $ac_compile) 2>conftest.er1
5332   ac_status=$?
5333   grep -v '^ *+' conftest.er1 >conftest.err
5334   rm -f conftest.er1
5335   cat conftest.err >&5
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } &&
5338          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; } &&
5344          { ac_try='test -s conftest.$ac_objext'
5345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346   (eval $ac_try) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); }; }; then
5350   ac_cv_prog_f77_g=yes
5351 else
5352   echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5354
5355 ac_cv_prog_f77_g=no
5356 fi
5357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5358
5359 fi
5360 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5361 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5362 if test "$ac_test_FFLAGS" = set; then
5363   FFLAGS=$ac_save_FFLAGS
5364 elif test $ac_cv_prog_f77_g = yes; then
5365   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5366     FFLAGS="-g -O2"
5367   else
5368     FFLAGS="-g"
5369   fi
5370 else
5371   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5372     FFLAGS="-O2"
5373   else
5374     FFLAGS=
5375   fi
5376 fi
5377
5378 G77=`test $ac_compiler_gnu = yes && echo yes`
5379 ac_ext=c
5380 ac_cpp='$CPP $CPPFLAGS'
5381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5384
5385
5386
5387 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5388
5389 # find the maximum length of command line arguments
5390 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5391 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5392 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5393   echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395     i=0
5396   teststring="ABCD"
5397
5398   case $build_os in
5399   msdosdjgpp*)
5400     # On DJGPP, this test can blow up pretty badly due to problems in libc
5401     # (any single argument exceeding 2000 bytes causes a buffer overrun
5402     # during glob expansion).  Even if it were fixed, the result of this
5403     # check would be larger than it should be.
5404     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5405     ;;
5406
5407   gnu*)
5408     # Under GNU Hurd, this test is not required because there is
5409     # no limit to the length of command line arguments.
5410     # Libtool will interpret -1 as no limit whatsoever
5411     lt_cv_sys_max_cmd_len=-1;
5412     ;;
5413
5414   cygwin* | mingw*)
5415     # On Win9x/ME, this test blows up -- it succeeds, but takes
5416     # about 5 minutes as the teststring grows exponentially.
5417     # Worse, since 9x/ME are not pre-emptively multitasking,
5418     # you end up with a "frozen" computer, even though with patience
5419     # the test eventually succeeds (with a max line length of 256k).
5420     # Instead, let's just punt: use the minimum linelength reported by
5421     # all of the supported platforms: 8192 (on NT/2K/XP).
5422     lt_cv_sys_max_cmd_len=8192;
5423     ;;
5424
5425   amigaos*)
5426     # On AmigaOS with pdksh, this test takes hours, literally.
5427     # So we just punt and use a minimum line length of 8192.
5428     lt_cv_sys_max_cmd_len=8192;
5429     ;;
5430
5431  *)
5432     # If test is not a shell built-in, we'll probably end up computing a
5433     # maximum length that is only half of the actual maximum length, but
5434     # we can't tell.
5435     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5436                = "XX$teststring") >/dev/null 2>&1 &&
5437             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5438             lt_cv_sys_max_cmd_len=$new_result &&
5439             test $i != 17 # 1/2 MB should be enough
5440     do
5441       i=`expr $i + 1`
5442       teststring=$teststring$teststring
5443     done
5444     teststring=
5445     # Add a significant safety factor because C++ compilers can tack on massive
5446     # amounts of additional arguments before passing them to the linker.
5447     # It appears as though 1/2 is a usable value.
5448     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5449     ;;
5450   esac
5451
5452 fi
5453
5454 if test -n $lt_cv_sys_max_cmd_len ; then
5455   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5456 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5457 else
5458   echo "$as_me:$LINENO: result: none" >&5
5459 echo "${ECHO_T}none" >&6
5460 fi
5461
5462
5463
5464
5465 # Check for command to grab the raw symbol name followed by C symbol from nm.
5466 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5467 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5468 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471
5472 # These are sane defaults that work on at least a few old systems.
5473 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5474
5475 # Character class describing NM global symbol codes.
5476 symcode='[BCDEGRST]'
5477
5478 # Regexp to match symbols that can be accessed directly from C.
5479 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5480
5481 # Transform the above into a raw symbol and a C symbol.
5482 symxfrm='\1 \2\3 \3'
5483
5484 # Transform an extracted symbol line into a proper C declaration
5485 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5486
5487 # Transform an extracted symbol line into symbol name and symbol address
5488 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'"
5489
5490 # Define system-specific variables.
5491 case $host_os in
5492 aix*)
5493   symcode='[BCDT]'
5494   ;;
5495 cygwin* | mingw* | pw32*)
5496   symcode='[ABCDGISTW]'
5497   ;;
5498 hpux*) # Its linker distinguishes data from code symbols
5499   if test "$host_cpu" = ia64; then
5500     symcode='[ABCDEGRST]'
5501   fi
5502   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5503   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'"
5504   ;;
5505 irix* | nonstopux*)
5506   symcode='[BCDEGRST]'
5507   ;;
5508 osf*)
5509   symcode='[BCDEGQRST]'
5510   ;;
5511 solaris* | sysv5*)
5512   symcode='[BDRT]'
5513   ;;
5514 sysv4)
5515   symcode='[DFNSTU]'
5516   ;;
5517 esac
5518
5519 # Handle CRLF in mingw tool chain
5520 opt_cr=
5521 case $build_os in
5522 mingw*)
5523   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5524   ;;
5525 esac
5526
5527 # If we're using GNU nm, then use its standard symbol codes.
5528 case `$NM -V 2>&1` in
5529 *GNU* | *'with BFD'*)
5530   symcode='[ABCDGIRSTW]' ;;
5531 esac
5532
5533 # Try without a prefix undercore, then with it.
5534 for ac_symprfx in "" "_"; do
5535
5536   # Write the raw and C identifiers.
5537   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5538
5539   # Check to see that the pipe works correctly.
5540   pipe_works=no
5541
5542   rm -f conftest*
5543   cat > conftest.$ac_ext <<EOF
5544 #ifdef __cplusplus
5545 extern "C" {
5546 #endif
5547 char nm_test_var;
5548 void nm_test_func(){}
5549 #ifdef __cplusplus
5550 }
5551 #endif
5552 int main(){nm_test_var='a';nm_test_func();return(0);}
5553 EOF
5554
5555   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5556   (eval $ac_compile) 2>&5
5557   ac_status=$?
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); }; then
5560     # Now try to grab the symbols.
5561     nlist=conftest.nm
5562     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5563   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5564   ac_status=$?
5565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566   (exit $ac_status); } && test -s "$nlist"; then
5567       # Try sorting and uniquifying the output.
5568       if sort "$nlist" | uniq > "$nlist"T; then
5569         mv -f "$nlist"T "$nlist"
5570       else
5571         rm -f "$nlist"T
5572       fi
5573
5574       # Make sure that we snagged all the symbols we need.
5575       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5576         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5577           cat <<EOF > conftest.$ac_ext
5578 #ifdef __cplusplus
5579 extern "C" {
5580 #endif
5581
5582 EOF
5583           # Now generate the symbol file.
5584           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5585
5586           cat <<EOF >> conftest.$ac_ext
5587 #if defined (__STDC__) && __STDC__
5588 # define lt_ptr_t void *
5589 #else
5590 # define lt_ptr_t char *
5591 # define const
5592 #endif
5593
5594 /* The mapping between symbol names and symbols. */
5595 const struct {
5596   const char *name;
5597   lt_ptr_t address;
5598 }
5599 lt_preloaded_symbols[] =
5600 {
5601 EOF
5602           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5603           cat <<\EOF >> conftest.$ac_ext
5604   {0, (lt_ptr_t) 0}
5605 };
5606
5607 #ifdef __cplusplus
5608 }
5609 #endif
5610 EOF
5611           # Now try linking the two files.
5612           mv conftest.$ac_objext conftstm.$ac_objext
5613           lt_save_LIBS="$LIBS"
5614           lt_save_CFLAGS="$CFLAGS"
5615           LIBS="conftstm.$ac_objext"
5616           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5617           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618   (eval $ac_link) 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5622             pipe_works=yes
5623           fi
5624           LIBS="$lt_save_LIBS"
5625           CFLAGS="$lt_save_CFLAGS"
5626         else
5627           echo "cannot find nm_test_func in $nlist" >&5
5628         fi
5629       else
5630         echo "cannot find nm_test_var in $nlist" >&5
5631       fi
5632     else
5633       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5634     fi
5635   else
5636     echo "$progname: failed program was:" >&5
5637     cat conftest.$ac_ext >&5
5638   fi
5639   rm -f conftest* conftst*
5640
5641   # Do not use the global_symbol_pipe unless it works.
5642   if test "$pipe_works" = yes; then
5643     break
5644   else
5645     lt_cv_sys_global_symbol_pipe=
5646   fi
5647 done
5648
5649 fi
5650
5651 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5652   lt_cv_sys_global_symbol_to_cdecl=
5653 fi
5654 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5655   echo "$as_me:$LINENO: result: failed" >&5
5656 echo "${ECHO_T}failed" >&6
5657 else
5658   echo "$as_me:$LINENO: result: ok" >&5
5659 echo "${ECHO_T}ok" >&6
5660 fi
5661
5662 echo "$as_me:$LINENO: checking for objdir" >&5
5663 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5664 if test "${lt_cv_objdir+set}" = set; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667   rm -f .libs 2>/dev/null
5668 mkdir .libs 2>/dev/null
5669 if test -d .libs; then
5670   lt_cv_objdir=.libs
5671 else
5672   # MS-DOS does not allow filenames that begin with a dot.
5673   lt_cv_objdir=_libs
5674 fi
5675 rmdir .libs 2>/dev/null
5676 fi
5677 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5678 echo "${ECHO_T}$lt_cv_objdir" >&6
5679 objdir=$lt_cv_objdir
5680
5681
5682
5683
5684
5685 case $host_os in
5686 aix3*)
5687   # AIX sometimes has problems with the GCC collect2 program.  For some
5688   # reason, if we set the COLLECT_NAMES environment variable, the problems
5689   # vanish in a puff of smoke.
5690   if test "X${COLLECT_NAMES+set}" != Xset; then
5691     COLLECT_NAMES=
5692     export COLLECT_NAMES
5693   fi
5694   ;;
5695 esac
5696
5697 # Sed substitution that helps us do robust quoting.  It backslashifies
5698 # metacharacters that are still active within double-quoted strings.
5699 Xsed='sed -e s/^X//'
5700 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5701
5702 # Same as above, but do not quote variable references.
5703 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5704
5705 # Sed substitution to delay expansion of an escaped shell variable in a
5706 # double_quote_subst'ed string.
5707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5708
5709 # Sed substitution to avoid accidental globbing in evaled expressions
5710 no_glob_subst='s/\*/\\\*/g'
5711
5712 # Constants:
5713 rm="rm -f"
5714
5715 # Global variables:
5716 default_ofile=libtool
5717 can_build_shared=yes
5718
5719 # All known linkers require a `.a' archive for static linking (except M$VC,
5720 # which needs '.lib').
5721 libext=a
5722 ltmain="$ac_aux_dir/ltmain.sh"
5723 ofile="$default_ofile"
5724 with_gnu_ld="$lt_cv_prog_gnu_ld"
5725
5726 if test -n "$ac_tool_prefix"; then
5727   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}ar; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_AR+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   if test -n "$AR"; then
5735   ac_cv_prog_AR="$AR" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742   for ac_exec_ext in '' $ac_executable_extensions; do
5743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744     ac_cv_prog_AR="${ac_tool_prefix}ar"
5745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749 done
5750
5751 fi
5752 fi
5753 AR=$ac_cv_prog_AR
5754 if test -n "$AR"; then
5755   echo "$as_me:$LINENO: result: $AR" >&5
5756 echo "${ECHO_T}$AR" >&6
5757 else
5758   echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5760 fi
5761
5762 fi
5763 if test -z "$ac_cv_prog_AR"; then
5764   ac_ct_AR=$AR
5765   # Extract the first word of "ar", so it can be a program name with args.
5766 set dummy ar; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5770   echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772   if test -n "$ac_ct_AR"; then
5773   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780   for ac_exec_ext in '' $ac_executable_extensions; do
5781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782     ac_cv_prog_ac_ct_AR="ar"
5783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787 done
5788
5789   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5790 fi
5791 fi
5792 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5793 if test -n "$ac_ct_AR"; then
5794   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5795 echo "${ECHO_T}$ac_ct_AR" >&6
5796 else
5797   echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5799 fi
5800
5801   AR=$ac_ct_AR
5802 else
5803   AR="$ac_cv_prog_AR"
5804 fi
5805
5806 if test -n "$ac_tool_prefix"; then
5807   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5809 echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5811 if test "${ac_cv_prog_RANLIB+set}" = set; then
5812   echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814   if test -n "$RANLIB"; then
5815   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822   for ac_exec_ext in '' $ac_executable_extensions; do
5823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826     break 2
5827   fi
5828 done
5829 done
5830
5831 fi
5832 fi
5833 RANLIB=$ac_cv_prog_RANLIB
5834 if test -n "$RANLIB"; then
5835   echo "$as_me:$LINENO: result: $RANLIB" >&5
5836 echo "${ECHO_T}$RANLIB" >&6
5837 else
5838   echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6
5840 fi
5841
5842 fi
5843 if test -z "$ac_cv_prog_RANLIB"; then
5844   ac_ct_RANLIB=$RANLIB
5845   # Extract the first word of "ranlib", so it can be a program name with args.
5846 set dummy ranlib; ac_word=$2
5847 echo "$as_me:$LINENO: checking for $ac_word" >&5
5848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5850   echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852   if test -n "$ac_ct_RANLIB"; then
5853   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860   for ac_exec_ext in '' $ac_executable_extensions; do
5861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862     ac_cv_prog_ac_ct_RANLIB="ranlib"
5863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5864     break 2
5865   fi
5866 done
5867 done
5868
5869   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5870 fi
5871 fi
5872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5873 if test -n "$ac_ct_RANLIB"; then
5874   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5875 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5876 else
5877   echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6
5879 fi
5880
5881   RANLIB=$ac_ct_RANLIB
5882 else
5883   RANLIB="$ac_cv_prog_RANLIB"
5884 fi
5885
5886 if test -n "$ac_tool_prefix"; then
5887   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}strip; ac_word=$2
5889 echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891 if test "${ac_cv_prog_STRIP+set}" = set; then
5892   echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894   if test -n "$STRIP"; then
5895   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900   IFS=$as_save_IFS
5901   test -z "$as_dir" && as_dir=.
5902   for ac_exec_ext in '' $ac_executable_extensions; do
5903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906     break 2
5907   fi
5908 done
5909 done
5910
5911 fi
5912 fi
5913 STRIP=$ac_cv_prog_STRIP
5914 if test -n "$STRIP"; then
5915   echo "$as_me:$LINENO: result: $STRIP" >&5
5916 echo "${ECHO_T}$STRIP" >&6
5917 else
5918   echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5920 fi
5921
5922 fi
5923 if test -z "$ac_cv_prog_STRIP"; then
5924   ac_ct_STRIP=$STRIP
5925   # Extract the first word of "strip", so it can be a program name with args.
5926 set dummy strip; ac_word=$2
5927 echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5929 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   if test -n "$ac_ct_STRIP"; then
5933   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940   for ac_exec_ext in '' $ac_executable_extensions; do
5941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942     ac_cv_prog_ac_ct_STRIP="strip"
5943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947 done
5948
5949   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5950 fi
5951 fi
5952 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5953 if test -n "$ac_ct_STRIP"; then
5954   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5955 echo "${ECHO_T}$ac_ct_STRIP" >&6
5956 else
5957   echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6
5959 fi
5960
5961   STRIP=$ac_ct_STRIP
5962 else
5963   STRIP="$ac_cv_prog_STRIP"
5964 fi
5965
5966
5967 old_CC="$CC"
5968 old_CFLAGS="$CFLAGS"
5969
5970 # Set sane defaults for various variables
5971 test -z "$AR" && AR=ar
5972 test -z "$AR_FLAGS" && AR_FLAGS=cru
5973 test -z "$AS" && AS=as
5974 test -z "$CC" && CC=cc
5975 test -z "$LTCC" && LTCC=$CC
5976 test -z "$DLLTOOL" && DLLTOOL=dlltool
5977 test -z "$LD" && LD=ld
5978 test -z "$LN_S" && LN_S="ln -s"
5979 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5980 test -z "$NM" && NM=nm
5981 test -z "$SED" && SED=sed
5982 test -z "$OBJDUMP" && OBJDUMP=objdump
5983 test -z "$RANLIB" && RANLIB=:
5984 test -z "$STRIP" && STRIP=:
5985 test -z "$ac_objext" && ac_objext=o
5986
5987 # Determine commands to create old-style static archives.
5988 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5989 old_postinstall_cmds='chmod 644 $oldlib'
5990 old_postuninstall_cmds=
5991
5992 if test -n "$RANLIB"; then
5993   case $host_os in
5994   openbsd*)
5995     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5996     ;;
5997   *)
5998     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5999     ;;
6000   esac
6001   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6002 fi
6003
6004 # Only perform the check for file, if the check method requires it
6005 case $deplibs_check_method in
6006 file_magic*)
6007   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6008     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6009 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6010 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   case $MAGIC_CMD in
6014 [\\/*] |  ?:[\\/]*)
6015   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6016   ;;
6017 *)
6018   lt_save_MAGIC_CMD="$MAGIC_CMD"
6019   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6020   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6021   for ac_dir in $ac_dummy; do
6022     IFS="$lt_save_ifs"
6023     test -z "$ac_dir" && ac_dir=.
6024     if test -f $ac_dir/${ac_tool_prefix}file; then
6025       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6026       if test -n "$file_magic_test_file"; then
6027         case $deplibs_check_method in
6028         "file_magic "*)
6029           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6030           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6031           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6032             $EGREP "$file_magic_regex" > /dev/null; then
6033             :
6034           else
6035             cat <<EOF 1>&2
6036
6037 *** Warning: the command libtool uses to detect shared libraries,
6038 *** $file_magic_cmd, produces output that libtool cannot recognize.
6039 *** The result is that libtool may fail to recognize shared libraries
6040 *** as such.  This will affect the creation of libtool libraries that
6041 *** depend on shared libraries, but programs linked with such libtool
6042 *** libraries will work regardless of this problem.  Nevertheless, you
6043 *** may want to report the problem to your system manager and/or to
6044 *** bug-libtool@gnu.org
6045
6046 EOF
6047           fi ;;
6048         esac
6049       fi
6050       break
6051     fi
6052   done
6053   IFS="$lt_save_ifs"
6054   MAGIC_CMD="$lt_save_MAGIC_CMD"
6055   ;;
6056 esac
6057 fi
6058
6059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6060 if test -n "$MAGIC_CMD"; then
6061   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6062 echo "${ECHO_T}$MAGIC_CMD" >&6
6063 else
6064   echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6
6066 fi
6067
6068 if test -z "$lt_cv_path_MAGIC_CMD"; then
6069   if test -n "$ac_tool_prefix"; then
6070     echo "$as_me:$LINENO: checking for file" >&5
6071 echo $ECHO_N "checking for file... $ECHO_C" >&6
6072 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6073   echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075   case $MAGIC_CMD in
6076 [\\/*] |  ?:[\\/]*)
6077   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6078   ;;
6079 *)
6080   lt_save_MAGIC_CMD="$MAGIC_CMD"
6081   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6082   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6083   for ac_dir in $ac_dummy; do
6084     IFS="$lt_save_ifs"
6085     test -z "$ac_dir" && ac_dir=.
6086     if test -f $ac_dir/file; then
6087       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6088       if test -n "$file_magic_test_file"; then
6089         case $deplibs_check_method in
6090         "file_magic "*)
6091           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6092           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6093           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6094             $EGREP "$file_magic_regex" > /dev/null; then
6095             :
6096           else
6097             cat <<EOF 1>&2
6098
6099 *** Warning: the command libtool uses to detect shared libraries,
6100 *** $file_magic_cmd, produces output that libtool cannot recognize.
6101 *** The result is that libtool may fail to recognize shared libraries
6102 *** as such.  This will affect the creation of libtool libraries that
6103 *** depend on shared libraries, but programs linked with such libtool
6104 *** libraries will work regardless of this problem.  Nevertheless, you
6105 *** may want to report the problem to your system manager and/or to
6106 *** bug-libtool@gnu.org
6107
6108 EOF
6109           fi ;;
6110         esac
6111       fi
6112       break
6113     fi
6114   done
6115   IFS="$lt_save_ifs"
6116   MAGIC_CMD="$lt_save_MAGIC_CMD"
6117   ;;
6118 esac
6119 fi
6120
6121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6122 if test -n "$MAGIC_CMD"; then
6123   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6124 echo "${ECHO_T}$MAGIC_CMD" >&6
6125 else
6126   echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6
6128 fi
6129
6130   else
6131     MAGIC_CMD=:
6132   fi
6133 fi
6134
6135   fi
6136   ;;
6137 esac
6138
6139 enable_dlopen=no
6140 enable_win32_dll=no
6141
6142 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6143 if test "${enable_libtool_lock+set}" = set; then
6144   enableval="$enable_libtool_lock"
6145
6146 fi;
6147 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6148
6149
6150 # Check whether --with-pic or --without-pic was given.
6151 if test "${with_pic+set}" = set; then
6152   withval="$with_pic"
6153   pic_mode="$withval"
6154 else
6155   pic_mode=default
6156 fi;
6157 test -z "$pic_mode" && pic_mode=default
6158
6159 # Use C for the default configuration in the libtool script
6160 tagname=
6161 lt_save_CC="$CC"
6162 ac_ext=c
6163 ac_cpp='$CPP $CPPFLAGS'
6164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6167
6168
6169 # Source file extension for C test sources.
6170 ac_ext=c
6171
6172 # Object file extension for compiled C test sources.
6173 objext=o
6174 objext=$objext
6175
6176 # Code to be used in simple compile tests
6177 lt_simple_compile_test_code="int some_variable = 0;\n"
6178
6179 # Code to be used in simple link tests
6180 lt_simple_link_test_code='int main(){return(0);}\n'
6181
6182
6183 # If no C compiler was specified, use CC.
6184 LTCC=${LTCC-"$CC"}
6185
6186 # Allow CC to be a program name with arguments.
6187 compiler=$CC
6188
6189
6190 #
6191 # Check for any special shared library compilation flags.
6192 #
6193 lt_prog_cc_shlib=
6194 if test "$GCC" = no; then
6195   case $host_os in
6196   sco3.2v5*)
6197     lt_prog_cc_shlib='-belf'
6198     ;;
6199   esac
6200 fi
6201 if test -n "$lt_prog_cc_shlib"; then
6202   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6203 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6204   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6205   else
6206     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6207 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6208     lt_cv_prog_cc_can_build_shared=no
6209   fi
6210 fi
6211
6212
6213 #
6214 # Check to make sure the static flag actually works.
6215 #
6216 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6217 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6218 if test "${lt_prog_compiler_static_works+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   lt_prog_compiler_static_works=no
6222    save_LDFLAGS="$LDFLAGS"
6223    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6224    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6225    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6226      # The compiler can only warn and ignore the option if not recognized
6227      # So say no if there are warnings
6228      if test -s conftest.err; then
6229        # Append any errors to the config.log.
6230        cat conftest.err 1>&5
6231      else
6232        lt_prog_compiler_static_works=yes
6233      fi
6234    fi
6235    $rm conftest*
6236    LDFLAGS="$save_LDFLAGS"
6237
6238 fi
6239 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6240 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6241
6242 if test x"$lt_prog_compiler_static_works" = xyes; then
6243     :
6244 else
6245     lt_prog_compiler_static=
6246 fi
6247
6248
6249
6250
6251 lt_prog_compiler_no_builtin_flag=
6252
6253 if test "$GCC" = yes; then
6254   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6255
6256
6257 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6258 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6259 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   lt_cv_prog_compiler_rtti_exceptions=no
6263   ac_outfile=conftest.$ac_objext
6264    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6265    lt_compiler_flag="-fno-rtti -fno-exceptions"
6266    # Insert the option either (1) after the last *FLAGS variable, or
6267    # (2) before a word containing "conftest.", or (3) at the end.
6268    # Note that $ac_compile itself does not contain backslashes and begins
6269    # with a dollar sign (not a hyphen), so the echo should work correctly.
6270    # The option is referenced via a variable to avoid confusing sed.
6271    lt_compile=`echo "$ac_compile" | $SED \
6272    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6273    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6274    -e 's:$: $lt_compiler_flag:'`
6275    (eval echo "\"\$as_me:6275: $lt_compile\"" >&5)
6276    (eval "$lt_compile" 2>conftest.err)
6277    ac_status=$?
6278    cat conftest.err >&5
6279    echo "$as_me:6279: \$? = $ac_status" >&5
6280    if (exit $ac_status) && test -s "$ac_outfile"; then
6281      # The compiler can only warn and ignore the option if not recognized
6282      # So say no if there are warnings
6283      if test ! -s conftest.err; then
6284        lt_cv_prog_compiler_rtti_exceptions=yes
6285      fi
6286    fi
6287    $rm conftest*
6288
6289 fi
6290 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6291 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6292
6293 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6294     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6295 else
6296     :
6297 fi
6298
6299 fi
6300
6301 lt_prog_compiler_wl=
6302 lt_prog_compiler_pic=
6303 lt_prog_compiler_static=
6304
6305 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6306 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6307
6308   if test "$GCC" = yes; then
6309     lt_prog_compiler_wl='-Wl,'
6310     lt_prog_compiler_static='-static'
6311
6312     case $host_os in
6313       aix*)
6314       # All AIX code is PIC.
6315       if test "$host_cpu" = ia64; then
6316         # AIX 5 now supports IA64 processor
6317         lt_prog_compiler_static='-Bstatic'
6318       fi
6319       ;;
6320
6321     amigaos*)
6322       # FIXME: we need at least 68020 code to build shared libraries, but
6323       # adding the `-m68020' flag to GCC prevents building anything better,
6324       # like `-m68040'.
6325       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6326       ;;
6327
6328     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6329       # PIC is the default for these OSes.
6330       ;;
6331
6332     mingw* | pw32* | os2*)
6333       # This hack is so that the source file can tell whether it is being
6334       # built for inclusion in a dll (and should export symbols for example).
6335       lt_prog_compiler_pic='-DDLL_EXPORT'
6336       ;;
6337
6338     darwin* | rhapsody*)
6339       # PIC is the default on this platform
6340       # Common symbols not allowed in MH_DYLIB files
6341       lt_prog_compiler_pic='-fno-common'
6342       ;;
6343
6344     msdosdjgpp*)
6345       # Just because we use GCC doesn't mean we suddenly get shared libraries
6346       # on systems that don't support them.
6347       lt_prog_compiler_can_build_shared=no
6348       enable_shared=no
6349       ;;
6350
6351     sysv4*MP*)
6352       if test -d /usr/nec; then
6353         lt_prog_compiler_pic=-Kconform_pic
6354       fi
6355       ;;
6356
6357     hpux*)
6358       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6359       # not for PA HP-UX.
6360       case "$host_cpu" in
6361       hppa*64*|ia64*)
6362         # +Z the default
6363         ;;
6364       *)
6365         lt_prog_compiler_pic='-fPIC'
6366         ;;
6367       esac
6368       ;;
6369
6370     *)
6371       lt_prog_compiler_pic='-fPIC'
6372       ;;
6373     esac
6374   else
6375     # PORTME Check for flag to pass linker flags through the system compiler.
6376     case $host_os in
6377     aix*)
6378       lt_prog_compiler_wl='-Wl,'
6379       if test "$host_cpu" = ia64; then
6380         # AIX 5 now supports IA64 processor
6381         lt_prog_compiler_static='-Bstatic'
6382       else
6383         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6384       fi
6385       ;;
6386
6387     mingw* | pw32* | os2*)
6388       # This hack is so that the source file can tell whether it is being
6389       # built for inclusion in a dll (and should export symbols for example).
6390       lt_prog_compiler_pic='-DDLL_EXPORT'
6391       ;;
6392
6393     hpux9* | hpux10* | hpux11*)
6394       lt_prog_compiler_wl='-Wl,'
6395       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6396       # not for PA HP-UX.
6397       case "$host_cpu" in
6398       hppa*64*|ia64*)
6399         # +Z the default
6400         ;;
6401       *)
6402         lt_prog_compiler_pic='+Z'
6403         ;;
6404       esac
6405       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6406       lt_prog_compiler_static='${wl}-a ${wl}archive'
6407       ;;
6408
6409     irix5* | irix6* | nonstopux*)
6410       lt_prog_compiler_wl='-Wl,'
6411       # PIC (with -KPIC) is the default.
6412       lt_prog_compiler_static='-non_shared'
6413       ;;
6414
6415     newsos6)
6416       lt_prog_compiler_pic='-KPIC'
6417       lt_prog_compiler_static='-Bstatic'
6418       ;;
6419
6420     linux*)
6421       case $CC in
6422       icc* | ecc*)
6423         lt_prog_compiler_wl='-Wl,'
6424         lt_prog_compiler_pic='-KPIC'
6425         lt_prog_compiler_static='-static'
6426         ;;
6427       ccc*)
6428         lt_prog_compiler_wl='-Wl,'
6429         # All Alpha code is PIC.
6430         lt_prog_compiler_static='-non_shared'
6431         ;;
6432       esac
6433       ;;
6434
6435     osf3* | osf4* | osf5*)
6436       lt_prog_compiler_wl='-Wl,'
6437       # All OSF/1 code is PIC.
6438       lt_prog_compiler_static='-non_shared'
6439       ;;
6440
6441     sco3.2v5*)
6442       lt_prog_compiler_pic='-Kpic'
6443       lt_prog_compiler_static='-dn'
6444       ;;
6445
6446     solaris*)
6447       lt_prog_compiler_wl='-Wl,'
6448       lt_prog_compiler_pic='-KPIC'
6449       lt_prog_compiler_static='-Bstatic'
6450       ;;
6451
6452     sunos4*)
6453       lt_prog_compiler_wl='-Qoption ld '
6454       lt_prog_compiler_pic='-PIC'
6455       lt_prog_compiler_static='-Bstatic'
6456       ;;
6457
6458     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6459       lt_prog_compiler_wl='-Wl,'
6460       lt_prog_compiler_pic='-KPIC'
6461       lt_prog_compiler_static='-Bstatic'
6462       ;;
6463
6464     sysv4*MP*)
6465       if test -d /usr/nec ;then
6466         lt_prog_compiler_pic='-Kconform_pic'
6467         lt_prog_compiler_static='-Bstatic'
6468       fi
6469       ;;
6470
6471     uts4*)
6472       lt_prog_compiler_pic='-pic'
6473       lt_prog_compiler_static='-Bstatic'
6474       ;;
6475
6476     *)
6477       lt_prog_compiler_can_build_shared=no
6478       ;;
6479     esac
6480   fi
6481
6482 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6483 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6484
6485 #
6486 # Check to make sure the PIC flag actually works.
6487 #
6488 if test -n "$lt_prog_compiler_pic"; then
6489
6490 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6491 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6492 if test "${lt_prog_compiler_pic_works+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   lt_prog_compiler_pic_works=no
6496   ac_outfile=conftest.$ac_objext
6497    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6498    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6499    # Insert the option either (1) after the last *FLAGS variable, or
6500    # (2) before a word containing "conftest.", or (3) at the end.
6501    # Note that $ac_compile itself does not contain backslashes and begins
6502    # with a dollar sign (not a hyphen), so the echo should work correctly.
6503    # The option is referenced via a variable to avoid confusing sed.
6504    lt_compile=`echo "$ac_compile" | $SED \
6505    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6506    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6507    -e 's:$: $lt_compiler_flag:'`
6508    (eval echo "\"\$as_me:6508: $lt_compile\"" >&5)
6509    (eval "$lt_compile" 2>conftest.err)
6510    ac_status=$?
6511    cat conftest.err >&5
6512    echo "$as_me:6512: \$? = $ac_status" >&5
6513    if (exit $ac_status) && test -s "$ac_outfile"; then
6514      # The compiler can only warn and ignore the option if not recognized
6515      # So say no if there are warnings
6516      if test ! -s conftest.err; then
6517        lt_prog_compiler_pic_works=yes
6518      fi
6519    fi
6520    $rm conftest*
6521
6522 fi
6523 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6524 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6525
6526 if test x"$lt_prog_compiler_pic_works" = xyes; then
6527     case $lt_prog_compiler_pic in
6528      "" | " "*) ;;
6529      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6530      esac
6531 else
6532     lt_prog_compiler_pic=
6533      lt_prog_compiler_can_build_shared=no
6534 fi
6535
6536 fi
6537 case "$host_os" in
6538   # For platforms which do not support PIC, -DPIC is meaningless:
6539   *djgpp*)
6540     lt_prog_compiler_pic=
6541     ;;
6542   *)
6543     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6544     ;;
6545 esac
6546
6547 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6548 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6549 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6550   echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552   lt_cv_prog_compiler_c_o=no
6553    $rm -r conftest 2>/dev/null
6554    mkdir conftest
6555    cd conftest
6556    mkdir out
6557    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6558
6559    lt_compiler_flag="-o out/conftest2.$ac_objext"
6560    # Insert the option either (1) after the last *FLAGS variable, or
6561    # (2) before a word containing "conftest.", or (3) at the end.
6562    # Note that $ac_compile itself does not contain backslashes and begins
6563    # with a dollar sign (not a hyphen), so the echo should work correctly.
6564    lt_compile=`echo "$ac_compile" | $SED \
6565    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6566    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6567    -e 's:$: $lt_compiler_flag:'`
6568    (eval echo "\"\$as_me:6568: $lt_compile\"" >&5)
6569    (eval "$lt_compile" 2>out/conftest.err)
6570    ac_status=$?
6571    cat out/conftest.err >&5
6572    echo "$as_me:6572: \$? = $ac_status" >&5
6573    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6574    then
6575      # The compiler can only warn and ignore the option if not recognized
6576      # So say no if there are warnings
6577      if test ! -s out/conftest.err; then
6578        lt_cv_prog_compiler_c_o=yes
6579      fi
6580    fi
6581    chmod u+w .
6582    $rm conftest*
6583    # SGI C++ compiler will create directory out/ii_files/ for
6584    # template instantiation
6585    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6586    $rm out/* && rmdir out
6587    cd ..
6588    rmdir conftest
6589    $rm conftest*
6590
6591 fi
6592 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6594
6595
6596 hard_links="nottested"
6597 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6598   # do not overwrite the value of need_locks provided by the user
6599   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6601   hard_links=yes
6602   $rm conftest*
6603   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6604   touch conftest.a
6605   ln conftest.a conftest.b 2>&5 || hard_links=no
6606   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6607   echo "$as_me:$LINENO: result: $hard_links" >&5
6608 echo "${ECHO_T}$hard_links" >&6
6609   if test "$hard_links" = no; then
6610     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6612     need_locks=warn
6613   fi
6614 else
6615   need_locks=no
6616 fi
6617
6618 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6620
6621   runpath_var=
6622   allow_undefined_flag=
6623   enable_shared_with_static_runtimes=no
6624   archive_cmds=
6625   archive_expsym_cmds=
6626   old_archive_From_new_cmds=
6627   old_archive_from_expsyms_cmds=
6628   export_dynamic_flag_spec=
6629   whole_archive_flag_spec=
6630   thread_safe_flag_spec=
6631   hardcode_libdir_flag_spec=
6632   hardcode_libdir_flag_spec_ld=
6633   hardcode_libdir_separator=
6634   hardcode_direct=no
6635   hardcode_minus_L=no
6636   hardcode_shlibpath_var=unsupported
6637   link_all_deplibs=unknown
6638   hardcode_automatic=no
6639   module_cmds=
6640   module_expsym_cmds=
6641   always_export_symbols=no
6642   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6643   # include_expsyms should be a list of space-separated symbols to be *always*
6644   # included in the symbol list
6645   include_expsyms=
6646   # exclude_expsyms can be an extended regexp of symbols to exclude
6647   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6648   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6649   # as well as any symbol that contains `d'.
6650   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6651   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6652   # platforms (ab)use it in PIC code, but their linkers get confused if
6653   # the symbol is explicitly referenced.  Since portable code cannot
6654   # rely on this symbol name, it's probably fine to never include it in
6655   # preloaded symbol tables.
6656   extract_expsyms_cmds=
6657
6658   case $host_os in
6659   cygwin* | mingw* | pw32*)
6660     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6661     # When not using gcc, we currently assume that we are using
6662     # Microsoft Visual C++.
6663     if test "$GCC" != yes; then
6664       with_gnu_ld=no
6665     fi
6666     ;;
6667   openbsd*)
6668     with_gnu_ld=no
6669     ;;
6670   esac
6671
6672   ld_shlibs=yes
6673   if test "$with_gnu_ld" = yes; then
6674     # If archive_cmds runs LD, not CC, wlarc should be empty
6675     wlarc='${wl}'
6676
6677     # See if GNU ld supports shared libraries.
6678     case $host_os in
6679     aix3* | aix4* | aix5*)
6680       # On AIX/PPC, the GNU linker is very broken
6681       if test "$host_cpu" != ia64; then
6682         ld_shlibs=no
6683         cat <<EOF 1>&2
6684
6685 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6686 *** to be unable to reliably create shared libraries on AIX.
6687 *** Therefore, libtool is disabling shared libraries support.  If you
6688 *** really care for shared libraries, you may want to modify your PATH
6689 *** so that a non-GNU linker is found, and then restart.
6690
6691 EOF
6692       fi
6693       ;;
6694
6695     amigaos*)
6696       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)'
6697       hardcode_libdir_flag_spec='-L$libdir'
6698       hardcode_minus_L=yes
6699
6700       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6701       # that the semantics of dynamic libraries on AmigaOS, at least up
6702       # to version 4, is to share data among multiple programs linked
6703       # with the same dynamic library.  Since this doesn't match the
6704       # behavior of shared libraries on other platforms, we can't use
6705       # them.
6706       ld_shlibs=no
6707       ;;
6708
6709     beos*)
6710       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6711         allow_undefined_flag=unsupported
6712         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6713         # support --undefined.  This deserves some investigation.  FIXME
6714         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6715       else
6716         ld_shlibs=no
6717       fi
6718       ;;
6719
6720     cygwin* | mingw* | pw32*)
6721       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6722       # as there is no search path for DLLs.
6723       hardcode_libdir_flag_spec='-L$libdir'
6724       allow_undefined_flag=unsupported
6725       always_export_symbols=no
6726       enable_shared_with_static_runtimes=yes
6727       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6728
6729       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6730         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6731         # If the export-symbols file already is a .def file (1st line
6732         # is EXPORTS), use it as is; otherwise, prepend...
6733         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6734           cp $export_symbols $output_objdir/$soname.def;
6735         else
6736           echo EXPORTS > $output_objdir/$soname.def;
6737           cat $export_symbols >> $output_objdir/$soname.def;
6738         fi~
6739         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6740       else
6741         ld_shlibs=no
6742       fi
6743       ;;
6744
6745     netbsd* | knetbsd*-gnu)
6746       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6747         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6748         wlarc=
6749       else
6750         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6751         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6752       fi
6753       ;;
6754
6755     solaris* | sysv5*)
6756       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6757         ld_shlibs=no
6758         cat <<EOF 1>&2
6759
6760 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6761 *** create shared libraries on Solaris systems.  Therefore, libtool
6762 *** is disabling shared libraries support.  We urge you to upgrade GNU
6763 *** binutils to release 2.9.1 or newer.  Another option is to modify
6764 *** your PATH or compiler configuration so that the native linker is
6765 *** used, and then restart.
6766
6767 EOF
6768       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6769         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6770         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6771       else
6772         ld_shlibs=no
6773       fi
6774       ;;
6775
6776     sunos4*)
6777       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6778       wlarc=
6779       hardcode_direct=yes
6780       hardcode_shlibpath_var=no
6781       ;;
6782
6783   linux*)
6784     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6785         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6786         archive_cmds="$tmp_archive_cmds"
6787       supports_anon_versioning=no
6788       case `$LD -v 2>/dev/null` in
6789         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6790         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6791         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6792         *\ 2.11.*) ;; # other 2.11 versions
6793         *) supports_anon_versioning=yes ;;
6794       esac
6795       if test $supports_anon_versioning = yes; then
6796         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6798 $echo "local: *; };" >> $output_objdir/$libname.ver~
6799         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6800       else
6801         archive_expsym_cmds="$tmp_archive_cmds"
6802       fi
6803       link_all_deplibs=no
6804     else
6805       ld_shlibs=no
6806     fi
6807     ;;
6808
6809     *)
6810       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6811         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6813       else
6814         ld_shlibs=no
6815       fi
6816       ;;
6817     esac
6818
6819     if test "$ld_shlibs" = yes; then
6820       runpath_var=LD_RUN_PATH
6821       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6822       export_dynamic_flag_spec='${wl}--export-dynamic'
6823       # ancient GNU ld didn't support --whole-archive et. al.
6824       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6825         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6826       else
6827         whole_archive_flag_spec=
6828       fi
6829     fi
6830   else
6831     # PORTME fill in a description of your system's linker (not GNU ld)
6832     case $host_os in
6833     aix3*)
6834       allow_undefined_flag=unsupported
6835       always_export_symbols=yes
6836       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'
6837       # Note: this linker hardcodes the directories in LIBPATH if there
6838       # are no directories specified by -L.
6839       hardcode_minus_L=yes
6840       if test "$GCC" = yes && test -z "$link_static_flag"; then
6841         # Neither direct hardcoding nor static linking is supported with a
6842         # broken collect2.
6843         hardcode_direct=unsupported
6844       fi
6845       ;;
6846
6847     aix4* | aix5*)
6848       if test "$host_cpu" = ia64; then
6849         # On IA64, the linker does run time linking by default, so we don't
6850         # have to do anything special.
6851         aix_use_runtimelinking=no
6852         exp_sym_flag='-Bexport'
6853         no_entry_flag=""
6854       else
6855         # If we're using GNU nm, then we don't want the "-C" option.
6856         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6857         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6858           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'
6859         else
6860           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'
6861         fi
6862         aix_use_runtimelinking=no
6863
6864         # Test if we are trying to use run time linking or normal
6865         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6866         # need to do runtime linking.
6867         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6868           for ld_flag in $LDFLAGS; do
6869           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6870             aix_use_runtimelinking=yes
6871             break
6872           fi
6873           done
6874         esac
6875
6876         exp_sym_flag='-bexport'
6877         no_entry_flag='-bnoentry'
6878       fi
6879
6880       # When large executables or shared objects are built, AIX ld can
6881       # have problems creating the table of contents.  If linking a library
6882       # or program results in "error TOC overflow" add -mminimal-toc to
6883       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6884       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6885
6886       archive_cmds=''
6887       hardcode_direct=yes
6888       hardcode_libdir_separator=':'
6889       link_all_deplibs=yes
6890
6891       if test "$GCC" = yes; then
6892         case $host_os in aix4.012|aix4.012.*)
6893         # We only want to do this on AIX 4.2 and lower, the check
6894         # below for broken collect2 doesn't work under 4.3+
6895           collect2name=`${CC} -print-prog-name=collect2`
6896           if test -f "$collect2name" && \
6897            strings "$collect2name" | grep resolve_lib_name >/dev/null
6898           then
6899           # We have reworked collect2
6900           hardcode_direct=yes
6901           else
6902           # We have old collect2
6903           hardcode_direct=unsupported
6904           # It fails to find uninstalled libraries when the uninstalled
6905           # path is not listed in the libpath.  Setting hardcode_minus_L
6906           # to unsupported forces relinking
6907           hardcode_minus_L=yes
6908           hardcode_libdir_flag_spec='-L$libdir'
6909           hardcode_libdir_separator=
6910           fi
6911         esac
6912         shared_flag='-shared'
6913       else
6914         # not using gcc
6915         if test "$host_cpu" = ia64; then
6916         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6917         # chokes on -Wl,-G. The following line is correct:
6918           shared_flag='-G'
6919         else
6920         if test "$aix_use_runtimelinking" = yes; then
6921             shared_flag='${wl}-G'
6922           else
6923             shared_flag='${wl}-bM:SRE'
6924         fi
6925         fi
6926       fi
6927
6928       # It seems that -bexpall does not export symbols beginning with
6929       # underscore (_), so it is better to generate a list of symbols to export.
6930       always_export_symbols=yes
6931       if test "$aix_use_runtimelinking" = yes; then
6932         # Warning - without using the other runtime loading flags (-brtl),
6933         # -berok will link without error, but may produce a broken library.
6934         allow_undefined_flag='-berok'
6935        # Determine the default libpath from the value encoded in an empty executable.
6936        cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h.  */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h.  */
6942
6943 int
6944 main ()
6945 {
6946
6947   ;
6948   return 0;
6949 }
6950 _ACEOF
6951 rm -f conftest.$ac_objext conftest$ac_exeext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953   (eval $ac_link) 2>conftest.er1
6954   ac_status=$?
6955   grep -v '^ *+' conftest.er1 >conftest.err
6956   rm -f conftest.er1
6957   cat conftest.err >&5
6958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); } &&
6960          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962   (eval $ac_try) 2>&5
6963   ac_status=$?
6964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965   (exit $ac_status); }; } &&
6966          { ac_try='test -s conftest$ac_exeext'
6967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968   (eval $ac_try) 2>&5
6969   ac_status=$?
6970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971   (exit $ac_status); }; }; then
6972
6973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6974 }'`
6975 # Check for a 64-bit object if we didn't find anything.
6976 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; }
6977 }'`; fi
6978 else
6979   echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6981
6982 fi
6983 rm -f conftest.err conftest.$ac_objext \
6984       conftest$ac_exeext conftest.$ac_ext
6985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6986
6987        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6988         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"
6989        else
6990         if test "$host_cpu" = ia64; then
6991           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6992           allow_undefined_flag="-z nodefs"
6993           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"
6994         else
6995          # Determine the default libpath from the value encoded in an empty executable.
6996          cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002
7003 int
7004 main ()
7005 {
7006
7007   ;
7008   return 0;
7009 }
7010 _ACEOF
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013   (eval $ac_link) 2>conftest.er1
7014   ac_status=$?
7015   grep -v '^ *+' conftest.er1 >conftest.err
7016   rm -f conftest.er1
7017   cat conftest.err >&5
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); } &&
7020          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022   (eval $ac_try) 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; } &&
7026          { ac_try='test -s conftest$ac_exeext'
7027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028   (eval $ac_try) 2>&5
7029   ac_status=$?
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); }; }; then
7032
7033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7034 }'`
7035 # Check for a 64-bit object if we didn't find anything.
7036 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; }
7037 }'`; fi
7038 else
7039   echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7041
7042 fi
7043 rm -f conftest.err conftest.$ac_objext \
7044       conftest$ac_exeext conftest.$ac_ext
7045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7046
7047          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7048           # Warning - without using the other run time loading flags,
7049           # -berok will link without error, but may produce a broken library.
7050           no_undefined_flag=' ${wl}-bernotok'
7051           allow_undefined_flag=' ${wl}-berok'
7052           # -bexpall does not export symbols beginning with underscore (_)
7053           always_export_symbols=yes
7054           # Exported symbols can be pulled into shared objects from archives
7055           whole_archive_flag_spec=' '
7056           archive_cmds_need_lc=yes
7057           # This is similar to how AIX traditionally builds it's shared libraries.
7058           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'
7059         fi
7060       fi
7061       ;;
7062
7063     amigaos*)
7064       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)'
7065       hardcode_libdir_flag_spec='-L$libdir'
7066       hardcode_minus_L=yes
7067       # see comment about different semantics on the GNU ld section
7068       ld_shlibs=no
7069       ;;
7070
7071     bsdi4*)
7072       export_dynamic_flag_spec=-rdynamic
7073       ;;
7074
7075     cygwin* | mingw* | pw32*)
7076       # When not using gcc, we currently assume that we are using
7077       # Microsoft Visual C++.
7078       # hardcode_libdir_flag_spec is actually meaningless, as there is
7079       # no search path for DLLs.
7080       hardcode_libdir_flag_spec=' '
7081       allow_undefined_flag=unsupported
7082       # Tell ltmain to make .lib files, not .a files.
7083       libext=lib
7084       # Tell ltmain to make .dll files, not .so files.
7085       shrext_cmds=".dll"
7086       # FIXME: Setting linknames here is a bad hack.
7087       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7088       # The linker will automatically build a .lib file if we build a DLL.
7089       old_archive_From_new_cmds='true'
7090       # FIXME: Should let the user specify the lib program.
7091       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7092       fix_srcfile_path='`cygpath -w "$srcfile"`'
7093       enable_shared_with_static_runtimes=yes
7094       ;;
7095
7096     darwin* | rhapsody*)
7097     if test "$GXX" = yes ; then
7098       archive_cmds_need_lc=no
7099       case "$host_os" in
7100       rhapsody* | darwin1.[012])
7101         allow_undefined_flag='-undefined suppress'
7102         ;;
7103       *) # Darwin 1.3 on
7104       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7105         allow_undefined_flag='-flat_namespace -undefined suppress'
7106       else
7107         case ${MACOSX_DEPLOYMENT_TARGET} in
7108           10.[012])
7109             allow_undefined_flag='-flat_namespace -undefined suppress'
7110             ;;
7111           10.*)
7112             allow_undefined_flag='-undefined dynamic_lookup'
7113             ;;
7114         esac
7115       fi
7116         ;;
7117       esac
7118         lt_int_apple_cc_single_mod=no
7119         output_verbose_link_cmd='echo'
7120         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7121           lt_int_apple_cc_single_mod=yes
7122         fi
7123         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7124           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7125         else
7126         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'
7127       fi
7128       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7129       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7130         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7131           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}'
7132         else
7133           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}'
7134         fi
7135           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}'
7136       hardcode_direct=no
7137       hardcode_automatic=yes
7138       hardcode_shlibpath_var=unsupported
7139       whole_archive_flag_spec='-all_load $convenience'
7140       link_all_deplibs=yes
7141     else
7142       ld_shlibs=no
7143     fi
7144       ;;
7145
7146     dgux*)
7147       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7148       hardcode_libdir_flag_spec='-L$libdir'
7149       hardcode_shlibpath_var=no
7150       ;;
7151
7152     freebsd1*)
7153       ld_shlibs=no
7154       ;;
7155
7156     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7157     # support.  Future versions do this automatically, but an explicit c++rt0.o
7158     # does not break anything, and helps significantly (at the cost of a little
7159     # extra space).
7160     freebsd2.2*)
7161       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7162       hardcode_libdir_flag_spec='-R$libdir'
7163       hardcode_direct=yes
7164       hardcode_shlibpath_var=no
7165       ;;
7166
7167     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7168     freebsd2*)
7169       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7170       hardcode_direct=yes
7171       hardcode_minus_L=yes
7172       hardcode_shlibpath_var=no
7173       ;;
7174
7175     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7176     freebsd* | kfreebsd*-gnu)
7177       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7178       hardcode_libdir_flag_spec='-R$libdir'
7179       hardcode_direct=yes
7180       hardcode_shlibpath_var=no
7181       ;;
7182
7183     hpux9*)
7184       if test "$GCC" = yes; then
7185         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'
7186       else
7187         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'
7188       fi
7189       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7190       hardcode_libdir_separator=:
7191       hardcode_direct=yes
7192
7193       # hardcode_minus_L: Not really in the search PATH,
7194       # but as the default location of the library.
7195       hardcode_minus_L=yes
7196       export_dynamic_flag_spec='${wl}-E'
7197       ;;
7198
7199     hpux10* | hpux11*)
7200       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7201         case "$host_cpu" in
7202         hppa*64*|ia64*)
7203           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7204           ;;
7205         *)
7206           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7207           ;;
7208         esac
7209       else
7210         case "$host_cpu" in
7211         hppa*64*|ia64*)
7212           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7213           ;;
7214         *)
7215           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7216           ;;
7217         esac
7218       fi
7219       if test "$with_gnu_ld" = no; then
7220         case "$host_cpu" in
7221         hppa*64*)
7222           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7223           hardcode_libdir_flag_spec_ld='+b $libdir'
7224           hardcode_libdir_separator=:
7225           hardcode_direct=no
7226           hardcode_shlibpath_var=no
7227           ;;
7228         ia64*)
7229           hardcode_libdir_flag_spec='-L$libdir'
7230           hardcode_direct=no
7231           hardcode_shlibpath_var=no
7232
7233           # hardcode_minus_L: Not really in the search PATH,
7234           # but as the default location of the library.
7235           hardcode_minus_L=yes
7236           ;;
7237         *)
7238           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7239           hardcode_libdir_separator=:
7240           hardcode_direct=yes
7241           export_dynamic_flag_spec='${wl}-E'
7242
7243           # hardcode_minus_L: Not really in the search PATH,
7244           # but as the default location of the library.
7245           hardcode_minus_L=yes
7246           ;;
7247         esac
7248       fi
7249       ;;
7250
7251     irix5* | irix6* | nonstopux*)
7252       if test "$GCC" = yes; then
7253         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'
7254       else
7255         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'
7256         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7257       fi
7258       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7259       hardcode_libdir_separator=:
7260       link_all_deplibs=yes
7261       ;;
7262
7263     netbsd* | knetbsd*-gnu)
7264       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7265         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7266       else
7267         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7268       fi
7269       hardcode_libdir_flag_spec='-R$libdir'
7270       hardcode_direct=yes
7271       hardcode_shlibpath_var=no
7272       ;;
7273
7274     newsos6)
7275       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7276       hardcode_direct=yes
7277       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7278       hardcode_libdir_separator=:
7279       hardcode_shlibpath_var=no
7280       ;;
7281
7282     openbsd*)
7283       hardcode_direct=yes
7284       hardcode_shlibpath_var=no
7285       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7286         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7287         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7288         export_dynamic_flag_spec='${wl}-E'
7289       else
7290        case $host_os in
7291          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7292            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7293            hardcode_libdir_flag_spec='-R$libdir'
7294            ;;
7295          *)
7296            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7297            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7298            ;;
7299        esac
7300       fi
7301       ;;
7302
7303     os2*)
7304       hardcode_libdir_flag_spec='-L$libdir'
7305       hardcode_minus_L=yes
7306       allow_undefined_flag=unsupported
7307       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'
7308       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7309       ;;
7310
7311     osf3*)
7312       if test "$GCC" = yes; then
7313         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7314         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'
7315       else
7316         allow_undefined_flag=' -expect_unresolved \*'
7317         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'
7318       fi
7319       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7320       hardcode_libdir_separator=:
7321       ;;
7322
7323     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7324       if test "$GCC" = yes; then
7325         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7326         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'
7327         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7328       else
7329         allow_undefined_flag=' -expect_unresolved \*'
7330         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'
7331         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7332         $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'
7333
7334         # Both c and cxx compiler support -rpath directly
7335         hardcode_libdir_flag_spec='-rpath $libdir'
7336       fi
7337       hardcode_libdir_separator=:
7338       ;;
7339
7340     sco3.2v5*)
7341       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342       hardcode_shlibpath_var=no
7343       export_dynamic_flag_spec='${wl}-Bexport'
7344       runpath_var=LD_RUN_PATH
7345       hardcode_runpath_var=yes
7346       ;;
7347
7348     solaris*)
7349       no_undefined_flag=' -z text'
7350       if test "$GCC" = yes; then
7351         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7352         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7353           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7354       else
7355         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7356         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7357         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7358       fi
7359       hardcode_libdir_flag_spec='-R$libdir'
7360       hardcode_shlibpath_var=no
7361       case $host_os in
7362       solaris2.[0-5] | solaris2.[0-5].*) ;;
7363       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7364         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7365       esac
7366       link_all_deplibs=yes
7367       ;;
7368
7369     sunos4*)
7370       if test "x$host_vendor" = xsequent; then
7371         # Use $CC to link under sequent, because it throws in some extra .o
7372         # files that make .init and .fini sections work.
7373         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7374       else
7375         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7376       fi
7377       hardcode_libdir_flag_spec='-L$libdir'
7378       hardcode_direct=yes
7379       hardcode_minus_L=yes
7380       hardcode_shlibpath_var=no
7381       ;;
7382
7383     sysv4)
7384       case $host_vendor in
7385         sni)
7386           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7387           hardcode_direct=yes # is this really true???
7388         ;;
7389         siemens)
7390           ## LD is ld it makes a PLAMLIB
7391           ## CC just makes a GrossModule.
7392           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7393           reload_cmds='$CC -r -o $output$reload_objs'
7394           hardcode_direct=no
7395         ;;
7396         motorola)
7397           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7398           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7399         ;;
7400       esac
7401       runpath_var='LD_RUN_PATH'
7402       hardcode_shlibpath_var=no
7403       ;;
7404
7405     sysv4.3*)
7406       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7407       hardcode_shlibpath_var=no
7408       export_dynamic_flag_spec='-Bexport'
7409       ;;
7410
7411     sysv4*MP*)
7412       if test -d /usr/nec; then
7413         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7414         hardcode_shlibpath_var=no
7415         runpath_var=LD_RUN_PATH
7416         hardcode_runpath_var=yes
7417         ld_shlibs=yes
7418       fi
7419       ;;
7420
7421     sysv4.2uw2*)
7422       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7423       hardcode_direct=yes
7424       hardcode_minus_L=no
7425       hardcode_shlibpath_var=no
7426       hardcode_runpath_var=yes
7427       runpath_var=LD_RUN_PATH
7428       ;;
7429
7430    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7431       no_undefined_flag='${wl}-z ${wl}text'
7432       if test "$GCC" = yes; then
7433         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7434       else
7435         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7436       fi
7437       runpath_var='LD_RUN_PATH'
7438       hardcode_shlibpath_var=no
7439       ;;
7440
7441     sysv5*)
7442       no_undefined_flag=' -z text'
7443       # $CC -shared without GNU ld will not create a library from C++
7444       # object files and a static libstdc++, better avoid it by now
7445       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7446       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7447                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7448       hardcode_libdir_flag_spec=
7449       hardcode_shlibpath_var=no
7450       runpath_var='LD_RUN_PATH'
7451       ;;
7452
7453     uts4*)
7454       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7455       hardcode_libdir_flag_spec='-L$libdir'
7456       hardcode_shlibpath_var=no
7457       ;;
7458
7459     *)
7460       ld_shlibs=no
7461       ;;
7462     esac
7463   fi
7464
7465 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7466 echo "${ECHO_T}$ld_shlibs" >&6
7467 test "$ld_shlibs" = no && can_build_shared=no
7468
7469 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7470 if test "$GCC" = yes; then
7471   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7472 fi
7473
7474 #
7475 # Do we need to explicitly link libc?
7476 #
7477 case "x$archive_cmds_need_lc" in
7478 x|xyes)
7479   # Assume -lc should be added
7480   archive_cmds_need_lc=yes
7481
7482   if test "$enable_shared" = yes && test "$GCC" = yes; then
7483     case $archive_cmds in
7484     *'~'*)
7485       # FIXME: we may have to deal with multi-command sequences.
7486       ;;
7487     '$CC '*)
7488       # Test whether the compiler implicitly links with -lc since on some
7489       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7490       # to ld, don't add -lc before -lgcc.
7491       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7492 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7493       $rm conftest*
7494       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7495
7496       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7497   (eval $ac_compile) 2>&5
7498   ac_status=$?
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); } 2>conftest.err; then
7501         soname=conftest
7502         lib=conftest
7503         libobjs=conftest.$ac_objext
7504         deplibs=
7505         wl=$lt_prog_compiler_wl
7506         compiler_flags=-v
7507         linker_flags=-v
7508         verstring=
7509         output_objdir=.
7510         libname=conftest
7511         lt_save_allow_undefined_flag=$allow_undefined_flag
7512         allow_undefined_flag=
7513         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7514   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7515   ac_status=$?
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); }
7518         then
7519           archive_cmds_need_lc=no
7520         else
7521           archive_cmds_need_lc=yes
7522         fi
7523         allow_undefined_flag=$lt_save_allow_undefined_flag
7524       else
7525         cat conftest.err 1>&5
7526       fi
7527       $rm conftest*
7528       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7529 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7530       ;;
7531     esac
7532   fi
7533   ;;
7534 esac
7535
7536 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7537 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7538 library_names_spec=
7539 libname_spec='lib$name'
7540 soname_spec=
7541 shrext_cmds=".so"
7542 postinstall_cmds=
7543 postuninstall_cmds=
7544 finish_cmds=
7545 finish_eval=
7546 shlibpath_var=
7547 shlibpath_overrides_runpath=unknown
7548 version_type=none
7549 dynamic_linker="$host_os ld.so"
7550 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7551 if test "$GCC" = yes; then
7552   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7553   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7554     # if the path contains ";" then we assume it to be the separator
7555     # otherwise default to the standard path separator (i.e. ":") - it is
7556     # assumed that no part of a normal pathname contains ";" but that should
7557     # okay in the real world where ";" in dirpaths is itself problematic.
7558     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7559   else
7560     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7561   fi
7562 else
7563   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7564 fi
7565 need_lib_prefix=unknown
7566 hardcode_into_libs=no
7567
7568 # when you set need_version to no, make sure it does not cause -set_version
7569 # flags to be left without arguments
7570 need_version=unknown
7571
7572 case $host_os in
7573 aix3*)
7574   version_type=linux
7575   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7576   shlibpath_var=LIBPATH
7577
7578   # AIX 3 has no versioning support, so we append a major version to the name.
7579   soname_spec='${libname}${release}${shared_ext}$major'
7580   ;;
7581
7582 aix4* | aix5*)
7583   version_type=linux
7584   need_lib_prefix=no
7585   need_version=no
7586   hardcode_into_libs=yes
7587   if test "$host_cpu" = ia64; then
7588     # AIX 5 supports IA64
7589     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7590     shlibpath_var=LD_LIBRARY_PATH
7591   else
7592     # With GCC up to 2.95.x, collect2 would create an import file
7593     # for dependence libraries.  The import file would start with
7594     # the line `#! .'.  This would cause the generated library to
7595     # depend on `.', always an invalid library.  This was fixed in
7596     # development snapshots of GCC prior to 3.0.
7597     case $host_os in
7598       aix4 | aix4.[01] | aix4.[01].*)
7599       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7600            echo ' yes '
7601            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7602         :
7603       else
7604         can_build_shared=no
7605       fi
7606       ;;
7607     esac
7608     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7609     # soname into executable. Probably we can add versioning support to
7610     # collect2, so additional links can be useful in future.
7611     if test "$aix_use_runtimelinking" = yes; then
7612       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7613       # instead of lib<name>.a to let people know that these are not
7614       # typical AIX shared libraries.
7615       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7616     else
7617       # We preserve .a as extension for shared libraries through AIX4.2
7618       # and later when we are not doing run time linking.
7619       library_names_spec='${libname}${release}.a $libname.a'
7620       soname_spec='${libname}${release}${shared_ext}$major'
7621     fi
7622     shlibpath_var=LIBPATH
7623   fi
7624   ;;
7625
7626 amigaos*)
7627   library_names_spec='$libname.ixlibrary $libname.a'
7628   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7629   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'
7630   ;;
7631
7632 beos*)
7633   library_names_spec='${libname}${shared_ext}'
7634   dynamic_linker="$host_os ld.so"
7635   shlibpath_var=LIBRARY_PATH
7636   ;;
7637
7638 bsdi4*)
7639   version_type=linux
7640   need_version=no
7641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7642   soname_spec='${libname}${release}${shared_ext}$major'
7643   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7644   shlibpath_var=LD_LIBRARY_PATH
7645   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7646   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7647   # the default ld.so.conf also contains /usr/contrib/lib and
7648   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7649   # libtool to hard-code these into programs
7650   ;;
7651
7652 cygwin* | mingw* | pw32*)
7653   version_type=windows
7654   shrext_cmds=".dll"
7655   need_version=no
7656   need_lib_prefix=no
7657
7658   case $GCC,$host_os in
7659   yes,cygwin* | yes,mingw* | yes,pw32*)
7660     library_names_spec='$libname.dll.a'
7661     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7662     postinstall_cmds='base_file=`basename \${file}`~
7663       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7664       dldir=$destdir/`dirname \$dlpath`~
7665       test -d \$dldir || mkdir -p \$dldir~
7666       $install_prog $dir/$dlname \$dldir/$dlname'
7667     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7668       dlpath=$dir/\$dldll~
7669        $rm \$dlpath'
7670     shlibpath_overrides_runpath=yes
7671
7672     case $host_os in
7673     cygwin*)
7674       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7675       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7676       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7677       ;;
7678     mingw*)
7679       # MinGW DLLs use traditional 'lib' prefix
7680       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7681       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7682       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7683         # It is most probably a Windows format PATH printed by
7684         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7685         # path with ; separators, and with drive letters. We can handle the
7686         # drive letters (cygwin fileutils understands them), so leave them,
7687         # especially as we might pass files found there to a mingw objdump,
7688         # which wouldn't understand a cygwinified path. Ahh.
7689         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7690       else
7691         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7692       fi
7693       ;;
7694     pw32*)
7695       # pw32 DLLs use 'pw' prefix rather than 'lib'
7696       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7697       ;;
7698     esac
7699     ;;
7700
7701   *)
7702     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7703     ;;
7704   esac
7705   dynamic_linker='Win32 ld.exe'
7706   # FIXME: first we should search . and the directory the executable is in
7707   shlibpath_var=PATH
7708   ;;
7709
7710 darwin* | rhapsody*)
7711   dynamic_linker="$host_os dyld"
7712   version_type=darwin
7713   need_lib_prefix=no
7714   need_version=no
7715   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7716   soname_spec='${libname}${release}${major}$shared_ext'
7717   shlibpath_overrides_runpath=yes
7718   shlibpath_var=DYLD_LIBRARY_PATH
7719   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7720   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7721   if test "$GCC" = yes; then
7722     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"`
7723   else
7724     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7725   fi
7726   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7727   ;;
7728
7729 dgux*)
7730   version_type=linux
7731   need_lib_prefix=no
7732   need_version=no
7733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7734   soname_spec='${libname}${release}${shared_ext}$major'
7735   shlibpath_var=LD_LIBRARY_PATH
7736   ;;
7737
7738 freebsd1*)
7739   dynamic_linker=no
7740   ;;
7741
7742 kfreebsd*-gnu)
7743   version_type=linux
7744   need_lib_prefix=no
7745   need_version=no
7746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7747   soname_spec='${libname}${release}${shared_ext}$major'
7748   shlibpath_var=LD_LIBRARY_PATH
7749   shlibpath_overrides_runpath=no
7750   hardcode_into_libs=yes
7751   dynamic_linker='GNU ld.so'
7752   ;;
7753
7754 freebsd*)
7755   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7756   version_type=freebsd-$objformat
7757   case $version_type in
7758     freebsd-elf*)
7759       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7760       need_version=no
7761       need_lib_prefix=no
7762       ;;
7763     freebsd-*)
7764       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7765       need_version=yes
7766       ;;
7767   esac
7768   shlibpath_var=LD_LIBRARY_PATH
7769   case $host_os in
7770   freebsd2*)
7771     shlibpath_overrides_runpath=yes
7772     ;;
7773   freebsd3.01* | freebsdelf3.01*)
7774     shlibpath_overrides_runpath=yes
7775     hardcode_into_libs=yes
7776     ;;
7777   *) # from 3.2 on
7778     shlibpath_overrides_runpath=no
7779     hardcode_into_libs=yes
7780     ;;
7781   esac
7782   ;;
7783
7784 gnu*)
7785   version_type=linux
7786   need_lib_prefix=no
7787   need_version=no
7788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7789   soname_spec='${libname}${release}${shared_ext}$major'
7790   shlibpath_var=LD_LIBRARY_PATH
7791   hardcode_into_libs=yes
7792   ;;
7793
7794 hpux9* | hpux10* | hpux11*)
7795   # Give a soname corresponding to the major version so that dld.sl refuses to
7796   # link against other versions.
7797   version_type=sunos
7798   need_lib_prefix=no
7799   need_version=no
7800   case "$host_cpu" in
7801   ia64*)
7802     shrext_cmds='.so'
7803     hardcode_into_libs=yes
7804     dynamic_linker="$host_os dld.so"
7805     shlibpath_var=LD_LIBRARY_PATH
7806     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7807     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7808     soname_spec='${libname}${release}${shared_ext}$major'
7809     if test "X$HPUX_IA64_MODE" = X32; then
7810       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7811     else
7812       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7813     fi
7814     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7815     ;;
7816    hppa*64*)
7817      shrext_cmds='.sl'
7818      hardcode_into_libs=yes
7819      dynamic_linker="$host_os dld.sl"
7820      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7821      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7822      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7823      soname_spec='${libname}${release}${shared_ext}$major'
7824      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7825      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7826      ;;
7827    *)
7828     shrext_cmds='.sl'
7829     dynamic_linker="$host_os dld.sl"
7830     shlibpath_var=SHLIB_PATH
7831     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7833     soname_spec='${libname}${release}${shared_ext}$major'
7834     ;;
7835   esac
7836   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7837   postinstall_cmds='chmod 555 $lib'
7838   ;;
7839
7840 irix5* | irix6* | nonstopux*)
7841   case $host_os in
7842     nonstopux*) version_type=nonstopux ;;
7843     *)
7844         if test "$lt_cv_prog_gnu_ld" = yes; then
7845                 version_type=linux
7846         else
7847                 version_type=irix
7848         fi ;;
7849   esac
7850   need_lib_prefix=no
7851   need_version=no
7852   soname_spec='${libname}${release}${shared_ext}$major'
7853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7854   case $host_os in
7855   irix5* | nonstopux*)
7856     libsuff= shlibsuff=
7857     ;;
7858   *)
7859     case $LD in # libtool.m4 will add one of these switches to LD
7860     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7861       libsuff= shlibsuff= libmagic=32-bit;;
7862     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7863       libsuff=32 shlibsuff=N32 libmagic=N32;;
7864     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7865       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7866     *) libsuff= shlibsuff= libmagic=never-match;;
7867     esac
7868     ;;
7869   esac
7870   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7871   shlibpath_overrides_runpath=no
7872   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7873   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7874   hardcode_into_libs=yes
7875   ;;
7876
7877 # No shared lib support for Linux oldld, aout, or coff.
7878 linux*oldld* | linux*aout* | linux*coff*)
7879   dynamic_linker=no
7880   ;;
7881
7882 # This must be Linux ELF.
7883 linux*)
7884   version_type=linux
7885   need_lib_prefix=no
7886   need_version=no
7887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7888   soname_spec='${libname}${release}${shared_ext}$major'
7889   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7890   shlibpath_var=LD_LIBRARY_PATH
7891   shlibpath_overrides_runpath=no
7892   # This implies no fast_install, which is unacceptable.
7893   # Some rework will be needed to allow for fast_install
7894   # before this can be enabled.
7895   hardcode_into_libs=yes
7896
7897   # Append ld.so.conf contents to the search path
7898   if test -f /etc/ld.so.conf; then
7899     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7900     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7901   fi
7902
7903   # We used to test for /lib/ld.so.1 and disable shared libraries on
7904   # powerpc, because MkLinux only supported shared libraries with the
7905   # GNU dynamic linker.  Since this was broken with cross compilers,
7906   # most powerpc-linux boxes support dynamic linking these days and
7907   # people can always --disable-shared, the test was removed, and we
7908   # assume the GNU/Linux dynamic linker is in use.
7909   dynamic_linker='GNU/Linux ld.so'
7910   ;;
7911
7912 knetbsd*-gnu)
7913   version_type=linux
7914   need_lib_prefix=no
7915   need_version=no
7916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7917   soname_spec='${libname}${release}${shared_ext}$major'
7918   shlibpath_var=LD_LIBRARY_PATH
7919   shlibpath_overrides_runpath=no
7920   hardcode_into_libs=yes
7921   dynamic_linker='GNU ld.so'
7922   ;;
7923
7924 netbsd*)
7925   version_type=sunos
7926   need_lib_prefix=no
7927   need_version=no
7928   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7930     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7931     dynamic_linker='NetBSD (a.out) ld.so'
7932   else
7933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7934     soname_spec='${libname}${release}${shared_ext}$major'
7935     dynamic_linker='NetBSD ld.elf_so'
7936   fi
7937   shlibpath_var=LD_LIBRARY_PATH
7938   shlibpath_overrides_runpath=yes
7939   hardcode_into_libs=yes
7940   ;;
7941
7942 newsos6)
7943   version_type=linux
7944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7945   shlibpath_var=LD_LIBRARY_PATH
7946   shlibpath_overrides_runpath=yes
7947   ;;
7948
7949 nto-qnx*)
7950   version_type=linux
7951   need_lib_prefix=no
7952   need_version=no
7953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7954   soname_spec='${libname}${release}${shared_ext}$major'
7955   shlibpath_var=LD_LIBRARY_PATH
7956   shlibpath_overrides_runpath=yes
7957   ;;
7958
7959 openbsd*)
7960   version_type=sunos
7961   need_lib_prefix=no
7962   need_version=yes
7963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7964   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7965   shlibpath_var=LD_LIBRARY_PATH
7966   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7967     case $host_os in
7968       openbsd2.[89] | openbsd2.[89].*)
7969         shlibpath_overrides_runpath=no
7970         ;;
7971       *)
7972         shlibpath_overrides_runpath=yes
7973         ;;
7974       esac
7975   else
7976     shlibpath_overrides_runpath=yes
7977   fi
7978   ;;
7979
7980 os2*)
7981   libname_spec='$name'
7982   shrext_cmds=".dll"
7983   need_lib_prefix=no
7984   library_names_spec='$libname${shared_ext} $libname.a'
7985   dynamic_linker='OS/2 ld.exe'
7986   shlibpath_var=LIBPATH
7987   ;;
7988
7989 osf3* | osf4* | osf5*)
7990   version_type=osf
7991   need_lib_prefix=no
7992   need_version=no
7993   soname_spec='${libname}${release}${shared_ext}$major'
7994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7995   shlibpath_var=LD_LIBRARY_PATH
7996   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7997   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7998   ;;
7999
8000 sco3.2v5*)
8001   version_type=osf
8002   soname_spec='${libname}${release}${shared_ext}$major'
8003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004   shlibpath_var=LD_LIBRARY_PATH
8005   ;;
8006
8007 solaris*)
8008   version_type=linux
8009   need_lib_prefix=no
8010   need_version=no
8011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8012   soname_spec='${libname}${release}${shared_ext}$major'
8013   shlibpath_var=LD_LIBRARY_PATH
8014   shlibpath_overrides_runpath=yes
8015   hardcode_into_libs=yes
8016   # ldd complains unless libraries are executable
8017   postinstall_cmds='chmod +x $lib'
8018   ;;
8019
8020 sunos4*)
8021   version_type=sunos
8022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8023   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8024   shlibpath_var=LD_LIBRARY_PATH
8025   shlibpath_overrides_runpath=yes
8026   if test "$with_gnu_ld" = yes; then
8027     need_lib_prefix=no
8028   fi
8029   need_version=yes
8030   ;;
8031
8032 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8033   version_type=linux
8034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8035   soname_spec='${libname}${release}${shared_ext}$major'
8036   shlibpath_var=LD_LIBRARY_PATH
8037   case $host_vendor in
8038     sni)
8039       shlibpath_overrides_runpath=no
8040       need_lib_prefix=no
8041       export_dynamic_flag_spec='${wl}-Blargedynsym'
8042       runpath_var=LD_RUN_PATH
8043       ;;
8044     siemens)
8045       need_lib_prefix=no
8046       ;;
8047     motorola)
8048       need_lib_prefix=no
8049       need_version=no
8050       shlibpath_overrides_runpath=no
8051       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8052       ;;
8053   esac
8054   ;;
8055
8056 sysv4*MP*)
8057   if test -d /usr/nec ;then
8058     version_type=linux
8059     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8060     soname_spec='$libname${shared_ext}.$major'
8061     shlibpath_var=LD_LIBRARY_PATH
8062   fi
8063   ;;
8064
8065 uts4*)
8066   version_type=linux
8067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8068   soname_spec='${libname}${release}${shared_ext}$major'
8069   shlibpath_var=LD_LIBRARY_PATH
8070   ;;
8071
8072 *)
8073   dynamic_linker=no
8074   ;;
8075 esac
8076 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8077 echo "${ECHO_T}$dynamic_linker" >&6
8078 test "$dynamic_linker" = no && can_build_shared=no
8079
8080 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8081 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8082 hardcode_action=
8083 if test -n "$hardcode_libdir_flag_spec" || \
8084    test -n "$runpath_var " || \
8085    test "X$hardcode_automatic"="Xyes" ; then
8086
8087   # We can hardcode non-existant directories.
8088   if test "$hardcode_direct" != no &&
8089      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8090      # have to relink, otherwise we might link with an installed library
8091      # when we should be linking with a yet-to-be-installed one
8092      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8093      test "$hardcode_minus_L" != no; then
8094     # Linking always hardcodes the temporary library directory.
8095     hardcode_action=relink
8096   else
8097     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8098     hardcode_action=immediate
8099   fi
8100 else
8101   # We cannot hardcode anything, or else we can only hardcode existing
8102   # directories.
8103   hardcode_action=unsupported
8104 fi
8105 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8106 echo "${ECHO_T}$hardcode_action" >&6
8107
8108 if test "$hardcode_action" = relink; then
8109   # Fast installation is not supported
8110   enable_fast_install=no
8111 elif test "$shlibpath_overrides_runpath" = yes ||
8112      test "$enable_shared" = no; then
8113   # Fast installation is not necessary
8114   enable_fast_install=needless
8115 fi
8116
8117 striplib=
8118 old_striplib=
8119 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8120 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8121 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8122   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8123   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8124   echo "$as_me:$LINENO: result: yes" >&5
8125 echo "${ECHO_T}yes" >&6
8126 else
8127 # FIXME - insert some real tests, host_os isn't really good enough
8128   case $host_os in
8129    darwin*)
8130        if test -n "$STRIP" ; then
8131          striplib="$STRIP -x"
8132          echo "$as_me:$LINENO: result: yes" >&5
8133 echo "${ECHO_T}yes" >&6
8134        else
8135   echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6
8137 fi
8138        ;;
8139    *)
8140   echo "$as_me:$LINENO: result: no" >&5
8141 echo "${ECHO_T}no" >&6
8142     ;;
8143   esac
8144 fi
8145
8146 if test "x$enable_dlopen" != xyes; then
8147   enable_dlopen=unknown
8148   enable_dlopen_self=unknown
8149   enable_dlopen_self_static=unknown
8150 else
8151   lt_cv_dlopen=no
8152   lt_cv_dlopen_libs=
8153
8154   case $host_os in
8155   beos*)
8156     lt_cv_dlopen="load_add_on"
8157     lt_cv_dlopen_libs=
8158     lt_cv_dlopen_self=yes
8159     ;;
8160
8161   mingw* | pw32*)
8162     lt_cv_dlopen="LoadLibrary"
8163     lt_cv_dlopen_libs=
8164    ;;
8165
8166   cygwin*)
8167     lt_cv_dlopen="dlopen"
8168     lt_cv_dlopen_libs=
8169    ;;
8170
8171   darwin*)
8172   # if libdl is installed we need to link against it
8173     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8174 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8175 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178   ac_check_lib_save_LIBS=$LIBS
8179 LIBS="-ldl  $LIBS"
8180 cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h.  */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h.  */
8186
8187 /* Override any gcc2 internal prototype to avoid an error.  */
8188 #ifdef __cplusplus
8189 extern "C"
8190 #endif
8191 /* We use char because int might match the return type of a gcc2
8192    builtin and then its argument prototype would still apply.  */
8193 char dlopen ();
8194 int
8195 main ()
8196 {
8197 dlopen ();
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204   (eval $ac_link) 2>conftest.er1
8205   ac_status=$?
8206   grep -v '^ *+' conftest.er1 >conftest.err
8207   rm -f conftest.er1
8208   cat conftest.err >&5
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); } &&
8211          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; } &&
8217          { ac_try='test -s conftest$ac_exeext'
8218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219   (eval $ac_try) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; }; then
8223   ac_cv_lib_dl_dlopen=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228 ac_cv_lib_dl_dlopen=no
8229 fi
8230 rm -f conftest.err conftest.$ac_objext \
8231       conftest$ac_exeext conftest.$ac_ext
8232 LIBS=$ac_check_lib_save_LIBS
8233 fi
8234 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8235 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8236 if test $ac_cv_lib_dl_dlopen = yes; then
8237   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8238 else
8239
8240     lt_cv_dlopen="dyld"
8241     lt_cv_dlopen_libs=
8242     lt_cv_dlopen_self=yes
8243
8244 fi
8245
8246    ;;
8247
8248   *)
8249     echo "$as_me:$LINENO: checking for shl_load" >&5
8250 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8251 if test "${ac_cv_func_shl_load+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8262 #define shl_load innocuous_shl_load
8263
8264 /* System header to define __stub macros and hopefully few prototypes,
8265     which can conflict with char shl_load (); below.
8266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8267     <limits.h> exists even on freestanding compilers.  */
8268
8269 #ifdef __STDC__
8270 # include <limits.h>
8271 #else
8272 # include <assert.h>
8273 #endif
8274
8275 #undef shl_load
8276
8277 /* Override any gcc2 internal prototype to avoid an error.  */
8278 #ifdef __cplusplus
8279 extern "C"
8280 {
8281 #endif
8282 /* We use char because int might match the return type of a gcc2
8283    builtin and then its argument prototype would still apply.  */
8284 char shl_load ();
8285 /* The GNU C library defines this for functions which it implements
8286     to always fail with ENOSYS.  Some functions are actually named
8287     something starting with __ and the normal name is an alias.  */
8288 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8289 choke me
8290 #else
8291 char (*f) () = shl_load;
8292 #endif
8293 #ifdef __cplusplus
8294 }
8295 #endif
8296
8297 int
8298 main ()
8299 {
8300 return f != shl_load;
8301   ;
8302   return 0;
8303 }
8304 _ACEOF
8305 rm -f conftest.$ac_objext conftest$ac_exeext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307   (eval $ac_link) 2>conftest.er1
8308   ac_status=$?
8309   grep -v '^ *+' conftest.er1 >conftest.err
8310   rm -f conftest.er1
8311   cat conftest.err >&5
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); } &&
8314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316   (eval $ac_try) 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); }; } &&
8320          { ac_try='test -s conftest$ac_exeext'
8321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322   (eval $ac_try) 2>&5
8323   ac_status=$?
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); }; }; then
8326   ac_cv_func_shl_load=yes
8327 else
8328   echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8330
8331 ac_cv_func_shl_load=no
8332 fi
8333 rm -f conftest.err conftest.$ac_objext \
8334       conftest$ac_exeext conftest.$ac_ext
8335 fi
8336 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8337 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8338 if test $ac_cv_func_shl_load = yes; then
8339   lt_cv_dlopen="shl_load"
8340 else
8341   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8342 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8343 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346   ac_check_lib_save_LIBS=$LIBS
8347 LIBS="-ldld  $LIBS"
8348 cat >conftest.$ac_ext <<_ACEOF
8349 /* confdefs.h.  */
8350 _ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h.  */
8354
8355 /* Override any gcc2 internal prototype to avoid an error.  */
8356 #ifdef __cplusplus
8357 extern "C"
8358 #endif
8359 /* We use char because int might match the return type of a gcc2
8360    builtin and then its argument prototype would still apply.  */
8361 char shl_load ();
8362 int
8363 main ()
8364 {
8365 shl_load ();
8366   ;
8367   return 0;
8368 }
8369 _ACEOF
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372   (eval $ac_link) 2>conftest.er1
8373   ac_status=$?
8374   grep -v '^ *+' conftest.er1 >conftest.err
8375   rm -f conftest.er1
8376   cat conftest.err >&5
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); } &&
8379          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381   (eval $ac_try) 2>&5
8382   ac_status=$?
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); }; } &&
8385          { ac_try='test -s conftest$ac_exeext'
8386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387   (eval $ac_try) 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); }; }; then
8391   ac_cv_lib_dld_shl_load=yes
8392 else
8393   echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396 ac_cv_lib_dld_shl_load=no
8397 fi
8398 rm -f conftest.err conftest.$ac_objext \
8399       conftest$ac_exeext conftest.$ac_ext
8400 LIBS=$ac_check_lib_save_LIBS
8401 fi
8402 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8403 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8404 if test $ac_cv_lib_dld_shl_load = yes; then
8405   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8406 else
8407   echo "$as_me:$LINENO: checking for dlopen" >&5
8408 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8409 if test "${ac_cv_func_dlopen+set}" = set; then
8410   echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412   cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h.  */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h.  */
8418 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8420 #define dlopen innocuous_dlopen
8421
8422 /* System header to define __stub macros and hopefully few prototypes,
8423     which can conflict with char dlopen (); below.
8424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8425     <limits.h> exists even on freestanding compilers.  */
8426
8427 #ifdef __STDC__
8428 # include <limits.h>
8429 #else
8430 # include <assert.h>
8431 #endif
8432
8433 #undef dlopen
8434
8435 /* Override any gcc2 internal prototype to avoid an error.  */
8436 #ifdef __cplusplus
8437 extern "C"
8438 {
8439 #endif
8440 /* We use char because int might match the return type of a gcc2
8441    builtin and then its argument prototype would still apply.  */
8442 char dlopen ();
8443 /* The GNU C library defines this for functions which it implements
8444     to always fail with ENOSYS.  Some functions are actually named
8445     something starting with __ and the normal name is an alias.  */
8446 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8447 choke me
8448 #else
8449 char (*f) () = dlopen;
8450 #endif
8451 #ifdef __cplusplus
8452 }
8453 #endif
8454
8455 int
8456 main ()
8457 {
8458 return f != dlopen;
8459   ;
8460   return 0;
8461 }
8462 _ACEOF
8463 rm -f conftest.$ac_objext conftest$ac_exeext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465   (eval $ac_link) 2>conftest.er1
8466   ac_status=$?
8467   grep -v '^ *+' conftest.er1 >conftest.err
8468   rm -f conftest.er1
8469   cat conftest.err >&5
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); } &&
8472          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474   (eval $ac_try) 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }; } &&
8478          { ac_try='test -s conftest$ac_exeext'
8479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480   (eval $ac_try) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; }; then
8484   ac_cv_func_dlopen=yes
8485 else
8486   echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8488
8489 ac_cv_func_dlopen=no
8490 fi
8491 rm -f conftest.err conftest.$ac_objext \
8492       conftest$ac_exeext conftest.$ac_ext
8493 fi
8494 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8495 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8496 if test $ac_cv_func_dlopen = yes; then
8497   lt_cv_dlopen="dlopen"
8498 else
8499   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8500 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8501 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8502   echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504   ac_check_lib_save_LIBS=$LIBS
8505 LIBS="-ldl  $LIBS"
8506 cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h.  */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h.  */
8512
8513 /* Override any gcc2 internal prototype to avoid an error.  */
8514 #ifdef __cplusplus
8515 extern "C"
8516 #endif
8517 /* We use char because int might match the return type of a gcc2
8518    builtin and then its argument prototype would still apply.  */
8519 char dlopen ();
8520 int
8521 main ()
8522 {
8523 dlopen ();
8524   ;
8525   return 0;
8526 }
8527 _ACEOF
8528 rm -f conftest.$ac_objext conftest$ac_exeext
8529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530   (eval $ac_link) 2>conftest.er1
8531   ac_status=$?
8532   grep -v '^ *+' conftest.er1 >conftest.err
8533   rm -f conftest.er1
8534   cat conftest.err >&5
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); } &&
8537          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539   (eval $ac_try) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; } &&
8543          { ac_try='test -s conftest$ac_exeext'
8544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545   (eval $ac_try) 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); }; }; then
8549   ac_cv_lib_dl_dlopen=yes
8550 else
8551   echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8553
8554 ac_cv_lib_dl_dlopen=no
8555 fi
8556 rm -f conftest.err conftest.$ac_objext \
8557       conftest$ac_exeext conftest.$ac_ext
8558 LIBS=$ac_check_lib_save_LIBS
8559 fi
8560 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8561 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8562 if test $ac_cv_lib_dl_dlopen = yes; then
8563   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8564 else
8565   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8566 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8567 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8568   echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570   ac_check_lib_save_LIBS=$LIBS
8571 LIBS="-lsvld  $LIBS"
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h.  */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h.  */
8578
8579 /* Override any gcc2 internal prototype to avoid an error.  */
8580 #ifdef __cplusplus
8581 extern "C"
8582 #endif
8583 /* We use char because int might match the return type of a gcc2
8584    builtin and then its argument prototype would still apply.  */
8585 char dlopen ();
8586 int
8587 main ()
8588 {
8589 dlopen ();
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596   (eval $ac_link) 2>conftest.er1
8597   ac_status=$?
8598   grep -v '^ *+' conftest.er1 >conftest.err
8599   rm -f conftest.er1
8600   cat conftest.err >&5
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); } &&
8603          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605   (eval $ac_try) 2>&5
8606   ac_status=$?
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); }; } &&
8609          { ac_try='test -s conftest$ac_exeext'
8610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611   (eval $ac_try) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }; }; then
8615   ac_cv_lib_svld_dlopen=yes
8616 else
8617   echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620 ac_cv_lib_svld_dlopen=no
8621 fi
8622 rm -f conftest.err conftest.$ac_objext \
8623       conftest$ac_exeext conftest.$ac_ext
8624 LIBS=$ac_check_lib_save_LIBS
8625 fi
8626 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8627 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8628 if test $ac_cv_lib_svld_dlopen = yes; then
8629   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8630 else
8631   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8632 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8633 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8634   echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636   ac_check_lib_save_LIBS=$LIBS
8637 LIBS="-ldld  $LIBS"
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h.  */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h.  */
8644
8645 /* Override any gcc2 internal prototype to avoid an error.  */
8646 #ifdef __cplusplus
8647 extern "C"
8648 #endif
8649 /* We use char because int might match the return type of a gcc2
8650    builtin and then its argument prototype would still apply.  */
8651 char dld_link ();
8652 int
8653 main ()
8654 {
8655 dld_link ();
8656   ;
8657   return 0;
8658 }
8659 _ACEOF
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8662   (eval $ac_link) 2>conftest.er1
8663   ac_status=$?
8664   grep -v '^ *+' conftest.er1 >conftest.err
8665   rm -f conftest.er1
8666   cat conftest.err >&5
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); } &&
8669          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671   (eval $ac_try) 2>&5
8672   ac_status=$?
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); }; } &&
8675          { ac_try='test -s conftest$ac_exeext'
8676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677   (eval $ac_try) 2>&5
8678   ac_status=$?
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); }; }; then
8681   ac_cv_lib_dld_dld_link=yes
8682 else
8683   echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8685
8686 ac_cv_lib_dld_dld_link=no
8687 fi
8688 rm -f conftest.err conftest.$ac_objext \
8689       conftest$ac_exeext conftest.$ac_ext
8690 LIBS=$ac_check_lib_save_LIBS
8691 fi
8692 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8693 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8694 if test $ac_cv_lib_dld_dld_link = yes; then
8695   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8696 fi
8697
8698
8699 fi
8700
8701
8702 fi
8703
8704
8705 fi
8706
8707
8708 fi
8709
8710
8711 fi
8712
8713     ;;
8714   esac
8715
8716   if test "x$lt_cv_dlopen" != xno; then
8717     enable_dlopen=yes
8718   else
8719     enable_dlopen=no
8720   fi
8721
8722   case $lt_cv_dlopen in
8723   dlopen)
8724     save_CPPFLAGS="$CPPFLAGS"
8725     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8726
8727     save_LDFLAGS="$LDFLAGS"
8728     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8729
8730     save_LIBS="$LIBS"
8731     LIBS="$lt_cv_dlopen_libs $LIBS"
8732
8733     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8734 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8735 if test "${lt_cv_dlopen_self+set}" = set; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738           if test "$cross_compiling" = yes; then :
8739   lt_cv_dlopen_self=cross
8740 else
8741   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8742   lt_status=$lt_dlunknown
8743   cat > conftest.$ac_ext <<EOF
8744 #line 8744 "configure"
8745 #include "confdefs.h"
8746
8747 #if HAVE_DLFCN_H
8748 #include <dlfcn.h>
8749 #endif
8750
8751 #include <stdio.h>
8752
8753 #ifdef RTLD_GLOBAL
8754 #  define LT_DLGLOBAL           RTLD_GLOBAL
8755 #else
8756 #  ifdef DL_GLOBAL
8757 #    define LT_DLGLOBAL         DL_GLOBAL
8758 #  else
8759 #    define LT_DLGLOBAL         0
8760 #  endif
8761 #endif
8762
8763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8764    find out it does not work in some platform. */
8765 #ifndef LT_DLLAZY_OR_NOW
8766 #  ifdef RTLD_LAZY
8767 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8768 #  else
8769 #    ifdef DL_LAZY
8770 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8771 #    else
8772 #      ifdef RTLD_NOW
8773 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8774 #      else
8775 #        ifdef DL_NOW
8776 #          define LT_DLLAZY_OR_NOW      DL_NOW
8777 #        else
8778 #          define LT_DLLAZY_OR_NOW      0
8779 #        endif
8780 #      endif
8781 #    endif
8782 #  endif
8783 #endif
8784
8785 #ifdef __cplusplus
8786 extern "C" void exit (int);
8787 #endif
8788
8789 void fnord() { int i=42;}
8790 int main ()
8791 {
8792   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8793   int status = $lt_dlunknown;
8794
8795   if (self)
8796     {
8797       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8798       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8799       /* dlclose (self); */
8800     }
8801
8802     exit (status);
8803 }
8804 EOF
8805   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806   (eval $ac_link) 2>&5
8807   ac_status=$?
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8810     (./conftest; exit; ) 2>/dev/null
8811     lt_status=$?
8812     case x$lt_status in
8813       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8814       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8815       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8816     esac
8817   else :
8818     # compilation failed
8819     lt_cv_dlopen_self=no
8820   fi
8821 fi
8822 rm -fr conftest*
8823
8824
8825 fi
8826 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8827 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8828
8829     if test "x$lt_cv_dlopen_self" = xyes; then
8830       LDFLAGS="$LDFLAGS $link_static_flag"
8831       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8832 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8833 if test "${lt_cv_dlopen_self_static+set}" = set; then
8834   echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836           if test "$cross_compiling" = yes; then :
8837   lt_cv_dlopen_self_static=cross
8838 else
8839   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8840   lt_status=$lt_dlunknown
8841   cat > conftest.$ac_ext <<EOF
8842 #line 8842 "configure"
8843 #include "confdefs.h"
8844
8845 #if HAVE_DLFCN_H
8846 #include <dlfcn.h>
8847 #endif
8848
8849 #include <stdio.h>
8850
8851 #ifdef RTLD_GLOBAL
8852 #  define LT_DLGLOBAL           RTLD_GLOBAL
8853 #else
8854 #  ifdef DL_GLOBAL
8855 #    define LT_DLGLOBAL         DL_GLOBAL
8856 #  else
8857 #    define LT_DLGLOBAL         0
8858 #  endif
8859 #endif
8860
8861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8862    find out it does not work in some platform. */
8863 #ifndef LT_DLLAZY_OR_NOW
8864 #  ifdef RTLD_LAZY
8865 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8866 #  else
8867 #    ifdef DL_LAZY
8868 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8869 #    else
8870 #      ifdef RTLD_NOW
8871 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8872 #      else
8873 #        ifdef DL_NOW
8874 #          define LT_DLLAZY_OR_NOW      DL_NOW
8875 #        else
8876 #          define LT_DLLAZY_OR_NOW      0
8877 #        endif
8878 #      endif
8879 #    endif
8880 #  endif
8881 #endif
8882
8883 #ifdef __cplusplus
8884 extern "C" void exit (int);
8885 #endif
8886
8887 void fnord() { int i=42;}
8888 int main ()
8889 {
8890   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8891   int status = $lt_dlunknown;
8892
8893   if (self)
8894     {
8895       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8896       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8897       /* dlclose (self); */
8898     }
8899
8900     exit (status);
8901 }
8902 EOF
8903   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904   (eval $ac_link) 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8908     (./conftest; exit; ) 2>/dev/null
8909     lt_status=$?
8910     case x$lt_status in
8911       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8912       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8913       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8914     esac
8915   else :
8916     # compilation failed
8917     lt_cv_dlopen_self_static=no
8918   fi
8919 fi
8920 rm -fr conftest*
8921
8922
8923 fi
8924 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8925 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8926     fi
8927
8928     CPPFLAGS="$save_CPPFLAGS"
8929     LDFLAGS="$save_LDFLAGS"
8930     LIBS="$save_LIBS"
8931     ;;
8932   esac
8933
8934   case $lt_cv_dlopen_self in
8935   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8936   *) enable_dlopen_self=unknown ;;
8937   esac
8938
8939   case $lt_cv_dlopen_self_static in
8940   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8941   *) enable_dlopen_self_static=unknown ;;
8942   esac
8943 fi
8944
8945
8946 # Report which librarie types wil actually be built
8947 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8948 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8949 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8950 echo "${ECHO_T}$can_build_shared" >&6
8951
8952 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8953 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8954 test "$can_build_shared" = "no" && enable_shared=no
8955
8956 # On AIX, shared libraries and static libraries use the same namespace, and
8957 # are all built from PIC.
8958 case "$host_os" in
8959 aix3*)
8960   test "$enable_shared" = yes && enable_static=no
8961   if test -n "$RANLIB"; then
8962     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8963     postinstall_cmds='$RANLIB $lib'
8964   fi
8965   ;;
8966
8967 aix4* | aix5*)
8968   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8969     test "$enable_shared" = yes && enable_static=no
8970   fi
8971   ;;
8972   darwin* | rhapsody*)
8973   if test "$GCC" = yes; then
8974     archive_cmds_need_lc=no
8975     case "$host_os" in
8976     rhapsody* | darwin1.[012])
8977       allow_undefined_flag='-undefined suppress'
8978       ;;
8979     *) # Darwin 1.3 on
8980       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8981         allow_undefined_flag='-flat_namespace -undefined suppress'
8982       else
8983         case ${MACOSX_DEPLOYMENT_TARGET} in
8984           10.[012])
8985             allow_undefined_flag='-flat_namespace -undefined suppress'
8986             ;;
8987           10.*)
8988             allow_undefined_flag='-undefined dynamic_lookup'
8989             ;;
8990         esac
8991       fi
8992       ;;
8993     esac
8994     output_verbose_link_cmd='echo'
8995     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8996     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8997     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8998     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}'
8999     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}'
9000     hardcode_direct=no
9001     hardcode_automatic=yes
9002     hardcode_shlibpath_var=unsupported
9003     whole_archive_flag_spec='-all_load $convenience'
9004     link_all_deplibs=yes
9005   else
9006     ld_shlibs=no
9007   fi
9008     ;;
9009 esac
9010 echo "$as_me:$LINENO: result: $enable_shared" >&5
9011 echo "${ECHO_T}$enable_shared" >&6
9012
9013 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9014 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9015 # Make sure either enable_shared or enable_static is yes.
9016 test "$enable_shared" = yes || enable_static=yes
9017 echo "$as_me:$LINENO: result: $enable_static" >&5
9018 echo "${ECHO_T}$enable_static" >&6
9019
9020 # The else clause should only fire when bootstrapping the
9021 # libtool distribution, otherwise you forgot to ship ltmain.sh
9022 # with your package, and you will get complaints that there are
9023 # no rules to generate ltmain.sh.
9024 if test -f "$ltmain"; then
9025   # See if we are running on zsh, and set the options which allow our commands through
9026   # without removal of \ escapes.
9027   if test -n "${ZSH_VERSION+set}" ; then
9028     setopt NO_GLOB_SUBST
9029   fi
9030   # Now quote all the things that may contain metacharacters while being
9031   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9032   # variables and quote the copies for generation of the libtool script.
9033   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9034     SED SHELL STRIP \
9035     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9036     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9037     deplibs_check_method reload_flag reload_cmds need_locks \
9038     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9039     lt_cv_sys_global_symbol_to_c_name_address \
9040     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9041     old_postinstall_cmds old_postuninstall_cmds \
9042     compiler \
9043     CC \
9044     LD \
9045     lt_prog_compiler_wl \
9046     lt_prog_compiler_pic \
9047     lt_prog_compiler_static \
9048     lt_prog_compiler_no_builtin_flag \
9049     export_dynamic_flag_spec \
9050     thread_safe_flag_spec \
9051     whole_archive_flag_spec \
9052     enable_shared_with_static_runtimes \
9053     old_archive_cmds \
9054     old_archive_from_new_cmds \
9055     predep_objects \
9056     postdep_objects \
9057     predeps \
9058     postdeps \
9059     compiler_lib_search_path \
9060     archive_cmds \
9061     archive_expsym_cmds \
9062     postinstall_cmds \
9063     postuninstall_cmds \
9064     old_archive_from_expsyms_cmds \
9065     allow_undefined_flag \
9066     no_undefined_flag \
9067     export_symbols_cmds \
9068     hardcode_libdir_flag_spec \
9069     hardcode_libdir_flag_spec_ld \
9070     hardcode_libdir_separator \
9071     hardcode_automatic \
9072     module_cmds \
9073     module_expsym_cmds \
9074     lt_cv_prog_compiler_c_o \
9075     exclude_expsyms \
9076     include_expsyms; do
9077
9078     case $var in
9079     old_archive_cmds | \
9080     old_archive_from_new_cmds | \
9081     archive_cmds | \
9082     archive_expsym_cmds | \
9083     module_cmds | \
9084     module_expsym_cmds | \
9085     old_archive_from_expsyms_cmds | \
9086     export_symbols_cmds | \
9087     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9088     postinstall_cmds | postuninstall_cmds | \
9089     old_postinstall_cmds | old_postuninstall_cmds | \
9090     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9091       # Double-quote double-evaled strings.
9092       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9093       ;;
9094     *)
9095       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9096       ;;
9097     esac
9098   done
9099
9100   case $lt_echo in
9101   *'\$0 --fallback-echo"')
9102     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9103     ;;
9104   esac
9105
9106 cfgfile="${ofile}T"
9107   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9108   $rm -f "$cfgfile"
9109   { echo "$as_me:$LINENO: creating $ofile" >&5
9110 echo "$as_me: creating $ofile" >&6;}
9111
9112   cat <<__EOF__ >> "$cfgfile"
9113 #! $SHELL
9114
9115 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9116 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9117 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9118 #
9119 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9120 # Free Software Foundation, Inc.
9121 #
9122 # This file is part of GNU Libtool:
9123 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9124 #
9125 # This program is free software; you can redistribute it and/or modify
9126 # it under the terms of the GNU General Public License as published by
9127 # the Free Software Foundation; either version 2 of the License, or
9128 # (at your option) any later version.
9129 #
9130 # This program is distributed in the hope that it will be useful, but
9131 # WITHOUT ANY WARRANTY; without even the implied warranty of
9132 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9133 # General Public License for more details.
9134 #
9135 # You should have received a copy of the GNU General Public License
9136 # along with this program; if not, write to the Free Software
9137 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9138 #
9139 # As a special exception to the GNU General Public License, if you
9140 # distribute this file as part of a program that contains a
9141 # configuration script generated by Autoconf, you may include it under
9142 # the same distribution terms that you use for the rest of that program.
9143
9144 # A sed program that does not truncate output.
9145 SED=$lt_SED
9146
9147 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9148 Xsed="$SED -e s/^X//"
9149
9150 # The HP-UX ksh and POSIX shell print the target directory to stdout
9151 # if CDPATH is set.
9152 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9153
9154 # The names of the tagged configurations supported by this script.
9155 available_tags=
9156
9157 # ### BEGIN LIBTOOL CONFIG
9158
9159 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9160
9161 # Shell to use when invoking shell scripts.
9162 SHELL=$lt_SHELL
9163
9164 # Whether or not to build shared libraries.
9165 build_libtool_libs=$enable_shared
9166
9167 # Whether or not to build static libraries.
9168 build_old_libs=$enable_static
9169
9170 # Whether or not to add -lc for building shared libraries.
9171 build_libtool_need_lc=$archive_cmds_need_lc
9172
9173 # Whether or not to disallow shared libs when runtime libs are static
9174 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9175
9176 # Whether or not to optimize for fast installation.
9177 fast_install=$enable_fast_install
9178
9179 # The host system.
9180 host_alias=$host_alias
9181 host=$host
9182
9183 # An echo program that does not interpret backslashes.
9184 echo=$lt_echo
9185
9186 # The archiver.
9187 AR=$lt_AR
9188 AR_FLAGS=$lt_AR_FLAGS
9189
9190 # A C compiler.
9191 LTCC=$lt_LTCC
9192
9193 # A language-specific compiler.
9194 CC=$lt_compiler
9195
9196 # Is the compiler the GNU C compiler?
9197 with_gcc=$GCC
9198
9199 # An ERE matcher.
9200 EGREP=$lt_EGREP
9201
9202 # The linker used to build libraries.
9203 LD=$lt_LD
9204
9205 # Whether we need hard or soft links.
9206 LN_S=$lt_LN_S
9207
9208 # A BSD-compatible nm program.
9209 NM=$lt_NM
9210
9211 # A symbol stripping program
9212 STRIP=$lt_STRIP
9213
9214 # Used to examine libraries when file_magic_cmd begins "file"
9215 MAGIC_CMD=$MAGIC_CMD
9216
9217 # Used on cygwin: DLL creation program.
9218 DLLTOOL="$DLLTOOL"
9219
9220 # Used on cygwin: object dumper.
9221 OBJDUMP="$OBJDUMP"
9222
9223 # Used on cygwin: assembler.
9224 AS="$AS"
9225
9226 # The name of the directory that contains temporary libtool files.
9227 objdir=$objdir
9228
9229 # How to create reloadable object files.
9230 reload_flag=$lt_reload_flag
9231 reload_cmds=$lt_reload_cmds
9232
9233 # How to pass a linker flag through the compiler.
9234 wl=$lt_lt_prog_compiler_wl
9235
9236 # Object file suffix (normally "o").
9237 objext="$ac_objext"
9238
9239 # Old archive suffix (normally "a").
9240 libext="$libext"
9241
9242 # Shared library suffix (normally ".so").
9243 shrext_cmds='$shrext_cmds'
9244
9245 # Executable file suffix (normally "").
9246 exeext="$exeext"
9247
9248 # Additional compiler flags for building library objects.
9249 pic_flag=$lt_lt_prog_compiler_pic
9250 pic_mode=$pic_mode
9251
9252 # What is the maximum length of a command?
9253 max_cmd_len=$lt_cv_sys_max_cmd_len
9254
9255 # Does compiler simultaneously support -c and -o options?
9256 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9257
9258 # Must we lock files when doing compilation ?
9259 need_locks=$lt_need_locks
9260
9261 # Do we need the lib prefix for modules?
9262 need_lib_prefix=$need_lib_prefix
9263
9264 # Do we need a version for libraries?
9265 need_version=$need_version
9266
9267 # Whether dlopen is supported.
9268 dlopen_support=$enable_dlopen
9269
9270 # Whether dlopen of programs is supported.
9271 dlopen_self=$enable_dlopen_self
9272
9273 # Whether dlopen of statically linked programs is supported.
9274 dlopen_self_static=$enable_dlopen_self_static
9275
9276 # Compiler flag to prevent dynamic linking.
9277 link_static_flag=$lt_lt_prog_compiler_static
9278
9279 # Compiler flag to turn off builtin functions.
9280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9281
9282 # Compiler flag to allow reflexive dlopens.
9283 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9284
9285 # Compiler flag to generate shared objects directly from archives.
9286 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9287
9288 # Compiler flag to generate thread-safe objects.
9289 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9290
9291 # Library versioning type.
9292 version_type=$version_type
9293
9294 # Format of library name prefix.
9295 libname_spec=$lt_libname_spec
9296
9297 # List of archive names.  First name is the real one, the rest are links.
9298 # The last name is the one that the linker finds with -lNAME.
9299 library_names_spec=$lt_library_names_spec
9300
9301 # The coded name of the library, if different from the real name.
9302 soname_spec=$lt_soname_spec
9303
9304 # Commands used to build and install an old-style archive.
9305 RANLIB=$lt_RANLIB
9306 old_archive_cmds=$lt_old_archive_cmds
9307 old_postinstall_cmds=$lt_old_postinstall_cmds
9308 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9309
9310 # Create an old-style archive from a shared archive.
9311 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9312
9313 # Create a temporary old-style archive to link instead of a shared archive.
9314 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9315
9316 # Commands used to build and install a shared archive.
9317 archive_cmds=$lt_archive_cmds
9318 archive_expsym_cmds=$lt_archive_expsym_cmds
9319 postinstall_cmds=$lt_postinstall_cmds
9320 postuninstall_cmds=$lt_postuninstall_cmds
9321
9322 # Commands used to build a loadable module (assumed same as above if empty)
9323 module_cmds=$lt_module_cmds
9324 module_expsym_cmds=$lt_module_expsym_cmds
9325
9326 # Commands to strip libraries.
9327 old_striplib=$lt_old_striplib
9328 striplib=$lt_striplib
9329
9330 # Dependencies to place before the objects being linked to create a
9331 # shared library.
9332 predep_objects=$lt_predep_objects
9333
9334 # Dependencies to place after the objects being linked to create a
9335 # shared library.
9336 postdep_objects=$lt_postdep_objects
9337
9338 # Dependencies to place before the objects being linked to create a
9339 # shared library.
9340 predeps=$lt_predeps
9341
9342 # Dependencies to place after the objects being linked to create a
9343 # shared library.
9344 postdeps=$lt_postdeps
9345
9346 # The library search path used internally by the compiler when linking
9347 # a shared library.
9348 compiler_lib_search_path=$lt_compiler_lib_search_path
9349
9350 # Method to check whether dependent libraries are shared objects.
9351 deplibs_check_method=$lt_deplibs_check_method
9352
9353 # Command to use when deplibs_check_method == file_magic.
9354 file_magic_cmd=$lt_file_magic_cmd
9355
9356 # Flag that allows shared libraries with undefined symbols to be built.
9357 allow_undefined_flag=$lt_allow_undefined_flag
9358
9359 # Flag that forces no undefined symbols.
9360 no_undefined_flag=$lt_no_undefined_flag
9361
9362 # Commands used to finish a libtool library installation in a directory.
9363 finish_cmds=$lt_finish_cmds
9364
9365 # Same as above, but a single script fragment to be evaled but not shown.
9366 finish_eval=$lt_finish_eval
9367
9368 # Take the output of nm and produce a listing of raw symbols and C names.
9369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9370
9371 # Transform the output of nm in a proper C declaration
9372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9373
9374 # Transform the output of nm in a C name address pair
9375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9376
9377 # This is the shared library runtime path variable.
9378 runpath_var=$runpath_var
9379
9380 # This is the shared library path variable.
9381 shlibpath_var=$shlibpath_var
9382
9383 # Is shlibpath searched before the hard-coded library search path?
9384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9385
9386 # How to hardcode a shared library path into an executable.
9387 hardcode_action=$hardcode_action
9388
9389 # Whether we should hardcode library paths into libraries.
9390 hardcode_into_libs=$hardcode_into_libs
9391
9392 # Flag to hardcode \$libdir into a binary during linking.
9393 # This must work even if \$libdir does not exist.
9394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9395
9396 # If ld is used when linking, flag to hardcode \$libdir into
9397 # a binary during linking. This must work even if \$libdir does
9398 # not exist.
9399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9400
9401 # Whether we need a single -rpath flag with a separated argument.
9402 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9403
9404 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9405 # resulting binary.
9406 hardcode_direct=$hardcode_direct
9407
9408 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9409 # resulting binary.
9410 hardcode_minus_L=$hardcode_minus_L
9411
9412 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9413 # the resulting binary.
9414 hardcode_shlibpath_var=$hardcode_shlibpath_var
9415
9416 # Set to yes if building a shared library automatically hardcodes DIR into the library
9417 # and all subsequent libraries and executables linked against it.
9418 hardcode_automatic=$hardcode_automatic
9419
9420 # Variables whose values should be saved in libtool wrapper scripts and
9421 # restored at relink time.
9422 variables_saved_for_relink="$variables_saved_for_relink"
9423
9424 # Whether libtool must link a program against all its dependency libraries.
9425 link_all_deplibs=$link_all_deplibs
9426
9427 # Compile-time system search path for libraries
9428 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9429
9430 # Run-time system search path for libraries
9431 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9432
9433 # Fix the shell variable \$srcfile for the compiler.
9434 fix_srcfile_path="$fix_srcfile_path"
9435
9436 # Set to yes if exported symbols are required.
9437 always_export_symbols=$always_export_symbols
9438
9439 # The commands to list exported symbols.
9440 export_symbols_cmds=$lt_export_symbols_cmds
9441
9442 # The commands to extract the exported symbol list from a shared archive.
9443 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9444
9445 # Symbols that should not be listed in the preloaded symbols.
9446 exclude_expsyms=$lt_exclude_expsyms
9447
9448 # Symbols that must always be exported.
9449 include_expsyms=$lt_include_expsyms
9450
9451 # ### END LIBTOOL CONFIG
9452
9453 __EOF__
9454
9455
9456   case $host_os in
9457   aix3*)
9458     cat <<\EOF >> "$cfgfile"
9459
9460 # AIX sometimes has problems with the GCC collect2 program.  For some
9461 # reason, if we set the COLLECT_NAMES environment variable, the problems
9462 # vanish in a puff of smoke.
9463 if test "X${COLLECT_NAMES+set}" != Xset; then
9464   COLLECT_NAMES=
9465   export COLLECT_NAMES
9466 fi
9467 EOF
9468     ;;
9469   esac
9470
9471   # We use sed instead of cat because bash on DJGPP gets confused if
9472   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9473   # text mode, it properly converts lines to CR/LF.  This bash problem
9474   # is reportedly fixed, but why not run on old versions too?
9475   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9476
9477   mv -f "$cfgfile" "$ofile" || \
9478     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9479   chmod +x "$ofile"
9480
9481 else
9482   # If there is no Makefile yet, we rely on a make rule to execute
9483   # `config.status --recheck' to rerun these tests and create the
9484   # libtool script then.
9485   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9486   if test -f "$ltmain_in"; then
9487     test -f Makefile && make "$ltmain"
9488   fi
9489 fi
9490
9491
9492 ac_ext=c
9493 ac_cpp='$CPP $CPPFLAGS'
9494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9497
9498 CC="$lt_save_CC"
9499
9500
9501 # Check whether --with-tags or --without-tags was given.
9502 if test "${with_tags+set}" = set; then
9503   withval="$with_tags"
9504   tagnames="$withval"
9505 fi;
9506
9507 if test -f "$ltmain" && test -n "$tagnames"; then
9508   if test ! -f "${ofile}"; then
9509     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9510 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9511   fi
9512
9513   if test -z "$LTCC"; then
9514     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9515     if test -z "$LTCC"; then
9516       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9517 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9518     else
9519       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9520 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9521     fi
9522   fi
9523
9524   # Extract list of available tagged configurations in $ofile.
9525   # Note that this assumes the entire list is on one line.
9526   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9527
9528   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9529   for tagname in $tagnames; do
9530     IFS="$lt_save_ifs"
9531     # Check whether tagname contains only valid characters
9532     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9533     "") ;;
9534     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9535 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9536    { (exit 1); exit 1; }; }
9537         ;;
9538     esac
9539
9540     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9541     then
9542       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9543 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9544    { (exit 1); exit 1; }; }
9545     fi
9546
9547     # Update the list of available tags.
9548     if test -n "$tagname"; then
9549       echo appending configuration tag \"$tagname\" to $ofile
9550
9551       case $tagname in
9552       CXX)
9553         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9554           ac_ext=cc
9555 ac_cpp='$CXXCPP $CPPFLAGS'
9556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9559
9560
9561
9562
9563 archive_cmds_need_lc_CXX=no
9564 allow_undefined_flag_CXX=
9565 always_export_symbols_CXX=no
9566 archive_expsym_cmds_CXX=
9567 export_dynamic_flag_spec_CXX=
9568 hardcode_direct_CXX=no
9569 hardcode_libdir_flag_spec_CXX=
9570 hardcode_libdir_flag_spec_ld_CXX=
9571 hardcode_libdir_separator_CXX=
9572 hardcode_minus_L_CXX=no
9573 hardcode_automatic_CXX=no
9574 module_cmds_CXX=
9575 module_expsym_cmds_CXX=
9576 link_all_deplibs_CXX=unknown
9577 old_archive_cmds_CXX=$old_archive_cmds
9578 no_undefined_flag_CXX=
9579 whole_archive_flag_spec_CXX=
9580 enable_shared_with_static_runtimes_CXX=no
9581
9582 # Dependencies to place before and after the object being linked:
9583 predep_objects_CXX=
9584 postdep_objects_CXX=
9585 predeps_CXX=
9586 postdeps_CXX=
9587 compiler_lib_search_path_CXX=
9588
9589 # Source file extension for C++ test sources.
9590 ac_ext=cc
9591
9592 # Object file extension for compiled C++ test sources.
9593 objext=o
9594 objext_CXX=$objext
9595
9596 # Code to be used in simple compile tests
9597 lt_simple_compile_test_code="int some_variable = 0;\n"
9598
9599 # Code to be used in simple link tests
9600 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9601
9602 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9603
9604 # If no C compiler was specified, use CC.
9605 LTCC=${LTCC-"$CC"}
9606
9607 # Allow CC to be a program name with arguments.
9608 compiler=$CC
9609
9610
9611 # Allow CC to be a program name with arguments.
9612 lt_save_CC=$CC
9613 lt_save_LD=$LD
9614 lt_save_GCC=$GCC
9615 GCC=$GXX
9616 lt_save_with_gnu_ld=$with_gnu_ld
9617 lt_save_path_LD=$lt_cv_path_LD
9618 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9619   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9620 else
9621   unset lt_cv_prog_gnu_ld
9622 fi
9623 if test -n "${lt_cv_path_LDCXX+set}"; then
9624   lt_cv_path_LD=$lt_cv_path_LDCXX
9625 else
9626   unset lt_cv_path_LD
9627 fi
9628 test -z "${LDCXX+set}" || LD=$LDCXX
9629 CC=${CXX-"c++"}
9630 compiler=$CC
9631 compiler_CXX=$CC
9632 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9633
9634 # We don't want -fno-exception wen compiling C++ code, so set the
9635 # no_builtin_flag separately
9636 if test "$GXX" = yes; then
9637   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9638 else
9639   lt_prog_compiler_no_builtin_flag_CXX=
9640 fi
9641
9642 if test "$GXX" = yes; then
9643   # Set up default GNU C++ configuration
9644
9645
9646 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9647 if test "${with_gnu_ld+set}" = set; then
9648   withval="$with_gnu_ld"
9649   test "$withval" = no || with_gnu_ld=yes
9650 else
9651   with_gnu_ld=no
9652 fi;
9653 ac_prog=ld
9654 if test "$GCC" = yes; then
9655   # Check if gcc -print-prog-name=ld gives a path.
9656   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9657 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9658   case $host in
9659   *-*-mingw*)
9660     # gcc leaves a trailing carriage return which upsets mingw
9661     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9662   *)
9663     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9664   esac
9665   case $ac_prog in
9666     # Accept absolute paths.
9667     [\\/]* | ?:[\\/]*)
9668       re_direlt='/[^/][^/]*/\.\./'
9669       # Canonicalize the pathname of ld
9670       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9671       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9672         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9673       done
9674       test -z "$LD" && LD="$ac_prog"
9675       ;;
9676   "")
9677     # If it fails, then pretend we aren't using GCC.
9678     ac_prog=ld
9679     ;;
9680   *)
9681     # If it is relative, then search for the first ld in PATH.
9682     with_gnu_ld=unknown
9683     ;;
9684   esac
9685 elif test "$with_gnu_ld" = yes; then
9686   echo "$as_me:$LINENO: checking for GNU ld" >&5
9687 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9688 else
9689   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9690 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9691 fi
9692 if test "${lt_cv_path_LD+set}" = set; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695   if test -z "$LD"; then
9696   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9697   for ac_dir in $PATH; do
9698     IFS="$lt_save_ifs"
9699     test -z "$ac_dir" && ac_dir=.
9700     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9701       lt_cv_path_LD="$ac_dir/$ac_prog"
9702       # Check to see if the program is GNU ld.  I'd rather use --version,
9703       # but apparently some GNU ld's only accept -v.
9704       # Break only if it was the GNU/non-GNU ld that we prefer.
9705       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9706       *GNU* | *'with BFD'*)
9707         test "$with_gnu_ld" != no && break
9708         ;;
9709       *)
9710         test "$with_gnu_ld" != yes && break
9711         ;;
9712       esac
9713     fi
9714   done
9715   IFS="$lt_save_ifs"
9716 else
9717   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9718 fi
9719 fi
9720
9721 LD="$lt_cv_path_LD"
9722 if test -n "$LD"; then
9723   echo "$as_me:$LINENO: result: $LD" >&5
9724 echo "${ECHO_T}$LD" >&6
9725 else
9726   echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6
9728 fi
9729 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9730 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9731    { (exit 1); exit 1; }; }
9732 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9733 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9734 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9735   echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9738 case `$LD -v 2>&1 </dev/null` in
9739 *GNU* | *'with BFD'*)
9740   lt_cv_prog_gnu_ld=yes
9741   ;;
9742 *)
9743   lt_cv_prog_gnu_ld=no
9744   ;;
9745 esac
9746 fi
9747 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9748 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9749 with_gnu_ld=$lt_cv_prog_gnu_ld
9750
9751
9752
9753   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9754   # archiving commands below assume that GNU ld is being used.
9755   if test "$with_gnu_ld" = yes; then
9756     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9757     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'
9758
9759     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9760     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9761
9762     # If archive_cmds runs LD, not CC, wlarc should be empty
9763     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9764     #     investigate it a little bit more. (MM)
9765     wlarc='${wl}'
9766
9767     # ancient GNU ld didn't support --whole-archive et. al.
9768     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9769         grep 'no-whole-archive' > /dev/null; then
9770       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9771     else
9772       whole_archive_flag_spec_CXX=
9773     fi
9774   else
9775     with_gnu_ld=no
9776     wlarc=
9777
9778     # A generic and very simple default shared library creation
9779     # command for GNU C++ for the case where it uses the native
9780     # linker, instead of GNU ld.  If possible, this setting should
9781     # overridden to take advantage of the native linker features on
9782     # the platform it is being used on.
9783     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9784   fi
9785
9786   # Commands to make compiler produce verbose output that lists
9787   # what "hidden" libraries, object files and flags are used when
9788   # linking a shared library.
9789   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9790
9791 else
9792   GXX=no
9793   with_gnu_ld=no
9794   wlarc=
9795 fi
9796
9797 # PORTME: fill in a description of your system's C++ link characteristics
9798 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9799 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9800 ld_shlibs_CXX=yes
9801 case $host_os in
9802   aix3*)
9803     # FIXME: insert proper C++ library support
9804     ld_shlibs_CXX=no
9805     ;;
9806   aix4* | aix5*)
9807     if test "$host_cpu" = ia64; then
9808       # On IA64, the linker does run time linking by default, so we don't
9809       # have to do anything special.
9810       aix_use_runtimelinking=no
9811       exp_sym_flag='-Bexport'
9812       no_entry_flag=""
9813     else
9814       aix_use_runtimelinking=no
9815
9816       # Test if we are trying to use run time linking or normal
9817       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9818       # need to do runtime linking.
9819       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9820         for ld_flag in $LDFLAGS; do
9821           case $ld_flag in
9822           *-brtl*)
9823             aix_use_runtimelinking=yes
9824             break
9825             ;;
9826           esac
9827         done
9828       esac
9829
9830       exp_sym_flag='-bexport'
9831       no_entry_flag='-bnoentry'
9832     fi
9833
9834     # When large executables or shared objects are built, AIX ld can
9835     # have problems creating the table of contents.  If linking a library
9836     # or program results in "error TOC overflow" add -mminimal-toc to
9837     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9838     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9839
9840     archive_cmds_CXX=''
9841     hardcode_direct_CXX=yes
9842     hardcode_libdir_separator_CXX=':'
9843     link_all_deplibs_CXX=yes
9844
9845     if test "$GXX" = yes; then
9846       case $host_os in aix4.012|aix4.012.*)
9847       # We only want to do this on AIX 4.2 and lower, the check
9848       # below for broken collect2 doesn't work under 4.3+
9849         collect2name=`${CC} -print-prog-name=collect2`
9850         if test -f "$collect2name" && \
9851            strings "$collect2name" | grep resolve_lib_name >/dev/null
9852         then
9853           # We have reworked collect2
9854           hardcode_direct_CXX=yes
9855         else
9856           # We have old collect2
9857           hardcode_direct_CXX=unsupported
9858           # It fails to find uninstalled libraries when the uninstalled
9859           # path is not listed in the libpath.  Setting hardcode_minus_L
9860           # to unsupported forces relinking
9861           hardcode_minus_L_CXX=yes
9862           hardcode_libdir_flag_spec_CXX='-L$libdir'
9863           hardcode_libdir_separator_CXX=
9864         fi
9865       esac
9866       shared_flag='-shared'
9867     else
9868       # not using gcc
9869       if test "$host_cpu" = ia64; then
9870         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9871         # chokes on -Wl,-G. The following line is correct:
9872         shared_flag='-G'
9873       else
9874         if test "$aix_use_runtimelinking" = yes; then
9875           shared_flag='${wl}-G'
9876         else
9877           shared_flag='${wl}-bM:SRE'
9878         fi
9879       fi
9880     fi
9881
9882     # It seems that -bexpall does not export symbols beginning with
9883     # underscore (_), so it is better to generate a list of symbols to export.
9884     always_export_symbols_CXX=yes
9885     if test "$aix_use_runtimelinking" = yes; then
9886       # Warning - without using the other runtime loading flags (-brtl),
9887       # -berok will link without error, but may produce a broken library.
9888       allow_undefined_flag_CXX='-berok'
9889       # Determine the default libpath from the value encoded in an empty executable.
9890       cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h.  */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h.  */
9896
9897 int
9898 main ()
9899 {
9900
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907   (eval $ac_link) 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916   (eval $ac_try) 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); }; } &&
9920          { ac_try='test -s conftest$ac_exeext'
9921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922   (eval $ac_try) 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; }; then
9926
9927 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9928 }'`
9929 # Check for a 64-bit object if we didn't find anything.
9930 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; }
9931 }'`; fi
9932 else
9933   echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9935
9936 fi
9937 rm -f conftest.err conftest.$ac_objext \
9938       conftest$ac_exeext conftest.$ac_ext
9939 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9940
9941       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9942
9943       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"
9944      else
9945       if test "$host_cpu" = ia64; then
9946         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9947         allow_undefined_flag_CXX="-z nodefs"
9948         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"
9949       else
9950         # Determine the default libpath from the value encoded in an empty executable.
9951         cat >conftest.$ac_ext <<_ACEOF
9952 /* confdefs.h.  */
9953 _ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h.  */
9957
9958 int
9959 main ()
9960 {
9961
9962   ;
9963   return 0;
9964 }
9965 _ACEOF
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968   (eval $ac_link) 2>conftest.er1
9969   ac_status=$?
9970   grep -v '^ *+' conftest.er1 >conftest.err
9971   rm -f conftest.er1
9972   cat conftest.err >&5
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); } &&
9975          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977   (eval $ac_try) 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); }; } &&
9981          { ac_try='test -s conftest$ac_exeext'
9982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983   (eval $ac_try) 2>&5
9984   ac_status=$?
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); }; }; then
9987
9988 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9989 }'`
9990 # Check for a 64-bit object if we didn't find anything.
9991 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; }
9992 }'`; fi
9993 else
9994   echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 fi
9998 rm -f conftest.err conftest.$ac_objext \
9999       conftest$ac_exeext conftest.$ac_ext
10000 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10001
10002         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10003         # Warning - without using the other run time loading flags,
10004         # -berok will link without error, but may produce a broken library.
10005         no_undefined_flag_CXX=' ${wl}-bernotok'
10006         allow_undefined_flag_CXX=' ${wl}-berok'
10007         # -bexpall does not export symbols beginning with underscore (_)
10008         always_export_symbols_CXX=yes
10009         # Exported symbols can be pulled into shared objects from archives
10010         whole_archive_flag_spec_CXX=' '
10011         archive_cmds_need_lc_CXX=yes
10012         # This is similar to how AIX traditionally builds it's shared libraries.
10013         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'
10014       fi
10015     fi
10016     ;;
10017   chorus*)
10018     case $cc_basename in
10019       *)
10020         # FIXME: insert proper C++ library support
10021         ld_shlibs_CXX=no
10022         ;;
10023     esac
10024     ;;
10025
10026   cygwin* | mingw* | pw32*)
10027     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10028     # as there is no search path for DLLs.
10029     hardcode_libdir_flag_spec_CXX='-L$libdir'
10030     allow_undefined_flag_CXX=unsupported
10031     always_export_symbols_CXX=no
10032     enable_shared_with_static_runtimes_CXX=yes
10033
10034     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10035       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'
10036       # If the export-symbols file already is a .def file (1st line
10037       # is EXPORTS), use it as is; otherwise, prepend...
10038       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10039         cp $export_symbols $output_objdir/$soname.def;
10040       else
10041         echo EXPORTS > $output_objdir/$soname.def;
10042         cat $export_symbols >> $output_objdir/$soname.def;
10043       fi~
10044       $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'
10045     else
10046       ld_shlibs_CXX=no
10047     fi
10048   ;;
10049
10050   darwin* | rhapsody*)
10051   if test "$GXX" = yes; then
10052     archive_cmds_need_lc_CXX=no
10053     case "$host_os" in
10054     rhapsody* | darwin1.[012])
10055       allow_undefined_flag_CXX='-undefined suppress'
10056       ;;
10057     *) # Darwin 1.3 on
10058       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10059         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10060       else
10061         case ${MACOSX_DEPLOYMENT_TARGET} in
10062           10.[012])
10063             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10064             ;;
10065           10.*)
10066             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10067             ;;
10068         esac
10069       fi
10070       ;;
10071     esac
10072     lt_int_apple_cc_single_mod=no
10073     output_verbose_link_cmd='echo'
10074     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10075       lt_int_apple_cc_single_mod=yes
10076     fi
10077     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10078       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10079     else
10080       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'
10081     fi
10082     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10083
10084     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10085     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10086       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}'
10087     else
10088       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}'
10089     fi
10090     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}'
10091     hardcode_direct_CXX=no
10092     hardcode_automatic_CXX=yes
10093     hardcode_shlibpath_var_CXX=unsupported
10094     whole_archive_flag_spec_CXX='-all_load $convenience'
10095     link_all_deplibs_CXX=yes
10096   else
10097     ld_shlibs_CXX=no
10098   fi
10099     ;;
10100
10101   dgux*)
10102     case $cc_basename in
10103       ec++)
10104         # FIXME: insert proper C++ library support
10105         ld_shlibs_CXX=no
10106         ;;
10107       ghcx)
10108         # Green Hills C++ Compiler
10109         # FIXME: insert proper C++ library support
10110         ld_shlibs_CXX=no
10111         ;;
10112       *)
10113         # FIXME: insert proper C++ library support
10114         ld_shlibs_CXX=no
10115         ;;
10116     esac
10117     ;;
10118   freebsd12*)
10119     # C++ shared libraries reported to be fairly broken before switch to ELF
10120     ld_shlibs_CXX=no
10121     ;;
10122   freebsd-elf*)
10123     archive_cmds_need_lc_CXX=no
10124     ;;
10125   freebsd* | kfreebsd*-gnu)
10126     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10127     # conventions
10128     ld_shlibs_CXX=yes
10129     ;;
10130   gnu*)
10131     ;;
10132   hpux9*)
10133     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10134     hardcode_libdir_separator_CXX=:
10135     export_dynamic_flag_spec_CXX='${wl}-E'
10136     hardcode_direct_CXX=yes
10137     hardcode_minus_L_CXX=yes # Not in the search PATH,
10138                                 # but as the default
10139                                 # location of the library.
10140
10141     case $cc_basename in
10142     CC)
10143       # FIXME: insert proper C++ library support
10144       ld_shlibs_CXX=no
10145       ;;
10146     aCC)
10147       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'
10148       # Commands to make compiler produce verbose output that lists
10149       # what "hidden" libraries, object files and flags are used when
10150       # linking a shared library.
10151       #
10152       # There doesn't appear to be a way to prevent this compiler from
10153       # explicitly linking system object files so we need to strip them
10154       # from the output so that they don't get included in the library
10155       # dependencies.
10156       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'
10157       ;;
10158     *)
10159       if test "$GXX" = yes; then
10160         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'
10161       else
10162         # FIXME: insert proper C++ library support
10163         ld_shlibs_CXX=no
10164       fi
10165       ;;
10166     esac
10167     ;;
10168   hpux10*|hpux11*)
10169     if test $with_gnu_ld = no; then
10170       case "$host_cpu" in
10171       hppa*64*)
10172         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10173         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10174         hardcode_libdir_separator_CXX=:
10175         ;;
10176       ia64*)
10177         hardcode_libdir_flag_spec_CXX='-L$libdir'
10178         ;;
10179       *)
10180         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10181         hardcode_libdir_separator_CXX=:
10182         export_dynamic_flag_spec_CXX='${wl}-E'
10183         ;;
10184       esac
10185     fi
10186     case "$host_cpu" in
10187     hppa*64*)
10188       hardcode_direct_CXX=no
10189       hardcode_shlibpath_var_CXX=no
10190       ;;
10191     ia64*)
10192       hardcode_direct_CXX=no
10193       hardcode_shlibpath_var_CXX=no
10194       hardcode_minus_L_CXX=yes # Not in the search PATH,
10195                                               # but as the default
10196                                               # location of the library.
10197       ;;
10198     *)
10199       hardcode_direct_CXX=yes
10200       hardcode_minus_L_CXX=yes # Not in the search PATH,
10201                                               # but as the default
10202                                               # location of the library.
10203       ;;
10204     esac
10205
10206     case $cc_basename in
10207       CC)
10208         # FIXME: insert proper C++ library support
10209         ld_shlibs_CXX=no
10210         ;;
10211       aCC)
10212         case "$host_cpu" in
10213         hppa*64*|ia64*)
10214           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10215           ;;
10216         *)
10217           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10218           ;;
10219         esac
10220         # Commands to make compiler produce verbose output that lists
10221         # what "hidden" libraries, object files and flags are used when
10222         # linking a shared library.
10223         #
10224         # There doesn't appear to be a way to prevent this compiler from
10225         # explicitly linking system object files so we need to strip them
10226         # from the output so that they don't get included in the library
10227         # dependencies.
10228         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'
10229         ;;
10230       *)
10231         if test "$GXX" = yes; then
10232           if test $with_gnu_ld = no; then
10233             case "$host_cpu" in
10234             ia64*|hppa*64*)
10235               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10236               ;;
10237             *)
10238               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'
10239               ;;
10240             esac
10241           fi
10242         else
10243           # FIXME: insert proper C++ library support
10244           ld_shlibs_CXX=no
10245         fi
10246         ;;
10247     esac
10248     ;;
10249   irix5* | irix6*)
10250     case $cc_basename in
10251       CC)
10252         # SGI C++
10253         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'
10254
10255         # Archives containing C++ object files must be created using
10256         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10257         # necessary to make sure instantiated templates are included
10258         # in the archive.
10259         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10260         ;;
10261       *)
10262         if test "$GXX" = yes; then
10263           if test "$with_gnu_ld" = no; then
10264             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'
10265           else
10266             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'
10267           fi
10268         fi
10269         link_all_deplibs_CXX=yes
10270         ;;
10271     esac
10272     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10273     hardcode_libdir_separator_CXX=:
10274     ;;
10275   linux*)
10276     case $cc_basename in
10277       KCC)
10278         # Kuck and Associates, Inc. (KAI) C++ Compiler
10279
10280         # KCC will only create a shared library if the output file
10281         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10282         # to its proper name (with version) after linking.
10283         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'
10284         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'
10285         # Commands to make compiler produce verbose output that lists
10286         # what "hidden" libraries, object files and flags are used when
10287         # linking a shared library.
10288         #
10289         # There doesn't appear to be a way to prevent this compiler from
10290         # explicitly linking system object files so we need to strip them
10291         # from the output so that they don't get included in the library
10292         # dependencies.
10293         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'
10294
10295         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10296         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10297
10298         # Archives containing C++ object files must be created using
10299         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10300         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10301         ;;
10302       icpc)
10303         # Intel C++
10304         with_gnu_ld=yes
10305         archive_cmds_need_lc_CXX=no
10306         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10307         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'
10308         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10309         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10310         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10311         ;;
10312       cxx)
10313         # Compaq C++
10314         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10315         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'
10316
10317         runpath_var=LD_RUN_PATH
10318         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10319         hardcode_libdir_separator_CXX=:
10320
10321         # Commands to make compiler produce verbose output that lists
10322         # what "hidden" libraries, object files and flags are used when
10323         # linking a shared library.
10324         #
10325         # There doesn't appear to be a way to prevent this compiler from
10326         # explicitly linking system object files so we need to strip them
10327         # from the output so that they don't get included in the library
10328         # dependencies.
10329         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'
10330         ;;
10331     esac
10332     ;;
10333   lynxos*)
10334     # FIXME: insert proper C++ library support
10335     ld_shlibs_CXX=no
10336     ;;
10337   m88k*)
10338     # FIXME: insert proper C++ library support
10339     ld_shlibs_CXX=no
10340     ;;
10341   mvs*)
10342     case $cc_basename in
10343       cxx)
10344         # FIXME: insert proper C++ library support
10345         ld_shlibs_CXX=no
10346         ;;
10347       *)
10348         # FIXME: insert proper C++ library support
10349         ld_shlibs_CXX=no
10350         ;;
10351     esac
10352     ;;
10353   netbsd* | knetbsd*-gnu)
10354     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10355       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10356       wlarc=
10357       hardcode_libdir_flag_spec_CXX='-R$libdir'
10358       hardcode_direct_CXX=yes
10359       hardcode_shlibpath_var_CXX=no
10360     fi
10361     # Workaround some broken pre-1.5 toolchains
10362     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10363     ;;
10364   osf3*)
10365     case $cc_basename in
10366       KCC)
10367         # Kuck and Associates, Inc. (KAI) C++ Compiler
10368
10369         # KCC will only create a shared library if the output file
10370         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10371         # to its proper name (with version) after linking.
10372         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'
10373
10374         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10375         hardcode_libdir_separator_CXX=:
10376
10377         # Archives containing C++ object files must be created using
10378         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10379         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10380
10381         ;;
10382       RCC)
10383         # Rational C++ 2.4.1
10384         # FIXME: insert proper C++ library support
10385         ld_shlibs_CXX=no
10386         ;;
10387       cxx)
10388         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10389         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'
10390
10391         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10392         hardcode_libdir_separator_CXX=:
10393
10394         # Commands to make compiler produce verbose output that lists
10395         # what "hidden" libraries, object files and flags are used when
10396         # linking a shared library.
10397         #
10398         # There doesn't appear to be a way to prevent this compiler from
10399         # explicitly linking system object files so we need to strip them
10400         # from the output so that they don't get included in the library
10401         # dependencies.
10402         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'
10403         ;;
10404       *)
10405         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10406           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10407           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'
10408
10409           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10410           hardcode_libdir_separator_CXX=:
10411
10412           # Commands to make compiler produce verbose output that lists
10413           # what "hidden" libraries, object files and flags are used when
10414           # linking a shared library.
10415           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10416
10417         else
10418           # FIXME: insert proper C++ library support
10419           ld_shlibs_CXX=no
10420         fi
10421         ;;
10422     esac
10423     ;;
10424   osf4* | osf5*)
10425     case $cc_basename in
10426       KCC)
10427         # Kuck and Associates, Inc. (KAI) C++ Compiler
10428
10429         # KCC will only create a shared library if the output file
10430         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10431         # to its proper name (with version) after linking.
10432         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'
10433
10434         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10435         hardcode_libdir_separator_CXX=:
10436
10437         # Archives containing C++ object files must be created using
10438         # the KAI C++ compiler.
10439         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10440         ;;
10441       RCC)
10442         # Rational C++ 2.4.1
10443         # FIXME: insert proper C++ library support
10444         ld_shlibs_CXX=no
10445         ;;
10446       cxx)
10447         allow_undefined_flag_CXX=' -expect_unresolved \*'
10448         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'
10449         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10450           echo "-hidden">> $lib.exp~
10451           $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~
10452           $rm $lib.exp'
10453
10454         hardcode_libdir_flag_spec_CXX='-rpath $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         #
10461         # There doesn't appear to be a way to prevent this compiler from
10462         # explicitly linking system object files so we need to strip them
10463         # from the output so that they don't get included in the library
10464         # dependencies.
10465         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'
10466         ;;
10467       *)
10468         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10469           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10470          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'
10471
10472           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10473           hardcode_libdir_separator_CXX=:
10474
10475           # Commands to make compiler produce verbose output that lists
10476           # what "hidden" libraries, object files and flags are used when
10477           # linking a shared library.
10478           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10479
10480         else
10481           # FIXME: insert proper C++ library support
10482           ld_shlibs_CXX=no
10483         fi
10484         ;;
10485     esac
10486     ;;
10487   psos*)
10488     # FIXME: insert proper C++ library support
10489     ld_shlibs_CXX=no
10490     ;;
10491   sco*)
10492     archive_cmds_need_lc_CXX=no
10493     case $cc_basename in
10494       CC)
10495         # FIXME: insert proper C++ library support
10496         ld_shlibs_CXX=no
10497         ;;
10498       *)
10499         # FIXME: insert proper C++ library support
10500         ld_shlibs_CXX=no
10501         ;;
10502     esac
10503     ;;
10504   sunos4*)
10505     case $cc_basename in
10506       CC)
10507         # Sun C++ 4.x
10508         # FIXME: insert proper C++ library support
10509         ld_shlibs_CXX=no
10510         ;;
10511       lcc)
10512         # Lucid
10513         # FIXME: insert proper C++ library support
10514         ld_shlibs_CXX=no
10515         ;;
10516       *)
10517         # FIXME: insert proper C++ library support
10518         ld_shlibs_CXX=no
10519         ;;
10520     esac
10521     ;;
10522   solaris*)
10523     case $cc_basename in
10524       CC)
10525         # Sun C++ 4.2, 5.x and Centerline C++
10526         no_undefined_flag_CXX=' -zdefs'
10527         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10528         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10529         $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'
10530
10531         hardcode_libdir_flag_spec_CXX='-R$libdir'
10532         hardcode_shlibpath_var_CXX=no
10533         case $host_os in
10534           solaris2.0-5 | solaris2.0-5.*) ;;
10535           *)
10536             # The C++ compiler is used as linker so we must use $wl
10537             # flag to pass the commands to the underlying system
10538             # linker.
10539             # Supported since Solaris 2.6 (maybe 2.5.1?)
10540             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10541             ;;
10542         esac
10543         link_all_deplibs_CXX=yes
10544
10545         # Commands to make compiler produce verbose output that lists
10546         # what "hidden" libraries, object files and flags are used when
10547         # linking a shared library.
10548         #
10549         # There doesn't appear to be a way to prevent this compiler from
10550         # explicitly linking system object files so we need to strip them
10551         # from the output so that they don't get included in the library
10552         # dependencies.
10553         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'
10554
10555         # Archives containing C++ object files must be created using
10556         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10557         # necessary to make sure instantiated templates are included
10558         # in the archive.
10559         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10560         ;;
10561       gcx)
10562         # Green Hills C++ Compiler
10563         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10564
10565         # The C++ compiler must be used to create the archive.
10566         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10567         ;;
10568       *)
10569         # GNU C++ compiler with Solaris linker
10570         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10571           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10572           if $CC --version | grep -v '^2\.7' > /dev/null; then
10573             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10574             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10575                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10576
10577             # Commands to make compiler produce verbose output that lists
10578             # what "hidden" libraries, object files and flags are used when
10579             # linking a shared library.
10580             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10581           else
10582             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10583             # platform.
10584             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10585             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10586                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10587
10588             # Commands to make compiler produce verbose output that lists
10589             # what "hidden" libraries, object files and flags are used when
10590             # linking a shared library.
10591             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10592           fi
10593
10594           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10595         fi
10596         ;;
10597     esac
10598     ;;
10599   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10600     archive_cmds_need_lc_CXX=no
10601     ;;
10602   tandem*)
10603     case $cc_basename in
10604       NCC)
10605         # NonStop-UX NCC 3.20
10606         # FIXME: insert proper C++ library support
10607         ld_shlibs_CXX=no
10608         ;;
10609       *)
10610         # FIXME: insert proper C++ library support
10611         ld_shlibs_CXX=no
10612         ;;
10613     esac
10614     ;;
10615   vxworks*)
10616     # FIXME: insert proper C++ library support
10617     ld_shlibs_CXX=no
10618     ;;
10619   *)
10620     # FIXME: insert proper C++ library support
10621     ld_shlibs_CXX=no
10622     ;;
10623 esac
10624 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10625 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10626 test "$ld_shlibs_CXX" = no && can_build_shared=no
10627
10628 GCC_CXX="$GXX"
10629 LD_CXX="$LD"
10630
10631
10632 cat > conftest.$ac_ext <<EOF
10633 class Foo
10634 {
10635 public:
10636   Foo (void) { a = 0; }
10637 private:
10638   int a;
10639 };
10640 EOF
10641
10642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643   (eval $ac_compile) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); }; then
10647   # Parse the compiler output and extract the necessary
10648   # objects, libraries and library flags.
10649
10650   # Sentinel used to keep track of whether or not we are before
10651   # the conftest object file.
10652   pre_test_object_deps_done=no
10653
10654   # The `*' in the case matches for architectures that use `case' in
10655   # $output_verbose_cmd can trigger glob expansion during the loop
10656   # eval without this substitution.
10657   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10658
10659   for p in `eval $output_verbose_link_cmd`; do
10660     case $p in
10661
10662     -L* | -R* | -l*)
10663        # Some compilers place space between "-{L,R}" and the path.
10664        # Remove the space.
10665        if test $p = "-L" \
10666           || test $p = "-R"; then
10667          prev=$p
10668          continue
10669        else
10670          prev=
10671        fi
10672
10673        if test "$pre_test_object_deps_done" = no; then
10674          case $p in
10675          -L* | -R*)
10676            # Internal compiler library paths should come after those
10677            # provided the user.  The postdeps already come after the
10678            # user supplied libs so there is no need to process them.
10679            if test -z "$compiler_lib_search_path_CXX"; then
10680              compiler_lib_search_path_CXX="${prev}${p}"
10681            else
10682              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10683            fi
10684            ;;
10685          # The "-l" case would never come before the object being
10686          # linked, so don't bother handling this case.
10687          esac
10688        else
10689          if test -z "$postdeps_CXX"; then
10690            postdeps_CXX="${prev}${p}"
10691          else
10692            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10693          fi
10694        fi
10695        ;;
10696
10697     *.$objext)
10698        # This assumes that the test object file only shows up
10699        # once in the compiler output.
10700        if test "$p" = "conftest.$objext"; then
10701          pre_test_object_deps_done=yes
10702          continue
10703        fi
10704
10705        if test "$pre_test_object_deps_done" = no; then
10706          if test -z "$predep_objects_CXX"; then
10707            predep_objects_CXX="$p"
10708          else
10709            predep_objects_CXX="$predep_objects_CXX $p"
10710          fi
10711        else
10712          if test -z "$postdep_objects_CXX"; then
10713            postdep_objects_CXX="$p"
10714          else
10715            postdep_objects_CXX="$postdep_objects_CXX $p"
10716          fi
10717        fi
10718        ;;
10719
10720     *) ;; # Ignore the rest.
10721
10722     esac
10723   done
10724
10725   # Clean up.
10726   rm -f a.out a.exe
10727 else
10728   echo "libtool.m4: error: problem compiling CXX test program"
10729 fi
10730
10731 $rm -f confest.$objext
10732
10733 case " $postdeps_CXX " in
10734 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10735 esac
10736
10737 lt_prog_compiler_wl_CXX=
10738 lt_prog_compiler_pic_CXX=
10739 lt_prog_compiler_static_CXX=
10740
10741 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10742 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10743
10744   # C++ specific cases for pic, static, wl, etc.
10745   if test "$GXX" = yes; then
10746     lt_prog_compiler_wl_CXX='-Wl,'
10747     lt_prog_compiler_static_CXX='-static'
10748
10749     case $host_os in
10750     aix*)
10751       # All AIX code is PIC.
10752       if test "$host_cpu" = ia64; then
10753         # AIX 5 now supports IA64 processor
10754         lt_prog_compiler_static_CXX='-Bstatic'
10755       fi
10756       ;;
10757     amigaos*)
10758       # FIXME: we need at least 68020 code to build shared libraries, but
10759       # adding the `-m68020' flag to GCC prevents building anything better,
10760       # like `-m68040'.
10761       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10762       ;;
10763     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10764       # PIC is the default for these OSes.
10765       ;;
10766     mingw* | os2* | pw32*)
10767       # This hack is so that the source file can tell whether it is being
10768       # built for inclusion in a dll (and should export symbols for example).
10769       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10770       ;;
10771     darwin* | rhapsody*)
10772       # PIC is the default on this platform
10773       # Common symbols not allowed in MH_DYLIB files
10774       lt_prog_compiler_pic_CXX='-fno-common'
10775       ;;
10776     *djgpp*)
10777       # DJGPP does not support shared libraries at all
10778       lt_prog_compiler_pic_CXX=
10779       ;;
10780     sysv4*MP*)
10781       if test -d /usr/nec; then
10782         lt_prog_compiler_pic_CXX=-Kconform_pic
10783       fi
10784       ;;
10785     hpux*)
10786       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10787       # not for PA HP-UX.
10788       case "$host_cpu" in
10789       hppa*64*|ia64*)
10790         ;;
10791       *)
10792         lt_prog_compiler_pic_CXX='-fPIC'
10793         ;;
10794       esac
10795       ;;
10796     *)
10797       lt_prog_compiler_pic_CXX='-fPIC'
10798       ;;
10799     esac
10800   else
10801     case $host_os in
10802       aix4* | aix5*)
10803         # All AIX code is PIC.
10804         if test "$host_cpu" = ia64; then
10805           # AIX 5 now supports IA64 processor
10806           lt_prog_compiler_static_CXX='-Bstatic'
10807         else
10808           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10809         fi
10810         ;;
10811       chorus*)
10812         case $cc_basename in
10813         cxch68)
10814           # Green Hills C++ Compiler
10815           # _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"
10816           ;;
10817         esac
10818         ;;
10819       dgux*)
10820         case $cc_basename in
10821           ec++)
10822             lt_prog_compiler_pic_CXX='-KPIC'
10823             ;;
10824           ghcx)
10825             # Green Hills C++ Compiler
10826             lt_prog_compiler_pic_CXX='-pic'
10827             ;;
10828           *)
10829             ;;
10830         esac
10831         ;;
10832       freebsd* | kfreebsd*-gnu)
10833         # FreeBSD uses GNU C++
10834         ;;
10835       hpux9* | hpux10* | hpux11*)
10836         case $cc_basename in
10837           CC)
10838             lt_prog_compiler_wl_CXX='-Wl,'
10839             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10840             if test "$host_cpu" != ia64; then
10841               lt_prog_compiler_pic_CXX='+Z'
10842             fi
10843             ;;
10844           aCC)
10845             lt_prog_compiler_wl_CXX='-Wl,'
10846             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10847             case "$host_cpu" in
10848             hppa*64*|ia64*)
10849               # +Z the default
10850               ;;
10851             *)
10852               lt_prog_compiler_pic_CXX='+Z'
10853               ;;
10854             esac
10855             ;;
10856           *)
10857             ;;
10858         esac
10859         ;;
10860       irix5* | irix6* | nonstopux*)
10861         case $cc_basename in
10862           CC)
10863             lt_prog_compiler_wl_CXX='-Wl,'
10864             lt_prog_compiler_static_CXX='-non_shared'
10865             # CC pic flag -KPIC is the default.
10866             ;;
10867           *)
10868             ;;
10869         esac
10870         ;;
10871       linux*)
10872         case $cc_basename in
10873           KCC)
10874             # KAI C++ Compiler
10875             lt_prog_compiler_wl_CXX='--backend -Wl,'
10876             lt_prog_compiler_pic_CXX='-fPIC'
10877             ;;
10878           icpc)
10879             # Intel C++
10880             lt_prog_compiler_wl_CXX='-Wl,'
10881             lt_prog_compiler_pic_CXX='-KPIC'
10882             lt_prog_compiler_static_CXX='-static'
10883             ;;
10884           cxx)
10885             # Compaq C++
10886             # Make sure the PIC flag is empty.  It appears that all Alpha
10887             # Linux and Compaq Tru64 Unix objects are PIC.
10888             lt_prog_compiler_pic_CXX=
10889             lt_prog_compiler_static_CXX='-non_shared'
10890             ;;
10891           *)
10892             ;;
10893         esac
10894         ;;
10895       lynxos*)
10896         ;;
10897       m88k*)
10898         ;;
10899       mvs*)
10900         case $cc_basename in
10901           cxx)
10902             lt_prog_compiler_pic_CXX='-W c,exportall'
10903             ;;
10904           *)
10905             ;;
10906         esac
10907         ;;
10908       netbsd* | knetbsd*-gnu)
10909         ;;
10910       osf3* | osf4* | osf5*)
10911         case $cc_basename in
10912           KCC)
10913             lt_prog_compiler_wl_CXX='--backend -Wl,'
10914             ;;
10915           RCC)
10916             # Rational C++ 2.4.1
10917             lt_prog_compiler_pic_CXX='-pic'
10918             ;;
10919           cxx)
10920             # Digital/Compaq C++
10921             lt_prog_compiler_wl_CXX='-Wl,'
10922             # Make sure the PIC flag is empty.  It appears that all Alpha
10923             # Linux and Compaq Tru64 Unix objects are PIC.
10924             lt_prog_compiler_pic_CXX=
10925             lt_prog_compiler_static_CXX='-non_shared'
10926             ;;
10927           *)
10928             ;;
10929         esac
10930         ;;
10931       psos*)
10932         ;;
10933       sco*)
10934         case $cc_basename in
10935           CC)
10936             lt_prog_compiler_pic_CXX='-fPIC'
10937             ;;
10938           *)
10939             ;;
10940         esac
10941         ;;
10942       solaris*)
10943         case $cc_basename in
10944           CC)
10945             # Sun C++ 4.2, 5.x and Centerline C++
10946             lt_prog_compiler_pic_CXX='-KPIC'
10947             lt_prog_compiler_static_CXX='-Bstatic'
10948             lt_prog_compiler_wl_CXX='-Qoption ld '
10949             ;;
10950           gcx)
10951             # Green Hills C++ Compiler
10952             lt_prog_compiler_pic_CXX='-PIC'
10953             ;;
10954           *)
10955             ;;
10956         esac
10957         ;;
10958       sunos4*)
10959         case $cc_basename in
10960           CC)
10961             # Sun C++ 4.x
10962             lt_prog_compiler_pic_CXX='-pic'
10963             lt_prog_compiler_static_CXX='-Bstatic'
10964             ;;
10965           lcc)
10966             # Lucid
10967             lt_prog_compiler_pic_CXX='-pic'
10968             ;;
10969           *)
10970             ;;
10971         esac
10972         ;;
10973       tandem*)
10974         case $cc_basename in
10975           NCC)
10976             # NonStop-UX NCC 3.20
10977             lt_prog_compiler_pic_CXX='-KPIC'
10978             ;;
10979           *)
10980             ;;
10981         esac
10982         ;;
10983       unixware*)
10984         ;;
10985       vxworks*)
10986         ;;
10987       *)
10988         lt_prog_compiler_can_build_shared_CXX=no
10989         ;;
10990     esac
10991   fi
10992
10993 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10994 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10995
10996 #
10997 # Check to make sure the PIC flag actually works.
10998 #
10999 if test -n "$lt_prog_compiler_pic_CXX"; then
11000
11001 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11002 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11003 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11004   echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006   lt_prog_compiler_pic_works_CXX=no
11007   ac_outfile=conftest.$ac_objext
11008    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11009    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11010    # Insert the option either (1) after the last *FLAGS variable, or
11011    # (2) before a word containing "conftest.", or (3) at the end.
11012    # Note that $ac_compile itself does not contain backslashes and begins
11013    # with a dollar sign (not a hyphen), so the echo should work correctly.
11014    # The option is referenced via a variable to avoid confusing sed.
11015    lt_compile=`echo "$ac_compile" | $SED \
11016    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11017    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11018    -e 's:$: $lt_compiler_flag:'`
11019    (eval echo "\"\$as_me:11019: $lt_compile\"" >&5)
11020    (eval "$lt_compile" 2>conftest.err)
11021    ac_status=$?
11022    cat conftest.err >&5
11023    echo "$as_me:11023: \$? = $ac_status" >&5
11024    if (exit $ac_status) && test -s "$ac_outfile"; then
11025      # The compiler can only warn and ignore the option if not recognized
11026      # So say no if there are warnings
11027      if test ! -s conftest.err; then
11028        lt_prog_compiler_pic_works_CXX=yes
11029      fi
11030    fi
11031    $rm conftest*
11032
11033 fi
11034 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11035 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11036
11037 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11038     case $lt_prog_compiler_pic_CXX in
11039      "" | " "*) ;;
11040      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11041      esac
11042 else
11043     lt_prog_compiler_pic_CXX=
11044      lt_prog_compiler_can_build_shared_CXX=no
11045 fi
11046
11047 fi
11048 case "$host_os" in
11049   # For platforms which do not support PIC, -DPIC is meaningless:
11050   *djgpp*)
11051     lt_prog_compiler_pic_CXX=
11052     ;;
11053   *)
11054     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11055     ;;
11056 esac
11057
11058 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11059 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11060 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11061   echo $ECHO_N "(cached) $ECHO_C" >&6
11062 else
11063   lt_cv_prog_compiler_c_o_CXX=no
11064    $rm -r conftest 2>/dev/null
11065    mkdir conftest
11066    cd conftest
11067    mkdir out
11068    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11069
11070    lt_compiler_flag="-o out/conftest2.$ac_objext"
11071    # Insert the option either (1) after the last *FLAGS variable, or
11072    # (2) before a word containing "conftest.", or (3) at the end.
11073    # Note that $ac_compile itself does not contain backslashes and begins
11074    # with a dollar sign (not a hyphen), so the echo should work correctly.
11075    lt_compile=`echo "$ac_compile" | $SED \
11076    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11077    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11078    -e 's:$: $lt_compiler_flag:'`
11079    (eval echo "\"\$as_me:11079: $lt_compile\"" >&5)
11080    (eval "$lt_compile" 2>out/conftest.err)
11081    ac_status=$?
11082    cat out/conftest.err >&5
11083    echo "$as_me:11083: \$? = $ac_status" >&5
11084    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11085    then
11086      # The compiler can only warn and ignore the option if not recognized
11087      # So say no if there are warnings
11088      if test ! -s out/conftest.err; then
11089        lt_cv_prog_compiler_c_o_CXX=yes
11090      fi
11091    fi
11092    chmod u+w .
11093    $rm conftest*
11094    # SGI C++ compiler will create directory out/ii_files/ for
11095    # template instantiation
11096    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11097    $rm out/* && rmdir out
11098    cd ..
11099    rmdir conftest
11100    $rm conftest*
11101
11102 fi
11103 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11104 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11105
11106
11107 hard_links="nottested"
11108 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11109   # do not overwrite the value of need_locks provided by the user
11110   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11111 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11112   hard_links=yes
11113   $rm conftest*
11114   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11115   touch conftest.a
11116   ln conftest.a conftest.b 2>&5 || hard_links=no
11117   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11118   echo "$as_me:$LINENO: result: $hard_links" >&5
11119 echo "${ECHO_T}$hard_links" >&6
11120   if test "$hard_links" = no; then
11121     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11122 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11123     need_locks=warn
11124   fi
11125 else
11126   need_locks=no
11127 fi
11128
11129 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11130 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11131
11132   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11133   case $host_os in
11134   aix4* | aix5*)
11135     # If we're using GNU nm, then we don't want the "-C" option.
11136     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11137     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11138       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'
11139     else
11140       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'
11141     fi
11142     ;;
11143   pw32*)
11144     export_symbols_cmds_CXX="$ltdll_cmds"
11145   ;;
11146   cygwin* | mingw*)
11147     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11148   ;;
11149   linux*)
11150     link_all_deplibs_CXX=no
11151   ;;
11152   *)
11153     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11154   ;;
11155   esac
11156
11157 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11158 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11159 test "$ld_shlibs_CXX" = no && can_build_shared=no
11160
11161 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11162 if test "$GCC" = yes; then
11163   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11164 fi
11165
11166 #
11167 # Do we need to explicitly link libc?
11168 #
11169 case "x$archive_cmds_need_lc_CXX" in
11170 x|xyes)
11171   # Assume -lc should be added
11172   archive_cmds_need_lc_CXX=yes
11173
11174   if test "$enable_shared" = yes && test "$GCC" = yes; then
11175     case $archive_cmds_CXX in
11176     *'~'*)
11177       # FIXME: we may have to deal with multi-command sequences.
11178       ;;
11179     '$CC '*)
11180       # Test whether the compiler implicitly links with -lc since on some
11181       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11182       # to ld, don't add -lc before -lgcc.
11183       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11184 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11185       $rm conftest*
11186       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11187
11188       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11189   (eval $ac_compile) 2>&5
11190   ac_status=$?
11191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192   (exit $ac_status); } 2>conftest.err; then
11193         soname=conftest
11194         lib=conftest
11195         libobjs=conftest.$ac_objext
11196         deplibs=
11197         wl=$lt_prog_compiler_wl_CXX
11198         compiler_flags=-v
11199         linker_flags=-v
11200         verstring=
11201         output_objdir=.
11202         libname=conftest
11203         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11204         allow_undefined_flag_CXX=
11205         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11206   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11207   ac_status=$?
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); }
11210         then
11211           archive_cmds_need_lc_CXX=no
11212         else
11213           archive_cmds_need_lc_CXX=yes
11214         fi
11215         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11216       else
11217         cat conftest.err 1>&5
11218       fi
11219       $rm conftest*
11220       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11221 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11222       ;;
11223     esac
11224   fi
11225   ;;
11226 esac
11227
11228 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11229 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11230 library_names_spec=
11231 libname_spec='lib$name'
11232 soname_spec=
11233 shrext_cmds=".so"
11234 postinstall_cmds=
11235 postuninstall_cmds=
11236 finish_cmds=
11237 finish_eval=
11238 shlibpath_var=
11239 shlibpath_overrides_runpath=unknown
11240 version_type=none
11241 dynamic_linker="$host_os ld.so"
11242 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11243 if test "$GCC" = yes; then
11244   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11245   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11246     # if the path contains ";" then we assume it to be the separator
11247     # otherwise default to the standard path separator (i.e. ":") - it is
11248     # assumed that no part of a normal pathname contains ";" but that should
11249     # okay in the real world where ";" in dirpaths is itself problematic.
11250     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11251   else
11252     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11253   fi
11254 else
11255   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11256 fi
11257 need_lib_prefix=unknown
11258 hardcode_into_libs=no
11259
11260 # when you set need_version to no, make sure it does not cause -set_version
11261 # flags to be left without arguments
11262 need_version=unknown
11263
11264 case $host_os in
11265 aix3*)
11266   version_type=linux
11267   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11268   shlibpath_var=LIBPATH
11269
11270   # AIX 3 has no versioning support, so we append a major version to the name.
11271   soname_spec='${libname}${release}${shared_ext}$major'
11272   ;;
11273
11274 aix4* | aix5*)
11275   version_type=linux
11276   need_lib_prefix=no
11277   need_version=no
11278   hardcode_into_libs=yes
11279   if test "$host_cpu" = ia64; then
11280     # AIX 5 supports IA64
11281     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11282     shlibpath_var=LD_LIBRARY_PATH
11283   else
11284     # With GCC up to 2.95.x, collect2 would create an import file
11285     # for dependence libraries.  The import file would start with
11286     # the line `#! .'.  This would cause the generated library to
11287     # depend on `.', always an invalid library.  This was fixed in
11288     # development snapshots of GCC prior to 3.0.
11289     case $host_os in
11290       aix4 | aix4.[01] | aix4.[01].*)
11291       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11292            echo ' yes '
11293            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11294         :
11295       else
11296         can_build_shared=no
11297       fi
11298       ;;
11299     esac
11300     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11301     # soname into executable. Probably we can add versioning support to
11302     # collect2, so additional links can be useful in future.
11303     if test "$aix_use_runtimelinking" = yes; then
11304       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11305       # instead of lib<name>.a to let people know that these are not
11306       # typical AIX shared libraries.
11307       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308     else
11309       # We preserve .a as extension for shared libraries through AIX4.2
11310       # and later when we are not doing run time linking.
11311       library_names_spec='${libname}${release}.a $libname.a'
11312       soname_spec='${libname}${release}${shared_ext}$major'
11313     fi
11314     shlibpath_var=LIBPATH
11315   fi
11316   ;;
11317
11318 amigaos*)
11319   library_names_spec='$libname.ixlibrary $libname.a'
11320   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11321   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'
11322   ;;
11323
11324 beos*)
11325   library_names_spec='${libname}${shared_ext}'
11326   dynamic_linker="$host_os ld.so"
11327   shlibpath_var=LIBRARY_PATH
11328   ;;
11329
11330 bsdi4*)
11331   version_type=linux
11332   need_version=no
11333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334   soname_spec='${libname}${release}${shared_ext}$major'
11335   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11336   shlibpath_var=LD_LIBRARY_PATH
11337   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11338   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11339   # the default ld.so.conf also contains /usr/contrib/lib and
11340   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11341   # libtool to hard-code these into programs
11342   ;;
11343
11344 cygwin* | mingw* | pw32*)
11345   version_type=windows
11346   shrext_cmds=".dll"
11347   need_version=no
11348   need_lib_prefix=no
11349
11350   case $GCC,$host_os in
11351   yes,cygwin* | yes,mingw* | yes,pw32*)
11352     library_names_spec='$libname.dll.a'
11353     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11354     postinstall_cmds='base_file=`basename \${file}`~
11355       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11356       dldir=$destdir/`dirname \$dlpath`~
11357       test -d \$dldir || mkdir -p \$dldir~
11358       $install_prog $dir/$dlname \$dldir/$dlname'
11359     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11360       dlpath=$dir/\$dldll~
11361        $rm \$dlpath'
11362     shlibpath_overrides_runpath=yes
11363
11364     case $host_os in
11365     cygwin*)
11366       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11367       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11368       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11369       ;;
11370     mingw*)
11371       # MinGW DLLs use traditional 'lib' prefix
11372       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11373       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11374       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11375         # It is most probably a Windows format PATH printed by
11376         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11377         # path with ; separators, and with drive letters. We can handle the
11378         # drive letters (cygwin fileutils understands them), so leave them,
11379         # especially as we might pass files found there to a mingw objdump,
11380         # which wouldn't understand a cygwinified path. Ahh.
11381         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11382       else
11383         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11384       fi
11385       ;;
11386     pw32*)
11387       # pw32 DLLs use 'pw' prefix rather than 'lib'
11388       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11389       ;;
11390     esac
11391     ;;
11392
11393   *)
11394     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11395     ;;
11396   esac
11397   dynamic_linker='Win32 ld.exe'
11398   # FIXME: first we should search . and the directory the executable is in
11399   shlibpath_var=PATH
11400   ;;
11401
11402 darwin* | rhapsody*)
11403   dynamic_linker="$host_os dyld"
11404   version_type=darwin
11405   need_lib_prefix=no
11406   need_version=no
11407   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11408   soname_spec='${libname}${release}${major}$shared_ext'
11409   shlibpath_overrides_runpath=yes
11410   shlibpath_var=DYLD_LIBRARY_PATH
11411   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11412   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11413   if test "$GCC" = yes; then
11414     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"`
11415   else
11416     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11417   fi
11418   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11419   ;;
11420
11421 dgux*)
11422   version_type=linux
11423   need_lib_prefix=no
11424   need_version=no
11425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11426   soname_spec='${libname}${release}${shared_ext}$major'
11427   shlibpath_var=LD_LIBRARY_PATH
11428   ;;
11429
11430 freebsd1*)
11431   dynamic_linker=no
11432   ;;
11433
11434 kfreebsd*-gnu)
11435   version_type=linux
11436   need_lib_prefix=no
11437   need_version=no
11438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11439   soname_spec='${libname}${release}${shared_ext}$major'
11440   shlibpath_var=LD_LIBRARY_PATH
11441   shlibpath_overrides_runpath=no
11442   hardcode_into_libs=yes
11443   dynamic_linker='GNU ld.so'
11444   ;;
11445
11446 freebsd*)
11447   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11448   version_type=freebsd-$objformat
11449   case $version_type in
11450     freebsd-elf*)
11451       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11452       need_version=no
11453       need_lib_prefix=no
11454       ;;
11455     freebsd-*)
11456       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11457       need_version=yes
11458       ;;
11459   esac
11460   shlibpath_var=LD_LIBRARY_PATH
11461   case $host_os in
11462   freebsd2*)
11463     shlibpath_overrides_runpath=yes
11464     ;;
11465   freebsd3.01* | freebsdelf3.01*)
11466     shlibpath_overrides_runpath=yes
11467     hardcode_into_libs=yes
11468     ;;
11469   *) # from 3.2 on
11470     shlibpath_overrides_runpath=no
11471     hardcode_into_libs=yes
11472     ;;
11473   esac
11474   ;;
11475
11476 gnu*)
11477   version_type=linux
11478   need_lib_prefix=no
11479   need_version=no
11480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11481   soname_spec='${libname}${release}${shared_ext}$major'
11482   shlibpath_var=LD_LIBRARY_PATH
11483   hardcode_into_libs=yes
11484   ;;
11485
11486 hpux9* | hpux10* | hpux11*)
11487   # Give a soname corresponding to the major version so that dld.sl refuses to
11488   # link against other versions.
11489   version_type=sunos
11490   need_lib_prefix=no
11491   need_version=no
11492   case "$host_cpu" in
11493   ia64*)
11494     shrext_cmds='.so'
11495     hardcode_into_libs=yes
11496     dynamic_linker="$host_os dld.so"
11497     shlibpath_var=LD_LIBRARY_PATH
11498     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500     soname_spec='${libname}${release}${shared_ext}$major'
11501     if test "X$HPUX_IA64_MODE" = X32; then
11502       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11503     else
11504       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11505     fi
11506     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11507     ;;
11508    hppa*64*)
11509      shrext_cmds='.sl'
11510      hardcode_into_libs=yes
11511      dynamic_linker="$host_os dld.sl"
11512      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11513      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11514      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515      soname_spec='${libname}${release}${shared_ext}$major'
11516      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11517      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11518      ;;
11519    *)
11520     shrext_cmds='.sl'
11521     dynamic_linker="$host_os dld.sl"
11522     shlibpath_var=SHLIB_PATH
11523     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525     soname_spec='${libname}${release}${shared_ext}$major'
11526     ;;
11527   esac
11528   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11529   postinstall_cmds='chmod 555 $lib'
11530   ;;
11531
11532 irix5* | irix6* | nonstopux*)
11533   case $host_os in
11534     nonstopux*) version_type=nonstopux ;;
11535     *)
11536         if test "$lt_cv_prog_gnu_ld" = yes; then
11537                 version_type=linux
11538         else
11539                 version_type=irix
11540         fi ;;
11541   esac
11542   need_lib_prefix=no
11543   need_version=no
11544   soname_spec='${libname}${release}${shared_ext}$major'
11545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11546   case $host_os in
11547   irix5* | nonstopux*)
11548     libsuff= shlibsuff=
11549     ;;
11550   *)
11551     case $LD in # libtool.m4 will add one of these switches to LD
11552     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11553       libsuff= shlibsuff= libmagic=32-bit;;
11554     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11555       libsuff=32 shlibsuff=N32 libmagic=N32;;
11556     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11557       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11558     *) libsuff= shlibsuff= libmagic=never-match;;
11559     esac
11560     ;;
11561   esac
11562   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11563   shlibpath_overrides_runpath=no
11564   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11565   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11566   hardcode_into_libs=yes
11567   ;;
11568
11569 # No shared lib support for Linux oldld, aout, or coff.
11570 linux*oldld* | linux*aout* | linux*coff*)
11571   dynamic_linker=no
11572   ;;
11573
11574 # This must be Linux ELF.
11575 linux*)
11576   version_type=linux
11577   need_lib_prefix=no
11578   need_version=no
11579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11580   soname_spec='${libname}${release}${shared_ext}$major'
11581   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11582   shlibpath_var=LD_LIBRARY_PATH
11583   shlibpath_overrides_runpath=no
11584   # This implies no fast_install, which is unacceptable.
11585   # Some rework will be needed to allow for fast_install
11586   # before this can be enabled.
11587   hardcode_into_libs=yes
11588
11589   # Append ld.so.conf contents to the search path
11590   if test -f /etc/ld.so.conf; then
11591     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11592     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11593   fi
11594
11595   # We used to test for /lib/ld.so.1 and disable shared libraries on
11596   # powerpc, because MkLinux only supported shared libraries with the
11597   # GNU dynamic linker.  Since this was broken with cross compilers,
11598   # most powerpc-linux boxes support dynamic linking these days and
11599   # people can always --disable-shared, the test was removed, and we
11600   # assume the GNU/Linux dynamic linker is in use.
11601   dynamic_linker='GNU/Linux ld.so'
11602   ;;
11603
11604 knetbsd*-gnu)
11605   version_type=linux
11606   need_lib_prefix=no
11607   need_version=no
11608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11609   soname_spec='${libname}${release}${shared_ext}$major'
11610   shlibpath_var=LD_LIBRARY_PATH
11611   shlibpath_overrides_runpath=no
11612   hardcode_into_libs=yes
11613   dynamic_linker='GNU ld.so'
11614   ;;
11615
11616 netbsd*)
11617   version_type=sunos
11618   need_lib_prefix=no
11619   need_version=no
11620   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11622     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11623     dynamic_linker='NetBSD (a.out) ld.so'
11624   else
11625     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11626     soname_spec='${libname}${release}${shared_ext}$major'
11627     dynamic_linker='NetBSD ld.elf_so'
11628   fi
11629   shlibpath_var=LD_LIBRARY_PATH
11630   shlibpath_overrides_runpath=yes
11631   hardcode_into_libs=yes
11632   ;;
11633
11634 newsos6)
11635   version_type=linux
11636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637   shlibpath_var=LD_LIBRARY_PATH
11638   shlibpath_overrides_runpath=yes
11639   ;;
11640
11641 nto-qnx*)
11642   version_type=linux
11643   need_lib_prefix=no
11644   need_version=no
11645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11646   soname_spec='${libname}${release}${shared_ext}$major'
11647   shlibpath_var=LD_LIBRARY_PATH
11648   shlibpath_overrides_runpath=yes
11649   ;;
11650
11651 openbsd*)
11652   version_type=sunos
11653   need_lib_prefix=no
11654   need_version=yes
11655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11656   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11657   shlibpath_var=LD_LIBRARY_PATH
11658   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11659     case $host_os in
11660       openbsd2.[89] | openbsd2.[89].*)
11661         shlibpath_overrides_runpath=no
11662         ;;
11663       *)
11664         shlibpath_overrides_runpath=yes
11665         ;;
11666       esac
11667   else
11668     shlibpath_overrides_runpath=yes
11669   fi
11670   ;;
11671
11672 os2*)
11673   libname_spec='$name'
11674   shrext_cmds=".dll"
11675   need_lib_prefix=no
11676   library_names_spec='$libname${shared_ext} $libname.a'
11677   dynamic_linker='OS/2 ld.exe'
11678   shlibpath_var=LIBPATH
11679   ;;
11680
11681 osf3* | osf4* | osf5*)
11682   version_type=osf
11683   need_lib_prefix=no
11684   need_version=no
11685   soname_spec='${libname}${release}${shared_ext}$major'
11686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11687   shlibpath_var=LD_LIBRARY_PATH
11688   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11689   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11690   ;;
11691
11692 sco3.2v5*)
11693   version_type=osf
11694   soname_spec='${libname}${release}${shared_ext}$major'
11695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696   shlibpath_var=LD_LIBRARY_PATH
11697   ;;
11698
11699 solaris*)
11700   version_type=linux
11701   need_lib_prefix=no
11702   need_version=no
11703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11704   soname_spec='${libname}${release}${shared_ext}$major'
11705   shlibpath_var=LD_LIBRARY_PATH
11706   shlibpath_overrides_runpath=yes
11707   hardcode_into_libs=yes
11708   # ldd complains unless libraries are executable
11709   postinstall_cmds='chmod +x $lib'
11710   ;;
11711
11712 sunos4*)
11713   version_type=sunos
11714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11715   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11716   shlibpath_var=LD_LIBRARY_PATH
11717   shlibpath_overrides_runpath=yes
11718   if test "$with_gnu_ld" = yes; then
11719     need_lib_prefix=no
11720   fi
11721   need_version=yes
11722   ;;
11723
11724 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11725   version_type=linux
11726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727   soname_spec='${libname}${release}${shared_ext}$major'
11728   shlibpath_var=LD_LIBRARY_PATH
11729   case $host_vendor in
11730     sni)
11731       shlibpath_overrides_runpath=no
11732       need_lib_prefix=no
11733       export_dynamic_flag_spec='${wl}-Blargedynsym'
11734       runpath_var=LD_RUN_PATH
11735       ;;
11736     siemens)
11737       need_lib_prefix=no
11738       ;;
11739     motorola)
11740       need_lib_prefix=no
11741       need_version=no
11742       shlibpath_overrides_runpath=no
11743       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11744       ;;
11745   esac
11746   ;;
11747
11748 sysv4*MP*)
11749   if test -d /usr/nec ;then
11750     version_type=linux
11751     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11752     soname_spec='$libname${shared_ext}.$major'
11753     shlibpath_var=LD_LIBRARY_PATH
11754   fi
11755   ;;
11756
11757 uts4*)
11758   version_type=linux
11759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760   soname_spec='${libname}${release}${shared_ext}$major'
11761   shlibpath_var=LD_LIBRARY_PATH
11762   ;;
11763
11764 *)
11765   dynamic_linker=no
11766   ;;
11767 esac
11768 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11769 echo "${ECHO_T}$dynamic_linker" >&6
11770 test "$dynamic_linker" = no && can_build_shared=no
11771
11772 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11773 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11774 hardcode_action_CXX=
11775 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11776    test -n "$runpath_var CXX" || \
11777    test "X$hardcode_automatic_CXX"="Xyes" ; then
11778
11779   # We can hardcode non-existant directories.
11780   if test "$hardcode_direct_CXX" != no &&
11781      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11782      # have to relink, otherwise we might link with an installed library
11783      # when we should be linking with a yet-to-be-installed one
11784      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11785      test "$hardcode_minus_L_CXX" != no; then
11786     # Linking always hardcodes the temporary library directory.
11787     hardcode_action_CXX=relink
11788   else
11789     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11790     hardcode_action_CXX=immediate
11791   fi
11792 else
11793   # We cannot hardcode anything, or else we can only hardcode existing
11794   # directories.
11795   hardcode_action_CXX=unsupported
11796 fi
11797 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11798 echo "${ECHO_T}$hardcode_action_CXX" >&6
11799
11800 if test "$hardcode_action_CXX" = relink; then
11801   # Fast installation is not supported
11802   enable_fast_install=no
11803 elif test "$shlibpath_overrides_runpath" = yes ||
11804      test "$enable_shared" = no; then
11805   # Fast installation is not necessary
11806   enable_fast_install=needless
11807 fi
11808
11809 striplib=
11810 old_striplib=
11811 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11812 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11813 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11814   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11815   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11816   echo "$as_me:$LINENO: result: yes" >&5
11817 echo "${ECHO_T}yes" >&6
11818 else
11819 # FIXME - insert some real tests, host_os isn't really good enough
11820   case $host_os in
11821    darwin*)
11822        if test -n "$STRIP" ; then
11823          striplib="$STRIP -x"
11824          echo "$as_me:$LINENO: result: yes" >&5
11825 echo "${ECHO_T}yes" >&6
11826        else
11827   echo "$as_me:$LINENO: result: no" >&5
11828 echo "${ECHO_T}no" >&6
11829 fi
11830        ;;
11831    *)
11832   echo "$as_me:$LINENO: result: no" >&5
11833 echo "${ECHO_T}no" >&6
11834     ;;
11835   esac
11836 fi
11837
11838 if test "x$enable_dlopen" != xyes; then
11839   enable_dlopen=unknown
11840   enable_dlopen_self=unknown
11841   enable_dlopen_self_static=unknown
11842 else
11843   lt_cv_dlopen=no
11844   lt_cv_dlopen_libs=
11845
11846   case $host_os in
11847   beos*)
11848     lt_cv_dlopen="load_add_on"
11849     lt_cv_dlopen_libs=
11850     lt_cv_dlopen_self=yes
11851     ;;
11852
11853   mingw* | pw32*)
11854     lt_cv_dlopen="LoadLibrary"
11855     lt_cv_dlopen_libs=
11856    ;;
11857
11858   cygwin*)
11859     lt_cv_dlopen="dlopen"
11860     lt_cv_dlopen_libs=
11861    ;;
11862
11863   darwin*)
11864   # if libdl is installed we need to link against it
11865     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11866 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11868   echo $ECHO_N "(cached) $ECHO_C" >&6
11869 else
11870   ac_check_lib_save_LIBS=$LIBS
11871 LIBS="-ldl  $LIBS"
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878
11879 /* Override any gcc2 internal prototype to avoid an error.  */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 /* We use char because int might match the return type of a gcc2
11884    builtin and then its argument prototype would still apply.  */
11885 char dlopen ();
11886 int
11887 main ()
11888 {
11889 dlopen ();
11890   ;
11891   return 0;
11892 }
11893 _ACEOF
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896   (eval $ac_link) 2>conftest.er1
11897   ac_status=$?
11898   grep -v '^ *+' conftest.er1 >conftest.err
11899   rm -f conftest.er1
11900   cat conftest.err >&5
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); } &&
11903          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905   (eval $ac_try) 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); }; } &&
11909          { ac_try='test -s conftest$ac_exeext'
11910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911   (eval $ac_try) 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); }; }; then
11915   ac_cv_lib_dl_dlopen=yes
11916 else
11917   echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11919
11920 ac_cv_lib_dl_dlopen=no
11921 fi
11922 rm -f conftest.err conftest.$ac_objext \
11923       conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_lib_save_LIBS
11925 fi
11926 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11927 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11928 if test $ac_cv_lib_dl_dlopen = yes; then
11929   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11930 else
11931
11932     lt_cv_dlopen="dyld"
11933     lt_cv_dlopen_libs=
11934     lt_cv_dlopen_self=yes
11935
11936 fi
11937
11938    ;;
11939
11940   *)
11941     echo "$as_me:$LINENO: checking for shl_load" >&5
11942 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11943 if test "${ac_cv_func_shl_load+set}" = set; then
11944   echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946   cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h.  */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h.  */
11952 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11954 #define shl_load innocuous_shl_load
11955
11956 /* System header to define __stub macros and hopefully few prototypes,
11957     which can conflict with char shl_load (); below.
11958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959     <limits.h> exists even on freestanding compilers.  */
11960
11961 #ifdef __STDC__
11962 # include <limits.h>
11963 #else
11964 # include <assert.h>
11965 #endif
11966
11967 #undef shl_load
11968
11969 /* Override any gcc2 internal prototype to avoid an error.  */
11970 #ifdef __cplusplus
11971 extern "C"
11972 {
11973 #endif
11974 /* We use char because int might match the return type of a gcc2
11975    builtin and then its argument prototype would still apply.  */
11976 char shl_load ();
11977 /* The GNU C library defines this for functions which it implements
11978     to always fail with ENOSYS.  Some functions are actually named
11979     something starting with __ and the normal name is an alias.  */
11980 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11981 choke me
11982 #else
11983 char (*f) () = shl_load;
11984 #endif
11985 #ifdef __cplusplus
11986 }
11987 #endif
11988
11989 int
11990 main ()
11991 {
11992 return f != shl_load;
11993   ;
11994   return 0;
11995 }
11996 _ACEOF
11997 rm -f conftest.$ac_objext conftest$ac_exeext
11998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11999   (eval $ac_link) 2>conftest.er1
12000   ac_status=$?
12001   grep -v '^ *+' conftest.er1 >conftest.err
12002   rm -f conftest.er1
12003   cat conftest.err >&5
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); } &&
12006          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008   (eval $ac_try) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); }; } &&
12012          { ac_try='test -s conftest$ac_exeext'
12013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014   (eval $ac_try) 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); }; }; then
12018   ac_cv_func_shl_load=yes
12019 else
12020   echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 ac_cv_func_shl_load=no
12024 fi
12025 rm -f conftest.err conftest.$ac_objext \
12026       conftest$ac_exeext conftest.$ac_ext
12027 fi
12028 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12029 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12030 if test $ac_cv_func_shl_load = yes; then
12031   lt_cv_dlopen="shl_load"
12032 else
12033   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12034 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12035 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12036   echo $ECHO_N "(cached) $ECHO_C" >&6
12037 else
12038   ac_check_lib_save_LIBS=$LIBS
12039 LIBS="-ldld  $LIBS"
12040 cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h.  */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h.  */
12046
12047 /* Override any gcc2 internal prototype to avoid an error.  */
12048 #ifdef __cplusplus
12049 extern "C"
12050 #endif
12051 /* We use char because int might match the return type of a gcc2
12052    builtin and then its argument prototype would still apply.  */
12053 char shl_load ();
12054 int
12055 main ()
12056 {
12057 shl_load ();
12058   ;
12059   return 0;
12060 }
12061 _ACEOF
12062 rm -f conftest.$ac_objext conftest$ac_exeext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12064   (eval $ac_link) 2>conftest.er1
12065   ac_status=$?
12066   grep -v '^ *+' conftest.er1 >conftest.err
12067   rm -f conftest.er1
12068   cat conftest.err >&5
12069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); } &&
12071          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073   (eval $ac_try) 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; } &&
12077          { ac_try='test -s conftest$ac_exeext'
12078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079   (eval $ac_try) 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); }; }; then
12083   ac_cv_lib_dld_shl_load=yes
12084 else
12085   echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088 ac_cv_lib_dld_shl_load=no
12089 fi
12090 rm -f conftest.err conftest.$ac_objext \
12091       conftest$ac_exeext conftest.$ac_ext
12092 LIBS=$ac_check_lib_save_LIBS
12093 fi
12094 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12095 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12096 if test $ac_cv_lib_dld_shl_load = yes; then
12097   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12098 else
12099   echo "$as_me:$LINENO: checking for dlopen" >&5
12100 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12101 if test "${ac_cv_func_dlopen+set}" = set; then
12102   echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104   cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h.  */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h.  */
12110 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12112 #define dlopen innocuous_dlopen
12113
12114 /* System header to define __stub macros and hopefully few prototypes,
12115     which can conflict with char dlopen (); below.
12116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12117     <limits.h> exists even on freestanding compilers.  */
12118
12119 #ifdef __STDC__
12120 # include <limits.h>
12121 #else
12122 # include <assert.h>
12123 #endif
12124
12125 #undef dlopen
12126
12127 /* Override any gcc2 internal prototype to avoid an error.  */
12128 #ifdef __cplusplus
12129 extern "C"
12130 {
12131 #endif
12132 /* We use char because int might match the return type of a gcc2
12133    builtin and then its argument prototype would still apply.  */
12134 char dlopen ();
12135 /* The GNU C library defines this for functions which it implements
12136     to always fail with ENOSYS.  Some functions are actually named
12137     something starting with __ and the normal name is an alias.  */
12138 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12139 choke me
12140 #else
12141 char (*f) () = dlopen;
12142 #endif
12143 #ifdef __cplusplus
12144 }
12145 #endif
12146
12147 int
12148 main ()
12149 {
12150 return f != dlopen;
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12157   (eval $ac_link) 2>conftest.er1
12158   ac_status=$?
12159   grep -v '^ *+' conftest.er1 >conftest.err
12160   rm -f conftest.er1
12161   cat conftest.err >&5
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); } &&
12164          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166   (eval $ac_try) 2>&5
12167   ac_status=$?
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); }; } &&
12170          { ac_try='test -s conftest$ac_exeext'
12171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172   (eval $ac_try) 2>&5
12173   ac_status=$?
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); }; }; then
12176   ac_cv_func_dlopen=yes
12177 else
12178   echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12180
12181 ac_cv_func_dlopen=no
12182 fi
12183 rm -f conftest.err conftest.$ac_objext \
12184       conftest$ac_exeext conftest.$ac_ext
12185 fi
12186 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12187 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12188 if test $ac_cv_func_dlopen = yes; then
12189   lt_cv_dlopen="dlopen"
12190 else
12191   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12192 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12193 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12194   echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196   ac_check_lib_save_LIBS=$LIBS
12197 LIBS="-ldl  $LIBS"
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h.  */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h.  */
12204
12205 /* Override any gcc2 internal prototype to avoid an error.  */
12206 #ifdef __cplusplus
12207 extern "C"
12208 #endif
12209 /* We use char because int might match the return type of a gcc2
12210    builtin and then its argument prototype would still apply.  */
12211 char dlopen ();
12212 int
12213 main ()
12214 {
12215 dlopen ();
12216   ;
12217   return 0;
12218 }
12219 _ACEOF
12220 rm -f conftest.$ac_objext conftest$ac_exeext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12222   (eval $ac_link) 2>conftest.er1
12223   ac_status=$?
12224   grep -v '^ *+' conftest.er1 >conftest.err
12225   rm -f conftest.er1
12226   cat conftest.err >&5
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); } &&
12229          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231   (eval $ac_try) 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; } &&
12235          { ac_try='test -s conftest$ac_exeext'
12236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237   (eval $ac_try) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }; }; then
12241   ac_cv_lib_dl_dlopen=yes
12242 else
12243   echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12245
12246 ac_cv_lib_dl_dlopen=no
12247 fi
12248 rm -f conftest.err conftest.$ac_objext \
12249       conftest$ac_exeext conftest.$ac_ext
12250 LIBS=$ac_check_lib_save_LIBS
12251 fi
12252 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12253 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12254 if test $ac_cv_lib_dl_dlopen = yes; then
12255   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12256 else
12257   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12258 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12259 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12260   echo $ECHO_N "(cached) $ECHO_C" >&6
12261 else
12262   ac_check_lib_save_LIBS=$LIBS
12263 LIBS="-lsvld  $LIBS"
12264 cat >conftest.$ac_ext <<_ACEOF
12265 /* confdefs.h.  */
12266 _ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h.  */
12270
12271 /* Override any gcc2 internal prototype to avoid an error.  */
12272 #ifdef __cplusplus
12273 extern "C"
12274 #endif
12275 /* We use char because int might match the return type of a gcc2
12276    builtin and then its argument prototype would still apply.  */
12277 char dlopen ();
12278 int
12279 main ()
12280 {
12281 dlopen ();
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 rm -f conftest.$ac_objext conftest$ac_exeext
12287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12288   (eval $ac_link) 2>conftest.er1
12289   ac_status=$?
12290   grep -v '^ *+' conftest.er1 >conftest.err
12291   rm -f conftest.er1
12292   cat conftest.err >&5
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); } &&
12295          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297   (eval $ac_try) 2>&5
12298   ac_status=$?
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); }; } &&
12301          { ac_try='test -s conftest$ac_exeext'
12302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303   (eval $ac_try) 2>&5
12304   ac_status=$?
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); }; }; then
12307   ac_cv_lib_svld_dlopen=yes
12308 else
12309   echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12311
12312 ac_cv_lib_svld_dlopen=no
12313 fi
12314 rm -f conftest.err conftest.$ac_objext \
12315       conftest$ac_exeext conftest.$ac_ext
12316 LIBS=$ac_check_lib_save_LIBS
12317 fi
12318 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12319 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12320 if test $ac_cv_lib_svld_dlopen = yes; then
12321   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12322 else
12323   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12324 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12325 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12326   echo $ECHO_N "(cached) $ECHO_C" >&6
12327 else
12328   ac_check_lib_save_LIBS=$LIBS
12329 LIBS="-ldld  $LIBS"
12330 cat >conftest.$ac_ext <<_ACEOF
12331 /* confdefs.h.  */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h.  */
12336
12337 /* Override any gcc2 internal prototype to avoid an error.  */
12338 #ifdef __cplusplus
12339 extern "C"
12340 #endif
12341 /* We use char because int might match the return type of a gcc2
12342    builtin and then its argument prototype would still apply.  */
12343 char dld_link ();
12344 int
12345 main ()
12346 {
12347 dld_link ();
12348   ;
12349   return 0;
12350 }
12351 _ACEOF
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354   (eval $ac_link) 2>conftest.er1
12355   ac_status=$?
12356   grep -v '^ *+' conftest.er1 >conftest.err
12357   rm -f conftest.er1
12358   cat conftest.err >&5
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); } &&
12361          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363   (eval $ac_try) 2>&5
12364   ac_status=$?
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); }; } &&
12367          { ac_try='test -s conftest$ac_exeext'
12368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369   (eval $ac_try) 2>&5
12370   ac_status=$?
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); }; }; then
12373   ac_cv_lib_dld_dld_link=yes
12374 else
12375   echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12377
12378 ac_cv_lib_dld_dld_link=no
12379 fi
12380 rm -f conftest.err conftest.$ac_objext \
12381       conftest$ac_exeext conftest.$ac_ext
12382 LIBS=$ac_check_lib_save_LIBS
12383 fi
12384 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12385 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12386 if test $ac_cv_lib_dld_dld_link = yes; then
12387   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12388 fi
12389
12390
12391 fi
12392
12393
12394 fi
12395
12396
12397 fi
12398
12399
12400 fi
12401
12402
12403 fi
12404
12405     ;;
12406   esac
12407
12408   if test "x$lt_cv_dlopen" != xno; then
12409     enable_dlopen=yes
12410   else
12411     enable_dlopen=no
12412   fi
12413
12414   case $lt_cv_dlopen in
12415   dlopen)
12416     save_CPPFLAGS="$CPPFLAGS"
12417     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12418
12419     save_LDFLAGS="$LDFLAGS"
12420     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12421
12422     save_LIBS="$LIBS"
12423     LIBS="$lt_cv_dlopen_libs $LIBS"
12424
12425     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12426 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12427 if test "${lt_cv_dlopen_self+set}" = set; then
12428   echo $ECHO_N "(cached) $ECHO_C" >&6
12429 else
12430           if test "$cross_compiling" = yes; then :
12431   lt_cv_dlopen_self=cross
12432 else
12433   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12434   lt_status=$lt_dlunknown
12435   cat > conftest.$ac_ext <<EOF
12436 #line 12436 "configure"
12437 #include "confdefs.h"
12438
12439 #if HAVE_DLFCN_H
12440 #include <dlfcn.h>
12441 #endif
12442
12443 #include <stdio.h>
12444
12445 #ifdef RTLD_GLOBAL
12446 #  define LT_DLGLOBAL           RTLD_GLOBAL
12447 #else
12448 #  ifdef DL_GLOBAL
12449 #    define LT_DLGLOBAL         DL_GLOBAL
12450 #  else
12451 #    define LT_DLGLOBAL         0
12452 #  endif
12453 #endif
12454
12455 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12456    find out it does not work in some platform. */
12457 #ifndef LT_DLLAZY_OR_NOW
12458 #  ifdef RTLD_LAZY
12459 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12460 #  else
12461 #    ifdef DL_LAZY
12462 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12463 #    else
12464 #      ifdef RTLD_NOW
12465 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12466 #      else
12467 #        ifdef DL_NOW
12468 #          define LT_DLLAZY_OR_NOW      DL_NOW
12469 #        else
12470 #          define LT_DLLAZY_OR_NOW      0
12471 #        endif
12472 #      endif
12473 #    endif
12474 #  endif
12475 #endif
12476
12477 #ifdef __cplusplus
12478 extern "C" void exit (int);
12479 #endif
12480
12481 void fnord() { int i=42;}
12482 int main ()
12483 {
12484   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12485   int status = $lt_dlunknown;
12486
12487   if (self)
12488     {
12489       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12490       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12491       /* dlclose (self); */
12492     }
12493
12494     exit (status);
12495 }
12496 EOF
12497   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12498   (eval $ac_link) 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12502     (./conftest; exit; ) 2>/dev/null
12503     lt_status=$?
12504     case x$lt_status in
12505       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12506       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12507       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12508     esac
12509   else :
12510     # compilation failed
12511     lt_cv_dlopen_self=no
12512   fi
12513 fi
12514 rm -fr conftest*
12515
12516
12517 fi
12518 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12519 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12520
12521     if test "x$lt_cv_dlopen_self" = xyes; then
12522       LDFLAGS="$LDFLAGS $link_static_flag"
12523       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12524 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12525 if test "${lt_cv_dlopen_self_static+set}" = set; then
12526   echo $ECHO_N "(cached) $ECHO_C" >&6
12527 else
12528           if test "$cross_compiling" = yes; then :
12529   lt_cv_dlopen_self_static=cross
12530 else
12531   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12532   lt_status=$lt_dlunknown
12533   cat > conftest.$ac_ext <<EOF
12534 #line 12534 "configure"
12535 #include "confdefs.h"
12536
12537 #if HAVE_DLFCN_H
12538 #include <dlfcn.h>
12539 #endif
12540
12541 #include <stdio.h>
12542
12543 #ifdef RTLD_GLOBAL
12544 #  define LT_DLGLOBAL           RTLD_GLOBAL
12545 #else
12546 #  ifdef DL_GLOBAL
12547 #    define LT_DLGLOBAL         DL_GLOBAL
12548 #  else
12549 #    define LT_DLGLOBAL         0
12550 #  endif
12551 #endif
12552
12553 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12554    find out it does not work in some platform. */
12555 #ifndef LT_DLLAZY_OR_NOW
12556 #  ifdef RTLD_LAZY
12557 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12558 #  else
12559 #    ifdef DL_LAZY
12560 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12561 #    else
12562 #      ifdef RTLD_NOW
12563 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12564 #      else
12565 #        ifdef DL_NOW
12566 #          define LT_DLLAZY_OR_NOW      DL_NOW
12567 #        else
12568 #          define LT_DLLAZY_OR_NOW      0
12569 #        endif
12570 #      endif
12571 #    endif
12572 #  endif
12573 #endif
12574
12575 #ifdef __cplusplus
12576 extern "C" void exit (int);
12577 #endif
12578
12579 void fnord() { int i=42;}
12580 int main ()
12581 {
12582   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12583   int status = $lt_dlunknown;
12584
12585   if (self)
12586     {
12587       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12588       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12589       /* dlclose (self); */
12590     }
12591
12592     exit (status);
12593 }
12594 EOF
12595   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12596   (eval $ac_link) 2>&5
12597   ac_status=$?
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12600     (./conftest; exit; ) 2>/dev/null
12601     lt_status=$?
12602     case x$lt_status in
12603       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12604       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12605       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12606     esac
12607   else :
12608     # compilation failed
12609     lt_cv_dlopen_self_static=no
12610   fi
12611 fi
12612 rm -fr conftest*
12613
12614
12615 fi
12616 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12617 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12618     fi
12619
12620     CPPFLAGS="$save_CPPFLAGS"
12621     LDFLAGS="$save_LDFLAGS"
12622     LIBS="$save_LIBS"
12623     ;;
12624   esac
12625
12626   case $lt_cv_dlopen_self in
12627   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12628   *) enable_dlopen_self=unknown ;;
12629   esac
12630
12631   case $lt_cv_dlopen_self_static in
12632   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12633   *) enable_dlopen_self_static=unknown ;;
12634   esac
12635 fi
12636
12637
12638 # The else clause should only fire when bootstrapping the
12639 # libtool distribution, otherwise you forgot to ship ltmain.sh
12640 # with your package, and you will get complaints that there are
12641 # no rules to generate ltmain.sh.
12642 if test -f "$ltmain"; then
12643   # See if we are running on zsh, and set the options which allow our commands through
12644   # without removal of \ escapes.
12645   if test -n "${ZSH_VERSION+set}" ; then
12646     setopt NO_GLOB_SUBST
12647   fi
12648   # Now quote all the things that may contain metacharacters while being
12649   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12650   # variables and quote the copies for generation of the libtool script.
12651   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12652     SED SHELL STRIP \
12653     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12654     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12655     deplibs_check_method reload_flag reload_cmds need_locks \
12656     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12657     lt_cv_sys_global_symbol_to_c_name_address \
12658     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12659     old_postinstall_cmds old_postuninstall_cmds \
12660     compiler_CXX \
12661     CC_CXX \
12662     LD_CXX \
12663     lt_prog_compiler_wl_CXX \
12664     lt_prog_compiler_pic_CXX \
12665     lt_prog_compiler_static_CXX \
12666     lt_prog_compiler_no_builtin_flag_CXX \
12667     export_dynamic_flag_spec_CXX \
12668     thread_safe_flag_spec_CXX \
12669     whole_archive_flag_spec_CXX \
12670     enable_shared_with_static_runtimes_CXX \
12671     old_archive_cmds_CXX \
12672     old_archive_from_new_cmds_CXX \
12673     predep_objects_CXX \
12674     postdep_objects_CXX \
12675     predeps_CXX \
12676     postdeps_CXX \
12677     compiler_lib_search_path_CXX \
12678     archive_cmds_CXX \
12679     archive_expsym_cmds_CXX \
12680     postinstall_cmds_CXX \
12681     postuninstall_cmds_CXX \
12682     old_archive_from_expsyms_cmds_CXX \
12683     allow_undefined_flag_CXX \
12684     no_undefined_flag_CXX \
12685     export_symbols_cmds_CXX \
12686     hardcode_libdir_flag_spec_CXX \
12687     hardcode_libdir_flag_spec_ld_CXX \
12688     hardcode_libdir_separator_CXX \
12689     hardcode_automatic_CXX \
12690     module_cmds_CXX \
12691     module_expsym_cmds_CXX \
12692     lt_cv_prog_compiler_c_o_CXX \
12693     exclude_expsyms_CXX \
12694     include_expsyms_CXX; do
12695
12696     case $var in
12697     old_archive_cmds_CXX | \
12698     old_archive_from_new_cmds_CXX | \
12699     archive_cmds_CXX | \
12700     archive_expsym_cmds_CXX | \
12701     module_cmds_CXX | \
12702     module_expsym_cmds_CXX | \
12703     old_archive_from_expsyms_cmds_CXX | \
12704     export_symbols_cmds_CXX | \
12705     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12706     postinstall_cmds | postuninstall_cmds | \
12707     old_postinstall_cmds | old_postuninstall_cmds | \
12708     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12709       # Double-quote double-evaled strings.
12710       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12711       ;;
12712     *)
12713       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12714       ;;
12715     esac
12716   done
12717
12718   case $lt_echo in
12719   *'\$0 --fallback-echo"')
12720     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12721     ;;
12722   esac
12723
12724 cfgfile="$ofile"
12725
12726   cat <<__EOF__ >> "$cfgfile"
12727 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12728
12729 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12730
12731 # Shell to use when invoking shell scripts.
12732 SHELL=$lt_SHELL
12733
12734 # Whether or not to build shared libraries.
12735 build_libtool_libs=$enable_shared
12736
12737 # Whether or not to build static libraries.
12738 build_old_libs=$enable_static
12739
12740 # Whether or not to add -lc for building shared libraries.
12741 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12742
12743 # Whether or not to disallow shared libs when runtime libs are static
12744 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12745
12746 # Whether or not to optimize for fast installation.
12747 fast_install=$enable_fast_install
12748
12749 # The host system.
12750 host_alias=$host_alias
12751 host=$host
12752
12753 # An echo program that does not interpret backslashes.
12754 echo=$lt_echo
12755
12756 # The archiver.
12757 AR=$lt_AR
12758 AR_FLAGS=$lt_AR_FLAGS
12759
12760 # A C compiler.
12761 LTCC=$lt_LTCC
12762
12763 # A language-specific compiler.
12764 CC=$lt_compiler_CXX
12765
12766 # Is the compiler the GNU C compiler?
12767 with_gcc=$GCC_CXX
12768
12769 # An ERE matcher.
12770 EGREP=$lt_EGREP
12771
12772 # The linker used to build libraries.
12773 LD=$lt_LD_CXX
12774
12775 # Whether we need hard or soft links.
12776 LN_S=$lt_LN_S
12777
12778 # A BSD-compatible nm program.
12779 NM=$lt_NM
12780
12781 # A symbol stripping program
12782 STRIP=$lt_STRIP
12783
12784 # Used to examine libraries when file_magic_cmd begins "file"
12785 MAGIC_CMD=$MAGIC_CMD
12786
12787 # Used on cygwin: DLL creation program.
12788 DLLTOOL="$DLLTOOL"
12789
12790 # Used on cygwin: object dumper.
12791 OBJDUMP="$OBJDUMP"
12792
12793 # Used on cygwin: assembler.
12794 AS="$AS"
12795
12796 # The name of the directory that contains temporary libtool files.
12797 objdir=$objdir
12798
12799 # How to create reloadable object files.
12800 reload_flag=$lt_reload_flag
12801 reload_cmds=$lt_reload_cmds
12802
12803 # How to pass a linker flag through the compiler.
12804 wl=$lt_lt_prog_compiler_wl_CXX
12805
12806 # Object file suffix (normally "o").
12807 objext="$ac_objext"
12808
12809 # Old archive suffix (normally "a").
12810 libext="$libext"
12811
12812 # Shared library suffix (normally ".so").
12813 shrext_cmds='$shrext_cmds'
12814
12815 # Executable file suffix (normally "").
12816 exeext="$exeext"
12817
12818 # Additional compiler flags for building library objects.
12819 pic_flag=$lt_lt_prog_compiler_pic_CXX
12820 pic_mode=$pic_mode
12821
12822 # What is the maximum length of a command?
12823 max_cmd_len=$lt_cv_sys_max_cmd_len
12824
12825 # Does compiler simultaneously support -c and -o options?
12826 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12827
12828 # Must we lock files when doing compilation ?
12829 need_locks=$lt_need_locks
12830
12831 # Do we need the lib prefix for modules?
12832 need_lib_prefix=$need_lib_prefix
12833
12834 # Do we need a version for libraries?
12835 need_version=$need_version
12836
12837 # Whether dlopen is supported.
12838 dlopen_support=$enable_dlopen
12839
12840 # Whether dlopen of programs is supported.
12841 dlopen_self=$enable_dlopen_self
12842
12843 # Whether dlopen of statically linked programs is supported.
12844 dlopen_self_static=$enable_dlopen_self_static
12845
12846 # Compiler flag to prevent dynamic linking.
12847 link_static_flag=$lt_lt_prog_compiler_static_CXX
12848
12849 # Compiler flag to turn off builtin functions.
12850 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12851
12852 # Compiler flag to allow reflexive dlopens.
12853 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12854
12855 # Compiler flag to generate shared objects directly from archives.
12856 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12857
12858 # Compiler flag to generate thread-safe objects.
12859 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12860
12861 # Library versioning type.
12862 version_type=$version_type
12863
12864 # Format of library name prefix.
12865 libname_spec=$lt_libname_spec
12866
12867 # List of archive names.  First name is the real one, the rest are links.
12868 # The last name is the one that the linker finds with -lNAME.
12869 library_names_spec=$lt_library_names_spec
12870
12871 # The coded name of the library, if different from the real name.
12872 soname_spec=$lt_soname_spec
12873
12874 # Commands used to build and install an old-style archive.
12875 RANLIB=$lt_RANLIB
12876 old_archive_cmds=$lt_old_archive_cmds_CXX
12877 old_postinstall_cmds=$lt_old_postinstall_cmds
12878 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12879
12880 # Create an old-style archive from a shared archive.
12881 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12882
12883 # Create a temporary old-style archive to link instead of a shared archive.
12884 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12885
12886 # Commands used to build and install a shared archive.
12887 archive_cmds=$lt_archive_cmds_CXX
12888 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12889 postinstall_cmds=$lt_postinstall_cmds
12890 postuninstall_cmds=$lt_postuninstall_cmds
12891
12892 # Commands used to build a loadable module (assumed same as above if empty)
12893 module_cmds=$lt_module_cmds_CXX
12894 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12895
12896 # Commands to strip libraries.
12897 old_striplib=$lt_old_striplib
12898 striplib=$lt_striplib
12899
12900 # Dependencies to place before the objects being linked to create a
12901 # shared library.
12902 predep_objects=$lt_predep_objects_CXX
12903
12904 # Dependencies to place after the objects being linked to create a
12905 # shared library.
12906 postdep_objects=$lt_postdep_objects_CXX
12907
12908 # Dependencies to place before the objects being linked to create a
12909 # shared library.
12910 predeps=$lt_predeps_CXX
12911
12912 # Dependencies to place after the objects being linked to create a
12913 # shared library.
12914 postdeps=$lt_postdeps_CXX
12915
12916 # The library search path used internally by the compiler when linking
12917 # a shared library.
12918 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12919
12920 # Method to check whether dependent libraries are shared objects.
12921 deplibs_check_method=$lt_deplibs_check_method
12922
12923 # Command to use when deplibs_check_method == file_magic.
12924 file_magic_cmd=$lt_file_magic_cmd
12925
12926 # Flag that allows shared libraries with undefined symbols to be built.
12927 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12928
12929 # Flag that forces no undefined symbols.
12930 no_undefined_flag=$lt_no_undefined_flag_CXX
12931
12932 # Commands used to finish a libtool library installation in a directory.
12933 finish_cmds=$lt_finish_cmds
12934
12935 # Same as above, but a single script fragment to be evaled but not shown.
12936 finish_eval=$lt_finish_eval
12937
12938 # Take the output of nm and produce a listing of raw symbols and C names.
12939 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12940
12941 # Transform the output of nm in a proper C declaration
12942 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12943
12944 # Transform the output of nm in a C name address pair
12945 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12946
12947 # This is the shared library runtime path variable.
12948 runpath_var=$runpath_var
12949
12950 # This is the shared library path variable.
12951 shlibpath_var=$shlibpath_var
12952
12953 # Is shlibpath searched before the hard-coded library search path?
12954 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12955
12956 # How to hardcode a shared library path into an executable.
12957 hardcode_action=$hardcode_action_CXX
12958
12959 # Whether we should hardcode library paths into libraries.
12960 hardcode_into_libs=$hardcode_into_libs
12961
12962 # Flag to hardcode \$libdir into a binary during linking.
12963 # This must work even if \$libdir does not exist.
12964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12965
12966 # If ld is used when linking, flag to hardcode \$libdir into
12967 # a binary during linking. This must work even if \$libdir does
12968 # not exist.
12969 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12970
12971 # Whether we need a single -rpath flag with a separated argument.
12972 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12973
12974 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12975 # resulting binary.
12976 hardcode_direct=$hardcode_direct_CXX
12977
12978 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12979 # resulting binary.
12980 hardcode_minus_L=$hardcode_minus_L_CXX
12981
12982 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12983 # the resulting binary.
12984 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12985
12986 # Set to yes if building a shared library automatically hardcodes DIR into the library
12987 # and all subsequent libraries and executables linked against it.
12988 hardcode_automatic=$hardcode_automatic_CXX
12989
12990 # Variables whose values should be saved in libtool wrapper scripts and
12991 # restored at relink time.
12992 variables_saved_for_relink="$variables_saved_for_relink"
12993
12994 # Whether libtool must link a program against all its dependency libraries.
12995 link_all_deplibs=$link_all_deplibs_CXX
12996
12997 # Compile-time system search path for libraries
12998 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12999
13000 # Run-time system search path for libraries
13001 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13002
13003 # Fix the shell variable \$srcfile for the compiler.
13004 fix_srcfile_path="$fix_srcfile_path_CXX"
13005
13006 # Set to yes if exported symbols are required.
13007 always_export_symbols=$always_export_symbols_CXX
13008
13009 # The commands to list exported symbols.
13010 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13011
13012 # The commands to extract the exported symbol list from a shared archive.
13013 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13014
13015 # Symbols that should not be listed in the preloaded symbols.
13016 exclude_expsyms=$lt_exclude_expsyms_CXX
13017
13018 # Symbols that must always be exported.
13019 include_expsyms=$lt_include_expsyms_CXX
13020
13021 # ### END LIBTOOL TAG CONFIG: $tagname
13022
13023 __EOF__
13024
13025
13026 else
13027   # If there is no Makefile yet, we rely on a make rule to execute
13028   # `config.status --recheck' to rerun these tests and create the
13029   # libtool script then.
13030   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13031   if test -f "$ltmain_in"; then
13032     test -f Makefile && make "$ltmain"
13033   fi
13034 fi
13035
13036
13037 ac_ext=c
13038 ac_cpp='$CPP $CPPFLAGS'
13039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13042
13043 CC=$lt_save_CC
13044 LDCXX=$LD
13045 LD=$lt_save_LD
13046 GCC=$lt_save_GCC
13047 with_gnu_ldcxx=$with_gnu_ld
13048 with_gnu_ld=$lt_save_with_gnu_ld
13049 lt_cv_path_LDCXX=$lt_cv_path_LD
13050 lt_cv_path_LD=$lt_save_path_LD
13051 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13052 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13053
13054         else
13055           tagname=""
13056         fi
13057         ;;
13058
13059       F77)
13060         if test -n "$F77" && test "X$F77" != "Xno"; then
13061
13062 ac_ext=f
13063 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13064 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13065 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13066
13067
13068 archive_cmds_need_lc_F77=no
13069 allow_undefined_flag_F77=
13070 always_export_symbols_F77=no
13071 archive_expsym_cmds_F77=
13072 export_dynamic_flag_spec_F77=
13073 hardcode_direct_F77=no
13074 hardcode_libdir_flag_spec_F77=
13075 hardcode_libdir_flag_spec_ld_F77=
13076 hardcode_libdir_separator_F77=
13077 hardcode_minus_L_F77=no
13078 hardcode_automatic_F77=no
13079 module_cmds_F77=
13080 module_expsym_cmds_F77=
13081 link_all_deplibs_F77=unknown
13082 old_archive_cmds_F77=$old_archive_cmds
13083 no_undefined_flag_F77=
13084 whole_archive_flag_spec_F77=
13085 enable_shared_with_static_runtimes_F77=no
13086
13087 # Source file extension for f77 test sources.
13088 ac_ext=f
13089
13090 # Object file extension for compiled f77 test sources.
13091 objext=o
13092 objext_F77=$objext
13093
13094 # Code to be used in simple compile tests
13095 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13096
13097 # Code to be used in simple link tests
13098 lt_simple_link_test_code="      program t\n      end\n"
13099
13100 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13101
13102 # If no C compiler was specified, use CC.
13103 LTCC=${LTCC-"$CC"}
13104
13105 # Allow CC to be a program name with arguments.
13106 compiler=$CC
13107
13108
13109 # Allow CC to be a program name with arguments.
13110 lt_save_CC="$CC"
13111 CC=${F77-"f77"}
13112 compiler=$CC
13113 compiler_F77=$CC
13114 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13115
13116 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13117 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13118 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13119 echo "${ECHO_T}$can_build_shared" >&6
13120
13121 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13122 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13123 test "$can_build_shared" = "no" && enable_shared=no
13124
13125 # On AIX, shared libraries and static libraries use the same namespace, and
13126 # are all built from PIC.
13127 case "$host_os" in
13128 aix3*)
13129   test "$enable_shared" = yes && enable_static=no
13130   if test -n "$RANLIB"; then
13131     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13132     postinstall_cmds='$RANLIB $lib'
13133   fi
13134   ;;
13135 aix4* | aix5*)
13136   test "$enable_shared" = yes && enable_static=no
13137   ;;
13138 esac
13139 echo "$as_me:$LINENO: result: $enable_shared" >&5
13140 echo "${ECHO_T}$enable_shared" >&6
13141
13142 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13143 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13144 # Make sure either enable_shared or enable_static is yes.
13145 test "$enable_shared" = yes || enable_static=yes
13146 echo "$as_me:$LINENO: result: $enable_static" >&5
13147 echo "${ECHO_T}$enable_static" >&6
13148
13149 test "$ld_shlibs_F77" = no && can_build_shared=no
13150
13151 GCC_F77="$G77"
13152 LD_F77="$LD"
13153
13154 lt_prog_compiler_wl_F77=
13155 lt_prog_compiler_pic_F77=
13156 lt_prog_compiler_static_F77=
13157
13158 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13159 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13160
13161   if test "$GCC" = yes; then
13162     lt_prog_compiler_wl_F77='-Wl,'
13163     lt_prog_compiler_static_F77='-static'
13164
13165     case $host_os in
13166       aix*)
13167       # All AIX code is PIC.
13168       if test "$host_cpu" = ia64; then
13169         # AIX 5 now supports IA64 processor
13170         lt_prog_compiler_static_F77='-Bstatic'
13171       fi
13172       ;;
13173
13174     amigaos*)
13175       # FIXME: we need at least 68020 code to build shared libraries, but
13176       # adding the `-m68020' flag to GCC prevents building anything better,
13177       # like `-m68040'.
13178       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13179       ;;
13180
13181     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13182       # PIC is the default for these OSes.
13183       ;;
13184
13185     mingw* | pw32* | os2*)
13186       # This hack is so that the source file can tell whether it is being
13187       # built for inclusion in a dll (and should export symbols for example).
13188       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13189       ;;
13190
13191     darwin* | rhapsody*)
13192       # PIC is the default on this platform
13193       # Common symbols not allowed in MH_DYLIB files
13194       lt_prog_compiler_pic_F77='-fno-common'
13195       ;;
13196
13197     msdosdjgpp*)
13198       # Just because we use GCC doesn't mean we suddenly get shared libraries
13199       # on systems that don't support them.
13200       lt_prog_compiler_can_build_shared_F77=no
13201       enable_shared=no
13202       ;;
13203
13204     sysv4*MP*)
13205       if test -d /usr/nec; then
13206         lt_prog_compiler_pic_F77=-Kconform_pic
13207       fi
13208       ;;
13209
13210     hpux*)
13211       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13212       # not for PA HP-UX.
13213       case "$host_cpu" in
13214       hppa*64*|ia64*)
13215         # +Z the default
13216         ;;
13217       *)
13218         lt_prog_compiler_pic_F77='-fPIC'
13219         ;;
13220       esac
13221       ;;
13222
13223     *)
13224       lt_prog_compiler_pic_F77='-fPIC'
13225       ;;
13226     esac
13227   else
13228     # PORTME Check for flag to pass linker flags through the system compiler.
13229     case $host_os in
13230     aix*)
13231       lt_prog_compiler_wl_F77='-Wl,'
13232       if test "$host_cpu" = ia64; then
13233         # AIX 5 now supports IA64 processor
13234         lt_prog_compiler_static_F77='-Bstatic'
13235       else
13236         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13237       fi
13238       ;;
13239
13240     mingw* | pw32* | os2*)
13241       # This hack is so that the source file can tell whether it is being
13242       # built for inclusion in a dll (and should export symbols for example).
13243       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13244       ;;
13245
13246     hpux9* | hpux10* | hpux11*)
13247       lt_prog_compiler_wl_F77='-Wl,'
13248       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13249       # not for PA HP-UX.
13250       case "$host_cpu" in
13251       hppa*64*|ia64*)
13252         # +Z the default
13253         ;;
13254       *)
13255         lt_prog_compiler_pic_F77='+Z'
13256         ;;
13257       esac
13258       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13259       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13260       ;;
13261
13262     irix5* | irix6* | nonstopux*)
13263       lt_prog_compiler_wl_F77='-Wl,'
13264       # PIC (with -KPIC) is the default.
13265       lt_prog_compiler_static_F77='-non_shared'
13266       ;;
13267
13268     newsos6)
13269       lt_prog_compiler_pic_F77='-KPIC'
13270       lt_prog_compiler_static_F77='-Bstatic'
13271       ;;
13272
13273     linux*)
13274       case $CC in
13275       icc* | ecc*)
13276         lt_prog_compiler_wl_F77='-Wl,'
13277         lt_prog_compiler_pic_F77='-KPIC'
13278         lt_prog_compiler_static_F77='-static'
13279         ;;
13280       ccc*)
13281         lt_prog_compiler_wl_F77='-Wl,'
13282         # All Alpha code is PIC.
13283         lt_prog_compiler_static_F77='-non_shared'
13284         ;;
13285       esac
13286       ;;
13287
13288     osf3* | osf4* | osf5*)
13289       lt_prog_compiler_wl_F77='-Wl,'
13290       # All OSF/1 code is PIC.
13291       lt_prog_compiler_static_F77='-non_shared'
13292       ;;
13293
13294     sco3.2v5*)
13295       lt_prog_compiler_pic_F77='-Kpic'
13296       lt_prog_compiler_static_F77='-dn'
13297       ;;
13298
13299     solaris*)
13300       lt_prog_compiler_wl_F77='-Wl,'
13301       lt_prog_compiler_pic_F77='-KPIC'
13302       lt_prog_compiler_static_F77='-Bstatic'
13303       ;;
13304
13305     sunos4*)
13306       lt_prog_compiler_wl_F77='-Qoption ld '
13307       lt_prog_compiler_pic_F77='-PIC'
13308       lt_prog_compiler_static_F77='-Bstatic'
13309       ;;
13310
13311     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13312       lt_prog_compiler_wl_F77='-Wl,'
13313       lt_prog_compiler_pic_F77='-KPIC'
13314       lt_prog_compiler_static_F77='-Bstatic'
13315       ;;
13316
13317     sysv4*MP*)
13318       if test -d /usr/nec ;then
13319         lt_prog_compiler_pic_F77='-Kconform_pic'
13320         lt_prog_compiler_static_F77='-Bstatic'
13321       fi
13322       ;;
13323
13324     uts4*)
13325       lt_prog_compiler_pic_F77='-pic'
13326       lt_prog_compiler_static_F77='-Bstatic'
13327       ;;
13328
13329     *)
13330       lt_prog_compiler_can_build_shared_F77=no
13331       ;;
13332     esac
13333   fi
13334
13335 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13336 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13337
13338 #
13339 # Check to make sure the PIC flag actually works.
13340 #
13341 if test -n "$lt_prog_compiler_pic_F77"; then
13342
13343 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13344 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13345 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13346   echo $ECHO_N "(cached) $ECHO_C" >&6
13347 else
13348   lt_prog_compiler_pic_works_F77=no
13349   ac_outfile=conftest.$ac_objext
13350    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13351    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13352    # Insert the option either (1) after the last *FLAGS variable, or
13353    # (2) before a word containing "conftest.", or (3) at the end.
13354    # Note that $ac_compile itself does not contain backslashes and begins
13355    # with a dollar sign (not a hyphen), so the echo should work correctly.
13356    # The option is referenced via a variable to avoid confusing sed.
13357    lt_compile=`echo "$ac_compile" | $SED \
13358    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13359    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13360    -e 's:$: $lt_compiler_flag:'`
13361    (eval echo "\"\$as_me:13361: $lt_compile\"" >&5)
13362    (eval "$lt_compile" 2>conftest.err)
13363    ac_status=$?
13364    cat conftest.err >&5
13365    echo "$as_me:13365: \$? = $ac_status" >&5
13366    if (exit $ac_status) && test -s "$ac_outfile"; then
13367      # The compiler can only warn and ignore the option if not recognized
13368      # So say no if there are warnings
13369      if test ! -s conftest.err; then
13370        lt_prog_compiler_pic_works_F77=yes
13371      fi
13372    fi
13373    $rm conftest*
13374
13375 fi
13376 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13377 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13378
13379 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13380     case $lt_prog_compiler_pic_F77 in
13381      "" | " "*) ;;
13382      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13383      esac
13384 else
13385     lt_prog_compiler_pic_F77=
13386      lt_prog_compiler_can_build_shared_F77=no
13387 fi
13388
13389 fi
13390 case "$host_os" in
13391   # For platforms which do not support PIC, -DPIC is meaningless:
13392   *djgpp*)
13393     lt_prog_compiler_pic_F77=
13394     ;;
13395   *)
13396     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13397     ;;
13398 esac
13399
13400 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13401 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13402 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13403   echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405   lt_cv_prog_compiler_c_o_F77=no
13406    $rm -r conftest 2>/dev/null
13407    mkdir conftest
13408    cd conftest
13409    mkdir out
13410    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13411
13412    lt_compiler_flag="-o out/conftest2.$ac_objext"
13413    # Insert the option either (1) after the last *FLAGS variable, or
13414    # (2) before a word containing "conftest.", or (3) at the end.
13415    # Note that $ac_compile itself does not contain backslashes and begins
13416    # with a dollar sign (not a hyphen), so the echo should work correctly.
13417    lt_compile=`echo "$ac_compile" | $SED \
13418    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13419    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13420    -e 's:$: $lt_compiler_flag:'`
13421    (eval echo "\"\$as_me:13421: $lt_compile\"" >&5)
13422    (eval "$lt_compile" 2>out/conftest.err)
13423    ac_status=$?
13424    cat out/conftest.err >&5
13425    echo "$as_me:13425: \$? = $ac_status" >&5
13426    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13427    then
13428      # The compiler can only warn and ignore the option if not recognized
13429      # So say no if there are warnings
13430      if test ! -s out/conftest.err; then
13431        lt_cv_prog_compiler_c_o_F77=yes
13432      fi
13433    fi
13434    chmod u+w .
13435    $rm conftest*
13436    # SGI C++ compiler will create directory out/ii_files/ for
13437    # template instantiation
13438    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13439    $rm out/* && rmdir out
13440    cd ..
13441    rmdir conftest
13442    $rm conftest*
13443
13444 fi
13445 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13446 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13447
13448
13449 hard_links="nottested"
13450 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13451   # do not overwrite the value of need_locks provided by the user
13452   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13453 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13454   hard_links=yes
13455   $rm conftest*
13456   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13457   touch conftest.a
13458   ln conftest.a conftest.b 2>&5 || hard_links=no
13459   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13460   echo "$as_me:$LINENO: result: $hard_links" >&5
13461 echo "${ECHO_T}$hard_links" >&6
13462   if test "$hard_links" = no; then
13463     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13464 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13465     need_locks=warn
13466   fi
13467 else
13468   need_locks=no
13469 fi
13470
13471 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13472 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13473
13474   runpath_var=
13475   allow_undefined_flag_F77=
13476   enable_shared_with_static_runtimes_F77=no
13477   archive_cmds_F77=
13478   archive_expsym_cmds_F77=
13479   old_archive_From_new_cmds_F77=
13480   old_archive_from_expsyms_cmds_F77=
13481   export_dynamic_flag_spec_F77=
13482   whole_archive_flag_spec_F77=
13483   thread_safe_flag_spec_F77=
13484   hardcode_libdir_flag_spec_F77=
13485   hardcode_libdir_flag_spec_ld_F77=
13486   hardcode_libdir_separator_F77=
13487   hardcode_direct_F77=no
13488   hardcode_minus_L_F77=no
13489   hardcode_shlibpath_var_F77=unsupported
13490   link_all_deplibs_F77=unknown
13491   hardcode_automatic_F77=no
13492   module_cmds_F77=
13493   module_expsym_cmds_F77=
13494   always_export_symbols_F77=no
13495   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13496   # include_expsyms should be a list of space-separated symbols to be *always*
13497   # included in the symbol list
13498   include_expsyms_F77=
13499   # exclude_expsyms can be an extended regexp of symbols to exclude
13500   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13501   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13502   # as well as any symbol that contains `d'.
13503   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13504   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13505   # platforms (ab)use it in PIC code, but their linkers get confused if
13506   # the symbol is explicitly referenced.  Since portable code cannot
13507   # rely on this symbol name, it's probably fine to never include it in
13508   # preloaded symbol tables.
13509   extract_expsyms_cmds=
13510
13511   case $host_os in
13512   cygwin* | mingw* | pw32*)
13513     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13514     # When not using gcc, we currently assume that we are using
13515     # Microsoft Visual C++.
13516     if test "$GCC" != yes; then
13517       with_gnu_ld=no
13518     fi
13519     ;;
13520   openbsd*)
13521     with_gnu_ld=no
13522     ;;
13523   esac
13524
13525   ld_shlibs_F77=yes
13526   if test "$with_gnu_ld" = yes; then
13527     # If archive_cmds runs LD, not CC, wlarc should be empty
13528     wlarc='${wl}'
13529
13530     # See if GNU ld supports shared libraries.
13531     case $host_os in
13532     aix3* | aix4* | aix5*)
13533       # On AIX/PPC, the GNU linker is very broken
13534       if test "$host_cpu" != ia64; then
13535         ld_shlibs_F77=no
13536         cat <<EOF 1>&2
13537
13538 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13539 *** to be unable to reliably create shared libraries on AIX.
13540 *** Therefore, libtool is disabling shared libraries support.  If you
13541 *** really care for shared libraries, you may want to modify your PATH
13542 *** so that a non-GNU linker is found, and then restart.
13543
13544 EOF
13545       fi
13546       ;;
13547
13548     amigaos*)
13549       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)'
13550       hardcode_libdir_flag_spec_F77='-L$libdir'
13551       hardcode_minus_L_F77=yes
13552
13553       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13554       # that the semantics of dynamic libraries on AmigaOS, at least up
13555       # to version 4, is to share data among multiple programs linked
13556       # with the same dynamic library.  Since this doesn't match the
13557       # behavior of shared libraries on other platforms, we can't use
13558       # them.
13559       ld_shlibs_F77=no
13560       ;;
13561
13562     beos*)
13563       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13564         allow_undefined_flag_F77=unsupported
13565         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13566         # support --undefined.  This deserves some investigation.  FIXME
13567         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13568       else
13569         ld_shlibs_F77=no
13570       fi
13571       ;;
13572
13573     cygwin* | mingw* | pw32*)
13574       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13575       # as there is no search path for DLLs.
13576       hardcode_libdir_flag_spec_F77='-L$libdir'
13577       allow_undefined_flag_F77=unsupported
13578       always_export_symbols_F77=no
13579       enable_shared_with_static_runtimes_F77=yes
13580       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13581
13582       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13583         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13584         # If the export-symbols file already is a .def file (1st line
13585         # is EXPORTS), use it as is; otherwise, prepend...
13586         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13587           cp $export_symbols $output_objdir/$soname.def;
13588         else
13589           echo EXPORTS > $output_objdir/$soname.def;
13590           cat $export_symbols >> $output_objdir/$soname.def;
13591         fi~
13592         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13593       else
13594         ld_shlibs=no
13595       fi
13596       ;;
13597
13598     netbsd* | knetbsd*-gnu)
13599       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13600         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13601         wlarc=
13602       else
13603         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13604         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13605       fi
13606       ;;
13607
13608     solaris* | sysv5*)
13609       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13610         ld_shlibs_F77=no
13611         cat <<EOF 1>&2
13612
13613 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13614 *** create shared libraries on Solaris systems.  Therefore, libtool
13615 *** is disabling shared libraries support.  We urge you to upgrade GNU
13616 *** binutils to release 2.9.1 or newer.  Another option is to modify
13617 *** your PATH or compiler configuration so that the native linker is
13618 *** used, and then restart.
13619
13620 EOF
13621       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13622         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13623         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13624       else
13625         ld_shlibs_F77=no
13626       fi
13627       ;;
13628
13629     sunos4*)
13630       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13631       wlarc=
13632       hardcode_direct_F77=yes
13633       hardcode_shlibpath_var_F77=no
13634       ;;
13635
13636   linux*)
13637     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13638         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13639         archive_cmds_F77="$tmp_archive_cmds"
13640       supports_anon_versioning=no
13641       case `$LD -v 2>/dev/null` in
13642         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13643         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13644         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13645         *\ 2.11.*) ;; # other 2.11 versions
13646         *) supports_anon_versioning=yes ;;
13647       esac
13648       if test $supports_anon_versioning = yes; then
13649         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13650 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13651 $echo "local: *; };" >> $output_objdir/$libname.ver~
13652         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13653       else
13654         archive_expsym_cmds_F77="$tmp_archive_cmds"
13655       fi
13656       link_all_deplibs_F77=no
13657     else
13658       ld_shlibs_F77=no
13659     fi
13660     ;;
13661
13662     *)
13663       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13664         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13665         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13666       else
13667         ld_shlibs_F77=no
13668       fi
13669       ;;
13670     esac
13671
13672     if test "$ld_shlibs_F77" = yes; then
13673       runpath_var=LD_RUN_PATH
13674       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13675       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13676       # ancient GNU ld didn't support --whole-archive et. al.
13677       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13678         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13679       else
13680         whole_archive_flag_spec_F77=
13681       fi
13682     fi
13683   else
13684     # PORTME fill in a description of your system's linker (not GNU ld)
13685     case $host_os in
13686     aix3*)
13687       allow_undefined_flag_F77=unsupported
13688       always_export_symbols_F77=yes
13689       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'
13690       # Note: this linker hardcodes the directories in LIBPATH if there
13691       # are no directories specified by -L.
13692       hardcode_minus_L_F77=yes
13693       if test "$GCC" = yes && test -z "$link_static_flag"; then
13694         # Neither direct hardcoding nor static linking is supported with a
13695         # broken collect2.
13696         hardcode_direct_F77=unsupported
13697       fi
13698       ;;
13699
13700     aix4* | aix5*)
13701       if test "$host_cpu" = ia64; then
13702         # On IA64, the linker does run time linking by default, so we don't
13703         # have to do anything special.
13704         aix_use_runtimelinking=no
13705         exp_sym_flag='-Bexport'
13706         no_entry_flag=""
13707       else
13708         # If we're using GNU nm, then we don't want the "-C" option.
13709         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13710         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13711           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'
13712         else
13713           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'
13714         fi
13715         aix_use_runtimelinking=no
13716
13717         # Test if we are trying to use run time linking or normal
13718         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13719         # need to do runtime linking.
13720         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13721           for ld_flag in $LDFLAGS; do
13722           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13723             aix_use_runtimelinking=yes
13724             break
13725           fi
13726           done
13727         esac
13728
13729         exp_sym_flag='-bexport'
13730         no_entry_flag='-bnoentry'
13731       fi
13732
13733       # When large executables or shared objects are built, AIX ld can
13734       # have problems creating the table of contents.  If linking a library
13735       # or program results in "error TOC overflow" add -mminimal-toc to
13736       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13737       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13738
13739       archive_cmds_F77=''
13740       hardcode_direct_F77=yes
13741       hardcode_libdir_separator_F77=':'
13742       link_all_deplibs_F77=yes
13743
13744       if test "$GCC" = yes; then
13745         case $host_os in aix4.012|aix4.012.*)
13746         # We only want to do this on AIX 4.2 and lower, the check
13747         # below for broken collect2 doesn't work under 4.3+
13748           collect2name=`${CC} -print-prog-name=collect2`
13749           if test -f "$collect2name" && \
13750            strings "$collect2name" | grep resolve_lib_name >/dev/null
13751           then
13752           # We have reworked collect2
13753           hardcode_direct_F77=yes
13754           else
13755           # We have old collect2
13756           hardcode_direct_F77=unsupported
13757           # It fails to find uninstalled libraries when the uninstalled
13758           # path is not listed in the libpath.  Setting hardcode_minus_L
13759           # to unsupported forces relinking
13760           hardcode_minus_L_F77=yes
13761           hardcode_libdir_flag_spec_F77='-L$libdir'
13762           hardcode_libdir_separator_F77=
13763           fi
13764         esac
13765         shared_flag='-shared'
13766       else
13767         # not using gcc
13768         if test "$host_cpu" = ia64; then
13769         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13770         # chokes on -Wl,-G. The following line is correct:
13771           shared_flag='-G'
13772         else
13773         if test "$aix_use_runtimelinking" = yes; then
13774             shared_flag='${wl}-G'
13775           else
13776             shared_flag='${wl}-bM:SRE'
13777         fi
13778         fi
13779       fi
13780
13781       # It seems that -bexpall does not export symbols beginning with
13782       # underscore (_), so it is better to generate a list of symbols to export.
13783       always_export_symbols_F77=yes
13784       if test "$aix_use_runtimelinking" = yes; then
13785         # Warning - without using the other runtime loading flags (-brtl),
13786         # -berok will link without error, but may produce a broken library.
13787         allow_undefined_flag_F77='-berok'
13788        # Determine the default libpath from the value encoded in an empty executable.
13789        cat >conftest.$ac_ext <<_ACEOF
13790       program main
13791
13792       end
13793 _ACEOF
13794 rm -f conftest.$ac_objext conftest$ac_exeext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13796   (eval $ac_link) 2>conftest.er1
13797   ac_status=$?
13798   grep -v '^ *+' conftest.er1 >conftest.err
13799   rm -f conftest.er1
13800   cat conftest.err >&5
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); } &&
13803          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805   (eval $ac_try) 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); }; } &&
13809          { ac_try='test -s conftest$ac_exeext'
13810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811   (eval $ac_try) 2>&5
13812   ac_status=$?
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); }; }; then
13815
13816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13817 }'`
13818 # Check for a 64-bit object if we didn't find anything.
13819 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; }
13820 }'`; fi
13821 else
13822   echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13824
13825 fi
13826 rm -f conftest.err conftest.$ac_objext \
13827       conftest$ac_exeext conftest.$ac_ext
13828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13829
13830        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13831         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"
13832        else
13833         if test "$host_cpu" = ia64; then
13834           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13835           allow_undefined_flag_F77="-z nodefs"
13836           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"
13837         else
13838          # Determine the default libpath from the value encoded in an empty executable.
13839          cat >conftest.$ac_ext <<_ACEOF
13840       program main
13841
13842       end
13843 _ACEOF
13844 rm -f conftest.$ac_objext conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846   (eval $ac_link) 2>conftest.er1
13847   ac_status=$?
13848   grep -v '^ *+' conftest.er1 >conftest.err
13849   rm -f conftest.er1
13850   cat conftest.err >&5
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); } &&
13853          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855   (eval $ac_try) 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; } &&
13859          { ac_try='test -s conftest$ac_exeext'
13860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861   (eval $ac_try) 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; }; then
13865
13866 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13867 }'`
13868 # Check for a 64-bit object if we didn't find anything.
13869 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; }
13870 }'`; fi
13871 else
13872   echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13874
13875 fi
13876 rm -f conftest.err conftest.$ac_objext \
13877       conftest$ac_exeext conftest.$ac_ext
13878 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13879
13880          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13881           # Warning - without using the other run time loading flags,
13882           # -berok will link without error, but may produce a broken library.
13883           no_undefined_flag_F77=' ${wl}-bernotok'
13884           allow_undefined_flag_F77=' ${wl}-berok'
13885           # -bexpall does not export symbols beginning with underscore (_)
13886           always_export_symbols_F77=yes
13887           # Exported symbols can be pulled into shared objects from archives
13888           whole_archive_flag_spec_F77=' '
13889           archive_cmds_need_lc_F77=yes
13890           # This is similar to how AIX traditionally builds it's shared libraries.
13891           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'
13892         fi
13893       fi
13894       ;;
13895
13896     amigaos*)
13897       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)'
13898       hardcode_libdir_flag_spec_F77='-L$libdir'
13899       hardcode_minus_L_F77=yes
13900       # see comment about different semantics on the GNU ld section
13901       ld_shlibs_F77=no
13902       ;;
13903
13904     bsdi4*)
13905       export_dynamic_flag_spec_F77=-rdynamic
13906       ;;
13907
13908     cygwin* | mingw* | pw32*)
13909       # When not using gcc, we currently assume that we are using
13910       # Microsoft Visual C++.
13911       # hardcode_libdir_flag_spec is actually meaningless, as there is
13912       # no search path for DLLs.
13913       hardcode_libdir_flag_spec_F77=' '
13914       allow_undefined_flag_F77=unsupported
13915       # Tell ltmain to make .lib files, not .a files.
13916       libext=lib
13917       # Tell ltmain to make .dll files, not .so files.
13918       shrext_cmds=".dll"
13919       # FIXME: Setting linknames here is a bad hack.
13920       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13921       # The linker will automatically build a .lib file if we build a DLL.
13922       old_archive_From_new_cmds_F77='true'
13923       # FIXME: Should let the user specify the lib program.
13924       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13925       fix_srcfile_path='`cygpath -w "$srcfile"`'
13926       enable_shared_with_static_runtimes_F77=yes
13927       ;;
13928
13929     darwin* | rhapsody*)
13930     if test "$GXX" = yes ; then
13931       archive_cmds_need_lc_F77=no
13932       case "$host_os" in
13933       rhapsody* | darwin1.[012])
13934         allow_undefined_flag_F77='-undefined suppress'
13935         ;;
13936       *) # Darwin 1.3 on
13937       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13938         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13939       else
13940         case ${MACOSX_DEPLOYMENT_TARGET} in
13941           10.[012])
13942             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13943             ;;
13944           10.*)
13945             allow_undefined_flag_F77='-undefined dynamic_lookup'
13946             ;;
13947         esac
13948       fi
13949         ;;
13950       esac
13951         lt_int_apple_cc_single_mod=no
13952         output_verbose_link_cmd='echo'
13953         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13954           lt_int_apple_cc_single_mod=yes
13955         fi
13956         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13957           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13958         else
13959         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'
13960       fi
13961       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13962       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13963         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13964           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}'
13965         else
13966           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}'
13967         fi
13968           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}'
13969       hardcode_direct_F77=no
13970       hardcode_automatic_F77=yes
13971       hardcode_shlibpath_var_F77=unsupported
13972       whole_archive_flag_spec_F77='-all_load $convenience'
13973       link_all_deplibs_F77=yes
13974     else
13975       ld_shlibs_F77=no
13976     fi
13977       ;;
13978
13979     dgux*)
13980       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13981       hardcode_libdir_flag_spec_F77='-L$libdir'
13982       hardcode_shlibpath_var_F77=no
13983       ;;
13984
13985     freebsd1*)
13986       ld_shlibs_F77=no
13987       ;;
13988
13989     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13990     # support.  Future versions do this automatically, but an explicit c++rt0.o
13991     # does not break anything, and helps significantly (at the cost of a little
13992     # extra space).
13993     freebsd2.2*)
13994       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13995       hardcode_libdir_flag_spec_F77='-R$libdir'
13996       hardcode_direct_F77=yes
13997       hardcode_shlibpath_var_F77=no
13998       ;;
13999
14000     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14001     freebsd2*)
14002       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14003       hardcode_direct_F77=yes
14004       hardcode_minus_L_F77=yes
14005       hardcode_shlibpath_var_F77=no
14006       ;;
14007
14008     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14009     freebsd* | kfreebsd*-gnu)
14010       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14011       hardcode_libdir_flag_spec_F77='-R$libdir'
14012       hardcode_direct_F77=yes
14013       hardcode_shlibpath_var_F77=no
14014       ;;
14015
14016     hpux9*)
14017       if test "$GCC" = yes; then
14018         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'
14019       else
14020         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'
14021       fi
14022       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14023       hardcode_libdir_separator_F77=:
14024       hardcode_direct_F77=yes
14025
14026       # hardcode_minus_L: Not really in the search PATH,
14027       # but as the default location of the library.
14028       hardcode_minus_L_F77=yes
14029       export_dynamic_flag_spec_F77='${wl}-E'
14030       ;;
14031
14032     hpux10* | hpux11*)
14033       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14034         case "$host_cpu" in
14035         hppa*64*|ia64*)
14036           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14037           ;;
14038         *)
14039           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14040           ;;
14041         esac
14042       else
14043         case "$host_cpu" in
14044         hppa*64*|ia64*)
14045           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14046           ;;
14047         *)
14048           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14049           ;;
14050         esac
14051       fi
14052       if test "$with_gnu_ld" = no; then
14053         case "$host_cpu" in
14054         hppa*64*)
14055           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14056           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14057           hardcode_libdir_separator_F77=:
14058           hardcode_direct_F77=no
14059           hardcode_shlibpath_var_F77=no
14060           ;;
14061         ia64*)
14062           hardcode_libdir_flag_spec_F77='-L$libdir'
14063           hardcode_direct_F77=no
14064           hardcode_shlibpath_var_F77=no
14065
14066           # hardcode_minus_L: Not really in the search PATH,
14067           # but as the default location of the library.
14068           hardcode_minus_L_F77=yes
14069           ;;
14070         *)
14071           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14072           hardcode_libdir_separator_F77=:
14073           hardcode_direct_F77=yes
14074           export_dynamic_flag_spec_F77='${wl}-E'
14075
14076           # hardcode_minus_L: Not really in the search PATH,
14077           # but as the default location of the library.
14078           hardcode_minus_L_F77=yes
14079           ;;
14080         esac
14081       fi
14082       ;;
14083
14084     irix5* | irix6* | nonstopux*)
14085       if test "$GCC" = yes; then
14086         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'
14087       else
14088         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'
14089         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14090       fi
14091       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14092       hardcode_libdir_separator_F77=:
14093       link_all_deplibs_F77=yes
14094       ;;
14095
14096     netbsd* | knetbsd*-gnu)
14097       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14098         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14099       else
14100         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14101       fi
14102       hardcode_libdir_flag_spec_F77='-R$libdir'
14103       hardcode_direct_F77=yes
14104       hardcode_shlibpath_var_F77=no
14105       ;;
14106
14107     newsos6)
14108       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14109       hardcode_direct_F77=yes
14110       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14111       hardcode_libdir_separator_F77=:
14112       hardcode_shlibpath_var_F77=no
14113       ;;
14114
14115     openbsd*)
14116       hardcode_direct_F77=yes
14117       hardcode_shlibpath_var_F77=no
14118       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14119         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14120         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14121         export_dynamic_flag_spec_F77='${wl}-E'
14122       else
14123        case $host_os in
14124          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14125            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14126            hardcode_libdir_flag_spec_F77='-R$libdir'
14127            ;;
14128          *)
14129            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14130            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14131            ;;
14132        esac
14133       fi
14134       ;;
14135
14136     os2*)
14137       hardcode_libdir_flag_spec_F77='-L$libdir'
14138       hardcode_minus_L_F77=yes
14139       allow_undefined_flag_F77=unsupported
14140       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'
14141       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14142       ;;
14143
14144     osf3*)
14145       if test "$GCC" = yes; then
14146         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14147         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'
14148       else
14149         allow_undefined_flag_F77=' -expect_unresolved \*'
14150         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'
14151       fi
14152       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14153       hardcode_libdir_separator_F77=:
14154       ;;
14155
14156     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14157       if test "$GCC" = yes; then
14158         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14159         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'
14160         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14161       else
14162         allow_undefined_flag_F77=' -expect_unresolved \*'
14163         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'
14164         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~
14165         $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'
14166
14167         # Both c and cxx compiler support -rpath directly
14168         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14169       fi
14170       hardcode_libdir_separator_F77=:
14171       ;;
14172
14173     sco3.2v5*)
14174       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14175       hardcode_shlibpath_var_F77=no
14176       export_dynamic_flag_spec_F77='${wl}-Bexport'
14177       runpath_var=LD_RUN_PATH
14178       hardcode_runpath_var=yes
14179       ;;
14180
14181     solaris*)
14182       no_undefined_flag_F77=' -z text'
14183       if test "$GCC" = yes; then
14184         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14185         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14186           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14187       else
14188         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14189         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14190         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14191       fi
14192       hardcode_libdir_flag_spec_F77='-R$libdir'
14193       hardcode_shlibpath_var_F77=no
14194       case $host_os in
14195       solaris2.[0-5] | solaris2.[0-5].*) ;;
14196       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14197         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14198       esac
14199       link_all_deplibs_F77=yes
14200       ;;
14201
14202     sunos4*)
14203       if test "x$host_vendor" = xsequent; then
14204         # Use $CC to link under sequent, because it throws in some extra .o
14205         # files that make .init and .fini sections work.
14206         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14207       else
14208         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14209       fi
14210       hardcode_libdir_flag_spec_F77='-L$libdir'
14211       hardcode_direct_F77=yes
14212       hardcode_minus_L_F77=yes
14213       hardcode_shlibpath_var_F77=no
14214       ;;
14215
14216     sysv4)
14217       case $host_vendor in
14218         sni)
14219           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14220           hardcode_direct_F77=yes # is this really true???
14221         ;;
14222         siemens)
14223           ## LD is ld it makes a PLAMLIB
14224           ## CC just makes a GrossModule.
14225           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14226           reload_cmds_F77='$CC -r -o $output$reload_objs'
14227           hardcode_direct_F77=no
14228         ;;
14229         motorola)
14230           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14231           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14232         ;;
14233       esac
14234       runpath_var='LD_RUN_PATH'
14235       hardcode_shlibpath_var_F77=no
14236       ;;
14237
14238     sysv4.3*)
14239       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14240       hardcode_shlibpath_var_F77=no
14241       export_dynamic_flag_spec_F77='-Bexport'
14242       ;;
14243
14244     sysv4*MP*)
14245       if test -d /usr/nec; then
14246         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14247         hardcode_shlibpath_var_F77=no
14248         runpath_var=LD_RUN_PATH
14249         hardcode_runpath_var=yes
14250         ld_shlibs_F77=yes
14251       fi
14252       ;;
14253
14254     sysv4.2uw2*)
14255       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14256       hardcode_direct_F77=yes
14257       hardcode_minus_L_F77=no
14258       hardcode_shlibpath_var_F77=no
14259       hardcode_runpath_var=yes
14260       runpath_var=LD_RUN_PATH
14261       ;;
14262
14263    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14264       no_undefined_flag_F77='${wl}-z ${wl}text'
14265       if test "$GCC" = yes; then
14266         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14267       else
14268         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14269       fi
14270       runpath_var='LD_RUN_PATH'
14271       hardcode_shlibpath_var_F77=no
14272       ;;
14273
14274     sysv5*)
14275       no_undefined_flag_F77=' -z text'
14276       # $CC -shared without GNU ld will not create a library from C++
14277       # object files and a static libstdc++, better avoid it by now
14278       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14279       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14280                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14281       hardcode_libdir_flag_spec_F77=
14282       hardcode_shlibpath_var_F77=no
14283       runpath_var='LD_RUN_PATH'
14284       ;;
14285
14286     uts4*)
14287       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14288       hardcode_libdir_flag_spec_F77='-L$libdir'
14289       hardcode_shlibpath_var_F77=no
14290       ;;
14291
14292     *)
14293       ld_shlibs_F77=no
14294       ;;
14295     esac
14296   fi
14297
14298 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14299 echo "${ECHO_T}$ld_shlibs_F77" >&6
14300 test "$ld_shlibs_F77" = no && can_build_shared=no
14301
14302 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14303 if test "$GCC" = yes; then
14304   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14305 fi
14306
14307 #
14308 # Do we need to explicitly link libc?
14309 #
14310 case "x$archive_cmds_need_lc_F77" in
14311 x|xyes)
14312   # Assume -lc should be added
14313   archive_cmds_need_lc_F77=yes
14314
14315   if test "$enable_shared" = yes && test "$GCC" = yes; then
14316     case $archive_cmds_F77 in
14317     *'~'*)
14318       # FIXME: we may have to deal with multi-command sequences.
14319       ;;
14320     '$CC '*)
14321       # Test whether the compiler implicitly links with -lc since on some
14322       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14323       # to ld, don't add -lc before -lgcc.
14324       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14325 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14326       $rm conftest*
14327       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14328
14329       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330   (eval $ac_compile) 2>&5
14331   ac_status=$?
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); } 2>conftest.err; then
14334         soname=conftest
14335         lib=conftest
14336         libobjs=conftest.$ac_objext
14337         deplibs=
14338         wl=$lt_prog_compiler_wl_F77
14339         compiler_flags=-v
14340         linker_flags=-v
14341         verstring=
14342         output_objdir=.
14343         libname=conftest
14344         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14345         allow_undefined_flag_F77=
14346         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14347   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14348   ac_status=$?
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); }
14351         then
14352           archive_cmds_need_lc_F77=no
14353         else
14354           archive_cmds_need_lc_F77=yes
14355         fi
14356         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14357       else
14358         cat conftest.err 1>&5
14359       fi
14360       $rm conftest*
14361       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14362 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14363       ;;
14364     esac
14365   fi
14366   ;;
14367 esac
14368
14369 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14370 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14371 library_names_spec=
14372 libname_spec='lib$name'
14373 soname_spec=
14374 shrext_cmds=".so"
14375 postinstall_cmds=
14376 postuninstall_cmds=
14377 finish_cmds=
14378 finish_eval=
14379 shlibpath_var=
14380 shlibpath_overrides_runpath=unknown
14381 version_type=none
14382 dynamic_linker="$host_os ld.so"
14383 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14384 if test "$GCC" = yes; then
14385   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14386   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14387     # if the path contains ";" then we assume it to be the separator
14388     # otherwise default to the standard path separator (i.e. ":") - it is
14389     # assumed that no part of a normal pathname contains ";" but that should
14390     # okay in the real world where ";" in dirpaths is itself problematic.
14391     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14392   else
14393     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14394   fi
14395 else
14396   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14397 fi
14398 need_lib_prefix=unknown
14399 hardcode_into_libs=no
14400
14401 # when you set need_version to no, make sure it does not cause -set_version
14402 # flags to be left without arguments
14403 need_version=unknown
14404
14405 case $host_os in
14406 aix3*)
14407   version_type=linux
14408   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14409   shlibpath_var=LIBPATH
14410
14411   # AIX 3 has no versioning support, so we append a major version to the name.
14412   soname_spec='${libname}${release}${shared_ext}$major'
14413   ;;
14414
14415 aix4* | aix5*)
14416   version_type=linux
14417   need_lib_prefix=no
14418   need_version=no
14419   hardcode_into_libs=yes
14420   if test "$host_cpu" = ia64; then
14421     # AIX 5 supports IA64
14422     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14423     shlibpath_var=LD_LIBRARY_PATH
14424   else
14425     # With GCC up to 2.95.x, collect2 would create an import file
14426     # for dependence libraries.  The import file would start with
14427     # the line `#! .'.  This would cause the generated library to
14428     # depend on `.', always an invalid library.  This was fixed in
14429     # development snapshots of GCC prior to 3.0.
14430     case $host_os in
14431       aix4 | aix4.[01] | aix4.[01].*)
14432       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14433            echo ' yes '
14434            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14435         :
14436       else
14437         can_build_shared=no
14438       fi
14439       ;;
14440     esac
14441     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14442     # soname into executable. Probably we can add versioning support to
14443     # collect2, so additional links can be useful in future.
14444     if test "$aix_use_runtimelinking" = yes; then
14445       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14446       # instead of lib<name>.a to let people know that these are not
14447       # typical AIX shared libraries.
14448       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449     else
14450       # We preserve .a as extension for shared libraries through AIX4.2
14451       # and later when we are not doing run time linking.
14452       library_names_spec='${libname}${release}.a $libname.a'
14453       soname_spec='${libname}${release}${shared_ext}$major'
14454     fi
14455     shlibpath_var=LIBPATH
14456   fi
14457   ;;
14458
14459 amigaos*)
14460   library_names_spec='$libname.ixlibrary $libname.a'
14461   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14462   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'
14463   ;;
14464
14465 beos*)
14466   library_names_spec='${libname}${shared_ext}'
14467   dynamic_linker="$host_os ld.so"
14468   shlibpath_var=LIBRARY_PATH
14469   ;;
14470
14471 bsdi4*)
14472   version_type=linux
14473   need_version=no
14474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14475   soname_spec='${libname}${release}${shared_ext}$major'
14476   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14477   shlibpath_var=LD_LIBRARY_PATH
14478   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14479   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14480   # the default ld.so.conf also contains /usr/contrib/lib and
14481   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14482   # libtool to hard-code these into programs
14483   ;;
14484
14485 cygwin* | mingw* | pw32*)
14486   version_type=windows
14487   shrext_cmds=".dll"
14488   need_version=no
14489   need_lib_prefix=no
14490
14491   case $GCC,$host_os in
14492   yes,cygwin* | yes,mingw* | yes,pw32*)
14493     library_names_spec='$libname.dll.a'
14494     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14495     postinstall_cmds='base_file=`basename \${file}`~
14496       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14497       dldir=$destdir/`dirname \$dlpath`~
14498       test -d \$dldir || mkdir -p \$dldir~
14499       $install_prog $dir/$dlname \$dldir/$dlname'
14500     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14501       dlpath=$dir/\$dldll~
14502        $rm \$dlpath'
14503     shlibpath_overrides_runpath=yes
14504
14505     case $host_os in
14506     cygwin*)
14507       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14508       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14509       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14510       ;;
14511     mingw*)
14512       # MinGW DLLs use traditional 'lib' prefix
14513       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14514       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14515       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14516         # It is most probably a Windows format PATH printed by
14517         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14518         # path with ; separators, and with drive letters. We can handle the
14519         # drive letters (cygwin fileutils understands them), so leave them,
14520         # especially as we might pass files found there to a mingw objdump,
14521         # which wouldn't understand a cygwinified path. Ahh.
14522         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14523       else
14524         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14525       fi
14526       ;;
14527     pw32*)
14528       # pw32 DLLs use 'pw' prefix rather than 'lib'
14529       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14530       ;;
14531     esac
14532     ;;
14533
14534   *)
14535     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14536     ;;
14537   esac
14538   dynamic_linker='Win32 ld.exe'
14539   # FIXME: first we should search . and the directory the executable is in
14540   shlibpath_var=PATH
14541   ;;
14542
14543 darwin* | rhapsody*)
14544   dynamic_linker="$host_os dyld"
14545   version_type=darwin
14546   need_lib_prefix=no
14547   need_version=no
14548   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14549   soname_spec='${libname}${release}${major}$shared_ext'
14550   shlibpath_overrides_runpath=yes
14551   shlibpath_var=DYLD_LIBRARY_PATH
14552   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14553   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14554   if test "$GCC" = yes; then
14555     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"`
14556   else
14557     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14558   fi
14559   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14560   ;;
14561
14562 dgux*)
14563   version_type=linux
14564   need_lib_prefix=no
14565   need_version=no
14566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14567   soname_spec='${libname}${release}${shared_ext}$major'
14568   shlibpath_var=LD_LIBRARY_PATH
14569   ;;
14570
14571 freebsd1*)
14572   dynamic_linker=no
14573   ;;
14574
14575 kfreebsd*-gnu)
14576   version_type=linux
14577   need_lib_prefix=no
14578   need_version=no
14579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14580   soname_spec='${libname}${release}${shared_ext}$major'
14581   shlibpath_var=LD_LIBRARY_PATH
14582   shlibpath_overrides_runpath=no
14583   hardcode_into_libs=yes
14584   dynamic_linker='GNU ld.so'
14585   ;;
14586
14587 freebsd*)
14588   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14589   version_type=freebsd-$objformat
14590   case $version_type in
14591     freebsd-elf*)
14592       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14593       need_version=no
14594       need_lib_prefix=no
14595       ;;
14596     freebsd-*)
14597       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14598       need_version=yes
14599       ;;
14600   esac
14601   shlibpath_var=LD_LIBRARY_PATH
14602   case $host_os in
14603   freebsd2*)
14604     shlibpath_overrides_runpath=yes
14605     ;;
14606   freebsd3.01* | freebsdelf3.01*)
14607     shlibpath_overrides_runpath=yes
14608     hardcode_into_libs=yes
14609     ;;
14610   *) # from 3.2 on
14611     shlibpath_overrides_runpath=no
14612     hardcode_into_libs=yes
14613     ;;
14614   esac
14615   ;;
14616
14617 gnu*)
14618   version_type=linux
14619   need_lib_prefix=no
14620   need_version=no
14621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14622   soname_spec='${libname}${release}${shared_ext}$major'
14623   shlibpath_var=LD_LIBRARY_PATH
14624   hardcode_into_libs=yes
14625   ;;
14626
14627 hpux9* | hpux10* | hpux11*)
14628   # Give a soname corresponding to the major version so that dld.sl refuses to
14629   # link against other versions.
14630   version_type=sunos
14631   need_lib_prefix=no
14632   need_version=no
14633   case "$host_cpu" in
14634   ia64*)
14635     shrext_cmds='.so'
14636     hardcode_into_libs=yes
14637     dynamic_linker="$host_os dld.so"
14638     shlibpath_var=LD_LIBRARY_PATH
14639     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14641     soname_spec='${libname}${release}${shared_ext}$major'
14642     if test "X$HPUX_IA64_MODE" = X32; then
14643       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14644     else
14645       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14646     fi
14647     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14648     ;;
14649    hppa*64*)
14650      shrext_cmds='.sl'
14651      hardcode_into_libs=yes
14652      dynamic_linker="$host_os dld.sl"
14653      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14654      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14655      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656      soname_spec='${libname}${release}${shared_ext}$major'
14657      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14658      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14659      ;;
14660    *)
14661     shrext_cmds='.sl'
14662     dynamic_linker="$host_os dld.sl"
14663     shlibpath_var=SHLIB_PATH
14664     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666     soname_spec='${libname}${release}${shared_ext}$major'
14667     ;;
14668   esac
14669   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14670   postinstall_cmds='chmod 555 $lib'
14671   ;;
14672
14673 irix5* | irix6* | nonstopux*)
14674   case $host_os in
14675     nonstopux*) version_type=nonstopux ;;
14676     *)
14677         if test "$lt_cv_prog_gnu_ld" = yes; then
14678                 version_type=linux
14679         else
14680                 version_type=irix
14681         fi ;;
14682   esac
14683   need_lib_prefix=no
14684   need_version=no
14685   soname_spec='${libname}${release}${shared_ext}$major'
14686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14687   case $host_os in
14688   irix5* | nonstopux*)
14689     libsuff= shlibsuff=
14690     ;;
14691   *)
14692     case $LD in # libtool.m4 will add one of these switches to LD
14693     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14694       libsuff= shlibsuff= libmagic=32-bit;;
14695     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14696       libsuff=32 shlibsuff=N32 libmagic=N32;;
14697     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14698       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14699     *) libsuff= shlibsuff= libmagic=never-match;;
14700     esac
14701     ;;
14702   esac
14703   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14704   shlibpath_overrides_runpath=no
14705   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14706   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14707   hardcode_into_libs=yes
14708   ;;
14709
14710 # No shared lib support for Linux oldld, aout, or coff.
14711 linux*oldld* | linux*aout* | linux*coff*)
14712   dynamic_linker=no
14713   ;;
14714
14715 # This must be Linux ELF.
14716 linux*)
14717   version_type=linux
14718   need_lib_prefix=no
14719   need_version=no
14720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14721   soname_spec='${libname}${release}${shared_ext}$major'
14722   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14723   shlibpath_var=LD_LIBRARY_PATH
14724   shlibpath_overrides_runpath=no
14725   # This implies no fast_install, which is unacceptable.
14726   # Some rework will be needed to allow for fast_install
14727   # before this can be enabled.
14728   hardcode_into_libs=yes
14729
14730   # Append ld.so.conf contents to the search path
14731   if test -f /etc/ld.so.conf; then
14732     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14733     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14734   fi
14735
14736   # We used to test for /lib/ld.so.1 and disable shared libraries on
14737   # powerpc, because MkLinux only supported shared libraries with the
14738   # GNU dynamic linker.  Since this was broken with cross compilers,
14739   # most powerpc-linux boxes support dynamic linking these days and
14740   # people can always --disable-shared, the test was removed, and we
14741   # assume the GNU/Linux dynamic linker is in use.
14742   dynamic_linker='GNU/Linux ld.so'
14743   ;;
14744
14745 knetbsd*-gnu)
14746   version_type=linux
14747   need_lib_prefix=no
14748   need_version=no
14749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14750   soname_spec='${libname}${release}${shared_ext}$major'
14751   shlibpath_var=LD_LIBRARY_PATH
14752   shlibpath_overrides_runpath=no
14753   hardcode_into_libs=yes
14754   dynamic_linker='GNU ld.so'
14755   ;;
14756
14757 netbsd*)
14758   version_type=sunos
14759   need_lib_prefix=no
14760   need_version=no
14761   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14763     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14764     dynamic_linker='NetBSD (a.out) ld.so'
14765   else
14766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14767     soname_spec='${libname}${release}${shared_ext}$major'
14768     dynamic_linker='NetBSD ld.elf_so'
14769   fi
14770   shlibpath_var=LD_LIBRARY_PATH
14771   shlibpath_overrides_runpath=yes
14772   hardcode_into_libs=yes
14773   ;;
14774
14775 newsos6)
14776   version_type=linux
14777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778   shlibpath_var=LD_LIBRARY_PATH
14779   shlibpath_overrides_runpath=yes
14780   ;;
14781
14782 nto-qnx*)
14783   version_type=linux
14784   need_lib_prefix=no
14785   need_version=no
14786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787   soname_spec='${libname}${release}${shared_ext}$major'
14788   shlibpath_var=LD_LIBRARY_PATH
14789   shlibpath_overrides_runpath=yes
14790   ;;
14791
14792 openbsd*)
14793   version_type=sunos
14794   need_lib_prefix=no
14795   need_version=yes
14796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14797   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14798   shlibpath_var=LD_LIBRARY_PATH
14799   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14800     case $host_os in
14801       openbsd2.[89] | openbsd2.[89].*)
14802         shlibpath_overrides_runpath=no
14803         ;;
14804       *)
14805         shlibpath_overrides_runpath=yes
14806         ;;
14807       esac
14808   else
14809     shlibpath_overrides_runpath=yes
14810   fi
14811   ;;
14812
14813 os2*)
14814   libname_spec='$name'
14815   shrext_cmds=".dll"
14816   need_lib_prefix=no
14817   library_names_spec='$libname${shared_ext} $libname.a'
14818   dynamic_linker='OS/2 ld.exe'
14819   shlibpath_var=LIBPATH
14820   ;;
14821
14822 osf3* | osf4* | osf5*)
14823   version_type=osf
14824   need_lib_prefix=no
14825   need_version=no
14826   soname_spec='${libname}${release}${shared_ext}$major'
14827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14828   shlibpath_var=LD_LIBRARY_PATH
14829   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14830   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14831   ;;
14832
14833 sco3.2v5*)
14834   version_type=osf
14835   soname_spec='${libname}${release}${shared_ext}$major'
14836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14837   shlibpath_var=LD_LIBRARY_PATH
14838   ;;
14839
14840 solaris*)
14841   version_type=linux
14842   need_lib_prefix=no
14843   need_version=no
14844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14845   soname_spec='${libname}${release}${shared_ext}$major'
14846   shlibpath_var=LD_LIBRARY_PATH
14847   shlibpath_overrides_runpath=yes
14848   hardcode_into_libs=yes
14849   # ldd complains unless libraries are executable
14850   postinstall_cmds='chmod +x $lib'
14851   ;;
14852
14853 sunos4*)
14854   version_type=sunos
14855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14856   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14857   shlibpath_var=LD_LIBRARY_PATH
14858   shlibpath_overrides_runpath=yes
14859   if test "$with_gnu_ld" = yes; then
14860     need_lib_prefix=no
14861   fi
14862   need_version=yes
14863   ;;
14864
14865 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14866   version_type=linux
14867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868   soname_spec='${libname}${release}${shared_ext}$major'
14869   shlibpath_var=LD_LIBRARY_PATH
14870   case $host_vendor in
14871     sni)
14872       shlibpath_overrides_runpath=no
14873       need_lib_prefix=no
14874       export_dynamic_flag_spec='${wl}-Blargedynsym'
14875       runpath_var=LD_RUN_PATH
14876       ;;
14877     siemens)
14878       need_lib_prefix=no
14879       ;;
14880     motorola)
14881       need_lib_prefix=no
14882       need_version=no
14883       shlibpath_overrides_runpath=no
14884       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14885       ;;
14886   esac
14887   ;;
14888
14889 sysv4*MP*)
14890   if test -d /usr/nec ;then
14891     version_type=linux
14892     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14893     soname_spec='$libname${shared_ext}.$major'
14894     shlibpath_var=LD_LIBRARY_PATH
14895   fi
14896   ;;
14897
14898 uts4*)
14899   version_type=linux
14900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901   soname_spec='${libname}${release}${shared_ext}$major'
14902   shlibpath_var=LD_LIBRARY_PATH
14903   ;;
14904
14905 *)
14906   dynamic_linker=no
14907   ;;
14908 esac
14909 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14910 echo "${ECHO_T}$dynamic_linker" >&6
14911 test "$dynamic_linker" = no && can_build_shared=no
14912
14913 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14914 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14915 hardcode_action_F77=
14916 if test -n "$hardcode_libdir_flag_spec_F77" || \
14917    test -n "$runpath_var F77" || \
14918    test "X$hardcode_automatic_F77"="Xyes" ; then
14919
14920   # We can hardcode non-existant directories.
14921   if test "$hardcode_direct_F77" != no &&
14922      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14923      # have to relink, otherwise we might link with an installed library
14924      # when we should be linking with a yet-to-be-installed one
14925      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14926      test "$hardcode_minus_L_F77" != no; then
14927     # Linking always hardcodes the temporary library directory.
14928     hardcode_action_F77=relink
14929   else
14930     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14931     hardcode_action_F77=immediate
14932   fi
14933 else
14934   # We cannot hardcode anything, or else we can only hardcode existing
14935   # directories.
14936   hardcode_action_F77=unsupported
14937 fi
14938 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14939 echo "${ECHO_T}$hardcode_action_F77" >&6
14940
14941 if test "$hardcode_action_F77" = relink; then
14942   # Fast installation is not supported
14943   enable_fast_install=no
14944 elif test "$shlibpath_overrides_runpath" = yes ||
14945      test "$enable_shared" = no; then
14946   # Fast installation is not necessary
14947   enable_fast_install=needless
14948 fi
14949
14950 striplib=
14951 old_striplib=
14952 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14953 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14954 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14955   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14956   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14957   echo "$as_me:$LINENO: result: yes" >&5
14958 echo "${ECHO_T}yes" >&6
14959 else
14960 # FIXME - insert some real tests, host_os isn't really good enough
14961   case $host_os in
14962    darwin*)
14963        if test -n "$STRIP" ; then
14964          striplib="$STRIP -x"
14965          echo "$as_me:$LINENO: result: yes" >&5
14966 echo "${ECHO_T}yes" >&6
14967        else
14968   echo "$as_me:$LINENO: result: no" >&5
14969 echo "${ECHO_T}no" >&6
14970 fi
14971        ;;
14972    *)
14973   echo "$as_me:$LINENO: result: no" >&5
14974 echo "${ECHO_T}no" >&6
14975     ;;
14976   esac
14977 fi
14978
14979
14980
14981 # The else clause should only fire when bootstrapping the
14982 # libtool distribution, otherwise you forgot to ship ltmain.sh
14983 # with your package, and you will get complaints that there are
14984 # no rules to generate ltmain.sh.
14985 if test -f "$ltmain"; then
14986   # See if we are running on zsh, and set the options which allow our commands through
14987   # without removal of \ escapes.
14988   if test -n "${ZSH_VERSION+set}" ; then
14989     setopt NO_GLOB_SUBST
14990   fi
14991   # Now quote all the things that may contain metacharacters while being
14992   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14993   # variables and quote the copies for generation of the libtool script.
14994   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14995     SED SHELL STRIP \
14996     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14997     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14998     deplibs_check_method reload_flag reload_cmds need_locks \
14999     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15000     lt_cv_sys_global_symbol_to_c_name_address \
15001     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15002     old_postinstall_cmds old_postuninstall_cmds \
15003     compiler_F77 \
15004     CC_F77 \
15005     LD_F77 \
15006     lt_prog_compiler_wl_F77 \
15007     lt_prog_compiler_pic_F77 \
15008     lt_prog_compiler_static_F77 \
15009     lt_prog_compiler_no_builtin_flag_F77 \
15010     export_dynamic_flag_spec_F77 \
15011     thread_safe_flag_spec_F77 \
15012     whole_archive_flag_spec_F77 \
15013     enable_shared_with_static_runtimes_F77 \
15014     old_archive_cmds_F77 \
15015     old_archive_from_new_cmds_F77 \
15016     predep_objects_F77 \
15017     postdep_objects_F77 \
15018     predeps_F77 \
15019     postdeps_F77 \
15020     compiler_lib_search_path_F77 \
15021     archive_cmds_F77 \
15022     archive_expsym_cmds_F77 \
15023     postinstall_cmds_F77 \
15024     postuninstall_cmds_F77 \
15025     old_archive_from_expsyms_cmds_F77 \
15026     allow_undefined_flag_F77 \
15027     no_undefined_flag_F77 \
15028     export_symbols_cmds_F77 \
15029     hardcode_libdir_flag_spec_F77 \
15030     hardcode_libdir_flag_spec_ld_F77 \
15031     hardcode_libdir_separator_F77 \
15032     hardcode_automatic_F77 \
15033     module_cmds_F77 \
15034     module_expsym_cmds_F77 \
15035     lt_cv_prog_compiler_c_o_F77 \
15036     exclude_expsyms_F77 \
15037     include_expsyms_F77; do
15038
15039     case $var in
15040     old_archive_cmds_F77 | \
15041     old_archive_from_new_cmds_F77 | \
15042     archive_cmds_F77 | \
15043     archive_expsym_cmds_F77 | \
15044     module_cmds_F77 | \
15045     module_expsym_cmds_F77 | \
15046     old_archive_from_expsyms_cmds_F77 | \
15047     export_symbols_cmds_F77 | \
15048     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15049     postinstall_cmds | postuninstall_cmds | \
15050     old_postinstall_cmds | old_postuninstall_cmds | \
15051     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15052       # Double-quote double-evaled strings.
15053       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15054       ;;
15055     *)
15056       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15057       ;;
15058     esac
15059   done
15060
15061   case $lt_echo in
15062   *'\$0 --fallback-echo"')
15063     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15064     ;;
15065   esac
15066
15067 cfgfile="$ofile"
15068
15069   cat <<__EOF__ >> "$cfgfile"
15070 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15071
15072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15073
15074 # Shell to use when invoking shell scripts.
15075 SHELL=$lt_SHELL
15076
15077 # Whether or not to build shared libraries.
15078 build_libtool_libs=$enable_shared
15079
15080 # Whether or not to build static libraries.
15081 build_old_libs=$enable_static
15082
15083 # Whether or not to add -lc for building shared libraries.
15084 build_libtool_need_lc=$archive_cmds_need_lc_F77
15085
15086 # Whether or not to disallow shared libs when runtime libs are static
15087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15088
15089 # Whether or not to optimize for fast installation.
15090 fast_install=$enable_fast_install
15091
15092 # The host system.
15093 host_alias=$host_alias
15094 host=$host
15095
15096 # An echo program that does not interpret backslashes.
15097 echo=$lt_echo
15098
15099 # The archiver.
15100 AR=$lt_AR
15101 AR_FLAGS=$lt_AR_FLAGS
15102
15103 # A C compiler.
15104 LTCC=$lt_LTCC
15105
15106 # A language-specific compiler.
15107 CC=$lt_compiler_F77
15108
15109 # Is the compiler the GNU C compiler?
15110 with_gcc=$GCC_F77
15111
15112 # An ERE matcher.
15113 EGREP=$lt_EGREP
15114
15115 # The linker used to build libraries.
15116 LD=$lt_LD_F77
15117
15118 # Whether we need hard or soft links.
15119 LN_S=$lt_LN_S
15120
15121 # A BSD-compatible nm program.
15122 NM=$lt_NM
15123
15124 # A symbol stripping program
15125 STRIP=$lt_STRIP
15126
15127 # Used to examine libraries when file_magic_cmd begins "file"
15128 MAGIC_CMD=$MAGIC_CMD
15129
15130 # Used on cygwin: DLL creation program.
15131 DLLTOOL="$DLLTOOL"
15132
15133 # Used on cygwin: object dumper.
15134 OBJDUMP="$OBJDUMP"
15135
15136 # Used on cygwin: assembler.
15137 AS="$AS"
15138
15139 # The name of the directory that contains temporary libtool files.
15140 objdir=$objdir
15141
15142 # How to create reloadable object files.
15143 reload_flag=$lt_reload_flag
15144 reload_cmds=$lt_reload_cmds
15145
15146 # How to pass a linker flag through the compiler.
15147 wl=$lt_lt_prog_compiler_wl_F77
15148
15149 # Object file suffix (normally "o").
15150 objext="$ac_objext"
15151
15152 # Old archive suffix (normally "a").
15153 libext="$libext"
15154
15155 # Shared library suffix (normally ".so").
15156 shrext_cmds='$shrext_cmds'
15157
15158 # Executable file suffix (normally "").
15159 exeext="$exeext"
15160
15161 # Additional compiler flags for building library objects.
15162 pic_flag=$lt_lt_prog_compiler_pic_F77
15163 pic_mode=$pic_mode
15164
15165 # What is the maximum length of a command?
15166 max_cmd_len=$lt_cv_sys_max_cmd_len
15167
15168 # Does compiler simultaneously support -c and -o options?
15169 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15170
15171 # Must we lock files when doing compilation ?
15172 need_locks=$lt_need_locks
15173
15174 # Do we need the lib prefix for modules?
15175 need_lib_prefix=$need_lib_prefix
15176
15177 # Do we need a version for libraries?
15178 need_version=$need_version
15179
15180 # Whether dlopen is supported.
15181 dlopen_support=$enable_dlopen
15182
15183 # Whether dlopen of programs is supported.
15184 dlopen_self=$enable_dlopen_self
15185
15186 # Whether dlopen of statically linked programs is supported.
15187 dlopen_self_static=$enable_dlopen_self_static
15188
15189 # Compiler flag to prevent dynamic linking.
15190 link_static_flag=$lt_lt_prog_compiler_static_F77
15191
15192 # Compiler flag to turn off builtin functions.
15193 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15194
15195 # Compiler flag to allow reflexive dlopens.
15196 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15197
15198 # Compiler flag to generate shared objects directly from archives.
15199 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15200
15201 # Compiler flag to generate thread-safe objects.
15202 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15203
15204 # Library versioning type.
15205 version_type=$version_type
15206
15207 # Format of library name prefix.
15208 libname_spec=$lt_libname_spec
15209
15210 # List of archive names.  First name is the real one, the rest are links.
15211 # The last name is the one that the linker finds with -lNAME.
15212 library_names_spec=$lt_library_names_spec
15213
15214 # The coded name of the library, if different from the real name.
15215 soname_spec=$lt_soname_spec
15216
15217 # Commands used to build and install an old-style archive.
15218 RANLIB=$lt_RANLIB
15219 old_archive_cmds=$lt_old_archive_cmds_F77
15220 old_postinstall_cmds=$lt_old_postinstall_cmds
15221 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15222
15223 # Create an old-style archive from a shared archive.
15224 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15225
15226 # Create a temporary old-style archive to link instead of a shared archive.
15227 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15228
15229 # Commands used to build and install a shared archive.
15230 archive_cmds=$lt_archive_cmds_F77
15231 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15232 postinstall_cmds=$lt_postinstall_cmds
15233 postuninstall_cmds=$lt_postuninstall_cmds
15234
15235 # Commands used to build a loadable module (assumed same as above if empty)
15236 module_cmds=$lt_module_cmds_F77
15237 module_expsym_cmds=$lt_module_expsym_cmds_F77
15238
15239 # Commands to strip libraries.
15240 old_striplib=$lt_old_striplib
15241 striplib=$lt_striplib
15242
15243 # Dependencies to place before the objects being linked to create a
15244 # shared library.
15245 predep_objects=$lt_predep_objects_F77
15246
15247 # Dependencies to place after the objects being linked to create a
15248 # shared library.
15249 postdep_objects=$lt_postdep_objects_F77
15250
15251 # Dependencies to place before the objects being linked to create a
15252 # shared library.
15253 predeps=$lt_predeps_F77
15254
15255 # Dependencies to place after the objects being linked to create a
15256 # shared library.
15257 postdeps=$lt_postdeps_F77
15258
15259 # The library search path used internally by the compiler when linking
15260 # a shared library.
15261 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15262
15263 # Method to check whether dependent libraries are shared objects.
15264 deplibs_check_method=$lt_deplibs_check_method
15265
15266 # Command to use when deplibs_check_method == file_magic.
15267 file_magic_cmd=$lt_file_magic_cmd
15268
15269 # Flag that allows shared libraries with undefined symbols to be built.
15270 allow_undefined_flag=$lt_allow_undefined_flag_F77
15271
15272 # Flag that forces no undefined symbols.
15273 no_undefined_flag=$lt_no_undefined_flag_F77
15274
15275 # Commands used to finish a libtool library installation in a directory.
15276 finish_cmds=$lt_finish_cmds
15277
15278 # Same as above, but a single script fragment to be evaled but not shown.
15279 finish_eval=$lt_finish_eval
15280
15281 # Take the output of nm and produce a listing of raw symbols and C names.
15282 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15283
15284 # Transform the output of nm in a proper C declaration
15285 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15286
15287 # Transform the output of nm in a C name address pair
15288 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15289
15290 # This is the shared library runtime path variable.
15291 runpath_var=$runpath_var
15292
15293 # This is the shared library path variable.
15294 shlibpath_var=$shlibpath_var
15295
15296 # Is shlibpath searched before the hard-coded library search path?
15297 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15298
15299 # How to hardcode a shared library path into an executable.
15300 hardcode_action=$hardcode_action_F77
15301
15302 # Whether we should hardcode library paths into libraries.
15303 hardcode_into_libs=$hardcode_into_libs
15304
15305 # Flag to hardcode \$libdir into a binary during linking.
15306 # This must work even if \$libdir does not exist.
15307 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15308
15309 # If ld is used when linking, flag to hardcode \$libdir into
15310 # a binary during linking. This must work even if \$libdir does
15311 # not exist.
15312 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15313
15314 # Whether we need a single -rpath flag with a separated argument.
15315 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15316
15317 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15318 # resulting binary.
15319 hardcode_direct=$hardcode_direct_F77
15320
15321 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15322 # resulting binary.
15323 hardcode_minus_L=$hardcode_minus_L_F77
15324
15325 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15326 # the resulting binary.
15327 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15328
15329 # Set to yes if building a shared library automatically hardcodes DIR into the library
15330 # and all subsequent libraries and executables linked against it.
15331 hardcode_automatic=$hardcode_automatic_F77
15332
15333 # Variables whose values should be saved in libtool wrapper scripts and
15334 # restored at relink time.
15335 variables_saved_for_relink="$variables_saved_for_relink"
15336
15337 # Whether libtool must link a program against all its dependency libraries.
15338 link_all_deplibs=$link_all_deplibs_F77
15339
15340 # Compile-time system search path for libraries
15341 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15342
15343 # Run-time system search path for libraries
15344 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15345
15346 # Fix the shell variable \$srcfile for the compiler.
15347 fix_srcfile_path="$fix_srcfile_path_F77"
15348
15349 # Set to yes if exported symbols are required.
15350 always_export_symbols=$always_export_symbols_F77
15351
15352 # The commands to list exported symbols.
15353 export_symbols_cmds=$lt_export_symbols_cmds_F77
15354
15355 # The commands to extract the exported symbol list from a shared archive.
15356 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15357
15358 # Symbols that should not be listed in the preloaded symbols.
15359 exclude_expsyms=$lt_exclude_expsyms_F77
15360
15361 # Symbols that must always be exported.
15362 include_expsyms=$lt_include_expsyms_F77
15363
15364 # ### END LIBTOOL TAG CONFIG: $tagname
15365
15366 __EOF__
15367
15368
15369 else
15370   # If there is no Makefile yet, we rely on a make rule to execute
15371   # `config.status --recheck' to rerun these tests and create the
15372   # libtool script then.
15373   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15374   if test -f "$ltmain_in"; then
15375     test -f Makefile && make "$ltmain"
15376   fi
15377 fi
15378
15379
15380 ac_ext=c
15381 ac_cpp='$CPP $CPPFLAGS'
15382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15385
15386 CC="$lt_save_CC"
15387
15388         else
15389           tagname=""
15390         fi
15391         ;;
15392
15393       GCJ)
15394         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15395
15396
15397
15398 # Source file extension for Java test sources.
15399 ac_ext=java
15400
15401 # Object file extension for compiled Java test sources.
15402 objext=o
15403 objext_GCJ=$objext
15404
15405 # Code to be used in simple compile tests
15406 lt_simple_compile_test_code="class foo {}\n"
15407
15408 # Code to be used in simple link tests
15409 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15410
15411 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15412
15413 # If no C compiler was specified, use CC.
15414 LTCC=${LTCC-"$CC"}
15415
15416 # Allow CC to be a program name with arguments.
15417 compiler=$CC
15418
15419
15420 # Allow CC to be a program name with arguments.
15421 lt_save_CC="$CC"
15422 CC=${GCJ-"gcj"}
15423 compiler=$CC
15424 compiler_GCJ=$CC
15425
15426 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15427 archive_cmds_need_lc_GCJ=no
15428
15429
15430 lt_prog_compiler_no_builtin_flag_GCJ=
15431
15432 if test "$GCC" = yes; then
15433   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15434
15435
15436 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15437 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15438 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15439   echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441   lt_cv_prog_compiler_rtti_exceptions=no
15442   ac_outfile=conftest.$ac_objext
15443    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15444    lt_compiler_flag="-fno-rtti -fno-exceptions"
15445    # Insert the option either (1) after the last *FLAGS variable, or
15446    # (2) before a word containing "conftest.", or (3) at the end.
15447    # Note that $ac_compile itself does not contain backslashes and begins
15448    # with a dollar sign (not a hyphen), so the echo should work correctly.
15449    # The option is referenced via a variable to avoid confusing sed.
15450    lt_compile=`echo "$ac_compile" | $SED \
15451    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15452    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15453    -e 's:$: $lt_compiler_flag:'`
15454    (eval echo "\"\$as_me:15454: $lt_compile\"" >&5)
15455    (eval "$lt_compile" 2>conftest.err)
15456    ac_status=$?
15457    cat conftest.err >&5
15458    echo "$as_me:15458: \$? = $ac_status" >&5
15459    if (exit $ac_status) && test -s "$ac_outfile"; then
15460      # The compiler can only warn and ignore the option if not recognized
15461      # So say no if there are warnings
15462      if test ! -s conftest.err; then
15463        lt_cv_prog_compiler_rtti_exceptions=yes
15464      fi
15465    fi
15466    $rm conftest*
15467
15468 fi
15469 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15470 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15471
15472 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15473     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15474 else
15475     :
15476 fi
15477
15478 fi
15479
15480 lt_prog_compiler_wl_GCJ=
15481 lt_prog_compiler_pic_GCJ=
15482 lt_prog_compiler_static_GCJ=
15483
15484 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15485 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15486
15487   if test "$GCC" = yes; then
15488     lt_prog_compiler_wl_GCJ='-Wl,'
15489     lt_prog_compiler_static_GCJ='-static'
15490
15491     case $host_os in
15492       aix*)
15493       # All AIX code is PIC.
15494       if test "$host_cpu" = ia64; then
15495         # AIX 5 now supports IA64 processor
15496         lt_prog_compiler_static_GCJ='-Bstatic'
15497       fi
15498       ;;
15499
15500     amigaos*)
15501       # FIXME: we need at least 68020 code to build shared libraries, but
15502       # adding the `-m68020' flag to GCC prevents building anything better,
15503       # like `-m68040'.
15504       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15505       ;;
15506
15507     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15508       # PIC is the default for these OSes.
15509       ;;
15510
15511     mingw* | pw32* | os2*)
15512       # This hack is so that the source file can tell whether it is being
15513       # built for inclusion in a dll (and should export symbols for example).
15514       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15515       ;;
15516
15517     darwin* | rhapsody*)
15518       # PIC is the default on this platform
15519       # Common symbols not allowed in MH_DYLIB files
15520       lt_prog_compiler_pic_GCJ='-fno-common'
15521       ;;
15522
15523     msdosdjgpp*)
15524       # Just because we use GCC doesn't mean we suddenly get shared libraries
15525       # on systems that don't support them.
15526       lt_prog_compiler_can_build_shared_GCJ=no
15527       enable_shared=no
15528       ;;
15529
15530     sysv4*MP*)
15531       if test -d /usr/nec; then
15532         lt_prog_compiler_pic_GCJ=-Kconform_pic
15533       fi
15534       ;;
15535
15536     hpux*)
15537       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15538       # not for PA HP-UX.
15539       case "$host_cpu" in
15540       hppa*64*|ia64*)
15541         # +Z the default
15542         ;;
15543       *)
15544         lt_prog_compiler_pic_GCJ='-fPIC'
15545         ;;
15546       esac
15547       ;;
15548
15549     *)
15550       lt_prog_compiler_pic_GCJ='-fPIC'
15551       ;;
15552     esac
15553   else
15554     # PORTME Check for flag to pass linker flags through the system compiler.
15555     case $host_os in
15556     aix*)
15557       lt_prog_compiler_wl_GCJ='-Wl,'
15558       if test "$host_cpu" = ia64; then
15559         # AIX 5 now supports IA64 processor
15560         lt_prog_compiler_static_GCJ='-Bstatic'
15561       else
15562         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15563       fi
15564       ;;
15565
15566     mingw* | pw32* | os2*)
15567       # This hack is so that the source file can tell whether it is being
15568       # built for inclusion in a dll (and should export symbols for example).
15569       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15570       ;;
15571
15572     hpux9* | hpux10* | hpux11*)
15573       lt_prog_compiler_wl_GCJ='-Wl,'
15574       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15575       # not for PA HP-UX.
15576       case "$host_cpu" in
15577       hppa*64*|ia64*)
15578         # +Z the default
15579         ;;
15580       *)
15581         lt_prog_compiler_pic_GCJ='+Z'
15582         ;;
15583       esac
15584       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15585       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15586       ;;
15587
15588     irix5* | irix6* | nonstopux*)
15589       lt_prog_compiler_wl_GCJ='-Wl,'
15590       # PIC (with -KPIC) is the default.
15591       lt_prog_compiler_static_GCJ='-non_shared'
15592       ;;
15593
15594     newsos6)
15595       lt_prog_compiler_pic_GCJ='-KPIC'
15596       lt_prog_compiler_static_GCJ='-Bstatic'
15597       ;;
15598
15599     linux*)
15600       case $CC in
15601       icc* | ecc*)
15602         lt_prog_compiler_wl_GCJ='-Wl,'
15603         lt_prog_compiler_pic_GCJ='-KPIC'
15604         lt_prog_compiler_static_GCJ='-static'
15605         ;;
15606       ccc*)
15607         lt_prog_compiler_wl_GCJ='-Wl,'
15608         # All Alpha code is PIC.
15609         lt_prog_compiler_static_GCJ='-non_shared'
15610         ;;
15611       esac
15612       ;;
15613
15614     osf3* | osf4* | osf5*)
15615       lt_prog_compiler_wl_GCJ='-Wl,'
15616       # All OSF/1 code is PIC.
15617       lt_prog_compiler_static_GCJ='-non_shared'
15618       ;;
15619
15620     sco3.2v5*)
15621       lt_prog_compiler_pic_GCJ='-Kpic'
15622       lt_prog_compiler_static_GCJ='-dn'
15623       ;;
15624
15625     solaris*)
15626       lt_prog_compiler_wl_GCJ='-Wl,'
15627       lt_prog_compiler_pic_GCJ='-KPIC'
15628       lt_prog_compiler_static_GCJ='-Bstatic'
15629       ;;
15630
15631     sunos4*)
15632       lt_prog_compiler_wl_GCJ='-Qoption ld '
15633       lt_prog_compiler_pic_GCJ='-PIC'
15634       lt_prog_compiler_static_GCJ='-Bstatic'
15635       ;;
15636
15637     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15638       lt_prog_compiler_wl_GCJ='-Wl,'
15639       lt_prog_compiler_pic_GCJ='-KPIC'
15640       lt_prog_compiler_static_GCJ='-Bstatic'
15641       ;;
15642
15643     sysv4*MP*)
15644       if test -d /usr/nec ;then
15645         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15646         lt_prog_compiler_static_GCJ='-Bstatic'
15647       fi
15648       ;;
15649
15650     uts4*)
15651       lt_prog_compiler_pic_GCJ='-pic'
15652       lt_prog_compiler_static_GCJ='-Bstatic'
15653       ;;
15654
15655     *)
15656       lt_prog_compiler_can_build_shared_GCJ=no
15657       ;;
15658     esac
15659   fi
15660
15661 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15662 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15663
15664 #
15665 # Check to make sure the PIC flag actually works.
15666 #
15667 if test -n "$lt_prog_compiler_pic_GCJ"; then
15668
15669 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15670 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15671 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15672   echo $ECHO_N "(cached) $ECHO_C" >&6
15673 else
15674   lt_prog_compiler_pic_works_GCJ=no
15675   ac_outfile=conftest.$ac_objext
15676    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15677    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15678    # Insert the option either (1) after the last *FLAGS variable, or
15679    # (2) before a word containing "conftest.", or (3) at the end.
15680    # Note that $ac_compile itself does not contain backslashes and begins
15681    # with a dollar sign (not a hyphen), so the echo should work correctly.
15682    # The option is referenced via a variable to avoid confusing sed.
15683    lt_compile=`echo "$ac_compile" | $SED \
15684    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15685    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15686    -e 's:$: $lt_compiler_flag:'`
15687    (eval echo "\"\$as_me:15687: $lt_compile\"" >&5)
15688    (eval "$lt_compile" 2>conftest.err)
15689    ac_status=$?
15690    cat conftest.err >&5
15691    echo "$as_me:15691: \$? = $ac_status" >&5
15692    if (exit $ac_status) && test -s "$ac_outfile"; then
15693      # The compiler can only warn and ignore the option if not recognized
15694      # So say no if there are warnings
15695      if test ! -s conftest.err; then
15696        lt_prog_compiler_pic_works_GCJ=yes
15697      fi
15698    fi
15699    $rm conftest*
15700
15701 fi
15702 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15703 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15704
15705 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15706     case $lt_prog_compiler_pic_GCJ in
15707      "" | " "*) ;;
15708      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15709      esac
15710 else
15711     lt_prog_compiler_pic_GCJ=
15712      lt_prog_compiler_can_build_shared_GCJ=no
15713 fi
15714
15715 fi
15716 case "$host_os" in
15717   # For platforms which do not support PIC, -DPIC is meaningless:
15718   *djgpp*)
15719     lt_prog_compiler_pic_GCJ=
15720     ;;
15721   *)
15722     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15723     ;;
15724 esac
15725
15726 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15727 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15728 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15729   echo $ECHO_N "(cached) $ECHO_C" >&6
15730 else
15731   lt_cv_prog_compiler_c_o_GCJ=no
15732    $rm -r conftest 2>/dev/null
15733    mkdir conftest
15734    cd conftest
15735    mkdir out
15736    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15737
15738    lt_compiler_flag="-o out/conftest2.$ac_objext"
15739    # Insert the option either (1) after the last *FLAGS variable, or
15740    # (2) before a word containing "conftest.", or (3) at the end.
15741    # Note that $ac_compile itself does not contain backslashes and begins
15742    # with a dollar sign (not a hyphen), so the echo should work correctly.
15743    lt_compile=`echo "$ac_compile" | $SED \
15744    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15745    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15746    -e 's:$: $lt_compiler_flag:'`
15747    (eval echo "\"\$as_me:15747: $lt_compile\"" >&5)
15748    (eval "$lt_compile" 2>out/conftest.err)
15749    ac_status=$?
15750    cat out/conftest.err >&5
15751    echo "$as_me:15751: \$? = $ac_status" >&5
15752    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15753    then
15754      # The compiler can only warn and ignore the option if not recognized
15755      # So say no if there are warnings
15756      if test ! -s out/conftest.err; then
15757        lt_cv_prog_compiler_c_o_GCJ=yes
15758      fi
15759    fi
15760    chmod u+w .
15761    $rm conftest*
15762    # SGI C++ compiler will create directory out/ii_files/ for
15763    # template instantiation
15764    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15765    $rm out/* && rmdir out
15766    cd ..
15767    rmdir conftest
15768    $rm conftest*
15769
15770 fi
15771 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15772 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15773
15774
15775 hard_links="nottested"
15776 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15777   # do not overwrite the value of need_locks provided by the user
15778   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15779 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15780   hard_links=yes
15781   $rm conftest*
15782   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15783   touch conftest.a
15784   ln conftest.a conftest.b 2>&5 || hard_links=no
15785   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15786   echo "$as_me:$LINENO: result: $hard_links" >&5
15787 echo "${ECHO_T}$hard_links" >&6
15788   if test "$hard_links" = no; then
15789     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15790 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15791     need_locks=warn
15792   fi
15793 else
15794   need_locks=no
15795 fi
15796
15797 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15798 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15799
15800   runpath_var=
15801   allow_undefined_flag_GCJ=
15802   enable_shared_with_static_runtimes_GCJ=no
15803   archive_cmds_GCJ=
15804   archive_expsym_cmds_GCJ=
15805   old_archive_From_new_cmds_GCJ=
15806   old_archive_from_expsyms_cmds_GCJ=
15807   export_dynamic_flag_spec_GCJ=
15808   whole_archive_flag_spec_GCJ=
15809   thread_safe_flag_spec_GCJ=
15810   hardcode_libdir_flag_spec_GCJ=
15811   hardcode_libdir_flag_spec_ld_GCJ=
15812   hardcode_libdir_separator_GCJ=
15813   hardcode_direct_GCJ=no
15814   hardcode_minus_L_GCJ=no
15815   hardcode_shlibpath_var_GCJ=unsupported
15816   link_all_deplibs_GCJ=unknown
15817   hardcode_automatic_GCJ=no
15818   module_cmds_GCJ=
15819   module_expsym_cmds_GCJ=
15820   always_export_symbols_GCJ=no
15821   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15822   # include_expsyms should be a list of space-separated symbols to be *always*
15823   # included in the symbol list
15824   include_expsyms_GCJ=
15825   # exclude_expsyms can be an extended regexp of symbols to exclude
15826   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15827   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15828   # as well as any symbol that contains `d'.
15829   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15830   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15831   # platforms (ab)use it in PIC code, but their linkers get confused if
15832   # the symbol is explicitly referenced.  Since portable code cannot
15833   # rely on this symbol name, it's probably fine to never include it in
15834   # preloaded symbol tables.
15835   extract_expsyms_cmds=
15836
15837   case $host_os in
15838   cygwin* | mingw* | pw32*)
15839     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15840     # When not using gcc, we currently assume that we are using
15841     # Microsoft Visual C++.
15842     if test "$GCC" != yes; then
15843       with_gnu_ld=no
15844     fi
15845     ;;
15846   openbsd*)
15847     with_gnu_ld=no
15848     ;;
15849   esac
15850
15851   ld_shlibs_GCJ=yes
15852   if test "$with_gnu_ld" = yes; then
15853     # If archive_cmds runs LD, not CC, wlarc should be empty
15854     wlarc='${wl}'
15855
15856     # See if GNU ld supports shared libraries.
15857     case $host_os in
15858     aix3* | aix4* | aix5*)
15859       # On AIX/PPC, the GNU linker is very broken
15860       if test "$host_cpu" != ia64; then
15861         ld_shlibs_GCJ=no
15862         cat <<EOF 1>&2
15863
15864 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15865 *** to be unable to reliably create shared libraries on AIX.
15866 *** Therefore, libtool is disabling shared libraries support.  If you
15867 *** really care for shared libraries, you may want to modify your PATH
15868 *** so that a non-GNU linker is found, and then restart.
15869
15870 EOF
15871       fi
15872       ;;
15873
15874     amigaos*)
15875       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)'
15876       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15877       hardcode_minus_L_GCJ=yes
15878
15879       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15880       # that the semantics of dynamic libraries on AmigaOS, at least up
15881       # to version 4, is to share data among multiple programs linked
15882       # with the same dynamic library.  Since this doesn't match the
15883       # behavior of shared libraries on other platforms, we can't use
15884       # them.
15885       ld_shlibs_GCJ=no
15886       ;;
15887
15888     beos*)
15889       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15890         allow_undefined_flag_GCJ=unsupported
15891         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15892         # support --undefined.  This deserves some investigation.  FIXME
15893         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15894       else
15895         ld_shlibs_GCJ=no
15896       fi
15897       ;;
15898
15899     cygwin* | mingw* | pw32*)
15900       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15901       # as there is no search path for DLLs.
15902       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15903       allow_undefined_flag_GCJ=unsupported
15904       always_export_symbols_GCJ=no
15905       enable_shared_with_static_runtimes_GCJ=yes
15906       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15907
15908       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15909         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15910         # If the export-symbols file already is a .def file (1st line
15911         # is EXPORTS), use it as is; otherwise, prepend...
15912         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15913           cp $export_symbols $output_objdir/$soname.def;
15914         else
15915           echo EXPORTS > $output_objdir/$soname.def;
15916           cat $export_symbols >> $output_objdir/$soname.def;
15917         fi~
15918         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15919       else
15920         ld_shlibs=no
15921       fi
15922       ;;
15923
15924     netbsd* | knetbsd*-gnu)
15925       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15926         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15927         wlarc=
15928       else
15929         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15930         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15931       fi
15932       ;;
15933
15934     solaris* | sysv5*)
15935       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15936         ld_shlibs_GCJ=no
15937         cat <<EOF 1>&2
15938
15939 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15940 *** create shared libraries on Solaris systems.  Therefore, libtool
15941 *** is disabling shared libraries support.  We urge you to upgrade GNU
15942 *** binutils to release 2.9.1 or newer.  Another option is to modify
15943 *** your PATH or compiler configuration so that the native linker is
15944 *** used, and then restart.
15945
15946 EOF
15947       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15948         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15949         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15950       else
15951         ld_shlibs_GCJ=no
15952       fi
15953       ;;
15954
15955     sunos4*)
15956       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15957       wlarc=
15958       hardcode_direct_GCJ=yes
15959       hardcode_shlibpath_var_GCJ=no
15960       ;;
15961
15962   linux*)
15963     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15964         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15965         archive_cmds_GCJ="$tmp_archive_cmds"
15966       supports_anon_versioning=no
15967       case `$LD -v 2>/dev/null` in
15968         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15969         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15970         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15971         *\ 2.11.*) ;; # other 2.11 versions
15972         *) supports_anon_versioning=yes ;;
15973       esac
15974       if test $supports_anon_versioning = yes; then
15975         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15976 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15977 $echo "local: *; };" >> $output_objdir/$libname.ver~
15978         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15979       else
15980         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15981       fi
15982       link_all_deplibs_GCJ=no
15983     else
15984       ld_shlibs_GCJ=no
15985     fi
15986     ;;
15987
15988     *)
15989       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15990         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15991         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15992       else
15993         ld_shlibs_GCJ=no
15994       fi
15995       ;;
15996     esac
15997
15998     if test "$ld_shlibs_GCJ" = yes; then
15999       runpath_var=LD_RUN_PATH
16000       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16001       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16002       # ancient GNU ld didn't support --whole-archive et. al.
16003       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16004         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16005       else
16006         whole_archive_flag_spec_GCJ=
16007       fi
16008     fi
16009   else
16010     # PORTME fill in a description of your system's linker (not GNU ld)
16011     case $host_os in
16012     aix3*)
16013       allow_undefined_flag_GCJ=unsupported
16014       always_export_symbols_GCJ=yes
16015       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'
16016       # Note: this linker hardcodes the directories in LIBPATH if there
16017       # are no directories specified by -L.
16018       hardcode_minus_L_GCJ=yes
16019       if test "$GCC" = yes && test -z "$link_static_flag"; then
16020         # Neither direct hardcoding nor static linking is supported with a
16021         # broken collect2.
16022         hardcode_direct_GCJ=unsupported
16023       fi
16024       ;;
16025
16026     aix4* | aix5*)
16027       if test "$host_cpu" = ia64; then
16028         # On IA64, the linker does run time linking by default, so we don't
16029         # have to do anything special.
16030         aix_use_runtimelinking=no
16031         exp_sym_flag='-Bexport'
16032         no_entry_flag=""
16033       else
16034         # If we're using GNU nm, then we don't want the "-C" option.
16035         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16036         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16037           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'
16038         else
16039           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'
16040         fi
16041         aix_use_runtimelinking=no
16042
16043         # Test if we are trying to use run time linking or normal
16044         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16045         # need to do runtime linking.
16046         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16047           for ld_flag in $LDFLAGS; do
16048           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16049             aix_use_runtimelinking=yes
16050             break
16051           fi
16052           done
16053         esac
16054
16055         exp_sym_flag='-bexport'
16056         no_entry_flag='-bnoentry'
16057       fi
16058
16059       # When large executables or shared objects are built, AIX ld can
16060       # have problems creating the table of contents.  If linking a library
16061       # or program results in "error TOC overflow" add -mminimal-toc to
16062       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16063       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16064
16065       archive_cmds_GCJ=''
16066       hardcode_direct_GCJ=yes
16067       hardcode_libdir_separator_GCJ=':'
16068       link_all_deplibs_GCJ=yes
16069
16070       if test "$GCC" = yes; then
16071         case $host_os in aix4.012|aix4.012.*)
16072         # We only want to do this on AIX 4.2 and lower, the check
16073         # below for broken collect2 doesn't work under 4.3+
16074           collect2name=`${CC} -print-prog-name=collect2`
16075           if test -f "$collect2name" && \
16076            strings "$collect2name" | grep resolve_lib_name >/dev/null
16077           then
16078           # We have reworked collect2
16079           hardcode_direct_GCJ=yes
16080           else
16081           # We have old collect2
16082           hardcode_direct_GCJ=unsupported
16083           # It fails to find uninstalled libraries when the uninstalled
16084           # path is not listed in the libpath.  Setting hardcode_minus_L
16085           # to unsupported forces relinking
16086           hardcode_minus_L_GCJ=yes
16087           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16088           hardcode_libdir_separator_GCJ=
16089           fi
16090         esac
16091         shared_flag='-shared'
16092       else
16093         # not using gcc
16094         if test "$host_cpu" = ia64; then
16095         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16096         # chokes on -Wl,-G. The following line is correct:
16097           shared_flag='-G'
16098         else
16099         if test "$aix_use_runtimelinking" = yes; then
16100             shared_flag='${wl}-G'
16101           else
16102             shared_flag='${wl}-bM:SRE'
16103         fi
16104         fi
16105       fi
16106
16107       # It seems that -bexpall does not export symbols beginning with
16108       # underscore (_), so it is better to generate a list of symbols to export.
16109       always_export_symbols_GCJ=yes
16110       if test "$aix_use_runtimelinking" = yes; then
16111         # Warning - without using the other runtime loading flags (-brtl),
16112         # -berok will link without error, but may produce a broken library.
16113         allow_undefined_flag_GCJ='-berok'
16114        # Determine the default libpath from the value encoded in an empty executable.
16115        cat >conftest.$ac_ext <<_ACEOF
16116 /* confdefs.h.  */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h.  */
16121
16122 int
16123 main ()
16124 {
16125
16126   ;
16127   return 0;
16128 }
16129 _ACEOF
16130 rm -f conftest.$ac_objext conftest$ac_exeext
16131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16132   (eval $ac_link) 2>conftest.er1
16133   ac_status=$?
16134   grep -v '^ *+' conftest.er1 >conftest.err
16135   rm -f conftest.er1
16136   cat conftest.err >&5
16137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138   (exit $ac_status); } &&
16139          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141   (eval $ac_try) 2>&5
16142   ac_status=$?
16143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144   (exit $ac_status); }; } &&
16145          { ac_try='test -s conftest$ac_exeext'
16146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147   (eval $ac_try) 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); }; }; then
16151
16152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16153 }'`
16154 # Check for a 64-bit object if we didn't find anything.
16155 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; }
16156 }'`; fi
16157 else
16158   echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16160
16161 fi
16162 rm -f conftest.err conftest.$ac_objext \
16163       conftest$ac_exeext conftest.$ac_ext
16164 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16165
16166        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16167         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"
16168        else
16169         if test "$host_cpu" = ia64; then
16170           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16171           allow_undefined_flag_GCJ="-z nodefs"
16172           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"
16173         else
16174          # Determine the default libpath from the value encoded in an empty executable.
16175          cat >conftest.$ac_ext <<_ACEOF
16176 /* confdefs.h.  */
16177 _ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h.  */
16181
16182 int
16183 main ()
16184 {
16185
16186   ;
16187   return 0;
16188 }
16189 _ACEOF
16190 rm -f conftest.$ac_objext conftest$ac_exeext
16191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16192   (eval $ac_link) 2>conftest.er1
16193   ac_status=$?
16194   grep -v '^ *+' conftest.er1 >conftest.err
16195   rm -f conftest.er1
16196   cat conftest.err >&5
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); } &&
16199          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201   (eval $ac_try) 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); }; } &&
16205          { ac_try='test -s conftest$ac_exeext'
16206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207   (eval $ac_try) 2>&5
16208   ac_status=$?
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); }; }; then
16211
16212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16213 }'`
16214 # Check for a 64-bit object if we didn't find anything.
16215 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; }
16216 }'`; fi
16217 else
16218   echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16220
16221 fi
16222 rm -f conftest.err conftest.$ac_objext \
16223       conftest$ac_exeext conftest.$ac_ext
16224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16225
16226          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16227           # Warning - without using the other run time loading flags,
16228           # -berok will link without error, but may produce a broken library.
16229           no_undefined_flag_GCJ=' ${wl}-bernotok'
16230           allow_undefined_flag_GCJ=' ${wl}-berok'
16231           # -bexpall does not export symbols beginning with underscore (_)
16232           always_export_symbols_GCJ=yes
16233           # Exported symbols can be pulled into shared objects from archives
16234           whole_archive_flag_spec_GCJ=' '
16235           archive_cmds_need_lc_GCJ=yes
16236           # This is similar to how AIX traditionally builds it's shared libraries.
16237           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'
16238         fi
16239       fi
16240       ;;
16241
16242     amigaos*)
16243       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)'
16244       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16245       hardcode_minus_L_GCJ=yes
16246       # see comment about different semantics on the GNU ld section
16247       ld_shlibs_GCJ=no
16248       ;;
16249
16250     bsdi4*)
16251       export_dynamic_flag_spec_GCJ=-rdynamic
16252       ;;
16253
16254     cygwin* | mingw* | pw32*)
16255       # When not using gcc, we currently assume that we are using
16256       # Microsoft Visual C++.
16257       # hardcode_libdir_flag_spec is actually meaningless, as there is
16258       # no search path for DLLs.
16259       hardcode_libdir_flag_spec_GCJ=' '
16260       allow_undefined_flag_GCJ=unsupported
16261       # Tell ltmain to make .lib files, not .a files.
16262       libext=lib
16263       # Tell ltmain to make .dll files, not .so files.
16264       shrext_cmds=".dll"
16265       # FIXME: Setting linknames here is a bad hack.
16266       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16267       # The linker will automatically build a .lib file if we build a DLL.
16268       old_archive_From_new_cmds_GCJ='true'
16269       # FIXME: Should let the user specify the lib program.
16270       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16271       fix_srcfile_path='`cygpath -w "$srcfile"`'
16272       enable_shared_with_static_runtimes_GCJ=yes
16273       ;;
16274
16275     darwin* | rhapsody*)
16276     if test "$GXX" = yes ; then
16277       archive_cmds_need_lc_GCJ=no
16278       case "$host_os" in
16279       rhapsody* | darwin1.[012])
16280         allow_undefined_flag_GCJ='-undefined suppress'
16281         ;;
16282       *) # Darwin 1.3 on
16283       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16284         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16285       else
16286         case ${MACOSX_DEPLOYMENT_TARGET} in
16287           10.[012])
16288             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16289             ;;
16290           10.*)
16291             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16292             ;;
16293         esac
16294       fi
16295         ;;
16296       esac
16297         lt_int_apple_cc_single_mod=no
16298         output_verbose_link_cmd='echo'
16299         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16300           lt_int_apple_cc_single_mod=yes
16301         fi
16302         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16303           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16304         else
16305         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'
16306       fi
16307       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16308       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16309         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16310           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}'
16311         else
16312           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}'
16313         fi
16314           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}'
16315       hardcode_direct_GCJ=no
16316       hardcode_automatic_GCJ=yes
16317       hardcode_shlibpath_var_GCJ=unsupported
16318       whole_archive_flag_spec_GCJ='-all_load $convenience'
16319       link_all_deplibs_GCJ=yes
16320     else
16321       ld_shlibs_GCJ=no
16322     fi
16323       ;;
16324
16325     dgux*)
16326       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16327       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16328       hardcode_shlibpath_var_GCJ=no
16329       ;;
16330
16331     freebsd1*)
16332       ld_shlibs_GCJ=no
16333       ;;
16334
16335     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16336     # support.  Future versions do this automatically, but an explicit c++rt0.o
16337     # does not break anything, and helps significantly (at the cost of a little
16338     # extra space).
16339     freebsd2.2*)
16340       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16341       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16342       hardcode_direct_GCJ=yes
16343       hardcode_shlibpath_var_GCJ=no
16344       ;;
16345
16346     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16347     freebsd2*)
16348       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16349       hardcode_direct_GCJ=yes
16350       hardcode_minus_L_GCJ=yes
16351       hardcode_shlibpath_var_GCJ=no
16352       ;;
16353
16354     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16355     freebsd* | kfreebsd*-gnu)
16356       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16357       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16358       hardcode_direct_GCJ=yes
16359       hardcode_shlibpath_var_GCJ=no
16360       ;;
16361
16362     hpux9*)
16363       if test "$GCC" = yes; then
16364         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'
16365       else
16366         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'
16367       fi
16368       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16369       hardcode_libdir_separator_GCJ=:
16370       hardcode_direct_GCJ=yes
16371
16372       # hardcode_minus_L: Not really in the search PATH,
16373       # but as the default location of the library.
16374       hardcode_minus_L_GCJ=yes
16375       export_dynamic_flag_spec_GCJ='${wl}-E'
16376       ;;
16377
16378     hpux10* | hpux11*)
16379       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16380         case "$host_cpu" in
16381         hppa*64*|ia64*)
16382           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16383           ;;
16384         *)
16385           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16386           ;;
16387         esac
16388       else
16389         case "$host_cpu" in
16390         hppa*64*|ia64*)
16391           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16392           ;;
16393         *)
16394           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16395           ;;
16396         esac
16397       fi
16398       if test "$with_gnu_ld" = no; then
16399         case "$host_cpu" in
16400         hppa*64*)
16401           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16402           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16403           hardcode_libdir_separator_GCJ=:
16404           hardcode_direct_GCJ=no
16405           hardcode_shlibpath_var_GCJ=no
16406           ;;
16407         ia64*)
16408           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16409           hardcode_direct_GCJ=no
16410           hardcode_shlibpath_var_GCJ=no
16411
16412           # hardcode_minus_L: Not really in the search PATH,
16413           # but as the default location of the library.
16414           hardcode_minus_L_GCJ=yes
16415           ;;
16416         *)
16417           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16418           hardcode_libdir_separator_GCJ=:
16419           hardcode_direct_GCJ=yes
16420           export_dynamic_flag_spec_GCJ='${wl}-E'
16421
16422           # hardcode_minus_L: Not really in the search PATH,
16423           # but as the default location of the library.
16424           hardcode_minus_L_GCJ=yes
16425           ;;
16426         esac
16427       fi
16428       ;;
16429
16430     irix5* | irix6* | nonstopux*)
16431       if test "$GCC" = yes; then
16432         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'
16433       else
16434         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'
16435         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16436       fi
16437       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16438       hardcode_libdir_separator_GCJ=:
16439       link_all_deplibs_GCJ=yes
16440       ;;
16441
16442     netbsd* | knetbsd*-gnu)
16443       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16444         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16445       else
16446         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16447       fi
16448       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16449       hardcode_direct_GCJ=yes
16450       hardcode_shlibpath_var_GCJ=no
16451       ;;
16452
16453     newsos6)
16454       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16455       hardcode_direct_GCJ=yes
16456       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16457       hardcode_libdir_separator_GCJ=:
16458       hardcode_shlibpath_var_GCJ=no
16459       ;;
16460
16461     openbsd*)
16462       hardcode_direct_GCJ=yes
16463       hardcode_shlibpath_var_GCJ=no
16464       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16465         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16466         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16467         export_dynamic_flag_spec_GCJ='${wl}-E'
16468       else
16469        case $host_os in
16470          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16471            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16472            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16473            ;;
16474          *)
16475            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16476            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16477            ;;
16478        esac
16479       fi
16480       ;;
16481
16482     os2*)
16483       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16484       hardcode_minus_L_GCJ=yes
16485       allow_undefined_flag_GCJ=unsupported
16486       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'
16487       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16488       ;;
16489
16490     osf3*)
16491       if test "$GCC" = yes; then
16492         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16493         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'
16494       else
16495         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16496         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'
16497       fi
16498       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16499       hardcode_libdir_separator_GCJ=:
16500       ;;
16501
16502     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16503       if test "$GCC" = yes; then
16504         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16505         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'
16506         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16507       else
16508         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16509         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'
16510         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~
16511         $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'
16512
16513         # Both c and cxx compiler support -rpath directly
16514         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16515       fi
16516       hardcode_libdir_separator_GCJ=:
16517       ;;
16518
16519     sco3.2v5*)
16520       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16521       hardcode_shlibpath_var_GCJ=no
16522       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16523       runpath_var=LD_RUN_PATH
16524       hardcode_runpath_var=yes
16525       ;;
16526
16527     solaris*)
16528       no_undefined_flag_GCJ=' -z text'
16529       if test "$GCC" = yes; then
16530         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16531         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16532           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16533       else
16534         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16535         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16536         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16537       fi
16538       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16539       hardcode_shlibpath_var_GCJ=no
16540       case $host_os in
16541       solaris2.[0-5] | solaris2.[0-5].*) ;;
16542       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16543         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16544       esac
16545       link_all_deplibs_GCJ=yes
16546       ;;
16547
16548     sunos4*)
16549       if test "x$host_vendor" = xsequent; then
16550         # Use $CC to link under sequent, because it throws in some extra .o
16551         # files that make .init and .fini sections work.
16552         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16553       else
16554         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16555       fi
16556       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16557       hardcode_direct_GCJ=yes
16558       hardcode_minus_L_GCJ=yes
16559       hardcode_shlibpath_var_GCJ=no
16560       ;;
16561
16562     sysv4)
16563       case $host_vendor in
16564         sni)
16565           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16566           hardcode_direct_GCJ=yes # is this really true???
16567         ;;
16568         siemens)
16569           ## LD is ld it makes a PLAMLIB
16570           ## CC just makes a GrossModule.
16571           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16572           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16573           hardcode_direct_GCJ=no
16574         ;;
16575         motorola)
16576           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16577           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16578         ;;
16579       esac
16580       runpath_var='LD_RUN_PATH'
16581       hardcode_shlibpath_var_GCJ=no
16582       ;;
16583
16584     sysv4.3*)
16585       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16586       hardcode_shlibpath_var_GCJ=no
16587       export_dynamic_flag_spec_GCJ='-Bexport'
16588       ;;
16589
16590     sysv4*MP*)
16591       if test -d /usr/nec; then
16592         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16593         hardcode_shlibpath_var_GCJ=no
16594         runpath_var=LD_RUN_PATH
16595         hardcode_runpath_var=yes
16596         ld_shlibs_GCJ=yes
16597       fi
16598       ;;
16599
16600     sysv4.2uw2*)
16601       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16602       hardcode_direct_GCJ=yes
16603       hardcode_minus_L_GCJ=no
16604       hardcode_shlibpath_var_GCJ=no
16605       hardcode_runpath_var=yes
16606       runpath_var=LD_RUN_PATH
16607       ;;
16608
16609    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16610       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16611       if test "$GCC" = yes; then
16612         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16613       else
16614         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16615       fi
16616       runpath_var='LD_RUN_PATH'
16617       hardcode_shlibpath_var_GCJ=no
16618       ;;
16619
16620     sysv5*)
16621       no_undefined_flag_GCJ=' -z text'
16622       # $CC -shared without GNU ld will not create a library from C++
16623       # object files and a static libstdc++, better avoid it by now
16624       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16625       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16626                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16627       hardcode_libdir_flag_spec_GCJ=
16628       hardcode_shlibpath_var_GCJ=no
16629       runpath_var='LD_RUN_PATH'
16630       ;;
16631
16632     uts4*)
16633       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16634       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16635       hardcode_shlibpath_var_GCJ=no
16636       ;;
16637
16638     *)
16639       ld_shlibs_GCJ=no
16640       ;;
16641     esac
16642   fi
16643
16644 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16645 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16646 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16647
16648 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16649 if test "$GCC" = yes; then
16650   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16651 fi
16652
16653 #
16654 # Do we need to explicitly link libc?
16655 #
16656 case "x$archive_cmds_need_lc_GCJ" in
16657 x|xyes)
16658   # Assume -lc should be added
16659   archive_cmds_need_lc_GCJ=yes
16660
16661   if test "$enable_shared" = yes && test "$GCC" = yes; then
16662     case $archive_cmds_GCJ in
16663     *'~'*)
16664       # FIXME: we may have to deal with multi-command sequences.
16665       ;;
16666     '$CC '*)
16667       # Test whether the compiler implicitly links with -lc since on some
16668       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16669       # to ld, don't add -lc before -lgcc.
16670       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16671 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16672       $rm conftest*
16673       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16674
16675       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676   (eval $ac_compile) 2>&5
16677   ac_status=$?
16678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679   (exit $ac_status); } 2>conftest.err; then
16680         soname=conftest
16681         lib=conftest
16682         libobjs=conftest.$ac_objext
16683         deplibs=
16684         wl=$lt_prog_compiler_wl_GCJ
16685         compiler_flags=-v
16686         linker_flags=-v
16687         verstring=
16688         output_objdir=.
16689         libname=conftest
16690         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16691         allow_undefined_flag_GCJ=
16692         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16693   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16694   ac_status=$?
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); }
16697         then
16698           archive_cmds_need_lc_GCJ=no
16699         else
16700           archive_cmds_need_lc_GCJ=yes
16701         fi
16702         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16703       else
16704         cat conftest.err 1>&5
16705       fi
16706       $rm conftest*
16707       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16708 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16709       ;;
16710     esac
16711   fi
16712   ;;
16713 esac
16714
16715 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16716 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16717 library_names_spec=
16718 libname_spec='lib$name'
16719 soname_spec=
16720 shrext_cmds=".so"
16721 postinstall_cmds=
16722 postuninstall_cmds=
16723 finish_cmds=
16724 finish_eval=
16725 shlibpath_var=
16726 shlibpath_overrides_runpath=unknown
16727 version_type=none
16728 dynamic_linker="$host_os ld.so"
16729 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16730 if test "$GCC" = yes; then
16731   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16732   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16733     # if the path contains ";" then we assume it to be the separator
16734     # otherwise default to the standard path separator (i.e. ":") - it is
16735     # assumed that no part of a normal pathname contains ";" but that should
16736     # okay in the real world where ";" in dirpaths is itself problematic.
16737     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16738   else
16739     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16740   fi
16741 else
16742   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16743 fi
16744 need_lib_prefix=unknown
16745 hardcode_into_libs=no
16746
16747 # when you set need_version to no, make sure it does not cause -set_version
16748 # flags to be left without arguments
16749 need_version=unknown
16750
16751 case $host_os in
16752 aix3*)
16753   version_type=linux
16754   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16755   shlibpath_var=LIBPATH
16756
16757   # AIX 3 has no versioning support, so we append a major version to the name.
16758   soname_spec='${libname}${release}${shared_ext}$major'
16759   ;;
16760
16761 aix4* | aix5*)
16762   version_type=linux
16763   need_lib_prefix=no
16764   need_version=no
16765   hardcode_into_libs=yes
16766   if test "$host_cpu" = ia64; then
16767     # AIX 5 supports IA64
16768     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16769     shlibpath_var=LD_LIBRARY_PATH
16770   else
16771     # With GCC up to 2.95.x, collect2 would create an import file
16772     # for dependence libraries.  The import file would start with
16773     # the line `#! .'.  This would cause the generated library to
16774     # depend on `.', always an invalid library.  This was fixed in
16775     # development snapshots of GCC prior to 3.0.
16776     case $host_os in
16777       aix4 | aix4.[01] | aix4.[01].*)
16778       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16779            echo ' yes '
16780            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16781         :
16782       else
16783         can_build_shared=no
16784       fi
16785       ;;
16786     esac
16787     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16788     # soname into executable. Probably we can add versioning support to
16789     # collect2, so additional links can be useful in future.
16790     if test "$aix_use_runtimelinking" = yes; then
16791       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16792       # instead of lib<name>.a to let people know that these are not
16793       # typical AIX shared libraries.
16794       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795     else
16796       # We preserve .a as extension for shared libraries through AIX4.2
16797       # and later when we are not doing run time linking.
16798       library_names_spec='${libname}${release}.a $libname.a'
16799       soname_spec='${libname}${release}${shared_ext}$major'
16800     fi
16801     shlibpath_var=LIBPATH
16802   fi
16803   ;;
16804
16805 amigaos*)
16806   library_names_spec='$libname.ixlibrary $libname.a'
16807   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16808   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'
16809   ;;
16810
16811 beos*)
16812   library_names_spec='${libname}${shared_ext}'
16813   dynamic_linker="$host_os ld.so"
16814   shlibpath_var=LIBRARY_PATH
16815   ;;
16816
16817 bsdi4*)
16818   version_type=linux
16819   need_version=no
16820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821   soname_spec='${libname}${release}${shared_ext}$major'
16822   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16823   shlibpath_var=LD_LIBRARY_PATH
16824   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16825   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16826   # the default ld.so.conf also contains /usr/contrib/lib and
16827   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16828   # libtool to hard-code these into programs
16829   ;;
16830
16831 cygwin* | mingw* | pw32*)
16832   version_type=windows
16833   shrext_cmds=".dll"
16834   need_version=no
16835   need_lib_prefix=no
16836
16837   case $GCC,$host_os in
16838   yes,cygwin* | yes,mingw* | yes,pw32*)
16839     library_names_spec='$libname.dll.a'
16840     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16841     postinstall_cmds='base_file=`basename \${file}`~
16842       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16843       dldir=$destdir/`dirname \$dlpath`~
16844       test -d \$dldir || mkdir -p \$dldir~
16845       $install_prog $dir/$dlname \$dldir/$dlname'
16846     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16847       dlpath=$dir/\$dldll~
16848        $rm \$dlpath'
16849     shlibpath_overrides_runpath=yes
16850
16851     case $host_os in
16852     cygwin*)
16853       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16854       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16855       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16856       ;;
16857     mingw*)
16858       # MinGW DLLs use traditional 'lib' prefix
16859       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16860       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16861       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16862         # It is most probably a Windows format PATH printed by
16863         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16864         # path with ; separators, and with drive letters. We can handle the
16865         # drive letters (cygwin fileutils understands them), so leave them,
16866         # especially as we might pass files found there to a mingw objdump,
16867         # which wouldn't understand a cygwinified path. Ahh.
16868         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16869       else
16870         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16871       fi
16872       ;;
16873     pw32*)
16874       # pw32 DLLs use 'pw' prefix rather than 'lib'
16875       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16876       ;;
16877     esac
16878     ;;
16879
16880   *)
16881     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16882     ;;
16883   esac
16884   dynamic_linker='Win32 ld.exe'
16885   # FIXME: first we should search . and the directory the executable is in
16886   shlibpath_var=PATH
16887   ;;
16888
16889 darwin* | rhapsody*)
16890   dynamic_linker="$host_os dyld"
16891   version_type=darwin
16892   need_lib_prefix=no
16893   need_version=no
16894   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16895   soname_spec='${libname}${release}${major}$shared_ext'
16896   shlibpath_overrides_runpath=yes
16897   shlibpath_var=DYLD_LIBRARY_PATH
16898   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16899   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16900   if test "$GCC" = yes; then
16901     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"`
16902   else
16903     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16904   fi
16905   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16906   ;;
16907
16908 dgux*)
16909   version_type=linux
16910   need_lib_prefix=no
16911   need_version=no
16912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16913   soname_spec='${libname}${release}${shared_ext}$major'
16914   shlibpath_var=LD_LIBRARY_PATH
16915   ;;
16916
16917 freebsd1*)
16918   dynamic_linker=no
16919   ;;
16920
16921 kfreebsd*-gnu)
16922   version_type=linux
16923   need_lib_prefix=no
16924   need_version=no
16925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16926   soname_spec='${libname}${release}${shared_ext}$major'
16927   shlibpath_var=LD_LIBRARY_PATH
16928   shlibpath_overrides_runpath=no
16929   hardcode_into_libs=yes
16930   dynamic_linker='GNU ld.so'
16931   ;;
16932
16933 freebsd*)
16934   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16935   version_type=freebsd-$objformat
16936   case $version_type in
16937     freebsd-elf*)
16938       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16939       need_version=no
16940       need_lib_prefix=no
16941       ;;
16942     freebsd-*)
16943       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16944       need_version=yes
16945       ;;
16946   esac
16947   shlibpath_var=LD_LIBRARY_PATH
16948   case $host_os in
16949   freebsd2*)
16950     shlibpath_overrides_runpath=yes
16951     ;;
16952   freebsd3.01* | freebsdelf3.01*)
16953     shlibpath_overrides_runpath=yes
16954     hardcode_into_libs=yes
16955     ;;
16956   *) # from 3.2 on
16957     shlibpath_overrides_runpath=no
16958     hardcode_into_libs=yes
16959     ;;
16960   esac
16961   ;;
16962
16963 gnu*)
16964   version_type=linux
16965   need_lib_prefix=no
16966   need_version=no
16967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16968   soname_spec='${libname}${release}${shared_ext}$major'
16969   shlibpath_var=LD_LIBRARY_PATH
16970   hardcode_into_libs=yes
16971   ;;
16972
16973 hpux9* | hpux10* | hpux11*)
16974   # Give a soname corresponding to the major version so that dld.sl refuses to
16975   # link against other versions.
16976   version_type=sunos
16977   need_lib_prefix=no
16978   need_version=no
16979   case "$host_cpu" in
16980   ia64*)
16981     shrext_cmds='.so'
16982     hardcode_into_libs=yes
16983     dynamic_linker="$host_os dld.so"
16984     shlibpath_var=LD_LIBRARY_PATH
16985     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16987     soname_spec='${libname}${release}${shared_ext}$major'
16988     if test "X$HPUX_IA64_MODE" = X32; then
16989       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16990     else
16991       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16992     fi
16993     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16994     ;;
16995    hppa*64*)
16996      shrext_cmds='.sl'
16997      hardcode_into_libs=yes
16998      dynamic_linker="$host_os dld.sl"
16999      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17000      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17001      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002      soname_spec='${libname}${release}${shared_ext}$major'
17003      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17004      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17005      ;;
17006    *)
17007     shrext_cmds='.sl'
17008     dynamic_linker="$host_os dld.sl"
17009     shlibpath_var=SHLIB_PATH
17010     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17011     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17012     soname_spec='${libname}${release}${shared_ext}$major'
17013     ;;
17014   esac
17015   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17016   postinstall_cmds='chmod 555 $lib'
17017   ;;
17018
17019 irix5* | irix6* | nonstopux*)
17020   case $host_os in
17021     nonstopux*) version_type=nonstopux ;;
17022     *)
17023         if test "$lt_cv_prog_gnu_ld" = yes; then
17024                 version_type=linux
17025         else
17026                 version_type=irix
17027         fi ;;
17028   esac
17029   need_lib_prefix=no
17030   need_version=no
17031   soname_spec='${libname}${release}${shared_ext}$major'
17032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17033   case $host_os in
17034   irix5* | nonstopux*)
17035     libsuff= shlibsuff=
17036     ;;
17037   *)
17038     case $LD in # libtool.m4 will add one of these switches to LD
17039     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17040       libsuff= shlibsuff= libmagic=32-bit;;
17041     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17042       libsuff=32 shlibsuff=N32 libmagic=N32;;
17043     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17044       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17045     *) libsuff= shlibsuff= libmagic=never-match;;
17046     esac
17047     ;;
17048   esac
17049   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17050   shlibpath_overrides_runpath=no
17051   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17052   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17053   hardcode_into_libs=yes
17054   ;;
17055
17056 # No shared lib support for Linux oldld, aout, or coff.
17057 linux*oldld* | linux*aout* | linux*coff*)
17058   dynamic_linker=no
17059   ;;
17060
17061 # This must be Linux ELF.
17062 linux*)
17063   version_type=linux
17064   need_lib_prefix=no
17065   need_version=no
17066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17067   soname_spec='${libname}${release}${shared_ext}$major'
17068   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17069   shlibpath_var=LD_LIBRARY_PATH
17070   shlibpath_overrides_runpath=no
17071   # This implies no fast_install, which is unacceptable.
17072   # Some rework will be needed to allow for fast_install
17073   # before this can be enabled.
17074   hardcode_into_libs=yes
17075
17076   # Append ld.so.conf contents to the search path
17077   if test -f /etc/ld.so.conf; then
17078     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17079     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17080   fi
17081
17082   # We used to test for /lib/ld.so.1 and disable shared libraries on
17083   # powerpc, because MkLinux only supported shared libraries with the
17084   # GNU dynamic linker.  Since this was broken with cross compilers,
17085   # most powerpc-linux boxes support dynamic linking these days and
17086   # people can always --disable-shared, the test was removed, and we
17087   # assume the GNU/Linux dynamic linker is in use.
17088   dynamic_linker='GNU/Linux ld.so'
17089   ;;
17090
17091 knetbsd*-gnu)
17092   version_type=linux
17093   need_lib_prefix=no
17094   need_version=no
17095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17096   soname_spec='${libname}${release}${shared_ext}$major'
17097   shlibpath_var=LD_LIBRARY_PATH
17098   shlibpath_overrides_runpath=no
17099   hardcode_into_libs=yes
17100   dynamic_linker='GNU ld.so'
17101   ;;
17102
17103 netbsd*)
17104   version_type=sunos
17105   need_lib_prefix=no
17106   need_version=no
17107   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17108     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17109     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17110     dynamic_linker='NetBSD (a.out) ld.so'
17111   else
17112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17113     soname_spec='${libname}${release}${shared_ext}$major'
17114     dynamic_linker='NetBSD ld.elf_so'
17115   fi
17116   shlibpath_var=LD_LIBRARY_PATH
17117   shlibpath_overrides_runpath=yes
17118   hardcode_into_libs=yes
17119   ;;
17120
17121 newsos6)
17122   version_type=linux
17123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17124   shlibpath_var=LD_LIBRARY_PATH
17125   shlibpath_overrides_runpath=yes
17126   ;;
17127
17128 nto-qnx*)
17129   version_type=linux
17130   need_lib_prefix=no
17131   need_version=no
17132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133   soname_spec='${libname}${release}${shared_ext}$major'
17134   shlibpath_var=LD_LIBRARY_PATH
17135   shlibpath_overrides_runpath=yes
17136   ;;
17137
17138 openbsd*)
17139   version_type=sunos
17140   need_lib_prefix=no
17141   need_version=yes
17142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17143   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17144   shlibpath_var=LD_LIBRARY_PATH
17145   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17146     case $host_os in
17147       openbsd2.[89] | openbsd2.[89].*)
17148         shlibpath_overrides_runpath=no
17149         ;;
17150       *)
17151         shlibpath_overrides_runpath=yes
17152         ;;
17153       esac
17154   else
17155     shlibpath_overrides_runpath=yes
17156   fi
17157   ;;
17158
17159 os2*)
17160   libname_spec='$name'
17161   shrext_cmds=".dll"
17162   need_lib_prefix=no
17163   library_names_spec='$libname${shared_ext} $libname.a'
17164   dynamic_linker='OS/2 ld.exe'
17165   shlibpath_var=LIBPATH
17166   ;;
17167
17168 osf3* | osf4* | osf5*)
17169   version_type=osf
17170   need_lib_prefix=no
17171   need_version=no
17172   soname_spec='${libname}${release}${shared_ext}$major'
17173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174   shlibpath_var=LD_LIBRARY_PATH
17175   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17176   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17177   ;;
17178
17179 sco3.2v5*)
17180   version_type=osf
17181   soname_spec='${libname}${release}${shared_ext}$major'
17182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183   shlibpath_var=LD_LIBRARY_PATH
17184   ;;
17185
17186 solaris*)
17187   version_type=linux
17188   need_lib_prefix=no
17189   need_version=no
17190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17191   soname_spec='${libname}${release}${shared_ext}$major'
17192   shlibpath_var=LD_LIBRARY_PATH
17193   shlibpath_overrides_runpath=yes
17194   hardcode_into_libs=yes
17195   # ldd complains unless libraries are executable
17196   postinstall_cmds='chmod +x $lib'
17197   ;;
17198
17199 sunos4*)
17200   version_type=sunos
17201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17202   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17203   shlibpath_var=LD_LIBRARY_PATH
17204   shlibpath_overrides_runpath=yes
17205   if test "$with_gnu_ld" = yes; then
17206     need_lib_prefix=no
17207   fi
17208   need_version=yes
17209   ;;
17210
17211 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17212   version_type=linux
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   case $host_vendor in
17217     sni)
17218       shlibpath_overrides_runpath=no
17219       need_lib_prefix=no
17220       export_dynamic_flag_spec='${wl}-Blargedynsym'
17221       runpath_var=LD_RUN_PATH
17222       ;;
17223     siemens)
17224       need_lib_prefix=no
17225       ;;
17226     motorola)
17227       need_lib_prefix=no
17228       need_version=no
17229       shlibpath_overrides_runpath=no
17230       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17231       ;;
17232   esac
17233   ;;
17234
17235 sysv4*MP*)
17236   if test -d /usr/nec ;then
17237     version_type=linux
17238     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17239     soname_spec='$libname${shared_ext}.$major'
17240     shlibpath_var=LD_LIBRARY_PATH
17241   fi
17242   ;;
17243
17244 uts4*)
17245   version_type=linux
17246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247   soname_spec='${libname}${release}${shared_ext}$major'
17248   shlibpath_var=LD_LIBRARY_PATH
17249   ;;
17250
17251 *)
17252   dynamic_linker=no
17253   ;;
17254 esac
17255 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17256 echo "${ECHO_T}$dynamic_linker" >&6
17257 test "$dynamic_linker" = no && can_build_shared=no
17258
17259 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17260 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17261 hardcode_action_GCJ=
17262 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17263    test -n "$runpath_var GCJ" || \
17264    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17265
17266   # We can hardcode non-existant directories.
17267   if test "$hardcode_direct_GCJ" != no &&
17268      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17269      # have to relink, otherwise we might link with an installed library
17270      # when we should be linking with a yet-to-be-installed one
17271      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17272      test "$hardcode_minus_L_GCJ" != no; then
17273     # Linking always hardcodes the temporary library directory.
17274     hardcode_action_GCJ=relink
17275   else
17276     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17277     hardcode_action_GCJ=immediate
17278   fi
17279 else
17280   # We cannot hardcode anything, or else we can only hardcode existing
17281   # directories.
17282   hardcode_action_GCJ=unsupported
17283 fi
17284 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17285 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17286
17287 if test "$hardcode_action_GCJ" = relink; then
17288   # Fast installation is not supported
17289   enable_fast_install=no
17290 elif test "$shlibpath_overrides_runpath" = yes ||
17291      test "$enable_shared" = no; then
17292   # Fast installation is not necessary
17293   enable_fast_install=needless
17294 fi
17295
17296 striplib=
17297 old_striplib=
17298 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17299 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17300 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17301   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17302   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17303   echo "$as_me:$LINENO: result: yes" >&5
17304 echo "${ECHO_T}yes" >&6
17305 else
17306 # FIXME - insert some real tests, host_os isn't really good enough
17307   case $host_os in
17308    darwin*)
17309        if test -n "$STRIP" ; then
17310          striplib="$STRIP -x"
17311          echo "$as_me:$LINENO: result: yes" >&5
17312 echo "${ECHO_T}yes" >&6
17313        else
17314   echo "$as_me:$LINENO: result: no" >&5
17315 echo "${ECHO_T}no" >&6
17316 fi
17317        ;;
17318    *)
17319   echo "$as_me:$LINENO: result: no" >&5
17320 echo "${ECHO_T}no" >&6
17321     ;;
17322   esac
17323 fi
17324
17325 if test "x$enable_dlopen" != xyes; then
17326   enable_dlopen=unknown
17327   enable_dlopen_self=unknown
17328   enable_dlopen_self_static=unknown
17329 else
17330   lt_cv_dlopen=no
17331   lt_cv_dlopen_libs=
17332
17333   case $host_os in
17334   beos*)
17335     lt_cv_dlopen="load_add_on"
17336     lt_cv_dlopen_libs=
17337     lt_cv_dlopen_self=yes
17338     ;;
17339
17340   mingw* | pw32*)
17341     lt_cv_dlopen="LoadLibrary"
17342     lt_cv_dlopen_libs=
17343    ;;
17344
17345   cygwin*)
17346     lt_cv_dlopen="dlopen"
17347     lt_cv_dlopen_libs=
17348    ;;
17349
17350   darwin*)
17351   # if libdl is installed we need to link against it
17352     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17353 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17354 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17355   echo $ECHO_N "(cached) $ECHO_C" >&6
17356 else
17357   ac_check_lib_save_LIBS=$LIBS
17358 LIBS="-ldl  $LIBS"
17359 cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h.  */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h.  */
17365
17366 /* Override any gcc2 internal prototype to avoid an error.  */
17367 #ifdef __cplusplus
17368 extern "C"
17369 #endif
17370 /* We use char because int might match the return type of a gcc2
17371    builtin and then its argument prototype would still apply.  */
17372 char dlopen ();
17373 int
17374 main ()
17375 {
17376 dlopen ();
17377   ;
17378   return 0;
17379 }
17380 _ACEOF
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17383   (eval $ac_link) 2>conftest.er1
17384   ac_status=$?
17385   grep -v '^ *+' conftest.er1 >conftest.err
17386   rm -f conftest.er1
17387   cat conftest.err >&5
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); } &&
17390          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392   (eval $ac_try) 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); }; } &&
17396          { ac_try='test -s conftest$ac_exeext'
17397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398   (eval $ac_try) 2>&5
17399   ac_status=$?
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); }; }; then
17402   ac_cv_lib_dl_dlopen=yes
17403 else
17404   echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17406
17407 ac_cv_lib_dl_dlopen=no
17408 fi
17409 rm -f conftest.err conftest.$ac_objext \
17410       conftest$ac_exeext conftest.$ac_ext
17411 LIBS=$ac_check_lib_save_LIBS
17412 fi
17413 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17414 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17415 if test $ac_cv_lib_dl_dlopen = yes; then
17416   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17417 else
17418
17419     lt_cv_dlopen="dyld"
17420     lt_cv_dlopen_libs=
17421     lt_cv_dlopen_self=yes
17422
17423 fi
17424
17425    ;;
17426
17427   *)
17428     echo "$as_me:$LINENO: checking for shl_load" >&5
17429 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17430 if test "${ac_cv_func_shl_load+set}" = set; then
17431   echo $ECHO_N "(cached) $ECHO_C" >&6
17432 else
17433   cat >conftest.$ac_ext <<_ACEOF
17434 /* confdefs.h.  */
17435 _ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h.  */
17439 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17441 #define shl_load innocuous_shl_load
17442
17443 /* System header to define __stub macros and hopefully few prototypes,
17444     which can conflict with char shl_load (); below.
17445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17446     <limits.h> exists even on freestanding compilers.  */
17447
17448 #ifdef __STDC__
17449 # include <limits.h>
17450 #else
17451 # include <assert.h>
17452 #endif
17453
17454 #undef shl_load
17455
17456 /* Override any gcc2 internal prototype to avoid an error.  */
17457 #ifdef __cplusplus
17458 extern "C"
17459 {
17460 #endif
17461 /* We use char because int might match the return type of a gcc2
17462    builtin and then its argument prototype would still apply.  */
17463 char shl_load ();
17464 /* The GNU C library defines this for functions which it implements
17465     to always fail with ENOSYS.  Some functions are actually named
17466     something starting with __ and the normal name is an alias.  */
17467 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17468 choke me
17469 #else
17470 char (*f) () = shl_load;
17471 #endif
17472 #ifdef __cplusplus
17473 }
17474 #endif
17475
17476 int
17477 main ()
17478 {
17479 return f != shl_load;
17480   ;
17481   return 0;
17482 }
17483 _ACEOF
17484 rm -f conftest.$ac_objext conftest$ac_exeext
17485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17486   (eval $ac_link) 2>conftest.er1
17487   ac_status=$?
17488   grep -v '^ *+' conftest.er1 >conftest.err
17489   rm -f conftest.er1
17490   cat conftest.err >&5
17491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492   (exit $ac_status); } &&
17493          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17495   (eval $ac_try) 2>&5
17496   ac_status=$?
17497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498   (exit $ac_status); }; } &&
17499          { ac_try='test -s conftest$ac_exeext'
17500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17501   (eval $ac_try) 2>&5
17502   ac_status=$?
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); }; }; then
17505   ac_cv_func_shl_load=yes
17506 else
17507   echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17509
17510 ac_cv_func_shl_load=no
17511 fi
17512 rm -f conftest.err conftest.$ac_objext \
17513       conftest$ac_exeext conftest.$ac_ext
17514 fi
17515 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17516 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17517 if test $ac_cv_func_shl_load = yes; then
17518   lt_cv_dlopen="shl_load"
17519 else
17520   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17521 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17522 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17523   echo $ECHO_N "(cached) $ECHO_C" >&6
17524 else
17525   ac_check_lib_save_LIBS=$LIBS
17526 LIBS="-ldld  $LIBS"
17527 cat >conftest.$ac_ext <<_ACEOF
17528 /* confdefs.h.  */
17529 _ACEOF
17530 cat confdefs.h >>conftest.$ac_ext
17531 cat >>conftest.$ac_ext <<_ACEOF
17532 /* end confdefs.h.  */
17533
17534 /* Override any gcc2 internal prototype to avoid an error.  */
17535 #ifdef __cplusplus
17536 extern "C"
17537 #endif
17538 /* We use char because int might match the return type of a gcc2
17539    builtin and then its argument prototype would still apply.  */
17540 char shl_load ();
17541 int
17542 main ()
17543 {
17544 shl_load ();
17545   ;
17546   return 0;
17547 }
17548 _ACEOF
17549 rm -f conftest.$ac_objext conftest$ac_exeext
17550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17551   (eval $ac_link) 2>conftest.er1
17552   ac_status=$?
17553   grep -v '^ *+' conftest.er1 >conftest.err
17554   rm -f conftest.er1
17555   cat conftest.err >&5
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); } &&
17558          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560   (eval $ac_try) 2>&5
17561   ac_status=$?
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); }; } &&
17564          { ac_try='test -s conftest$ac_exeext'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; }; then
17570   ac_cv_lib_dld_shl_load=yes
17571 else
17572   echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17574
17575 ac_cv_lib_dld_shl_load=no
17576 fi
17577 rm -f conftest.err conftest.$ac_objext \
17578       conftest$ac_exeext conftest.$ac_ext
17579 LIBS=$ac_check_lib_save_LIBS
17580 fi
17581 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17582 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17583 if test $ac_cv_lib_dld_shl_load = yes; then
17584   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17585 else
17586   echo "$as_me:$LINENO: checking for dlopen" >&5
17587 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17588 if test "${ac_cv_func_dlopen+set}" = set; then
17589   echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591   cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17599 #define dlopen innocuous_dlopen
17600
17601 /* System header to define __stub macros and hopefully few prototypes,
17602     which can conflict with char dlopen (); below.
17603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17604     <limits.h> exists even on freestanding compilers.  */
17605
17606 #ifdef __STDC__
17607 # include <limits.h>
17608 #else
17609 # include <assert.h>
17610 #endif
17611
17612 #undef dlopen
17613
17614 /* Override any gcc2 internal prototype to avoid an error.  */
17615 #ifdef __cplusplus
17616 extern "C"
17617 {
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 dlopen ();
17622 /* The GNU C library defines this for functions which it implements
17623     to always fail with ENOSYS.  Some functions are actually named
17624     something starting with __ and the normal name is an alias.  */
17625 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17626 choke me
17627 #else
17628 char (*f) () = dlopen;
17629 #endif
17630 #ifdef __cplusplus
17631 }
17632 #endif
17633
17634 int
17635 main ()
17636 {
17637 return f != dlopen;
17638   ;
17639   return 0;
17640 }
17641 _ACEOF
17642 rm -f conftest.$ac_objext conftest$ac_exeext
17643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17644   (eval $ac_link) 2>conftest.er1
17645   ac_status=$?
17646   grep -v '^ *+' conftest.er1 >conftest.err
17647   rm -f conftest.er1
17648   cat conftest.err >&5
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); } &&
17651          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653   (eval $ac_try) 2>&5
17654   ac_status=$?
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); }; } &&
17657          { ac_try='test -s conftest$ac_exeext'
17658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659   (eval $ac_try) 2>&5
17660   ac_status=$?
17661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); }; }; then
17663   ac_cv_func_dlopen=yes
17664 else
17665   echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668 ac_cv_func_dlopen=no
17669 fi
17670 rm -f conftest.err conftest.$ac_objext \
17671       conftest$ac_exeext conftest.$ac_ext
17672 fi
17673 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17674 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17675 if test $ac_cv_func_dlopen = yes; then
17676   lt_cv_dlopen="dlopen"
17677 else
17678   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17679 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17680 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17681   echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683   ac_check_lib_save_LIBS=$LIBS
17684 LIBS="-ldl  $LIBS"
17685 cat >conftest.$ac_ext <<_ACEOF
17686 /* confdefs.h.  */
17687 _ACEOF
17688 cat confdefs.h >>conftest.$ac_ext
17689 cat >>conftest.$ac_ext <<_ACEOF
17690 /* end confdefs.h.  */
17691
17692 /* Override any gcc2 internal prototype to avoid an error.  */
17693 #ifdef __cplusplus
17694 extern "C"
17695 #endif
17696 /* We use char because int might match the return type of a gcc2
17697    builtin and then its argument prototype would still apply.  */
17698 char dlopen ();
17699 int
17700 main ()
17701 {
17702 dlopen ();
17703   ;
17704   return 0;
17705 }
17706 _ACEOF
17707 rm -f conftest.$ac_objext conftest$ac_exeext
17708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17709   (eval $ac_link) 2>conftest.er1
17710   ac_status=$?
17711   grep -v '^ *+' conftest.er1 >conftest.err
17712   rm -f conftest.er1
17713   cat conftest.err >&5
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); } &&
17716          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718   (eval $ac_try) 2>&5
17719   ac_status=$?
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); }; } &&
17722          { ac_try='test -s conftest$ac_exeext'
17723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724   (eval $ac_try) 2>&5
17725   ac_status=$?
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); }; }; then
17728   ac_cv_lib_dl_dlopen=yes
17729 else
17730   echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733 ac_cv_lib_dl_dlopen=no
17734 fi
17735 rm -f conftest.err conftest.$ac_objext \
17736       conftest$ac_exeext conftest.$ac_ext
17737 LIBS=$ac_check_lib_save_LIBS
17738 fi
17739 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17740 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17741 if test $ac_cv_lib_dl_dlopen = yes; then
17742   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17743 else
17744   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17745 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17746 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17747   echo $ECHO_N "(cached) $ECHO_C" >&6
17748 else
17749   ac_check_lib_save_LIBS=$LIBS
17750 LIBS="-lsvld  $LIBS"
17751 cat >conftest.$ac_ext <<_ACEOF
17752 /* confdefs.h.  */
17753 _ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h.  */
17757
17758 /* Override any gcc2 internal prototype to avoid an error.  */
17759 #ifdef __cplusplus
17760 extern "C"
17761 #endif
17762 /* We use char because int might match the return type of a gcc2
17763    builtin and then its argument prototype would still apply.  */
17764 char dlopen ();
17765 int
17766 main ()
17767 {
17768 dlopen ();
17769   ;
17770   return 0;
17771 }
17772 _ACEOF
17773 rm -f conftest.$ac_objext conftest$ac_exeext
17774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17775   (eval $ac_link) 2>conftest.er1
17776   ac_status=$?
17777   grep -v '^ *+' conftest.er1 >conftest.err
17778   rm -f conftest.er1
17779   cat conftest.err >&5
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); } &&
17782          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784   (eval $ac_try) 2>&5
17785   ac_status=$?
17786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787   (exit $ac_status); }; } &&
17788          { ac_try='test -s conftest$ac_exeext'
17789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790   (eval $ac_try) 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); }; }; then
17794   ac_cv_lib_svld_dlopen=yes
17795 else
17796   echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17798
17799 ac_cv_lib_svld_dlopen=no
17800 fi
17801 rm -f conftest.err conftest.$ac_objext \
17802       conftest$ac_exeext conftest.$ac_ext
17803 LIBS=$ac_check_lib_save_LIBS
17804 fi
17805 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17806 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17807 if test $ac_cv_lib_svld_dlopen = yes; then
17808   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17809 else
17810   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17811 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17812 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17813   echo $ECHO_N "(cached) $ECHO_C" >&6
17814 else
17815   ac_check_lib_save_LIBS=$LIBS
17816 LIBS="-ldld  $LIBS"
17817 cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h.  */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h.  */
17823
17824 /* Override any gcc2 internal prototype to avoid an error.  */
17825 #ifdef __cplusplus
17826 extern "C"
17827 #endif
17828 /* We use char because int might match the return type of a gcc2
17829    builtin and then its argument prototype would still apply.  */
17830 char dld_link ();
17831 int
17832 main ()
17833 {
17834 dld_link ();
17835   ;
17836   return 0;
17837 }
17838 _ACEOF
17839 rm -f conftest.$ac_objext conftest$ac_exeext
17840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17841   (eval $ac_link) 2>conftest.er1
17842   ac_status=$?
17843   grep -v '^ *+' conftest.er1 >conftest.err
17844   rm -f conftest.er1
17845   cat conftest.err >&5
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); } &&
17848          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850   (eval $ac_try) 2>&5
17851   ac_status=$?
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); }; } &&
17854          { ac_try='test -s conftest$ac_exeext'
17855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856   (eval $ac_try) 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); }; }; then
17860   ac_cv_lib_dld_dld_link=yes
17861 else
17862   echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17864
17865 ac_cv_lib_dld_dld_link=no
17866 fi
17867 rm -f conftest.err conftest.$ac_objext \
17868       conftest$ac_exeext conftest.$ac_ext
17869 LIBS=$ac_check_lib_save_LIBS
17870 fi
17871 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17872 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17873 if test $ac_cv_lib_dld_dld_link = yes; then
17874   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17875 fi
17876
17877
17878 fi
17879
17880
17881 fi
17882
17883
17884 fi
17885
17886
17887 fi
17888
17889
17890 fi
17891
17892     ;;
17893   esac
17894
17895   if test "x$lt_cv_dlopen" != xno; then
17896     enable_dlopen=yes
17897   else
17898     enable_dlopen=no
17899   fi
17900
17901   case $lt_cv_dlopen in
17902   dlopen)
17903     save_CPPFLAGS="$CPPFLAGS"
17904     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17905
17906     save_LDFLAGS="$LDFLAGS"
17907     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17908
17909     save_LIBS="$LIBS"
17910     LIBS="$lt_cv_dlopen_libs $LIBS"
17911
17912     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17913 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17914 if test "${lt_cv_dlopen_self+set}" = set; then
17915   echo $ECHO_N "(cached) $ECHO_C" >&6
17916 else
17917           if test "$cross_compiling" = yes; then :
17918   lt_cv_dlopen_self=cross
17919 else
17920   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17921   lt_status=$lt_dlunknown
17922   cat > conftest.$ac_ext <<EOF
17923 #line 17923 "configure"
17924 #include "confdefs.h"
17925
17926 #if HAVE_DLFCN_H
17927 #include <dlfcn.h>
17928 #endif
17929
17930 #include <stdio.h>
17931
17932 #ifdef RTLD_GLOBAL
17933 #  define LT_DLGLOBAL           RTLD_GLOBAL
17934 #else
17935 #  ifdef DL_GLOBAL
17936 #    define LT_DLGLOBAL         DL_GLOBAL
17937 #  else
17938 #    define LT_DLGLOBAL         0
17939 #  endif
17940 #endif
17941
17942 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17943    find out it does not work in some platform. */
17944 #ifndef LT_DLLAZY_OR_NOW
17945 #  ifdef RTLD_LAZY
17946 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17947 #  else
17948 #    ifdef DL_LAZY
17949 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17950 #    else
17951 #      ifdef RTLD_NOW
17952 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17953 #      else
17954 #        ifdef DL_NOW
17955 #          define LT_DLLAZY_OR_NOW      DL_NOW
17956 #        else
17957 #          define LT_DLLAZY_OR_NOW      0
17958 #        endif
17959 #      endif
17960 #    endif
17961 #  endif
17962 #endif
17963
17964 #ifdef __cplusplus
17965 extern "C" void exit (int);
17966 #endif
17967
17968 void fnord() { int i=42;}
17969 int main ()
17970 {
17971   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17972   int status = $lt_dlunknown;
17973
17974   if (self)
17975     {
17976       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17977       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17978       /* dlclose (self); */
17979     }
17980
17981     exit (status);
17982 }
17983 EOF
17984   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17985   (eval $ac_link) 2>&5
17986   ac_status=$?
17987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17989     (./conftest; exit; ) 2>/dev/null
17990     lt_status=$?
17991     case x$lt_status in
17992       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17993       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17994       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17995     esac
17996   else :
17997     # compilation failed
17998     lt_cv_dlopen_self=no
17999   fi
18000 fi
18001 rm -fr conftest*
18002
18003
18004 fi
18005 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18006 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18007
18008     if test "x$lt_cv_dlopen_self" = xyes; then
18009       LDFLAGS="$LDFLAGS $link_static_flag"
18010       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18011 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18012 if test "${lt_cv_dlopen_self_static+set}" = set; then
18013   echo $ECHO_N "(cached) $ECHO_C" >&6
18014 else
18015           if test "$cross_compiling" = yes; then :
18016   lt_cv_dlopen_self_static=cross
18017 else
18018   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18019   lt_status=$lt_dlunknown
18020   cat > conftest.$ac_ext <<EOF
18021 #line 18021 "configure"
18022 #include "confdefs.h"
18023
18024 #if HAVE_DLFCN_H
18025 #include <dlfcn.h>
18026 #endif
18027
18028 #include <stdio.h>
18029
18030 #ifdef RTLD_GLOBAL
18031 #  define LT_DLGLOBAL           RTLD_GLOBAL
18032 #else
18033 #  ifdef DL_GLOBAL
18034 #    define LT_DLGLOBAL         DL_GLOBAL
18035 #  else
18036 #    define LT_DLGLOBAL         0
18037 #  endif
18038 #endif
18039
18040 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18041    find out it does not work in some platform. */
18042 #ifndef LT_DLLAZY_OR_NOW
18043 #  ifdef RTLD_LAZY
18044 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18045 #  else
18046 #    ifdef DL_LAZY
18047 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18048 #    else
18049 #      ifdef RTLD_NOW
18050 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18051 #      else
18052 #        ifdef DL_NOW
18053 #          define LT_DLLAZY_OR_NOW      DL_NOW
18054 #        else
18055 #          define LT_DLLAZY_OR_NOW      0
18056 #        endif
18057 #      endif
18058 #    endif
18059 #  endif
18060 #endif
18061
18062 #ifdef __cplusplus
18063 extern "C" void exit (int);
18064 #endif
18065
18066 void fnord() { int i=42;}
18067 int main ()
18068 {
18069   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18070   int status = $lt_dlunknown;
18071
18072   if (self)
18073     {
18074       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18075       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18076       /* dlclose (self); */
18077     }
18078
18079     exit (status);
18080 }
18081 EOF
18082   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18083   (eval $ac_link) 2>&5
18084   ac_status=$?
18085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18087     (./conftest; exit; ) 2>/dev/null
18088     lt_status=$?
18089     case x$lt_status in
18090       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18091       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18092       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18093     esac
18094   else :
18095     # compilation failed
18096     lt_cv_dlopen_self_static=no
18097   fi
18098 fi
18099 rm -fr conftest*
18100
18101
18102 fi
18103 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18104 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18105     fi
18106
18107     CPPFLAGS="$save_CPPFLAGS"
18108     LDFLAGS="$save_LDFLAGS"
18109     LIBS="$save_LIBS"
18110     ;;
18111   esac
18112
18113   case $lt_cv_dlopen_self in
18114   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18115   *) enable_dlopen_self=unknown ;;
18116   esac
18117
18118   case $lt_cv_dlopen_self_static in
18119   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18120   *) enable_dlopen_self_static=unknown ;;
18121   esac
18122 fi
18123
18124
18125 # The else clause should only fire when bootstrapping the
18126 # libtool distribution, otherwise you forgot to ship ltmain.sh
18127 # with your package, and you will get complaints that there are
18128 # no rules to generate ltmain.sh.
18129 if test -f "$ltmain"; then
18130   # See if we are running on zsh, and set the options which allow our commands through
18131   # without removal of \ escapes.
18132   if test -n "${ZSH_VERSION+set}" ; then
18133     setopt NO_GLOB_SUBST
18134   fi
18135   # Now quote all the things that may contain metacharacters while being
18136   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18137   # variables and quote the copies for generation of the libtool script.
18138   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18139     SED SHELL STRIP \
18140     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18141     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18142     deplibs_check_method reload_flag reload_cmds need_locks \
18143     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18144     lt_cv_sys_global_symbol_to_c_name_address \
18145     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18146     old_postinstall_cmds old_postuninstall_cmds \
18147     compiler_GCJ \
18148     CC_GCJ \
18149     LD_GCJ \
18150     lt_prog_compiler_wl_GCJ \
18151     lt_prog_compiler_pic_GCJ \
18152     lt_prog_compiler_static_GCJ \
18153     lt_prog_compiler_no_builtin_flag_GCJ \
18154     export_dynamic_flag_spec_GCJ \
18155     thread_safe_flag_spec_GCJ \
18156     whole_archive_flag_spec_GCJ \
18157     enable_shared_with_static_runtimes_GCJ \
18158     old_archive_cmds_GCJ \
18159     old_archive_from_new_cmds_GCJ \
18160     predep_objects_GCJ \
18161     postdep_objects_GCJ \
18162     predeps_GCJ \
18163     postdeps_GCJ \
18164     compiler_lib_search_path_GCJ \
18165     archive_cmds_GCJ \
18166     archive_expsym_cmds_GCJ \
18167     postinstall_cmds_GCJ \
18168     postuninstall_cmds_GCJ \
18169     old_archive_from_expsyms_cmds_GCJ \
18170     allow_undefined_flag_GCJ \
18171     no_undefined_flag_GCJ \
18172     export_symbols_cmds_GCJ \
18173     hardcode_libdir_flag_spec_GCJ \
18174     hardcode_libdir_flag_spec_ld_GCJ \
18175     hardcode_libdir_separator_GCJ \
18176     hardcode_automatic_GCJ \
18177     module_cmds_GCJ \
18178     module_expsym_cmds_GCJ \
18179     lt_cv_prog_compiler_c_o_GCJ \
18180     exclude_expsyms_GCJ \
18181     include_expsyms_GCJ; do
18182
18183     case $var in
18184     old_archive_cmds_GCJ | \
18185     old_archive_from_new_cmds_GCJ | \
18186     archive_cmds_GCJ | \
18187     archive_expsym_cmds_GCJ | \
18188     module_cmds_GCJ | \
18189     module_expsym_cmds_GCJ | \
18190     old_archive_from_expsyms_cmds_GCJ | \
18191     export_symbols_cmds_GCJ | \
18192     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18193     postinstall_cmds | postuninstall_cmds | \
18194     old_postinstall_cmds | old_postuninstall_cmds | \
18195     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18196       # Double-quote double-evaled strings.
18197       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18198       ;;
18199     *)
18200       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18201       ;;
18202     esac
18203   done
18204
18205   case $lt_echo in
18206   *'\$0 --fallback-echo"')
18207     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18208     ;;
18209   esac
18210
18211 cfgfile="$ofile"
18212
18213   cat <<__EOF__ >> "$cfgfile"
18214 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18215
18216 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18217
18218 # Shell to use when invoking shell scripts.
18219 SHELL=$lt_SHELL
18220
18221 # Whether or not to build shared libraries.
18222 build_libtool_libs=$enable_shared
18223
18224 # Whether or not to build static libraries.
18225 build_old_libs=$enable_static
18226
18227 # Whether or not to add -lc for building shared libraries.
18228 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18229
18230 # Whether or not to disallow shared libs when runtime libs are static
18231 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18232
18233 # Whether or not to optimize for fast installation.
18234 fast_install=$enable_fast_install
18235
18236 # The host system.
18237 host_alias=$host_alias
18238 host=$host
18239
18240 # An echo program that does not interpret backslashes.
18241 echo=$lt_echo
18242
18243 # The archiver.
18244 AR=$lt_AR
18245 AR_FLAGS=$lt_AR_FLAGS
18246
18247 # A C compiler.
18248 LTCC=$lt_LTCC
18249
18250 # A language-specific compiler.
18251 CC=$lt_compiler_GCJ
18252
18253 # Is the compiler the GNU C compiler?
18254 with_gcc=$GCC_GCJ
18255
18256 # An ERE matcher.
18257 EGREP=$lt_EGREP
18258
18259 # The linker used to build libraries.
18260 LD=$lt_LD_GCJ
18261
18262 # Whether we need hard or soft links.
18263 LN_S=$lt_LN_S
18264
18265 # A BSD-compatible nm program.
18266 NM=$lt_NM
18267
18268 # A symbol stripping program
18269 STRIP=$lt_STRIP
18270
18271 # Used to examine libraries when file_magic_cmd begins "file"
18272 MAGIC_CMD=$MAGIC_CMD
18273
18274 # Used on cygwin: DLL creation program.
18275 DLLTOOL="$DLLTOOL"
18276
18277 # Used on cygwin: object dumper.
18278 OBJDUMP="$OBJDUMP"
18279
18280 # Used on cygwin: assembler.
18281 AS="$AS"
18282
18283 # The name of the directory that contains temporary libtool files.
18284 objdir=$objdir
18285
18286 # How to create reloadable object files.
18287 reload_flag=$lt_reload_flag
18288 reload_cmds=$lt_reload_cmds
18289
18290 # How to pass a linker flag through the compiler.
18291 wl=$lt_lt_prog_compiler_wl_GCJ
18292
18293 # Object file suffix (normally "o").
18294 objext="$ac_objext"
18295
18296 # Old archive suffix (normally "a").
18297 libext="$libext"
18298
18299 # Shared library suffix (normally ".so").
18300 shrext_cmds='$shrext_cmds'
18301
18302 # Executable file suffix (normally "").
18303 exeext="$exeext"
18304
18305 # Additional compiler flags for building library objects.
18306 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18307 pic_mode=$pic_mode
18308
18309 # What is the maximum length of a command?
18310 max_cmd_len=$lt_cv_sys_max_cmd_len
18311
18312 # Does compiler simultaneously support -c and -o options?
18313 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18314
18315 # Must we lock files when doing compilation ?
18316 need_locks=$lt_need_locks
18317
18318 # Do we need the lib prefix for modules?
18319 need_lib_prefix=$need_lib_prefix
18320
18321 # Do we need a version for libraries?
18322 need_version=$need_version
18323
18324 # Whether dlopen is supported.
18325 dlopen_support=$enable_dlopen
18326
18327 # Whether dlopen of programs is supported.
18328 dlopen_self=$enable_dlopen_self
18329
18330 # Whether dlopen of statically linked programs is supported.
18331 dlopen_self_static=$enable_dlopen_self_static
18332
18333 # Compiler flag to prevent dynamic linking.
18334 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18335
18336 # Compiler flag to turn off builtin functions.
18337 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18338
18339 # Compiler flag to allow reflexive dlopens.
18340 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18341
18342 # Compiler flag to generate shared objects directly from archives.
18343 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18344
18345 # Compiler flag to generate thread-safe objects.
18346 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18347
18348 # Library versioning type.
18349 version_type=$version_type
18350
18351 # Format of library name prefix.
18352 libname_spec=$lt_libname_spec
18353
18354 # List of archive names.  First name is the real one, the rest are links.
18355 # The last name is the one that the linker finds with -lNAME.
18356 library_names_spec=$lt_library_names_spec
18357
18358 # The coded name of the library, if different from the real name.
18359 soname_spec=$lt_soname_spec
18360
18361 # Commands used to build and install an old-style archive.
18362 RANLIB=$lt_RANLIB
18363 old_archive_cmds=$lt_old_archive_cmds_GCJ
18364 old_postinstall_cmds=$lt_old_postinstall_cmds
18365 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18366
18367 # Create an old-style archive from a shared archive.
18368 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18369
18370 # Create a temporary old-style archive to link instead of a shared archive.
18371 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18372
18373 # Commands used to build and install a shared archive.
18374 archive_cmds=$lt_archive_cmds_GCJ
18375 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18376 postinstall_cmds=$lt_postinstall_cmds
18377 postuninstall_cmds=$lt_postuninstall_cmds
18378
18379 # Commands used to build a loadable module (assumed same as above if empty)
18380 module_cmds=$lt_module_cmds_GCJ
18381 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18382
18383 # Commands to strip libraries.
18384 old_striplib=$lt_old_striplib
18385 striplib=$lt_striplib
18386
18387 # Dependencies to place before the objects being linked to create a
18388 # shared library.
18389 predep_objects=$lt_predep_objects_GCJ
18390
18391 # Dependencies to place after the objects being linked to create a
18392 # shared library.
18393 postdep_objects=$lt_postdep_objects_GCJ
18394
18395 # Dependencies to place before the objects being linked to create a
18396 # shared library.
18397 predeps=$lt_predeps_GCJ
18398
18399 # Dependencies to place after the objects being linked to create a
18400 # shared library.
18401 postdeps=$lt_postdeps_GCJ
18402
18403 # The library search path used internally by the compiler when linking
18404 # a shared library.
18405 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18406
18407 # Method to check whether dependent libraries are shared objects.
18408 deplibs_check_method=$lt_deplibs_check_method
18409
18410 # Command to use when deplibs_check_method == file_magic.
18411 file_magic_cmd=$lt_file_magic_cmd
18412
18413 # Flag that allows shared libraries with undefined symbols to be built.
18414 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18415
18416 # Flag that forces no undefined symbols.
18417 no_undefined_flag=$lt_no_undefined_flag_GCJ
18418
18419 # Commands used to finish a libtool library installation in a directory.
18420 finish_cmds=$lt_finish_cmds
18421
18422 # Same as above, but a single script fragment to be evaled but not shown.
18423 finish_eval=$lt_finish_eval
18424
18425 # Take the output of nm and produce a listing of raw symbols and C names.
18426 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18427
18428 # Transform the output of nm in a proper C declaration
18429 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18430
18431 # Transform the output of nm in a C name address pair
18432 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18433
18434 # This is the shared library runtime path variable.
18435 runpath_var=$runpath_var
18436
18437 # This is the shared library path variable.
18438 shlibpath_var=$shlibpath_var
18439
18440 # Is shlibpath searched before the hard-coded library search path?
18441 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18442
18443 # How to hardcode a shared library path into an executable.
18444 hardcode_action=$hardcode_action_GCJ
18445
18446 # Whether we should hardcode library paths into libraries.
18447 hardcode_into_libs=$hardcode_into_libs
18448
18449 # Flag to hardcode \$libdir into a binary during linking.
18450 # This must work even if \$libdir does not exist.
18451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18452
18453 # If ld is used when linking, flag to hardcode \$libdir into
18454 # a binary during linking. This must work even if \$libdir does
18455 # not exist.
18456 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18457
18458 # Whether we need a single -rpath flag with a separated argument.
18459 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18460
18461 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18462 # resulting binary.
18463 hardcode_direct=$hardcode_direct_GCJ
18464
18465 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18466 # resulting binary.
18467 hardcode_minus_L=$hardcode_minus_L_GCJ
18468
18469 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18470 # the resulting binary.
18471 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18472
18473 # Set to yes if building a shared library automatically hardcodes DIR into the library
18474 # and all subsequent libraries and executables linked against it.
18475 hardcode_automatic=$hardcode_automatic_GCJ
18476
18477 # Variables whose values should be saved in libtool wrapper scripts and
18478 # restored at relink time.
18479 variables_saved_for_relink="$variables_saved_for_relink"
18480
18481 # Whether libtool must link a program against all its dependency libraries.
18482 link_all_deplibs=$link_all_deplibs_GCJ
18483
18484 # Compile-time system search path for libraries
18485 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18486
18487 # Run-time system search path for libraries
18488 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18489
18490 # Fix the shell variable \$srcfile for the compiler.
18491 fix_srcfile_path="$fix_srcfile_path_GCJ"
18492
18493 # Set to yes if exported symbols are required.
18494 always_export_symbols=$always_export_symbols_GCJ
18495
18496 # The commands to list exported symbols.
18497 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18498
18499 # The commands to extract the exported symbol list from a shared archive.
18500 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18501
18502 # Symbols that should not be listed in the preloaded symbols.
18503 exclude_expsyms=$lt_exclude_expsyms_GCJ
18504
18505 # Symbols that must always be exported.
18506 include_expsyms=$lt_include_expsyms_GCJ
18507
18508 # ### END LIBTOOL TAG CONFIG: $tagname
18509
18510 __EOF__
18511
18512
18513 else
18514   # If there is no Makefile yet, we rely on a make rule to execute
18515   # `config.status --recheck' to rerun these tests and create the
18516   # libtool script then.
18517   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18518   if test -f "$ltmain_in"; then
18519     test -f Makefile && make "$ltmain"
18520   fi
18521 fi
18522
18523
18524 ac_ext=c
18525 ac_cpp='$CPP $CPPFLAGS'
18526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18529
18530 CC="$lt_save_CC"
18531
18532         else
18533           tagname=""
18534         fi
18535         ;;
18536
18537       RC)
18538
18539
18540
18541 # Source file extension for RC test sources.
18542 ac_ext=rc
18543
18544 # Object file extension for compiled RC test sources.
18545 objext=o
18546 objext_RC=$objext
18547
18548 # Code to be used in simple compile tests
18549 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18550
18551 # Code to be used in simple link tests
18552 lt_simple_link_test_code="$lt_simple_compile_test_code"
18553
18554 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18555
18556 # If no C compiler was specified, use CC.
18557 LTCC=${LTCC-"$CC"}
18558
18559 # Allow CC to be a program name with arguments.
18560 compiler=$CC
18561
18562
18563 # Allow CC to be a program name with arguments.
18564 lt_save_CC="$CC"
18565 CC=${RC-"windres"}
18566 compiler=$CC
18567 compiler_RC=$CC
18568 lt_cv_prog_compiler_c_o_RC=yes
18569
18570 # The else clause should only fire when bootstrapping the
18571 # libtool distribution, otherwise you forgot to ship ltmain.sh
18572 # with your package, and you will get complaints that there are
18573 # no rules to generate ltmain.sh.
18574 if test -f "$ltmain"; then
18575   # See if we are running on zsh, and set the options which allow our commands through
18576   # without removal of \ escapes.
18577   if test -n "${ZSH_VERSION+set}" ; then
18578     setopt NO_GLOB_SUBST
18579   fi
18580   # Now quote all the things that may contain metacharacters while being
18581   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18582   # variables and quote the copies for generation of the libtool script.
18583   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18584     SED SHELL STRIP \
18585     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18586     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18587     deplibs_check_method reload_flag reload_cmds need_locks \
18588     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18589     lt_cv_sys_global_symbol_to_c_name_address \
18590     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18591     old_postinstall_cmds old_postuninstall_cmds \
18592     compiler_RC \
18593     CC_RC \
18594     LD_RC \
18595     lt_prog_compiler_wl_RC \
18596     lt_prog_compiler_pic_RC \
18597     lt_prog_compiler_static_RC \
18598     lt_prog_compiler_no_builtin_flag_RC \
18599     export_dynamic_flag_spec_RC \
18600     thread_safe_flag_spec_RC \
18601     whole_archive_flag_spec_RC \
18602     enable_shared_with_static_runtimes_RC \
18603     old_archive_cmds_RC \
18604     old_archive_from_new_cmds_RC \
18605     predep_objects_RC \
18606     postdep_objects_RC \
18607     predeps_RC \
18608     postdeps_RC \
18609     compiler_lib_search_path_RC \
18610     archive_cmds_RC \
18611     archive_expsym_cmds_RC \
18612     postinstall_cmds_RC \
18613     postuninstall_cmds_RC \
18614     old_archive_from_expsyms_cmds_RC \
18615     allow_undefined_flag_RC \
18616     no_undefined_flag_RC \
18617     export_symbols_cmds_RC \
18618     hardcode_libdir_flag_spec_RC \
18619     hardcode_libdir_flag_spec_ld_RC \
18620     hardcode_libdir_separator_RC \
18621     hardcode_automatic_RC \
18622     module_cmds_RC \
18623     module_expsym_cmds_RC \
18624     lt_cv_prog_compiler_c_o_RC \
18625     exclude_expsyms_RC \
18626     include_expsyms_RC; do
18627
18628     case $var in
18629     old_archive_cmds_RC | \
18630     old_archive_from_new_cmds_RC | \
18631     archive_cmds_RC | \
18632     archive_expsym_cmds_RC | \
18633     module_cmds_RC | \
18634     module_expsym_cmds_RC | \
18635     old_archive_from_expsyms_cmds_RC | \
18636     export_symbols_cmds_RC | \
18637     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18638     postinstall_cmds | postuninstall_cmds | \
18639     old_postinstall_cmds | old_postuninstall_cmds | \
18640     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18641       # Double-quote double-evaled strings.
18642       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18643       ;;
18644     *)
18645       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18646       ;;
18647     esac
18648   done
18649
18650   case $lt_echo in
18651   *'\$0 --fallback-echo"')
18652     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18653     ;;
18654   esac
18655
18656 cfgfile="$ofile"
18657
18658   cat <<__EOF__ >> "$cfgfile"
18659 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18660
18661 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18662
18663 # Shell to use when invoking shell scripts.
18664 SHELL=$lt_SHELL
18665
18666 # Whether or not to build shared libraries.
18667 build_libtool_libs=$enable_shared
18668
18669 # Whether or not to build static libraries.
18670 build_old_libs=$enable_static
18671
18672 # Whether or not to add -lc for building shared libraries.
18673 build_libtool_need_lc=$archive_cmds_need_lc_RC
18674
18675 # Whether or not to disallow shared libs when runtime libs are static
18676 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18677
18678 # Whether or not to optimize for fast installation.
18679 fast_install=$enable_fast_install
18680
18681 # The host system.
18682 host_alias=$host_alias
18683 host=$host
18684
18685 # An echo program that does not interpret backslashes.
18686 echo=$lt_echo
18687
18688 # The archiver.
18689 AR=$lt_AR
18690 AR_FLAGS=$lt_AR_FLAGS
18691
18692 # A C compiler.
18693 LTCC=$lt_LTCC
18694
18695 # A language-specific compiler.
18696 CC=$lt_compiler_RC
18697
18698 # Is the compiler the GNU C compiler?
18699 with_gcc=$GCC_RC
18700
18701 # An ERE matcher.
18702 EGREP=$lt_EGREP
18703
18704 # The linker used to build libraries.
18705 LD=$lt_LD_RC
18706
18707 # Whether we need hard or soft links.
18708 LN_S=$lt_LN_S
18709
18710 # A BSD-compatible nm program.
18711 NM=$lt_NM
18712
18713 # A symbol stripping program
18714 STRIP=$lt_STRIP
18715
18716 # Used to examine libraries when file_magic_cmd begins "file"
18717 MAGIC_CMD=$MAGIC_CMD
18718
18719 # Used on cygwin: DLL creation program.
18720 DLLTOOL="$DLLTOOL"
18721
18722 # Used on cygwin: object dumper.
18723 OBJDUMP="$OBJDUMP"
18724
18725 # Used on cygwin: assembler.
18726 AS="$AS"
18727
18728 # The name of the directory that contains temporary libtool files.
18729 objdir=$objdir
18730
18731 # How to create reloadable object files.
18732 reload_flag=$lt_reload_flag
18733 reload_cmds=$lt_reload_cmds
18734
18735 # How to pass a linker flag through the compiler.
18736 wl=$lt_lt_prog_compiler_wl_RC
18737
18738 # Object file suffix (normally "o").
18739 objext="$ac_objext"
18740
18741 # Old archive suffix (normally "a").
18742 libext="$libext"
18743
18744 # Shared library suffix (normally ".so").
18745 shrext_cmds='$shrext_cmds'
18746
18747 # Executable file suffix (normally "").
18748 exeext="$exeext"
18749
18750 # Additional compiler flags for building library objects.
18751 pic_flag=$lt_lt_prog_compiler_pic_RC
18752 pic_mode=$pic_mode
18753
18754 # What is the maximum length of a command?
18755 max_cmd_len=$lt_cv_sys_max_cmd_len
18756
18757 # Does compiler simultaneously support -c and -o options?
18758 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18759
18760 # Must we lock files when doing compilation ?
18761 need_locks=$lt_need_locks
18762
18763 # Do we need the lib prefix for modules?
18764 need_lib_prefix=$need_lib_prefix
18765
18766 # Do we need a version for libraries?
18767 need_version=$need_version
18768
18769 # Whether dlopen is supported.
18770 dlopen_support=$enable_dlopen
18771
18772 # Whether dlopen of programs is supported.
18773 dlopen_self=$enable_dlopen_self
18774
18775 # Whether dlopen of statically linked programs is supported.
18776 dlopen_self_static=$enable_dlopen_self_static
18777
18778 # Compiler flag to prevent dynamic linking.
18779 link_static_flag=$lt_lt_prog_compiler_static_RC
18780
18781 # Compiler flag to turn off builtin functions.
18782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18783
18784 # Compiler flag to allow reflexive dlopens.
18785 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18786
18787 # Compiler flag to generate shared objects directly from archives.
18788 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18789
18790 # Compiler flag to generate thread-safe objects.
18791 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18792
18793 # Library versioning type.
18794 version_type=$version_type
18795
18796 # Format of library name prefix.
18797 libname_spec=$lt_libname_spec
18798
18799 # List of archive names.  First name is the real one, the rest are links.
18800 # The last name is the one that the linker finds with -lNAME.
18801 library_names_spec=$lt_library_names_spec
18802
18803 # The coded name of the library, if different from the real name.
18804 soname_spec=$lt_soname_spec
18805
18806 # Commands used to build and install an old-style archive.
18807 RANLIB=$lt_RANLIB
18808 old_archive_cmds=$lt_old_archive_cmds_RC
18809 old_postinstall_cmds=$lt_old_postinstall_cmds
18810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18811
18812 # Create an old-style archive from a shared archive.
18813 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18814
18815 # Create a temporary old-style archive to link instead of a shared archive.
18816 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18817
18818 # Commands used to build and install a shared archive.
18819 archive_cmds=$lt_archive_cmds_RC
18820 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18821 postinstall_cmds=$lt_postinstall_cmds
18822 postuninstall_cmds=$lt_postuninstall_cmds
18823
18824 # Commands used to build a loadable module (assumed same as above if empty)
18825 module_cmds=$lt_module_cmds_RC
18826 module_expsym_cmds=$lt_module_expsym_cmds_RC
18827
18828 # Commands to strip libraries.
18829 old_striplib=$lt_old_striplib
18830 striplib=$lt_striplib
18831
18832 # Dependencies to place before the objects being linked to create a
18833 # shared library.
18834 predep_objects=$lt_predep_objects_RC
18835
18836 # Dependencies to place after the objects being linked to create a
18837 # shared library.
18838 postdep_objects=$lt_postdep_objects_RC
18839
18840 # Dependencies to place before the objects being linked to create a
18841 # shared library.
18842 predeps=$lt_predeps_RC
18843
18844 # Dependencies to place after the objects being linked to create a
18845 # shared library.
18846 postdeps=$lt_postdeps_RC
18847
18848 # The library search path used internally by the compiler when linking
18849 # a shared library.
18850 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18851
18852 # Method to check whether dependent libraries are shared objects.
18853 deplibs_check_method=$lt_deplibs_check_method
18854
18855 # Command to use when deplibs_check_method == file_magic.
18856 file_magic_cmd=$lt_file_magic_cmd
18857
18858 # Flag that allows shared libraries with undefined symbols to be built.
18859 allow_undefined_flag=$lt_allow_undefined_flag_RC
18860
18861 # Flag that forces no undefined symbols.
18862 no_undefined_flag=$lt_no_undefined_flag_RC
18863
18864 # Commands used to finish a libtool library installation in a directory.
18865 finish_cmds=$lt_finish_cmds
18866
18867 # Same as above, but a single script fragment to be evaled but not shown.
18868 finish_eval=$lt_finish_eval
18869
18870 # Take the output of nm and produce a listing of raw symbols and C names.
18871 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18872
18873 # Transform the output of nm in a proper C declaration
18874 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18875
18876 # Transform the output of nm in a C name address pair
18877 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18878
18879 # This is the shared library runtime path variable.
18880 runpath_var=$runpath_var
18881
18882 # This is the shared library path variable.
18883 shlibpath_var=$shlibpath_var
18884
18885 # Is shlibpath searched before the hard-coded library search path?
18886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18887
18888 # How to hardcode a shared library path into an executable.
18889 hardcode_action=$hardcode_action_RC
18890
18891 # Whether we should hardcode library paths into libraries.
18892 hardcode_into_libs=$hardcode_into_libs
18893
18894 # Flag to hardcode \$libdir into a binary during linking.
18895 # This must work even if \$libdir does not exist.
18896 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18897
18898 # If ld is used when linking, flag to hardcode \$libdir into
18899 # a binary during linking. This must work even if \$libdir does
18900 # not exist.
18901 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18902
18903 # Whether we need a single -rpath flag with a separated argument.
18904 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18905
18906 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18907 # resulting binary.
18908 hardcode_direct=$hardcode_direct_RC
18909
18910 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18911 # resulting binary.
18912 hardcode_minus_L=$hardcode_minus_L_RC
18913
18914 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18915 # the resulting binary.
18916 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18917
18918 # Set to yes if building a shared library automatically hardcodes DIR into the library
18919 # and all subsequent libraries and executables linked against it.
18920 hardcode_automatic=$hardcode_automatic_RC
18921
18922 # Variables whose values should be saved in libtool wrapper scripts and
18923 # restored at relink time.
18924 variables_saved_for_relink="$variables_saved_for_relink"
18925
18926 # Whether libtool must link a program against all its dependency libraries.
18927 link_all_deplibs=$link_all_deplibs_RC
18928
18929 # Compile-time system search path for libraries
18930 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18931
18932 # Run-time system search path for libraries
18933 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18934
18935 # Fix the shell variable \$srcfile for the compiler.
18936 fix_srcfile_path="$fix_srcfile_path_RC"
18937
18938 # Set to yes if exported symbols are required.
18939 always_export_symbols=$always_export_symbols_RC
18940
18941 # The commands to list exported symbols.
18942 export_symbols_cmds=$lt_export_symbols_cmds_RC
18943
18944 # The commands to extract the exported symbol list from a shared archive.
18945 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18946
18947 # Symbols that should not be listed in the preloaded symbols.
18948 exclude_expsyms=$lt_exclude_expsyms_RC
18949
18950 # Symbols that must always be exported.
18951 include_expsyms=$lt_include_expsyms_RC
18952
18953 # ### END LIBTOOL TAG CONFIG: $tagname
18954
18955 __EOF__
18956
18957
18958 else
18959   # If there is no Makefile yet, we rely on a make rule to execute
18960   # `config.status --recheck' to rerun these tests and create the
18961   # libtool script then.
18962   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18963   if test -f "$ltmain_in"; then
18964     test -f Makefile && make "$ltmain"
18965   fi
18966 fi
18967
18968
18969 ac_ext=c
18970 ac_cpp='$CPP $CPPFLAGS'
18971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18974
18975 CC="$lt_save_CC"
18976
18977         ;;
18978
18979       *)
18980         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18981 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18982    { (exit 1); exit 1; }; }
18983         ;;
18984       esac
18985
18986       # Append the new tag name to the list of available tags.
18987       if test -n "$tagname" ; then
18988       available_tags="$available_tags $tagname"
18989     fi
18990     fi
18991   done
18992   IFS="$lt_save_ifs"
18993
18994   # Now substitute the updated list of available tags.
18995   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18996     mv "${ofile}T" "$ofile"
18997     chmod +x "$ofile"
18998   else
18999     rm -f "${ofile}T"
19000     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19001 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19002    { (exit 1); exit 1; }; }
19003   fi
19004 fi
19005
19006
19007
19008 # This can be used to rebuild libtool when needed
19009 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19010
19011 # Always use our own libtool.
19012 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19013
19014 # Prevent multiple expansion
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036 # declare the modules (no optional module)
19037
19038 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19039 ACLOCAL="$ACLOCAL -I acmacro"
19040
19041
19042 ac_ext=c
19043 ac_cpp='$CPP $CPPFLAGS'
19044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19047 if test -n "$ac_tool_prefix"; then
19048   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19049 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19050 echo "$as_me:$LINENO: checking for $ac_word" >&5
19051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19052 if test "${ac_cv_prog_CC+set}" = set; then
19053   echo $ECHO_N "(cached) $ECHO_C" >&6
19054 else
19055   if test -n "$CC"; then
19056   ac_cv_prog_CC="$CC" # Let the user override the test.
19057 else
19058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19059 for as_dir in $PATH
19060 do
19061   IFS=$as_save_IFS
19062   test -z "$as_dir" && as_dir=.
19063   for ac_exec_ext in '' $ac_executable_extensions; do
19064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19065     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19067     break 2
19068   fi
19069 done
19070 done
19071
19072 fi
19073 fi
19074 CC=$ac_cv_prog_CC
19075 if test -n "$CC"; then
19076   echo "$as_me:$LINENO: result: $CC" >&5
19077 echo "${ECHO_T}$CC" >&6
19078 else
19079   echo "$as_me:$LINENO: result: no" >&5
19080 echo "${ECHO_T}no" >&6
19081 fi
19082
19083 fi
19084 if test -z "$ac_cv_prog_CC"; then
19085   ac_ct_CC=$CC
19086   # Extract the first word of "gcc", so it can be a program name with args.
19087 set dummy gcc; ac_word=$2
19088 echo "$as_me:$LINENO: checking for $ac_word" >&5
19089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19091   echo $ECHO_N "(cached) $ECHO_C" >&6
19092 else
19093   if test -n "$ac_ct_CC"; then
19094   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19095 else
19096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19097 for as_dir in $PATH
19098 do
19099   IFS=$as_save_IFS
19100   test -z "$as_dir" && as_dir=.
19101   for ac_exec_ext in '' $ac_executable_extensions; do
19102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19103     ac_cv_prog_ac_ct_CC="gcc"
19104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19105     break 2
19106   fi
19107 done
19108 done
19109
19110 fi
19111 fi
19112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19113 if test -n "$ac_ct_CC"; then
19114   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19115 echo "${ECHO_T}$ac_ct_CC" >&6
19116 else
19117   echo "$as_me:$LINENO: result: no" >&5
19118 echo "${ECHO_T}no" >&6
19119 fi
19120
19121   CC=$ac_ct_CC
19122 else
19123   CC="$ac_cv_prog_CC"
19124 fi
19125
19126 if test -z "$CC"; then
19127   if test -n "$ac_tool_prefix"; then
19128   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19129 set dummy ${ac_tool_prefix}cc; 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}cc"
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 "cc", so it can be a program name with args.
19167 set dummy cc; 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="cc"
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 fi
19207 if test -z "$CC"; then
19208   # Extract the first word of "cc", so it can be a program name with args.
19209 set dummy 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   ac_prog_rejected=no
19219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19220 for as_dir in $PATH
19221 do
19222   IFS=$as_save_IFS
19223   test -z "$as_dir" && as_dir=.
19224   for ac_exec_ext in '' $ac_executable_extensions; do
19225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19226     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19227        ac_prog_rejected=yes
19228        continue
19229      fi
19230     ac_cv_prog_CC="cc"
19231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19232     break 2
19233   fi
19234 done
19235 done
19236
19237 if test $ac_prog_rejected = yes; then
19238   # We found a bogon in the path, so make sure we never use it.
19239   set dummy $ac_cv_prog_CC
19240   shift
19241   if test $# != 0; then
19242     # We chose a different compiler from the bogus one.
19243     # However, it has the same basename, so the bogon will be chosen
19244     # first if we set CC to just the basename; use the full file name.
19245     shift
19246     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19247   fi
19248 fi
19249 fi
19250 fi
19251 CC=$ac_cv_prog_CC
19252 if test -n "$CC"; then
19253   echo "$as_me:$LINENO: result: $CC" >&5
19254 echo "${ECHO_T}$CC" >&6
19255 else
19256   echo "$as_me:$LINENO: result: no" >&5
19257 echo "${ECHO_T}no" >&6
19258 fi
19259
19260 fi
19261 if test -z "$CC"; then
19262   if test -n "$ac_tool_prefix"; then
19263   for ac_prog in cl
19264   do
19265     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19267 echo "$as_me:$LINENO: checking for $ac_word" >&5
19268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19269 if test "${ac_cv_prog_CC+set}" = set; then
19270   echo $ECHO_N "(cached) $ECHO_C" >&6
19271 else
19272   if test -n "$CC"; then
19273   ac_cv_prog_CC="$CC" # Let the user override the test.
19274 else
19275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19276 for as_dir in $PATH
19277 do
19278   IFS=$as_save_IFS
19279   test -z "$as_dir" && as_dir=.
19280   for ac_exec_ext in '' $ac_executable_extensions; do
19281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19282     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19284     break 2
19285   fi
19286 done
19287 done
19288
19289 fi
19290 fi
19291 CC=$ac_cv_prog_CC
19292 if test -n "$CC"; then
19293   echo "$as_me:$LINENO: result: $CC" >&5
19294 echo "${ECHO_T}$CC" >&6
19295 else
19296   echo "$as_me:$LINENO: result: no" >&5
19297 echo "${ECHO_T}no" >&6
19298 fi
19299
19300     test -n "$CC" && break
19301   done
19302 fi
19303 if test -z "$CC"; then
19304   ac_ct_CC=$CC
19305   for ac_prog in cl
19306 do
19307   # Extract the first word of "$ac_prog", so it can be a program name with args.
19308 set dummy $ac_prog; ac_word=$2
19309 echo "$as_me:$LINENO: checking for $ac_word" >&5
19310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19312   echo $ECHO_N "(cached) $ECHO_C" >&6
19313 else
19314   if test -n "$ac_ct_CC"; then
19315   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19316 else
19317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19318 for as_dir in $PATH
19319 do
19320   IFS=$as_save_IFS
19321   test -z "$as_dir" && as_dir=.
19322   for ac_exec_ext in '' $ac_executable_extensions; do
19323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19324     ac_cv_prog_ac_ct_CC="$ac_prog"
19325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19326     break 2
19327   fi
19328 done
19329 done
19330
19331 fi
19332 fi
19333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19334 if test -n "$ac_ct_CC"; then
19335   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19336 echo "${ECHO_T}$ac_ct_CC" >&6
19337 else
19338   echo "$as_me:$LINENO: result: no" >&5
19339 echo "${ECHO_T}no" >&6
19340 fi
19341
19342   test -n "$ac_ct_CC" && break
19343 done
19344
19345   CC=$ac_ct_CC
19346 fi
19347
19348 fi
19349
19350
19351 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19352 See \`config.log' for more details." >&5
19353 echo "$as_me: error: no acceptable C compiler found in \$PATH
19354 See \`config.log' for more details." >&2;}
19355    { (exit 1); exit 1; }; }
19356
19357 # Provide some information about the compiler.
19358 echo "$as_me:$LINENO:" \
19359      "checking for C compiler version" >&5
19360 ac_compiler=`set X $ac_compile; echo $2`
19361 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19362   (eval $ac_compiler --version </dev/null >&5) 2>&5
19363   ac_status=$?
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); }
19366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19367   (eval $ac_compiler -v </dev/null >&5) 2>&5
19368   ac_status=$?
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); }
19371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19372   (eval $ac_compiler -V </dev/null >&5) 2>&5
19373   ac_status=$?
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); }
19376
19377 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19378 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19379 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19380   echo $ECHO_N "(cached) $ECHO_C" >&6
19381 else
19382   cat >conftest.$ac_ext <<_ACEOF
19383 /* confdefs.h.  */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h.  */
19388
19389 int
19390 main ()
19391 {
19392 #ifndef __GNUC__
19393        choke me
19394 #endif
19395
19396   ;
19397   return 0;
19398 }
19399 _ACEOF
19400 rm -f conftest.$ac_objext
19401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19402   (eval $ac_compile) 2>conftest.er1
19403   ac_status=$?
19404   grep -v '^ *+' conftest.er1 >conftest.err
19405   rm -f conftest.er1
19406   cat conftest.err >&5
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); } &&
19409          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411   (eval $ac_try) 2>&5
19412   ac_status=$?
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); }; } &&
19415          { ac_try='test -s conftest.$ac_objext'
19416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417   (eval $ac_try) 2>&5
19418   ac_status=$?
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); }; }; then
19421   ac_compiler_gnu=yes
19422 else
19423   echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426 ac_compiler_gnu=no
19427 fi
19428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19429 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19430
19431 fi
19432 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19433 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19434 GCC=`test $ac_compiler_gnu = yes && echo yes`
19435 ac_test_CFLAGS=${CFLAGS+set}
19436 ac_save_CFLAGS=$CFLAGS
19437 CFLAGS="-g"
19438 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19439 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19440 if test "${ac_cv_prog_cc_g+set}" = set; then
19441   echo $ECHO_N "(cached) $ECHO_C" >&6
19442 else
19443   cat >conftest.$ac_ext <<_ACEOF
19444 /* confdefs.h.  */
19445 _ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h.  */
19449
19450 int
19451 main ()
19452 {
19453
19454   ;
19455   return 0;
19456 }
19457 _ACEOF
19458 rm -f conftest.$ac_objext
19459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19460   (eval $ac_compile) 2>conftest.er1
19461   ac_status=$?
19462   grep -v '^ *+' conftest.er1 >conftest.err
19463   rm -f conftest.er1
19464   cat conftest.err >&5
19465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466   (exit $ac_status); } &&
19467          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19469   (eval $ac_try) 2>&5
19470   ac_status=$?
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); }; } &&
19473          { ac_try='test -s conftest.$ac_objext'
19474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475   (eval $ac_try) 2>&5
19476   ac_status=$?
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); }; }; then
19479   ac_cv_prog_cc_g=yes
19480 else
19481   echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19483
19484 ac_cv_prog_cc_g=no
19485 fi
19486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19487 fi
19488 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19489 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19490 if test "$ac_test_CFLAGS" = set; then
19491   CFLAGS=$ac_save_CFLAGS
19492 elif test $ac_cv_prog_cc_g = yes; then
19493   if test "$GCC" = yes; then
19494     CFLAGS="-g -O2"
19495   else
19496     CFLAGS="-g"
19497   fi
19498 else
19499   if test "$GCC" = yes; then
19500     CFLAGS="-O2"
19501   else
19502     CFLAGS=
19503   fi
19504 fi
19505 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19506 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19507 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19508   echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510   ac_cv_prog_cc_stdc=no
19511 ac_save_CC=$CC
19512 cat >conftest.$ac_ext <<_ACEOF
19513 /* confdefs.h.  */
19514 _ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h.  */
19518 #include <stdarg.h>
19519 #include <stdio.h>
19520 #include <sys/types.h>
19521 #include <sys/stat.h>
19522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19523 struct buf { int x; };
19524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19525 static char *e (p, i)
19526      char **p;
19527      int i;
19528 {
19529   return p[i];
19530 }
19531 static char *f (char * (*g) (char **, int), char **p, ...)
19532 {
19533   char *s;
19534   va_list v;
19535   va_start (v,p);
19536   s = g (p, va_arg (v,int));
19537   va_end (v);
19538   return s;
19539 }
19540
19541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19542    function prototypes and stuff, but not '\xHH' hex character constants.
19543    These don't provoke an error unfortunately, instead are silently treated
19544    as 'x'.  The following induces an error, until -std1 is added to get
19545    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19546    array size at least.  It's necessary to write '\x00'==0 to get something
19547    that's true only with -std1.  */
19548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19549
19550 int test (int i, double x);
19551 struct s1 {int (*f) (int a);};
19552 struct s2 {int (*f) (double a);};
19553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19554 int argc;
19555 char **argv;
19556 int
19557 main ()
19558 {
19559 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19560   ;
19561   return 0;
19562 }
19563 _ACEOF
19564 # Don't try gcc -ansi; that turns off useful extensions and
19565 # breaks some systems' header files.
19566 # AIX                   -qlanglvl=ansi
19567 # Ultrix and OSF/1      -std1
19568 # HP-UX 10.20 and later -Ae
19569 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19570 # SVR4                  -Xc -D__EXTENSIONS__
19571 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19572 do
19573   CC="$ac_save_CC $ac_arg"
19574   rm -f conftest.$ac_objext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576   (eval $ac_compile) 2>conftest.er1
19577   ac_status=$?
19578   grep -v '^ *+' conftest.er1 >conftest.err
19579   rm -f conftest.er1
19580   cat conftest.err >&5
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); } &&
19583          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585   (eval $ac_try) 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); }; } &&
19589          { ac_try='test -s conftest.$ac_objext'
19590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591   (eval $ac_try) 2>&5
19592   ac_status=$?
19593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594   (exit $ac_status); }; }; then
19595   ac_cv_prog_cc_stdc=$ac_arg
19596 break
19597 else
19598   echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19600
19601 fi
19602 rm -f conftest.err conftest.$ac_objext
19603 done
19604 rm -f conftest.$ac_ext conftest.$ac_objext
19605 CC=$ac_save_CC
19606
19607 fi
19608
19609 case "x$ac_cv_prog_cc_stdc" in
19610   x|xno)
19611     echo "$as_me:$LINENO: result: none needed" >&5
19612 echo "${ECHO_T}none needed" >&6 ;;
19613   *)
19614     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19615 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19616     CC="$CC $ac_cv_prog_cc_stdc" ;;
19617 esac
19618
19619 # Some people use a C++ compiler to compile C.  Since we use `exit',
19620 # in C++ we need to declare it.  In case someone uses the same compiler
19621 # for both compiling C and C++ we need to have the C++ compiler decide
19622 # the declaration of exit, since it's the most demanding environment.
19623 cat >conftest.$ac_ext <<_ACEOF
19624 #ifndef __cplusplus
19625   choke me
19626 #endif
19627 _ACEOF
19628 rm -f conftest.$ac_objext
19629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19630   (eval $ac_compile) 2>conftest.er1
19631   ac_status=$?
19632   grep -v '^ *+' conftest.er1 >conftest.err
19633   rm -f conftest.er1
19634   cat conftest.err >&5
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); } &&
19637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639   (eval $ac_try) 2>&5
19640   ac_status=$?
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); }; } &&
19643          { ac_try='test -s conftest.$ac_objext'
19644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645   (eval $ac_try) 2>&5
19646   ac_status=$?
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); }; }; then
19649   for ac_declaration in \
19650    '' \
19651    'extern "C" void std::exit (int) throw (); using std::exit;' \
19652    'extern "C" void std::exit (int); using std::exit;' \
19653    'extern "C" void exit (int) throw ();' \
19654    'extern "C" void exit (int);' \
19655    'void exit (int);'
19656 do
19657   cat >conftest.$ac_ext <<_ACEOF
19658 /* confdefs.h.  */
19659 _ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h.  */
19663 $ac_declaration
19664 #include <stdlib.h>
19665 int
19666 main ()
19667 {
19668 exit (42);
19669   ;
19670   return 0;
19671 }
19672 _ACEOF
19673 rm -f conftest.$ac_objext
19674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19675   (eval $ac_compile) 2>conftest.er1
19676   ac_status=$?
19677   grep -v '^ *+' conftest.er1 >conftest.err
19678   rm -f conftest.er1
19679   cat conftest.err >&5
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); } &&
19682          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684   (eval $ac_try) 2>&5
19685   ac_status=$?
19686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687   (exit $ac_status); }; } &&
19688          { ac_try='test -s conftest.$ac_objext'
19689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690   (eval $ac_try) 2>&5
19691   ac_status=$?
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); }; }; then
19694   :
19695 else
19696   echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19698
19699 continue
19700 fi
19701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19702   cat >conftest.$ac_ext <<_ACEOF
19703 /* confdefs.h.  */
19704 _ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h.  */
19708 $ac_declaration
19709 int
19710 main ()
19711 {
19712 exit (42);
19713   ;
19714   return 0;
19715 }
19716 _ACEOF
19717 rm -f conftest.$ac_objext
19718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19719   (eval $ac_compile) 2>conftest.er1
19720   ac_status=$?
19721   grep -v '^ *+' conftest.er1 >conftest.err
19722   rm -f conftest.er1
19723   cat conftest.err >&5
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); } &&
19726          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728   (eval $ac_try) 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); }; } &&
19732          { ac_try='test -s conftest.$ac_objext'
19733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734   (eval $ac_try) 2>&5
19735   ac_status=$?
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); }; }; then
19738   break
19739 else
19740   echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743 fi
19744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19745 done
19746 rm -f conftest*
19747 if test -n "$ac_declaration"; then
19748   echo '#ifdef __cplusplus' >>confdefs.h
19749   echo $ac_declaration      >>confdefs.h
19750   echo '#endif'             >>confdefs.h
19751 fi
19752
19753 else
19754   echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19756
19757 fi
19758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19759 ac_ext=c
19760 ac_cpp='$CPP $CPPFLAGS'
19761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19764
19765 depcc="$CC"   am_compiler_list=
19766
19767 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19768 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19769 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19770   echo $ECHO_N "(cached) $ECHO_C" >&6
19771 else
19772   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19773   # We make a subdir and do the tests there.  Otherwise we can end up
19774   # making bogus files that we don't know about and never remove.  For
19775   # instance it was reported that on HP-UX the gcc test will end up
19776   # making a dummy file named `D' -- because `-MD' means `put the output
19777   # in D'.
19778   mkdir conftest.dir
19779   # Copy depcomp to subdir because otherwise we won't find it if we're
19780   # using a relative directory.
19781   cp "$am_depcomp" conftest.dir
19782   cd conftest.dir
19783   # We will build objects and dependencies in a subdirectory because
19784   # it helps to detect inapplicable dependency modes.  For instance
19785   # both Tru64's cc and ICC support -MD to output dependencies as a
19786   # side effect of compilation, but ICC will put the dependencies in
19787   # the current directory while Tru64 will put them in the object
19788   # directory.
19789   mkdir sub
19790
19791   am_cv_CC_dependencies_compiler_type=none
19792   if test "$am_compiler_list" = ""; then
19793      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19794   fi
19795   for depmode in $am_compiler_list; do
19796     # Setup a source with many dependencies, because some compilers
19797     # like to wrap large dependency lists on column 80 (with \), and
19798     # we should not choose a depcomp mode which is confused by this.
19799     #
19800     # We need to recreate these files for each test, as the compiler may
19801     # overwrite some of them when testing with obscure command lines.
19802     # This happens at least with the AIX C compiler.
19803     : > sub/conftest.c
19804     for i in 1 2 3 4 5 6; do
19805       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19806       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19807       # Solaris 8's {/usr,}/bin/sh.
19808       touch sub/conftst$i.h
19809     done
19810     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19811
19812     case $depmode in
19813     nosideeffect)
19814       # after this tag, mechanisms are not by side-effect, so they'll
19815       # only be used when explicitly requested
19816       if test "x$enable_dependency_tracking" = xyes; then
19817         continue
19818       else
19819         break
19820       fi
19821       ;;
19822     none) break ;;
19823     esac
19824     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19825     # mode.  It turns out that the SunPro C++ compiler does not properly
19826     # handle `-M -o', and we need to detect this.
19827     if depmode=$depmode \
19828        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19829        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19830        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19831          >/dev/null 2>conftest.err &&
19832        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19833        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19834        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19835       # icc doesn't choke on unknown options, it will just issue warnings
19836       # or remarks (even with -Werror).  So we grep stderr for any message
19837       # that says an option was ignored or not supported.
19838       # When given -MP, icc 7.0 and 7.1 complain thusly:
19839       #   icc: Command line warning: ignoring option '-M'; no argument required
19840       # The diagnosis changed in icc 8.0:
19841       #   icc: Command line remark: option '-MP' not supported
19842       if (grep 'ignoring option' conftest.err ||
19843           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19844         am_cv_CC_dependencies_compiler_type=$depmode
19845         break
19846       fi
19847     fi
19848   done
19849
19850   cd ..
19851   rm -rf conftest.dir
19852 else
19853   am_cv_CC_dependencies_compiler_type=none
19854 fi
19855
19856 fi
19857 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19858 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19859 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19860
19861
19862
19863 if
19864   test "x$enable_dependency_tracking" != xno \
19865   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19866   am__fastdepCC_TRUE=
19867   am__fastdepCC_FALSE='#'
19868 else
19869   am__fastdepCC_TRUE='#'
19870   am__fastdepCC_FALSE=
19871 fi
19872
19873
19874 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19875 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19876 # Just in case
19877 sleep 1
19878 echo timestamp > conftest.file
19879 # Do `set' in a subshell so we don't clobber the current shell's
19880 # arguments.  Must try -L first in case configure is actually a
19881 # symlink; some systems play weird games with the mod time of symlinks
19882 # (eg FreeBSD returns the mod time of the symlink's containing
19883 # directory).
19884 if (
19885    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19886    if test "$*" = "X"; then
19887       # -L didn't work.
19888       set X `ls -t $srcdir/configure conftest.file`
19889    fi
19890    rm -f conftest.file
19891    if test "$*" != "X $srcdir/configure conftest.file" \
19892       && test "$*" != "X conftest.file $srcdir/configure"; then
19893
19894       # If neither matched, then we have a broken ls.  This can happen
19895       # if, for instance, CONFIG_SHELL is bash and it inherits a
19896       # broken ls alias from the environment.  This has actually
19897       # happened.  Such a system could not be considered "sane".
19898       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19899 alias in your environment" >&5
19900 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19901 alias in your environment" >&2;}
19902    { (exit 1); exit 1; }; }
19903    fi
19904
19905    test "$2" = conftest.file
19906    )
19907 then
19908    # Ok.
19909    :
19910 else
19911    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19912 Check your system clock" >&5
19913 echo "$as_me: error: newly created file is older than distributed files!
19914 Check your system clock" >&2;}
19915    { (exit 1); exit 1; }; }
19916 fi
19917 echo "$as_me:$LINENO: result: yes" >&5
19918 echo "${ECHO_T}yes" >&6
19919 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19920 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19921 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19922 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19923   echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925   cat >conftest.make <<\_ACEOF
19926 all:
19927         @echo 'ac_maketemp="$(MAKE)"'
19928 _ACEOF
19929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19930 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19931 if test -n "$ac_maketemp"; then
19932   eval ac_cv_prog_make_${ac_make}_set=yes
19933 else
19934   eval ac_cv_prog_make_${ac_make}_set=no
19935 fi
19936 rm -f conftest.make
19937 fi
19938 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19939   echo "$as_me:$LINENO: result: yes" >&5
19940 echo "${ECHO_T}yes" >&6
19941   SET_MAKE=
19942 else
19943   echo "$as_me:$LINENO: result: no" >&5
19944 echo "${ECHO_T}no" >&6
19945   SET_MAKE="MAKE=${MAKE-make}"
19946 fi
19947
19948
19949 # Check architecture signature
19950 GRAS_ARCH
19951
19952 # Checks for header files.
19953 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19954 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19955 if test "${ac_cv_header_stdc+set}" = set; then
19956   echo $ECHO_N "(cached) $ECHO_C" >&6
19957 else
19958   cat >conftest.$ac_ext <<_ACEOF
19959 /* confdefs.h.  */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h.  */
19964 #include <stdlib.h>
19965 #include <stdarg.h>
19966 #include <string.h>
19967 #include <float.h>
19968
19969 int
19970 main ()
19971 {
19972
19973   ;
19974   return 0;
19975 }
19976 _ACEOF
19977 rm -f conftest.$ac_objext
19978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19979   (eval $ac_compile) 2>conftest.er1
19980   ac_status=$?
19981   grep -v '^ *+' conftest.er1 >conftest.err
19982   rm -f conftest.er1
19983   cat conftest.err >&5
19984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985   (exit $ac_status); } &&
19986          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988   (eval $ac_try) 2>&5
19989   ac_status=$?
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); }; } &&
19992          { ac_try='test -s conftest.$ac_objext'
19993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994   (eval $ac_try) 2>&5
19995   ac_status=$?
19996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); }; }; then
19998   ac_cv_header_stdc=yes
19999 else
20000   echo "$as_me: failed program was:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20002
20003 ac_cv_header_stdc=no
20004 fi
20005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20006
20007 if test $ac_cv_header_stdc = yes; then
20008   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20009   cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h.  */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h.  */
20015 #include <string.h>
20016
20017 _ACEOF
20018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20019   $EGREP "memchr" >/dev/null 2>&1; then
20020   :
20021 else
20022   ac_cv_header_stdc=no
20023 fi
20024 rm -f conftest*
20025
20026 fi
20027
20028 if test $ac_cv_header_stdc = yes; then
20029   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20030   cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h.  */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h.  */
20036 #include <stdlib.h>
20037
20038 _ACEOF
20039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20040   $EGREP "free" >/dev/null 2>&1; then
20041   :
20042 else
20043   ac_cv_header_stdc=no
20044 fi
20045 rm -f conftest*
20046
20047 fi
20048
20049 if test $ac_cv_header_stdc = yes; then
20050   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20051   if test "$cross_compiling" = yes; then
20052   :
20053 else
20054   cat >conftest.$ac_ext <<_ACEOF
20055 /* confdefs.h.  */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h.  */
20060 #include <ctype.h>
20061 #if ((' ' & 0x0FF) == 0x020)
20062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20064 #else
20065 # define ISLOWER(c) \
20066                    (('a' <= (c) && (c) <= 'i') \
20067                      || ('j' <= (c) && (c) <= 'r') \
20068                      || ('s' <= (c) && (c) <= 'z'))
20069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20070 #endif
20071
20072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20073 int
20074 main ()
20075 {
20076   int i;
20077   for (i = 0; i < 256; i++)
20078     if (XOR (islower (i), ISLOWER (i))
20079         || toupper (i) != TOUPPER (i))
20080       exit(2);
20081   exit (0);
20082 }
20083 _ACEOF
20084 rm -f conftest$ac_exeext
20085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20086   (eval $ac_link) 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091   (eval $ac_try) 2>&5
20092   ac_status=$?
20093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094   (exit $ac_status); }; }; then
20095   :
20096 else
20097   echo "$as_me: program exited with status $ac_status" >&5
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20100
20101 ( exit $ac_status )
20102 ac_cv_header_stdc=no
20103 fi
20104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20105 fi
20106 fi
20107 fi
20108 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20109 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20110 if test $ac_cv_header_stdc = yes; then
20111
20112 cat >>confdefs.h <<\_ACEOF
20113 #define STDC_HEADERS 1
20114 _ACEOF
20115
20116 fi
20117
20118
20119
20120
20121
20122 for ac_header in stddef.h stdlib.h string.h unistd.h
20123 do
20124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20126   echo "$as_me:$LINENO: checking for $ac_header" >&5
20127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20129   echo $ECHO_N "(cached) $ECHO_C" >&6
20130 fi
20131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20133 else
20134   # Is the header compilable?
20135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
20144 #include <$ac_header>
20145 _ACEOF
20146 rm -f conftest.$ac_objext
20147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20148   (eval $ac_compile) 2>conftest.er1
20149   ac_status=$?
20150   grep -v '^ *+' conftest.er1 >conftest.err
20151   rm -f conftest.er1
20152   cat conftest.err >&5
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); } &&
20155          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157   (eval $ac_try) 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; } &&
20161          { ac_try='test -s conftest.$ac_objext'
20162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163   (eval $ac_try) 2>&5
20164   ac_status=$?
20165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166   (exit $ac_status); }; }; then
20167   ac_header_compiler=yes
20168 else
20169   echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20171
20172 ac_header_compiler=no
20173 fi
20174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20176 echo "${ECHO_T}$ac_header_compiler" >&6
20177
20178 # Is the header present?
20179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20181 cat >conftest.$ac_ext <<_ACEOF
20182 /* confdefs.h.  */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h.  */
20187 #include <$ac_header>
20188 _ACEOF
20189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20190   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20191   ac_status=$?
20192   grep -v '^ *+' conftest.er1 >conftest.err
20193   rm -f conftest.er1
20194   cat conftest.err >&5
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); } >/dev/null; then
20197   if test -s conftest.err; then
20198     ac_cpp_err=$ac_c_preproc_warn_flag
20199     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20200   else
20201     ac_cpp_err=
20202   fi
20203 else
20204   ac_cpp_err=yes
20205 fi
20206 if test -z "$ac_cpp_err"; then
20207   ac_header_preproc=yes
20208 else
20209   echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20211
20212   ac_header_preproc=no
20213 fi
20214 rm -f conftest.err conftest.$ac_ext
20215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20216 echo "${ECHO_T}$ac_header_preproc" >&6
20217
20218 # So?  What about this header?
20219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20220   yes:no: )
20221     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20225     ac_header_preproc=yes
20226     ;;
20227   no:yes:* )
20228     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20230     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20231 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20232     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20234     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20235 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20238     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20240     (
20241       cat <<\_ASBOX
20242 ## ----------------------------------------- ##
20243 ## Report this to martin.quinson@ens-lyon.fr ##
20244 ## ----------------------------------------- ##
20245 _ASBOX
20246     ) |
20247       sed "s/^/$as_me: WARNING:     /" >&2
20248     ;;
20249 esac
20250 echo "$as_me:$LINENO: checking for $ac_header" >&5
20251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20253   echo $ECHO_N "(cached) $ECHO_C" >&6
20254 else
20255   eval "$as_ac_Header=\$ac_header_preproc"
20256 fi
20257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20259
20260 fi
20261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20262   cat >>confdefs.h <<_ACEOF
20263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20264 _ACEOF
20265
20266 fi
20267
20268 done
20269
20270
20271 # Checks for typedefs, structures, and compiler characteristics.
20272 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20273 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20274 if test "${ac_cv_c_const+set}" = set; then
20275   echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277   cat >conftest.$ac_ext <<_ACEOF
20278 /* confdefs.h.  */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h.  */
20283
20284 int
20285 main ()
20286 {
20287 /* FIXME: Include the comments suggested by Paul. */
20288 #ifndef __cplusplus
20289   /* Ultrix mips cc rejects this.  */
20290   typedef int charset[2];
20291   const charset x;
20292   /* SunOS 4.1.1 cc rejects this.  */
20293   char const *const *ccp;
20294   char **p;
20295   /* NEC SVR4.0.2 mips cc rejects this.  */
20296   struct point {int x, y;};
20297   static struct point const zero = {0,0};
20298   /* AIX XL C 1.02.0.0 rejects this.
20299      It does not let you subtract one const X* pointer from another in
20300      an arm of an if-expression whose if-part is not a constant
20301      expression */
20302   const char *g = "string";
20303   ccp = &g + (g ? g-g : 0);
20304   /* HPUX 7.0 cc rejects these. */
20305   ++ccp;
20306   p = (char**) ccp;
20307   ccp = (char const *const *) p;
20308   { /* SCO 3.2v4 cc rejects this.  */
20309     char *t;
20310     char const *s = 0 ? (char *) 0 : (char const *) 0;
20311
20312     *t++ = 0;
20313   }
20314   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20315     int x[] = {25, 17};
20316     const int *foo = &x[0];
20317     ++foo;
20318   }
20319   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20320     typedef const int *iptr;
20321     iptr p = 0;
20322     ++p;
20323   }
20324   { /* AIX XL C 1.02.0.0 rejects this saying
20325        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20326     struct s { int j; const int *ap[3]; };
20327     struct s *b; b->j = 5;
20328   }
20329   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20330     const int foo = 10;
20331   }
20332 #endif
20333
20334   ;
20335   return 0;
20336 }
20337 _ACEOF
20338 rm -f conftest.$ac_objext
20339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20340   (eval $ac_compile) 2>conftest.er1
20341   ac_status=$?
20342   grep -v '^ *+' conftest.er1 >conftest.err
20343   rm -f conftest.er1
20344   cat conftest.err >&5
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); } &&
20347          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349   (eval $ac_try) 2>&5
20350   ac_status=$?
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); }; } &&
20353          { ac_try='test -s conftest.$ac_objext'
20354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355   (eval $ac_try) 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; }; then
20359   ac_cv_c_const=yes
20360 else
20361   echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20363
20364 ac_cv_c_const=no
20365 fi
20366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20367 fi
20368 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20369 echo "${ECHO_T}$ac_cv_c_const" >&6
20370 if test $ac_cv_c_const = no; then
20371
20372 cat >>confdefs.h <<\_ACEOF
20373 #define const
20374 _ACEOF
20375
20376 fi
20377
20378 echo "$as_me:$LINENO: checking for inline" >&5
20379 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20380 if test "${ac_cv_c_inline+set}" = set; then
20381   echo $ECHO_N "(cached) $ECHO_C" >&6
20382 else
20383   ac_cv_c_inline=no
20384 for ac_kw in inline __inline__ __inline; do
20385   cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h.  */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h.  */
20391 #ifndef __cplusplus
20392 typedef int foo_t;
20393 static $ac_kw foo_t static_foo () {return 0; }
20394 $ac_kw foo_t foo () {return 0; }
20395 #endif
20396
20397 _ACEOF
20398 rm -f conftest.$ac_objext
20399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20400   (eval $ac_compile) 2>conftest.er1
20401   ac_status=$?
20402   grep -v '^ *+' conftest.er1 >conftest.err
20403   rm -f conftest.er1
20404   cat conftest.err >&5
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); } &&
20407          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409   (eval $ac_try) 2>&5
20410   ac_status=$?
20411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412   (exit $ac_status); }; } &&
20413          { ac_try='test -s conftest.$ac_objext'
20414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415   (eval $ac_try) 2>&5
20416   ac_status=$?
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); }; }; then
20419   ac_cv_c_inline=$ac_kw; break
20420 else
20421   echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20423
20424 fi
20425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20426 done
20427
20428 fi
20429 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20430 echo "${ECHO_T}$ac_cv_c_inline" >&6
20431
20432
20433 case $ac_cv_c_inline in
20434   inline | yes) ;;
20435   *)
20436     case $ac_cv_c_inline in
20437       no) ac_val=;;
20438       *) ac_val=$ac_cv_c_inline;;
20439     esac
20440     cat >>confdefs.h <<_ACEOF
20441 #ifndef __cplusplus
20442 #define inline $ac_val
20443 #endif
20444 _ACEOF
20445     ;;
20446 esac
20447
20448 echo "$as_me:$LINENO: checking for size_t" >&5
20449 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20450 if test "${ac_cv_type_size_t+set}" = set; then
20451   echo $ECHO_N "(cached) $ECHO_C" >&6
20452 else
20453   cat >conftest.$ac_ext <<_ACEOF
20454 /* confdefs.h.  */
20455 _ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h.  */
20459 $ac_includes_default
20460 int
20461 main ()
20462 {
20463 if ((size_t *) 0)
20464   return 0;
20465 if (sizeof (size_t))
20466   return 0;
20467   ;
20468   return 0;
20469 }
20470 _ACEOF
20471 rm -f conftest.$ac_objext
20472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20473   (eval $ac_compile) 2>conftest.er1
20474   ac_status=$?
20475   grep -v '^ *+' conftest.er1 >conftest.err
20476   rm -f conftest.er1
20477   cat conftest.err >&5
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); } &&
20480          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482   (eval $ac_try) 2>&5
20483   ac_status=$?
20484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485   (exit $ac_status); }; } &&
20486          { ac_try='test -s conftest.$ac_objext'
20487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488   (eval $ac_try) 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); }; }; then
20492   ac_cv_type_size_t=yes
20493 else
20494   echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 ac_cv_type_size_t=no
20498 fi
20499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20500 fi
20501 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20502 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20503 if test $ac_cv_type_size_t = yes; then
20504   :
20505 else
20506
20507 cat >>confdefs.h <<_ACEOF
20508 #define size_t unsigned
20509 _ACEOF
20510
20511 fi
20512
20513
20514 # Checks for library functions.
20515
20516 for ac_header in stdlib.h
20517 do
20518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20520   echo "$as_me:$LINENO: checking for $ac_header" >&5
20521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20523   echo $ECHO_N "(cached) $ECHO_C" >&6
20524 fi
20525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20527 else
20528   # Is the header compilable?
20529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20531 cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537 $ac_includes_default
20538 #include <$ac_header>
20539 _ACEOF
20540 rm -f conftest.$ac_objext
20541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20542   (eval $ac_compile) 2>conftest.er1
20543   ac_status=$?
20544   grep -v '^ *+' conftest.er1 >conftest.err
20545   rm -f conftest.er1
20546   cat conftest.err >&5
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } &&
20549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551   (eval $ac_try) 2>&5
20552   ac_status=$?
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); }; } &&
20555          { ac_try='test -s conftest.$ac_objext'
20556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557   (eval $ac_try) 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); }; }; then
20561   ac_header_compiler=yes
20562 else
20563   echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566 ac_header_compiler=no
20567 fi
20568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20570 echo "${ECHO_T}$ac_header_compiler" >&6
20571
20572 # Is the header present?
20573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20575 cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h.  */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h.  */
20581 #include <$ac_header>
20582 _ACEOF
20583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20585   ac_status=$?
20586   grep -v '^ *+' conftest.er1 >conftest.err
20587   rm -f conftest.er1
20588   cat conftest.err >&5
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); } >/dev/null; then
20591   if test -s conftest.err; then
20592     ac_cpp_err=$ac_c_preproc_warn_flag
20593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20594   else
20595     ac_cpp_err=
20596   fi
20597 else
20598   ac_cpp_err=yes
20599 fi
20600 if test -z "$ac_cpp_err"; then
20601   ac_header_preproc=yes
20602 else
20603   echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20605
20606   ac_header_preproc=no
20607 fi
20608 rm -f conftest.err conftest.$ac_ext
20609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20610 echo "${ECHO_T}$ac_header_preproc" >&6
20611
20612 # So?  What about this header?
20613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20614   yes:no: )
20615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20619     ac_header_preproc=yes
20620     ;;
20621   no:yes:* )
20622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20634     (
20635       cat <<\_ASBOX
20636 ## ----------------------------------------- ##
20637 ## Report this to martin.quinson@ens-lyon.fr ##
20638 ## ----------------------------------------- ##
20639 _ASBOX
20640     ) |
20641       sed "s/^/$as_me: WARNING:     /" >&2
20642     ;;
20643 esac
20644 echo "$as_me:$LINENO: checking for $ac_header" >&5
20645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20647   echo $ECHO_N "(cached) $ECHO_C" >&6
20648 else
20649   eval "$as_ac_Header=\$ac_header_preproc"
20650 fi
20651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20653
20654 fi
20655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20656   cat >>confdefs.h <<_ACEOF
20657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20658 _ACEOF
20659
20660 fi
20661
20662 done
20663
20664 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20665 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
20666 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20667   echo $ECHO_N "(cached) $ECHO_C" >&6
20668 else
20669   if test "$cross_compiling" = yes; then
20670   ac_cv_func_malloc_0_nonnull=no
20671 else
20672   cat >conftest.$ac_ext <<_ACEOF
20673 /* confdefs.h.  */
20674 _ACEOF
20675 cat confdefs.h >>conftest.$ac_ext
20676 cat >>conftest.$ac_ext <<_ACEOF
20677 /* end confdefs.h.  */
20678 #if STDC_HEADERS || HAVE_STDLIB_H
20679 # include <stdlib.h>
20680 #else
20681 char *malloc ();
20682 #endif
20683
20684 int
20685 main ()
20686 {
20687 exit (malloc (0) ? 0 : 1);
20688   ;
20689   return 0;
20690 }
20691 _ACEOF
20692 rm -f conftest$ac_exeext
20693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20694   (eval $ac_link) 2>&5
20695   ac_status=$?
20696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699   (eval $ac_try) 2>&5
20700   ac_status=$?
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); }; }; then
20703   ac_cv_func_malloc_0_nonnull=yes
20704 else
20705   echo "$as_me: program exited with status $ac_status" >&5
20706 echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20708
20709 ( exit $ac_status )
20710 ac_cv_func_malloc_0_nonnull=no
20711 fi
20712 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20713 fi
20714 fi
20715 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20716 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
20717 if test $ac_cv_func_malloc_0_nonnull = yes; then
20718
20719 cat >>confdefs.h <<\_ACEOF
20720 #define HAVE_MALLOC 1
20721 _ACEOF
20722
20723 else
20724   cat >>confdefs.h <<\_ACEOF
20725 #define HAVE_MALLOC 0
20726 _ACEOF
20727
20728    case $LIBOBJS in
20729     "malloc.$ac_objext"   | \
20730   *" malloc.$ac_objext"   | \
20731     "malloc.$ac_objext "* | \
20732   *" malloc.$ac_objext "* ) ;;
20733   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
20734 esac
20735
20736
20737 cat >>confdefs.h <<\_ACEOF
20738 #define malloc rpl_malloc
20739 _ACEOF
20740
20741 fi
20742
20743
20744
20745 echo "$as_me:$LINENO: checking for working memcmp" >&5
20746 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20747 if test "${ac_cv_func_memcmp_working+set}" = set; then
20748   echo $ECHO_N "(cached) $ECHO_C" >&6
20749 else
20750   if test "$cross_compiling" = yes; then
20751   ac_cv_func_memcmp_working=no
20752 else
20753   cat >conftest.$ac_ext <<_ACEOF
20754 /* confdefs.h.  */
20755 _ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h.  */
20759 $ac_includes_default
20760 int
20761 main ()
20762 {
20763
20764   /* Some versions of memcmp are not 8-bit clean.  */
20765   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20766   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20767     exit (1);
20768
20769   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20770      or more and with at least one buffer not starting on a 4-byte boundary.
20771      William Lewis provided this test program.   */
20772   {
20773     char foo[21];
20774     char bar[21];
20775     int i;
20776     for (i = 0; i < 4; i++)
20777       {
20778         char *a = foo + i;
20779         char *b = bar + i;
20780         strcpy (a, "--------01111111");
20781         strcpy (b, "--------10000000");
20782         if (memcmp (a, b, 16) >= 0)
20783           exit (1);
20784       }
20785     exit (0);
20786   }
20787
20788   ;
20789   return 0;
20790 }
20791 _ACEOF
20792 rm -f conftest$ac_exeext
20793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20794   (eval $ac_link) 2>&5
20795   ac_status=$?
20796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799   (eval $ac_try) 2>&5
20800   ac_status=$?
20801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802   (exit $ac_status); }; }; then
20803   ac_cv_func_memcmp_working=yes
20804 else
20805   echo "$as_me: program exited with status $ac_status" >&5
20806 echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20808
20809 ( exit $ac_status )
20810 ac_cv_func_memcmp_working=no
20811 fi
20812 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20813 fi
20814 fi
20815 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20816 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
20817 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
20818     "memcmp.$ac_objext"   | \
20819   *" memcmp.$ac_objext"   | \
20820     "memcmp.$ac_objext "* | \
20821   *" memcmp.$ac_objext "* ) ;;
20822   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
20823 esac
20824
20825
20826
20827
20828
20829
20830 for ac_func in memset strchr strerror usleep
20831 do
20832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20833 echo "$as_me:$LINENO: checking for $ac_func" >&5
20834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20835 if eval "test \"\${$as_ac_var+set}\" = set"; then
20836   echo $ECHO_N "(cached) $ECHO_C" >&6
20837 else
20838   cat >conftest.$ac_ext <<_ACEOF
20839 /* confdefs.h.  */
20840 _ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h.  */
20844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20846 #define $ac_func innocuous_$ac_func
20847
20848 /* System header to define __stub macros and hopefully few prototypes,
20849     which can conflict with char $ac_func (); below.
20850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20851     <limits.h> exists even on freestanding compilers.  */
20852
20853 #ifdef __STDC__
20854 # include <limits.h>
20855 #else
20856 # include <assert.h>
20857 #endif
20858
20859 #undef $ac_func
20860
20861 /* Override any gcc2 internal prototype to avoid an error.  */
20862 #ifdef __cplusplus
20863 extern "C"
20864 {
20865 #endif
20866 /* We use char because int might match the return type of a gcc2
20867    builtin and then its argument prototype would still apply.  */
20868 char $ac_func ();
20869 /* The GNU C library defines this for functions which it implements
20870     to always fail with ENOSYS.  Some functions are actually named
20871     something starting with __ and the normal name is an alias.  */
20872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20873 choke me
20874 #else
20875 char (*f) () = $ac_func;
20876 #endif
20877 #ifdef __cplusplus
20878 }
20879 #endif
20880
20881 int
20882 main ()
20883 {
20884 return f != $ac_func;
20885   ;
20886   return 0;
20887 }
20888 _ACEOF
20889 rm -f conftest.$ac_objext conftest$ac_exeext
20890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20891   (eval $ac_link) 2>conftest.er1
20892   ac_status=$?
20893   grep -v '^ *+' conftest.er1 >conftest.err
20894   rm -f conftest.er1
20895   cat conftest.err >&5
20896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897   (exit $ac_status); } &&
20898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900   (eval $ac_try) 2>&5
20901   ac_status=$?
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); }; } &&
20904          { ac_try='test -s conftest$ac_exeext'
20905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906   (eval $ac_try) 2>&5
20907   ac_status=$?
20908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909   (exit $ac_status); }; }; then
20910   eval "$as_ac_var=yes"
20911 else
20912   echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20914
20915 eval "$as_ac_var=no"
20916 fi
20917 rm -f conftest.err conftest.$ac_objext \
20918       conftest$ac_exeext conftest.$ac_ext
20919 fi
20920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20922 if test `eval echo '${'$as_ac_var'}'` = yes; then
20923   cat >>confdefs.h <<_ACEOF
20924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20925 _ACEOF
20926
20927 fi
20928 done
20929
20930
20931 # Can we rebuild the documentation?
20932 GNOME_GTKDOC_CHECK
20933
20934 ACI_PACKAGE_SAVED(XML,XML library (version XML2),xml2-config,,,:)
20935 ACI_PACKAGE(SimGrid,the SimGrid simulator,SG_init,-lsimgrid,simgrid.h)
20936
20937
20938 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
20939 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
20940     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
20941 if test "${enable_maintainer_mode+set}" = set; then
20942   enableval="$enable_maintainer_mode"
20943   USE_MAINTAINER_MODE=$enableval
20944 else
20945   USE_MAINTAINER_MODE=no
20946 fi;
20947   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
20948 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20949
20950
20951 if test $USE_MAINTAINER_MODE = yes; then
20952   MAINTAINER_MODE_TRUE=
20953   MAINTAINER_MODE_FALSE='#'
20954 else
20955   MAINTAINER_MODE_TRUE='#'
20956   MAINTAINER_MODE_FALSE=
20957 fi
20958
20959   MAINT=$MAINTAINER_MODE_TRUE
20960
20961
20962 if test x$USE_MAINTAINER_MODE = xyes
20963 then
20964    GNOME_COMPILE_WARNINGS(yes)
20965 fi
20966
20967
20968
20969
20970
20971 # Extract the first word of "bash", so it can be a program name with args.
20972 set dummy bash; ac_word=$2
20973 echo "$as_me:$LINENO: checking for $ac_word" >&5
20974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20975 if test "${ac_cv_prog_BASH+set}" = set; then
20976   echo $ECHO_N "(cached) $ECHO_C" >&6
20977 else
20978   if test -n "$BASH"; then
20979   ac_cv_prog_BASH="$BASH" # Let the user override the test.
20980 else
20981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20982 for as_dir in $PATH
20983 do
20984   IFS=$as_save_IFS
20985   test -z "$as_dir" && as_dir=.
20986   for ac_exec_ext in '' $ac_executable_extensions; do
20987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20988     ac_cv_prog_BASH="`which bash`"
20989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20990     break 2
20991   fi
20992 done
20993 done
20994
20995   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
20996 fi
20997 fi
20998 BASH=$ac_cv_prog_BASH
20999 if test -n "$BASH"; then
21000   echo "$as_me:$LINENO: result: $BASH" >&5
21001 echo "${ECHO_T}$BASH" >&6
21002 else
21003   echo "$as_me:$LINENO: result: no" >&5
21004 echo "${ECHO_T}no" >&6
21005 fi
21006
21007 WARNING="This file is generated, do not edit"
21008
21009
21010                                                                                                                                                                 ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/include/modules/Makefile src/base/Makefile src/base/Tests/Makefile src/base/Tests/run_tests src/base/Tests/trp_tcp_usage src/base/Tests/trp_file_usage src/modules/Makefile src/examples/Makefile src/examples/ping/Makefile src/examples/bandwidth/Makefile src/examples/saturate/Makefile src/examples/alnem/Makefile doc/Makefile"
21011
21012
21013 cat >confcache <<\_ACEOF
21014 # This file is a shell script that caches the results of configure
21015 # tests run on this system so they can be shared between configure
21016 # scripts and configure runs, see configure's option --config-cache.
21017 # It is not useful on other systems.  If it contains results you don't
21018 # want to keep, you may remove or edit it.
21019 #
21020 # config.status only pays attention to the cache file if you give it
21021 # the --recheck option to rerun configure.
21022 #
21023 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21024 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21025 # following values.
21026
21027 _ACEOF
21028
21029 # The following way of writing the cache mishandles newlines in values,
21030 # but we know of no workaround that is simple, portable, and efficient.
21031 # So, don't put newlines in cache variables' values.
21032 # Ultrix sh set writes to stderr and can't be redirected directly,
21033 # and sets the high bit in the cache file unless we assign to the vars.
21034 {
21035   (set) 2>&1 |
21036     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21037     *ac_space=\ *)
21038       # `set' does not quote correctly, so add quotes (double-quote
21039       # substitution turns \\\\ into \\, and sed turns \\ into \).
21040       sed -n \
21041         "s/'/'\\\\''/g;
21042           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21043       ;;
21044     *)
21045       # `set' quotes correctly as required by POSIX, so do not add quotes.
21046       sed -n \
21047         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21048       ;;
21049     esac;
21050 } |
21051   sed '
21052      t clear
21053      : clear
21054      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21055      t end
21056      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21057      : end' >>confcache
21058 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21059   if test -w $cache_file; then
21060     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21061     cat confcache >$cache_file
21062   else
21063     echo "not updating unwritable cache $cache_file"
21064   fi
21065 fi
21066 rm -f confcache
21067
21068 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21069 # Let make expand exec_prefix.
21070 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21071
21072 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21073 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21074 # trailing colons and then remove the whole line if VPATH becomes empty
21075 # (actually we leave an empty line to preserve line numbers).
21076 if test "x$srcdir" = x.; then
21077   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21078 s/:*\$(srcdir):*/:/;
21079 s/:*\${srcdir}:*/:/;
21080 s/:*@srcdir@:*/:/;
21081 s/^\([^=]*=[     ]*\):*/\1/;
21082 s/:*$//;
21083 s/^[^=]*=[       ]*$//;
21084 }'
21085 fi
21086
21087 DEFS=-DHAVE_CONFIG_H
21088
21089 ac_libobjs=
21090 ac_ltlibobjs=
21091 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21092   # 1. Remove the extension, and $U if already installed.
21093   ac_i=`echo "$ac_i" |
21094          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21095   # 2. Add them.
21096   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21097   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21098 done
21099 LIBOBJS=$ac_libobjs
21100
21101 LTLIBOBJS=$ac_ltlibobjs
21102
21103
21104 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21105   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21106 Usually this means the macro was only invoked conditionally." >&5
21107 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21108 Usually this means the macro was only invoked conditionally." >&2;}
21109    { (exit 1); exit 1; }; }
21110 fi
21111 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21112   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21113 Usually this means the macro was only invoked conditionally." >&5
21114 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21115 Usually this means the macro was only invoked conditionally." >&2;}
21116    { (exit 1); exit 1; }; }
21117 fi
21118 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21119   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21120 Usually this means the macro was only invoked conditionally." >&5
21121 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21122 Usually this means the macro was only invoked conditionally." >&2;}
21123    { (exit 1); exit 1; }; }
21124 fi
21125 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21126   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21127 Usually this means the macro was only invoked conditionally." >&5
21128 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21129 Usually this means the macro was only invoked conditionally." >&2;}
21130    { (exit 1); exit 1; }; }
21131 fi
21132 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21133   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21134 Usually this means the macro was only invoked conditionally." >&5
21135 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21136 Usually this means the macro was only invoked conditionally." >&2;}
21137    { (exit 1); exit 1; }; }
21138 fi
21139
21140 : ${CONFIG_STATUS=./config.status}
21141 ac_clean_files_save=$ac_clean_files
21142 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21143 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21144 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21145 cat >$CONFIG_STATUS <<_ACEOF
21146 #! $SHELL
21147 # Generated by $as_me.
21148 # Run this file to recreate the current configuration.
21149 # Compiler output produced by configure, useful for debugging
21150 # configure, is in config.log if it exists.
21151
21152 debug=false
21153 ac_cs_recheck=false
21154 ac_cs_silent=false
21155 SHELL=\${CONFIG_SHELL-$SHELL}
21156 _ACEOF
21157
21158 cat >>$CONFIG_STATUS <<\_ACEOF
21159 ## --------------------- ##
21160 ## M4sh Initialization.  ##
21161 ## --------------------- ##
21162
21163 # Be Bourne compatible
21164 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21165   emulate sh
21166   NULLCMD=:
21167   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21168   # is contrary to our usage.  Disable this feature.
21169   alias -g '${1+"$@"}'='"$@"'
21170 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21171   set -o posix
21172 fi
21173 DUALCASE=1; export DUALCASE # for MKS sh
21174
21175 # Support unset when possible.
21176 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21177   as_unset=unset
21178 else
21179   as_unset=false
21180 fi
21181
21182
21183 # Work around bugs in pre-3.0 UWIN ksh.
21184 $as_unset ENV MAIL MAILPATH
21185 PS1='$ '
21186 PS2='> '
21187 PS4='+ '
21188
21189 # NLS nuisances.
21190 for as_var in \
21191   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21192   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21193   LC_TELEPHONE LC_TIME
21194 do
21195   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21196     eval $as_var=C; export $as_var
21197   else
21198     $as_unset $as_var
21199   fi
21200 done
21201
21202 # Required to use basename.
21203 if expr a : '\(a\)' >/dev/null 2>&1; then
21204   as_expr=expr
21205 else
21206   as_expr=false
21207 fi
21208
21209 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21210   as_basename=basename
21211 else
21212   as_basename=false
21213 fi
21214
21215
21216 # Name of the executable.
21217 as_me=`$as_basename "$0" ||
21218 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21219          X"$0" : 'X\(//\)$' \| \
21220          X"$0" : 'X\(/\)$' \| \
21221          .     : '\(.\)' 2>/dev/null ||
21222 echo X/"$0" |
21223     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21224           /^X\/\(\/\/\)$/{ s//\1/; q; }
21225           /^X\/\(\/\).*/{ s//\1/; q; }
21226           s/.*/./; q'`
21227
21228
21229 # PATH needs CR, and LINENO needs CR and PATH.
21230 # Avoid depending upon Character Ranges.
21231 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21232 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21233 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21234 as_cr_digits='0123456789'
21235 as_cr_alnum=$as_cr_Letters$as_cr_digits
21236
21237 # The user is always right.
21238 if test "${PATH_SEPARATOR+set}" != set; then
21239   echo "#! /bin/sh" >conf$$.sh
21240   echo  "exit 0"   >>conf$$.sh
21241   chmod +x conf$$.sh
21242   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21243     PATH_SEPARATOR=';'
21244   else
21245     PATH_SEPARATOR=:
21246   fi
21247   rm -f conf$$.sh
21248 fi
21249
21250
21251   as_lineno_1=$LINENO
21252   as_lineno_2=$LINENO
21253   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21254   test "x$as_lineno_1" != "x$as_lineno_2" &&
21255   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21256   # Find who we are.  Look in the path if we contain no path at all
21257   # relative or not.
21258   case $0 in
21259     *[\\/]* ) as_myself=$0 ;;
21260     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21261 for as_dir in $PATH
21262 do
21263   IFS=$as_save_IFS
21264   test -z "$as_dir" && as_dir=.
21265   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21266 done
21267
21268        ;;
21269   esac
21270   # We did not find ourselves, most probably we were run as `sh COMMAND'
21271   # in which case we are not to be found in the path.
21272   if test "x$as_myself" = x; then
21273     as_myself=$0
21274   fi
21275   if test ! -f "$as_myself"; then
21276     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21277 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21278    { (exit 1); exit 1; }; }
21279   fi
21280   case $CONFIG_SHELL in
21281   '')
21282     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21283 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21284 do
21285   IFS=$as_save_IFS
21286   test -z "$as_dir" && as_dir=.
21287   for as_base in sh bash ksh sh5; do
21288          case $as_dir in
21289          /*)
21290            if ("$as_dir/$as_base" -c '
21291   as_lineno_1=$LINENO
21292   as_lineno_2=$LINENO
21293   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21294   test "x$as_lineno_1" != "x$as_lineno_2" &&
21295   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21296              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21297              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21298              CONFIG_SHELL=$as_dir/$as_base
21299              export CONFIG_SHELL
21300              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21301            fi;;
21302          esac
21303        done
21304 done
21305 ;;
21306   esac
21307
21308   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21309   # uniformly replaced by the line number.  The first 'sed' inserts a
21310   # line-number line before each line; the second 'sed' does the real
21311   # work.  The second script uses 'N' to pair each line-number line
21312   # with the numbered line, and appends trailing '-' during
21313   # substitution so that $LINENO is not a special case at line end.
21314   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21315   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21316   sed '=' <$as_myself |
21317     sed '
21318       N
21319       s,$,-,
21320       : loop
21321       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21322       t loop
21323       s,-$,,
21324       s,^['$as_cr_digits']*\n,,
21325     ' >$as_me.lineno &&
21326   chmod +x $as_me.lineno ||
21327     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21328 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21329    { (exit 1); exit 1; }; }
21330
21331   # Don't try to exec as it changes $[0], causing all sort of problems
21332   # (the dirname of $[0] is not the place where we might find the
21333   # original and so on.  Autoconf is especially sensible to this).
21334   . ./$as_me.lineno
21335   # Exit status is that of the last command.
21336   exit
21337 }
21338
21339
21340 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21341   *c*,-n*) ECHO_N= ECHO_C='
21342 ' ECHO_T='      ' ;;
21343   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21344   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21345 esac
21346
21347 if expr a : '\(a\)' >/dev/null 2>&1; then
21348   as_expr=expr
21349 else
21350   as_expr=false
21351 fi
21352
21353 rm -f conf$$ conf$$.exe conf$$.file
21354 echo >conf$$.file
21355 if ln -s conf$$.file conf$$ 2>/dev/null; then
21356   # We could just check for DJGPP; but this test a) works b) is more generic
21357   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21358   if test -f conf$$.exe; then
21359     # Don't use ln at all; we don't have any links
21360     as_ln_s='cp -p'
21361   else
21362     as_ln_s='ln -s'
21363   fi
21364 elif ln conf$$.file conf$$ 2>/dev/null; then
21365   as_ln_s=ln
21366 else
21367   as_ln_s='cp -p'
21368 fi
21369 rm -f conf$$ conf$$.exe conf$$.file
21370
21371 if mkdir -p . 2>/dev/null; then
21372   as_mkdir_p=:
21373 else
21374   test -d ./-p && rmdir ./-p
21375   as_mkdir_p=false
21376 fi
21377
21378 as_executable_p="test -f"
21379
21380 # Sed expression to map a string onto a valid CPP name.
21381 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21382
21383 # Sed expression to map a string onto a valid variable name.
21384 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21385
21386
21387 # IFS
21388 # We need space, tab and new line, in precisely that order.
21389 as_nl='
21390 '
21391 IFS="   $as_nl"
21392
21393 # CDPATH.
21394 $as_unset CDPATH
21395
21396 exec 6>&1
21397
21398 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21399 # report actual input values of CONFIG_FILES etc. instead of their
21400 # values after options handling.  Logging --version etc. is OK.
21401 exec 5>>config.log
21402 {
21403   echo
21404   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21405 ## Running $as_me. ##
21406 _ASBOX
21407 } >&5
21408 cat >&5 <<_CSEOF
21409
21410 This file was extended by GRAS $as_me 0.0.040304, which was
21411 generated by GNU Autoconf 2.59.  Invocation command line was
21412
21413   CONFIG_FILES    = $CONFIG_FILES
21414   CONFIG_HEADERS  = $CONFIG_HEADERS
21415   CONFIG_LINKS    = $CONFIG_LINKS
21416   CONFIG_COMMANDS = $CONFIG_COMMANDS
21417   $ $0 $@
21418
21419 _CSEOF
21420 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21421 echo >&5
21422 _ACEOF
21423
21424 # Files that config.status was made for.
21425 if test -n "$ac_config_files"; then
21426   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21427 fi
21428
21429 if test -n "$ac_config_headers"; then
21430   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21431 fi
21432
21433 if test -n "$ac_config_links"; then
21434   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21435 fi
21436
21437 if test -n "$ac_config_commands"; then
21438   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21439 fi
21440
21441 cat >>$CONFIG_STATUS <<\_ACEOF
21442
21443 ac_cs_usage="\
21444 \`$as_me' instantiates files from templates according to the
21445 current configuration.
21446
21447 Usage: $0 [OPTIONS] [FILE]...
21448
21449   -h, --help       print this help, then exit
21450   -V, --version    print version number, then exit
21451   -q, --quiet      do not print progress messages
21452   -d, --debug      don't remove temporary files
21453       --recheck    update $as_me by reconfiguring in the same conditions
21454   --file=FILE[:TEMPLATE]
21455                    instantiate the configuration file FILE
21456   --header=FILE[:TEMPLATE]
21457                    instantiate the configuration header FILE
21458
21459 Configuration files:
21460 $config_files
21461
21462 Configuration headers:
21463 $config_headers
21464
21465 Configuration commands:
21466 $config_commands
21467
21468 Report bugs to <bug-autoconf@gnu.org>."
21469 _ACEOF
21470
21471 cat >>$CONFIG_STATUS <<_ACEOF
21472 ac_cs_version="\\
21473 GRAS config.status 0.0.040304
21474 configured by $0, generated by GNU Autoconf 2.59,
21475   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21476
21477 Copyright (C) 2003 Free Software Foundation, Inc.
21478 This config.status script is free software; the Free Software Foundation
21479 gives unlimited permission to copy, distribute and modify it."
21480 srcdir=$srcdir
21481 INSTALL="$INSTALL"
21482 _ACEOF
21483
21484 cat >>$CONFIG_STATUS <<\_ACEOF
21485 # If no file are specified by the user, then we need to provide default
21486 # value.  By we need to know if files were specified by the user.
21487 ac_need_defaults=:
21488 while test $# != 0
21489 do
21490   case $1 in
21491   --*=*)
21492     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21493     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21494     ac_shift=:
21495     ;;
21496   -*)
21497     ac_option=$1
21498     ac_optarg=$2
21499     ac_shift=shift
21500     ;;
21501   *) # This is not an option, so the user has probably given explicit
21502      # arguments.
21503      ac_option=$1
21504      ac_need_defaults=false;;
21505   esac
21506
21507   case $ac_option in
21508   # Handling of the options.
21509 _ACEOF
21510 cat >>$CONFIG_STATUS <<\_ACEOF
21511   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21512     ac_cs_recheck=: ;;
21513   --version | --vers* | -V )
21514     echo "$ac_cs_version"; exit 0 ;;
21515   --he | --h)
21516     # Conflict between --help and --header
21517     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21518 Try \`$0 --help' for more information." >&5
21519 echo "$as_me: error: ambiguous option: $1
21520 Try \`$0 --help' for more information." >&2;}
21521    { (exit 1); exit 1; }; };;
21522   --help | --hel | -h )
21523     echo "$ac_cs_usage"; exit 0 ;;
21524   --debug | --d* | -d )
21525     debug=: ;;
21526   --file | --fil | --fi | --f )
21527     $ac_shift
21528     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21529     ac_need_defaults=false;;
21530   --header | --heade | --head | --hea )
21531     $ac_shift
21532     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21533     ac_need_defaults=false;;
21534   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21535   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21536     ac_cs_silent=: ;;
21537
21538   # This is an error.
21539   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21540 Try \`$0 --help' for more information." >&5
21541 echo "$as_me: error: unrecognized option: $1
21542 Try \`$0 --help' for more information." >&2;}
21543    { (exit 1); exit 1; }; } ;;
21544
21545   *) ac_config_targets="$ac_config_targets $1" ;;
21546
21547   esac
21548   shift
21549 done
21550
21551 ac_configure_extra_args=
21552
21553 if $ac_cs_silent; then
21554   exec 6>/dev/null
21555   ac_configure_extra_args="$ac_configure_extra_args --silent"
21556 fi
21557
21558 _ACEOF
21559 cat >>$CONFIG_STATUS <<_ACEOF
21560 if \$ac_cs_recheck; then
21561   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21562   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21563 fi
21564
21565 _ACEOF
21566
21567 cat >>$CONFIG_STATUS <<_ACEOF
21568 #
21569 # INIT-COMMANDS section.
21570 #
21571
21572 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21573
21574 _ACEOF
21575
21576
21577
21578 cat >>$CONFIG_STATUS <<\_ACEOF
21579 for ac_config_target in $ac_config_targets
21580 do
21581   case "$ac_config_target" in
21582   # Handling of arguments.
21583   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21584   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21585   "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
21586   "src/include/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/modules/Makefile" ;;
21587   "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
21588   "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
21589   "src/base/Tests/run_tests" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/run_tests" ;;
21590   "src/base/Tests/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_tcp_usage" ;;
21591   "src/base/Tests/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_file_usage" ;;
21592   "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
21593   "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
21594   "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
21595   "src/examples/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/bandwidth/Makefile" ;;
21596   "src/examples/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/saturate/Makefile" ;;
21597   "src/examples/alnem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/alnem/Makefile" ;;
21598   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21599   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21600   "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
21601   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21602 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21603    { (exit 1); exit 1; }; };;
21604   esac
21605 done
21606
21607 # If the user did not use the arguments to specify the items to instantiate,
21608 # then the envvar interface is used.  Set only those that are not.
21609 # We use the long form for the default assignment because of an extremely
21610 # bizarre bug on SunOS 4.1.3.
21611 if $ac_need_defaults; then
21612   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21613   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21614   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21615 fi
21616
21617 # Have a temporary directory for convenience.  Make it in the build tree
21618 # simply because there is no reason to put it here, and in addition,
21619 # creating and moving files from /tmp can sometimes cause problems.
21620 # Create a temporary directory, and hook for its removal unless debugging.
21621 $debug ||
21622 {
21623   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21624   trap '{ (exit 1); exit 1; }' 1 2 13 15
21625 }
21626
21627 # Create a (secure) tmp directory for tmp files.
21628
21629 {
21630   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21631   test -n "$tmp" && test -d "$tmp"
21632 }  ||
21633 {
21634   tmp=./confstat$$-$RANDOM
21635   (umask 077 && mkdir $tmp)
21636 } ||
21637 {
21638    echo "$me: cannot create a temporary directory in ." >&2
21639    { (exit 1); exit 1; }
21640 }
21641
21642 _ACEOF
21643
21644 cat >>$CONFIG_STATUS <<_ACEOF
21645
21646 #
21647 # CONFIG_FILES section.
21648 #
21649
21650 # No need to generate the scripts if there are no CONFIG_FILES.
21651 # This happens for instance when ./config.status config.h
21652 if test -n "\$CONFIG_FILES"; then
21653   # Protect against being on the right side of a sed subst in config.status.
21654   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21655    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21656 s,@SHELL@,$SHELL,;t t
21657 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21658 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21659 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21660 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21661 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21662 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21663 s,@exec_prefix@,$exec_prefix,;t t
21664 s,@prefix@,$prefix,;t t
21665 s,@program_transform_name@,$program_transform_name,;t t
21666 s,@bindir@,$bindir,;t t
21667 s,@sbindir@,$sbindir,;t t
21668 s,@libexecdir@,$libexecdir,;t t
21669 s,@datadir@,$datadir,;t t
21670 s,@sysconfdir@,$sysconfdir,;t t
21671 s,@sharedstatedir@,$sharedstatedir,;t t
21672 s,@localstatedir@,$localstatedir,;t t
21673 s,@libdir@,$libdir,;t t
21674 s,@includedir@,$includedir,;t t
21675 s,@oldincludedir@,$oldincludedir,;t t
21676 s,@infodir@,$infodir,;t t
21677 s,@mandir@,$mandir,;t t
21678 s,@build_alias@,$build_alias,;t t
21679 s,@host_alias@,$host_alias,;t t
21680 s,@target_alias@,$target_alias,;t t
21681 s,@DEFS@,$DEFS,;t t
21682 s,@ECHO_C@,$ECHO_C,;t t
21683 s,@ECHO_N@,$ECHO_N,;t t
21684 s,@ECHO_T@,$ECHO_T,;t t
21685 s,@LIBS@,$LIBS,;t t
21686 s,@build@,$build,;t t
21687 s,@build_cpu@,$build_cpu,;t t
21688 s,@build_vendor@,$build_vendor,;t t
21689 s,@build_os@,$build_os,;t t
21690 s,@host@,$host,;t t
21691 s,@host_cpu@,$host_cpu,;t t
21692 s,@host_vendor@,$host_vendor,;t t
21693 s,@host_os@,$host_os,;t t
21694 s,@target@,$target,;t t
21695 s,@target_cpu@,$target_cpu,;t t
21696 s,@target_vendor@,$target_vendor,;t t
21697 s,@target_os@,$target_os,;t t
21698 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21699 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21700 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21701 s,@CYGPATH_W@,$CYGPATH_W,;t t
21702 s,@PACKAGE@,$PACKAGE,;t t
21703 s,@VERSION@,$VERSION,;t t
21704 s,@ACLOCAL@,$ACLOCAL,;t t
21705 s,@AUTOCONF@,$AUTOCONF,;t t
21706 s,@AUTOMAKE@,$AUTOMAKE,;t t
21707 s,@AUTOHEADER@,$AUTOHEADER,;t t
21708 s,@MAKEINFO@,$MAKEINFO,;t t
21709 s,@AMTAR@,$AMTAR,;t t
21710 s,@install_sh@,$install_sh,;t t
21711 s,@STRIP@,$STRIP,;t t
21712 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21713 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21714 s,@mkdir_p@,$mkdir_p,;t t
21715 s,@AWK@,$AWK,;t t
21716 s,@SET_MAKE@,$SET_MAKE,;t t
21717 s,@am__leading_dot@,$am__leading_dot,;t t
21718 s,@CC@,$CC,;t t
21719 s,@CFLAGS@,$CFLAGS,;t t
21720 s,@LDFLAGS@,$LDFLAGS,;t t
21721 s,@CPPFLAGS@,$CPPFLAGS,;t t
21722 s,@ac_ct_CC@,$ac_ct_CC,;t t
21723 s,@EXEEXT@,$EXEEXT,;t t
21724 s,@OBJEXT@,$OBJEXT,;t t
21725 s,@DEPDIR@,$DEPDIR,;t t
21726 s,@am__include@,$am__include,;t t
21727 s,@am__quote@,$am__quote,;t t
21728 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21729 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21730 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21731 s,@CCDEPMODE@,$CCDEPMODE,;t t
21732 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21733 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21734 s,@EGREP@,$EGREP,;t t
21735 s,@LN_S@,$LN_S,;t t
21736 s,@ECHO@,$ECHO,;t t
21737 s,@AR@,$AR,;t t
21738 s,@ac_ct_AR@,$ac_ct_AR,;t t
21739 s,@RANLIB@,$RANLIB,;t t
21740 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21741 s,@CPP@,$CPP,;t t
21742 s,@CXX@,$CXX,;t t
21743 s,@CXXFLAGS@,$CXXFLAGS,;t t
21744 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21745 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21746 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21747 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21748 s,@CXXCPP@,$CXXCPP,;t t
21749 s,@F77@,$F77,;t t
21750 s,@FFLAGS@,$FFLAGS,;t t
21751 s,@ac_ct_F77@,$ac_ct_F77,;t t
21752 s,@LIBTOOL@,$LIBTOOL,;t t
21753 s,@LIBOBJS@,$LIBOBJS,;t t
21754 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21755 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21756 s,@MAINT@,$MAINT,;t t
21757 s,@BASH@,$BASH,;t t
21758 s,@WARNING@,$WARNING,;t t
21759 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21760 CEOF
21761
21762 _ACEOF
21763
21764   cat >>$CONFIG_STATUS <<\_ACEOF
21765   # Split the substitutions into bite-sized pieces for seds with
21766   # small command number limits, like on Digital OSF/1 and HP-UX.
21767   ac_max_sed_lines=48
21768   ac_sed_frag=1 # Number of current file.
21769   ac_beg=1 # First line for current file.
21770   ac_end=$ac_max_sed_lines # Line after last line for current file.
21771   ac_more_lines=:
21772   ac_sed_cmds=
21773   while $ac_more_lines; do
21774     if test $ac_beg -gt 1; then
21775       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21776     else
21777       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21778     fi
21779     if test ! -s $tmp/subs.frag; then
21780       ac_more_lines=false
21781     else
21782       # The purpose of the label and of the branching condition is to
21783       # speed up the sed processing (if there are no `@' at all, there
21784       # is no need to browse any of the substitutions).
21785       # These are the two extra sed commands mentioned above.
21786       (echo ':t
21787   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21788       if test -z "$ac_sed_cmds"; then
21789         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21790       else
21791         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21792       fi
21793       ac_sed_frag=`expr $ac_sed_frag + 1`
21794       ac_beg=$ac_end
21795       ac_end=`expr $ac_end + $ac_max_sed_lines`
21796     fi
21797   done
21798   if test -z "$ac_sed_cmds"; then
21799     ac_sed_cmds=cat
21800   fi
21801 fi # test -n "$CONFIG_FILES"
21802
21803 _ACEOF
21804 cat >>$CONFIG_STATUS <<\_ACEOF
21805 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21806   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21807   case $ac_file in
21808   - | *:- | *:-:* ) # input from stdin
21809         cat >$tmp/stdin
21810         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21811         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21812   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21813         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21814   * )   ac_file_in=$ac_file.in ;;
21815   esac
21816
21817   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21818   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21820          X"$ac_file" : 'X\(//\)[^/]' \| \
21821          X"$ac_file" : 'X\(//\)$' \| \
21822          X"$ac_file" : 'X\(/\)' \| \
21823          .     : '\(.\)' 2>/dev/null ||
21824 echo X"$ac_file" |
21825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21826           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21827           /^X\(\/\/\)$/{ s//\1/; q; }
21828           /^X\(\/\).*/{ s//\1/; q; }
21829           s/.*/./; q'`
21830   { if $as_mkdir_p; then
21831     mkdir -p "$ac_dir"
21832   else
21833     as_dir="$ac_dir"
21834     as_dirs=
21835     while test ! -d "$as_dir"; do
21836       as_dirs="$as_dir $as_dirs"
21837       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21839          X"$as_dir" : 'X\(//\)[^/]' \| \
21840          X"$as_dir" : 'X\(//\)$' \| \
21841          X"$as_dir" : 'X\(/\)' \| \
21842          .     : '\(.\)' 2>/dev/null ||
21843 echo X"$as_dir" |
21844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21846           /^X\(\/\/\)$/{ s//\1/; q; }
21847           /^X\(\/\).*/{ s//\1/; q; }
21848           s/.*/./; q'`
21849     done
21850     test ! -n "$as_dirs" || mkdir $as_dirs
21851   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21852 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21853    { (exit 1); exit 1; }; }; }
21854
21855   ac_builddir=.
21856
21857 if test "$ac_dir" != .; then
21858   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21859   # A "../" for each directory in $ac_dir_suffix.
21860   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21861 else
21862   ac_dir_suffix= ac_top_builddir=
21863 fi
21864
21865 case $srcdir in
21866   .)  # No --srcdir option.  We are building in place.
21867     ac_srcdir=.
21868     if test -z "$ac_top_builddir"; then
21869        ac_top_srcdir=.
21870     else
21871        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21872     fi ;;
21873   [\\/]* | ?:[\\/]* )  # Absolute path.
21874     ac_srcdir=$srcdir$ac_dir_suffix;
21875     ac_top_srcdir=$srcdir ;;
21876   *) # Relative path.
21877     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21878     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21879 esac
21880
21881 # Do not use `cd foo && pwd` to compute absolute paths, because
21882 # the directories may not exist.
21883 case `pwd` in
21884 .) ac_abs_builddir="$ac_dir";;
21885 *)
21886   case "$ac_dir" in
21887   .) ac_abs_builddir=`pwd`;;
21888   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21889   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21890   esac;;
21891 esac
21892 case $ac_abs_builddir in
21893 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21894 *)
21895   case ${ac_top_builddir}. in
21896   .) ac_abs_top_builddir=$ac_abs_builddir;;
21897   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21898   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21899   esac;;
21900 esac
21901 case $ac_abs_builddir in
21902 .) ac_abs_srcdir=$ac_srcdir;;
21903 *)
21904   case $ac_srcdir in
21905   .) ac_abs_srcdir=$ac_abs_builddir;;
21906   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21907   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21908   esac;;
21909 esac
21910 case $ac_abs_builddir in
21911 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21912 *)
21913   case $ac_top_srcdir in
21914   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21915   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21916   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21917   esac;;
21918 esac
21919
21920
21921   case $INSTALL in
21922   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21923   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21924   esac
21925
21926   # Let's still pretend it is `configure' which instantiates (i.e., don't
21927   # use $as_me), people would be surprised to read:
21928   #    /* config.h.  Generated by config.status.  */
21929   if test x"$ac_file" = x-; then
21930     configure_input=
21931   else
21932     configure_input="$ac_file.  "
21933   fi
21934   configure_input=$configure_input"Generated from `echo $ac_file_in |
21935                                      sed 's,.*/,,'` by configure."
21936
21937   # First look for the input files in the build tree, otherwise in the
21938   # src tree.
21939   ac_file_inputs=`IFS=:
21940     for f in $ac_file_in; do
21941       case $f in
21942       -) echo $tmp/stdin ;;
21943       [\\/$]*)
21944          # Absolute (can't be DOS-style, as IFS=:)
21945          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21946 echo "$as_me: error: cannot find input file: $f" >&2;}
21947    { (exit 1); exit 1; }; }
21948          echo "$f";;
21949       *) # Relative
21950          if test -f "$f"; then
21951            # Build tree
21952            echo "$f"
21953          elif test -f "$srcdir/$f"; then
21954            # Source tree
21955            echo "$srcdir/$f"
21956          else
21957            # /dev/null tree
21958            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21959 echo "$as_me: error: cannot find input file: $f" >&2;}
21960    { (exit 1); exit 1; }; }
21961          fi;;
21962       esac
21963     done` || { (exit 1); exit 1; }
21964
21965   if test x"$ac_file" != x-; then
21966     { echo "$as_me:$LINENO: creating $ac_file" >&5
21967 echo "$as_me: creating $ac_file" >&6;}
21968     rm -f "$ac_file"
21969   fi
21970 _ACEOF
21971 cat >>$CONFIG_STATUS <<_ACEOF
21972   sed "$ac_vpsub
21973 $extrasub
21974 _ACEOF
21975 cat >>$CONFIG_STATUS <<\_ACEOF
21976 :t
21977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21978 s,@configure_input@,$configure_input,;t t
21979 s,@srcdir@,$ac_srcdir,;t t
21980 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21981 s,@top_srcdir@,$ac_top_srcdir,;t t
21982 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21983 s,@builddir@,$ac_builddir,;t t
21984 s,@abs_builddir@,$ac_abs_builddir,;t t
21985 s,@top_builddir@,$ac_top_builddir,;t t
21986 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21987 s,@INSTALL@,$ac_INSTALL,;t t
21988 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21989   rm -f $tmp/stdin
21990   if test x"$ac_file" != x-; then
21991     mv $tmp/out $ac_file
21992   else
21993     cat $tmp/out
21994     rm -f $tmp/out
21995   fi
21996
21997   # Run the commands associated with the file.
21998   case $ac_file in
21999     Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22000      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22001      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22002      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22003     src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22004      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22005      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22006      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22007     src/include/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22008      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22009      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22010      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22011     src/include/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22012      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22013      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22014      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22015     src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22016      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22017      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22018      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22019     src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22020      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22021      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22022      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22023     src/base/Tests/run_tests ) ( cd src/include ; test -e gras || ln -s . gras )
22024      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22025      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22026      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22027     src/base/Tests/trp_tcp_usage ) ( cd src/include ; test -e gras || ln -s . gras )
22028      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22029      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22030      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22031     src/base/Tests/trp_file_usage ) ( cd src/include ; test -e gras || ln -s . gras )
22032      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22033      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22034      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22035     src/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22036      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22037      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22038      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22039     src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22040      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22041      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22042      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22043     src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22044      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22045      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22046      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22047     src/examples/bandwidth/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22048      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22049      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22050      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22051     src/examples/saturate/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22052      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22053      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22054      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22055     src/examples/alnem/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22056      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22057      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22058      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22059     doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22060      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22061      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22062      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
22063   esac
22064 done
22065 _ACEOF
22066 cat >>$CONFIG_STATUS <<\_ACEOF
22067
22068 #
22069 # CONFIG_HEADER section.
22070 #
22071
22072 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22073 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22074 #
22075 # ac_d sets the value in "#define NAME VALUE" lines.
22076 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22077 ac_dB='[         ].*$,\1#\2'
22078 ac_dC=' '
22079 ac_dD=',;t'
22080 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22081 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22082 ac_uB='$,\1#\2define\3'
22083 ac_uC=' '
22084 ac_uD=',;t'
22085
22086 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22087   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22088   case $ac_file in
22089   - | *:- | *:-:* ) # input from stdin
22090         cat >$tmp/stdin
22091         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22092         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22093   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22094         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22095   * )   ac_file_in=$ac_file.in ;;
22096   esac
22097
22098   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22099 echo "$as_me: creating $ac_file" >&6;}
22100
22101   # First look for the input files in the build tree, otherwise in the
22102   # src tree.
22103   ac_file_inputs=`IFS=:
22104     for f in $ac_file_in; do
22105       case $f in
22106       -) echo $tmp/stdin ;;
22107       [\\/$]*)
22108          # Absolute (can't be DOS-style, as IFS=:)
22109          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22110 echo "$as_me: error: cannot find input file: $f" >&2;}
22111    { (exit 1); exit 1; }; }
22112          # Do quote $f, to prevent DOS paths from being IFS'd.
22113          echo "$f";;
22114       *) # Relative
22115          if test -f "$f"; then
22116            # Build tree
22117            echo "$f"
22118          elif test -f "$srcdir/$f"; then
22119            # Source tree
22120            echo "$srcdir/$f"
22121          else
22122            # /dev/null tree
22123            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22124 echo "$as_me: error: cannot find input file: $f" >&2;}
22125    { (exit 1); exit 1; }; }
22126          fi;;
22127       esac
22128     done` || { (exit 1); exit 1; }
22129   # Remove the trailing spaces.
22130   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22131
22132 _ACEOF
22133
22134 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22135 # `conftest.undefs', that substitutes the proper values into
22136 # config.h.in to produce config.h.  The first handles `#define'
22137 # templates, and the second `#undef' templates.
22138 # And first: Protect against being on the right side of a sed subst in
22139 # config.status.  Protect against being in an unquoted here document
22140 # in config.status.
22141 rm -f conftest.defines conftest.undefs
22142 # Using a here document instead of a string reduces the quoting nightmare.
22143 # Putting comments in sed scripts is not portable.
22144 #
22145 # `end' is used to avoid that the second main sed command (meant for
22146 # 0-ary CPP macros) applies to n-ary macro definitions.
22147 # See the Autoconf documentation for `clear'.
22148 cat >confdef2sed.sed <<\_ACEOF
22149 s/[\\&,]/\\&/g
22150 s,[\\$`],\\&,g
22151 t clear
22152 : clear
22153 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22154 t end
22155 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22156 : end
22157 _ACEOF
22158 # If some macros were called several times there might be several times
22159 # the same #defines, which is useless.  Nevertheless, we may not want to
22160 # sort them, since we want the *last* AC-DEFINE to be honored.
22161 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22162 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22163 rm -f confdef2sed.sed
22164
22165 # This sed command replaces #undef with comments.  This is necessary, for
22166 # example, in the case of _POSIX_SOURCE, which is predefined and required
22167 # on some systems where configure will not decide to define it.
22168 cat >>conftest.undefs <<\_ACEOF
22169 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22170 _ACEOF
22171
22172 # Break up conftest.defines because some shells have a limit on the size
22173 # of here documents, and old seds have small limits too (100 cmds).
22174 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22175 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22176 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22177 echo '  :' >>$CONFIG_STATUS
22178 rm -f conftest.tail
22179 while grep . conftest.defines >/dev/null
22180 do
22181   # Write a limited-size here document to $tmp/defines.sed.
22182   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22183   # Speed up: don't consider the non `#define' lines.
22184   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22185   # Work around the forget-to-reset-the-flag bug.
22186   echo 't clr' >>$CONFIG_STATUS
22187   echo ': clr' >>$CONFIG_STATUS
22188   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22189   echo 'CEOF
22190   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22191   rm -f $tmp/in
22192   mv $tmp/out $tmp/in
22193 ' >>$CONFIG_STATUS
22194   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22195   rm -f conftest.defines
22196   mv conftest.tail conftest.defines
22197 done
22198 rm -f conftest.defines
22199 echo '  fi # grep' >>$CONFIG_STATUS
22200 echo >>$CONFIG_STATUS
22201
22202 # Break up conftest.undefs because some shells have a limit on the size
22203 # of here documents, and old seds have small limits too (100 cmds).
22204 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22205 rm -f conftest.tail
22206 while grep . conftest.undefs >/dev/null
22207 do
22208   # Write a limited-size here document to $tmp/undefs.sed.
22209   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22210   # Speed up: don't consider the non `#undef'
22211   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22212   # Work around the forget-to-reset-the-flag bug.
22213   echo 't clr' >>$CONFIG_STATUS
22214   echo ': clr' >>$CONFIG_STATUS
22215   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22216   echo 'CEOF
22217   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22218   rm -f $tmp/in
22219   mv $tmp/out $tmp/in
22220 ' >>$CONFIG_STATUS
22221   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22222   rm -f conftest.undefs
22223   mv conftest.tail conftest.undefs
22224 done
22225 rm -f conftest.undefs
22226
22227 cat >>$CONFIG_STATUS <<\_ACEOF
22228   # Let's still pretend it is `configure' which instantiates (i.e., don't
22229   # use $as_me), people would be surprised to read:
22230   #    /* config.h.  Generated by config.status.  */
22231   if test x"$ac_file" = x-; then
22232     echo "/* Generated by configure.  */" >$tmp/config.h
22233   else
22234     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22235   fi
22236   cat $tmp/in >>$tmp/config.h
22237   rm -f $tmp/in
22238   if test x"$ac_file" != x-; then
22239     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22240       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22241 echo "$as_me: $ac_file is unchanged" >&6;}
22242     else
22243       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22245          X"$ac_file" : 'X\(//\)[^/]' \| \
22246          X"$ac_file" : 'X\(//\)$' \| \
22247          X"$ac_file" : 'X\(/\)' \| \
22248          .     : '\(.\)' 2>/dev/null ||
22249 echo X"$ac_file" |
22250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22251           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22252           /^X\(\/\/\)$/{ s//\1/; q; }
22253           /^X\(\/\).*/{ s//\1/; q; }
22254           s/.*/./; q'`
22255       { if $as_mkdir_p; then
22256     mkdir -p "$ac_dir"
22257   else
22258     as_dir="$ac_dir"
22259     as_dirs=
22260     while test ! -d "$as_dir"; do
22261       as_dirs="$as_dir $as_dirs"
22262       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22264          X"$as_dir" : 'X\(//\)[^/]' \| \
22265          X"$as_dir" : 'X\(//\)$' \| \
22266          X"$as_dir" : 'X\(/\)' \| \
22267          .     : '\(.\)' 2>/dev/null ||
22268 echo X"$as_dir" |
22269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22270           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22271           /^X\(\/\/\)$/{ s//\1/; q; }
22272           /^X\(\/\).*/{ s//\1/; q; }
22273           s/.*/./; q'`
22274     done
22275     test ! -n "$as_dirs" || mkdir $as_dirs
22276   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22277 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22278    { (exit 1); exit 1; }; }; }
22279
22280       rm -f $ac_file
22281       mv $tmp/config.h $ac_file
22282     fi
22283   else
22284     cat $tmp/config.h
22285     rm -f $tmp/config.h
22286   fi
22287 # Compute $ac_file's index in $config_headers.
22288 _am_stamp_count=1
22289 for _am_header in $config_headers :; do
22290   case $_am_header in
22291     $ac_file | $ac_file:* )
22292       break ;;
22293     * )
22294       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22295   esac
22296 done
22297 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22298 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22299          X$ac_file : 'X\(//\)[^/]' \| \
22300          X$ac_file : 'X\(//\)$' \| \
22301          X$ac_file : 'X\(/\)' \| \
22302          .     : '\(.\)' 2>/dev/null ||
22303 echo X$ac_file |
22304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22305           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22306           /^X\(\/\/\)$/{ s//\1/; q; }
22307           /^X\(\/\).*/{ s//\1/; q; }
22308           s/.*/./; q'`/stamp-h$_am_stamp_count
22309 done
22310 _ACEOF
22311 cat >>$CONFIG_STATUS <<\_ACEOF
22312
22313 #
22314 # CONFIG_COMMANDS section.
22315 #
22316 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22317   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22318   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22319   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22320 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22321          X"$ac_dest" : 'X\(//\)[^/]' \| \
22322          X"$ac_dest" : 'X\(//\)$' \| \
22323          X"$ac_dest" : 'X\(/\)' \| \
22324          .     : '\(.\)' 2>/dev/null ||
22325 echo X"$ac_dest" |
22326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22327           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22328           /^X\(\/\/\)$/{ s//\1/; q; }
22329           /^X\(\/\).*/{ s//\1/; q; }
22330           s/.*/./; q'`
22331   { if $as_mkdir_p; then
22332     mkdir -p "$ac_dir"
22333   else
22334     as_dir="$ac_dir"
22335     as_dirs=
22336     while test ! -d "$as_dir"; do
22337       as_dirs="$as_dir $as_dirs"
22338       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22340          X"$as_dir" : 'X\(//\)[^/]' \| \
22341          X"$as_dir" : 'X\(//\)$' \| \
22342          X"$as_dir" : 'X\(/\)' \| \
22343          .     : '\(.\)' 2>/dev/null ||
22344 echo X"$as_dir" |
22345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22346           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22347           /^X\(\/\/\)$/{ s//\1/; q; }
22348           /^X\(\/\).*/{ s//\1/; q; }
22349           s/.*/./; q'`
22350     done
22351     test ! -n "$as_dirs" || mkdir $as_dirs
22352   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22353 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22354    { (exit 1); exit 1; }; }; }
22355
22356   ac_builddir=.
22357
22358 if test "$ac_dir" != .; then
22359   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22360   # A "../" for each directory in $ac_dir_suffix.
22361   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22362 else
22363   ac_dir_suffix= ac_top_builddir=
22364 fi
22365
22366 case $srcdir in
22367   .)  # No --srcdir option.  We are building in place.
22368     ac_srcdir=.
22369     if test -z "$ac_top_builddir"; then
22370        ac_top_srcdir=.
22371     else
22372        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22373     fi ;;
22374   [\\/]* | ?:[\\/]* )  # Absolute path.
22375     ac_srcdir=$srcdir$ac_dir_suffix;
22376     ac_top_srcdir=$srcdir ;;
22377   *) # Relative path.
22378     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22379     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22380 esac
22381
22382 # Do not use `cd foo && pwd` to compute absolute paths, because
22383 # the directories may not exist.
22384 case `pwd` in
22385 .) ac_abs_builddir="$ac_dir";;
22386 *)
22387   case "$ac_dir" in
22388   .) ac_abs_builddir=`pwd`;;
22389   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22390   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22391   esac;;
22392 esac
22393 case $ac_abs_builddir in
22394 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22395 *)
22396   case ${ac_top_builddir}. in
22397   .) ac_abs_top_builddir=$ac_abs_builddir;;
22398   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22399   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22400   esac;;
22401 esac
22402 case $ac_abs_builddir in
22403 .) ac_abs_srcdir=$ac_srcdir;;
22404 *)
22405   case $ac_srcdir in
22406   .) ac_abs_srcdir=$ac_abs_builddir;;
22407   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22408   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22409   esac;;
22410 esac
22411 case $ac_abs_builddir in
22412 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22413 *)
22414   case $ac_top_srcdir in
22415   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22416   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22417   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22418   esac;;
22419 esac
22420
22421
22422   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22423 echo "$as_me: executing $ac_dest commands" >&6;}
22424   case $ac_dest in
22425     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22426   # Strip MF so we end up with the name of the file.
22427   mf=`echo "$mf" | sed -e 's/:.*$//'`
22428   # Check whether this is an Automake generated Makefile or not.
22429   # We used to match only the files named `Makefile.in', but
22430   # some people rename them; so instead we look at the file content.
22431   # Grep'ing the first line is not enough: some people post-process
22432   # each Makefile.in and add a new line on top of each file to say so.
22433   # So let's grep whole file.
22434   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22435     dirpart=`(dirname "$mf") 2>/dev/null ||
22436 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22437          X"$mf" : 'X\(//\)[^/]' \| \
22438          X"$mf" : 'X\(//\)$' \| \
22439          X"$mf" : 'X\(/\)' \| \
22440          .     : '\(.\)' 2>/dev/null ||
22441 echo X"$mf" |
22442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22443           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22444           /^X\(\/\/\)$/{ s//\1/; q; }
22445           /^X\(\/\).*/{ s//\1/; q; }
22446           s/.*/./; q'`
22447   else
22448     continue
22449   fi
22450   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22451   # Extract the definition of DEP_FILES from the Makefile without
22452   # running `make'.
22453   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22454   test -z "$DEPDIR" && continue
22455   # When using ansi2knr, U may be empty or an underscore; expand it
22456   U=`sed -n 's/^U = //p' < "$mf"`
22457   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22458   # We invoke sed twice because it is the simplest approach to
22459   # changing $(DEPDIR) to its actual value in the expansion.
22460   for file in `sed -n '
22461     /^DEP_FILES = .*\\\\$/ {
22462       s/^DEP_FILES = //
22463       :loop
22464         s/\\\\$//
22465         p
22466         n
22467         /\\\\$/ b loop
22468       p
22469     }
22470     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22471        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22472     # Make sure the directory exists.
22473     test -f "$dirpart/$file" && continue
22474     fdir=`(dirname "$file") 2>/dev/null ||
22475 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22476          X"$file" : 'X\(//\)[^/]' \| \
22477          X"$file" : 'X\(//\)$' \| \
22478          X"$file" : 'X\(/\)' \| \
22479          .     : '\(.\)' 2>/dev/null ||
22480 echo X"$file" |
22481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22482           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22483           /^X\(\/\/\)$/{ s//\1/; q; }
22484           /^X\(\/\).*/{ s//\1/; q; }
22485           s/.*/./; q'`
22486     { if $as_mkdir_p; then
22487     mkdir -p $dirpart/$fdir
22488   else
22489     as_dir=$dirpart/$fdir
22490     as_dirs=
22491     while test ! -d "$as_dir"; do
22492       as_dirs="$as_dir $as_dirs"
22493       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22494 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22495          X"$as_dir" : 'X\(//\)[^/]' \| \
22496          X"$as_dir" : 'X\(//\)$' \| \
22497          X"$as_dir" : 'X\(/\)' \| \
22498          .     : '\(.\)' 2>/dev/null ||
22499 echo X"$as_dir" |
22500     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22501           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22502           /^X\(\/\/\)$/{ s//\1/; q; }
22503           /^X\(\/\).*/{ s//\1/; q; }
22504           s/.*/./; q'`
22505     done
22506     test ! -n "$as_dirs" || mkdir $as_dirs
22507   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22508 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22509    { (exit 1); exit 1; }; }; }
22510
22511     # echo "creating $dirpart/$file"
22512     echo '# dummy' > "$dirpart/$file"
22513   done
22514 done
22515  ;;
22516   esac
22517 done
22518 _ACEOF
22519
22520 cat >>$CONFIG_STATUS <<\_ACEOF
22521
22522 { (exit 0); exit 0; }
22523 _ACEOF
22524 chmod +x $CONFIG_STATUS
22525 ac_clean_files=$ac_clean_files_save
22526
22527
22528 # configure is writing to config.log, and then calls config.status.
22529 # config.status does its own redirection, appending to config.log.
22530 # Unfortunately, on DOS this fails, as config.log is still kept open
22531 # by configure, so config.status won't be able to write to it; its
22532 # output is simply discarded.  So we exec the FD to /dev/null,
22533 # effectively closing config.log, so it can be properly (re)opened and
22534 # appended to by config.status.  When coming back to configure, we
22535 # need to make the FD available again.
22536 if test "$no_create" != yes; then
22537   ac_cs_success=:
22538   ac_config_status_args=
22539   test "$silent" = yes &&
22540     ac_config_status_args="$ac_config_status_args --quiet"
22541   exec 5>/dev/null
22542   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22543   exec 5>>config.log
22544   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22545   # would make configure fail if this is the last instruction.
22546   $ac_cs_success || { (exit 1); exit 1; }
22547 fi
22548
22549
22550 echo "
22551
22552 Configuration of package \`${PACKAGE}':
22553
22554         Compiler:       ${CC}
22555
22556         CFlags:         ${CFLAGS}
22557         LDFlags:        ${LDFLAGS}
22558 "
22559
22560 exit 0;