Correct the interface of a function to use the correct typedef for an
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for LLVM 1.4.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # 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
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='LLVM'
424 PACKAGE_TARNAME='-llvm-'
425 PACKAGE_VERSION='1.4'
426 PACKAGE_STRING='LLVM 1.4'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 ac_subdirs_all="$ac_subdirs_all projects/sample"
430 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
431 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
432 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
433 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
434 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
437 ac_subdirs_all="$ac_subdirs_all ${i}"
438 # Factoring default headers for most tests.
439 ac_includes_default="\
440 #include <stdio.h>
441 #if HAVE_SYS_TYPES_H
442 # include <sys/types.h>
443 #endif
444 #if HAVE_SYS_STAT_H
445 # include <sys/stat.h>
446 #endif
447 #if STDC_HEADERS
448 # include <stdlib.h>
449 # include <stddef.h>
450 #else
451 # if HAVE_STDLIB_H
452 #  include <stdlib.h>
453 # endif
454 #endif
455 #if HAVE_STRING_H
456 # if !STDC_HEADERS && HAVE_MEMORY_H
457 #  include <memory.h>
458 # endif
459 # include <string.h>
460 #endif
461 #if HAVE_STRINGS_H
462 # include <strings.h>
463 #endif
464 #if HAVE_INTTYPES_H
465 # include <inttypes.h>
466 #else
467 # if HAVE_STDINT_H
468 #  include <stdint.h>
469 # endif
470 #endif
471 #if HAVE_UNISTD_H
472 # include <unistd.h>
473 #endif"
474
475 ac_unique_file=""Makefile.config.in""
476 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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
477 ac_subst_files=''
478
479 # Initialize some variables set by options.
480 ac_init_help=
481 ac_init_version=false
482 # The variables have the same names as the options, with
483 # dashes changed to underlines.
484 cache_file=/dev/null
485 exec_prefix=NONE
486 no_create=
487 no_recursion=
488 prefix=NONE
489 program_prefix=NONE
490 program_suffix=NONE
491 program_transform_name=s,x,x,
492 silent=
493 site=
494 srcdir=
495 verbose=
496 x_includes=NONE
497 x_libraries=NONE
498
499 # Installation directory options.
500 # These are left unexpanded so users can "make install exec_prefix=/foo"
501 # and all the variables that are supposed to be based on exec_prefix
502 # by default will actually change.
503 # Use braces instead of parens because sh, perl, etc. also accept them.
504 bindir='${exec_prefix}/bin'
505 sbindir='${exec_prefix}/sbin'
506 libexecdir='${exec_prefix}/libexec'
507 datadir='${prefix}/share'
508 sysconfdir='${prefix}/etc'
509 sharedstatedir='${prefix}/com'
510 localstatedir='${prefix}/var'
511 libdir='${exec_prefix}/lib'
512 includedir='${prefix}/include'
513 oldincludedir='/usr/include'
514 infodir='${prefix}/info'
515 mandir='${prefix}/man'
516
517 ac_prev=
518 for ac_option
519 do
520   # If the previous option needs an argument, assign it.
521   if test -n "$ac_prev"; then
522     eval "$ac_prev=\$ac_option"
523     ac_prev=
524     continue
525   fi
526
527   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
528
529   # Accept the important Cygnus configure options, so we can diagnose typos.
530
531   case $ac_option in
532
533   -bindir | --bindir | --bindi | --bind | --bin | --bi)
534     ac_prev=bindir ;;
535   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536     bindir=$ac_optarg ;;
537
538   -build | --build | --buil | --bui | --bu)
539     ac_prev=build_alias ;;
540   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541     build_alias=$ac_optarg ;;
542
543   -cache-file | --cache-file | --cache-fil | --cache-fi \
544   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545     ac_prev=cache_file ;;
546   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548     cache_file=$ac_optarg ;;
549
550   --config-cache | -C)
551     cache_file=config.cache ;;
552
553   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
554     ac_prev=datadir ;;
555   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
556   | --da=*)
557     datadir=$ac_optarg ;;
558
559   -disable-* | --disable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     eval "enable_$ac_feature=no" ;;
567
568   -enable-* | --enable-*)
569     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570     # Reject names that are not valid shell variable names.
571     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573    { (exit 1); exit 1; }; }
574     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575     case $ac_option in
576       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577       *) ac_optarg=yes ;;
578     esac
579     eval "enable_$ac_feature='$ac_optarg'" ;;
580
581   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583   | --exec | --exe | --ex)
584     ac_prev=exec_prefix ;;
585   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587   | --exec=* | --exe=* | --ex=*)
588     exec_prefix=$ac_optarg ;;
589
590   -gas | --gas | --ga | --g)
591     # Obsolete; use --with-gas.
592     with_gas=yes ;;
593
594   -help | --help | --hel | --he | -h)
595     ac_init_help=long ;;
596   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597     ac_init_help=recursive ;;
598   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599     ac_init_help=short ;;
600
601   -host | --host | --hos | --ho)
602     ac_prev=host_alias ;;
603   -host=* | --host=* | --hos=* | --ho=*)
604     host_alias=$ac_optarg ;;
605
606   -includedir | --includedir | --includedi | --included | --include \
607   | --includ | --inclu | --incl | --inc)
608     ac_prev=includedir ;;
609   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610   | --includ=* | --inclu=* | --incl=* | --inc=*)
611     includedir=$ac_optarg ;;
612
613   -infodir | --infodir | --infodi | --infod | --info | --inf)
614     ac_prev=infodir ;;
615   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616     infodir=$ac_optarg ;;
617
618   -libdir | --libdir | --libdi | --libd)
619     ac_prev=libdir ;;
620   -libdir=* | --libdir=* | --libdi=* | --libd=*)
621     libdir=$ac_optarg ;;
622
623   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624   | --libexe | --libex | --libe)
625     ac_prev=libexecdir ;;
626   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627   | --libexe=* | --libex=* | --libe=*)
628     libexecdir=$ac_optarg ;;
629
630   -localstatedir | --localstatedir | --localstatedi | --localstated \
631   | --localstate | --localstat | --localsta | --localst \
632   | --locals | --local | --loca | --loc | --lo)
633     ac_prev=localstatedir ;;
634   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637     localstatedir=$ac_optarg ;;
638
639   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
640     ac_prev=mandir ;;
641   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642     mandir=$ac_optarg ;;
643
644   -nfp | --nfp | --nf)
645     # Obsolete; use --without-fp.
646     with_fp=no ;;
647
648   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649   | --no-cr | --no-c | -n)
650     no_create=yes ;;
651
652   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
654     no_recursion=yes ;;
655
656   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658   | --oldin | --oldi | --old | --ol | --o)
659     ac_prev=oldincludedir ;;
660   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663     oldincludedir=$ac_optarg ;;
664
665   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
666     ac_prev=prefix ;;
667   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
668     prefix=$ac_optarg ;;
669
670   -program-prefix | --program-prefix | --program-prefi | --program-pref \
671   | --program-pre | --program-pr | --program-p)
672     ac_prev=program_prefix ;;
673   -program-prefix=* | --program-prefix=* | --program-prefi=* \
674   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675     program_prefix=$ac_optarg ;;
676
677   -program-suffix | --program-suffix | --program-suffi | --program-suff \
678   | --program-suf | --program-su | --program-s)
679     ac_prev=program_suffix ;;
680   -program-suffix=* | --program-suffix=* | --program-suffi=* \
681   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682     program_suffix=$ac_optarg ;;
683
684   -program-transform-name | --program-transform-name \
685   | --program-transform-nam | --program-transform-na \
686   | --program-transform-n | --program-transform- \
687   | --program-transform | --program-transfor \
688   | --program-transfo | --program-transf \
689   | --program-trans | --program-tran \
690   | --progr-tra | --program-tr | --program-t)
691     ac_prev=program_transform_name ;;
692   -program-transform-name=* | --program-transform-name=* \
693   | --program-transform-nam=* | --program-transform-na=* \
694   | --program-transform-n=* | --program-transform-=* \
695   | --program-transform=* | --program-transfor=* \
696   | --program-transfo=* | --program-transf=* \
697   | --program-trans=* | --program-tran=* \
698   | --progr-tra=* | --program-tr=* | --program-t=*)
699     program_transform_name=$ac_optarg ;;
700
701   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702   | -silent | --silent | --silen | --sile | --sil)
703     silent=yes ;;
704
705   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
706     ac_prev=sbindir ;;
707   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
708   | --sbi=* | --sb=*)
709     sbindir=$ac_optarg ;;
710
711   -sharedstatedir | --sharedstatedir | --sharedstatedi \
712   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713   | --sharedst | --shareds | --shared | --share | --shar \
714   | --sha | --sh)
715     ac_prev=sharedstatedir ;;
716   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
719   | --sha=* | --sh=*)
720     sharedstatedir=$ac_optarg ;;
721
722   -site | --site | --sit)
723     ac_prev=site ;;
724   -site=* | --site=* | --sit=*)
725     site=$ac_optarg ;;
726
727   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
728     ac_prev=srcdir ;;
729   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
730     srcdir=$ac_optarg ;;
731
732   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733   | --syscon | --sysco | --sysc | --sys | --sy)
734     ac_prev=sysconfdir ;;
735   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737     sysconfdir=$ac_optarg ;;
738
739   -target | --target | --targe | --targ | --tar | --ta | --t)
740     ac_prev=target_alias ;;
741   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742     target_alias=$ac_optarg ;;
743
744   -v | -verbose | --verbose | --verbos | --verbo | --verb)
745     verbose=yes ;;
746
747   -version | --version | --versio | --versi | --vers | -V)
748     ac_init_version=: ;;
749
750   -with-* | --with-*)
751     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752     # Reject names that are not valid shell variable names.
753     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754       { echo "$as_me: error: invalid package name: $ac_package" >&2
755    { (exit 1); exit 1; }; }
756     ac_package=`echo $ac_package| sed 's/-/_/g'`
757     case $ac_option in
758       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
759       *) ac_optarg=yes ;;
760     esac
761     eval "with_$ac_package='$ac_optarg'" ;;
762
763   -without-* | --without-*)
764     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765     # Reject names that are not valid shell variable names.
766     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767       { echo "$as_me: error: invalid package name: $ac_package" >&2
768    { (exit 1); exit 1; }; }
769     ac_package=`echo $ac_package | sed 's/-/_/g'`
770     eval "with_$ac_package=no" ;;
771
772   --x)
773     # Obsolete; use --with-x.
774     with_x=yes ;;
775
776   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777   | --x-incl | --x-inc | --x-in | --x-i)
778     ac_prev=x_includes ;;
779   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781     x_includes=$ac_optarg ;;
782
783   -x-libraries | --x-libraries | --x-librarie | --x-librari \
784   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785     ac_prev=x_libraries ;;
786   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788     x_libraries=$ac_optarg ;;
789
790   -*) { echo "$as_me: error: unrecognized option: $ac_option
791 Try \`$0 --help' for more information." >&2
792    { (exit 1); exit 1; }; }
793     ;;
794
795   *=*)
796     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797     # Reject names that are not valid shell variable names.
798     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800    { (exit 1); exit 1; }; }
801     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802     eval "$ac_envvar='$ac_optarg'"
803     export $ac_envvar ;;
804
805   *)
806     # FIXME: should be removed in autoconf 3.0.
807     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811     ;;
812
813   esac
814 done
815
816 if test -n "$ac_prev"; then
817   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818   { echo "$as_me: error: missing argument to $ac_option" >&2
819    { (exit 1); exit 1; }; }
820 fi
821
822 # Be sure to have absolute paths.
823 for ac_var in exec_prefix prefix
824 do
825   eval ac_val=$`echo $ac_var`
826   case $ac_val in
827     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829    { (exit 1); exit 1; }; };;
830   esac
831 done
832
833 # Be sure to have absolute paths.
834 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835               localstatedir libdir includedir oldincludedir infodir mandir
836 do
837   eval ac_val=$`echo $ac_var`
838   case $ac_val in
839     [\\/$]* | ?:[\\/]* ) ;;
840     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841    { (exit 1); exit 1; }; };;
842   esac
843 done
844
845 # There might be people who depend on the old broken behavior: `$host'
846 # used to hold the argument of --host etc.
847 # FIXME: To remove some day.
848 build=$build_alias
849 host=$host_alias
850 target=$target_alias
851
852 # FIXME: To remove some day.
853 if test "x$host_alias" != x; then
854   if test "x$build_alias" = x; then
855     cross_compiling=maybe
856     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857     If a cross compiler is detected then cross compile mode will be used." >&2
858   elif test "x$build_alias" != "x$host_alias"; then
859     cross_compiling=yes
860   fi
861 fi
862
863 ac_tool_prefix=
864 test -n "$host_alias" && ac_tool_prefix=$host_alias-
865
866 test "$silent" = yes && exec 6>/dev/null
867
868
869 # Find the source files, if location was not specified.
870 if test -z "$srcdir"; then
871   ac_srcdir_defaulted=yes
872   # Try the directory containing this script, then its parent.
873   ac_confdir=`(dirname "$0") 2>/dev/null ||
874 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875          X"$0" : 'X\(//\)[^/]' \| \
876          X"$0" : 'X\(//\)$' \| \
877          X"$0" : 'X\(/\)' \| \
878          .     : '\(.\)' 2>/dev/null ||
879 echo X"$0" |
880     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882           /^X\(\/\/\)$/{ s//\1/; q; }
883           /^X\(\/\).*/{ s//\1/; q; }
884           s/.*/./; q'`
885   srcdir=$ac_confdir
886   if test ! -r $srcdir/$ac_unique_file; then
887     srcdir=..
888   fi
889 else
890   ac_srcdir_defaulted=no
891 fi
892 if test ! -r $srcdir/$ac_unique_file; then
893   if test "$ac_srcdir_defaulted" = yes; then
894     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895    { (exit 1); exit 1; }; }
896   else
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898    { (exit 1); exit 1; }; }
899   fi
900 fi
901 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903    { (exit 1); exit 1; }; }
904 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905 ac_env_build_alias_set=${build_alias+set}
906 ac_env_build_alias_value=$build_alias
907 ac_cv_env_build_alias_set=${build_alias+set}
908 ac_cv_env_build_alias_value=$build_alias
909 ac_env_host_alias_set=${host_alias+set}
910 ac_env_host_alias_value=$host_alias
911 ac_cv_env_host_alias_set=${host_alias+set}
912 ac_cv_env_host_alias_value=$host_alias
913 ac_env_target_alias_set=${target_alias+set}
914 ac_env_target_alias_value=$target_alias
915 ac_cv_env_target_alias_set=${target_alias+set}
916 ac_cv_env_target_alias_value=$target_alias
917 ac_env_CXX_set=${CXX+set}
918 ac_env_CXX_value=$CXX
919 ac_cv_env_CXX_set=${CXX+set}
920 ac_cv_env_CXX_value=$CXX
921 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
922 ac_env_CXXFLAGS_value=$CXXFLAGS
923 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
924 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
925 ac_env_LDFLAGS_set=${LDFLAGS+set}
926 ac_env_LDFLAGS_value=$LDFLAGS
927 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_cv_env_LDFLAGS_value=$LDFLAGS
929 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930 ac_env_CPPFLAGS_value=$CPPFLAGS
931 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933 ac_env_CC_set=${CC+set}
934 ac_env_CC_value=$CC
935 ac_cv_env_CC_set=${CC+set}
936 ac_cv_env_CC_value=$CC
937 ac_env_CFLAGS_set=${CFLAGS+set}
938 ac_env_CFLAGS_value=$CFLAGS
939 ac_cv_env_CFLAGS_set=${CFLAGS+set}
940 ac_cv_env_CFLAGS_value=$CFLAGS
941 ac_env_CPP_set=${CPP+set}
942 ac_env_CPP_value=$CPP
943 ac_cv_env_CPP_set=${CPP+set}
944 ac_cv_env_CPP_value=$CPP
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
957
958 #
959 # Report the --help message.
960 #
961 if test "$ac_init_help" = "long"; then
962   # Omit some internal or obsolete options to make the list less imposing.
963   # This message is too long to be a string in the A/UX 3.1 sh.
964   cat <<_ACEOF
965 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
966
967 Usage: $0 [OPTION]... [VAR=VALUE]...
968
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE.  See below for descriptions of some of the useful variables.
971
972 Defaults for the options are specified in brackets.
973
974 Configuration:
975   -h, --help              display this help and exit
976       --help=short        display options specific to this package
977       --help=recursive    display the short help of all the included packages
978   -V, --version           display version information and exit
979   -q, --quiet, --silent   do not print \`checking...' messages
980       --cache-file=FILE   cache test results in FILE [disabled]
981   -C, --config-cache      alias for \`--cache-file=config.cache'
982   -n, --no-create         do not create output files
983       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
984
985 _ACEOF
986
987   cat <<_ACEOF
988 Installation directories:
989   --prefix=PREFIX         install architecture-independent files in PREFIX
990                           [$ac_default_prefix]
991   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
992                           [PREFIX]
993
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
998
999 For better control, use the options below.
1000
1001 Fine tuning of the installation directories:
1002   --bindir=DIR           user executables [EPREFIX/bin]
1003   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1004   --libexecdir=DIR       program executables [EPREFIX/libexec]
1005   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1006   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1007   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1008   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1009   --libdir=DIR           object code libraries [EPREFIX/lib]
1010   --includedir=DIR       C header files [PREFIX/include]
1011   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1012   --infodir=DIR          info documentation [PREFIX/info]
1013   --mandir=DIR           man documentation [PREFIX/man]
1014 _ACEOF
1015
1016   cat <<\_ACEOF
1017
1018 System types:
1019   --build=BUILD     configure for building on BUILD [guessed]
1020   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1021   --target=TARGET   configure for building compilers for TARGET [HOST]
1022 _ACEOF
1023 fi
1024
1025 if test -n "$ac_init_help"; then
1026   case $ac_init_help in
1027      short | recursive ) echo "Configuration of LLVM 1.4:";;
1028    esac
1029   cat <<\_ACEOF
1030
1031 Optional Features:
1032   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1033   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1034   --enable-shared[=PKGS]
1035                           build shared libraries [default=yes]
1036   --enable-static[=PKGS]
1037                           build static libraries [default=yes]
1038   --enable-fast-install[=PKGS]
1039                           optimize for fast installation [default=yes]
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --enable-optimized      Compile with optimizations enabled (default is NO)
1042   --enable-jit            Enable Just In Time Compiling (default is YES)
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   --with-llvmgccdir       Location of LLVM GCC front-end
1053
1054 Some influential environment variables:
1055   CXX         C++ compiler command
1056   CXXFLAGS    C++ compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   CPP         C preprocessor
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076   # If there are subdirs, report their specific --help.
1077   ac_popdir=`pwd`
1078   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079     test -d $ac_dir || continue
1080     ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084   # A "../" for each directory in $ac_dir_suffix.
1085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087   ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091   .)  # No --srcdir option.  We are building in place.
1092     ac_srcdir=.
1093     if test -z "$ac_top_builddir"; then
1094        ac_top_srcdir=.
1095     else
1096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097     fi ;;
1098   [\\/]* | ?:[\\/]* )  # Absolute path.
1099     ac_srcdir=$srcdir$ac_dir_suffix;
1100     ac_top_srcdir=$srcdir ;;
1101   *) # Relative path.
1102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106 # absolute.
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112     cd $ac_dir
1113     # Check for guested configure; otherwise get Cygnus style configure.
1114     if test -f $ac_srcdir/configure.gnu; then
1115       echo
1116       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117     elif test -f $ac_srcdir/configure; then
1118       echo
1119       $SHELL $ac_srcdir/configure  --help=recursive
1120     elif test -f $ac_srcdir/configure.ac ||
1121            test -f $ac_srcdir/configure.in; then
1122       echo
1123       $ac_configure --help
1124     else
1125       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126     fi
1127     cd $ac_popdir
1128   done
1129 fi
1130
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1133   cat <<\_ACEOF
1134 LLVM configure 1.4
1135 generated by GNU Autoconf 2.57
1136
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by LLVM $as_me 1.4, which was
1150 generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core core.* *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486 ac_aux_dir=
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488   if test -f $ac_dir/install-sh; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/install-sh -c"
1491     break
1492   elif test -f $ac_dir/install.sh; then
1493     ac_aux_dir=$ac_dir
1494     ac_install_sh="$ac_aux_dir/install.sh -c"
1495     break
1496   elif test -f $ac_dir/shtool; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/shtool install -c"
1499     break
1500   fi
1501 done
1502 if test -z "$ac_aux_dir"; then
1503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512 if test ${srcdir} != "."
1513 then
1514         if test -f ${srcdir}/include/llvm/Config/config.h
1515         then
1516                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518    { (exit 1); exit 1; }; }
1519         fi
1520 fi
1521
1522 for i in `ls ${srcdir}/projects`
1523 do
1524   if test -d ${srcdir}/projects/${i} ; then
1525     case ${i} in
1526       "CVS") ;;
1527       "sample")
1528
1529 subdirs="$subdirs projects/sample"
1530     ;;
1531       "Stacker")
1532
1533 subdirs="$subdirs projects/Stacker"
1534    ;;
1535       "llvm-test")
1536
1537 subdirs="$subdirs projects/llvm-test"
1538  ;;
1539       "llvm-reopt")
1540
1541 subdirs="$subdirs projects/llvm-reopt"
1542 ;;
1543       "llvm-gcc")
1544
1545 subdirs="$subdirs projects/llvm-gcc"
1546   ;;
1547       "llvm-java")
1548
1549 subdirs="$subdirs projects/llvm-java"
1550  ;;
1551       "llvm-tv")
1552
1553 subdirs="$subdirs projects/llvm-tv"
1554    ;;
1555       "llvm-fefw")
1556
1557 subdirs="$subdirs projects/llvm-fefw"
1558  ;;
1559       *)
1560
1561 subdirs="$subdirs ${i}"
1562  ;;
1563     esac
1564   fi
1565 done
1566
1567           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1568
1569
1570                                                             ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
1571
1572
1573           ac_config_commands="$ac_config_commands Makefile"
1574
1575
1576           ac_config_commands="$ac_config_commands Makefile.common"
1577
1578
1579           ac_config_commands="$ac_config_commands examples/Makefile"
1580
1581
1582           ac_config_commands="$ac_config_commands lib/Makefile"
1583
1584
1585           ac_config_commands="$ac_config_commands runtime/Makefile"
1586
1587
1588           ac_config_commands="$ac_config_commands test/Makefile"
1589
1590
1591           ac_config_commands="$ac_config_commands test/Makefile.tests"
1592
1593
1594           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1595
1596
1597           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1598
1599
1600           ac_config_commands="$ac_config_commands tools/Makefile"
1601
1602
1603           ac_config_commands="$ac_config_commands utils/Makefile"
1604
1605
1606           ac_config_commands="$ac_config_commands projects/Makefile"
1607
1608
1609
1610 # Find a good install program.  We prefer a C program (faster),
1611 # so one script is as good as another.  But avoid the broken or
1612 # incompatible versions:
1613 # SysV /etc/install, /usr/sbin/install
1614 # SunOS /usr/etc/install
1615 # IRIX /sbin/install
1616 # AIX /bin/install
1617 # AmigaOS /C/install, which installs bootblocks on floppy discs
1618 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1619 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1620 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1621 # ./install, which can be erroneously created by make from ./install.sh.
1622 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1623 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1624 if test -z "$INSTALL"; then
1625 if test "${ac_cv_path_install+set}" = set; then
1626   echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631   IFS=$as_save_IFS
1632   test -z "$as_dir" && as_dir=.
1633   # Account for people who put trailing slashes in PATH elements.
1634 case $as_dir/ in
1635   ./ | .// | /cC/* | \
1636   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1637   /usr/ucb/* ) ;;
1638   *)
1639     # OSF1 and SCO ODT 3.0 have their own names for install.
1640     # Don't use installbsd from OSF since it installs stuff as root
1641     # by default.
1642     for ac_prog in ginstall scoinst install; do
1643       for ac_exec_ext in '' $ac_executable_extensions; do
1644         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1645           if test $ac_prog = install &&
1646             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1647             # AIX install.  It has an incompatible calling convention.
1648             :
1649           elif test $ac_prog = install &&
1650             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1651             # program-specific install script used by HP pwplus--don't use.
1652             :
1653           else
1654             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1655             break 3
1656           fi
1657         fi
1658       done
1659     done
1660     ;;
1661 esac
1662 done
1663
1664
1665 fi
1666   if test "${ac_cv_path_install+set}" = set; then
1667     INSTALL=$ac_cv_path_install
1668   else
1669     # As a last resort, use the slow shell script.  We don't cache a
1670     # path for INSTALL within a source directory, because that will
1671     # break other packages using the cache if that directory is
1672     # removed, or if the path is relative.
1673     INSTALL=$ac_install_sh
1674   fi
1675 fi
1676 echo "$as_me:$LINENO: result: $INSTALL" >&5
1677 echo "${ECHO_T}$INSTALL" >&6
1678
1679 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1680 # It thinks the first close brace ends the variable substitution.
1681 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1682
1683 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1684
1685 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1686
1687
1688 # Make sure we can run config.sub.
1689 $ac_config_sub sun4 >/dev/null 2>&1 ||
1690   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1691 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1692    { (exit 1); exit 1; }; }
1693
1694 echo "$as_me:$LINENO: checking build system type" >&5
1695 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1696 if test "${ac_cv_build+set}" = set; then
1697   echo $ECHO_N "(cached) $ECHO_C" >&6
1698 else
1699   ac_cv_build_alias=$build_alias
1700 test -z "$ac_cv_build_alias" &&
1701   ac_cv_build_alias=`$ac_config_guess`
1702 test -z "$ac_cv_build_alias" &&
1703   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1704 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1705    { (exit 1); exit 1; }; }
1706 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1707   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1708 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1709    { (exit 1); exit 1; }; }
1710
1711 fi
1712 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1713 echo "${ECHO_T}$ac_cv_build" >&6
1714 build=$ac_cv_build
1715 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1716 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1717 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1718
1719
1720 echo "$as_me:$LINENO: checking host system type" >&5
1721 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1722 if test "${ac_cv_host+set}" = set; then
1723   echo $ECHO_N "(cached) $ECHO_C" >&6
1724 else
1725   ac_cv_host_alias=$host_alias
1726 test -z "$ac_cv_host_alias" &&
1727   ac_cv_host_alias=$ac_cv_build_alias
1728 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1729   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1730 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1731    { (exit 1); exit 1; }; }
1732
1733 fi
1734 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1735 echo "${ECHO_T}$ac_cv_host" >&6
1736 host=$ac_cv_host
1737 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1738 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1739 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1740
1741
1742 echo "$as_me:$LINENO: checking target system type" >&5
1743 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1744 if test "${ac_cv_target+set}" = set; then
1745   echo $ECHO_N "(cached) $ECHO_C" >&6
1746 else
1747   ac_cv_target_alias=$target_alias
1748 test "x$ac_cv_target_alias" = "x" &&
1749   ac_cv_target_alias=$ac_cv_host_alias
1750 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1751   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1752 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1753    { (exit 1); exit 1; }; }
1754
1755 fi
1756 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1757 echo "${ECHO_T}$ac_cv_target" >&6
1758 target=$ac_cv_target
1759 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1760 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1761 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1762
1763
1764 # The aliases save the names the user supplied, while $host etc.
1765 # will get canonicalized.
1766 test -n "$target_alias" &&
1767   test "$program_prefix$program_suffix$program_transform_name" = \
1768     NONENONEs,x,x, &&
1769   program_prefix=${target_alias}-
1770
1771
1772 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1773 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1774 case $build in
1775         *-*-aix*)
1776              OS=AIX
1777
1778              platform_type="AIX"
1779              ;;
1780         *-*-cygwin*)
1781              OS=Cygwin
1782
1783              platform_type="Cygwin"
1784              ;;
1785         *-*-darwin*)
1786              OS=Darwin
1787
1788              platform_type="Darwin"
1789              ;;
1790         *-*-freebsd*)
1791              OS=Linux
1792
1793              platform_type="FreeBSD"
1794              ;;
1795         *-*-interix*)
1796              OS=SunOS
1797
1798              platform_type="Interix"
1799              ;;
1800         *-*-linux*)
1801              OS=Linux
1802
1803              platform_type="Linux"
1804              if test -d /home/vadve/lattner/local/x86/llvm-gcc
1805              then
1806                LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1807
1808              fi
1809              ;;
1810         *-*-solaris*)
1811              OS=SunOS
1812
1813              platform_type="SunOS"
1814              if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1815              then
1816                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1817
1818              fi
1819              ;;
1820         *-*-win32*)
1821              OS=Win32
1822
1823              platform_type="Win32"
1824              ;;
1825         *-*-mingw*)
1826              OS=Win32
1827
1828              platform_type="Win32"
1829              ;;
1830         *)
1831              OS=Unknown
1832
1833              platform_type="Unknown"
1834              ;;
1835 esac
1836
1837 if test "$platform_type" = "Unknown" ; then
1838   { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1839 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1840    { (exit 1); exit 1; }; }
1841 fi
1842
1843           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1844
1845
1846 echo "$as_me:$LINENO: result: $platform_type" >&5
1847 echo "${ECHO_T}$platform_type" >&6
1848
1849 echo "$as_me:$LINENO: checking target architecture" >&5
1850 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1851 case $target in
1852         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1853
1854                             ;;
1855 esac
1856
1857 case $target in
1858         i*86-*)
1859           ARCH="x86"
1860           ARCH=x86
1861
1862           ;;
1863         sparc*-*)
1864           ARCH="Sparc"
1865           ARCH=Sparc
1866
1867           ;;
1868         powerpc*-*)
1869           ARCH="PowerPC"
1870           ARCH=PowerPC
1871
1872           ;;
1873         *)
1874           ARCH="Unknown"
1875           ARCH=Unknown
1876
1877           ;;
1878 esac
1879
1880 echo "$as_me:$LINENO: result: $ARCH" >&5
1881 echo "${ECHO_T}$ARCH" >&6
1882
1883 ac_ext=cc
1884 ac_cpp='$CXXCPP $CPPFLAGS'
1885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1888 if test -n "$ac_tool_prefix"; then
1889   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1890   do
1891     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_CXX+set}" = set; then
1896   echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898   if test -n "$CXX"; then
1899   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1900 else
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 for as_dir in $PATH
1903 do
1904   IFS=$as_save_IFS
1905   test -z "$as_dir" && as_dir=.
1906   for ac_exec_ext in '' $ac_executable_extensions; do
1907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910     break 2
1911   fi
1912 done
1913 done
1914
1915 fi
1916 fi
1917 CXX=$ac_cv_prog_CXX
1918 if test -n "$CXX"; then
1919   echo "$as_me:$LINENO: result: $CXX" >&5
1920 echo "${ECHO_T}$CXX" >&6
1921 else
1922   echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6
1924 fi
1925
1926     test -n "$CXX" && break
1927   done
1928 fi
1929 if test -z "$CXX"; then
1930   ac_ct_CXX=$CXX
1931   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1932 do
1933   # Extract the first word of "$ac_prog", so it can be a program name with args.
1934 set dummy $ac_prog; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   if test -n "$ac_ct_CXX"; then
1941   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
1947   test -z "$as_dir" && as_dir=.
1948   for ac_exec_ext in '' $ac_executable_extensions; do
1949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950     ac_cv_prog_ac_ct_CXX="$ac_prog"
1951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952     break 2
1953   fi
1954 done
1955 done
1956
1957 fi
1958 fi
1959 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1960 if test -n "$ac_ct_CXX"; then
1961   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1962 echo "${ECHO_T}$ac_ct_CXX" >&6
1963 else
1964   echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1966 fi
1967
1968   test -n "$ac_ct_CXX" && break
1969 done
1970 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1971
1972   CXX=$ac_ct_CXX
1973 fi
1974
1975
1976 # Provide some information about the compiler.
1977 echo "$as_me:$LINENO:" \
1978      "checking for C++ compiler version" >&5
1979 ac_compiler=`set X $ac_compile; echo $2`
1980 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1981   (eval $ac_compiler --version </dev/null >&5) 2>&5
1982   ac_status=$?
1983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984   (exit $ac_status); }
1985 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1986   (eval $ac_compiler -v </dev/null >&5) 2>&5
1987   ac_status=$?
1988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989   (exit $ac_status); }
1990 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1991   (eval $ac_compiler -V </dev/null >&5) 2>&5
1992   ac_status=$?
1993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994   (exit $ac_status); }
1995
1996 cat >conftest.$ac_ext <<_ACEOF
1997 #line $LINENO "configure"
1998 /* confdefs.h.  */
1999 _ACEOF
2000 cat confdefs.h >>conftest.$ac_ext
2001 cat >>conftest.$ac_ext <<_ACEOF
2002 /* end confdefs.h.  */
2003
2004 int
2005 main ()
2006 {
2007
2008   ;
2009   return 0;
2010 }
2011 _ACEOF
2012 ac_clean_files_save=$ac_clean_files
2013 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2014 # Try to create an executable without -o first, disregard a.out.
2015 # It will help us diagnose broken compilers, and finding out an intuition
2016 # of exeext.
2017 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2018 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2019 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2020 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2021   (eval $ac_link_default) 2>&5
2022   ac_status=$?
2023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024   (exit $ac_status); }; then
2025   # Find the output, starting from the most likely.  This scheme is
2026 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2027 # resort.
2028
2029 # Be careful to initialize this variable, since it used to be cached.
2030 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2031 ac_cv_exeext=
2032 # b.out is created by i960 compilers.
2033 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2034 do
2035   test -f "$ac_file" || continue
2036   case $ac_file in
2037     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2038         ;;
2039     conftest.$ac_ext )
2040         # This is the source file.
2041         ;;
2042     [ab].out )
2043         # We found the default executable, but exeext='' is most
2044         # certainly right.
2045         break;;
2046     *.* )
2047         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048         # FIXME: I believe we export ac_cv_exeext for Libtool,
2049         # but it would be cool to find out if it's true.  Does anybody
2050         # maintain Libtool? --akim.
2051         export ac_cv_exeext
2052         break;;
2053     * )
2054         break;;
2055   esac
2056 done
2057 else
2058   echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2060
2061 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: C++ compiler cannot create executables
2064 See \`config.log' for more details." >&2;}
2065    { (exit 77); exit 77; }; }
2066 fi
2067
2068 ac_exeext=$ac_cv_exeext
2069 echo "$as_me:$LINENO: result: $ac_file" >&5
2070 echo "${ECHO_T}$ac_file" >&6
2071
2072 # Check the compiler produces executables we can run.  If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2075 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2076 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077 # If not cross compiling, check that we can run a simple program.
2078 if test "$cross_compiling" != yes; then
2079   if { ac_try='./$ac_file'
2080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081   (eval $ac_try) 2>&5
2082   ac_status=$?
2083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084   (exit $ac_status); }; }; then
2085     cross_compiling=no
2086   else
2087     if test "$cross_compiling" = maybe; then
2088         cross_compiling=yes
2089     else
2090         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2091 If you meant to cross compile, use \`--host'.
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: cannot run C++ compiled programs.
2094 If you meant to cross compile, use \`--host'.
2095 See \`config.log' for more details." >&2;}
2096    { (exit 1); exit 1; }; }
2097     fi
2098   fi
2099 fi
2100 echo "$as_me:$LINENO: result: yes" >&5
2101 echo "${ECHO_T}yes" >&6
2102
2103 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2104 ac_clean_files=$ac_clean_files_save
2105 # Check the compiler produces executables we can run.  If not, either
2106 # the compiler is broken, or we cross compile.
2107 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2108 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2109 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2110 echo "${ECHO_T}$cross_compiling" >&6
2111
2112 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2113 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2115   (eval $ac_link) 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }; then
2119   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2120 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2121 # work properly (i.e., refer to `conftest.exe'), while it won't with
2122 # `rm'.
2123 for ac_file in conftest.exe conftest conftest.*; do
2124   test -f "$ac_file" || continue
2125   case $ac_file in
2126     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2127     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128           export ac_cv_exeext
2129           break;;
2130     * ) break;;
2131   esac
2132 done
2133 else
2134   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2137 See \`config.log' for more details." >&2;}
2138    { (exit 1); exit 1; }; }
2139 fi
2140
2141 rm -f conftest$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143 echo "${ECHO_T}$ac_cv_exeext" >&6
2144
2145 rm -f conftest.$ac_ext
2146 EXEEXT=$ac_cv_exeext
2147 ac_exeext=$EXEEXT
2148 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2149 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2150 if test "${ac_cv_objext+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   cat >conftest.$ac_ext <<_ACEOF
2154 #line $LINENO "configure"
2155 /* confdefs.h.  */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h.  */
2160
2161 int
2162 main ()
2163 {
2164
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 rm -f conftest.o conftest.obj
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171   (eval $ac_compile) 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; then
2175   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2176   case $ac_file in
2177     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2178     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2179        break;;
2180   esac
2181 done
2182 else
2183   echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2185
2186 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2189 See \`config.log' for more details." >&2;}
2190    { (exit 1); exit 1; }; }
2191 fi
2192
2193 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2194 fi
2195 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2196 echo "${ECHO_T}$ac_cv_objext" >&6
2197 OBJEXT=$ac_cv_objext
2198 ac_objext=$OBJEXT
2199 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2200 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2201 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   cat >conftest.$ac_ext <<_ACEOF
2205 #line $LINENO "configure"
2206 /* confdefs.h.  */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h.  */
2211
2212 int
2213 main ()
2214 {
2215 #ifndef __GNUC__
2216        choke me
2217 #endif
2218
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } &&
2229          { ac_try='test -s conftest.$ac_objext'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235   ac_compiler_gnu=yes
2236 else
2237   echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 ac_compiler_gnu=no
2241 fi
2242 rm -f conftest.$ac_objext conftest.$ac_ext
2243 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2244
2245 fi
2246 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2247 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2248 GXX=`test $ac_compiler_gnu = yes && echo yes`
2249 ac_test_CXXFLAGS=${CXXFLAGS+set}
2250 ac_save_CXXFLAGS=$CXXFLAGS
2251 CXXFLAGS="-g"
2252 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2253 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2254 if test "${ac_cv_prog_cxx_g+set}" = set; then
2255   echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257   cat >conftest.$ac_ext <<_ACEOF
2258 #line $LINENO "configure"
2259 /* confdefs.h.  */
2260 _ACEOF
2261 cat confdefs.h >>conftest.$ac_ext
2262 cat >>conftest.$ac_ext <<_ACEOF
2263 /* end confdefs.h.  */
2264
2265 int
2266 main ()
2267 {
2268
2269   ;
2270   return 0;
2271 }
2272 _ACEOF
2273 rm -f conftest.$ac_objext
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275   (eval $ac_compile) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); } &&
2279          { ac_try='test -s conftest.$ac_objext'
2280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281   (eval $ac_try) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; }; then
2285   ac_cv_prog_cxx_g=yes
2286 else
2287   echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2289
2290 ac_cv_prog_cxx_g=no
2291 fi
2292 rm -f conftest.$ac_objext conftest.$ac_ext
2293 fi
2294 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2295 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2296 if test "$ac_test_CXXFLAGS" = set; then
2297   CXXFLAGS=$ac_save_CXXFLAGS
2298 elif test $ac_cv_prog_cxx_g = yes; then
2299   if test "$GXX" = yes; then
2300     CXXFLAGS="-g -O2"
2301   else
2302     CXXFLAGS="-g"
2303   fi
2304 else
2305   if test "$GXX" = yes; then
2306     CXXFLAGS="-O2"
2307   else
2308     CXXFLAGS=
2309   fi
2310 fi
2311 for ac_declaration in \
2312    ''\
2313    '#include <stdlib.h>' \
2314    'extern "C" void std::exit (int) throw (); using std::exit;' \
2315    'extern "C" void std::exit (int); using std::exit;' \
2316    'extern "C" void exit (int) throw ();' \
2317    'extern "C" void exit (int);' \
2318    'void exit (int);'
2319 do
2320   cat >conftest.$ac_ext <<_ACEOF
2321 #line $LINENO "configure"
2322 /* confdefs.h.  */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h.  */
2327 #include <stdlib.h>
2328 $ac_declaration
2329 int
2330 main ()
2331 {
2332 exit (42);
2333   ;
2334   return 0;
2335 }
2336 _ACEOF
2337 rm -f conftest.$ac_objext
2338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339   (eval $ac_compile) 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); } &&
2343          { ac_try='test -s conftest.$ac_objext'
2344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345   (eval $ac_try) 2>&5
2346   ac_status=$?
2347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348   (exit $ac_status); }; }; then
2349   :
2350 else
2351   echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2353
2354 continue
2355 fi
2356 rm -f conftest.$ac_objext conftest.$ac_ext
2357   cat >conftest.$ac_ext <<_ACEOF
2358 #line $LINENO "configure"
2359 /* confdefs.h.  */
2360 _ACEOF
2361 cat confdefs.h >>conftest.$ac_ext
2362 cat >>conftest.$ac_ext <<_ACEOF
2363 /* end confdefs.h.  */
2364 $ac_declaration
2365 int
2366 main ()
2367 {
2368 exit (42);
2369   ;
2370   return 0;
2371 }
2372 _ACEOF
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375   (eval $ac_compile) 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); } &&
2379          { ac_try='test -s conftest.$ac_objext'
2380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381   (eval $ac_try) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; }; then
2385   break
2386 else
2387   echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389
2390 fi
2391 rm -f conftest.$ac_objext conftest.$ac_ext
2392 done
2393 rm -f conftest*
2394 if test -n "$ac_declaration"; then
2395   echo '#ifdef __cplusplus' >>confdefs.h
2396   echo $ac_declaration      >>confdefs.h
2397   echo '#endif'             >>confdefs.h
2398 fi
2399
2400 ac_ext=c
2401 ac_cpp='$CPP $CPPFLAGS'
2402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2405
2406 ac_ext=c
2407 ac_cpp='$CPP $CPPFLAGS'
2408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411 if test -n "$ac_tool_prefix"; then
2412   for ac_prog in gcc
2413   do
2414     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2416 echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419   echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421   if test -n "$CC"; then
2422   ac_cv_prog_CC="$CC" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427   IFS=$as_save_IFS
2428   test -z "$as_dir" && as_dir=.
2429   for ac_exec_ext in '' $ac_executable_extensions; do
2430   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433     break 2
2434   fi
2435 done
2436 done
2437
2438 fi
2439 fi
2440 CC=$ac_cv_prog_CC
2441 if test -n "$CC"; then
2442   echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6
2444 else
2445   echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6
2447 fi
2448
2449     test -n "$CC" && break
2450   done
2451 fi
2452 if test -z "$CC"; then
2453   ac_ct_CC=$CC
2454   for ac_prog in gcc
2455 do
2456   # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2461   echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463   if test -n "$ac_ct_CC"; then
2464   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469   IFS=$as_save_IFS
2470   test -z "$as_dir" && as_dir=.
2471   for ac_exec_ext in '' $ac_executable_extensions; do
2472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473     ac_cv_prog_ac_ct_CC="$ac_prog"
2474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475     break 2
2476   fi
2477 done
2478 done
2479
2480 fi
2481 fi
2482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483 if test -n "$ac_ct_CC"; then
2484   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485 echo "${ECHO_T}$ac_ct_CC" >&6
2486 else
2487   echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2489 fi
2490
2491   test -n "$ac_ct_CC" && break
2492 done
2493
2494   CC=$ac_ct_CC
2495 fi
2496
2497
2498 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2499 See \`config.log' for more details." >&5
2500 echo "$as_me: error: no acceptable C compiler found in \$PATH
2501 See \`config.log' for more details." >&2;}
2502    { (exit 1); exit 1; }; }
2503
2504 # Provide some information about the compiler.
2505 echo "$as_me:$LINENO:" \
2506      "checking for C compiler version" >&5
2507 ac_compiler=`set X $ac_compile; echo $2`
2508 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2509   (eval $ac_compiler --version </dev/null >&5) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }
2513 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2514   (eval $ac_compiler -v </dev/null >&5) 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }
2518 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2519   (eval $ac_compiler -V </dev/null >&5) 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); }
2523
2524 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2525 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2526 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2527   echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529   cat >conftest.$ac_ext <<_ACEOF
2530 #line $LINENO "configure"
2531 /* confdefs.h.  */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h.  */
2536
2537 int
2538 main ()
2539 {
2540 #ifndef __GNUC__
2541        choke me
2542 #endif
2543
2544   ;
2545   return 0;
2546 }
2547 _ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550   (eval $ac_compile) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } &&
2554          { ac_try='test -s conftest.$ac_objext'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; }; then
2560   ac_compiler_gnu=yes
2561 else
2562   echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2564
2565 ac_compiler_gnu=no
2566 fi
2567 rm -f conftest.$ac_objext conftest.$ac_ext
2568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2569
2570 fi
2571 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2572 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2573 GCC=`test $ac_compiler_gnu = yes && echo yes`
2574 ac_test_CFLAGS=${CFLAGS+set}
2575 ac_save_CFLAGS=$CFLAGS
2576 CFLAGS="-g"
2577 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2578 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2579 if test "${ac_cv_prog_cc_g+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   cat >conftest.$ac_ext <<_ACEOF
2583 #line $LINENO "configure"
2584 /* confdefs.h.  */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h.  */
2589
2590 int
2591 main ()
2592 {
2593
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600   (eval $ac_compile) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); } &&
2604          { ac_try='test -s conftest.$ac_objext'
2605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606   (eval $ac_try) 2>&5
2607   ac_status=$?
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); }; }; then
2610   ac_cv_prog_cc_g=yes
2611 else
2612   echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2614
2615 ac_cv_prog_cc_g=no
2616 fi
2617 rm -f conftest.$ac_objext conftest.$ac_ext
2618 fi
2619 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2621 if test "$ac_test_CFLAGS" = set; then
2622   CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624   if test "$GCC" = yes; then
2625     CFLAGS="-g -O2"
2626   else
2627     CFLAGS="-g"
2628   fi
2629 else
2630   if test "$GCC" = yes; then
2631     CFLAGS="-O2"
2632   else
2633     CFLAGS=
2634   fi
2635 fi
2636 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2637 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2638 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2639   echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641   ac_cv_prog_cc_stdc=no
2642 ac_save_CC=$CC
2643 cat >conftest.$ac_ext <<_ACEOF
2644 #line $LINENO "configure"
2645 /* confdefs.h.  */
2646 _ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h.  */
2650 #include <stdarg.h>
2651 #include <stdio.h>
2652 #include <sys/types.h>
2653 #include <sys/stat.h>
2654 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2655 struct buf { int x; };
2656 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2657 static char *e (p, i)
2658      char **p;
2659      int i;
2660 {
2661   return p[i];
2662 }
2663 static char *f (char * (*g) (char **, int), char **p, ...)
2664 {
2665   char *s;
2666   va_list v;
2667   va_start (v,p);
2668   s = g (p, va_arg (v,int));
2669   va_end (v);
2670   return s;
2671 }
2672 int test (int i, double x);
2673 struct s1 {int (*f) (int a);};
2674 struct s2 {int (*f) (double a);};
2675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2676 int argc;
2677 char **argv;
2678 int
2679 main ()
2680 {
2681 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2682   ;
2683   return 0;
2684 }
2685 _ACEOF
2686 # Don't try gcc -ansi; that turns off useful extensions and
2687 # breaks some systems' header files.
2688 # AIX                   -qlanglvl=ansi
2689 # Ultrix and OSF/1      -std1
2690 # HP-UX 10.20 and later -Ae
2691 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2692 # SVR4                  -Xc -D__EXTENSIONS__
2693 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694 do
2695   CC="$ac_save_CC $ac_arg"
2696   rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698   (eval $ac_compile) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); } &&
2702          { ac_try='test -s conftest.$ac_objext'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; }; then
2708   ac_cv_prog_cc_stdc=$ac_arg
2709 break
2710 else
2711   echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713
2714 fi
2715 rm -f conftest.$ac_objext
2716 done
2717 rm -f conftest.$ac_ext conftest.$ac_objext
2718 CC=$ac_save_CC
2719
2720 fi
2721
2722 case "x$ac_cv_prog_cc_stdc" in
2723   x|xno)
2724     echo "$as_me:$LINENO: result: none needed" >&5
2725 echo "${ECHO_T}none needed" >&6 ;;
2726   *)
2727     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2728 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2729     CC="$CC $ac_cv_prog_cc_stdc" ;;
2730 esac
2731
2732 # Some people use a C++ compiler to compile C.  Since we use `exit',
2733 # in C++ we need to declare it.  In case someone uses the same compiler
2734 # for both compiling C and C++ we need to have the C++ compiler decide
2735 # the declaration of exit, since it's the most demanding environment.
2736 cat >conftest.$ac_ext <<_ACEOF
2737 #ifndef __cplusplus
2738   choke me
2739 #endif
2740 _ACEOF
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743   (eval $ac_compile) 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   for ac_declaration in \
2754    ''\
2755    '#include <stdlib.h>' \
2756    'extern "C" void std::exit (int) throw (); using std::exit;' \
2757    'extern "C" void std::exit (int); using std::exit;' \
2758    'extern "C" void exit (int) throw ();' \
2759    'extern "C" void exit (int);' \
2760    'void exit (int);'
2761 do
2762   cat >conftest.$ac_ext <<_ACEOF
2763 #line $LINENO "configure"
2764 /* confdefs.h.  */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h.  */
2769 #include <stdlib.h>
2770 $ac_declaration
2771 int
2772 main ()
2773 {
2774 exit (42);
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781   (eval $ac_compile) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); } &&
2785          { ac_try='test -s conftest.$ac_objext'
2786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787   (eval $ac_try) 2>&5
2788   ac_status=$?
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); }; }; then
2791   :
2792 else
2793   echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796 continue
2797 fi
2798 rm -f conftest.$ac_objext conftest.$ac_ext
2799   cat >conftest.$ac_ext <<_ACEOF
2800 #line $LINENO "configure"
2801 /* confdefs.h.  */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h.  */
2806 $ac_declaration
2807 int
2808 main ()
2809 {
2810 exit (42);
2811   ;
2812   return 0;
2813 }
2814 _ACEOF
2815 rm -f conftest.$ac_objext
2816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817   (eval $ac_compile) 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); } &&
2821          { ac_try='test -s conftest.$ac_objext'
2822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823   (eval $ac_try) 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; }; then
2827   break
2828 else
2829   echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832 fi
2833 rm -f conftest.$ac_objext conftest.$ac_ext
2834 done
2835 rm -f conftest*
2836 if test -n "$ac_declaration"; then
2837   echo '#ifdef __cplusplus' >>confdefs.h
2838   echo $ac_declaration      >>confdefs.h
2839   echo '#endif'             >>confdefs.h
2840 fi
2841
2842 else
2843   echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2845
2846 fi
2847 rm -f conftest.$ac_objext conftest.$ac_ext
2848 ac_ext=c
2849 ac_cpp='$CPP $CPPFLAGS'
2850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853
2854 ac_ext=c
2855 ac_cpp='$CPP $CPPFLAGS'
2856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2859 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2860 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2861 # On Suns, sometimes $CPP names a directory.
2862 if test -n "$CPP" && test -d "$CPP"; then
2863   CPP=
2864 fi
2865 if test -z "$CPP"; then
2866   if test "${ac_cv_prog_CPP+set}" = set; then
2867   echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869       # Double quotes because CPP needs to be expanded
2870     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2871     do
2872       ac_preproc_ok=false
2873 for ac_c_preproc_warn_flag in '' yes
2874 do
2875   # Use a header file that comes with gcc, so configuring glibc
2876   # with a fresh cross-compiler works.
2877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878   # <limits.h> exists even on freestanding compilers.
2879   # On the NeXT, cc -E runs the code through the compiler's parser,
2880   # not just through cpp. "Syntax error" is here to catch this case.
2881   cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2883 /* confdefs.h.  */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h.  */
2888 #ifdef __STDC__
2889 # include <limits.h>
2890 #else
2891 # include <assert.h>
2892 #endif
2893                      Syntax error
2894 _ACEOF
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } >/dev/null; then
2903   if test -s conftest.err; then
2904     ac_cpp_err=$ac_c_preproc_warn_flag
2905   else
2906     ac_cpp_err=
2907   fi
2908 else
2909   ac_cpp_err=yes
2910 fi
2911 if test -z "$ac_cpp_err"; then
2912   :
2913 else
2914   echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917   # Broken: fails on valid input.
2918 continue
2919 fi
2920 rm -f conftest.err conftest.$ac_ext
2921
2922   # OK, works on sane cases.  Now check whether non-existent headers
2923   # can be detected and how.
2924   cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #include <ac_nonexistent.h>
2932 _ACEOF
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } >/dev/null; then
2941   if test -s conftest.err; then
2942     ac_cpp_err=$ac_c_preproc_warn_flag
2943   else
2944     ac_cpp_err=
2945   fi
2946 else
2947   ac_cpp_err=yes
2948 fi
2949 if test -z "$ac_cpp_err"; then
2950   # Broken: success on invalid input.
2951 continue
2952 else
2953   echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956   # Passes both tests.
2957 ac_preproc_ok=:
2958 break
2959 fi
2960 rm -f conftest.err conftest.$ac_ext
2961
2962 done
2963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964 rm -f conftest.err conftest.$ac_ext
2965 if $ac_preproc_ok; then
2966   break
2967 fi
2968
2969     done
2970     ac_cv_prog_CPP=$CPP
2971
2972 fi
2973   CPP=$ac_cv_prog_CPP
2974 else
2975   ac_cv_prog_CPP=$CPP
2976 fi
2977 echo "$as_me:$LINENO: result: $CPP" >&5
2978 echo "${ECHO_T}$CPP" >&6
2979 ac_preproc_ok=false
2980 for ac_c_preproc_warn_flag in '' yes
2981 do
2982   # Use a header file that comes with gcc, so configuring glibc
2983   # with a fresh cross-compiler works.
2984   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2985   # <limits.h> exists even on freestanding compilers.
2986   # On the NeXT, cc -E runs the code through the compiler's parser,
2987   # not just through cpp. "Syntax error" is here to catch this case.
2988   cat >conftest.$ac_ext <<_ACEOF
2989 #line $LINENO "configure"
2990 /* confdefs.h.  */
2991 _ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h.  */
2995 #ifdef __STDC__
2996 # include <limits.h>
2997 #else
2998 # include <assert.h>
2999 #endif
3000                      Syntax error
3001 _ACEOF
3002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3004   ac_status=$?
3005   grep -v '^ *+' conftest.er1 >conftest.err
3006   rm -f conftest.er1
3007   cat conftest.err >&5
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); } >/dev/null; then
3010   if test -s conftest.err; then
3011     ac_cpp_err=$ac_c_preproc_warn_flag
3012   else
3013     ac_cpp_err=
3014   fi
3015 else
3016   ac_cpp_err=yes
3017 fi
3018 if test -z "$ac_cpp_err"; then
3019   :
3020 else
3021   echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024   # Broken: fails on valid input.
3025 continue
3026 fi
3027 rm -f conftest.err conftest.$ac_ext
3028
3029   # OK, works on sane cases.  Now check whether non-existent headers
3030   # can be detected and how.
3031   cat >conftest.$ac_ext <<_ACEOF
3032 #line $LINENO "configure"
3033 /* confdefs.h.  */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h.  */
3038 #include <ac_nonexistent.h>
3039 _ACEOF
3040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3041   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3042   ac_status=$?
3043   grep -v '^ *+' conftest.er1 >conftest.err
3044   rm -f conftest.er1
3045   cat conftest.err >&5
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); } >/dev/null; then
3048   if test -s conftest.err; then
3049     ac_cpp_err=$ac_c_preproc_warn_flag
3050   else
3051     ac_cpp_err=
3052   fi
3053 else
3054   ac_cpp_err=yes
3055 fi
3056 if test -z "$ac_cpp_err"; then
3057   # Broken: success on invalid input.
3058 continue
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3062
3063   # Passes both tests.
3064 ac_preproc_ok=:
3065 break
3066 fi
3067 rm -f conftest.err conftest.$ac_ext
3068
3069 done
3070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3071 rm -f conftest.err conftest.$ac_ext
3072 if $ac_preproc_ok; then
3073   :
3074 else
3075   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3078 See \`config.log' for more details." >&2;}
3079    { (exit 1); exit 1; }; }
3080 fi
3081
3082 ac_ext=c
3083 ac_cpp='$CPP $CPPFLAGS'
3084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087
3088
3089 if test "$GCC" != "yes"
3090 then
3091         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3092 echo "$as_me: error: gcc required but not found" >&2;}
3093    { (exit 1); exit 1; }; }
3094 fi
3095 if test "$GXX" != "yes"
3096 then
3097         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3098 echo "$as_me: error: g++ required but not found" >&2;}
3099    { (exit 1); exit 1; }; }
3100 fi
3101
3102 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3103 if test "$gccmajor" -lt "3"
3104 then
3105         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3106 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3107    { (exit 1); exit 1; }; }
3108 fi
3109
3110  echo "$as_me:$LINENO: checking for GNU make" >&5
3111 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3112 if test "${_cv_gnu_make_command+set}" = set; then
3113   echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115   _cv_gnu_make_command='' ;
3116                 for a in "$MAKE" make gmake gnumake ; do
3117                         if test -z "$a" ; then continue ; fi ;
3118                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3119                                 _cv_gnu_make_command=$a ;
3120                                 break;
3121                         fi
3122                 done ;
3123
3124 fi
3125 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3126 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3127         if test  "x$_cv_gnu_make_command" != "x"  ; then
3128                 ifGNUmake='' ;
3129         else
3130                 ifGNUmake='#' ;
3131                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3132 echo "${ECHO_T}\"Not found\"" >&6;
3133         fi
3134
3135
3136 if test -z "$_cv_gnu_make_command"
3137 then
3138         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3139 echo "$as_me: error: GNU Make required but not found" >&2;}
3140    { (exit 1); exit 1; }; }
3141 fi
3142
3143
3144 echo "$as_me:$LINENO: checking " >&5
3145 echo $ECHO_N "checking ... $ECHO_C" >&6
3146 if test "${ac_cv_has_flex+set}" = set; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149   for ac_prog in flex lex
3150 do
3151   # Extract the first word of "$ac_prog", so it can be a program name with args.
3152 set dummy $ac_prog; ac_word=$2
3153 echo "$as_me:$LINENO: checking for $ac_word" >&5
3154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155 if test "${ac_cv_prog_LEX+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   if test -n "$LEX"; then
3159   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164   IFS=$as_save_IFS
3165   test -z "$as_dir" && as_dir=.
3166   for ac_exec_ext in '' $ac_executable_extensions; do
3167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168     ac_cv_prog_LEX="$ac_prog"
3169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170     break 2
3171   fi
3172 done
3173 done
3174
3175 fi
3176 fi
3177 LEX=$ac_cv_prog_LEX
3178 if test -n "$LEX"; then
3179   echo "$as_me:$LINENO: result: $LEX" >&5
3180 echo "${ECHO_T}$LEX" >&6
3181 else
3182   echo "$as_me:$LINENO: result: no" >&5
3183 echo "${ECHO_T}no" >&6
3184 fi
3185
3186   test -n "$LEX" && break
3187 done
3188 test -n "$LEX" || LEX=":"
3189
3190 if test -z "$LEXLIB"
3191 then
3192   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3193 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3194 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   ac_check_lib_save_LIBS=$LIBS
3198 LIBS="-lfl  $LIBS"
3199 cat >conftest.$ac_ext <<_ACEOF
3200 #line $LINENO "configure"
3201 /* confdefs.h.  */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h.  */
3206
3207 /* Override any gcc2 internal prototype to avoid an error.  */
3208 #ifdef __cplusplus
3209 extern "C"
3210 #endif
3211 /* We use char because int might match the return type of a gcc2
3212    builtin and then its argument prototype would still apply.  */
3213 char yywrap ();
3214 int
3215 main ()
3216 {
3217 yywrap ();
3218   ;
3219   return 0;
3220 }
3221 _ACEOF
3222 rm -f conftest.$ac_objext conftest$ac_exeext
3223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3224   (eval $ac_link) 2>&5
3225   ac_status=$?
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } &&
3228          { ac_try='test -s conftest$ac_exeext'
3229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230   (eval $ac_try) 2>&5
3231   ac_status=$?
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); }; }; then
3234   ac_cv_lib_fl_yywrap=yes
3235 else
3236   echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239 ac_cv_lib_fl_yywrap=no
3240 fi
3241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3242 LIBS=$ac_check_lib_save_LIBS
3243 fi
3244 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3245 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3246 if test $ac_cv_lib_fl_yywrap = yes; then
3247   LEXLIB="-lfl"
3248 else
3249   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3250 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3251 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   ac_check_lib_save_LIBS=$LIBS
3255 LIBS="-ll  $LIBS"
3256 cat >conftest.$ac_ext <<_ACEOF
3257 #line $LINENO "configure"
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263
3264 /* Override any gcc2 internal prototype to avoid an error.  */
3265 #ifdef __cplusplus
3266 extern "C"
3267 #endif
3268 /* We use char because int might match the return type of a gcc2
3269    builtin and then its argument prototype would still apply.  */
3270 char yywrap ();
3271 int
3272 main ()
3273 {
3274 yywrap ();
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 rm -f conftest.$ac_objext conftest$ac_exeext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3281   (eval $ac_link) 2>&5
3282   ac_status=$?
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); } &&
3285          { ac_try='test -s conftest$ac_exeext'
3286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287   (eval $ac_try) 2>&5
3288   ac_status=$?
3289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290   (exit $ac_status); }; }; then
3291   ac_cv_lib_l_yywrap=yes
3292 else
3293   echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296 ac_cv_lib_l_yywrap=no
3297 fi
3298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3299 LIBS=$ac_check_lib_save_LIBS
3300 fi
3301 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3302 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3303 if test $ac_cv_lib_l_yywrap = yes; then
3304   LEXLIB="-ll"
3305 fi
3306
3307 fi
3308
3309 fi
3310
3311 if test "x$LEX" != "x:"; then
3312   echo "$as_me:$LINENO: checking lex output file root" >&5
3313 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3314 if test "${ac_cv_prog_lex_root+set}" = set; then
3315   echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317   # The minimal lex program is just a single line: %%.  But some broken lexes
3318 # (Solaris, I think it was) want two %% lines, so accommodate them.
3319 cat >conftest.l <<_ACEOF
3320 %%
3321 %%
3322 _ACEOF
3323 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3324   (eval $LEX conftest.l) 2>&5
3325   ac_status=$?
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); }
3328 if test -f lex.yy.c; then
3329   ac_cv_prog_lex_root=lex.yy
3330 elif test -f lexyy.c; then
3331   ac_cv_prog_lex_root=lexyy
3332 else
3333   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3334 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3335    { (exit 1); exit 1; }; }
3336 fi
3337 fi
3338 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3339 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3340 rm -f conftest.l
3341 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3342
3343 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3344 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3345 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3346   echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348   # POSIX says lex can declare yytext either as a pointer or an array; the
3349 # default is implementation-dependent. Figure out which it is, since
3350 # not all implementations provide the %pointer and %array declarations.
3351 ac_cv_prog_lex_yytext_pointer=no
3352 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3353 ac_save_LIBS=$LIBS
3354 LIBS="$LIBS $LEXLIB"
3355 cat >conftest.$ac_ext <<_ACEOF
3356 `cat $LEX_OUTPUT_ROOT.c`
3357 _ACEOF
3358 rm -f conftest.$ac_objext conftest$ac_exeext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360   (eval $ac_link) 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); } &&
3364          { ac_try='test -s conftest$ac_exeext'
3365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366   (eval $ac_try) 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; }; then
3370   ac_cv_prog_lex_yytext_pointer=yes
3371 else
3372   echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375 fi
3376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3377 LIBS=$ac_save_LIBS
3378 rm -f "${LEX_OUTPUT_ROOT}.c"
3379
3380 fi
3381 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3382 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3383 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3384
3385 cat >>confdefs.h <<\_ACEOF
3386 #define YYTEXT_POINTER 1
3387 _ACEOF
3388
3389 fi
3390
3391 fi
3392
3393 fi
3394 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3395 echo "${ECHO_T}$ac_cv_has_flex" >&6
3396 if test "$LEX" != "flex"; then
3397   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3398 echo "$as_me: error: flex not found but required" >&2;}
3399    { (exit 1); exit 1; }; }
3400 else
3401   FLEX=flex
3402
3403 fi
3404
3405 echo "$as_me:$LINENO: checking " >&5
3406 echo $ECHO_N "checking ... $ECHO_C" >&6
3407 if test "${ac_cv_has_bison+set}" = set; then
3408   echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410   for ac_prog in 'bison -y' byacc
3411 do
3412   # Extract the first word of "$ac_prog", so it can be a program name with args.
3413 set dummy $ac_prog; ac_word=$2
3414 echo "$as_me:$LINENO: checking for $ac_word" >&5
3415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3416 if test "${ac_cv_prog_YACC+set}" = set; then
3417   echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419   if test -n "$YACC"; then
3420   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425   IFS=$as_save_IFS
3426   test -z "$as_dir" && as_dir=.
3427   for ac_exec_ext in '' $ac_executable_extensions; do
3428   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429     ac_cv_prog_YACC="$ac_prog"
3430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431     break 2
3432   fi
3433 done
3434 done
3435
3436 fi
3437 fi
3438 YACC=$ac_cv_prog_YACC
3439 if test -n "$YACC"; then
3440   echo "$as_me:$LINENO: result: $YACC" >&5
3441 echo "${ECHO_T}$YACC" >&6
3442 else
3443   echo "$as_me:$LINENO: result: no" >&5
3444 echo "${ECHO_T}no" >&6
3445 fi
3446
3447   test -n "$YACC" && break
3448 done
3449 test -n "$YACC" || YACC="yacc"
3450
3451
3452 fi
3453 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3454 echo "${ECHO_T}$ac_cv_has_bison" >&6
3455 if test "$YACC" != "bison -y"; then
3456   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3457 echo "$as_me: error: bison not found but required" >&2;}
3458    { (exit 1); exit 1; }; }
3459 else
3460   BISON=bison
3461
3462 fi
3463
3464 # Check whether --enable-shared or --disable-shared was given.
3465 if test "${enable_shared+set}" = set; then
3466   enableval="$enable_shared"
3467   p=${PACKAGE-default}
3468     case $enableval in
3469     yes) enable_shared=yes ;;
3470     no) enable_shared=no ;;
3471     *)
3472       enable_shared=no
3473       # Look at the argument we got.  We use all the common list separators.
3474       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3475       for pkg in $enableval; do
3476         IFS="$lt_save_ifs"
3477         if test "X$pkg" = "X$p"; then
3478           enable_shared=yes
3479         fi
3480       done
3481       IFS="$lt_save_ifs"
3482       ;;
3483     esac
3484 else
3485   enable_shared=yes
3486 fi;
3487
3488 # Check whether --enable-static or --disable-static was given.
3489 if test "${enable_static+set}" = set; then
3490   enableval="$enable_static"
3491   p=${PACKAGE-default}
3492     case $enableval in
3493     yes) enable_static=yes ;;
3494     no) enable_static=no ;;
3495     *)
3496      enable_static=no
3497       # Look at the argument we got.  We use all the common list separators.
3498       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3499       for pkg in $enableval; do
3500         IFS="$lt_save_ifs"
3501         if test "X$pkg" = "X$p"; then
3502           enable_static=yes
3503         fi
3504       done
3505       IFS="$lt_save_ifs"
3506       ;;
3507     esac
3508 else
3509   enable_static=yes
3510 fi;
3511
3512 # Check whether --enable-fast-install or --disable-fast-install was given.
3513 if test "${enable_fast_install+set}" = set; then
3514   enableval="$enable_fast_install"
3515   p=${PACKAGE-default}
3516     case $enableval in
3517     yes) enable_fast_install=yes ;;
3518     no) enable_fast_install=no ;;
3519     *)
3520       enable_fast_install=no
3521       # Look at the argument we got.  We use all the common list separators.
3522       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3523       for pkg in $enableval; do
3524         IFS="$lt_save_ifs"
3525         if test "X$pkg" = "X$p"; then
3526           enable_fast_install=yes
3527         fi
3528       done
3529       IFS="$lt_save_ifs"
3530       ;;
3531     esac
3532 else
3533   enable_fast_install=yes
3534 fi;
3535
3536 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3537 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3538 if test "${lt_cv_path_SED+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   # Loop through the user's path and test for sed and gsed.
3542 # Then use that list of sed's as ones to test for truncation.
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546   IFS=$as_save_IFS
3547   test -z "$as_dir" && as_dir=.
3548   for lt_ac_prog in sed gsed; do
3549     for ac_exec_ext in '' $ac_executable_extensions; do
3550       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3551         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3552       fi
3553     done
3554   done
3555 done
3556 lt_ac_max=0
3557 lt_ac_count=0
3558 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3559 # along with /bin/sed that truncates output.
3560 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3561   test ! -f $lt_ac_sed && break
3562   cat /dev/null > conftest.in
3563   lt_ac_count=0
3564   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3565   # Check for GNU sed and select it if it is found.
3566   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3567     lt_cv_path_SED=$lt_ac_sed
3568     break
3569   fi
3570   while true; do
3571     cat conftest.in conftest.in >conftest.tmp
3572     mv conftest.tmp conftest.in
3573     cp conftest.in conftest.nl
3574     echo >>conftest.nl
3575     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3576     cmp -s conftest.out conftest.nl || break
3577     # 10000 chars as input seems more than enough
3578     test $lt_ac_count -gt 10 && break
3579     lt_ac_count=`expr $lt_ac_count + 1`
3580     if test $lt_ac_count -gt $lt_ac_max; then
3581       lt_ac_max=$lt_ac_count
3582       lt_cv_path_SED=$lt_ac_sed
3583     fi
3584   done
3585 done
3586 SED=$lt_cv_path_SED
3587
3588 fi
3589
3590 echo "$as_me:$LINENO: result: $SED" >&5
3591 echo "${ECHO_T}$SED" >&6
3592
3593 echo "$as_me:$LINENO: checking for egrep" >&5
3594 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3595 if test "${ac_cv_prog_egrep+set}" = set; then
3596   echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3599     then ac_cv_prog_egrep='grep -E'
3600     else ac_cv_prog_egrep='egrep'
3601     fi
3602 fi
3603 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3604 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3605  EGREP=$ac_cv_prog_egrep
3606
3607
3608
3609 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3610 if test "${with_gnu_ld+set}" = set; then
3611   withval="$with_gnu_ld"
3612   test "$withval" = no || with_gnu_ld=yes
3613 else
3614   with_gnu_ld=no
3615 fi;
3616 ac_prog=ld
3617 if test "$GCC" = yes; then
3618   # Check if gcc -print-prog-name=ld gives a path.
3619   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3620 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3621   case $host in
3622   *-*-mingw*)
3623     # gcc leaves a trailing carriage return which upsets mingw
3624     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3625   *)
3626     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3627   esac
3628   case $ac_prog in
3629     # Accept absolute paths.
3630     [\\/]* | ?:[\\/]*)
3631       re_direlt='/[^/][^/]*/\.\./'
3632       # Canonicalize the path of ld
3633       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3634       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3635         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3636       done
3637       test -z "$LD" && LD="$ac_prog"
3638       ;;
3639   "")
3640     # If it fails, then pretend we aren't using GCC.
3641     ac_prog=ld
3642     ;;
3643   *)
3644     # If it is relative, then search for the first ld in PATH.
3645     with_gnu_ld=unknown
3646     ;;
3647   esac
3648 elif test "$with_gnu_ld" = yes; then
3649   echo "$as_me:$LINENO: checking for GNU ld" >&5
3650 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3651 else
3652   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3653 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3654 fi
3655 if test "${lt_cv_path_LD+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   if test -z "$LD"; then
3659   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3660   for ac_dir in $PATH; do
3661     IFS="$lt_save_ifs"
3662     test -z "$ac_dir" && ac_dir=.
3663     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3664       lt_cv_path_LD="$ac_dir/$ac_prog"
3665       # Check to see if the program is GNU ld.  I'd rather use --version,
3666       # but apparently some GNU ld's only accept -v.
3667       # Break only if it was the GNU/non-GNU ld that we prefer.
3668       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3669       *GNU* | *'with BFD'*)
3670         test "$with_gnu_ld" != no && break
3671         ;;
3672       *)
3673         test "$with_gnu_ld" != yes && break
3674         ;;
3675       esac
3676     fi
3677   done
3678   IFS="$lt_save_ifs"
3679 else
3680   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3681 fi
3682 fi
3683
3684 LD="$lt_cv_path_LD"
3685 if test -n "$LD"; then
3686   echo "$as_me:$LINENO: result: $LD" >&5
3687 echo "${ECHO_T}$LD" >&6
3688 else
3689   echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6
3691 fi
3692 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3693 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3694    { (exit 1); exit 1; }; }
3695 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3696 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3697 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3701 case `"$LD" -v 2>&1 </dev/null` in
3702 *GNU* | *'with BFD'*)
3703   lt_cv_prog_gnu_ld=yes
3704   ;;
3705 *)
3706   lt_cv_prog_gnu_ld=no
3707   ;;
3708 esac
3709 fi
3710 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3711 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3712 with_gnu_ld=$lt_cv_prog_gnu_ld
3713
3714
3715 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3716 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3717 if test "${lt_cv_ld_reload_flag+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   lt_cv_ld_reload_flag='-r'
3721 fi
3722 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3723 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3724 reload_flag=$lt_cv_ld_reload_flag
3725 case $reload_flag in
3726 "" | " "*) ;;
3727 *) reload_flag=" $reload_flag" ;;
3728 esac
3729 reload_cmds='$CC -nostdlib -Xlinker$reload_flag $archargs -o $output$reload_objs'
3730
3731 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3732 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3733 if test "${lt_cv_path_NM+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   if test -n "$NM"; then
3737   # Let the user override the test.
3738   lt_cv_path_NM="$NM"
3739 else
3740   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3741   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3742     IFS="$lt_save_ifs"
3743     test -z "$ac_dir" && ac_dir=.
3744     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3745     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3746       # Check to see if the nm accepts a BSD-compat flag.
3747       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3748       #   nm: unknown option "B" ignored
3749       # Tru64's nm complains that /dev/null is an invalid object file
3750       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3751       */dev/null* | *'Invalid file or object type'*)
3752         lt_cv_path_NM="$tmp_nm -B"
3753         break
3754         ;;
3755       *)
3756         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3757         */dev/null*)
3758           lt_cv_path_NM="$tmp_nm -p"
3759           break
3760           ;;
3761         *)
3762           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3763           continue # so that we can try to find one that supports BSD flags
3764           ;;
3765         esac
3766       esac
3767     fi
3768   done
3769   IFS="$lt_save_ifs"
3770   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3771 fi
3772 fi
3773 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3774 echo "${ECHO_T}$lt_cv_path_NM" >&6
3775 NM="$lt_cv_path_NM"
3776
3777 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3778 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3779 LN_S=$as_ln_s
3780 if test "$LN_S" = "ln -s"; then
3781   echo "$as_me:$LINENO: result: yes" >&5
3782 echo "${ECHO_T}yes" >&6
3783 else
3784   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3785 echo "${ECHO_T}no, using $LN_S" >&6
3786 fi
3787
3788 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3789 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3790 if test "${lt_cv_deplibs_check_method+set}" = set; then
3791   echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793   lt_cv_file_magic_cmd='$MAGIC_CMD'
3794 lt_cv_file_magic_test_file=
3795 lt_cv_deplibs_check_method='unknown'
3796 # Need to set the preceding variable on all platforms that support
3797 # interlibrary dependencies.
3798 # 'none' -- dependencies not supported.
3799 # `unknown' -- same as none, but documents that we really don't know.
3800 # 'pass_all' -- all dependencies passed with no checks.
3801 # 'test_compile' -- check by making test program.
3802 # 'file_magic [[regex]]' -- check by looking for files in library path
3803 # which responds to the $file_magic_cmd with a given extended regex.
3804 # If you have `file' or equivalent on your system and you're not sure
3805 # whether `pass_all' will *always* work, you probably want this one.
3806
3807 case $host_os in
3808 aix4* | aix5*)
3809   lt_cv_deplibs_check_method=pass_all
3810   ;;
3811
3812 beos*)
3813   lt_cv_deplibs_check_method=pass_all
3814   ;;
3815
3816 bsdi4*)
3817   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3818   lt_cv_file_magic_cmd='/usr/bin/file -L'
3819   lt_cv_file_magic_test_file=/shlib/libc.so
3820   ;;
3821
3822 cygwin* | mingw* | pw32*)
3823   # win32_libid is a shell function defined in ltmain.sh
3824   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3825   lt_cv_file_magic_cmd='win32_libid'
3826   ;;
3827
3828 darwin* | rhapsody*)
3829   # this will be overwritten by pass_all, but leave it in just in case
3830   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3831   lt_cv_file_magic_cmd='/usr/bin/file -L'
3832   case "$host_os" in
3833   rhapsody* | darwin1.[012])
3834     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3835     ;;
3836   *) # Darwin 1.3 on
3837     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3838     ;;
3839   esac
3840   lt_cv_deplibs_check_method=pass_all
3841   ;;
3842
3843 freebsd*)
3844   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3845     case $host_cpu in
3846     i*86 )
3847       # Not sure whether the presence of OpenBSD here was a mistake.
3848       # Let's accept both of them until this is cleared up.
3849       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3850       lt_cv_file_magic_cmd=/usr/bin/file
3851       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3852       ;;
3853     esac
3854   else
3855     lt_cv_deplibs_check_method=pass_all
3856   fi
3857   ;;
3858
3859 gnu*)
3860   lt_cv_deplibs_check_method=pass_all
3861   ;;
3862
3863 hpux10.20* | hpux11*)
3864   lt_cv_file_magic_cmd=/usr/bin/file
3865   case "$host_cpu" in
3866   ia64*)
3867     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3868     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3869     ;;
3870   hppa*64*)
3871     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]'
3872     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3873     ;;
3874   *)
3875     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3876     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3877     ;;
3878   esac
3879   ;;
3880
3881 irix5* | irix6* | nonstopux*)
3882   case $host_os in
3883   irix5* | nonstopux*)
3884     # this will be overridden with pass_all, but let us keep it just in case
3885     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3886     ;;
3887   *)
3888     case $LD in
3889     *-32|*"-32 ") libmagic=32-bit;;
3890     *-n32|*"-n32 ") libmagic=N32;;
3891     *-64|*"-64 ") libmagic=64-bit;;
3892     *) libmagic=never-match;;
3893     esac
3894     # this will be overridden with pass_all, but let us keep it just in case
3895     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3896     ;;
3897   esac
3898   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3899   lt_cv_deplibs_check_method=pass_all
3900   ;;
3901
3902 # This must be Linux ELF.
3903 linux*)
3904   case $host_cpu in
3905   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3906     lt_cv_deplibs_check_method=pass_all ;;
3907   *)
3908     # glibc up to 2.1.1 does not perform some relocations on ARM
3909     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3910   esac
3911   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3912   ;;
3913
3914 netbsd*)
3915   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3916     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3917   else
3918     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3919   fi
3920   ;;
3921
3922 newos6*)
3923   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3924   lt_cv_file_magic_cmd=/usr/bin/file
3925   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3926   ;;
3927
3928 nto-qnx)
3929   lt_cv_deplibs_check_method=unknown
3930   ;;
3931
3932 openbsd*)
3933   lt_cv_file_magic_cmd=/usr/bin/file
3934   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3935   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3936     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3937   else
3938     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3939   fi
3940   ;;
3941
3942 osf3* | osf4* | osf5*)
3943   # this will be overridden with pass_all, but let us keep it just in case
3944   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3945   lt_cv_file_magic_test_file=/shlib/libc.so
3946   lt_cv_deplibs_check_method=pass_all
3947   ;;
3948
3949 sco3.2v5*)
3950   lt_cv_deplibs_check_method=pass_all
3951   ;;
3952
3953 solaris*)
3954   lt_cv_deplibs_check_method=pass_all
3955   lt_cv_file_magic_test_file=/lib/libc.so
3956   ;;
3957
3958 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3959   case $host_vendor in
3960   motorola)
3961     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]'
3962     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3963     ;;
3964   ncr)
3965     lt_cv_deplibs_check_method=pass_all
3966     ;;
3967   sequent)
3968     lt_cv_file_magic_cmd='/bin/file'
3969     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3970     ;;
3971   sni)
3972     lt_cv_file_magic_cmd='/bin/file'
3973     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3974     lt_cv_file_magic_test_file=/lib/libc.so
3975     ;;
3976   siemens)
3977     lt_cv_deplibs_check_method=pass_all
3978     ;;
3979   esac
3980   ;;
3981
3982 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3983   lt_cv_deplibs_check_method=pass_all
3984   ;;
3985 esac
3986
3987 fi
3988 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3989 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3990 file_magic_cmd=$lt_cv_file_magic_cmd
3991 deplibs_check_method=$lt_cv_deplibs_check_method
3992 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3993
3994
3995
3996
3997 # If no C compiler was specified, use CC.
3998 LTCC=${LTCC-"$CC"}
3999
4000 # Allow CC to be a program name with arguments.
4001 compiler=$CC
4002
4003 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4004 if test "${enable_libtool_lock+set}" = set; then
4005   enableval="$enable_libtool_lock"
4006
4007 fi;
4008 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4009
4010 # Some flags need to be propagated to the compiler or linker for good
4011 # libtool support.
4012 case $host in
4013 ia64-*-hpux*)
4014   # Find out which ABI we are using.
4015   echo 'int i;' > conftest.$ac_ext
4016   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017   (eval $ac_compile) 2>&5
4018   ac_status=$?
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); }; then
4021     case `/usr/bin/file conftest.$ac_objext` in
4022     *ELF-32*)
4023       HPUX_IA64_MODE="32"
4024       ;;
4025     *ELF-64*)
4026       HPUX_IA64_MODE="64"
4027       ;;
4028     esac
4029   fi
4030   rm -rf conftest*
4031   ;;
4032 *-*-irix6*)
4033   # Find out which ABI we are using.
4034   echo '#line 4034 "configure"' > conftest.$ac_ext
4035   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036   (eval $ac_compile) 2>&5
4037   ac_status=$?
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); }; then
4040    if test "$lt_cv_prog_gnu_ld" = yes; then
4041     case `/usr/bin/file conftest.$ac_objext` in
4042     *32-bit*)
4043       LD="${LD-ld} -melf32bsmip"
4044       ;;
4045     *N32*)
4046       LD="${LD-ld} -melf32bmipn32"
4047       ;;
4048     *64-bit*)
4049       LD="${LD-ld} -melf64bmip"
4050       ;;
4051     esac
4052    else
4053     case `/usr/bin/file conftest.$ac_objext` in
4054     *32-bit*)
4055       LD="${LD-ld} -32"
4056       ;;
4057     *N32*)
4058       LD="${LD-ld} -n32"
4059       ;;
4060     *64-bit*)
4061       LD="${LD-ld} -64"
4062       ;;
4063     esac
4064    fi
4065   fi
4066   rm -rf conftest*
4067   ;;
4068
4069 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4070   # Find out which ABI we are using.
4071   echo 'int i;' > conftest.$ac_ext
4072   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073   (eval $ac_compile) 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); }; then
4077     case "`/usr/bin/file conftest.o`" in
4078     *32-bit*)
4079       case $host in
4080         x86_64-*linux*)
4081           LD="${LD-ld} -m elf_i386"
4082           ;;
4083         ppc64-*linux*)
4084           LD="${LD-ld} -m elf32ppclinux"
4085           ;;
4086         s390x-*linux*)
4087           LD="${LD-ld} -m elf_s390"
4088           ;;
4089         sparc64-*linux*)
4090           LD="${LD-ld} -m elf32_sparc"
4091           ;;
4092       esac
4093       ;;
4094     *64-bit*)
4095       case $host in
4096         x86_64-*linux*)
4097           LD="${LD-ld} -m elf_x86_64"
4098           ;;
4099         ppc*-*linux*|powerpc*-*linux*)
4100           LD="${LD-ld} -m elf64ppc"
4101           ;;
4102         s390*-*linux*)
4103           LD="${LD-ld} -m elf64_s390"
4104           ;;
4105         sparc*-*linux*)
4106           LD="${LD-ld} -m elf64_sparc"
4107           ;;
4108       esac
4109       ;;
4110     esac
4111   fi
4112   rm -rf conftest*
4113   ;;
4114
4115 *-*-sco3.2v5*)
4116   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4117   SAVE_CFLAGS="$CFLAGS"
4118   CFLAGS="$CFLAGS -belf"
4119   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4120 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4121 if test "${lt_cv_cc_needs_belf+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   ac_ext=c
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129
4130      cat >conftest.$ac_ext <<_ACEOF
4131 #line $LINENO "configure"
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137
4138 int
4139 main ()
4140 {
4141
4142   ;
4143   return 0;
4144 }
4145 _ACEOF
4146 rm -f conftest.$ac_objext conftest$ac_exeext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4148   (eval $ac_link) 2>&5
4149   ac_status=$?
4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); } &&
4152          { ac_try='test -s conftest$ac_exeext'
4153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154   (eval $ac_try) 2>&5
4155   ac_status=$?
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); }; }; then
4158   lt_cv_cc_needs_belf=yes
4159 else
4160   echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4162
4163 lt_cv_cc_needs_belf=no
4164 fi
4165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4166      ac_ext=c
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171
4172 fi
4173 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4174 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4175   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4176     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4177     CFLAGS="$SAVE_CFLAGS"
4178   fi
4179   ;;
4180
4181 esac
4182
4183 need_locks="$enable_libtool_lock"
4184
4185
4186
4187 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4188 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4189 if test "${ac_cv_header_stdc+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   cat >conftest.$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199 #include <stdlib.h>
4200 #include <stdarg.h>
4201 #include <string.h>
4202 #include <float.h>
4203
4204 int
4205 main ()
4206 {
4207
4208   ;
4209   return 0;
4210 }
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214   (eval $ac_compile) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); } &&
4218          { ac_try='test -s conftest.$ac_objext'
4219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220   (eval $ac_try) 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); }; }; then
4224   ac_cv_header_stdc=yes
4225 else
4226   echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229 ac_cv_header_stdc=no
4230 fi
4231 rm -f conftest.$ac_objext conftest.$ac_ext
4232
4233 if test $ac_cv_header_stdc = yes; then
4234   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4235   cat >conftest.$ac_ext <<_ACEOF
4236 #line $LINENO "configure"
4237 /* confdefs.h.  */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h.  */
4242 #include <string.h>
4243
4244 _ACEOF
4245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4246   $EGREP "memchr" >/dev/null 2>&1; then
4247   :
4248 else
4249   ac_cv_header_stdc=no
4250 fi
4251 rm -f conftest*
4252
4253 fi
4254
4255 if test $ac_cv_header_stdc = yes; then
4256   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4257   cat >conftest.$ac_ext <<_ACEOF
4258 #line $LINENO "configure"
4259 /* confdefs.h.  */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h.  */
4264 #include <stdlib.h>
4265
4266 _ACEOF
4267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268   $EGREP "free" >/dev/null 2>&1; then
4269   :
4270 else
4271   ac_cv_header_stdc=no
4272 fi
4273 rm -f conftest*
4274
4275 fi
4276
4277 if test $ac_cv_header_stdc = yes; then
4278   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4279   if test "$cross_compiling" = yes; then
4280   :
4281 else
4282   cat >conftest.$ac_ext <<_ACEOF
4283 #line $LINENO "configure"
4284 /* confdefs.h.  */
4285 _ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h.  */
4289 #include <ctype.h>
4290 #if ((' ' & 0x0FF) == 0x020)
4291 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4292 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4293 #else
4294 # define ISLOWER(c) \
4295                    (('a' <= (c) && (c) <= 'i') \
4296                      || ('j' <= (c) && (c) <= 'r') \
4297                      || ('s' <= (c) && (c) <= 'z'))
4298 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4299 #endif
4300
4301 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4302 int
4303 main ()
4304 {
4305   int i;
4306   for (i = 0; i < 256; i++)
4307     if (XOR (islower (i), ISLOWER (i))
4308         || toupper (i) != TOUPPER (i))
4309       exit(2);
4310   exit (0);
4311 }
4312 _ACEOF
4313 rm -f conftest$ac_exeext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4315   (eval $ac_link) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320   (eval $ac_try) 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; }; then
4324   :
4325 else
4326   echo "$as_me: program exited with status $ac_status" >&5
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330 ( exit $ac_status )
4331 ac_cv_header_stdc=no
4332 fi
4333 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4334 fi
4335 fi
4336 fi
4337 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4338 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4339 if test $ac_cv_header_stdc = yes; then
4340
4341 cat >>confdefs.h <<\_ACEOF
4342 #define STDC_HEADERS 1
4343 _ACEOF
4344
4345 fi
4346
4347 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4358                   inttypes.h stdint.h unistd.h
4359 do
4360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4361 echo "$as_me:$LINENO: checking for $ac_header" >&5
4362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   cat >conftest.$ac_ext <<_ACEOF
4367 #line $LINENO "configure"
4368 /* confdefs.h.  */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h.  */
4373 $ac_includes_default
4374
4375 #include <$ac_header>
4376 _ACEOF
4377 rm -f conftest.$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379   (eval $ac_compile) 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); } &&
4383          { ac_try='test -s conftest.$ac_objext'
4384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385   (eval $ac_try) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; }; then
4389   eval "$as_ac_Header=yes"
4390 else
4391   echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4393
4394 eval "$as_ac_Header=no"
4395 fi
4396 rm -f conftest.$ac_objext conftest.$ac_ext
4397 fi
4398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4401   cat >>confdefs.h <<_ACEOF
4402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4403 _ACEOF
4404
4405 fi
4406
4407 done
4408
4409
4410
4411 for ac_header in dlfcn.h
4412 do
4413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4415   echo "$as_me:$LINENO: checking for $ac_header" >&5
4416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 fi
4420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4422 else
4423   # Is the header compilable?
4424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4426 cat >conftest.$ac_ext <<_ACEOF
4427 #line $LINENO "configure"
4428 /* confdefs.h.  */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h.  */
4433 $ac_includes_default
4434 #include <$ac_header>
4435 _ACEOF
4436 rm -f conftest.$ac_objext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438   (eval $ac_compile) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); } &&
4442          { ac_try='test -s conftest.$ac_objext'
4443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444   (eval $ac_try) 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; }; then
4448   ac_header_compiler=yes
4449 else
4450   echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453 ac_header_compiler=no
4454 fi
4455 rm -f conftest.$ac_objext conftest.$ac_ext
4456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4457 echo "${ECHO_T}$ac_header_compiler" >&6
4458
4459 # Is the header present?
4460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4462 cat >conftest.$ac_ext <<_ACEOF
4463 #line $LINENO "configure"
4464 /* confdefs.h.  */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h.  */
4469 #include <$ac_header>
4470 _ACEOF
4471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4472   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4473   ac_status=$?
4474   grep -v '^ *+' conftest.er1 >conftest.err
4475   rm -f conftest.er1
4476   cat conftest.err >&5
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); } >/dev/null; then
4479   if test -s conftest.err; then
4480     ac_cpp_err=$ac_c_preproc_warn_flag
4481   else
4482     ac_cpp_err=
4483   fi
4484 else
4485   ac_cpp_err=yes
4486 fi
4487 if test -z "$ac_cpp_err"; then
4488   ac_header_preproc=yes
4489 else
4490   echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493   ac_header_preproc=no
4494 fi
4495 rm -f conftest.err conftest.$ac_ext
4496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4497 echo "${ECHO_T}$ac_header_preproc" >&6
4498
4499 # So?  What about this header?
4500 case $ac_header_compiler:$ac_header_preproc in
4501   yes:no )
4502     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4506     (
4507       cat <<\_ASBOX
4508 ## ------------------------------------ ##
4509 ## Report this to bug-autoconf@gnu.org. ##
4510 ## ------------------------------------ ##
4511 _ASBOX
4512     ) |
4513       sed "s/^/$as_me: WARNING:     /" >&2
4514     ;;
4515   no:yes )
4516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4518     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4522     (
4523       cat <<\_ASBOX
4524 ## ------------------------------------ ##
4525 ## Report this to bug-autoconf@gnu.org. ##
4526 ## ------------------------------------ ##
4527 _ASBOX
4528     ) |
4529       sed "s/^/$as_me: WARNING:     /" >&2
4530     ;;
4531 esac
4532 echo "$as_me:$LINENO: checking for $ac_header" >&5
4533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4535   echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537   eval "$as_ac_Header=$ac_header_preproc"
4538 fi
4539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4541
4542 fi
4543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4544   cat >>confdefs.h <<_ACEOF
4545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4546 _ACEOF
4547
4548 fi
4549
4550 done
4551
4552 ac_ext=cc
4553 ac_cpp='$CXXCPP $CPPFLAGS'
4554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4557 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4558 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4559 if test -z "$CXXCPP"; then
4560   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563       # Double quotes because CXXCPP needs to be expanded
4564     for CXXCPP in "$CXX -E" "/lib/cpp"
4565     do
4566       ac_preproc_ok=false
4567 for ac_cxx_preproc_warn_flag in '' yes
4568 do
4569   # Use a header file that comes with gcc, so configuring glibc
4570   # with a fresh cross-compiler works.
4571   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4572   # <limits.h> exists even on freestanding compilers.
4573   # On the NeXT, cc -E runs the code through the compiler's parser,
4574   # not just through cpp. "Syntax error" is here to catch this case.
4575   cat >conftest.$ac_ext <<_ACEOF
4576 #line $LINENO "configure"
4577 /* confdefs.h.  */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h.  */
4582 #ifdef __STDC__
4583 # include <limits.h>
4584 #else
4585 # include <assert.h>
4586 #endif
4587                      Syntax error
4588 _ACEOF
4589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4590   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4591   ac_status=$?
4592   grep -v '^ *+' conftest.er1 >conftest.err
4593   rm -f conftest.er1
4594   cat conftest.err >&5
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); } >/dev/null; then
4597   if test -s conftest.err; then
4598     ac_cpp_err=$ac_cxx_preproc_warn_flag
4599   else
4600     ac_cpp_err=
4601   fi
4602 else
4603   ac_cpp_err=yes
4604 fi
4605 if test -z "$ac_cpp_err"; then
4606   :
4607 else
4608   echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611   # Broken: fails on valid input.
4612 continue
4613 fi
4614 rm -f conftest.err conftest.$ac_ext
4615
4616   # OK, works on sane cases.  Now check whether non-existent headers
4617   # can be detected and how.
4618   cat >conftest.$ac_ext <<_ACEOF
4619 #line $LINENO "configure"
4620 /* confdefs.h.  */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h.  */
4625 #include <ac_nonexistent.h>
4626 _ACEOF
4627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4629   ac_status=$?
4630   grep -v '^ *+' conftest.er1 >conftest.err
4631   rm -f conftest.er1
4632   cat conftest.err >&5
4633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); } >/dev/null; then
4635   if test -s conftest.err; then
4636     ac_cpp_err=$ac_cxx_preproc_warn_flag
4637   else
4638     ac_cpp_err=
4639   fi
4640 else
4641   ac_cpp_err=yes
4642 fi
4643 if test -z "$ac_cpp_err"; then
4644   # Broken: success on invalid input.
4645 continue
4646 else
4647   echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4649
4650   # Passes both tests.
4651 ac_preproc_ok=:
4652 break
4653 fi
4654 rm -f conftest.err conftest.$ac_ext
4655
4656 done
4657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4658 rm -f conftest.err conftest.$ac_ext
4659 if $ac_preproc_ok; then
4660   break
4661 fi
4662
4663     done
4664     ac_cv_prog_CXXCPP=$CXXCPP
4665
4666 fi
4667   CXXCPP=$ac_cv_prog_CXXCPP
4668 else
4669   ac_cv_prog_CXXCPP=$CXXCPP
4670 fi
4671 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4672 echo "${ECHO_T}$CXXCPP" >&6
4673 ac_preproc_ok=false
4674 for ac_cxx_preproc_warn_flag in '' yes
4675 do
4676   # Use a header file that comes with gcc, so configuring glibc
4677   # with a fresh cross-compiler works.
4678   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4679   # <limits.h> exists even on freestanding compilers.
4680   # On the NeXT, cc -E runs the code through the compiler's parser,
4681   # not just through cpp. "Syntax error" is here to catch this case.
4682   cat >conftest.$ac_ext <<_ACEOF
4683 #line $LINENO "configure"
4684 /* confdefs.h.  */
4685 _ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h.  */
4689 #ifdef __STDC__
4690 # include <limits.h>
4691 #else
4692 # include <assert.h>
4693 #endif
4694                      Syntax error
4695 _ACEOF
4696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4698   ac_status=$?
4699   grep -v '^ *+' conftest.er1 >conftest.err
4700   rm -f conftest.er1
4701   cat conftest.err >&5
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); } >/dev/null; then
4704   if test -s conftest.err; then
4705     ac_cpp_err=$ac_cxx_preproc_warn_flag
4706   else
4707     ac_cpp_err=
4708   fi
4709 else
4710   ac_cpp_err=yes
4711 fi
4712 if test -z "$ac_cpp_err"; then
4713   :
4714 else
4715   echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4717
4718   # Broken: fails on valid input.
4719 continue
4720 fi
4721 rm -f conftest.err conftest.$ac_ext
4722
4723   # OK, works on sane cases.  Now check whether non-existent headers
4724   # can be detected and how.
4725   cat >conftest.$ac_ext <<_ACEOF
4726 #line $LINENO "configure"
4727 /* confdefs.h.  */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h.  */
4732 #include <ac_nonexistent.h>
4733 _ACEOF
4734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4735   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4736   ac_status=$?
4737   grep -v '^ *+' conftest.er1 >conftest.err
4738   rm -f conftest.er1
4739   cat conftest.err >&5
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); } >/dev/null; then
4742   if test -s conftest.err; then
4743     ac_cpp_err=$ac_cxx_preproc_warn_flag
4744   else
4745     ac_cpp_err=
4746   fi
4747 else
4748   ac_cpp_err=yes
4749 fi
4750 if test -z "$ac_cpp_err"; then
4751   # Broken: success on invalid input.
4752 continue
4753 else
4754   echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757   # Passes both tests.
4758 ac_preproc_ok=:
4759 break
4760 fi
4761 rm -f conftest.err conftest.$ac_ext
4762
4763 done
4764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4765 rm -f conftest.err conftest.$ac_ext
4766 if $ac_preproc_ok; then
4767   :
4768 else
4769   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4770 See \`config.log' for more details." >&5
4771 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4772 See \`config.log' for more details." >&2;}
4773    { (exit 1); exit 1; }; }
4774 fi
4775
4776 ac_ext=cc
4777 ac_cpp='$CXXCPP $CPPFLAGS'
4778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4781
4782
4783 ac_ext=f
4784 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4785 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4787 if test -n "$ac_tool_prefix"; then
4788   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4789   do
4790     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4792 echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4794 if test "${ac_cv_prog_F77+set}" = set; then
4795   echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797   if test -n "$F77"; then
4798   ac_cv_prog_F77="$F77" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803   IFS=$as_save_IFS
4804   test -z "$as_dir" && as_dir=.
4805   for ac_exec_ext in '' $ac_executable_extensions; do
4806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809     break 2
4810   fi
4811 done
4812 done
4813
4814 fi
4815 fi
4816 F77=$ac_cv_prog_F77
4817 if test -n "$F77"; then
4818   echo "$as_me:$LINENO: result: $F77" >&5
4819 echo "${ECHO_T}$F77" >&6
4820 else
4821   echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6
4823 fi
4824
4825     test -n "$F77" && break
4826   done
4827 fi
4828 if test -z "$F77"; then
4829   ac_ct_F77=$F77
4830   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4831 do
4832   # Extract the first word of "$ac_prog", so it can be a program name with args.
4833 set dummy $ac_prog; ac_word=$2
4834 echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4836 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4837   echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839   if test -n "$ac_ct_F77"; then
4840   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4844 do
4845   IFS=$as_save_IFS
4846   test -z "$as_dir" && as_dir=.
4847   for ac_exec_ext in '' $ac_executable_extensions; do
4848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849     ac_cv_prog_ac_ct_F77="$ac_prog"
4850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851     break 2
4852   fi
4853 done
4854 done
4855
4856 fi
4857 fi
4858 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4859 if test -n "$ac_ct_F77"; then
4860   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4861 echo "${ECHO_T}$ac_ct_F77" >&6
4862 else
4863   echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6
4865 fi
4866
4867   test -n "$ac_ct_F77" && break
4868 done
4869
4870   F77=$ac_ct_F77
4871 fi
4872
4873
4874 # Provide some information about the compiler.
4875 echo "$as_me:4875:" \
4876      "checking for Fortran 77 compiler version" >&5
4877 ac_compiler=`set X $ac_compile; echo $2`
4878 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4879   (eval $ac_compiler --version </dev/null >&5) 2>&5
4880   ac_status=$?
4881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882   (exit $ac_status); }
4883 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4884   (eval $ac_compiler -v </dev/null >&5) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }
4888 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4889   (eval $ac_compiler -V </dev/null >&5) 2>&5
4890   ac_status=$?
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); }
4893
4894 # If we don't use `.F' as extension, the preprocessor is not run on the
4895 # input file.
4896 ac_save_ext=$ac_ext
4897 ac_ext=F
4898 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4899 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4900 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   cat >conftest.$ac_ext <<_ACEOF
4904       program main
4905 #ifndef __GNUC__
4906        choke me
4907 #endif
4908
4909       end
4910 _ACEOF
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913   (eval $ac_compile) 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } &&
4917          { ac_try='test -s conftest.$ac_objext'
4918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919   (eval $ac_try) 2>&5
4920   ac_status=$?
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }; }; then
4923   ac_compiler_gnu=yes
4924 else
4925   echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4927
4928 ac_compiler_gnu=no
4929 fi
4930 rm -f conftest.$ac_objext conftest.$ac_ext
4931 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4932
4933 fi
4934 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4935 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4936 ac_ext=$ac_save_ext
4937 G77=`test $ac_compiler_gnu = yes && echo yes`
4938 ac_test_FFLAGS=${FFLAGS+set}
4939 ac_save_FFLAGS=$FFLAGS
4940 FFLAGS=
4941 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4942 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4943 if test "${ac_cv_prog_f77_g+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   FFLAGS=-g
4947 cat >conftest.$ac_ext <<_ACEOF
4948       program main
4949
4950       end
4951 _ACEOF
4952 rm -f conftest.$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954   (eval $ac_compile) 2>&5
4955   ac_status=$?
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); } &&
4958          { ac_try='test -s conftest.$ac_objext'
4959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960   (eval $ac_try) 2>&5
4961   ac_status=$?
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); }; }; then
4964   ac_cv_prog_f77_g=yes
4965 else
4966   echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4968
4969 ac_cv_prog_f77_g=no
4970 fi
4971 rm -f conftest.$ac_objext conftest.$ac_ext
4972
4973 fi
4974 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4975 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4976 if test "$ac_test_FFLAGS" = set; then
4977   FFLAGS=$ac_save_FFLAGS
4978 elif test $ac_cv_prog_f77_g = yes; then
4979   if test "$G77" = yes; then
4980     FFLAGS="-g -O2"
4981   else
4982     FFLAGS="-g"
4983   fi
4984 else
4985   if test "$G77" = yes; then
4986     FFLAGS="-O2"
4987   else
4988     FFLAGS=
4989   fi
4990 fi
4991 ac_ext=c
4992 ac_cpp='$CPP $CPPFLAGS'
4993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996
4997
4998
4999 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5000
5001 # find the maximum length of command line arguments
5002 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5003 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5004 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007     i=0
5008   testring="ABCD"
5009
5010   case $build_os in
5011   msdosdjgpp*)
5012     # On DJGPP, this test can blow up pretty badly due to problems in libc
5013     # (any single argument exceeding 2000 bytes causes a buffer overrun
5014     # during glob expansion).  Even if it were fixed, the result of this
5015     # check would be larger than it should be.
5016     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5017     ;;
5018
5019   gnu*)
5020     # Under GNU Hurd, this test is not required because there is
5021     # no limit to the length of command line arguments.
5022     # Libtool will interpret -1 as no limit whatsoever
5023     lt_cv_sys_max_cmd_len=-1;
5024     ;;
5025
5026   cygwin* | mingw*)
5027     # On Win9x/ME, this test blows up -- it succeeds, but takes
5028     # about 5 minutes as the teststring grows exponentially.
5029     # Worse, since 9x/ME are not pre-emptively multitasking,
5030     # you end up with a "frozen" computer, even though with patience
5031     # the test eventually succeeds (with a max line length of 256k).
5032     # Instead, let's just punt: use the minimum linelength reported by
5033     # all of the supported platforms: 8192 (on NT/2K/XP).
5034     lt_cv_sys_max_cmd_len=8192;
5035     ;;
5036
5037  *)
5038     # If test is not a shell built-in, we'll probably end up computing a
5039     # maximum length that is only half of the actual maximum length, but
5040     # we can't tell.
5041     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5042                = "XX$testring") >/dev/null 2>&1 &&
5043             new_result=`expr "X$testring" : ".*" 2>&1` &&
5044             lt_cv_sys_max_cmd_len=$new_result &&
5045             test $i != 17 # 1/2 MB should be enough
5046     do
5047       i=`expr $i + 1`
5048       testring=$testring$testring
5049     done
5050     testring=
5051     # Add a significant safety factor because C++ compilers can tack on massive
5052     # amounts of additional arguments before passing them to the linker.
5053     # It appears as though 1/2 is a usable value.
5054     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5055     ;;
5056   esac
5057
5058 fi
5059
5060 if test -n $lt_cv_sys_max_cmd_len ; then
5061   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5062 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5063 else
5064   echo "$as_me:$LINENO: result: none" >&5
5065 echo "${ECHO_T}none" >&6
5066 fi
5067
5068
5069
5070
5071 # Check for command to grab the raw symbol name followed by C symbol from nm.
5072 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5073 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5074 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5075   echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077
5078 # These are sane defaults that work on at least a few old systems.
5079 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5080
5081 # Character class describing NM global symbol codes.
5082 symcode='[BCDEGRST]'
5083
5084 # Regexp to match symbols that can be accessed directly from C.
5085 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5086
5087 # Transform the above into a raw symbol and a C symbol.
5088 symxfrm='\1 \2\3 \3'
5089
5090 # Transform an extracted symbol line into a proper C declaration
5091 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5092
5093 # Transform an extracted symbol line into symbol name and symbol address
5094 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'"
5095
5096 # Define system-specific variables.
5097 case $host_os in
5098 aix*)
5099   symcode='[BCDT]'
5100   ;;
5101 cygwin* | mingw* | pw32*)
5102   symcode='[ABCDGISTW]'
5103   ;;
5104 hpux*) # Its linker distinguishes data from code symbols
5105   if test "$host_cpu" = ia64; then
5106     symcode='[ABCDEGRST]'
5107   fi
5108   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5109   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'"
5110   ;;
5111 irix* | nonstopux*)
5112   symcode='[BCDEGRST]'
5113   ;;
5114 osf*)
5115   symcode='[BCDEGQRST]'
5116   ;;
5117 solaris* | sysv5*)
5118   symcode='[BDT]'
5119   ;;
5120 sysv4)
5121   symcode='[DFNSTU]'
5122   ;;
5123 esac
5124
5125 # Handle CRLF in mingw tool chain
5126 opt_cr=
5127 case $build_os in
5128 mingw*)
5129   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5130   ;;
5131 esac
5132
5133 # If we're using GNU nm, then use its standard symbol codes.
5134 case `$NM -V 2>&1` in
5135 *GNU* | *'with BFD'*)
5136   symcode='[ABCDGISTW]' ;;
5137 esac
5138
5139 # Try without a prefix undercore, then with it.
5140 for ac_symprfx in "" "_"; do
5141
5142   # Write the raw and C identifiers.
5143   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5144
5145   # Check to see that the pipe works correctly.
5146   pipe_works=no
5147
5148   rm -f conftest*
5149   cat > conftest.$ac_ext <<EOF
5150 #ifdef __cplusplus
5151 extern "C" {
5152 #endif
5153 char nm_test_var;
5154 void nm_test_func(){}
5155 #ifdef __cplusplus
5156 }
5157 #endif
5158 int main(){nm_test_var='a';nm_test_func();return(0);}
5159 EOF
5160
5161   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162   (eval $ac_compile) 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); }; then
5166     # Now try to grab the symbols.
5167     nlist=conftest.nm
5168     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5169   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5170   ac_status=$?
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); } && test -s "$nlist"; then
5173       # Try sorting and uniquifying the output.
5174       if sort "$nlist" | uniq > "$nlist"T; then
5175         mv -f "$nlist"T "$nlist"
5176       else
5177         rm -f "$nlist"T
5178       fi
5179
5180       # Make sure that we snagged all the symbols we need.
5181       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5182         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5183           cat <<EOF > conftest.$ac_ext
5184 #ifdef __cplusplus
5185 extern "C" {
5186 #endif
5187
5188 EOF
5189           # Now generate the symbol file.
5190           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5191
5192           cat <<EOF >> conftest.$ac_ext
5193 #if defined (__STDC__) && __STDC__
5194 # define lt_ptr_t void *
5195 #else
5196 # define lt_ptr_t char *
5197 # define const
5198 #endif
5199
5200 /* The mapping between symbol names and symbols. */
5201 const struct {
5202   const char *name;
5203   lt_ptr_t address;
5204 }
5205 lt_preloaded_symbols[] =
5206 {
5207 EOF
5208           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5209           cat <<\EOF >> conftest.$ac_ext
5210   {0, (lt_ptr_t) 0}
5211 };
5212
5213 #ifdef __cplusplus
5214 }
5215 #endif
5216 EOF
5217           # Now try linking the two files.
5218           mv conftest.$ac_objext conftstm.$ac_objext
5219           lt_save_LIBS="$LIBS"
5220           lt_save_CFLAGS="$CFLAGS"
5221           LIBS="conftstm.$ac_objext"
5222           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5223           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224   (eval $ac_link) 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5228             pipe_works=yes
5229           fi
5230           LIBS="$lt_save_LIBS"
5231           CFLAGS="$lt_save_CFLAGS"
5232         else
5233           echo "cannot find nm_test_func in $nlist" >&5
5234         fi
5235       else
5236         echo "cannot find nm_test_var in $nlist" >&5
5237       fi
5238     else
5239       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5240     fi
5241   else
5242     echo "$progname: failed program was:" >&5
5243     cat conftest.$ac_ext >&5
5244   fi
5245   rm -f conftest* conftst*
5246
5247   # Do not use the global_symbol_pipe unless it works.
5248   if test "$pipe_works" = yes; then
5249     break
5250   else
5251     lt_cv_sys_global_symbol_pipe=
5252   fi
5253 done
5254
5255 fi
5256
5257 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5258   lt_cv_sys_global_symbol_to_cdecl=
5259 fi
5260 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5261   echo "$as_me:$LINENO: result: failed" >&5
5262 echo "${ECHO_T}failed" >&6
5263 else
5264   echo "$as_me:$LINENO: result: ok" >&5
5265 echo "${ECHO_T}ok" >&6
5266 fi
5267
5268 echo "$as_me:$LINENO: checking for objdir" >&5
5269 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5270 if test "${lt_cv_objdir+set}" = set; then
5271   echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273   rm -f .libs 2>/dev/null
5274 mkdir .libs 2>/dev/null
5275 if test -d .libs; then
5276   lt_cv_objdir=.libs
5277 else
5278   # MS-DOS does not allow filenames that begin with a dot.
5279   lt_cv_objdir=_libs
5280 fi
5281 rmdir .libs 2>/dev/null
5282 fi
5283 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5284 echo "${ECHO_T}$lt_cv_objdir" >&6
5285 objdir=$lt_cv_objdir
5286
5287
5288
5289
5290
5291 case $host_os in
5292 aix3*)
5293   # AIX sometimes has problems with the GCC collect2 program.  For some
5294   # reason, if we set the COLLECT_NAMES environment variable, the problems
5295   # vanish in a puff of smoke.
5296   if test "X${COLLECT_NAMES+set}" != Xset; then
5297     COLLECT_NAMES=
5298     export COLLECT_NAMES
5299   fi
5300   ;;
5301 esac
5302
5303 # Sed substitution that helps us do robust quoting.  It backslashifies
5304 # metacharacters that are still active within double-quoted strings.
5305 Xsed='sed -e s/^X//'
5306 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5307
5308 # Same as above, but do not quote variable references.
5309 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5310
5311 # Sed substitution to delay expansion of an escaped shell variable in a
5312 # double_quote_subst'ed string.
5313 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5314
5315 # Sed substitution to undo escaping of the cmd sep variable
5316 unescape_variable_subst='s/\\\(${_S_}\)/\1/g'
5317
5318 # Sed substitution to avoid accidental globbing in evaled expressions
5319 no_glob_subst='s/\*/\\\*/g'
5320
5321 # Constants:
5322 rm="rm -f"
5323
5324 # Global variables:
5325 default_ofile=libtool
5326 can_build_shared=yes
5327
5328 # All known linkers require a `.a' archive for static linking (except M$VC,
5329 # which needs '.lib').
5330 libext=a
5331 ltmain="$ac_aux_dir/ltmain.sh"
5332 ofile="$default_ofile"
5333 with_gnu_ld="$lt_cv_prog_gnu_ld"
5334
5335 if test -n "$ac_tool_prefix"; then
5336   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5337 set dummy ${ac_tool_prefix}ar; ac_word=$2
5338 echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340 if test "${ac_cv_prog_AR+set}" = set; then
5341   echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343   if test -n "$AR"; then
5344   ac_cv_prog_AR="$AR" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5348 do
5349   IFS=$as_save_IFS
5350   test -z "$as_dir" && as_dir=.
5351   for ac_exec_ext in '' $ac_executable_extensions; do
5352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353     ac_cv_prog_AR="${ac_tool_prefix}ar"
5354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355     break 2
5356   fi
5357 done
5358 done
5359
5360 fi
5361 fi
5362 AR=$ac_cv_prog_AR
5363 if test -n "$AR"; then
5364   echo "$as_me:$LINENO: result: $AR" >&5
5365 echo "${ECHO_T}$AR" >&6
5366 else
5367   echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6
5369 fi
5370
5371 fi
5372 if test -z "$ac_cv_prog_AR"; then
5373   ac_ct_AR=$AR
5374   # Extract the first word of "ar", so it can be a program name with args.
5375 set dummy ar; ac_word=$2
5376 echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5378 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   if test -n "$ac_ct_AR"; then
5382   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387   IFS=$as_save_IFS
5388   test -z "$as_dir" && as_dir=.
5389   for ac_exec_ext in '' $ac_executable_extensions; do
5390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5391     ac_cv_prog_ac_ct_AR="ar"
5392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5393     break 2
5394   fi
5395 done
5396 done
5397
5398   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5399 fi
5400 fi
5401 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5402 if test -n "$ac_ct_AR"; then
5403   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5404 echo "${ECHO_T}$ac_ct_AR" >&6
5405 else
5406   echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6
5408 fi
5409
5410   AR=$ac_ct_AR
5411 else
5412   AR="$ac_cv_prog_AR"
5413 fi
5414
5415 if test -n "$ac_tool_prefix"; then
5416   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5418 echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5420 if test "${ac_cv_prog_RANLIB+set}" = set; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423   if test -n "$RANLIB"; then
5424   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429   IFS=$as_save_IFS
5430   test -z "$as_dir" && as_dir=.
5431   for ac_exec_ext in '' $ac_executable_extensions; do
5432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5435     break 2
5436   fi
5437 done
5438 done
5439
5440 fi
5441 fi
5442 RANLIB=$ac_cv_prog_RANLIB
5443 if test -n "$RANLIB"; then
5444   echo "$as_me:$LINENO: result: $RANLIB" >&5
5445 echo "${ECHO_T}$RANLIB" >&6
5446 else
5447   echo "$as_me:$LINENO: result: no" >&5
5448 echo "${ECHO_T}no" >&6
5449 fi
5450
5451 fi
5452 if test -z "$ac_cv_prog_RANLIB"; then
5453   ac_ct_RANLIB=$RANLIB
5454   # Extract the first word of "ranlib", so it can be a program name with args.
5455 set dummy ranlib; ac_word=$2
5456 echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5459   echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461   if test -n "$ac_ct_RANLIB"; then
5462   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467   IFS=$as_save_IFS
5468   test -z "$as_dir" && as_dir=.
5469   for ac_exec_ext in '' $ac_executable_extensions; do
5470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471     ac_cv_prog_ac_ct_RANLIB="ranlib"
5472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473     break 2
5474   fi
5475 done
5476 done
5477
5478   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5479 fi
5480 fi
5481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5482 if test -n "$ac_ct_RANLIB"; then
5483   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5484 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5485 else
5486   echo "$as_me:$LINENO: result: no" >&5
5487 echo "${ECHO_T}no" >&6
5488 fi
5489
5490   RANLIB=$ac_ct_RANLIB
5491 else
5492   RANLIB="$ac_cv_prog_RANLIB"
5493 fi
5494
5495 if test -n "$ac_tool_prefix"; then
5496   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5497 set dummy ${ac_tool_prefix}strip; ac_word=$2
5498 echo "$as_me:$LINENO: checking for $ac_word" >&5
5499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5500 if test "${ac_cv_prog_STRIP+set}" = set; then
5501   echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503   if test -n "$STRIP"; then
5504   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509   IFS=$as_save_IFS
5510   test -z "$as_dir" && as_dir=.
5511   for ac_exec_ext in '' $ac_executable_extensions; do
5512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515     break 2
5516   fi
5517 done
5518 done
5519
5520 fi
5521 fi
5522 STRIP=$ac_cv_prog_STRIP
5523 if test -n "$STRIP"; then
5524   echo "$as_me:$LINENO: result: $STRIP" >&5
5525 echo "${ECHO_T}$STRIP" >&6
5526 else
5527   echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6
5529 fi
5530
5531 fi
5532 if test -z "$ac_cv_prog_STRIP"; then
5533   ac_ct_STRIP=$STRIP
5534   # Extract the first word of "strip", so it can be a program name with args.
5535 set dummy strip; ac_word=$2
5536 echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   if test -n "$ac_ct_STRIP"; then
5542   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547   IFS=$as_save_IFS
5548   test -z "$as_dir" && as_dir=.
5549   for ac_exec_ext in '' $ac_executable_extensions; do
5550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551     ac_cv_prog_ac_ct_STRIP="strip"
5552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553     break 2
5554   fi
5555 done
5556 done
5557
5558   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5559 fi
5560 fi
5561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5562 if test -n "$ac_ct_STRIP"; then
5563   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5564 echo "${ECHO_T}$ac_ct_STRIP" >&6
5565 else
5566   echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6
5568 fi
5569
5570   STRIP=$ac_ct_STRIP
5571 else
5572   STRIP="$ac_cv_prog_STRIP"
5573 fi
5574
5575
5576 old_CC="$CC"
5577 old_CFLAGS="$CFLAGS"
5578
5579 # Set sane defaults for various variables
5580 test -z "$AR" && AR=ar
5581 test -z "$AR_FLAGS" && AR_FLAGS=cru
5582 test -z "$AS" && AS=as
5583 test -z "$CC" && CC=cc
5584 test -z "$LTCC" && LTCC=$CC
5585 test -z "$DLLTOOL" && DLLTOOL=dlltool
5586 test -z "$LD" && LD=ld
5587 test -z "$LN_S" && LN_S="ln -s"
5588 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5589 test -z "$NM" && NM=nm
5590 test -z "$SED" && SED=sed
5591 test -z "$OBJDUMP" && OBJDUMP=objdump
5592 test -z "$RANLIB" && RANLIB=:
5593 test -z "$STRIP" && STRIP=:
5594 test -z "$ac_objext" && ac_objext=o
5595
5596 # Determine commands to create old-style static archives.
5597 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5598 old_postinstall_cmds='chmod 644 $oldlib'
5599 old_postuninstall_cmds=
5600
5601 if test -n "$RANLIB"; then
5602   case $host_os in
5603   openbsd*)
5604     old_postinstall_cmds="\$RANLIB -t \$oldlib\${_S_}$old_postinstall_cmds"
5605     ;;
5606   *)
5607     old_postinstall_cmds="\$RANLIB \$oldlib\${_S_}$old_postinstall_cmds"
5608     ;;
5609   esac
5610   old_archive_cmds="$old_archive_cmds\${_S_}\$RANLIB \$oldlib"
5611 fi
5612
5613 # Only perform the check for file, if the check method requires it
5614 case $deplibs_check_method in
5615 file_magic*)
5616   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5617     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5618 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5619 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5620   echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622   case $MAGIC_CMD in
5623 [\\/*] |  ?:[\\/]*)
5624   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5625   ;;
5626 *)
5627   lt_save_MAGIC_CMD="$MAGIC_CMD"
5628   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5629   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5630   for ac_dir in $ac_dummy; do
5631     IFS="$lt_save_ifs"
5632     test -z "$ac_dir" && ac_dir=.
5633     if test -f $ac_dir/${ac_tool_prefix}file; then
5634       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5635       if test -n "$file_magic_test_file"; then
5636         case $deplibs_check_method in
5637         "file_magic "*)
5638           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5639           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5640           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5641             $EGREP "$file_magic_regex" > /dev/null; then
5642             :
5643           else
5644             cat <<EOF 1>&2
5645
5646 *** Warning: the command libtool uses to detect shared libraries,
5647 *** $file_magic_cmd, produces output that libtool cannot recognize.
5648 *** The result is that libtool may fail to recognize shared libraries
5649 *** as such.  This will affect the creation of libtool libraries that
5650 *** depend on shared libraries, but programs linked with such libtool
5651 *** libraries will work regardless of this problem.  Nevertheless, you
5652 *** may want to report the problem to your system manager and/or to
5653 *** bug-libtool@gnu.org
5654
5655 EOF
5656           fi ;;
5657         esac
5658       fi
5659       break
5660     fi
5661   done
5662   IFS="$lt_save_ifs"
5663   MAGIC_CMD="$lt_save_MAGIC_CMD"
5664   ;;
5665 esac
5666 fi
5667
5668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5669 if test -n "$MAGIC_CMD"; then
5670   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5671 echo "${ECHO_T}$MAGIC_CMD" >&6
5672 else
5673   echo "$as_me:$LINENO: result: no" >&5
5674 echo "${ECHO_T}no" >&6
5675 fi
5676
5677 if test -z "$lt_cv_path_MAGIC_CMD"; then
5678   if test -n "$ac_tool_prefix"; then
5679     echo "$as_me:$LINENO: checking for file" >&5
5680 echo $ECHO_N "checking for file... $ECHO_C" >&6
5681 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5682   echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684   case $MAGIC_CMD in
5685 [\\/*] |  ?:[\\/]*)
5686   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5687   ;;
5688 *)
5689   lt_save_MAGIC_CMD="$MAGIC_CMD"
5690   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5691   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5692   for ac_dir in $ac_dummy; do
5693     IFS="$lt_save_ifs"
5694     test -z "$ac_dir" && ac_dir=.
5695     if test -f $ac_dir/file; then
5696       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5697       if test -n "$file_magic_test_file"; then
5698         case $deplibs_check_method in
5699         "file_magic "*)
5700           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5701           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5702           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5703             $EGREP "$file_magic_regex" > /dev/null; then
5704             :
5705           else
5706             cat <<EOF 1>&2
5707
5708 *** Warning: the command libtool uses to detect shared libraries,
5709 *** $file_magic_cmd, produces output that libtool cannot recognize.
5710 *** The result is that libtool may fail to recognize shared libraries
5711 *** as such.  This will affect the creation of libtool libraries that
5712 *** depend on shared libraries, but programs linked with such libtool
5713 *** libraries will work regardless of this problem.  Nevertheless, you
5714 *** may want to report the problem to your system manager and/or to
5715 *** bug-libtool@gnu.org
5716
5717 EOF
5718           fi ;;
5719         esac
5720       fi
5721       break
5722     fi
5723   done
5724   IFS="$lt_save_ifs"
5725   MAGIC_CMD="$lt_save_MAGIC_CMD"
5726   ;;
5727 esac
5728 fi
5729
5730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5731 if test -n "$MAGIC_CMD"; then
5732   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5733 echo "${ECHO_T}$MAGIC_CMD" >&6
5734 else
5735   echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6
5737 fi
5738
5739   else
5740     MAGIC_CMD=:
5741   fi
5742 fi
5743
5744   fi
5745   ;;
5746 esac
5747
5748 enable_dlopen=no
5749 enable_win32_dll=no
5750
5751 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5752 if test "${enable_libtool_lock+set}" = set; then
5753   enableval="$enable_libtool_lock"
5754
5755 fi;
5756 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5757
5758
5759 # Check whether --with-pic or --without-pic was given.
5760 if test "${with_pic+set}" = set; then
5761   withval="$with_pic"
5762   pic_mode="$withval"
5763 else
5764   pic_mode=default
5765 fi;
5766 test -z "$pic_mode" && pic_mode=default
5767
5768 # Use C for the default configuration in the libtool script
5769 tagname=
5770 lt_save_CC="$CC"
5771 ac_ext=c
5772 ac_cpp='$CPP $CPPFLAGS'
5773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5776
5777
5778 # Source file extension for C test sources.
5779 ac_ext=c
5780
5781 # Object file extension for compiled C test sources.
5782 objext=o
5783 objext=$objext
5784
5785 # Code to be used in simple compile tests
5786 lt_simple_compile_test_code="int some_variable = 0;\n"
5787
5788 # Code to be used in simple link tests
5789 lt_simple_link_test_code='int main(){return(0);}\n'
5790
5791
5792 # If no C compiler was specified, use CC.
5793 LTCC=${LTCC-"$CC"}
5794
5795 # Allow CC to be a program name with arguments.
5796 compiler=$CC
5797
5798
5799 #
5800 # Check for any special shared library compilation flags.
5801 #
5802 lt_prog_cc_shlib=
5803 if test "$GCC" = no; then
5804   case $host_os in
5805   sco3.2v5*)
5806     lt_prog_cc_shlib='-belf'
5807     ;;
5808   esac
5809 fi
5810 if test -n "$lt_prog_cc_shlib"; then
5811   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5812 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5813   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5814   else
5815     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5816 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5817     lt_cv_prog_cc_can_build_shared=no
5818   fi
5819 fi
5820
5821
5822 #
5823 # Check to make sure the static flag actually works.
5824 #
5825 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5826 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5827 if test "${lt_prog_compiler_static_works+set}" = set; then
5828   echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830   lt_prog_compiler_static_works=no
5831    save_LDFLAGS="$LDFLAGS"
5832    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5833    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5834    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5835      # The compiler can only warn and ignore the option if not recognized
5836      # So say no if there are warnings
5837      if test -s conftest.err; then
5838        # Append any errors to the config.log.
5839        cat conftest.err 1>&5
5840      else
5841        lt_prog_compiler_static_works=yes
5842      fi
5843    fi
5844    $rm conftest*
5845    LDFLAGS="$save_LDFLAGS"
5846
5847 fi
5848 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5849 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5850
5851 if test x"$lt_prog_compiler_static_works" = xyes; then
5852     :
5853 else
5854     lt_prog_compiler_static=
5855 fi
5856
5857
5858
5859
5860 lt_prog_compiler_no_builtin_flag=
5861
5862 if test "$GCC" = yes; then
5863   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5864
5865   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5866 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5867 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5868   echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870   lt_cv_prog_compiler_rtti_exceptions=no
5871   ac_outfile=conftest.$ac_objext
5872    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5873    lt_compiler_flag="-fno-rtti -fno-exceptions"
5874    # Insert the option either (1) after the last *FLAGS variable, or
5875    # (2) before a word containing "conftest.", or (3) at the end.
5876    # Note that $ac_compile itself does not contain backslashes and begins
5877    # with a dollar sign (not a hyphen), so the echo should work correctly.
5878    # The option is referenced via a variable to avoid confusing sed.
5879    lt_compile=`echo "$ac_compile" | $SED \
5880    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5882    -e 's:$: $lt_compiler_flag:'`
5883    (eval echo "\"\$as_me:5883: $lt_compile\"" >&5)
5884    (eval "$lt_compile" 2>conftest.err)
5885    ac_status=$?
5886    cat conftest.err >&5
5887    echo "$as_me:5887: \$? = $ac_status" >&5
5888    if (exit $ac_status) && test -s "$ac_outfile"; then
5889      # The compiler can only warn and ignore the option if not recognized
5890      # So say no if there are warnings
5891      if test ! -s conftest.err; then
5892        lt_cv_prog_compiler_rtti_exceptions=yes
5893      fi
5894    fi
5895    $rm conftest*
5896
5897 fi
5898 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5899 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5900
5901 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5902     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5903 else
5904     :
5905 fi
5906
5907 fi
5908
5909 lt_prog_compiler_wl=
5910 lt_prog_compiler_pic=
5911 lt_prog_compiler_static=
5912
5913 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5914 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5915
5916   if test "$GCC" = yes; then
5917     lt_prog_compiler_wl='-Wl,'
5918     lt_prog_compiler_static='-static'
5919
5920     case $host_os in
5921       aix*)
5922       # All AIX code is PIC.
5923       if test "$host_cpu" = ia64; then
5924         # AIX 5 now supports IA64 processor
5925         lt_prog_compiler_static='-Bstatic'
5926       fi
5927       ;;
5928
5929     amigaos*)
5930       # FIXME: we need at least 68020 code to build shared libraries, but
5931       # adding the `-m68020' flag to GCC prevents building anything better,
5932       # like `-m68040'.
5933       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5934       ;;
5935
5936     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5937       # PIC is the default for these OSes.
5938       ;;
5939
5940     mingw* | pw32* | os2*)
5941       # This hack is so that the source file can tell whether it is being
5942       # built for inclusion in a dll (and should export symbols for example).
5943       lt_prog_compiler_pic='-DDLL_EXPORT'
5944       ;;
5945
5946     darwin* | rhapsody*)
5947       # PIC is the default on this platform
5948       # Common symbols not allowed in MH_DYLIB files
5949       lt_prog_compiler_pic='-fno-common'
5950       ;;
5951
5952     msdosdjgpp*)
5953       # Just because we use GCC doesn't mean we suddenly get shared libraries
5954       # on systems that don't support them.
5955       lt_prog_compiler_can_build_shared=no
5956       enable_shared=no
5957       ;;
5958
5959     sysv4*MP*)
5960       if test -d /usr/nec; then
5961         lt_prog_compiler_pic=-Kconform_pic
5962       fi
5963       ;;
5964
5965     hpux*)
5966       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5967       # not for PA HP-UX.
5968       case "$host_cpu" in
5969       hppa*64*|ia64*)
5970         # +Z the default
5971         ;;
5972       *)
5973         lt_prog_compiler_pic='-fPIC'
5974         ;;
5975       esac
5976       ;;
5977
5978     *)
5979       lt_prog_compiler_pic='-fPIC'
5980       ;;
5981     esac
5982   else
5983     # PORTME Check for flag to pass linker flags through the system compiler.
5984     case $host_os in
5985     aix*)
5986       lt_prog_compiler_wl='-Wl,'
5987       if test "$host_cpu" = ia64; then
5988         # AIX 5 now supports IA64 processor
5989         lt_prog_compiler_static='-Bstatic'
5990       else
5991         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5992       fi
5993       ;;
5994
5995     mingw* | pw32* | os2*)
5996       # This hack is so that the source file can tell whether it is being
5997       # built for inclusion in a dll (and should export symbols for example).
5998       lt_prog_compiler_pic='-DDLL_EXPORT'
5999       ;;
6000
6001     hpux9* | hpux10* | hpux11*)
6002       lt_prog_compiler_wl='-Wl,'
6003       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6004       # not for PA HP-UX.
6005       case "$host_cpu" in
6006       hppa*64*|ia64*)
6007         # +Z the default
6008         ;;
6009       *)
6010         lt_prog_compiler_pic='+Z'
6011         ;;
6012       esac
6013       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6014       lt_prog_compiler_static='${wl}-a ${wl}archive'
6015       ;;
6016
6017     irix5* | irix6* | nonstopux*)
6018       lt_prog_compiler_wl='-Wl,'
6019       # PIC (with -KPIC) is the default.
6020       lt_prog_compiler_static='-non_shared'
6021       ;;
6022
6023     newsos6)
6024       lt_prog_compiler_pic='-KPIC'
6025       lt_prog_compiler_static='-Bstatic'
6026       ;;
6027
6028     linux*)
6029       case $CC in
6030       icc|ecc)
6031         lt_prog_compiler_wl='-Wl,'
6032         lt_prog_compiler_pic='-KPIC'
6033         lt_prog_compiler_static='-static'
6034         ;;
6035       ccc)
6036         lt_prog_compiler_wl='-Wl,'
6037         # All Alpha code is PIC.
6038         lt_prog_compiler_static='-non_shared'
6039         ;;
6040       esac
6041       ;;
6042
6043     osf3* | osf4* | osf5*)
6044       lt_prog_compiler_wl='-Wl,'
6045       # All OSF/1 code is PIC.
6046       lt_prog_compiler_static='-non_shared'
6047       ;;
6048
6049     sco3.2v5*)
6050       lt_prog_compiler_pic='-Kpic'
6051       lt_prog_compiler_static='-dn'
6052       ;;
6053
6054     solaris*)
6055       lt_prog_compiler_wl='-Wl,'
6056       lt_prog_compiler_pic='-KPIC'
6057       lt_prog_compiler_static='-Bstatic'
6058       ;;
6059
6060     sunos4*)
6061       lt_prog_compiler_wl='-Qoption ld '
6062       lt_prog_compiler_pic='-PIC'
6063       lt_prog_compiler_static='-Bstatic'
6064       ;;
6065
6066     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6067       lt_prog_compiler_wl='-Wl,'
6068       lt_prog_compiler_pic='-KPIC'
6069       lt_prog_compiler_static='-Bstatic'
6070       ;;
6071
6072     sysv4*MP*)
6073       if test -d /usr/nec ;then
6074         lt_prog_compiler_pic='-Kconform_pic'
6075         lt_prog_compiler_static='-Bstatic'
6076       fi
6077       ;;
6078
6079     uts4*)
6080       lt_prog_compiler_pic='-pic'
6081       lt_prog_compiler_static='-Bstatic'
6082       ;;
6083
6084     *)
6085       lt_prog_compiler_can_build_shared=no
6086       ;;
6087     esac
6088   fi
6089
6090 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6091 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6092
6093 #
6094 # Check to make sure the PIC flag actually works.
6095 #
6096 if test -n "$lt_prog_compiler_pic"; then
6097   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6098 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6099 if test "${lt_prog_compiler_pic_works+set}" = set; then
6100   echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102   lt_prog_compiler_pic_works=no
6103   ac_outfile=conftest.$ac_objext
6104    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6105    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6106    # Insert the option either (1) after the last *FLAGS variable, or
6107    # (2) before a word containing "conftest.", or (3) at the end.
6108    # Note that $ac_compile itself does not contain backslashes and begins
6109    # with a dollar sign (not a hyphen), so the echo should work correctly.
6110    # The option is referenced via a variable to avoid confusing sed.
6111    lt_compile=`echo "$ac_compile" | $SED \
6112    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6113    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6114    -e 's:$: $lt_compiler_flag:'`
6115    (eval echo "\"\$as_me:6115: $lt_compile\"" >&5)
6116    (eval "$lt_compile" 2>conftest.err)
6117    ac_status=$?
6118    cat conftest.err >&5
6119    echo "$as_me:6119: \$? = $ac_status" >&5
6120    if (exit $ac_status) && test -s "$ac_outfile"; then
6121      # The compiler can only warn and ignore the option if not recognized
6122      # So say no if there are warnings
6123      if test ! -s conftest.err; then
6124        lt_prog_compiler_pic_works=yes
6125      fi
6126    fi
6127    $rm conftest*
6128
6129 fi
6130 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6131 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6132
6133 if test x"$lt_prog_compiler_pic_works" = xyes; then
6134     case $lt_prog_compiler_pic in
6135      "" | " "*) ;;
6136      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6137      esac
6138 else
6139     lt_prog_compiler_pic=
6140      lt_prog_compiler_can_build_shared=no
6141 fi
6142
6143 fi
6144 case "$host_os" in
6145   # For platforms which do not support PIC, -DPIC is meaningless:
6146   *djgpp*)
6147     lt_prog_compiler_pic=
6148     ;;
6149   *)
6150     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6151     ;;
6152 esac
6153
6154 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6155 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6156 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   lt_cv_prog_compiler_c_o=no
6160    $rm -r conftest 2>/dev/null
6161    mkdir conftest
6162    cd conftest
6163    mkdir out
6164    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6165
6166    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6167    # that will create temporary files in the current directory regardless of
6168    # the output directory.  Thus, making CWD read-only will cause this test
6169    # to fail, enabling locking or at least warning the user not to do parallel
6170    # builds.
6171    chmod -w .
6172
6173    lt_compiler_flag="-o out/conftest2.$ac_objext"
6174    # Insert the option either (1) after the last *FLAGS variable, or
6175    # (2) before a word containing "conftest.", or (3) at the end.
6176    # Note that $ac_compile itself does not contain backslashes and begins
6177    # with a dollar sign (not a hyphen), so the echo should work correctly.
6178    lt_compile=`echo "$ac_compile" | $SED \
6179    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6180    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6181    -e 's:$: $lt_compiler_flag:'`
6182    (eval echo "\"\$as_me:6182: $lt_compile\"" >&5)
6183    (eval "$lt_compile" 2>out/conftest.err)
6184    ac_status=$?
6185    cat out/conftest.err >&5
6186    echo "$as_me:6186: \$? = $ac_status" >&5
6187    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6188    then
6189      # The compiler can only warn and ignore the option if not recognized
6190      # So say no if there are warnings
6191      if test ! -s out/conftest.err; then
6192        lt_cv_prog_compiler_c_o=yes
6193      fi
6194    fi
6195    chmod u+w .
6196    $rm conftest* out/*
6197    rmdir out
6198    cd ..
6199    rmdir conftest
6200    $rm conftest*
6201
6202 fi
6203 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6204 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6205
6206
6207 hard_links="nottested"
6208 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6209   # do not overwrite the value of need_locks provided by the user
6210   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6211 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6212   hard_links=yes
6213   $rm conftest*
6214   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6215   touch conftest.a
6216   ln conftest.a conftest.b 2>&5 || hard_links=no
6217   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6218   echo "$as_me:$LINENO: result: $hard_links" >&5
6219 echo "${ECHO_T}$hard_links" >&6
6220   if test "$hard_links" = no; then
6221     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6222 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6223     need_locks=warn
6224   fi
6225 else
6226   need_locks=no
6227 fi
6228
6229 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6230 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6231
6232   runpath_var=
6233   allow_undefined_flag=
6234   enable_shared_with_static_runtimes=no
6235   archive_cmds=
6236   archive_expsym_cmds=
6237   old_archive_From_new_cmds=
6238   old_archive_from_expsyms_cmds=
6239   export_dynamic_flag_spec=
6240   whole_archive_flag_spec=
6241   thread_safe_flag_spec=
6242   hardcode_libdir_flag_spec=
6243   hardcode_libdir_flag_spec_ld=
6244   hardcode_libdir_separator=
6245   hardcode_direct=no
6246   hardcode_minus_L=no
6247   hardcode_shlibpath_var=unsupported
6248   link_all_deplibs=unknown
6249   hardcode_automatic=no
6250   module_cmds=
6251   module_expsym_cmds=
6252   always_export_symbols=no
6253   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6254   # include_expsyms should be a list of space-separated symbols to be *always*
6255   # included in the symbol list
6256   include_expsyms=
6257   # exclude_expsyms can be an extended regexp of symbols to exclude
6258   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6259   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6260   # as well as any symbol that contains `d'.
6261   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6262   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6263   # platforms (ab)use it in PIC code, but their linkers get confused if
6264   # the symbol is explicitly referenced.  Since portable code cannot
6265   # rely on this symbol name, it's probably fine to never include it in
6266   # preloaded symbol tables.
6267   extract_expsyms_cmds=
6268
6269   case $host_os in
6270   cygwin* | mingw* | pw32*)
6271     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6272     # When not using gcc, we currently assume that we are using
6273     # Microsoft Visual C++.
6274     if test "$GCC" != yes; then
6275       with_gnu_ld=no
6276     fi
6277     ;;
6278   openbsd*)
6279     with_gnu_ld=no
6280     ;;
6281   esac
6282
6283   ld_shlibs=yes
6284   if test "$with_gnu_ld" = yes; then
6285     # If archive_cmds runs LD, not CC, wlarc should be empty
6286     wlarc='${wl}'
6287
6288     # See if GNU ld supports shared libraries.
6289     case $host_os in
6290     aix3* | aix4* | aix5*)
6291       # On AIX/PPC, the GNU linker is very broken
6292       if test "$host_cpu" != ia64; then
6293         ld_shlibs=no
6294         cat <<EOF 1>&2
6295
6296 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6297 *** to be unable to reliably create shared libraries on AIX.
6298 *** Therefore, libtool is disabling shared libraries support.  If you
6299 *** really care for shared libraries, you may want to modify your PATH
6300 *** so that a non-GNU linker is found, and then restart.
6301
6302 EOF
6303       fi
6304       ;;
6305
6306     amigaos*)
6307       archive_cmds='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
6308       hardcode_libdir_flag_spec='-L$libdir'
6309       hardcode_minus_L=yes
6310
6311       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6312       # that the semantics of dynamic libraries on AmigaOS, at least up
6313       # to version 4, is to share data among multiple programs linked
6314       # with the same dynamic library.  Since this doesn't match the
6315       # behavior of shared libraries on other platforms, we can't use
6316       # them.
6317       ld_shlibs=no
6318       ;;
6319
6320     beos*)
6321       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6322         allow_undefined_flag=unsupported
6323         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6324         # support --undefined.  This deserves some investigation.  FIXME
6325         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6326       else
6327         ld_shlibs=no
6328       fi
6329       ;;
6330
6331     cygwin* | mingw* | pw32*)
6332       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6333       # as there is no search path for DLLs.
6334       hardcode_libdir_flag_spec='-L$libdir'
6335       allow_undefined_flag=unsupported
6336       always_export_symbols=no
6337       enable_shared_with_static_runtimes=yes
6338       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6339
6340       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6341         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6342         # If the export-symbols file already is a .def file (1st line
6343         # is EXPORTS), use it as is; otherwise, prepend...
6344         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6345           cp $export_symbols $output_objdir/$soname.def;
6346         else
6347           echo EXPORTS > $output_objdir/$soname.def;
6348           cat $export_symbols >> $output_objdir/$soname.def;
6349         fi${_S_}
6350         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6351       else
6352         ld_shlibs=no
6353       fi
6354       ;;
6355
6356     netbsd*)
6357       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6358         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6359         wlarc=
6360       else
6361         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6362         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6363       fi
6364       ;;
6365
6366     solaris* | sysv5*)
6367       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6368         ld_shlibs=no
6369         cat <<EOF 1>&2
6370
6371 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6372 *** create shared libraries on Solaris systems.  Therefore, libtool
6373 *** is disabling shared libraries support.  We urge you to upgrade GNU
6374 *** binutils to release 2.9.1 or newer.  Another option is to modify
6375 *** your PATH or compiler configuration so that the native linker is
6376 *** used, and then restart.
6377
6378 EOF
6379       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6380         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6381         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6382       else
6383         ld_shlibs=no
6384       fi
6385       ;;
6386
6387     sunos4*)
6388       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6389       wlarc=
6390       hardcode_direct=yes
6391       hardcode_shlibpath_var=no
6392       ;;
6393
6394     *)
6395       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6396         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6397         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6398       else
6399         ld_shlibs=no
6400       fi
6401       ;;
6402     esac
6403
6404     if test "$ld_shlibs" = yes; then
6405       runpath_var=LD_RUN_PATH
6406       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6407       export_dynamic_flag_spec='${wl}--export-dynamic'
6408       # ancient GNU ld didn't support --whole-archive et. al.
6409       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6410         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6411       else
6412         whole_archive_flag_spec=
6413       fi
6414     fi
6415   else
6416     # PORTME fill in a description of your system's linker (not GNU ld)
6417     case $host_os in
6418     aix3*)
6419       allow_undefined_flag=unsupported
6420       always_export_symbols=yes
6421       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
6422       # Note: this linker hardcodes the directories in LIBPATH if there
6423       # are no directories specified by -L.
6424       hardcode_minus_L=yes
6425       if test "$GCC" = yes && test -z "$link_static_flag"; then
6426         # Neither direct hardcoding nor static linking is supported with a
6427         # broken collect2.
6428         hardcode_direct=unsupported
6429       fi
6430       ;;
6431
6432     aix4* | aix5*)
6433       if test "$host_cpu" = ia64; then
6434         # On IA64, the linker does run time linking by default, so we don't
6435         # have to do anything special.
6436         aix_use_runtimelinking=no
6437         exp_sym_flag='-Bexport'
6438         no_entry_flag=""
6439       else
6440         # If we're using GNU nm, then we don't want the "-C" option.
6441         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6442         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6443           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'
6444         else
6445           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'
6446         fi
6447         aix_use_runtimelinking=no
6448
6449         # Test if we are trying to use run time linking or normal
6450         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6451         # need to do runtime linking.
6452         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6453           for ld_flag in $LDFLAGS; do
6454           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6455             aix_use_runtimelinking=yes
6456             break
6457           fi
6458           done
6459         esac
6460
6461         exp_sym_flag='-bexport'
6462         no_entry_flag='-bnoentry'
6463       fi
6464
6465       # When large executables or shared objects are built, AIX ld can
6466       # have problems creating the table of contents.  If linking a library
6467       # or program results in "error TOC overflow" add -mminimal-toc to
6468       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6469       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6470
6471       archive_cmds=''
6472       hardcode_direct=yes
6473       hardcode_libdir_separator=':'
6474       link_all_deplibs=yes
6475
6476       if test "$GCC" = yes; then
6477         case $host_os in aix4.012|aix4.012.*)
6478         # We only want to do this on AIX 4.2 and lower, the check
6479         # below for broken collect2 doesn't work under 4.3+
6480           collect2name=`${CC} -print-prog-name=collect2`
6481           if test -f "$collect2name" && \
6482            strings "$collect2name" | grep resolve_lib_name >/dev/null
6483           then
6484           # We have reworked collect2
6485           hardcode_direct=yes
6486           else
6487           # We have old collect2
6488           hardcode_direct=unsupported
6489           # It fails to find uninstalled libraries when the uninstalled
6490           # path is not listed in the libpath.  Setting hardcode_minus_L
6491           # to unsupported forces relinking
6492           hardcode_minus_L=yes
6493           hardcode_libdir_flag_spec='-L$libdir'
6494           hardcode_libdir_separator=
6495           fi
6496         esac
6497         shared_flag='-shared'
6498       else
6499         # not using gcc
6500         if test "$host_cpu" = ia64; then
6501         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6502         # chokes on -Wl,-G. The following line is correct:
6503           shared_flag='-G'
6504         else
6505         if test "$aix_use_runtimelinking" = yes; then
6506             shared_flag='${wl}-G'
6507           else
6508             shared_flag='${wl}-bM:SRE'
6509         fi
6510         fi
6511       fi
6512
6513       # It seems that -bexpall does not export symbols beginning with
6514       # underscore (_), so it is better to generate a list of symbols to export.
6515       always_export_symbols=yes
6516       if test "$aix_use_runtimelinking" = yes; then
6517         # Warning - without using the other runtime loading flags (-brtl),
6518         # -berok will link without error, but may produce a broken library.
6519         allow_undefined_flag='-berok'
6520        # Determine the default libpath from the value encoded in an empty executable.
6521        cat >conftest.$ac_ext <<_ACEOF
6522 #line $LINENO "configure"
6523 /* confdefs.h.  */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h.  */
6528
6529 int
6530 main ()
6531 {
6532
6533   ;
6534   return 0;
6535 }
6536 _ACEOF
6537 rm -f conftest.$ac_objext conftest$ac_exeext
6538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6539   (eval $ac_link) 2>&5
6540   ac_status=$?
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); } &&
6543          { ac_try='test -s conftest$ac_exeext'
6544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545   (eval $ac_try) 2>&5
6546   ac_status=$?
6547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548   (exit $ac_status); }; }; then
6549
6550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6551 }'`
6552 # Check for a 64-bit object if we didn't find anything.
6553 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; }
6554 }'`; fi
6555 else
6556   echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6558
6559 fi
6560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6562
6563        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6564         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"
6565        else
6566         if test "$host_cpu" = ia64; then
6567           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6568           allow_undefined_flag="-z nodefs"
6569           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"
6570         else
6571          # Determine the default libpath from the value encoded in an empty executable.
6572          cat >conftest.$ac_ext <<_ACEOF
6573 #line $LINENO "configure"
6574 /* confdefs.h.  */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h.  */
6579
6580 int
6581 main ()
6582 {
6583
6584   ;
6585   return 0;
6586 }
6587 _ACEOF
6588 rm -f conftest.$ac_objext conftest$ac_exeext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6590   (eval $ac_link) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); } &&
6594          { ac_try='test -s conftest$ac_exeext'
6595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596   (eval $ac_try) 2>&5
6597   ac_status=$?
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); }; }; then
6600
6601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6602 }'`
6603 # Check for a 64-bit object if we didn't find anything.
6604 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; }
6605 }'`; fi
6606 else
6607   echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6609
6610 fi
6611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6612 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6613
6614          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6615           # Warning - without using the other run time loading flags,
6616           # -berok will link without error, but may produce a broken library.
6617           no_undefined_flag=' ${wl}-bernotok'
6618           allow_undefined_flag=' ${wl}-berok'
6619           # -bexpall does not export symbols beginning with underscore (_)
6620           always_export_symbols=yes
6621           # Exported symbols can be pulled into shared objects from archives
6622           whole_archive_flag_spec=' '
6623           archive_cmds_need_lc=yes
6624           # This is similar to how AIX traditionally builds it's shared libraries.
6625           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6626         fi
6627       fi
6628       ;;
6629
6630     amigaos*)
6631       archive_cmds='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
6632       hardcode_libdir_flag_spec='-L$libdir'
6633       hardcode_minus_L=yes
6634       # see comment about different semantics on the GNU ld section
6635       ld_shlibs=no
6636       ;;
6637
6638     bsdi4*)
6639       export_dynamic_flag_spec=-rdynamic
6640       ;;
6641
6642     cygwin* | mingw* | pw32*)
6643       # When not using gcc, we currently assume that we are using
6644       # Microsoft Visual C++.
6645       # hardcode_libdir_flag_spec is actually meaningless, as there is
6646       # no search path for DLLs.
6647       hardcode_libdir_flag_spec=' '
6648       allow_undefined_flag=unsupported
6649       # Tell ltmain to make .lib files, not .a files.
6650       libext=lib
6651       # Tell ltmain to make .dll files, not .so files.
6652       shrext=".dll"
6653       # FIXME: Setting linknames here is a bad hack.
6654       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
6655       # The linker will automatically build a .lib file if we build a DLL.
6656       old_archive_From_new_cmds='true'
6657       # FIXME: Should let the user specify the lib program.
6658       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6659       fix_srcfile_path='`cygpath -w "$srcfile"`'
6660       enable_shared_with_static_runtimes=yes
6661       ;;
6662
6663     darwin* | rhapsody*)
6664     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6665       archive_cmds_need_lc=no
6666       case "$host_os" in
6667       rhapsody* | darwin1.[012])
6668         allow_undefined_flag='-undefined suppress'
6669         ;;
6670       darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
6671         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6672         ;;
6673       *) # Darwin 7.0 on
6674         case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
6675         10.[012])
6676           test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6677           ;;
6678         *) # 10.3 on
6679           if test -z ${LD_TWOLEVEL_NAMESPACE}; then
6680             allow_undefined_flag='-flat_namespace -undefined suppress'
6681           else
6682             allow_undefined_flag='-undefined dynamic_lookup'
6683           fi
6684           ;;
6685         esac
6686         ;;
6687       esac
6688       # FIXME: Relying on posixy $() will cause problems for
6689       #        cross-compilation, but unfortunately the echo tests do not
6690       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6691       #        `"' quotes if we put them in here... so don't!
6692         lt_int_apple_cc_single_mod=no
6693         output_verbose_link_cmd='echo'
6694         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6695           lt_int_apple_cc_single_mod=yes
6696         fi
6697         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6698           archive_cmds='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6699         else
6700         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6701       fi
6702       module_cmds='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6703       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6704         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6705           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6706         else
6707           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6708         fi
6709           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6710       hardcode_direct=no
6711       hardcode_automatic=yes
6712       hardcode_shlibpath_var=unsupported
6713       whole_archive_flag_spec='-all_load $convenience'
6714       link_all_deplibs=yes
6715     fi
6716       ;;
6717
6718     dgux*)
6719       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6720       hardcode_libdir_flag_spec='-L$libdir'
6721       hardcode_shlibpath_var=no
6722       ;;
6723
6724     freebsd1*)
6725       ld_shlibs=no
6726       ;;
6727
6728     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6729     # support.  Future versions do this automatically, but an explicit c++rt0.o
6730     # does not break anything, and helps significantly (at the cost of a little
6731     # extra space).
6732     freebsd2.2*)
6733       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6734       hardcode_libdir_flag_spec='-R$libdir'
6735       hardcode_direct=yes
6736       hardcode_shlibpath_var=no
6737       ;;
6738
6739     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6740     freebsd2*)
6741       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6742       hardcode_direct=yes
6743       hardcode_minus_L=yes
6744       hardcode_shlibpath_var=no
6745       ;;
6746
6747     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6748     freebsd*)
6749       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6750       hardcode_libdir_flag_spec='-R$libdir'
6751       hardcode_direct=yes
6752       hardcode_shlibpath_var=no
6753       ;;
6754
6755     hpux9*)
6756       if test "$GCC" = yes; then
6757         archive_cmds='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6758       else
6759         archive_cmds='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6760       fi
6761       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6762       hardcode_libdir_separator=:
6763       hardcode_direct=yes
6764
6765       # hardcode_minus_L: Not really in the search PATH,
6766       # but as the default location of the library.
6767       hardcode_minus_L=yes
6768       export_dynamic_flag_spec='${wl}-E'
6769       ;;
6770
6771     hpux10* | hpux11*)
6772       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6773         case "$host_cpu" in
6774         hppa*64*|ia64*)
6775           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6776           ;;
6777         *)
6778           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6779           ;;
6780         esac
6781       else
6782         case "$host_cpu" in
6783         hppa*64*|ia64*)
6784           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6785           ;;
6786         *)
6787           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6788           ;;
6789         esac
6790       fi
6791       if test "$with_gnu_ld" = no; then
6792         case "$host_cpu" in
6793         hppa*64*)
6794           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6795           hardcode_libdir_flag_spec_ld='+b $libdir'
6796           hardcode_libdir_separator=:
6797           hardcode_direct=no
6798           hardcode_shlibpath_var=no
6799           ;;
6800         ia64*)
6801           hardcode_libdir_flag_spec='-L$libdir'
6802           hardcode_direct=no
6803           hardcode_shlibpath_var=no
6804
6805           # hardcode_minus_L: Not really in the search PATH,
6806           # but as the default location of the library.
6807           hardcode_minus_L=yes
6808           ;;
6809         *)
6810           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6811           hardcode_libdir_separator=:
6812           hardcode_direct=yes
6813           export_dynamic_flag_spec='${wl}-E'
6814
6815           # hardcode_minus_L: Not really in the search PATH,
6816           # but as the default location of the library.
6817           hardcode_minus_L=yes
6818           ;;
6819         esac
6820       fi
6821       ;;
6822
6823     irix5* | irix6* | nonstopux*)
6824       if test "$GCC" = yes; then
6825         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'
6826       else
6827         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'
6828         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6829       fi
6830       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6831       hardcode_libdir_separator=:
6832       link_all_deplibs=yes
6833       ;;
6834
6835     netbsd*)
6836       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6837         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6838       else
6839         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6840       fi
6841       hardcode_libdir_flag_spec='-R$libdir'
6842       hardcode_direct=yes
6843       hardcode_shlibpath_var=no
6844       ;;
6845
6846     newsos6)
6847       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6848       hardcode_direct=yes
6849       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6850       hardcode_libdir_separator=:
6851       hardcode_shlibpath_var=no
6852       ;;
6853
6854     openbsd*)
6855       hardcode_direct=yes
6856       hardcode_shlibpath_var=no
6857       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6858         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6859         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6860         export_dynamic_flag_spec='${wl}-E'
6861       else
6862        case $host_os in
6863          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6864            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6865            hardcode_libdir_flag_spec='-R$libdir'
6866            ;;
6867          *)
6868            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6869            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6870            ;;
6871        esac
6872       fi
6873       ;;
6874
6875     os2*)
6876       hardcode_libdir_flag_spec='-L$libdir'
6877       hardcode_minus_L=yes
6878       allow_undefined_flag=unsupported
6879       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6880       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6881       ;;
6882
6883     osf3*)
6884       if test "$GCC" = yes; then
6885         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6886         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'
6887       else
6888         allow_undefined_flag=' -expect_unresolved \*'
6889         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'
6890       fi
6891       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6892       hardcode_libdir_separator=:
6893       ;;
6894
6895     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6896       if test "$GCC" = yes; then
6897         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6898         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'
6899         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6900       else
6901         allow_undefined_flag=' -expect_unresolved \*'
6902         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'
6903         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp${_S_}
6904         $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${_S_}$rm $lib.exp'
6905
6906         # Both c and cxx compiler support -rpath directly
6907         hardcode_libdir_flag_spec='-rpath $libdir'
6908       fi
6909       hardcode_libdir_separator=:
6910       ;;
6911
6912     sco3.2v5*)
6913       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6914       hardcode_shlibpath_var=no
6915       export_dynamic_flag_spec='${wl}-Bexport'
6916       runpath_var=LD_RUN_PATH
6917       hardcode_runpath_var=yes
6918       ;;
6919
6920     solaris*)
6921       no_undefined_flag=' -z text'
6922       if test "$GCC" = yes; then
6923         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6924         archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
6925           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
6926       else
6927         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6928         archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
6929         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
6930       fi
6931       hardcode_libdir_flag_spec='-R$libdir'
6932       hardcode_shlibpath_var=no
6933       case $host_os in
6934       solaris2.[0-5] | solaris2.[0-5].*) ;;
6935       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6936         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6937       esac
6938       link_all_deplibs=yes
6939       ;;
6940
6941     sunos4*)
6942       if test "x$host_vendor" = xsequent; then
6943         # Use $CC to link under sequent, because it throws in some extra .o
6944         # files that make .init and .fini sections work.
6945         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6946       else
6947         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6948       fi
6949       hardcode_libdir_flag_spec='-L$libdir'
6950       hardcode_direct=yes
6951       hardcode_minus_L=yes
6952       hardcode_shlibpath_var=no
6953       ;;
6954
6955     sysv4)
6956       case $host_vendor in
6957         sni)
6958           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6959           hardcode_direct=yes # is this really true???
6960         ;;
6961         siemens)
6962           ## LD is ld it makes a PLAMLIB
6963           ## CC just makes a GrossModule.
6964           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6965           reload_cmds='$CC -r -o $output$reload_objs'
6966           hardcode_direct=no
6967         ;;
6968         motorola)
6969           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6970           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6971         ;;
6972       esac
6973       runpath_var='LD_RUN_PATH'
6974       hardcode_shlibpath_var=no
6975       ;;
6976
6977     sysv4.3*)
6978       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6979       hardcode_shlibpath_var=no
6980       export_dynamic_flag_spec='-Bexport'
6981       ;;
6982
6983     sysv4*MP*)
6984       if test -d /usr/nec; then
6985         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6986         hardcode_shlibpath_var=no
6987         runpath_var=LD_RUN_PATH
6988         hardcode_runpath_var=yes
6989         ld_shlibs=yes
6990       fi
6991       ;;
6992
6993     sysv4.2uw2*)
6994       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6995       hardcode_direct=yes
6996       hardcode_minus_L=no
6997       hardcode_shlibpath_var=no
6998       hardcode_runpath_var=yes
6999       runpath_var=LD_RUN_PATH
7000       ;;
7001
7002    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7003       no_undefined_flag='${wl}-z ${wl}text'
7004       if test "$GCC" = yes; then
7005         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7006       else
7007         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7008       fi
7009       runpath_var='LD_RUN_PATH'
7010       hardcode_shlibpath_var=no
7011       ;;
7012
7013     sysv5*)
7014       no_undefined_flag=' -z text'
7015       # $CC -shared without GNU ld will not create a library from C++
7016       # object files and a static libstdc++, better avoid it by now
7017       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7018       archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
7019                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
7020       hardcode_libdir_flag_spec=
7021       hardcode_shlibpath_var=no
7022       runpath_var='LD_RUN_PATH'
7023       ;;
7024
7025     uts4*)
7026       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7027       hardcode_libdir_flag_spec='-L$libdir'
7028       hardcode_shlibpath_var=no
7029       ;;
7030
7031     *)
7032       ld_shlibs=no
7033       ;;
7034     esac
7035   fi
7036
7037 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7038 echo "${ECHO_T}$ld_shlibs" >&6
7039 test "$ld_shlibs" = no && can_build_shared=no
7040
7041 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7042 if test "$GCC" = yes; then
7043   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7044 fi
7045
7046 #
7047 # Do we need to explicitly link libc?
7048 #
7049 case "x$archive_cmds_need_lc" in
7050 x|xyes)
7051   # Assume -lc should be added
7052   archive_cmds_need_lc=yes
7053
7054   if test "$enable_shared" = yes && test "$GCC" = yes; then
7055     case $archive_cmds in
7056     *"$_S_"*)
7057       # FIXME: we may have to deal with multi-command sequences.
7058       ;;
7059     '$CC '*)
7060       # Test whether the compiler implicitly links with -lc since on some
7061       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7062       # to ld, don't add -lc before -lgcc.
7063       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7064 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7065       $rm conftest*
7066       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7067
7068       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069   (eval $ac_compile) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } 2>conftest.err; then
7073         soname=conftest
7074         lib=conftest
7075         libobjs=conftest.$ac_objext
7076         deplibs=
7077         wl=$lt_prog_compiler_wl
7078         compiler_flags=-v
7079         linker_flags=-v
7080         verstring=
7081         output_objdir=.
7082         libname=conftest
7083         lt_save_allow_undefined_flag=$allow_undefined_flag
7084         allow_undefined_flag=
7085         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7086   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7087   ac_status=$?
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); }
7090         then
7091           archive_cmds_need_lc=no
7092         else
7093           archive_cmds_need_lc=yes
7094         fi
7095         allow_undefined_flag=$lt_save_allow_undefined_flag
7096       else
7097         cat conftest.err 1>&5
7098       fi
7099       $rm conftest*
7100       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7101 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7102       ;;
7103     esac
7104   fi
7105   ;;
7106 esac
7107
7108 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7109 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7110 hardcode_action=
7111 if test -n "$hardcode_libdir_flag_spec" || \
7112    test -n "$runpath_var " || \
7113    test "X$hardcode_automatic"="Xyes" ; then
7114
7115   # We can hardcode non-existant directories.
7116   if test "$hardcode_direct" != no &&
7117      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7118      # have to relink, otherwise we might link with an installed library
7119      # when we should be linking with a yet-to-be-installed one
7120      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7121      test "$hardcode_minus_L" != no; then
7122     # Linking always hardcodes the temporary library directory.
7123     hardcode_action=relink
7124   else
7125     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7126     hardcode_action=immediate
7127   fi
7128 else
7129   # We cannot hardcode anything, or else we can only hardcode existing
7130   # directories.
7131   hardcode_action=unsupported
7132 fi
7133 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7134 echo "${ECHO_T}$hardcode_action" >&6
7135
7136 if test "$hardcode_action" = relink; then
7137   # Fast installation is not supported
7138   enable_fast_install=no
7139 elif test "$shlibpath_overrides_runpath" = yes ||
7140      test "$enable_shared" = no; then
7141   # Fast installation is not necessary
7142   enable_fast_install=needless
7143 fi
7144
7145 striplib=
7146 old_striplib=
7147 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7148 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7149 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7150   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7151   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7152   echo "$as_me:$LINENO: result: yes" >&5
7153 echo "${ECHO_T}yes" >&6
7154 else
7155 # FIXME - insert some real tests, host_os isn't really good enough
7156   case $host_os in
7157    NOT-darwin*)
7158        if test -n "$STRIP" ; then
7159          striplib="$STRIP -x"
7160          echo "$as_me:$LINENO: result: yes" >&5
7161 echo "${ECHO_T}yes" >&6
7162        else
7163   echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7165 fi
7166        ;;
7167    *)
7168   echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6
7170     ;;
7171   esac
7172 fi
7173
7174 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7175 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7176 library_names_spec=
7177 libname_spec='lib$name'
7178 soname_spec=
7179 shrext=".so"
7180 postinstall_cmds=
7181 postuninstall_cmds=
7182 finish_cmds=
7183 finish_eval=
7184 shlibpath_var=
7185 shlibpath_overrides_runpath=unknown
7186 version_type=none
7187 dynamic_linker="$host_os ld.so"
7188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7189 if test "$GCC" = yes; then
7190   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7191   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7192     # if the path contains ";" then we assume it to be the separator
7193     # otherwise default to the standard path separator (i.e. ":") - it is
7194     # assumed that no part of a normal pathname contains ";" but that should
7195     # okay in the real world where ";" in dirpaths is itself problematic.
7196     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7197   else
7198     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7199   fi
7200 else
7201   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7202 fi
7203 need_lib_prefix=unknown
7204 hardcode_into_libs=no
7205
7206 # when you set need_version to no, make sure it does not cause -set_version
7207 # flags to be left without arguments
7208 need_version=unknown
7209
7210 case $host_os in
7211 aix3*)
7212   version_type=linux
7213   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7214   shlibpath_var=LIBPATH
7215
7216   # AIX 3 has no versioning support, so we append a major version to the name.
7217   soname_spec='${libname}${release}${shared_ext}$major'
7218   ;;
7219
7220 aix4* | aix5*)
7221   version_type=linux
7222   need_lib_prefix=no
7223   need_version=no
7224   hardcode_into_libs=yes
7225   if test "$host_cpu" = ia64; then
7226     # AIX 5 supports IA64
7227     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7228     shlibpath_var=LD_LIBRARY_PATH
7229   else
7230     # With GCC up to 2.95.x, collect2 would create an import file
7231     # for dependence libraries.  The import file would start with
7232     # the line `#! .'.  This would cause the generated library to
7233     # depend on `.', always an invalid library.  This was fixed in
7234     # development snapshots of GCC prior to 3.0.
7235     case $host_os in
7236       aix4 | aix4.[01] | aix4.[01].*)
7237       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7238            echo ' yes '
7239            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7240         :
7241       else
7242         can_build_shared=no
7243       fi
7244       ;;
7245     esac
7246     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7247     # soname into executable. Probably we can add versioning support to
7248     # collect2, so additional links can be useful in future.
7249     if test "$aix_use_runtimelinking" = yes; then
7250       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7251       # instead of lib<name>.a to let people know that these are not
7252       # typical AIX shared libraries.
7253       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7254     else
7255       # We preserve .a as extension for shared libraries through AIX4.2
7256       # and later when we are not doing run time linking.
7257       library_names_spec='${libname}${release}.a $libname.a'
7258       soname_spec='${libname}${release}${shared_ext}$major'
7259     fi
7260     shlibpath_var=LIBPATH
7261   fi
7262   ;;
7263
7264 amigaos*)
7265   library_names_spec='$libname.ixlibrary $libname.a'
7266   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7267   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'
7268   ;;
7269
7270 beos*)
7271   library_names_spec='${libname}${shared_ext}'
7272   dynamic_linker="$host_os ld.so"
7273   shlibpath_var=LIBRARY_PATH
7274   ;;
7275
7276 bsdi4*)
7277   version_type=linux
7278   need_version=no
7279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7280   soname_spec='${libname}${release}${shared_ext}$major'
7281   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7282   shlibpath_var=LD_LIBRARY_PATH
7283   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7284   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7285   # the default ld.so.conf also contains /usr/contrib/lib and
7286   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7287   # libtool to hard-code these into programs
7288   ;;
7289
7290 cygwin* | mingw* | pw32*)
7291   version_type=windows
7292   shrext=".dll"
7293   need_version=no
7294   need_lib_prefix=no
7295
7296   case $GCC,$host_os in
7297   yes,cygwin* | yes,mingw* | yes,pw32*)
7298     library_names_spec='$libname.dll.a'
7299     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7300     postinstall_cmds='base_file=`basename \${file}`${_S_}
7301       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
7302       dldir=$destdir/`dirname \$dlpath`${_S_}
7303       test -d \$dldir || mkdir -p \$dldir${_S_}
7304       $install_prog $dir/$dlname \$dldir/$dlname'
7305     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
7306       dlpath=$dir/\$dldll${_S_}
7307        $rm \$dlpath'
7308     shlibpath_overrides_runpath=yes
7309
7310     case $host_os in
7311     cygwin*)
7312       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7313       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7314       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7315       ;;
7316     mingw*)
7317       # MinGW DLLs use traditional 'lib' prefix
7318       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7319       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7320       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7321         # It is most probably a Windows format PATH printed by
7322         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7323         # path with ; separators, and with drive letters. We can handle the
7324         # drive letters (cygwin fileutils understands them), so leave them,
7325         # especially as we might pass files found there to a mingw objdump,
7326         # which wouldn't understand a cygwinified path. Ahh.
7327         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7328       else
7329         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7330       fi
7331       ;;
7332     pw32*)
7333       # pw32 DLLs use 'pw' prefix rather than 'lib'
7334       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7335       ;;
7336     esac
7337     ;;
7338
7339   *)
7340     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7341     ;;
7342   esac
7343   dynamic_linker='Win32 ld.exe'
7344   # FIXME: first we should search . and the directory the executable is in
7345   shlibpath_var=PATH
7346   ;;
7347
7348 darwin* | rhapsody*)
7349   dynamic_linker="$host_os dyld"
7350   version_type=darwin
7351   need_lib_prefix=no
7352   need_version=no
7353   # FIXME: Relying on posixy $() will cause problems for
7354   #        cross-compilation, but unfortunately the echo tests do not
7355   #        yet detect zsh echo's removal of \ escapes.
7356   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
7357   soname_spec='${libname}${release}${major}$shared_ext'
7358   shlibpath_overrides_runpath=yes
7359   shlibpath_var=DYLD_LIBRARY_PATH
7360   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7361   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7362   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7363   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"`
7364   fi
7365   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7366   ;;
7367
7368 dgux*)
7369   version_type=linux
7370   need_lib_prefix=no
7371   need_version=no
7372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7373   soname_spec='${libname}${release}${shared_ext}$major'
7374   shlibpath_var=LD_LIBRARY_PATH
7375   ;;
7376
7377 freebsd1*)
7378   dynamic_linker=no
7379   ;;
7380
7381 freebsd*)
7382   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7383   version_type=freebsd-$objformat
7384   case $version_type in
7385     freebsd-elf*)
7386       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7387       need_version=no
7388       need_lib_prefix=no
7389       ;;
7390     freebsd-*)
7391       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7392       need_version=yes
7393       ;;
7394   esac
7395   shlibpath_var=LD_LIBRARY_PATH
7396   case $host_os in
7397   freebsd2*)
7398     shlibpath_overrides_runpath=yes
7399     ;;
7400   freebsd3.01* | freebsdelf3.01*)
7401     shlibpath_overrides_runpath=yes
7402     hardcode_into_libs=yes
7403     ;;
7404   *) # from 3.2 on
7405     shlibpath_overrides_runpath=no
7406     hardcode_into_libs=yes
7407     ;;
7408   esac
7409   ;;
7410
7411 gnu*)
7412   version_type=linux
7413   need_lib_prefix=no
7414   need_version=no
7415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7416   soname_spec='${libname}${release}${shared_ext}$major'
7417   shlibpath_var=LD_LIBRARY_PATH
7418   hardcode_into_libs=yes
7419   ;;
7420
7421 hpux9* | hpux10* | hpux11*)
7422   # Give a soname corresponding to the major version so that dld.sl refuses to
7423   # link against other versions.
7424   version_type=sunos
7425   need_lib_prefix=no
7426   need_version=no
7427   case "$host_cpu" in
7428   ia64*)
7429     shrext='.so'
7430     hardcode_into_libs=yes
7431     dynamic_linker="$host_os dld.so"
7432     shlibpath_var=LD_LIBRARY_PATH
7433     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7435     soname_spec='${libname}${release}${shared_ext}$major'
7436     if test "X$HPUX_IA64_MODE" = X32; then
7437       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7438     else
7439       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7440     fi
7441     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7442     ;;
7443    hppa*64*)
7444      shrext='.sl'
7445      hardcode_into_libs=yes
7446      dynamic_linker="$host_os dld.sl"
7447      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7448      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7449      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7450      soname_spec='${libname}${release}${shared_ext}$major'
7451      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7452      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7453      ;;
7454    *)
7455     shrext='.sl'
7456     dynamic_linker="$host_os dld.sl"
7457     shlibpath_var=SHLIB_PATH
7458     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7460     soname_spec='${libname}${release}${shared_ext}$major'
7461     ;;
7462   esac
7463   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7464   postinstall_cmds='chmod 555 $lib'
7465   ;;
7466
7467 irix5* | irix6* | nonstopux*)
7468   case $host_os in
7469     nonstopux*) version_type=nonstopux ;;
7470     *)
7471         if test "$lt_cv_prog_gnu_ld" = yes; then
7472                 version_type=linux
7473         else
7474                 version_type=irix
7475         fi ;;
7476   esac
7477   need_lib_prefix=no
7478   need_version=no
7479   soname_spec='${libname}${release}${shared_ext}$major'
7480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7481   case $host_os in
7482   irix5* | nonstopux*)
7483     libsuff= shlibsuff=
7484     ;;
7485   *)
7486     case $LD in # libtool.m4 will add one of these switches to LD
7487     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7488       libsuff= shlibsuff= libmagic=32-bit;;
7489     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7490       libsuff=32 shlibsuff=N32 libmagic=N32;;
7491     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7492       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7493     *) libsuff= shlibsuff= libmagic=never-match;;
7494     esac
7495     ;;
7496   esac
7497   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7498   shlibpath_overrides_runpath=no
7499   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7500   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7501   hardcode_into_libs=yes
7502   ;;
7503
7504 # No shared lib support for Linux oldld, aout, or coff.
7505 linux*oldld* | linux*aout* | linux*coff*)
7506   dynamic_linker=no
7507   ;;
7508
7509 # This must be Linux ELF.
7510 linux*)
7511   version_type=linux
7512   need_lib_prefix=no
7513   need_version=no
7514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7515   soname_spec='${libname}${release}${shared_ext}$major'
7516   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7517   shlibpath_var=LD_LIBRARY_PATH
7518   shlibpath_overrides_runpath=no
7519   # This implies no fast_install, which is unacceptable.
7520   # Some rework will be needed to allow for fast_install
7521   # before this can be enabled.
7522   hardcode_into_libs=yes
7523
7524   # We used to test for /lib/ld.so.1 and disable shared libraries on
7525   # powerpc, because MkLinux only supported shared libraries with the
7526   # GNU dynamic linker.  Since this was broken with cross compilers,
7527   # most powerpc-linux boxes support dynamic linking these days and
7528   # people can always --disable-shared, the test was removed, and we
7529   # assume the GNU/Linux dynamic linker is in use.
7530   dynamic_linker='GNU/Linux ld.so'
7531   ;;
7532
7533 netbsd*)
7534   version_type=sunos
7535   need_lib_prefix=no
7536   need_version=no
7537   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7538     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7539     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7540     dynamic_linker='NetBSD (a.out) ld.so'
7541   else
7542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7543     soname_spec='${libname}${release}${shared_ext}$major'
7544     dynamic_linker='NetBSD ld.elf_so'
7545   fi
7546   shlibpath_var=LD_LIBRARY_PATH
7547   shlibpath_overrides_runpath=yes
7548   hardcode_into_libs=yes
7549   ;;
7550
7551 newsos6)
7552   version_type=linux
7553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7554   shlibpath_var=LD_LIBRARY_PATH
7555   shlibpath_overrides_runpath=yes
7556   ;;
7557
7558 nto-qnx)
7559   version_type=linux
7560   need_lib_prefix=no
7561   need_version=no
7562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7563   soname_spec='${libname}${release}${shared_ext}$major'
7564   shlibpath_var=LD_LIBRARY_PATH
7565   shlibpath_overrides_runpath=yes
7566   ;;
7567
7568 openbsd*)
7569   version_type=sunos
7570   need_lib_prefix=no
7571   need_version=no
7572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7573   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7574   shlibpath_var=LD_LIBRARY_PATH
7575   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7576     case $host_os in
7577       openbsd2.[89] | openbsd2.[89].*)
7578         shlibpath_overrides_runpath=no
7579         ;;
7580       *)
7581         shlibpath_overrides_runpath=yes
7582         ;;
7583       esac
7584   else
7585     shlibpath_overrides_runpath=yes
7586   fi
7587   ;;
7588
7589 os2*)
7590   libname_spec='$name'
7591   shrext=".dll"
7592   need_lib_prefix=no
7593   library_names_spec='$libname${shared_ext} $libname.a'
7594   dynamic_linker='OS/2 ld.exe'
7595   shlibpath_var=LIBPATH
7596   ;;
7597
7598 osf3* | osf4* | osf5*)
7599   version_type=osf
7600   need_lib_prefix=no
7601   need_version=no
7602   soname_spec='${libname}${release}${shared_ext}$major'
7603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7604   shlibpath_var=LD_LIBRARY_PATH
7605   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7606   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7607   ;;
7608
7609 sco3.2v5*)
7610   version_type=osf
7611   soname_spec='${libname}${release}${shared_ext}$major'
7612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7613   shlibpath_var=LD_LIBRARY_PATH
7614   ;;
7615
7616 solaris*)
7617   version_type=linux
7618   need_lib_prefix=no
7619   need_version=no
7620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621   soname_spec='${libname}${release}${shared_ext}$major'
7622   shlibpath_var=LD_LIBRARY_PATH
7623   shlibpath_overrides_runpath=yes
7624   hardcode_into_libs=yes
7625   # ldd complains unless libraries are executable
7626   postinstall_cmds='chmod +x $lib'
7627   ;;
7628
7629 sunos4*)
7630   version_type=sunos
7631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7632   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7633   shlibpath_var=LD_LIBRARY_PATH
7634   shlibpath_overrides_runpath=yes
7635   if test "$with_gnu_ld" = yes; then
7636     need_lib_prefix=no
7637   fi
7638   need_version=yes
7639   ;;
7640
7641 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7642   version_type=linux
7643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644   soname_spec='${libname}${release}${shared_ext}$major'
7645   shlibpath_var=LD_LIBRARY_PATH
7646   case $host_vendor in
7647     sni)
7648       shlibpath_overrides_runpath=no
7649       need_lib_prefix=no
7650       export_dynamic_flag_spec='${wl}-Blargedynsym'
7651       runpath_var=LD_RUN_PATH
7652       ;;
7653     siemens)
7654       need_lib_prefix=no
7655       ;;
7656     motorola)
7657       need_lib_prefix=no
7658       need_version=no
7659       shlibpath_overrides_runpath=no
7660       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7661       ;;
7662   esac
7663   ;;
7664
7665 sysv4*MP*)
7666   if test -d /usr/nec ;then
7667     version_type=linux
7668     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7669     soname_spec='$libname${shared_ext}.$major'
7670     shlibpath_var=LD_LIBRARY_PATH
7671   fi
7672   ;;
7673
7674 uts4*)
7675   version_type=linux
7676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7677   soname_spec='${libname}${release}${shared_ext}$major'
7678   shlibpath_var=LD_LIBRARY_PATH
7679   ;;
7680
7681 *)
7682   dynamic_linker=no
7683   ;;
7684 esac
7685 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7686 echo "${ECHO_T}$dynamic_linker" >&6
7687 test "$dynamic_linker" = no && can_build_shared=no
7688
7689 if test "x$enable_dlopen" != xyes; then
7690   enable_dlopen=unknown
7691   enable_dlopen_self=unknown
7692   enable_dlopen_self_static=unknown
7693 else
7694   lt_cv_dlopen=no
7695   lt_cv_dlopen_libs=
7696
7697   case $host_os in
7698   beos*)
7699     lt_cv_dlopen="load_add_on"
7700     lt_cv_dlopen_libs=
7701     lt_cv_dlopen_self=yes
7702     ;;
7703
7704   mingw* | pw32*)
7705     lt_cv_dlopen="LoadLibrary"
7706     lt_cv_dlopen_libs=
7707    ;;
7708
7709   cygwin*)
7710     lt_cv_dlopen="dlopen"
7711     lt_cv_dlopen_libs=
7712    ;;
7713
7714   darwin*)
7715   # if libdl is installed we need to link against it
7716     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7717 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7719   echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721   ac_check_lib_save_LIBS=$LIBS
7722 LIBS="-ldl  $LIBS"
7723 cat >conftest.$ac_ext <<_ACEOF
7724 #line $LINENO "configure"
7725 /* confdefs.h.  */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h.  */
7730
7731 /* Override any gcc2 internal prototype to avoid an error.  */
7732 #ifdef __cplusplus
7733 extern "C"
7734 #endif
7735 /* We use char because int might match the return type of a gcc2
7736    builtin and then its argument prototype would still apply.  */
7737 char dlopen ();
7738 int
7739 main ()
7740 {
7741 dlopen ();
7742   ;
7743   return 0;
7744 }
7745 _ACEOF
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748   (eval $ac_link) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); } &&
7752          { ac_try='test -s conftest$ac_exeext'
7753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754   (eval $ac_try) 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); }; }; then
7758   ac_cv_lib_dl_dlopen=yes
7759 else
7760   echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7762
7763 ac_cv_lib_dl_dlopen=no
7764 fi
7765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7766 LIBS=$ac_check_lib_save_LIBS
7767 fi
7768 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7770 if test $ac_cv_lib_dl_dlopen = yes; then
7771   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7772 else
7773
7774     lt_cv_dlopen="dyld"
7775     lt_cv_dlopen_libs=
7776     lt_cv_dlopen_self=yes
7777
7778 fi
7779
7780    ;;
7781
7782   *)
7783     echo "$as_me:$LINENO: checking for shl_load" >&5
7784 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7785 if test "${ac_cv_func_shl_load+set}" = set; then
7786   echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788   cat >conftest.$ac_ext <<_ACEOF
7789 #line $LINENO "configure"
7790 /* confdefs.h.  */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h.  */
7795 /* System header to define __stub macros and hopefully few prototypes,
7796     which can conflict with char shl_load (); below.
7797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7798     <limits.h> exists even on freestanding compilers.  */
7799 #ifdef __STDC__
7800 # include <limits.h>
7801 #else
7802 # include <assert.h>
7803 #endif
7804 /* Override any gcc2 internal prototype to avoid an error.  */
7805 #ifdef __cplusplus
7806 extern "C"
7807 {
7808 #endif
7809 /* We use char because int might match the return type of a gcc2
7810    builtin and then its argument prototype would still apply.  */
7811 char shl_load ();
7812 /* The GNU C library defines this for functions which it implements
7813     to always fail with ENOSYS.  Some functions are actually named
7814     something starting with __ and the normal name is an alias.  */
7815 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7816 choke me
7817 #else
7818 char (*f) () = shl_load;
7819 #endif
7820 #ifdef __cplusplus
7821 }
7822 #endif
7823
7824 int
7825 main ()
7826 {
7827 return f != shl_load;
7828   ;
7829   return 0;
7830 }
7831 _ACEOF
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7834   (eval $ac_link) 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); } &&
7838          { ac_try='test -s conftest$ac_exeext'
7839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840   (eval $ac_try) 2>&5
7841   ac_status=$?
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); }; }; then
7844   ac_cv_func_shl_load=yes
7845 else
7846   echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7848
7849 ac_cv_func_shl_load=no
7850 fi
7851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7852 fi
7853 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7854 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7855 if test $ac_cv_func_shl_load = yes; then
7856   lt_cv_dlopen="shl_load"
7857 else
7858   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7859 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7860 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7861   echo $ECHO_N "(cached) $ECHO_C" >&6
7862 else
7863   ac_check_lib_save_LIBS=$LIBS
7864 LIBS="-ldld  $LIBS"
7865 cat >conftest.$ac_ext <<_ACEOF
7866 #line $LINENO "configure"
7867 /* confdefs.h.  */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h.  */
7872
7873 /* Override any gcc2 internal prototype to avoid an error.  */
7874 #ifdef __cplusplus
7875 extern "C"
7876 #endif
7877 /* We use char because int might match the return type of a gcc2
7878    builtin and then its argument prototype would still apply.  */
7879 char shl_load ();
7880 int
7881 main ()
7882 {
7883 shl_load ();
7884   ;
7885   return 0;
7886 }
7887 _ACEOF
7888 rm -f conftest.$ac_objext conftest$ac_exeext
7889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7890   (eval $ac_link) 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); } &&
7894          { ac_try='test -s conftest$ac_exeext'
7895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896   (eval $ac_try) 2>&5
7897   ac_status=$?
7898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899   (exit $ac_status); }; }; then
7900   ac_cv_lib_dld_shl_load=yes
7901 else
7902   echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7904
7905 ac_cv_lib_dld_shl_load=no
7906 fi
7907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7908 LIBS=$ac_check_lib_save_LIBS
7909 fi
7910 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7911 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7912 if test $ac_cv_lib_dld_shl_load = yes; then
7913   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7914 else
7915   echo "$as_me:$LINENO: checking for dlopen" >&5
7916 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7917 if test "${ac_cv_func_dlopen+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   cat >conftest.$ac_ext <<_ACEOF
7921 #line $LINENO "configure"
7922 /* confdefs.h.  */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h.  */
7927 /* System header to define __stub macros and hopefully few prototypes,
7928     which can conflict with char dlopen (); below.
7929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7930     <limits.h> exists even on freestanding compilers.  */
7931 #ifdef __STDC__
7932 # include <limits.h>
7933 #else
7934 # include <assert.h>
7935 #endif
7936 /* Override any gcc2 internal prototype to avoid an error.  */
7937 #ifdef __cplusplus
7938 extern "C"
7939 {
7940 #endif
7941 /* We use char because int might match the return type of a gcc2
7942    builtin and then its argument prototype would still apply.  */
7943 char dlopen ();
7944 /* The GNU C library defines this for functions which it implements
7945     to always fail with ENOSYS.  Some functions are actually named
7946     something starting with __ and the normal name is an alias.  */
7947 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7948 choke me
7949 #else
7950 char (*f) () = dlopen;
7951 #endif
7952 #ifdef __cplusplus
7953 }
7954 #endif
7955
7956 int
7957 main ()
7958 {
7959 return f != dlopen;
7960   ;
7961   return 0;
7962 }
7963 _ACEOF
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966   (eval $ac_link) 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); } &&
7970          { ac_try='test -s conftest$ac_exeext'
7971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972   (eval $ac_try) 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); }; }; then
7976   ac_cv_func_dlopen=yes
7977 else
7978   echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7980
7981 ac_cv_func_dlopen=no
7982 fi
7983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7984 fi
7985 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7986 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7987 if test $ac_cv_func_dlopen = yes; then
7988   lt_cv_dlopen="dlopen"
7989 else
7990   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7991 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7992 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7993   echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995   ac_check_lib_save_LIBS=$LIBS
7996 LIBS="-ldl  $LIBS"
7997 cat >conftest.$ac_ext <<_ACEOF
7998 #line $LINENO "configure"
7999 /* confdefs.h.  */
8000 _ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h.  */
8004
8005 /* Override any gcc2 internal prototype to avoid an error.  */
8006 #ifdef __cplusplus
8007 extern "C"
8008 #endif
8009 /* We use char because int might match the return type of a gcc2
8010    builtin and then its argument prototype would still apply.  */
8011 char dlopen ();
8012 int
8013 main ()
8014 {
8015 dlopen ();
8016   ;
8017   return 0;
8018 }
8019 _ACEOF
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022   (eval $ac_link) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); } &&
8026          { ac_try='test -s conftest$ac_exeext'
8027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028   (eval $ac_try) 2>&5
8029   ac_status=$?
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); }; }; then
8032   ac_cv_lib_dl_dlopen=yes
8033 else
8034   echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 ac_cv_lib_dl_dlopen=no
8038 fi
8039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8040 LIBS=$ac_check_lib_save_LIBS
8041 fi
8042 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8043 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8044 if test $ac_cv_lib_dl_dlopen = yes; then
8045   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8046 else
8047   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8048 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8049 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052   ac_check_lib_save_LIBS=$LIBS
8053 LIBS="-lsvld  $LIBS"
8054 cat >conftest.$ac_ext <<_ACEOF
8055 #line $LINENO "configure"
8056 /* confdefs.h.  */
8057 _ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h.  */
8061
8062 /* Override any gcc2 internal prototype to avoid an error.  */
8063 #ifdef __cplusplus
8064 extern "C"
8065 #endif
8066 /* We use char because int might match the return type of a gcc2
8067    builtin and then its argument prototype would still apply.  */
8068 char dlopen ();
8069 int
8070 main ()
8071 {
8072 dlopen ();
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079   (eval $ac_link) 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); } &&
8083          { ac_try='test -s conftest$ac_exeext'
8084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085   (eval $ac_try) 2>&5
8086   ac_status=$?
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); }; }; then
8089   ac_cv_lib_svld_dlopen=yes
8090 else
8091   echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094 ac_cv_lib_svld_dlopen=no
8095 fi
8096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8097 LIBS=$ac_check_lib_save_LIBS
8098 fi
8099 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8100 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8101 if test $ac_cv_lib_svld_dlopen = yes; then
8102   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8103 else
8104   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8105 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8106 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   ac_check_lib_save_LIBS=$LIBS
8110 LIBS="-ldld  $LIBS"
8111 cat >conftest.$ac_ext <<_ACEOF
8112 #line $LINENO "configure"
8113 /* confdefs.h.  */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h.  */
8118
8119 /* Override any gcc2 internal prototype to avoid an error.  */
8120 #ifdef __cplusplus
8121 extern "C"
8122 #endif
8123 /* We use char because int might match the return type of a gcc2
8124    builtin and then its argument prototype would still apply.  */
8125 char dld_link ();
8126 int
8127 main ()
8128 {
8129 dld_link ();
8130   ;
8131   return 0;
8132 }
8133 _ACEOF
8134 rm -f conftest.$ac_objext conftest$ac_exeext
8135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8136   (eval $ac_link) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); } &&
8140          { ac_try='test -s conftest$ac_exeext'
8141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142   (eval $ac_try) 2>&5
8143   ac_status=$?
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); }; }; then
8146   ac_cv_lib_dld_dld_link=yes
8147 else
8148   echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151 ac_cv_lib_dld_dld_link=no
8152 fi
8153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8154 LIBS=$ac_check_lib_save_LIBS
8155 fi
8156 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8157 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8158 if test $ac_cv_lib_dld_dld_link = yes; then
8159   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8160 fi
8161
8162
8163 fi
8164
8165
8166 fi
8167
8168
8169 fi
8170
8171
8172 fi
8173
8174
8175 fi
8176
8177     ;;
8178   esac
8179
8180   if test "x$lt_cv_dlopen" != xno; then
8181     enable_dlopen=yes
8182   else
8183     enable_dlopen=no
8184   fi
8185
8186   case $lt_cv_dlopen in
8187   dlopen)
8188     save_CPPFLAGS="$CPPFLAGS"
8189     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8190
8191     save_LDFLAGS="$LDFLAGS"
8192     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8193
8194     save_LIBS="$LIBS"
8195     LIBS="$lt_cv_dlopen_libs $LIBS"
8196
8197     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8198 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8199 if test "${lt_cv_dlopen_self+set}" = set; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202           if test "$cross_compiling" = yes; then :
8203   lt_cv_dlopen_self=cross
8204 else
8205   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8206   lt_status=$lt_dlunknown
8207   cat > conftest.$ac_ext <<EOF
8208 #line 8208 "configure"
8209 #include "confdefs.h"
8210
8211 #if HAVE_DLFCN_H
8212 #include <dlfcn.h>
8213 #endif
8214
8215 #include <stdio.h>
8216
8217 #ifdef RTLD_GLOBAL
8218 #  define LT_DLGLOBAL           RTLD_GLOBAL
8219 #else
8220 #  ifdef DL_GLOBAL
8221 #    define LT_DLGLOBAL         DL_GLOBAL
8222 #  else
8223 #    define LT_DLGLOBAL         0
8224 #  endif
8225 #endif
8226
8227 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8228    find out it does not work in some platform. */
8229 #ifndef LT_DLLAZY_OR_NOW
8230 #  ifdef RTLD_LAZY
8231 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8232 #  else
8233 #    ifdef DL_LAZY
8234 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8235 #    else
8236 #      ifdef RTLD_NOW
8237 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8238 #      else
8239 #        ifdef DL_NOW
8240 #          define LT_DLLAZY_OR_NOW      DL_NOW
8241 #        else
8242 #          define LT_DLLAZY_OR_NOW      0
8243 #        endif
8244 #      endif
8245 #    endif
8246 #  endif
8247 #endif
8248
8249 #ifdef __cplusplus
8250 extern "C" void exit (int);
8251 #endif
8252
8253 void fnord() { int i=42;}
8254 int main ()
8255 {
8256   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8257   int status = $lt_dlunknown;
8258
8259   if (self)
8260     {
8261       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8262       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8263       /* dlclose (self); */
8264     }
8265
8266     exit (status);
8267 }
8268 EOF
8269   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8270   (eval $ac_link) 2>&5
8271   ac_status=$?
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8274     (./conftest; exit; ) 2>/dev/null
8275     lt_status=$?
8276     case x$lt_status in
8277       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8278       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8279       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8280     esac
8281   else :
8282     # compilation failed
8283     lt_cv_dlopen_self=no
8284   fi
8285 fi
8286 rm -fr conftest*
8287
8288
8289 fi
8290 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8291 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8292
8293     if test "x$lt_cv_dlopen_self" = xyes; then
8294       LDFLAGS="$LDFLAGS $link_static_flag"
8295       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8296 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8297 if test "${lt_cv_dlopen_self_static+set}" = set; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300           if test "$cross_compiling" = yes; then :
8301   lt_cv_dlopen_self_static=cross
8302 else
8303   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8304   lt_status=$lt_dlunknown
8305   cat > conftest.$ac_ext <<EOF
8306 #line 8306 "configure"
8307 #include "confdefs.h"
8308
8309 #if HAVE_DLFCN_H
8310 #include <dlfcn.h>
8311 #endif
8312
8313 #include <stdio.h>
8314
8315 #ifdef RTLD_GLOBAL
8316 #  define LT_DLGLOBAL           RTLD_GLOBAL
8317 #else
8318 #  ifdef DL_GLOBAL
8319 #    define LT_DLGLOBAL         DL_GLOBAL
8320 #  else
8321 #    define LT_DLGLOBAL         0
8322 #  endif
8323 #endif
8324
8325 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8326    find out it does not work in some platform. */
8327 #ifndef LT_DLLAZY_OR_NOW
8328 #  ifdef RTLD_LAZY
8329 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8330 #  else
8331 #    ifdef DL_LAZY
8332 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8333 #    else
8334 #      ifdef RTLD_NOW
8335 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8336 #      else
8337 #        ifdef DL_NOW
8338 #          define LT_DLLAZY_OR_NOW      DL_NOW
8339 #        else
8340 #          define LT_DLLAZY_OR_NOW      0
8341 #        endif
8342 #      endif
8343 #    endif
8344 #  endif
8345 #endif
8346
8347 #ifdef __cplusplus
8348 extern "C" void exit (int);
8349 #endif
8350
8351 void fnord() { int i=42;}
8352 int main ()
8353 {
8354   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8355   int status = $lt_dlunknown;
8356
8357   if (self)
8358     {
8359       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8360       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8361       /* dlclose (self); */
8362     }
8363
8364     exit (status);
8365 }
8366 EOF
8367   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368   (eval $ac_link) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8372     (./conftest; exit; ) 2>/dev/null
8373     lt_status=$?
8374     case x$lt_status in
8375       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8376       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8377       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8378     esac
8379   else :
8380     # compilation failed
8381     lt_cv_dlopen_self_static=no
8382   fi
8383 fi
8384 rm -fr conftest*
8385
8386
8387 fi
8388 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8389 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8390     fi
8391
8392     CPPFLAGS="$save_CPPFLAGS"
8393     LDFLAGS="$save_LDFLAGS"
8394     LIBS="$save_LIBS"
8395     ;;
8396   esac
8397
8398   case $lt_cv_dlopen_self in
8399   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8400   *) enable_dlopen_self=unknown ;;
8401   esac
8402
8403   case $lt_cv_dlopen_self_static in
8404   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8405   *) enable_dlopen_self_static=unknown ;;
8406   esac
8407 fi
8408
8409
8410 # Report which librarie types wil actually be built
8411 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8412 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8413 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8414 echo "${ECHO_T}$can_build_shared" >&6
8415
8416 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8417 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8418 test "$can_build_shared" = "no" && enable_shared=no
8419
8420 # On AIX, shared libraries and static libraries use the same namespace, and
8421 # are all built from PIC.
8422 case "$host_os" in
8423 aix3*)
8424   test "$enable_shared" = yes && enable_static=no
8425   if test -n "$RANLIB"; then
8426     archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
8427     postinstall_cmds='$RANLIB $lib'
8428   fi
8429   ;;
8430
8431 aix4*)
8432   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8433     test "$enable_shared" = yes && enable_static=no
8434   fi
8435   ;;
8436   darwin* | rhapsody*)
8437   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8438     archive_cmds_need_lc=no
8439     case "$host_os" in
8440     rhapsody* | darwin1.[012])
8441       allow_undefined_flag='-undefined suppress'
8442       ;;
8443     darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
8444       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8445       ;;
8446     *) # Darwin 7.0 on
8447       case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
8448       10.[012])
8449         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8450         ;;
8451       *) # 10.3 on
8452         if test -z ${LD_TWOLEVEL_NAMESPACE}; then
8453           allow_undefined_flag='-flat_namespace -undefined suppress'
8454         else
8455           allow_undefined_flag='-undefined dynamic_lookup'
8456         fi
8457         ;;
8458       esac
8459       ;;
8460     esac
8461     # FIXME: Relying on posixy $() will cause problems for
8462     #        cross-compilation, but unfortunately the echo tests do not
8463     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8464     #          `"' quotes if we put them in here... so don't!
8465                 output_verbose_link_cmd='echo'
8466     archive_cmds='$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8467     module_cmds='$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8468     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8469                   archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8470                   module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8471     hardcode_direct=no
8472     hardcode_automatic=yes
8473     hardcode_shlibpath_var=unsupported
8474     whole_archive_flag_spec='-all_load $convenience'
8475     link_all_deplibs=yes
8476     fi
8477     ;;
8478 esac
8479 echo "$as_me:$LINENO: result: $enable_shared" >&5
8480 echo "${ECHO_T}$enable_shared" >&6
8481
8482 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8483 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8484 # Make sure either enable_shared or enable_static is yes.
8485 test "$enable_shared" = yes || enable_static=yes
8486 echo "$as_me:$LINENO: result: $enable_static" >&5
8487 echo "${ECHO_T}$enable_static" >&6
8488
8489 # The else clause should only fire when bootstrapping the
8490 # libtool distribution, otherwise you forgot to ship ltmain.sh
8491 # with your package, and you will get complaints that there are
8492 # no rules to generate ltmain.sh.
8493 if test -f "$ltmain"; then
8494   # See if we are running on zsh, and set the options which allow our commands through
8495   # without removal of \ escapes.
8496   if test -n "${ZSH_VERSION+set}" ; then
8497     setopt NO_GLOB_SUBST
8498   fi
8499   # Now quote all the things that may contain metacharacters while being
8500   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8501   # variables and quote the copies for generation of the libtool script.
8502   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8503     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8504     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8505     deplibs_check_method reload_flag reload_cmds need_locks \
8506     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8507     lt_cv_sys_global_symbol_to_c_name_address \
8508     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8509     old_postinstall_cmds old_postuninstall_cmds \
8510     compiler \
8511     CC \
8512     LD \
8513     lt_prog_compiler_wl \
8514     lt_prog_compiler_pic \
8515     lt_prog_compiler_static \
8516     lt_prog_compiler_no_builtin_flag \
8517     export_dynamic_flag_spec \
8518     thread_safe_flag_spec \
8519     whole_archive_flag_spec \
8520     enable_shared_with_static_runtimes \
8521     old_archive_cmds \
8522     old_archive_from_new_cmds \
8523     predep_objects \
8524     postdep_objects \
8525     predeps \
8526     postdeps \
8527     compiler_lib_search_path \
8528     archive_cmds \
8529     archive_expsym_cmds \
8530     postinstall_cmds \
8531     postuninstall_cmds \
8532     old_archive_from_expsyms_cmds \
8533     allow_undefined_flag \
8534     no_undefined_flag \
8535     export_symbols_cmds \
8536     hardcode_libdir_flag_spec \
8537     hardcode_libdir_flag_spec_ld \
8538     hardcode_libdir_separator \
8539     hardcode_automatic \
8540     module_cmds \
8541     module_expsym_cmds \
8542     lt_cv_prog_compiler_c_o \
8543     exclude_expsyms \
8544     include_expsyms; do
8545
8546     case $var in
8547     old_archive_cmds | \
8548     old_archive_from_new_cmds | \
8549     archive_cmds | \
8550     archive_expsym_cmds | \
8551     module_cmds | \
8552     module_expsym_cmds | \
8553     old_archive_from_expsyms_cmds | \
8554     export_symbols_cmds | \
8555     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8556     postinstall_cmds | postuninstall_cmds | \
8557     old_postinstall_cmds | old_postuninstall_cmds | \
8558     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8559       # Double-quote double-evaled strings.
8560       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
8561       ;;
8562     *)
8563       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8564       ;;
8565     esac
8566   done
8567
8568   case $lt_echo in
8569   *'\$0 --fallback-echo"')
8570     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8571     ;;
8572   esac
8573
8574 cfgfile="${ofile}T"
8575   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8576   $rm -f "$cfgfile"
8577   { echo "$as_me:$LINENO: creating $ofile" >&5
8578 echo "$as_me: creating $ofile" >&6;}
8579
8580   cat <<__EOF__ >> "$cfgfile"
8581 #! $SHELL
8582
8583 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8584 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8585 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8586 #
8587 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8588 # Free Software Foundation, Inc.
8589 #
8590 # This file is part of GNU Libtool:
8591 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8592 #
8593 # This program is free software; you can redistribute it and/or modify
8594 # it under the terms of the GNU General Public License as published by
8595 # the Free Software Foundation; either version 2 of the License, or
8596 # (at your option) any later version.
8597 #
8598 # This program is distributed in the hope that it will be useful, but
8599 # WITHOUT ANY WARRANTY; without even the implied warranty of
8600 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8601 # General Public License for more details.
8602 #
8603 # You should have received a copy of the GNU General Public License
8604 # along with this program; if not, write to the Free Software
8605 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8606 #
8607 # As a special exception to the GNU General Public License, if you
8608 # distribute this file as part of a program that contains a
8609 # configuration script generated by Autoconf, you may include it under
8610 # the same distribution terms that you use for the rest of that program.
8611
8612 # A sed program that does not truncate output.
8613 SED=$lt_SED
8614
8615 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8616 Xsed="$SED -e s/^X//"
8617
8618 # The HP-UX ksh and POSIX shell print the target directory to stdout
8619 # if CDPATH is set.
8620 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8621
8622 # The names of the tagged configurations supported by this script.
8623 available_tags=
8624
8625 # ### BEGIN LIBTOOL CONFIG
8626
8627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8628
8629 # Set the command separator (default: ~)
8630 _S_=\${LIBTOOL_CMD_SEP-\~}
8631
8632 # Shell to use when invoking shell scripts.
8633 SHELL=$lt_SHELL
8634
8635 # Whether or not to build shared libraries.
8636 build_libtool_libs=$enable_shared
8637
8638 # Whether or not to build static libraries.
8639 build_old_libs=$enable_static
8640
8641 # Whether or not to add -lc for building shared libraries.
8642 build_libtool_need_lc=$archive_cmds_need_lc
8643
8644 # Whether or not to disallow shared libs when runtime libs are static
8645 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8646
8647 # Whether or not to optimize for fast installation.
8648 fast_install=$enable_fast_install
8649
8650 # The host system.
8651 host_alias=$host_alias
8652 host=$host
8653
8654 # An echo program that does not interpret backslashes.
8655 echo=$lt_echo
8656
8657 # The archiver.
8658 AR=$lt_AR
8659 AR_FLAGS=$lt_AR_FLAGS
8660
8661 # A C compiler.
8662 LTCC=$lt_LTCC
8663
8664 # A language-specific compiler.
8665 CC=$lt_compiler
8666
8667 # Is the compiler the GNU C compiler?
8668 with_gcc=$GCC
8669
8670 # An ERE matcher.
8671 EGREP=$lt_EGREP
8672
8673 # The linker used to build libraries.
8674 LD=$lt_LD
8675
8676 # Whether we need hard or soft links.
8677 LN_S=$lt_LN_S
8678
8679 # A BSD-compatible nm program.
8680 NM=$lt_NM
8681
8682 # A symbol stripping program
8683 STRIP=$STRIP
8684
8685 # Used to examine libraries when file_magic_cmd begins "file"
8686 MAGIC_CMD=$MAGIC_CMD
8687
8688 # Used on cygwin: DLL creation program.
8689 DLLTOOL="$DLLTOOL"
8690
8691 # Used on cygwin: object dumper.
8692 OBJDUMP="$OBJDUMP"
8693
8694 # Used on cygwin: assembler.
8695 AS="$AS"
8696
8697 # The name of the directory that contains temporary libtool files.
8698 objdir=$objdir
8699
8700 # How to create reloadable object files.
8701 reload_flag=$lt_reload_flag
8702 reload_cmds=$lt_reload_cmds
8703
8704 # How to pass a linker flag through the compiler.
8705 wl=$lt_lt_prog_compiler_wl
8706
8707 # Object file suffix (normally "o").
8708 objext="$ac_objext"
8709
8710 # Old archive suffix (normally "a").
8711 libext="$libext"
8712
8713 # Shared library suffix (normally ".so").
8714 shrext='$shrext'
8715
8716 # Executable file suffix (normally "").
8717 exeext="$exeext"
8718
8719 # Additional compiler flags for building library objects.
8720 pic_flag=$lt_lt_prog_compiler_pic
8721 pic_mode=$pic_mode
8722
8723 # What is the maximum length of a command?
8724 max_cmd_len=$lt_cv_sys_max_cmd_len
8725
8726 # Does compiler simultaneously support -c and -o options?
8727 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8728
8729 # Must we lock files when doing compilation ?
8730 need_locks=$lt_need_locks
8731
8732 # Do we need the lib prefix for modules?
8733 need_lib_prefix=$need_lib_prefix
8734
8735 # Do we need a version for libraries?
8736 need_version=$need_version
8737
8738 # Whether dlopen is supported.
8739 dlopen_support=$enable_dlopen
8740
8741 # Whether dlopen of programs is supported.
8742 dlopen_self=$enable_dlopen_self
8743
8744 # Whether dlopen of statically linked programs is supported.
8745 dlopen_self_static=$enable_dlopen_self_static
8746
8747 # Compiler flag to prevent dynamic linking.
8748 link_static_flag=$lt_lt_prog_compiler_static
8749
8750 # Compiler flag to turn off builtin functions.
8751 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8752
8753 # Compiler flag to allow reflexive dlopens.
8754 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8755
8756 # Compiler flag to generate shared objects directly from archives.
8757 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8758
8759 # Compiler flag to generate thread-safe objects.
8760 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8761
8762 # Library versioning type.
8763 version_type=$version_type
8764
8765 # Format of library name prefix.
8766 libname_spec=$lt_libname_spec
8767
8768 # List of archive names.  First name is the real one, the rest are links.
8769 # The last name is the one that the linker finds with -lNAME.
8770 library_names_spec=$lt_library_names_spec
8771
8772 # The coded name of the library, if different from the real name.
8773 soname_spec=$lt_soname_spec
8774
8775 # Commands used to build and install an old-style archive.
8776 RANLIB=$lt_RANLIB
8777 old_archive_cmds=$lt_old_archive_cmds
8778 old_postinstall_cmds=$lt_old_postinstall_cmds
8779 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8780
8781 # Create an old-style archive from a shared archive.
8782 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8783
8784 # Create a temporary old-style archive to link instead of a shared archive.
8785 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8786
8787 # Commands used to build and install a shared archive.
8788 archive_cmds=$lt_archive_cmds
8789 archive_expsym_cmds=$lt_archive_expsym_cmds
8790 postinstall_cmds=$lt_postinstall_cmds
8791 postuninstall_cmds=$lt_postuninstall_cmds
8792
8793 # Commands used to build a loadable module (assumed same as above if empty)
8794 module_cmds=$lt_module_cmds
8795 module_expsym_cmds=$lt_module_expsym_cmds
8796
8797 # Commands to strip libraries.
8798 old_striplib=$lt_old_striplib
8799 striplib=$lt_striplib
8800
8801 # Dependencies to place before the objects being linked to create a
8802 # shared library.
8803 predep_objects=$lt_predep_objects
8804
8805 # Dependencies to place after the objects being linked to create a
8806 # shared library.
8807 postdep_objects=$lt_postdep_objects
8808
8809 # Dependencies to place before the objects being linked to create a
8810 # shared library.
8811 predeps=$lt_predeps
8812
8813 # Dependencies to place after the objects being linked to create a
8814 # shared library.
8815 postdeps=$lt_postdeps
8816
8817 # The library search path used internally by the compiler when linking
8818 # a shared library.
8819 compiler_lib_search_path=$lt_compiler_lib_search_path
8820
8821 # Method to check whether dependent libraries are shared objects.
8822 deplibs_check_method=$lt_deplibs_check_method
8823
8824 # Command to use when deplibs_check_method == file_magic.
8825 file_magic_cmd=$lt_file_magic_cmd
8826
8827 # Flag that allows shared libraries with undefined symbols to be built.
8828 allow_undefined_flag=$lt_allow_undefined_flag
8829
8830 # Flag that forces no undefined symbols.
8831 no_undefined_flag=$lt_no_undefined_flag
8832
8833 # Commands used to finish a libtool library installation in a directory.
8834 finish_cmds=$lt_finish_cmds
8835
8836 # Same as above, but a single script fragment to be evaled but not shown.
8837 finish_eval=$lt_finish_eval
8838
8839 # Take the output of nm and produce a listing of raw symbols and C names.
8840 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8841
8842 # Transform the output of nm in a proper C declaration
8843 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8844
8845 # Transform the output of nm in a C name address pair
8846 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8847
8848 # This is the shared library runtime path variable.
8849 runpath_var=$runpath_var
8850
8851 # This is the shared library path variable.
8852 shlibpath_var=$shlibpath_var
8853
8854 # Is shlibpath searched before the hard-coded library search path?
8855 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8856
8857 # How to hardcode a shared library path into an executable.
8858 hardcode_action=$hardcode_action
8859
8860 # Whether we should hardcode library paths into libraries.
8861 hardcode_into_libs=$hardcode_into_libs
8862
8863 # Flag to hardcode \$libdir into a binary during linking.
8864 # This must work even if \$libdir does not exist.
8865 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8866
8867 # If ld is used when linking, flag to hardcode \$libdir into
8868 # a binary during linking. This must work even if \$libdir does
8869 # not exist.
8870 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8871
8872 # Whether we need a single -rpath flag with a separated argument.
8873 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8874
8875 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8876 # resulting binary.
8877 hardcode_direct=$hardcode_direct
8878
8879 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8880 # resulting binary.
8881 hardcode_minus_L=$hardcode_minus_L
8882
8883 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8884 # the resulting binary.
8885 hardcode_shlibpath_var=$hardcode_shlibpath_var
8886
8887 # Set to yes if building a shared library automatically hardcodes DIR into the library
8888 # and all subsequent libraries and executables linked against it.
8889 hardcode_automatic=$hardcode_automatic
8890
8891 # Variables whose values should be saved in libtool wrapper scripts and
8892 # restored at relink time.
8893 variables_saved_for_relink="$variables_saved_for_relink"
8894
8895 # Whether libtool must link a program against all its dependency libraries.
8896 link_all_deplibs=$link_all_deplibs
8897
8898 # Compile-time system search path for libraries
8899 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8900
8901 # Run-time system search path for libraries
8902 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8903
8904 # Fix the shell variable \$srcfile for the compiler.
8905 fix_srcfile_path="$fix_srcfile_path"
8906
8907 # Set to yes if exported symbols are required.
8908 always_export_symbols=$always_export_symbols
8909
8910 # The commands to list exported symbols.
8911 export_symbols_cmds=$lt_export_symbols_cmds
8912
8913 # The commands to extract the exported symbol list from a shared archive.
8914 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8915
8916 # Symbols that should not be listed in the preloaded symbols.
8917 exclude_expsyms=$lt_exclude_expsyms
8918
8919 # Symbols that must always be exported.
8920 include_expsyms=$lt_include_expsyms
8921
8922 # ### END LIBTOOL CONFIG
8923
8924 __EOF__
8925
8926
8927   case $host_os in
8928   aix3*)
8929     cat <<\EOF >> "$cfgfile"
8930
8931 # AIX sometimes has problems with the GCC collect2 program.  For some
8932 # reason, if we set the COLLECT_NAMES environment variable, the problems
8933 # vanish in a puff of smoke.
8934 if test "X${COLLECT_NAMES+set}" != Xset; then
8935   COLLECT_NAMES=
8936   export COLLECT_NAMES
8937 fi
8938 EOF
8939     ;;
8940   esac
8941
8942   # We use sed instead of cat because bash on DJGPP gets confused if
8943   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8944   # text mode, it properly converts lines to CR/LF.  This bash problem
8945   # is reportedly fixed, but why not run on old versions too?
8946   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8947
8948   mv -f "$cfgfile" "$ofile" || \
8949     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8950   chmod +x "$ofile"
8951
8952 else
8953   # If there is no Makefile yet, we rely on a make rule to execute
8954   # `config.status --recheck' to rerun these tests and create the
8955   # libtool script then.
8956   test -f Makefile && make "$ltmain"
8957 fi
8958
8959
8960 ac_ext=c
8961 ac_cpp='$CPP $CPPFLAGS'
8962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8965
8966 CC="$lt_save_CC"
8967
8968
8969 # Check whether --with-tags or --without-tags was given.
8970 if test "${with_tags+set}" = set; then
8971   withval="$with_tags"
8972   tagnames="$withval"
8973 fi;
8974
8975 if test -f "$ltmain" && test -n "$tagnames"; then
8976   if test ! -f "${ofile}"; then
8977     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8978 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8979   fi
8980
8981   if test -z "$LTCC"; then
8982     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8983     if test -z "$LTCC"; then
8984       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8985 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8986     else
8987       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8988 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8989     fi
8990   fi
8991
8992   # Extract list of available tagged configurations in $ofile.
8993   # Note that this assumes the entire list is on one line.
8994   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8995
8996   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8997   for tagname in $tagnames; do
8998     IFS="$lt_save_ifs"
8999     # Check whether tagname contains only valid characters
9000     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9001     "") ;;
9002     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9003 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9004    { (exit 1); exit 1; }; }
9005         ;;
9006     esac
9007
9008     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9009     then
9010       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9011 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9012    { (exit 1); exit 1; }; }
9013     fi
9014
9015     # Update the list of available tags.
9016     if test -n "$tagname"; then
9017       echo appending configuration tag \"$tagname\" to $ofile
9018
9019       case $tagname in
9020       CXX)
9021         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9022           ac_ext=cc
9023 ac_cpp='$CXXCPP $CPPFLAGS'
9024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9027
9028
9029
9030
9031 archive_cmds_need_lc_CXX=no
9032 allow_undefined_flag_CXX=
9033 always_export_symbols_CXX=no
9034 archive_expsym_cmds_CXX=
9035 export_dynamic_flag_spec_CXX=
9036 hardcode_direct_CXX=no
9037 hardcode_libdir_flag_spec_CXX=
9038 hardcode_libdir_flag_spec_ld_CXX=
9039 hardcode_libdir_separator_CXX=
9040 hardcode_minus_L_CXX=no
9041 hardcode_automatic_CXX=no
9042 module_cmds_CXX=
9043 module_expsym_cmds_CXX=
9044 link_all_deplibs_CXX=unknown
9045 old_archive_cmds_CXX=$old_archive_cmds
9046 no_undefined_flag_CXX=
9047 whole_archive_flag_spec_CXX=
9048 enable_shared_with_static_runtimes_CXX=no
9049
9050 # Dependencies to place before and after the object being linked:
9051 predep_objects_CXX=
9052 postdep_objects_CXX=
9053 predeps_CXX=
9054 postdeps_CXX=
9055 compiler_lib_search_path_CXX=
9056
9057 # Source file extension for C++ test sources.
9058 ac_ext=cc
9059
9060 # Object file extension for compiled C++ test sources.
9061 objext=o
9062 objext_CXX=$objext
9063
9064 # Code to be used in simple compile tests
9065 lt_simple_compile_test_code="int some_variable = 0;\n"
9066
9067 # Code to be used in simple link tests
9068 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9069
9070 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9071
9072 # If no C compiler was specified, use CC.
9073 LTCC=${LTCC-"$CC"}
9074
9075 # Allow CC to be a program name with arguments.
9076 compiler=$CC
9077
9078
9079 # Allow CC to be a program name with arguments.
9080 lt_save_CC=$CC
9081 lt_save_LD=$LD
9082 lt_save_GCC=$GCC
9083 GCC=$GXX
9084 lt_save_with_gnu_ld=$with_gnu_ld
9085 lt_save_path_LD=$lt_cv_path_LD
9086 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9087   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9088 else
9089   unset lt_cv_prog_gnu_ld
9090 fi
9091 if test -n "${lt_cv_path_LDCXX+set}"; then
9092   lt_cv_path_LD=$lt_cv_path_LDCXX
9093 else
9094   unset lt_cv_path_LD
9095 fi
9096 test -z "${LDCXX+set}" || LD=$LDCXX
9097 CC=${CXX-"c++"}
9098 compiler=$CC
9099 compiler_CXX=$CC
9100 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9101
9102 # We don't want -fno-exception wen compiling C++ code, so set the
9103 # no_builtin_flag separately
9104 if test "$GXX" = yes; then
9105   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9106 else
9107   lt_prog_compiler_no_builtin_flag_CXX=
9108 fi
9109
9110 if test "$GXX" = yes; then
9111   # Set up default GNU C++ configuration
9112
9113
9114 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9115 if test "${with_gnu_ld+set}" = set; then
9116   withval="$with_gnu_ld"
9117   test "$withval" = no || with_gnu_ld=yes
9118 else
9119   with_gnu_ld=no
9120 fi;
9121 ac_prog=ld
9122 if test "$GCC" = yes; then
9123   # Check if gcc -print-prog-name=ld gives a path.
9124   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9125 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9126   case $host in
9127   *-*-mingw*)
9128     # gcc leaves a trailing carriage return which upsets mingw
9129     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9130   *)
9131     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9132   esac
9133   case $ac_prog in
9134     # Accept absolute paths.
9135     [\\/]* | ?:[\\/]*)
9136       re_direlt='/[^/][^/]*/\.\./'
9137       # Canonicalize the path of ld
9138       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9139       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9140         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9141       done
9142       test -z "$LD" && LD="$ac_prog"
9143       ;;
9144   "")
9145     # If it fails, then pretend we aren't using GCC.
9146     ac_prog=ld
9147     ;;
9148   *)
9149     # If it is relative, then search for the first ld in PATH.
9150     with_gnu_ld=unknown
9151     ;;
9152   esac
9153 elif test "$with_gnu_ld" = yes; then
9154   echo "$as_me:$LINENO: checking for GNU ld" >&5
9155 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9156 else
9157   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9158 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9159 fi
9160 if test "${lt_cv_path_LD+set}" = set; then
9161   echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163   if test -z "$LD"; then
9164   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9165   for ac_dir in $PATH; do
9166     IFS="$lt_save_ifs"
9167     test -z "$ac_dir" && ac_dir=.
9168     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9169       lt_cv_path_LD="$ac_dir/$ac_prog"
9170       # Check to see if the program is GNU ld.  I'd rather use --version,
9171       # but apparently some GNU ld's only accept -v.
9172       # Break only if it was the GNU/non-GNU ld that we prefer.
9173       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9174       *GNU* | *'with BFD'*)
9175         test "$with_gnu_ld" != no && break
9176         ;;
9177       *)
9178         test "$with_gnu_ld" != yes && break
9179         ;;
9180       esac
9181     fi
9182   done
9183   IFS="$lt_save_ifs"
9184 else
9185   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9186 fi
9187 fi
9188
9189 LD="$lt_cv_path_LD"
9190 if test -n "$LD"; then
9191   echo "$as_me:$LINENO: result: $LD" >&5
9192 echo "${ECHO_T}$LD" >&6
9193 else
9194   echo "$as_me:$LINENO: result: no" >&5
9195 echo "${ECHO_T}no" >&6
9196 fi
9197 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9198 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9199    { (exit 1); exit 1; }; }
9200 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9201 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9202 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9203   echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9206 case `"$LD" -v 2>&1 </dev/null` in
9207 *GNU* | *'with BFD'*)
9208   lt_cv_prog_gnu_ld=yes
9209   ;;
9210 *)
9211   lt_cv_prog_gnu_ld=no
9212   ;;
9213 esac
9214 fi
9215 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9216 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9217 with_gnu_ld=$lt_cv_prog_gnu_ld
9218
9219
9220
9221   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9222   # archiving commands below assume that GNU ld is being used.
9223   if test "$with_gnu_ld" = yes; then
9224     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225     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'
9226
9227     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9228     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9229
9230     # If archive_cmds runs LD, not CC, wlarc should be empty
9231     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9232     #     investigate it a little bit more. (MM)
9233     wlarc='${wl}'
9234
9235     # ancient GNU ld didn't support --whole-archive et. al.
9236     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9237         grep 'no-whole-archive' > /dev/null; then
9238       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9239     else
9240       whole_archive_flag_spec_CXX=
9241     fi
9242   else
9243     with_gnu_ld=no
9244     wlarc=
9245
9246     # A generic and very simple default shared library creation
9247     # command for GNU C++ for the case where it uses the native
9248     # linker, instead of GNU ld.  If possible, this setting should
9249     # overridden to take advantage of the native linker features on
9250     # the platform it is being used on.
9251     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9252   fi
9253
9254   # Commands to make compiler produce verbose output that lists
9255   # what "hidden" libraries, object files and flags are used when
9256   # linking a shared library.
9257   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9258
9259 else
9260   GXX=no
9261   with_gnu_ld=no
9262   wlarc=
9263 fi
9264
9265 # PORTME: fill in a description of your system's C++ link characteristics
9266 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9267 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9268 ld_shlibs_CXX=yes
9269 case $host_os in
9270   aix3*)
9271     # FIXME: insert proper C++ library support
9272     ld_shlibs_CXX=no
9273     ;;
9274   aix4* | aix5*)
9275     if test "$host_cpu" = ia64; then
9276       # On IA64, the linker does run time linking by default, so we don't
9277       # have to do anything special.
9278       aix_use_runtimelinking=no
9279       exp_sym_flag='-Bexport'
9280       no_entry_flag=""
9281     else
9282       aix_use_runtimelinking=no
9283
9284       # Test if we are trying to use run time linking or normal
9285       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9286       # need to do runtime linking.
9287       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9288         for ld_flag in $LDFLAGS; do
9289           case $ld_flag in
9290           *-brtl*)
9291             aix_use_runtimelinking=yes
9292             break
9293             ;;
9294           esac
9295         done
9296       esac
9297
9298       exp_sym_flag='-bexport'
9299       no_entry_flag='-bnoentry'
9300     fi
9301
9302     # When large executables or shared objects are built, AIX ld can
9303     # have problems creating the table of contents.  If linking a library
9304     # or program results in "error TOC overflow" add -mminimal-toc to
9305     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9306     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9307
9308     archive_cmds_CXX=''
9309     hardcode_direct_CXX=yes
9310     hardcode_libdir_separator_CXX=':'
9311     link_all_deplibs_CXX=yes
9312
9313     if test "$GXX" = yes; then
9314       case $host_os in aix4.012|aix4.012.*)
9315       # We only want to do this on AIX 4.2 and lower, the check
9316       # below for broken collect2 doesn't work under 4.3+
9317         collect2name=`${CC} -print-prog-name=collect2`
9318         if test -f "$collect2name" && \
9319            strings "$collect2name" | grep resolve_lib_name >/dev/null
9320         then
9321           # We have reworked collect2
9322           hardcode_direct_CXX=yes
9323         else
9324           # We have old collect2
9325           hardcode_direct_CXX=unsupported
9326           # It fails to find uninstalled libraries when the uninstalled
9327           # path is not listed in the libpath.  Setting hardcode_minus_L
9328           # to unsupported forces relinking
9329           hardcode_minus_L_CXX=yes
9330           hardcode_libdir_flag_spec_CXX='-L$libdir'
9331           hardcode_libdir_separator_CXX=
9332         fi
9333       esac
9334       shared_flag='-shared'
9335     else
9336       # not using gcc
9337       if test "$host_cpu" = ia64; then
9338         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9339         # chokes on -Wl,-G. The following line is correct:
9340         shared_flag='-G'
9341       else
9342         if test "$aix_use_runtimelinking" = yes; then
9343           shared_flag='${wl}-G'
9344         else
9345           shared_flag='${wl}-bM:SRE'
9346         fi
9347       fi
9348     fi
9349
9350     # It seems that -bexpall does not export symbols beginning with
9351     # underscore (_), so it is better to generate a list of symbols to export.
9352     always_export_symbols_CXX=yes
9353     if test "$aix_use_runtimelinking" = yes; then
9354       # Warning - without using the other runtime loading flags (-brtl),
9355       # -berok will link without error, but may produce a broken library.
9356       allow_undefined_flag_CXX='-berok'
9357       # Determine the default libpath from the value encoded in an empty executable.
9358       cat >conftest.$ac_ext <<_ACEOF
9359 #line $LINENO "configure"
9360 /* confdefs.h.  */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h.  */
9365
9366 int
9367 main ()
9368 {
9369
9370   ;
9371   return 0;
9372 }
9373 _ACEOF
9374 rm -f conftest.$ac_objext conftest$ac_exeext
9375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9376   (eval $ac_link) 2>&5
9377   ac_status=$?
9378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379   (exit $ac_status); } &&
9380          { ac_try='test -s conftest$ac_exeext'
9381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382   (eval $ac_try) 2>&5
9383   ac_status=$?
9384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385   (exit $ac_status); }; }; then
9386
9387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9388 }'`
9389 # Check for a 64-bit object if we didn't find anything.
9390 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; }
9391 }'`; fi
9392 else
9393   echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9395
9396 fi
9397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9399
9400       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9401
9402       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"
9403      else
9404       if test "$host_cpu" = ia64; then
9405         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9406         allow_undefined_flag_CXX="-z nodefs"
9407         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"
9408       else
9409         # Determine the default libpath from the value encoded in an empty executable.
9410         cat >conftest.$ac_ext <<_ACEOF
9411 #line $LINENO "configure"
9412 /* confdefs.h.  */
9413 _ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h.  */
9417
9418 int
9419 main ()
9420 {
9421
9422   ;
9423   return 0;
9424 }
9425 _ACEOF
9426 rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9428   (eval $ac_link) 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); } &&
9432          { ac_try='test -s conftest$ac_exeext'
9433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434   (eval $ac_try) 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); }; }; then
9438
9439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9440 }'`
9441 # Check for a 64-bit object if we didn't find anything.
9442 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; }
9443 }'`; fi
9444 else
9445   echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9447
9448 fi
9449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9450 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9451
9452         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9453         # Warning - without using the other run time loading flags,
9454         # -berok will link without error, but may produce a broken library.
9455         no_undefined_flag_CXX=' ${wl}-bernotok'
9456         allow_undefined_flag_CXX=' ${wl}-berok'
9457         # -bexpall does not export symbols beginning with underscore (_)
9458         always_export_symbols_CXX=yes
9459         # Exported symbols can be pulled into shared objects from archives
9460         whole_archive_flag_spec_CXX=' '
9461         archive_cmds_need_lc_CXX=yes
9462         # This is similar to how AIX traditionally builds it's shared libraries.
9463         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9464       fi
9465     fi
9466     ;;
9467   chorus*)
9468     case $cc_basename in
9469       *)
9470         # FIXME: insert proper C++ library support
9471         ld_shlibs_CXX=no
9472         ;;
9473     esac
9474     ;;
9475
9476   cygwin* | mingw* | pw32*)
9477     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9478     # as there is no search path for DLLs.
9479     hardcode_libdir_flag_spec_CXX='-L$libdir'
9480     allow_undefined_flag_CXX=unsupported
9481     always_export_symbols_CXX=no
9482     enable_shared_with_static_runtimes_CXX=yes
9483
9484     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9485       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'
9486       # If the export-symbols file already is a .def file (1st line
9487       # is EXPORTS), use it as is; otherwise, prepend...
9488       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9489         cp $export_symbols $output_objdir/$soname.def;
9490       else
9491         echo EXPORTS > $output_objdir/$soname.def;
9492         cat $export_symbols >> $output_objdir/$soname.def;
9493       fi${_S_}
9494       $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'
9495     else
9496       ld_shlibs_CXX=no
9497     fi
9498   ;;
9499
9500   darwin* | rhapsody*)
9501    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9502     archive_cmds_need_lc_CXX=no
9503     case "$host_os" in
9504     rhapsody* | darwin1.[012])
9505       allow_undefined_flag_CXX='-undefined suppress'
9506       ;;
9507     darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
9508       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9509       ;;
9510     *) # Darwin 7.0 on
9511       case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
9512       10.[012])
9513         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9514         ;;
9515       *) # 10.3 on
9516         if test -z ${LD_TWOLEVEL_NAMESPACE}; then
9517           allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9518         else
9519           allow_undefined_flag_CXX='-undefined dynamic_lookup'
9520         fi
9521         ;;
9522       esac
9523       ;;
9524     esac
9525         lt_int_apple_cc_single_mod=no
9526         output_verbose_link_cmd='echo'
9527         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9528           lt_int_apple_cc_single_mod=yes
9529         fi
9530         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9531           archive_cmds_CXX='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9532         else
9533         archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9534       fi
9535       module_cmds_CXX='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9536
9537     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9538       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9539         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9540       else
9541         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9542       fi
9543         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9544     hardcode_direct_CXX=no
9545     hardcode_automatic_CXX=yes
9546     hardcode_shlibpath_var_CXX=unsupported
9547     whole_archive_flag_spec_CXX='-all_load $convenience'
9548     link_all_deplibs_CXX=yes
9549    fi
9550     ;;
9551
9552   dgux*)
9553     case $cc_basename in
9554       ec++)
9555         # FIXME: insert proper C++ library support
9556         ld_shlibs_CXX=no
9557         ;;
9558       ghcx)
9559         # Green Hills C++ Compiler
9560         # FIXME: insert proper C++ library support
9561         ld_shlibs_CXX=no
9562         ;;
9563       *)
9564         # FIXME: insert proper C++ library support
9565         ld_shlibs_CXX=no
9566         ;;
9567     esac
9568     ;;
9569   freebsd12*)
9570     # C++ shared libraries reported to be fairly broken before switch to ELF
9571     ld_shlibs_CXX=no
9572     ;;
9573   freebsd-elf*)
9574     archive_cmds_need_lc_CXX=no
9575     ;;
9576   freebsd*)
9577     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9578     # conventions
9579     ld_shlibs_CXX=yes
9580     ;;
9581   gnu*)
9582     ;;
9583   hpux9*)
9584     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9585     hardcode_libdir_separator_CXX=:
9586     export_dynamic_flag_spec_CXX='${wl}-E'
9587     hardcode_direct_CXX=yes
9588     hardcode_minus_L_CXX=yes # Not in the search PATH,
9589                                 # but as the default
9590                                 # location of the library.
9591
9592     case $cc_basename in
9593     CC)
9594       # FIXME: insert proper C++ library support
9595       ld_shlibs_CXX=no
9596       ;;
9597     aCC)
9598       archive_cmds_CXX='$rm $output_objdir/$soname${_S_}$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9599       # Commands to make compiler produce verbose output that lists
9600       # what "hidden" libraries, object files and flags are used when
9601       # linking a shared library.
9602       #
9603       # There doesn't appear to be a way to prevent this compiler from
9604       # explicitly linking system object files so we need to strip them
9605       # from the output so that they don't get included in the library
9606       # dependencies.
9607       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9608       ;;
9609     *)
9610       if test "$GXX" = yes; then
9611         archive_cmds_CXX='$rm $output_objdir/$soname${_S_}$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9612       else
9613         # FIXME: insert proper C++ library support
9614         ld_shlibs_CXX=no
9615       fi
9616       ;;
9617     esac
9618     ;;
9619   hpux10*|hpux11*)
9620     if test $with_gnu_ld = no; then
9621       case "$host_cpu" in
9622       hppa*64*)
9623         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9624         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9625         hardcode_libdir_separator_CXX=:
9626         ;;
9627       ia64*)
9628         hardcode_libdir_flag_spec_CXX='-L$libdir'
9629         ;;
9630       *)
9631         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9632         hardcode_libdir_separator_CXX=:
9633         export_dynamic_flag_spec_CXX='${wl}-E'
9634         ;;
9635       esac
9636     fi
9637     case "$host_cpu" in
9638     hppa*64*)
9639       hardcode_direct_CXX=no
9640       hardcode_shlibpath_var_CXX=no
9641       ;;
9642     ia64*)
9643       hardcode_direct_CXX=no
9644       hardcode_shlibpath_var_CXX=no
9645       hardcode_minus_L_CXX=yes # Not in the search PATH,
9646                                               # but as the default
9647                                               # location of the library.
9648       ;;
9649     *)
9650       hardcode_direct_CXX=yes
9651       hardcode_minus_L_CXX=yes # Not in the search PATH,
9652                                               # but as the default
9653                                               # location of the library.
9654       ;;
9655     esac
9656
9657     case $cc_basename in
9658       CC)
9659         # FIXME: insert proper C++ library support
9660         ld_shlibs_CXX=no
9661         ;;
9662       aCC)
9663         case "$host_cpu" in
9664         hppa*64*|ia64*)
9665           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9666           ;;
9667         *)
9668           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9669           ;;
9670         esac
9671         # Commands to make compiler produce verbose output that lists
9672         # what "hidden" libraries, object files and flags are used when
9673         # linking a shared library.
9674         #
9675         # There doesn't appear to be a way to prevent this compiler from
9676         # explicitly linking system object files so we need to strip them
9677         # from the output so that they don't get included in the library
9678         # dependencies.
9679         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'
9680         ;;
9681       *)
9682         if test "$GXX" = yes; then
9683           if test $with_gnu_ld = no; then
9684             case "$host_cpu" in
9685             ia64*|hppa*64*)
9686               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9687               ;;
9688             *)
9689               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'
9690               ;;
9691             esac
9692           fi
9693         else
9694           # FIXME: insert proper C++ library support
9695           ld_shlibs_CXX=no
9696         fi
9697         ;;
9698     esac
9699     ;;
9700   irix5* | irix6*)
9701     case $cc_basename in
9702       CC)
9703         # SGI C++
9704         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'
9705
9706         # Archives containing C++ object files must be created using
9707         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9708         # necessary to make sure instantiated templates are included
9709         # in the archive.
9710         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9711         ;;
9712       *)
9713         if test "$GXX" = yes; then
9714           if test "$with_gnu_ld" = no; then
9715             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'
9716           else
9717             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'
9718           fi
9719         fi
9720         link_all_deplibs_CXX=yes
9721         ;;
9722     esac
9723     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9724     hardcode_libdir_separator_CXX=:
9725     ;;
9726   linux*)
9727     case $cc_basename in
9728       KCC)
9729         # Kuck and Associates, Inc. (KAI) C++ Compiler
9730
9731         # KCC will only create a shared library if the output file
9732         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9733         # to its proper name (with version) after linking.
9734         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'
9735         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'
9736         # Commands to make compiler produce verbose output that lists
9737         # what "hidden" libraries, object files and flags are used when
9738         # linking a shared library.
9739         #
9740         # There doesn't appear to be a way to prevent this compiler from
9741         # explicitly linking system object files so we need to strip them
9742         # from the output so that they don't get included in the library
9743         # dependencies.
9744         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'
9745
9746         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9747         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9748
9749         # Archives containing C++ object files must be created using
9750         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9751         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9752         ;;
9753       icpc)
9754         # Intel C++
9755         with_gnu_ld=yes
9756         archive_cmds_need_lc_CXX=no
9757         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9758         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'
9759         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9760         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9761         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9762         ;;
9763       cxx)
9764         # Compaq C++
9765         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9766         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'
9767
9768         runpath_var=LD_RUN_PATH
9769         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9770         hardcode_libdir_separator_CXX=:
9771
9772         # Commands to make compiler produce verbose output that lists
9773         # what "hidden" libraries, object files and flags are used when
9774         # linking a shared library.
9775         #
9776         # There doesn't appear to be a way to prevent this compiler from
9777         # explicitly linking system object files so we need to strip them
9778         # from the output so that they don't get included in the library
9779         # dependencies.
9780         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'
9781         ;;
9782     esac
9783     ;;
9784   lynxos*)
9785     # FIXME: insert proper C++ library support
9786     ld_shlibs_CXX=no
9787     ;;
9788   m88k*)
9789     # FIXME: insert proper C++ library support
9790     ld_shlibs_CXX=no
9791     ;;
9792   mvs*)
9793     case $cc_basename in
9794       cxx)
9795         # FIXME: insert proper C++ library support
9796         ld_shlibs_CXX=no
9797         ;;
9798       *)
9799         # FIXME: insert proper C++ library support
9800         ld_shlibs_CXX=no
9801         ;;
9802     esac
9803     ;;
9804   netbsd*)
9805     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9806       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9807       wlarc=
9808       hardcode_libdir_flag_spec_CXX='-R$libdir'
9809       hardcode_direct_CXX=yes
9810       hardcode_shlibpath_var_CXX=no
9811     fi
9812     # Workaround some broken pre-1.5 toolchains
9813     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9814     ;;
9815   osf3*)
9816     case $cc_basename in
9817       KCC)
9818         # Kuck and Associates, Inc. (KAI) C++ Compiler
9819
9820         # KCC will only create a shared library if the output file
9821         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9822         # to its proper name (with version) after linking.
9823         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'
9824
9825         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9826         hardcode_libdir_separator_CXX=:
9827
9828         # Archives containing C++ object files must be created using
9829         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9830         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9831
9832         ;;
9833       RCC)
9834         # Rational C++ 2.4.1
9835         # FIXME: insert proper C++ library support
9836         ld_shlibs_CXX=no
9837         ;;
9838       cxx)
9839         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9840         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'
9841
9842         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9843         hardcode_libdir_separator_CXX=:
9844
9845         # Commands to make compiler produce verbose output that lists
9846         # what "hidden" libraries, object files and flags are used when
9847         # linking a shared library.
9848         #
9849         # There doesn't appear to be a way to prevent this compiler from
9850         # explicitly linking system object files so we need to strip them
9851         # from the output so that they don't get included in the library
9852         # dependencies.
9853         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'
9854         ;;
9855       *)
9856         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9857           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9858           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'
9859
9860           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9861           hardcode_libdir_separator_CXX=:
9862
9863           # Commands to make compiler produce verbose output that lists
9864           # what "hidden" libraries, object files and flags are used when
9865           # linking a shared library.
9866           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9867
9868         else
9869           # FIXME: insert proper C++ library support
9870           ld_shlibs_CXX=no
9871         fi
9872         ;;
9873     esac
9874     ;;
9875   osf4* | osf5*)
9876     case $cc_basename in
9877       KCC)
9878         # Kuck and Associates, Inc. (KAI) C++ Compiler
9879
9880         # KCC will only create a shared library if the output file
9881         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9882         # to its proper name (with version) after linking.
9883         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'
9884
9885         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9886         hardcode_libdir_separator_CXX=:
9887
9888         # Archives containing C++ object files must be created using
9889         # the KAI C++ compiler.
9890         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9891         ;;
9892       RCC)
9893         # Rational C++ 2.4.1
9894         # FIXME: insert proper C++ library support
9895         ld_shlibs_CXX=no
9896         ;;
9897       cxx)
9898         allow_undefined_flag_CXX=' -expect_unresolved \*'
9899         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'
9900         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done${_S_}
9901           echo "-hidden">> $lib.exp${_S_}
9902           $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${_S_}
9903           $rm $lib.exp'
9904
9905         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9906         hardcode_libdir_separator_CXX=:
9907
9908         # Commands to make compiler produce verbose output that lists
9909         # what "hidden" libraries, object files and flags are used when
9910         # linking a shared library.
9911         #
9912         # There doesn't appear to be a way to prevent this compiler from
9913         # explicitly linking system object files so we need to strip them
9914         # from the output so that they don't get included in the library
9915         # dependencies.
9916         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'
9917         ;;
9918       *)
9919         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9920           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9921          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'
9922
9923           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9924           hardcode_libdir_separator_CXX=:
9925
9926           # Commands to make compiler produce verbose output that lists
9927           # what "hidden" libraries, object files and flags are used when
9928           # linking a shared library.
9929           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9930
9931         else
9932           # FIXME: insert proper C++ library support
9933           ld_shlibs_CXX=no
9934         fi
9935         ;;
9936     esac
9937     ;;
9938   psos*)
9939     # FIXME: insert proper C++ library support
9940     ld_shlibs_CXX=no
9941     ;;
9942   sco*)
9943     archive_cmds_need_lc_CXX=no
9944     case $cc_basename in
9945       CC)
9946         # FIXME: insert proper C++ library support
9947         ld_shlibs_CXX=no
9948         ;;
9949       *)
9950         # FIXME: insert proper C++ library support
9951         ld_shlibs_CXX=no
9952         ;;
9953     esac
9954     ;;
9955   sunos4*)
9956     case $cc_basename in
9957       CC)
9958         # Sun C++ 4.x
9959         # FIXME: insert proper C++ library support
9960         ld_shlibs_CXX=no
9961         ;;
9962       lcc)
9963         # Lucid
9964         # FIXME: insert proper C++ library support
9965         ld_shlibs_CXX=no
9966         ;;
9967       *)
9968         # FIXME: insert proper C++ library support
9969         ld_shlibs_CXX=no
9970         ;;
9971     esac
9972     ;;
9973   solaris*)
9974     case $cc_basename in
9975       CC)
9976         # Sun C++ 4.2, 5.x and Centerline C++
9977         no_undefined_flag_CXX=' -zdefs'
9978         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9979         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
9980         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
9981
9982         hardcode_libdir_flag_spec_CXX='-R$libdir'
9983         hardcode_shlibpath_var_CXX=no
9984         case $host_os in
9985           solaris2.0-5 | solaris2.0-5.*) ;;
9986           *)
9987             # The C++ compiler is used as linker so we must use $wl
9988             # flag to pass the commands to the underlying system
9989             # linker.
9990             # Supported since Solaris 2.6 (maybe 2.5.1?)
9991             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9992             ;;
9993         esac
9994         link_all_deplibs_CXX=yes
9995
9996         # Commands to make compiler produce verbose output that lists
9997         # what "hidden" libraries, object files and flags are used when
9998         # linking a shared library.
9999         #
10000         # There doesn't appear to be a way to prevent this compiler from
10001         # explicitly linking system object files so we need to strip them
10002         # from the output so that they don't get included in the library
10003         # dependencies.
10004         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'
10005
10006         # Archives containing C++ object files must be created using
10007         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10008         # necessary to make sure instantiated templates are included
10009         # in the archive.
10010         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10011         ;;
10012       gcx)
10013         # Green Hills C++ Compiler
10014         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10015
10016         # The C++ compiler must be used to create the archive.
10017         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10018         ;;
10019       *)
10020         # GNU C++ compiler with Solaris linker
10021         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10022           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10023           if $CC --version | grep -v '^2\.7' > /dev/null; then
10024             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10025             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
10026                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
10027
10028             # Commands to make compiler produce verbose output that lists
10029             # what "hidden" libraries, object files and flags are used when
10030             # linking a shared library.
10031             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10032           else
10033             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10034             # platform.
10035             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10036             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
10037                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
10038
10039             # Commands to make compiler produce verbose output that lists
10040             # what "hidden" libraries, object files and flags are used when
10041             # linking a shared library.
10042             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10043           fi
10044
10045           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10046         fi
10047         ;;
10048     esac
10049     ;;
10050   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10051     archive_cmds_need_lc_CXX=no
10052     ;;
10053   tandem*)
10054     case $cc_basename in
10055       NCC)
10056         # NonStop-UX NCC 3.20
10057         # FIXME: insert proper C++ library support
10058         ld_shlibs_CXX=no
10059         ;;
10060       *)
10061         # FIXME: insert proper C++ library support
10062         ld_shlibs_CXX=no
10063         ;;
10064     esac
10065     ;;
10066   vxworks*)
10067     # FIXME: insert proper C++ library support
10068     ld_shlibs_CXX=no
10069     ;;
10070   *)
10071     # FIXME: insert proper C++ library support
10072     ld_shlibs_CXX=no
10073     ;;
10074 esac
10075 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10076 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10077 test "$ld_shlibs_CXX" = no && can_build_shared=no
10078
10079 GCC_CXX="$GXX"
10080 LD_CXX="$LD"
10081
10082
10083 cat > conftest.$ac_ext <<EOF
10084 class Foo
10085 {
10086 public:
10087   Foo (void) { a = 0; }
10088 private:
10089   int a;
10090 };
10091 EOF
10092
10093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10094   (eval $ac_compile) 2>&5
10095   ac_status=$?
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); }; then
10098   # Parse the compiler output and extract the necessary
10099   # objects, libraries and library flags.
10100
10101   # Sentinel used to keep track of whether or not we are before
10102   # the conftest object file.
10103   pre_test_object_deps_done=no
10104
10105   # The `*' in the case matches for architectures that use `case' in
10106   # $output_verbose_cmd can trigger glob expansion during the loop
10107   # eval without this substitution.
10108   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10109
10110   for p in `eval $output_verbose_link_cmd`; do
10111     case $p in
10112
10113     -L* | -R* | -l*)
10114        # Some compilers place space between "-{L,R}" and the path.
10115        # Remove the space.
10116        if test $p = "-L" \
10117           || test $p = "-R"; then
10118          prev=$p
10119          continue
10120        else
10121          prev=
10122        fi
10123
10124        if test "$pre_test_object_deps_done" = no; then
10125          case $p in
10126          -L* | -R*)
10127            # Internal compiler library paths should come after those
10128            # provided the user.  The postdeps already come after the
10129            # user supplied libs so there is no need to process them.
10130            if test -z "$compiler_lib_search_path_CXX"; then
10131              compiler_lib_search_path_CXX="${prev}${p}"
10132            else
10133              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10134            fi
10135            ;;
10136          # The "-l" case would never come before the object being
10137          # linked, so don't bother handling this case.
10138          esac
10139        else
10140          if test -z "$postdeps_CXX"; then
10141            postdeps_CXX="${prev}${p}"
10142          else
10143            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10144          fi
10145        fi
10146        ;;
10147
10148     *.$objext)
10149        # This assumes that the test object file only shows up
10150        # once in the compiler output.
10151        if test "$p" = "conftest.$objext"; then
10152          pre_test_object_deps_done=yes
10153          continue
10154        fi
10155
10156        if test "$pre_test_object_deps_done" = no; then
10157          if test -z "$predep_objects_CXX"; then
10158            predep_objects_CXX="$p"
10159          else
10160            predep_objects_CXX="$predep_objects_CXX $p"
10161          fi
10162        else
10163          if test -z "$postdep_objects_CXX"; then
10164            postdep_objects_CXX="$p"
10165          else
10166            postdep_objects_CXX="$postdep_objects_CXX $p"
10167          fi
10168        fi
10169        ;;
10170
10171     *) ;; # Ignore the rest.
10172
10173     esac
10174   done
10175
10176   # Clean up.
10177   rm -f a.out a.exe
10178 else
10179   echo "libtool.m4: error: problem compiling CXX test program"
10180 fi
10181
10182 $rm -f confest.$objext
10183
10184 case " $postdeps_CXX " in
10185 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10186 esac
10187
10188 lt_prog_compiler_wl_CXX=
10189 lt_prog_compiler_pic_CXX=
10190 lt_prog_compiler_static_CXX=
10191
10192 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10193 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10194
10195   # C++ specific cases for pic, static, wl, etc.
10196   if test "$GXX" = yes; then
10197     lt_prog_compiler_wl_CXX='-Wl,'
10198     lt_prog_compiler_static_CXX='-static'
10199
10200     case $host_os in
10201     aix*)
10202       # All AIX code is PIC.
10203       if test "$host_cpu" = ia64; then
10204         # AIX 5 now supports IA64 processor
10205         lt_prog_compiler_static_CXX='-Bstatic'
10206       fi
10207       ;;
10208     amigaos*)
10209       # FIXME: we need at least 68020 code to build shared libraries, but
10210       # adding the `-m68020' flag to GCC prevents building anything better,
10211       # like `-m68040'.
10212       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10213       ;;
10214     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10215       # PIC is the default for these OSes.
10216       ;;
10217     mingw* | os2* | pw32*)
10218       # This hack is so that the source file can tell whether it is being
10219       # built for inclusion in a dll (and should export symbols for example).
10220       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10221       ;;
10222     darwin* | rhapsody*)
10223       # PIC is the default on this platform
10224       # Common symbols not allowed in MH_DYLIB files
10225       lt_prog_compiler_pic_CXX='-fno-common'
10226       ;;
10227     *djgpp*)
10228       # DJGPP does not support shared libraries at all
10229       lt_prog_compiler_pic_CXX=
10230       ;;
10231     sysv4*MP*)
10232       if test -d /usr/nec; then
10233         lt_prog_compiler_pic_CXX=-Kconform_pic
10234       fi
10235       ;;
10236     hpux*)
10237       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10238       # not for PA HP-UX.
10239       case "$host_cpu" in
10240       hppa*64*|ia64*)
10241         ;;
10242       *)
10243         lt_prog_compiler_pic_CXX='-fPIC'
10244         ;;
10245       esac
10246       ;;
10247     *)
10248       lt_prog_compiler_pic_CXX='-fPIC'
10249       ;;
10250     esac
10251   else
10252     case $host_os in
10253       aix4* | aix5*)
10254         # All AIX code is PIC.
10255         if test "$host_cpu" = ia64; then
10256           # AIX 5 now supports IA64 processor
10257           lt_prog_compiler_static_CXX='-Bstatic'
10258         else
10259           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10260         fi
10261         ;;
10262       chorus*)
10263         case $cc_basename in
10264         cxch68)
10265           # Green Hills C++ Compiler
10266           # _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"
10267           ;;
10268         esac
10269         ;;
10270       dgux*)
10271         case $cc_basename in
10272           ec++)
10273             lt_prog_compiler_pic_CXX='-KPIC'
10274             ;;
10275           ghcx)
10276             # Green Hills C++ Compiler
10277             lt_prog_compiler_pic_CXX='-pic'
10278             ;;
10279           *)
10280             ;;
10281         esac
10282         ;;
10283       freebsd*)
10284         # FreeBSD uses GNU C++
10285         ;;
10286       hpux9* | hpux10* | hpux11*)
10287         case $cc_basename in
10288           CC)
10289             lt_prog_compiler_wl_CXX='-Wl,'
10290             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10291             if test "$host_cpu" != ia64; then
10292               lt_prog_compiler_pic_CXX='+Z'
10293             fi
10294             ;;
10295           aCC)
10296             lt_prog_compiler_wl_CXX='-Wl,'
10297             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10298             case "$host_cpu" in
10299             hppa*64*|ia64*)
10300               # +Z the default
10301               ;;
10302             *)
10303               lt_prog_compiler_pic_CXX='+Z'
10304               ;;
10305             esac
10306             ;;
10307           *)
10308             ;;
10309         esac
10310         ;;
10311       irix5* | irix6* | nonstopux*)
10312         case $cc_basename in
10313           CC)
10314             lt_prog_compiler_wl_CXX='-Wl,'
10315             lt_prog_compiler_static_CXX='-non_shared'
10316             # CC pic flag -KPIC is the default.
10317             ;;
10318           *)
10319             ;;
10320         esac
10321         ;;
10322       linux*)
10323         case $cc_basename in
10324           KCC)
10325             # KAI C++ Compiler
10326             lt_prog_compiler_wl_CXX='--backend -Wl,'
10327             lt_prog_compiler_pic_CXX='-fPIC'
10328             ;;
10329           icpc)
10330             # Intel C++
10331             lt_prog_compiler_wl_CXX='-Wl,'
10332             lt_prog_compiler_pic_CXX='-KPIC'
10333             lt_prog_compiler_static_CXX='-static'
10334             ;;
10335           cxx)
10336             # Compaq C++
10337             # Make sure the PIC flag is empty.  It appears that all Alpha
10338             # Linux and Compaq Tru64 Unix objects are PIC.
10339             lt_prog_compiler_pic_CXX=
10340             lt_prog_compiler_static_CXX='-non_shared'
10341             ;;
10342           *)
10343             ;;
10344         esac
10345         ;;
10346       lynxos*)
10347         ;;
10348       m88k*)
10349         ;;
10350       mvs*)
10351         case $cc_basename in
10352           cxx)
10353             lt_prog_compiler_pic_CXX='-W c,exportall'
10354             ;;
10355           *)
10356             ;;
10357         esac
10358         ;;
10359       netbsd*)
10360         ;;
10361       osf3* | osf4* | osf5*)
10362         case $cc_basename in
10363           KCC)
10364             lt_prog_compiler_wl_CXX='--backend -Wl,'
10365             ;;
10366           RCC)
10367             # Rational C++ 2.4.1
10368             lt_prog_compiler_pic_CXX='-pic'
10369             ;;
10370           cxx)
10371             # Digital/Compaq C++
10372             lt_prog_compiler_wl_CXX='-Wl,'
10373             # Make sure the PIC flag is empty.  It appears that all Alpha
10374             # Linux and Compaq Tru64 Unix objects are PIC.
10375             lt_prog_compiler_pic_CXX=
10376             lt_prog_compiler_static_CXX='-non_shared'
10377             ;;
10378           *)
10379             ;;
10380         esac
10381         ;;
10382       psos*)
10383         ;;
10384       sco*)
10385         case $cc_basename in
10386           CC)
10387             lt_prog_compiler_pic_CXX='-fPIC'
10388             ;;
10389           *)
10390             ;;
10391         esac
10392         ;;
10393       solaris*)
10394         case $cc_basename in
10395           CC)
10396             # Sun C++ 4.2, 5.x and Centerline C++
10397             lt_prog_compiler_pic_CXX='-KPIC'
10398             lt_prog_compiler_static_CXX='-Bstatic'
10399             lt_prog_compiler_wl_CXX='-Qoption ld '
10400             ;;
10401           gcx)
10402             # Green Hills C++ Compiler
10403             lt_prog_compiler_pic_CXX='-PIC'
10404             ;;
10405           *)
10406             ;;
10407         esac
10408         ;;
10409       sunos4*)
10410         case $cc_basename in
10411           CC)
10412             # Sun C++ 4.x
10413             lt_prog_compiler_pic_CXX='-pic'
10414             lt_prog_compiler_static_CXX='-Bstatic'
10415             ;;
10416           lcc)
10417             # Lucid
10418             lt_prog_compiler_pic_CXX='-pic'
10419             ;;
10420           *)
10421             ;;
10422         esac
10423         ;;
10424       tandem*)
10425         case $cc_basename in
10426           NCC)
10427             # NonStop-UX NCC 3.20
10428             lt_prog_compiler_pic_CXX='-KPIC'
10429             ;;
10430           *)
10431             ;;
10432         esac
10433         ;;
10434       unixware*)
10435         ;;
10436       vxworks*)
10437         ;;
10438       *)
10439         lt_prog_compiler_can_build_shared_CXX=no
10440         ;;
10441     esac
10442   fi
10443
10444 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10445 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10446
10447 #
10448 # Check to make sure the PIC flag actually works.
10449 #
10450 if test -n "$lt_prog_compiler_pic_CXX"; then
10451   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10452 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10453 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456   lt_prog_compiler_pic_works_CXX=no
10457   ac_outfile=conftest.$ac_objext
10458    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10459    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10460    # Insert the option either (1) after the last *FLAGS variable, or
10461    # (2) before a word containing "conftest.", or (3) at the end.
10462    # Note that $ac_compile itself does not contain backslashes and begins
10463    # with a dollar sign (not a hyphen), so the echo should work correctly.
10464    # The option is referenced via a variable to avoid confusing sed.
10465    lt_compile=`echo "$ac_compile" | $SED \
10466    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10467    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10468    -e 's:$: $lt_compiler_flag:'`
10469    (eval echo "\"\$as_me:10469: $lt_compile\"" >&5)
10470    (eval "$lt_compile" 2>conftest.err)
10471    ac_status=$?
10472    cat conftest.err >&5
10473    echo "$as_me:10473: \$? = $ac_status" >&5
10474    if (exit $ac_status) && test -s "$ac_outfile"; then
10475      # The compiler can only warn and ignore the option if not recognized
10476      # So say no if there are warnings
10477      if test ! -s conftest.err; then
10478        lt_prog_compiler_pic_works_CXX=yes
10479      fi
10480    fi
10481    $rm conftest*
10482
10483 fi
10484 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10485 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10486
10487 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10488     case $lt_prog_compiler_pic_CXX in
10489      "" | " "*) ;;
10490      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10491      esac
10492 else
10493     lt_prog_compiler_pic_CXX=
10494      lt_prog_compiler_can_build_shared_CXX=no
10495 fi
10496
10497 fi
10498 case "$host_os" in
10499   # For platforms which do not support PIC, -DPIC is meaningless:
10500   *djgpp*)
10501     lt_prog_compiler_pic_CXX=
10502     ;;
10503   *)
10504     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10505     ;;
10506 esac
10507
10508 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10509 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10510 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10511   echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513   lt_cv_prog_compiler_c_o_CXX=no
10514    $rm -r conftest 2>/dev/null
10515    mkdir conftest
10516    cd conftest
10517    mkdir out
10518    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10519
10520    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10521    # that will create temporary files in the current directory regardless of
10522    # the output directory.  Thus, making CWD read-only will cause this test
10523    # to fail, enabling locking or at least warning the user not to do parallel
10524    # builds.
10525    chmod -w .
10526
10527    lt_compiler_flag="-o out/conftest2.$ac_objext"
10528    # Insert the option either (1) after the last *FLAGS variable, or
10529    # (2) before a word containing "conftest.", or (3) at the end.
10530    # Note that $ac_compile itself does not contain backslashes and begins
10531    # with a dollar sign (not a hyphen), so the echo should work correctly.
10532    lt_compile=`echo "$ac_compile" | $SED \
10533    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10535    -e 's:$: $lt_compiler_flag:'`
10536    (eval echo "\"\$as_me:10536: $lt_compile\"" >&5)
10537    (eval "$lt_compile" 2>out/conftest.err)
10538    ac_status=$?
10539    cat out/conftest.err >&5
10540    echo "$as_me:10540: \$? = $ac_status" >&5
10541    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10542    then
10543      # The compiler can only warn and ignore the option if not recognized
10544      # So say no if there are warnings
10545      if test ! -s out/conftest.err; then
10546        lt_cv_prog_compiler_c_o_CXX=yes
10547      fi
10548    fi
10549    chmod u+w .
10550    $rm conftest* out/*
10551    rmdir out
10552    cd ..
10553    rmdir conftest
10554    $rm conftest*
10555
10556 fi
10557 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10558 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10559
10560
10561 hard_links="nottested"
10562 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10563   # do not overwrite the value of need_locks provided by the user
10564   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10565 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10566   hard_links=yes
10567   $rm conftest*
10568   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10569   touch conftest.a
10570   ln conftest.a conftest.b 2>&5 || hard_links=no
10571   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10572   echo "$as_me:$LINENO: result: $hard_links" >&5
10573 echo "${ECHO_T}$hard_links" >&6
10574   if test "$hard_links" = no; then
10575     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10576 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10577     need_locks=warn
10578   fi
10579 else
10580   need_locks=no
10581 fi
10582
10583 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10584 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10585
10586   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10587   case $host_os in
10588   aix4* | aix5*)
10589     # If we're using GNU nm, then we don't want the "-C" option.
10590     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10591     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10592       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'
10593     else
10594       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'
10595     fi
10596     ;;
10597   pw32*)
10598     export_symbols_cmds_CXX="$ltdll_cmds"
10599   ;;
10600   cygwin* | mingw*)
10601     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10602   ;;
10603   *)
10604     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10605   ;;
10606   esac
10607
10608 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10609 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10610 test "$ld_shlibs_CXX" = no && can_build_shared=no
10611
10612 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10613 if test "$GCC" = yes; then
10614   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10615 fi
10616
10617 #
10618 # Do we need to explicitly link libc?
10619 #
10620 case "x$archive_cmds_need_lc_CXX" in
10621 x|xyes)
10622   # Assume -lc should be added
10623   archive_cmds_need_lc_CXX=yes
10624
10625   if test "$enable_shared" = yes && test "$GCC" = yes; then
10626     case $archive_cmds_CXX in
10627     *"$_S_"*)
10628       # FIXME: we may have to deal with multi-command sequences.
10629       ;;
10630     '$CC '*)
10631       # Test whether the compiler implicitly links with -lc since on some
10632       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10633       # to ld, don't add -lc before -lgcc.
10634       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10635 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10636       $rm conftest*
10637       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10638
10639       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10640   (eval $ac_compile) 2>&5
10641   ac_status=$?
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); } 2>conftest.err; then
10644         soname=conftest
10645         lib=conftest
10646         libobjs=conftest.$ac_objext
10647         deplibs=
10648         wl=$lt_prog_compiler_wl_CXX
10649         compiler_flags=-v
10650         linker_flags=-v
10651         verstring=
10652         output_objdir=.
10653         libname=conftest
10654         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10655         allow_undefined_flag_CXX=
10656         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10657   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10658   ac_status=$?
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); }
10661         then
10662           archive_cmds_need_lc_CXX=no
10663         else
10664           archive_cmds_need_lc_CXX=yes
10665         fi
10666         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10667       else
10668         cat conftest.err 1>&5
10669       fi
10670       $rm conftest*
10671       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10672 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10673       ;;
10674     esac
10675   fi
10676   ;;
10677 esac
10678
10679 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10680 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10681 hardcode_action_CXX=
10682 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10683    test -n "$runpath_var CXX" || \
10684    test "X$hardcode_automatic_CXX"="Xyes" ; then
10685
10686   # We can hardcode non-existant directories.
10687   if test "$hardcode_direct_CXX" != no &&
10688      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10689      # have to relink, otherwise we might link with an installed library
10690      # when we should be linking with a yet-to-be-installed one
10691      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10692      test "$hardcode_minus_L_CXX" != no; then
10693     # Linking always hardcodes the temporary library directory.
10694     hardcode_action_CXX=relink
10695   else
10696     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10697     hardcode_action_CXX=immediate
10698   fi
10699 else
10700   # We cannot hardcode anything, or else we can only hardcode existing
10701   # directories.
10702   hardcode_action_CXX=unsupported
10703 fi
10704 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10705 echo "${ECHO_T}$hardcode_action_CXX" >&6
10706
10707 if test "$hardcode_action_CXX" = relink; then
10708   # Fast installation is not supported
10709   enable_fast_install=no
10710 elif test "$shlibpath_overrides_runpath" = yes ||
10711      test "$enable_shared" = no; then
10712   # Fast installation is not necessary
10713   enable_fast_install=needless
10714 fi
10715
10716 striplib=
10717 old_striplib=
10718 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10719 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10720 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10721   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10722   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10723   echo "$as_me:$LINENO: result: yes" >&5
10724 echo "${ECHO_T}yes" >&6
10725 else
10726 # FIXME - insert some real tests, host_os isn't really good enough
10727   case $host_os in
10728    NOT-darwin*)
10729        if test -n "$STRIP" ; then
10730          striplib="$STRIP -x"
10731          echo "$as_me:$LINENO: result: yes" >&5
10732 echo "${ECHO_T}yes" >&6
10733        else
10734   echo "$as_me:$LINENO: result: no" >&5
10735 echo "${ECHO_T}no" >&6
10736 fi
10737        ;;
10738    *)
10739   echo "$as_me:$LINENO: result: no" >&5
10740 echo "${ECHO_T}no" >&6
10741     ;;
10742   esac
10743 fi
10744
10745 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10746 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10747 library_names_spec=
10748 libname_spec='lib$name'
10749 soname_spec=
10750 shrext=".so"
10751 postinstall_cmds=
10752 postuninstall_cmds=
10753 finish_cmds=
10754 finish_eval=
10755 shlibpath_var=
10756 shlibpath_overrides_runpath=unknown
10757 version_type=none
10758 dynamic_linker="$host_os ld.so"
10759 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10760 if test "$GCC" = yes; then
10761   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10762   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10763     # if the path contains ";" then we assume it to be the separator
10764     # otherwise default to the standard path separator (i.e. ":") - it is
10765     # assumed that no part of a normal pathname contains ";" but that should
10766     # okay in the real world where ";" in dirpaths is itself problematic.
10767     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10768   else
10769     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10770   fi
10771 else
10772   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10773 fi
10774 need_lib_prefix=unknown
10775 hardcode_into_libs=no
10776
10777 # when you set need_version to no, make sure it does not cause -set_version
10778 # flags to be left without arguments
10779 need_version=unknown
10780
10781 case $host_os in
10782 aix3*)
10783   version_type=linux
10784   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10785   shlibpath_var=LIBPATH
10786
10787   # AIX 3 has no versioning support, so we append a major version to the name.
10788   soname_spec='${libname}${release}${shared_ext}$major'
10789   ;;
10790
10791 aix4* | aix5*)
10792   version_type=linux
10793   need_lib_prefix=no
10794   need_version=no
10795   hardcode_into_libs=yes
10796   if test "$host_cpu" = ia64; then
10797     # AIX 5 supports IA64
10798     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10799     shlibpath_var=LD_LIBRARY_PATH
10800   else
10801     # With GCC up to 2.95.x, collect2 would create an import file
10802     # for dependence libraries.  The import file would start with
10803     # the line `#! .'.  This would cause the generated library to
10804     # depend on `.', always an invalid library.  This was fixed in
10805     # development snapshots of GCC prior to 3.0.
10806     case $host_os in
10807       aix4 | aix4.[01] | aix4.[01].*)
10808       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10809            echo ' yes '
10810            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10811         :
10812       else
10813         can_build_shared=no
10814       fi
10815       ;;
10816     esac
10817     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10818     # soname into executable. Probably we can add versioning support to
10819     # collect2, so additional links can be useful in future.
10820     if test "$aix_use_runtimelinking" = yes; then
10821       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10822       # instead of lib<name>.a to let people know that these are not
10823       # typical AIX shared libraries.
10824       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825     else
10826       # We preserve .a as extension for shared libraries through AIX4.2
10827       # and later when we are not doing run time linking.
10828       library_names_spec='${libname}${release}.a $libname.a'
10829       soname_spec='${libname}${release}${shared_ext}$major'
10830     fi
10831     shlibpath_var=LIBPATH
10832   fi
10833   ;;
10834
10835 amigaos*)
10836   library_names_spec='$libname.ixlibrary $libname.a'
10837   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10838   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'
10839   ;;
10840
10841 beos*)
10842   library_names_spec='${libname}${shared_ext}'
10843   dynamic_linker="$host_os ld.so"
10844   shlibpath_var=LIBRARY_PATH
10845   ;;
10846
10847 bsdi4*)
10848   version_type=linux
10849   need_version=no
10850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851   soname_spec='${libname}${release}${shared_ext}$major'
10852   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10853   shlibpath_var=LD_LIBRARY_PATH
10854   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10855   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10856   # the default ld.so.conf also contains /usr/contrib/lib and
10857   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10858   # libtool to hard-code these into programs
10859   ;;
10860
10861 cygwin* | mingw* | pw32*)
10862   version_type=windows
10863   shrext=".dll"
10864   need_version=no
10865   need_lib_prefix=no
10866
10867   case $GCC,$host_os in
10868   yes,cygwin* | yes,mingw* | yes,pw32*)
10869     library_names_spec='$libname.dll.a'
10870     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10871     postinstall_cmds='base_file=`basename \${file}`${_S_}
10872       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
10873       dldir=$destdir/`dirname \$dlpath`${_S_}
10874       test -d \$dldir || mkdir -p \$dldir${_S_}
10875       $install_prog $dir/$dlname \$dldir/$dlname'
10876     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
10877       dlpath=$dir/\$dldll${_S_}
10878        $rm \$dlpath'
10879     shlibpath_overrides_runpath=yes
10880
10881     case $host_os in
10882     cygwin*)
10883       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10884       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10885       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10886       ;;
10887     mingw*)
10888       # MinGW DLLs use traditional 'lib' prefix
10889       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10890       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10891       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10892         # It is most probably a Windows format PATH printed by
10893         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10894         # path with ; separators, and with drive letters. We can handle the
10895         # drive letters (cygwin fileutils understands them), so leave them,
10896         # especially as we might pass files found there to a mingw objdump,
10897         # which wouldn't understand a cygwinified path. Ahh.
10898         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10899       else
10900         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10901       fi
10902       ;;
10903     pw32*)
10904       # pw32 DLLs use 'pw' prefix rather than 'lib'
10905       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10906       ;;
10907     esac
10908     ;;
10909
10910   *)
10911     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10912     ;;
10913   esac
10914   dynamic_linker='Win32 ld.exe'
10915   # FIXME: first we should search . and the directory the executable is in
10916   shlibpath_var=PATH
10917   ;;
10918
10919 darwin* | rhapsody*)
10920   dynamic_linker="$host_os dyld"
10921   version_type=darwin
10922   need_lib_prefix=no
10923   need_version=no
10924   # FIXME: Relying on posixy $() will cause problems for
10925   #        cross-compilation, but unfortunately the echo tests do not
10926   #        yet detect zsh echo's removal of \ escapes.
10927   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
10928   soname_spec='${libname}${release}${major}$shared_ext'
10929   shlibpath_overrides_runpath=yes
10930   shlibpath_var=DYLD_LIBRARY_PATH
10931   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10932   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10933   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10934   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"`
10935   fi
10936   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10937   ;;
10938
10939 dgux*)
10940   version_type=linux
10941   need_lib_prefix=no
10942   need_version=no
10943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10944   soname_spec='${libname}${release}${shared_ext}$major'
10945   shlibpath_var=LD_LIBRARY_PATH
10946   ;;
10947
10948 freebsd1*)
10949   dynamic_linker=no
10950   ;;
10951
10952 freebsd*)
10953   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10954   version_type=freebsd-$objformat
10955   case $version_type in
10956     freebsd-elf*)
10957       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10958       need_version=no
10959       need_lib_prefix=no
10960       ;;
10961     freebsd-*)
10962       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10963       need_version=yes
10964       ;;
10965   esac
10966   shlibpath_var=LD_LIBRARY_PATH
10967   case $host_os in
10968   freebsd2*)
10969     shlibpath_overrides_runpath=yes
10970     ;;
10971   freebsd3.01* | freebsdelf3.01*)
10972     shlibpath_overrides_runpath=yes
10973     hardcode_into_libs=yes
10974     ;;
10975   *) # from 3.2 on
10976     shlibpath_overrides_runpath=no
10977     hardcode_into_libs=yes
10978     ;;
10979   esac
10980   ;;
10981
10982 gnu*)
10983   version_type=linux
10984   need_lib_prefix=no
10985   need_version=no
10986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10987   soname_spec='${libname}${release}${shared_ext}$major'
10988   shlibpath_var=LD_LIBRARY_PATH
10989   hardcode_into_libs=yes
10990   ;;
10991
10992 hpux9* | hpux10* | hpux11*)
10993   # Give a soname corresponding to the major version so that dld.sl refuses to
10994   # link against other versions.
10995   version_type=sunos
10996   need_lib_prefix=no
10997   need_version=no
10998   case "$host_cpu" in
10999   ia64*)
11000     shrext='.so'
11001     hardcode_into_libs=yes
11002     dynamic_linker="$host_os dld.so"
11003     shlibpath_var=LD_LIBRARY_PATH
11004     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006     soname_spec='${libname}${release}${shared_ext}$major'
11007     if test "X$HPUX_IA64_MODE" = X32; then
11008       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11009     else
11010       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11011     fi
11012     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11013     ;;
11014    hppa*64*)
11015      shrext='.sl'
11016      hardcode_into_libs=yes
11017      dynamic_linker="$host_os dld.sl"
11018      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11019      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11020      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021      soname_spec='${libname}${release}${shared_ext}$major'
11022      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11023      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11024      ;;
11025    *)
11026     shrext='.sl'
11027     dynamic_linker="$host_os dld.sl"
11028     shlibpath_var=SHLIB_PATH
11029     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11030     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031     soname_spec='${libname}${release}${shared_ext}$major'
11032     ;;
11033   esac
11034   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11035   postinstall_cmds='chmod 555 $lib'
11036   ;;
11037
11038 irix5* | irix6* | nonstopux*)
11039   case $host_os in
11040     nonstopux*) version_type=nonstopux ;;
11041     *)
11042         if test "$lt_cv_prog_gnu_ld" = yes; then
11043                 version_type=linux
11044         else
11045                 version_type=irix
11046         fi ;;
11047   esac
11048   need_lib_prefix=no
11049   need_version=no
11050   soname_spec='${libname}${release}${shared_ext}$major'
11051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11052   case $host_os in
11053   irix5* | nonstopux*)
11054     libsuff= shlibsuff=
11055     ;;
11056   *)
11057     case $LD in # libtool.m4 will add one of these switches to LD
11058     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11059       libsuff= shlibsuff= libmagic=32-bit;;
11060     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11061       libsuff=32 shlibsuff=N32 libmagic=N32;;
11062     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11063       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11064     *) libsuff= shlibsuff= libmagic=never-match;;
11065     esac
11066     ;;
11067   esac
11068   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11069   shlibpath_overrides_runpath=no
11070   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11071   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11072   hardcode_into_libs=yes
11073   ;;
11074
11075 # No shared lib support for Linux oldld, aout, or coff.
11076 linux*oldld* | linux*aout* | linux*coff*)
11077   dynamic_linker=no
11078   ;;
11079
11080 # This must be Linux ELF.
11081 linux*)
11082   version_type=linux
11083   need_lib_prefix=no
11084   need_version=no
11085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086   soname_spec='${libname}${release}${shared_ext}$major'
11087   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11088   shlibpath_var=LD_LIBRARY_PATH
11089   shlibpath_overrides_runpath=no
11090   # This implies no fast_install, which is unacceptable.
11091   # Some rework will be needed to allow for fast_install
11092   # before this can be enabled.
11093   hardcode_into_libs=yes
11094
11095   # We used to test for /lib/ld.so.1 and disable shared libraries on
11096   # powerpc, because MkLinux only supported shared libraries with the
11097   # GNU dynamic linker.  Since this was broken with cross compilers,
11098   # most powerpc-linux boxes support dynamic linking these days and
11099   # people can always --disable-shared, the test was removed, and we
11100   # assume the GNU/Linux dynamic linker is in use.
11101   dynamic_linker='GNU/Linux ld.so'
11102   ;;
11103
11104 netbsd*)
11105   version_type=sunos
11106   need_lib_prefix=no
11107   need_version=no
11108   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11110     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11111     dynamic_linker='NetBSD (a.out) ld.so'
11112   else
11113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11114     soname_spec='${libname}${release}${shared_ext}$major'
11115     dynamic_linker='NetBSD ld.elf_so'
11116   fi
11117   shlibpath_var=LD_LIBRARY_PATH
11118   shlibpath_overrides_runpath=yes
11119   hardcode_into_libs=yes
11120   ;;
11121
11122 newsos6)
11123   version_type=linux
11124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125   shlibpath_var=LD_LIBRARY_PATH
11126   shlibpath_overrides_runpath=yes
11127   ;;
11128
11129 nto-qnx)
11130   version_type=linux
11131   need_lib_prefix=no
11132   need_version=no
11133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11134   soname_spec='${libname}${release}${shared_ext}$major'
11135   shlibpath_var=LD_LIBRARY_PATH
11136   shlibpath_overrides_runpath=yes
11137   ;;
11138
11139 openbsd*)
11140   version_type=sunos
11141   need_lib_prefix=no
11142   need_version=no
11143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11144   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11145   shlibpath_var=LD_LIBRARY_PATH
11146   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11147     case $host_os in
11148       openbsd2.[89] | openbsd2.[89].*)
11149         shlibpath_overrides_runpath=no
11150         ;;
11151       *)
11152         shlibpath_overrides_runpath=yes
11153         ;;
11154       esac
11155   else
11156     shlibpath_overrides_runpath=yes
11157   fi
11158   ;;
11159
11160 os2*)
11161   libname_spec='$name'
11162   shrext=".dll"
11163   need_lib_prefix=no
11164   library_names_spec='$libname${shared_ext} $libname.a'
11165   dynamic_linker='OS/2 ld.exe'
11166   shlibpath_var=LIBPATH
11167   ;;
11168
11169 osf3* | osf4* | osf5*)
11170   version_type=osf
11171   need_lib_prefix=no
11172   need_version=no
11173   soname_spec='${libname}${release}${shared_ext}$major'
11174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11175   shlibpath_var=LD_LIBRARY_PATH
11176   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11177   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11178   ;;
11179
11180 sco3.2v5*)
11181   version_type=osf
11182   soname_spec='${libname}${release}${shared_ext}$major'
11183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184   shlibpath_var=LD_LIBRARY_PATH
11185   ;;
11186
11187 solaris*)
11188   version_type=linux
11189   need_lib_prefix=no
11190   need_version=no
11191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192   soname_spec='${libname}${release}${shared_ext}$major'
11193   shlibpath_var=LD_LIBRARY_PATH
11194   shlibpath_overrides_runpath=yes
11195   hardcode_into_libs=yes
11196   # ldd complains unless libraries are executable
11197   postinstall_cmds='chmod +x $lib'
11198   ;;
11199
11200 sunos4*)
11201   version_type=sunos
11202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11203   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11204   shlibpath_var=LD_LIBRARY_PATH
11205   shlibpath_overrides_runpath=yes
11206   if test "$with_gnu_ld" = yes; then
11207     need_lib_prefix=no
11208   fi
11209   need_version=yes
11210   ;;
11211
11212 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11213   version_type=linux
11214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215   soname_spec='${libname}${release}${shared_ext}$major'
11216   shlibpath_var=LD_LIBRARY_PATH
11217   case $host_vendor in
11218     sni)
11219       shlibpath_overrides_runpath=no
11220       need_lib_prefix=no
11221       export_dynamic_flag_spec='${wl}-Blargedynsym'
11222       runpath_var=LD_RUN_PATH
11223       ;;
11224     siemens)
11225       need_lib_prefix=no
11226       ;;
11227     motorola)
11228       need_lib_prefix=no
11229       need_version=no
11230       shlibpath_overrides_runpath=no
11231       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11232       ;;
11233   esac
11234   ;;
11235
11236 sysv4*MP*)
11237   if test -d /usr/nec ;then
11238     version_type=linux
11239     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11240     soname_spec='$libname${shared_ext}.$major'
11241     shlibpath_var=LD_LIBRARY_PATH
11242   fi
11243   ;;
11244
11245 uts4*)
11246   version_type=linux
11247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11248   soname_spec='${libname}${release}${shared_ext}$major'
11249   shlibpath_var=LD_LIBRARY_PATH
11250   ;;
11251
11252 *)
11253   dynamic_linker=no
11254   ;;
11255 esac
11256 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11257 echo "${ECHO_T}$dynamic_linker" >&6
11258 test "$dynamic_linker" = no && can_build_shared=no
11259
11260 if test "x$enable_dlopen" != xyes; then
11261   enable_dlopen=unknown
11262   enable_dlopen_self=unknown
11263   enable_dlopen_self_static=unknown
11264 else
11265   lt_cv_dlopen=no
11266   lt_cv_dlopen_libs=
11267
11268   case $host_os in
11269   beos*)
11270     lt_cv_dlopen="load_add_on"
11271     lt_cv_dlopen_libs=
11272     lt_cv_dlopen_self=yes
11273     ;;
11274
11275   mingw* | pw32*)
11276     lt_cv_dlopen="LoadLibrary"
11277     lt_cv_dlopen_libs=
11278    ;;
11279
11280   cygwin*)
11281     lt_cv_dlopen="dlopen"
11282     lt_cv_dlopen_libs=
11283    ;;
11284
11285   darwin*)
11286   # if libdl is installed we need to link against it
11287     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11288 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11289 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11290   echo $ECHO_N "(cached) $ECHO_C" >&6
11291 else
11292   ac_check_lib_save_LIBS=$LIBS
11293 LIBS="-ldl  $LIBS"
11294 cat >conftest.$ac_ext <<_ACEOF
11295 #line $LINENO "configure"
11296 /* confdefs.h.  */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h.  */
11301
11302 /* Override any gcc2 internal prototype to avoid an error.  */
11303 #ifdef __cplusplus
11304 extern "C"
11305 #endif
11306 /* We use char because int might match the return type of a gcc2
11307    builtin and then its argument prototype would still apply.  */
11308 char dlopen ();
11309 int
11310 main ()
11311 {
11312 dlopen ();
11313   ;
11314   return 0;
11315 }
11316 _ACEOF
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319   (eval $ac_link) 2>&5
11320   ac_status=$?
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); } &&
11323          { ac_try='test -s conftest$ac_exeext'
11324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325   (eval $ac_try) 2>&5
11326   ac_status=$?
11327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328   (exit $ac_status); }; }; then
11329   ac_cv_lib_dl_dlopen=yes
11330 else
11331   echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11333
11334 ac_cv_lib_dl_dlopen=no
11335 fi
11336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11337 LIBS=$ac_check_lib_save_LIBS
11338 fi
11339 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11340 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11341 if test $ac_cv_lib_dl_dlopen = yes; then
11342   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11343 else
11344
11345     lt_cv_dlopen="dyld"
11346     lt_cv_dlopen_libs=
11347     lt_cv_dlopen_self=yes
11348
11349 fi
11350
11351    ;;
11352
11353   *)
11354     echo "$as_me:$LINENO: checking for shl_load" >&5
11355 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11356 if test "${ac_cv_func_shl_load+set}" = set; then
11357   echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359   cat >conftest.$ac_ext <<_ACEOF
11360 #line $LINENO "configure"
11361 /* confdefs.h.  */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h.  */
11366 /* System header to define __stub macros and hopefully few prototypes,
11367     which can conflict with char shl_load (); below.
11368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11369     <limits.h> exists even on freestanding compilers.  */
11370 #ifdef __STDC__
11371 # include <limits.h>
11372 #else
11373 # include <assert.h>
11374 #endif
11375 /* Override any gcc2 internal prototype to avoid an error.  */
11376 #ifdef __cplusplus
11377 extern "C"
11378 {
11379 #endif
11380 /* We use char because int might match the return type of a gcc2
11381    builtin and then its argument prototype would still apply.  */
11382 char shl_load ();
11383 /* The GNU C library defines this for functions which it implements
11384     to always fail with ENOSYS.  Some functions are actually named
11385     something starting with __ and the normal name is an alias.  */
11386 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11387 choke me
11388 #else
11389 char (*f) () = shl_load;
11390 #endif
11391 #ifdef __cplusplus
11392 }
11393 #endif
11394
11395 int
11396 main ()
11397 {
11398 return f != shl_load;
11399   ;
11400   return 0;
11401 }
11402 _ACEOF
11403 rm -f conftest.$ac_objext conftest$ac_exeext
11404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11405   (eval $ac_link) 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); } &&
11409          { ac_try='test -s conftest$ac_exeext'
11410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411   (eval $ac_try) 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }; }; then
11415   ac_cv_func_shl_load=yes
11416 else
11417   echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11419
11420 ac_cv_func_shl_load=no
11421 fi
11422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11423 fi
11424 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11425 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11426 if test $ac_cv_func_shl_load = yes; then
11427   lt_cv_dlopen="shl_load"
11428 else
11429   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11430 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11431 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11432   echo $ECHO_N "(cached) $ECHO_C" >&6
11433 else
11434   ac_check_lib_save_LIBS=$LIBS
11435 LIBS="-ldld  $LIBS"
11436 cat >conftest.$ac_ext <<_ACEOF
11437 #line $LINENO "configure"
11438 /* confdefs.h.  */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h.  */
11443
11444 /* Override any gcc2 internal prototype to avoid an error.  */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 /* We use char because int might match the return type of a gcc2
11449    builtin and then its argument prototype would still apply.  */
11450 char shl_load ();
11451 int
11452 main ()
11453 {
11454 shl_load ();
11455   ;
11456   return 0;
11457 }
11458 _ACEOF
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461   (eval $ac_link) 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); } &&
11465          { ac_try='test -s conftest$ac_exeext'
11466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467   (eval $ac_try) 2>&5
11468   ac_status=$?
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); }; }; then
11471   ac_cv_lib_dld_shl_load=yes
11472 else
11473   echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11475
11476 ac_cv_lib_dld_shl_load=no
11477 fi
11478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11479 LIBS=$ac_check_lib_save_LIBS
11480 fi
11481 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11482 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11483 if test $ac_cv_lib_dld_shl_load = yes; then
11484   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11485 else
11486   echo "$as_me:$LINENO: checking for dlopen" >&5
11487 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11488 if test "${ac_cv_func_dlopen+set}" = set; then
11489   echo $ECHO_N "(cached) $ECHO_C" >&6
11490 else
11491   cat >conftest.$ac_ext <<_ACEOF
11492 #line $LINENO "configure"
11493 /* confdefs.h.  */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h.  */
11498 /* System header to define __stub macros and hopefully few prototypes,
11499     which can conflict with char dlopen (); below.
11500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11501     <limits.h> exists even on freestanding compilers.  */
11502 #ifdef __STDC__
11503 # include <limits.h>
11504 #else
11505 # include <assert.h>
11506 #endif
11507 /* Override any gcc2 internal prototype to avoid an error.  */
11508 #ifdef __cplusplus
11509 extern "C"
11510 {
11511 #endif
11512 /* We use char because int might match the return type of a gcc2
11513    builtin and then its argument prototype would still apply.  */
11514 char dlopen ();
11515 /* The GNU C library defines this for functions which it implements
11516     to always fail with ENOSYS.  Some functions are actually named
11517     something starting with __ and the normal name is an alias.  */
11518 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11519 choke me
11520 #else
11521 char (*f) () = dlopen;
11522 #endif
11523 #ifdef __cplusplus
11524 }
11525 #endif
11526
11527 int
11528 main ()
11529 {
11530 return f != dlopen;
11531   ;
11532   return 0;
11533 }
11534 _ACEOF
11535 rm -f conftest.$ac_objext conftest$ac_exeext
11536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11537   (eval $ac_link) 2>&5
11538   ac_status=$?
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); } &&
11541          { ac_try='test -s conftest$ac_exeext'
11542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543   (eval $ac_try) 2>&5
11544   ac_status=$?
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); }; }; then
11547   ac_cv_func_dlopen=yes
11548 else
11549   echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11551
11552 ac_cv_func_dlopen=no
11553 fi
11554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11555 fi
11556 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11557 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11558 if test $ac_cv_func_dlopen = yes; then
11559   lt_cv_dlopen="dlopen"
11560 else
11561   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11562 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11563 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11564   echo $ECHO_N "(cached) $ECHO_C" >&6
11565 else
11566   ac_check_lib_save_LIBS=$LIBS
11567 LIBS="-ldl  $LIBS"
11568 cat >conftest.$ac_ext <<_ACEOF
11569 #line $LINENO "configure"
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575
11576 /* Override any gcc2 internal prototype to avoid an error.  */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 /* We use char because int might match the return type of a gcc2
11581    builtin and then its argument prototype would still apply.  */
11582 char dlopen ();
11583 int
11584 main ()
11585 {
11586 dlopen ();
11587   ;
11588   return 0;
11589 }
11590 _ACEOF
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593   (eval $ac_link) 2>&5
11594   ac_status=$?
11595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596   (exit $ac_status); } &&
11597          { ac_try='test -s conftest$ac_exeext'
11598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599   (eval $ac_try) 2>&5
11600   ac_status=$?
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); }; }; then
11603   ac_cv_lib_dl_dlopen=yes
11604 else
11605   echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11607
11608 ac_cv_lib_dl_dlopen=no
11609 fi
11610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11611 LIBS=$ac_check_lib_save_LIBS
11612 fi
11613 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11614 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11615 if test $ac_cv_lib_dl_dlopen = yes; then
11616   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11617 else
11618   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11619 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11620 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11621   echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623   ac_check_lib_save_LIBS=$LIBS
11624 LIBS="-lsvld  $LIBS"
11625 cat >conftest.$ac_ext <<_ACEOF
11626 #line $LINENO "configure"
11627 /* confdefs.h.  */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h.  */
11632
11633 /* Override any gcc2 internal prototype to avoid an error.  */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 /* We use char because int might match the return type of a gcc2
11638    builtin and then its argument prototype would still apply.  */
11639 char dlopen ();
11640 int
11641 main ()
11642 {
11643 dlopen ();
11644   ;
11645   return 0;
11646 }
11647 _ACEOF
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650   (eval $ac_link) 2>&5
11651   ac_status=$?
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); } &&
11654          { ac_try='test -s conftest$ac_exeext'
11655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656   (eval $ac_try) 2>&5
11657   ac_status=$?
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); }; }; then
11660   ac_cv_lib_svld_dlopen=yes
11661 else
11662   echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11664
11665 ac_cv_lib_svld_dlopen=no
11666 fi
11667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11668 LIBS=$ac_check_lib_save_LIBS
11669 fi
11670 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11671 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11672 if test $ac_cv_lib_svld_dlopen = yes; then
11673   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11674 else
11675   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11676 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11677 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11678   echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680   ac_check_lib_save_LIBS=$LIBS
11681 LIBS="-ldld  $LIBS"
11682 cat >conftest.$ac_ext <<_ACEOF
11683 #line $LINENO "configure"
11684 /* confdefs.h.  */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h.  */
11689
11690 /* Override any gcc2 internal prototype to avoid an error.  */
11691 #ifdef __cplusplus
11692 extern "C"
11693 #endif
11694 /* We use char because int might match the return type of a gcc2
11695    builtin and then its argument prototype would still apply.  */
11696 char dld_link ();
11697 int
11698 main ()
11699 {
11700 dld_link ();
11701   ;
11702   return 0;
11703 }
11704 _ACEOF
11705 rm -f conftest.$ac_objext conftest$ac_exeext
11706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11707   (eval $ac_link) 2>&5
11708   ac_status=$?
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); } &&
11711          { ac_try='test -s conftest$ac_exeext'
11712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713   (eval $ac_try) 2>&5
11714   ac_status=$?
11715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716   (exit $ac_status); }; }; then
11717   ac_cv_lib_dld_dld_link=yes
11718 else
11719   echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11721
11722 ac_cv_lib_dld_dld_link=no
11723 fi
11724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11725 LIBS=$ac_check_lib_save_LIBS
11726 fi
11727 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11728 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11729 if test $ac_cv_lib_dld_dld_link = yes; then
11730   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11731 fi
11732
11733
11734 fi
11735
11736
11737 fi
11738
11739
11740 fi
11741
11742
11743 fi
11744
11745
11746 fi
11747
11748     ;;
11749   esac
11750
11751   if test "x$lt_cv_dlopen" != xno; then
11752     enable_dlopen=yes
11753   else
11754     enable_dlopen=no
11755   fi
11756
11757   case $lt_cv_dlopen in
11758   dlopen)
11759     save_CPPFLAGS="$CPPFLAGS"
11760     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11761
11762     save_LDFLAGS="$LDFLAGS"
11763     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11764
11765     save_LIBS="$LIBS"
11766     LIBS="$lt_cv_dlopen_libs $LIBS"
11767
11768     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11769 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11770 if test "${lt_cv_dlopen_self+set}" = set; then
11771   echo $ECHO_N "(cached) $ECHO_C" >&6
11772 else
11773           if test "$cross_compiling" = yes; then :
11774   lt_cv_dlopen_self=cross
11775 else
11776   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11777   lt_status=$lt_dlunknown
11778   cat > conftest.$ac_ext <<EOF
11779 #line 11779 "configure"
11780 #include "confdefs.h"
11781
11782 #if HAVE_DLFCN_H
11783 #include <dlfcn.h>
11784 #endif
11785
11786 #include <stdio.h>
11787
11788 #ifdef RTLD_GLOBAL
11789 #  define LT_DLGLOBAL           RTLD_GLOBAL
11790 #else
11791 #  ifdef DL_GLOBAL
11792 #    define LT_DLGLOBAL         DL_GLOBAL
11793 #  else
11794 #    define LT_DLGLOBAL         0
11795 #  endif
11796 #endif
11797
11798 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11799    find out it does not work in some platform. */
11800 #ifndef LT_DLLAZY_OR_NOW
11801 #  ifdef RTLD_LAZY
11802 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11803 #  else
11804 #    ifdef DL_LAZY
11805 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11806 #    else
11807 #      ifdef RTLD_NOW
11808 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11809 #      else
11810 #        ifdef DL_NOW
11811 #          define LT_DLLAZY_OR_NOW      DL_NOW
11812 #        else
11813 #          define LT_DLLAZY_OR_NOW      0
11814 #        endif
11815 #      endif
11816 #    endif
11817 #  endif
11818 #endif
11819
11820 #ifdef __cplusplus
11821 extern "C" void exit (int);
11822 #endif
11823
11824 void fnord() { int i=42;}
11825 int main ()
11826 {
11827   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11828   int status = $lt_dlunknown;
11829
11830   if (self)
11831     {
11832       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11833       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11834       /* dlclose (self); */
11835     }
11836
11837     exit (status);
11838 }
11839 EOF
11840   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11841   (eval $ac_link) 2>&5
11842   ac_status=$?
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11845     (./conftest; exit; ) 2>/dev/null
11846     lt_status=$?
11847     case x$lt_status in
11848       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11849       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11850       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11851     esac
11852   else :
11853     # compilation failed
11854     lt_cv_dlopen_self=no
11855   fi
11856 fi
11857 rm -fr conftest*
11858
11859
11860 fi
11861 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11862 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11863
11864     if test "x$lt_cv_dlopen_self" = xyes; then
11865       LDFLAGS="$LDFLAGS $link_static_flag"
11866       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11867 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11868 if test "${lt_cv_dlopen_self_static+set}" = set; then
11869   echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871           if test "$cross_compiling" = yes; then :
11872   lt_cv_dlopen_self_static=cross
11873 else
11874   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11875   lt_status=$lt_dlunknown
11876   cat > conftest.$ac_ext <<EOF
11877 #line 11877 "configure"
11878 #include "confdefs.h"
11879
11880 #if HAVE_DLFCN_H
11881 #include <dlfcn.h>
11882 #endif
11883
11884 #include <stdio.h>
11885
11886 #ifdef RTLD_GLOBAL
11887 #  define LT_DLGLOBAL           RTLD_GLOBAL
11888 #else
11889 #  ifdef DL_GLOBAL
11890 #    define LT_DLGLOBAL         DL_GLOBAL
11891 #  else
11892 #    define LT_DLGLOBAL         0
11893 #  endif
11894 #endif
11895
11896 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11897    find out it does not work in some platform. */
11898 #ifndef LT_DLLAZY_OR_NOW
11899 #  ifdef RTLD_LAZY
11900 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11901 #  else
11902 #    ifdef DL_LAZY
11903 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11904 #    else
11905 #      ifdef RTLD_NOW
11906 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11907 #      else
11908 #        ifdef DL_NOW
11909 #          define LT_DLLAZY_OR_NOW      DL_NOW
11910 #        else
11911 #          define LT_DLLAZY_OR_NOW      0
11912 #        endif
11913 #      endif
11914 #    endif
11915 #  endif
11916 #endif
11917
11918 #ifdef __cplusplus
11919 extern "C" void exit (int);
11920 #endif
11921
11922 void fnord() { int i=42;}
11923 int main ()
11924 {
11925   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11926   int status = $lt_dlunknown;
11927
11928   if (self)
11929     {
11930       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11931       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11932       /* dlclose (self); */
11933     }
11934
11935     exit (status);
11936 }
11937 EOF
11938   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11939   (eval $ac_link) 2>&5
11940   ac_status=$?
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11943     (./conftest; exit; ) 2>/dev/null
11944     lt_status=$?
11945     case x$lt_status in
11946       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11947       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11948       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11949     esac
11950   else :
11951     # compilation failed
11952     lt_cv_dlopen_self_static=no
11953   fi
11954 fi
11955 rm -fr conftest*
11956
11957
11958 fi
11959 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11960 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11961     fi
11962
11963     CPPFLAGS="$save_CPPFLAGS"
11964     LDFLAGS="$save_LDFLAGS"
11965     LIBS="$save_LIBS"
11966     ;;
11967   esac
11968
11969   case $lt_cv_dlopen_self in
11970   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11971   *) enable_dlopen_self=unknown ;;
11972   esac
11973
11974   case $lt_cv_dlopen_self_static in
11975   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11976   *) enable_dlopen_self_static=unknown ;;
11977   esac
11978 fi
11979
11980
11981 # The else clause should only fire when bootstrapping the
11982 # libtool distribution, otherwise you forgot to ship ltmain.sh
11983 # with your package, and you will get complaints that there are
11984 # no rules to generate ltmain.sh.
11985 if test -f "$ltmain"; then
11986   # See if we are running on zsh, and set the options which allow our commands through
11987   # without removal of \ escapes.
11988   if test -n "${ZSH_VERSION+set}" ; then
11989     setopt NO_GLOB_SUBST
11990   fi
11991   # Now quote all the things that may contain metacharacters while being
11992   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11993   # variables and quote the copies for generation of the libtool script.
11994   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11995     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11996     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11997     deplibs_check_method reload_flag reload_cmds need_locks \
11998     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11999     lt_cv_sys_global_symbol_to_c_name_address \
12000     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12001     old_postinstall_cmds old_postuninstall_cmds \
12002     compiler_CXX \
12003     CC_CXX \
12004     LD_CXX \
12005     lt_prog_compiler_wl_CXX \
12006     lt_prog_compiler_pic_CXX \
12007     lt_prog_compiler_static_CXX \
12008     lt_prog_compiler_no_builtin_flag_CXX \
12009     export_dynamic_flag_spec_CXX \
12010     thread_safe_flag_spec_CXX \
12011     whole_archive_flag_spec_CXX \
12012     enable_shared_with_static_runtimes_CXX \
12013     old_archive_cmds_CXX \
12014     old_archive_from_new_cmds_CXX \
12015     predep_objects_CXX \
12016     postdep_objects_CXX \
12017     predeps_CXX \
12018     postdeps_CXX \
12019     compiler_lib_search_path_CXX \
12020     archive_cmds_CXX \
12021     archive_expsym_cmds_CXX \
12022     postinstall_cmds_CXX \
12023     postuninstall_cmds_CXX \
12024     old_archive_from_expsyms_cmds_CXX \
12025     allow_undefined_flag_CXX \
12026     no_undefined_flag_CXX \
12027     export_symbols_cmds_CXX \
12028     hardcode_libdir_flag_spec_CXX \
12029     hardcode_libdir_flag_spec_ld_CXX \
12030     hardcode_libdir_separator_CXX \
12031     hardcode_automatic_CXX \
12032     module_cmds_CXX \
12033     module_expsym_cmds_CXX \
12034     lt_cv_prog_compiler_c_o_CXX \
12035     exclude_expsyms_CXX \
12036     include_expsyms_CXX; do
12037
12038     case $var in
12039     old_archive_cmds_CXX | \
12040     old_archive_from_new_cmds_CXX | \
12041     archive_cmds_CXX | \
12042     archive_expsym_cmds_CXX | \
12043     module_cmds_CXX | \
12044     module_expsym_cmds_CXX | \
12045     old_archive_from_expsyms_cmds_CXX | \
12046     export_symbols_cmds_CXX | \
12047     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12048     postinstall_cmds | postuninstall_cmds | \
12049     old_postinstall_cmds | old_postuninstall_cmds | \
12050     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12051       # Double-quote double-evaled strings.
12052       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
12053       ;;
12054     *)
12055       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12056       ;;
12057     esac
12058   done
12059
12060   case $lt_echo in
12061   *'\$0 --fallback-echo"')
12062     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12063     ;;
12064   esac
12065
12066 cfgfile="$ofile"
12067
12068   cat <<__EOF__ >> "$cfgfile"
12069 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12070
12071 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12072
12073 # Set the command separator (default: ~)
12074 _S_=\${LIBTOOL_CMD_SEP-\~}
12075
12076 # Shell to use when invoking shell scripts.
12077 SHELL=$lt_SHELL
12078
12079 # Whether or not to build shared libraries.
12080 build_libtool_libs=$enable_shared
12081
12082 # Whether or not to build static libraries.
12083 build_old_libs=$enable_static
12084
12085 # Whether or not to add -lc for building shared libraries.
12086 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12087
12088 # Whether or not to disallow shared libs when runtime libs are static
12089 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12090
12091 # Whether or not to optimize for fast installation.
12092 fast_install=$enable_fast_install
12093
12094 # The host system.
12095 host_alias=$host_alias
12096 host=$host
12097
12098 # An echo program that does not interpret backslashes.
12099 echo=$lt_echo
12100
12101 # The archiver.
12102 AR=$lt_AR
12103 AR_FLAGS=$lt_AR_FLAGS
12104
12105 # A C compiler.
12106 LTCC=$lt_LTCC
12107
12108 # A language-specific compiler.
12109 CC=$lt_compiler_CXX
12110
12111 # Is the compiler the GNU C compiler?
12112 with_gcc=$GCC_CXX
12113
12114 # An ERE matcher.
12115 EGREP=$lt_EGREP
12116
12117 # The linker used to build libraries.
12118 LD=$lt_LD_CXX
12119
12120 # Whether we need hard or soft links.
12121 LN_S=$lt_LN_S
12122
12123 # A BSD-compatible nm program.
12124 NM=$lt_NM
12125
12126 # A symbol stripping program
12127 STRIP=$STRIP
12128
12129 # Used to examine libraries when file_magic_cmd begins "file"
12130 MAGIC_CMD=$MAGIC_CMD
12131
12132 # Used on cygwin: DLL creation program.
12133 DLLTOOL="$DLLTOOL"
12134
12135 # Used on cygwin: object dumper.
12136 OBJDUMP="$OBJDUMP"
12137
12138 # Used on cygwin: assembler.
12139 AS="$AS"
12140
12141 # The name of the directory that contains temporary libtool files.
12142 objdir=$objdir
12143
12144 # How to create reloadable object files.
12145 reload_flag=$lt_reload_flag
12146 reload_cmds=$lt_reload_cmds
12147
12148 # How to pass a linker flag through the compiler.
12149 wl=$lt_lt_prog_compiler_wl_CXX
12150
12151 # Object file suffix (normally "o").
12152 objext="$ac_objext"
12153
12154 # Old archive suffix (normally "a").
12155 libext="$libext"
12156
12157 # Shared library suffix (normally ".so").
12158 shrext='$shrext'
12159
12160 # Executable file suffix (normally "").
12161 exeext="$exeext"
12162
12163 # Additional compiler flags for building library objects.
12164 pic_flag=$lt_lt_prog_compiler_pic_CXX
12165 pic_mode=$pic_mode
12166
12167 # What is the maximum length of a command?
12168 max_cmd_len=$lt_cv_sys_max_cmd_len
12169
12170 # Does compiler simultaneously support -c and -o options?
12171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12172
12173 # Must we lock files when doing compilation ?
12174 need_locks=$lt_need_locks
12175
12176 # Do we need the lib prefix for modules?
12177 need_lib_prefix=$need_lib_prefix
12178
12179 # Do we need a version for libraries?
12180 need_version=$need_version
12181
12182 # Whether dlopen is supported.
12183 dlopen_support=$enable_dlopen
12184
12185 # Whether dlopen of programs is supported.
12186 dlopen_self=$enable_dlopen_self
12187
12188 # Whether dlopen of statically linked programs is supported.
12189 dlopen_self_static=$enable_dlopen_self_static
12190
12191 # Compiler flag to prevent dynamic linking.
12192 link_static_flag=$lt_lt_prog_compiler_static_CXX
12193
12194 # Compiler flag to turn off builtin functions.
12195 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12196
12197 # Compiler flag to allow reflexive dlopens.
12198 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12199
12200 # Compiler flag to generate shared objects directly from archives.
12201 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12202
12203 # Compiler flag to generate thread-safe objects.
12204 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12205
12206 # Library versioning type.
12207 version_type=$version_type
12208
12209 # Format of library name prefix.
12210 libname_spec=$lt_libname_spec
12211
12212 # List of archive names.  First name is the real one, the rest are links.
12213 # The last name is the one that the linker finds with -lNAME.
12214 library_names_spec=$lt_library_names_spec
12215
12216 # The coded name of the library, if different from the real name.
12217 soname_spec=$lt_soname_spec
12218
12219 # Commands used to build and install an old-style archive.
12220 RANLIB=$lt_RANLIB
12221 old_archive_cmds=$lt_old_archive_cmds_CXX
12222 old_postinstall_cmds=$lt_old_postinstall_cmds
12223 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12224
12225 # Create an old-style archive from a shared archive.
12226 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12227
12228 # Create a temporary old-style archive to link instead of a shared archive.
12229 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12230
12231 # Commands used to build and install a shared archive.
12232 archive_cmds=$lt_archive_cmds_CXX
12233 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12234 postinstall_cmds=$lt_postinstall_cmds
12235 postuninstall_cmds=$lt_postuninstall_cmds
12236
12237 # Commands used to build a loadable module (assumed same as above if empty)
12238 module_cmds=$lt_module_cmds_CXX
12239 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12240
12241 # Commands to strip libraries.
12242 old_striplib=$lt_old_striplib
12243 striplib=$lt_striplib
12244
12245 # Dependencies to place before the objects being linked to create a
12246 # shared library.
12247 predep_objects=$lt_predep_objects_CXX
12248
12249 # Dependencies to place after the objects being linked to create a
12250 # shared library.
12251 postdep_objects=$lt_postdep_objects_CXX
12252
12253 # Dependencies to place before the objects being linked to create a
12254 # shared library.
12255 predeps=$lt_predeps_CXX
12256
12257 # Dependencies to place after the objects being linked to create a
12258 # shared library.
12259 postdeps=$lt_postdeps_CXX
12260
12261 # The library search path used internally by the compiler when linking
12262 # a shared library.
12263 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12264
12265 # Method to check whether dependent libraries are shared objects.
12266 deplibs_check_method=$lt_deplibs_check_method
12267
12268 # Command to use when deplibs_check_method == file_magic.
12269 file_magic_cmd=$lt_file_magic_cmd
12270
12271 # Flag that allows shared libraries with undefined symbols to be built.
12272 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12273
12274 # Flag that forces no undefined symbols.
12275 no_undefined_flag=$lt_no_undefined_flag_CXX
12276
12277 # Commands used to finish a libtool library installation in a directory.
12278 finish_cmds=$lt_finish_cmds
12279
12280 # Same as above, but a single script fragment to be evaled but not shown.
12281 finish_eval=$lt_finish_eval
12282
12283 # Take the output of nm and produce a listing of raw symbols and C names.
12284 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12285
12286 # Transform the output of nm in a proper C declaration
12287 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12288
12289 # Transform the output of nm in a C name address pair
12290 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12291
12292 # This is the shared library runtime path variable.
12293 runpath_var=$runpath_var
12294
12295 # This is the shared library path variable.
12296 shlibpath_var=$shlibpath_var
12297
12298 # Is shlibpath searched before the hard-coded library search path?
12299 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12300
12301 # How to hardcode a shared library path into an executable.
12302 hardcode_action=$hardcode_action_CXX
12303
12304 # Whether we should hardcode library paths into libraries.
12305 hardcode_into_libs=$hardcode_into_libs
12306
12307 # Flag to hardcode \$libdir into a binary during linking.
12308 # This must work even if \$libdir does not exist.
12309 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12310
12311 # If ld is used when linking, flag to hardcode \$libdir into
12312 # a binary during linking. This must work even if \$libdir does
12313 # not exist.
12314 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12315
12316 # Whether we need a single -rpath flag with a separated argument.
12317 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12318
12319 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12320 # resulting binary.
12321 hardcode_direct=$hardcode_direct_CXX
12322
12323 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12324 # resulting binary.
12325 hardcode_minus_L=$hardcode_minus_L_CXX
12326
12327 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12328 # the resulting binary.
12329 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12330
12331 # Set to yes if building a shared library automatically hardcodes DIR into the library
12332 # and all subsequent libraries and executables linked against it.
12333 hardcode_automatic=$hardcode_automatic_CXX
12334
12335 # Variables whose values should be saved in libtool wrapper scripts and
12336 # restored at relink time.
12337 variables_saved_for_relink="$variables_saved_for_relink"
12338
12339 # Whether libtool must link a program against all its dependency libraries.
12340 link_all_deplibs=$link_all_deplibs_CXX
12341
12342 # Compile-time system search path for libraries
12343 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12344
12345 # Run-time system search path for libraries
12346 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12347
12348 # Fix the shell variable \$srcfile for the compiler.
12349 fix_srcfile_path="$fix_srcfile_path_CXX"
12350
12351 # Set to yes if exported symbols are required.
12352 always_export_symbols=$always_export_symbols_CXX
12353
12354 # The commands to list exported symbols.
12355 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12356
12357 # The commands to extract the exported symbol list from a shared archive.
12358 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12359
12360 # Symbols that should not be listed in the preloaded symbols.
12361 exclude_expsyms=$lt_exclude_expsyms_CXX
12362
12363 # Symbols that must always be exported.
12364 include_expsyms=$lt_include_expsyms_CXX
12365
12366 # ### END LIBTOOL TAG CONFIG: $tagname
12367
12368 __EOF__
12369
12370
12371 else
12372   # If there is no Makefile yet, we rely on a make rule to execute
12373   # `config.status --recheck' to rerun these tests and create the
12374   # libtool script then.
12375   test -f Makefile && make "$ltmain"
12376 fi
12377
12378
12379 ac_ext=c
12380 ac_cpp='$CPP $CPPFLAGS'
12381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12384
12385 CC=$lt_save_CC
12386 LDCXX=$LD
12387 LD=$lt_save_LD
12388 GCC=$lt_save_GCC
12389 with_gnu_ldcxx=$with_gnu_ld
12390 with_gnu_ld=$lt_save_with_gnu_ld
12391 lt_cv_path_LDCXX=$lt_cv_path_LD
12392 lt_cv_path_LD=$lt_save_path_LD
12393 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12394 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12395
12396         else
12397           tagname=""
12398         fi
12399         ;;
12400
12401       F77)
12402         if test -n "$F77" && test "X$F77" != "Xno"; then
12403
12404 ac_ext=f
12405 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12406 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12407 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12408
12409
12410 archive_cmds_need_lc_F77=no
12411 allow_undefined_flag_F77=
12412 always_export_symbols_F77=no
12413 archive_expsym_cmds_F77=
12414 export_dynamic_flag_spec_F77=
12415 hardcode_direct_F77=no
12416 hardcode_libdir_flag_spec_F77=
12417 hardcode_libdir_flag_spec_ld_F77=
12418 hardcode_libdir_separator_F77=
12419 hardcode_minus_L_F77=no
12420 hardcode_automatic_F77=no
12421 module_cmds_F77=
12422 module_expsym_cmds_F77=
12423 link_all_deplibs_F77=unknown
12424 old_archive_cmds_F77=$old_archive_cmds
12425 no_undefined_flag_F77=
12426 whole_archive_flag_spec_F77=
12427 enable_shared_with_static_runtimes_F77=no
12428
12429 # Source file extension for f77 test sources.
12430 ac_ext=f
12431
12432 # Object file extension for compiled f77 test sources.
12433 objext=o
12434 objext_F77=$objext
12435
12436 # Code to be used in simple compile tests
12437 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12438
12439 # Code to be used in simple link tests
12440 lt_simple_link_test_code="      program t\n      end\n"
12441
12442 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12443
12444 # If no C compiler was specified, use CC.
12445 LTCC=${LTCC-"$CC"}
12446
12447 # Allow CC to be a program name with arguments.
12448 compiler=$CC
12449
12450
12451 # Allow CC to be a program name with arguments.
12452 lt_save_CC="$CC"
12453 CC=${F77-"f77"}
12454 compiler=$CC
12455 compiler_F77=$CC
12456 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12457
12458 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12459 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12460 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12461 echo "${ECHO_T}$can_build_shared" >&6
12462
12463 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12464 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12465 test "$can_build_shared" = "no" && enable_shared=no
12466
12467 # On AIX, shared libraries and static libraries use the same namespace, and
12468 # are all built from PIC.
12469 case "$host_os" in
12470 aix3*)
12471   test "$enable_shared" = yes && enable_static=no
12472   if test -n "$RANLIB"; then
12473     archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
12474     postinstall_cmds='$RANLIB $lib'
12475   fi
12476   ;;
12477 aix4*)
12478   test "$enable_shared" = yes && enable_static=no
12479   ;;
12480 esac
12481 echo "$as_me:$LINENO: result: $enable_shared" >&5
12482 echo "${ECHO_T}$enable_shared" >&6
12483
12484 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12485 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12486 # Make sure either enable_shared or enable_static is yes.
12487 test "$enable_shared" = yes || enable_static=yes
12488 echo "$as_me:$LINENO: result: $enable_static" >&5
12489 echo "${ECHO_T}$enable_static" >&6
12490
12491 test "$ld_shlibs_F77" = no && can_build_shared=no
12492
12493 GCC_F77="$G77"
12494 LD_F77="$LD"
12495
12496 lt_prog_compiler_wl_F77=
12497 lt_prog_compiler_pic_F77=
12498 lt_prog_compiler_static_F77=
12499
12500 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12501 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12502
12503   if test "$GCC" = yes; then
12504     lt_prog_compiler_wl_F77='-Wl,'
12505     lt_prog_compiler_static_F77='-static'
12506
12507     case $host_os in
12508       aix*)
12509       # All AIX code is PIC.
12510       if test "$host_cpu" = ia64; then
12511         # AIX 5 now supports IA64 processor
12512         lt_prog_compiler_static_F77='-Bstatic'
12513       fi
12514       ;;
12515
12516     amigaos*)
12517       # FIXME: we need at least 68020 code to build shared libraries, but
12518       # adding the `-m68020' flag to GCC prevents building anything better,
12519       # like `-m68040'.
12520       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12521       ;;
12522
12523     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12524       # PIC is the default for these OSes.
12525       ;;
12526
12527     mingw* | pw32* | os2*)
12528       # This hack is so that the source file can tell whether it is being
12529       # built for inclusion in a dll (and should export symbols for example).
12530       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12531       ;;
12532
12533     darwin* | rhapsody*)
12534       # PIC is the default on this platform
12535       # Common symbols not allowed in MH_DYLIB files
12536       lt_prog_compiler_pic_F77='-fno-common'
12537       ;;
12538
12539     msdosdjgpp*)
12540       # Just because we use GCC doesn't mean we suddenly get shared libraries
12541       # on systems that don't support them.
12542       lt_prog_compiler_can_build_shared_F77=no
12543       enable_shared=no
12544       ;;
12545
12546     sysv4*MP*)
12547       if test -d /usr/nec; then
12548         lt_prog_compiler_pic_F77=-Kconform_pic
12549       fi
12550       ;;
12551
12552     hpux*)
12553       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12554       # not for PA HP-UX.
12555       case "$host_cpu" in
12556       hppa*64*|ia64*)
12557         # +Z the default
12558         ;;
12559       *)
12560         lt_prog_compiler_pic_F77='-fPIC'
12561         ;;
12562       esac
12563       ;;
12564
12565     *)
12566       lt_prog_compiler_pic_F77='-fPIC'
12567       ;;
12568     esac
12569   else
12570     # PORTME Check for flag to pass linker flags through the system compiler.
12571     case $host_os in
12572     aix*)
12573       lt_prog_compiler_wl_F77='-Wl,'
12574       if test "$host_cpu" = ia64; then
12575         # AIX 5 now supports IA64 processor
12576         lt_prog_compiler_static_F77='-Bstatic'
12577       else
12578         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12579       fi
12580       ;;
12581
12582     mingw* | pw32* | os2*)
12583       # This hack is so that the source file can tell whether it is being
12584       # built for inclusion in a dll (and should export symbols for example).
12585       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12586       ;;
12587
12588     hpux9* | hpux10* | hpux11*)
12589       lt_prog_compiler_wl_F77='-Wl,'
12590       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12591       # not for PA HP-UX.
12592       case "$host_cpu" in
12593       hppa*64*|ia64*)
12594         # +Z the default
12595         ;;
12596       *)
12597         lt_prog_compiler_pic_F77='+Z'
12598         ;;
12599       esac
12600       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12601       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12602       ;;
12603
12604     irix5* | irix6* | nonstopux*)
12605       lt_prog_compiler_wl_F77='-Wl,'
12606       # PIC (with -KPIC) is the default.
12607       lt_prog_compiler_static_F77='-non_shared'
12608       ;;
12609
12610     newsos6)
12611       lt_prog_compiler_pic_F77='-KPIC'
12612       lt_prog_compiler_static_F77='-Bstatic'
12613       ;;
12614
12615     linux*)
12616       case $CC in
12617       icc|ecc)
12618         lt_prog_compiler_wl_F77='-Wl,'
12619         lt_prog_compiler_pic_F77='-KPIC'
12620         lt_prog_compiler_static_F77='-static'
12621         ;;
12622       ccc)
12623         lt_prog_compiler_wl_F77='-Wl,'
12624         # All Alpha code is PIC.
12625         lt_prog_compiler_static_F77='-non_shared'
12626         ;;
12627       esac
12628       ;;
12629
12630     osf3* | osf4* | osf5*)
12631       lt_prog_compiler_wl_F77='-Wl,'
12632       # All OSF/1 code is PIC.
12633       lt_prog_compiler_static_F77='-non_shared'
12634       ;;
12635
12636     sco3.2v5*)
12637       lt_prog_compiler_pic_F77='-Kpic'
12638       lt_prog_compiler_static_F77='-dn'
12639       ;;
12640
12641     solaris*)
12642       lt_prog_compiler_wl_F77='-Wl,'
12643       lt_prog_compiler_pic_F77='-KPIC'
12644       lt_prog_compiler_static_F77='-Bstatic'
12645       ;;
12646
12647     sunos4*)
12648       lt_prog_compiler_wl_F77='-Qoption ld '
12649       lt_prog_compiler_pic_F77='-PIC'
12650       lt_prog_compiler_static_F77='-Bstatic'
12651       ;;
12652
12653     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12654       lt_prog_compiler_wl_F77='-Wl,'
12655       lt_prog_compiler_pic_F77='-KPIC'
12656       lt_prog_compiler_static_F77='-Bstatic'
12657       ;;
12658
12659     sysv4*MP*)
12660       if test -d /usr/nec ;then
12661         lt_prog_compiler_pic_F77='-Kconform_pic'
12662         lt_prog_compiler_static_F77='-Bstatic'
12663       fi
12664       ;;
12665
12666     uts4*)
12667       lt_prog_compiler_pic_F77='-pic'
12668       lt_prog_compiler_static_F77='-Bstatic'
12669       ;;
12670
12671     *)
12672       lt_prog_compiler_can_build_shared_F77=no
12673       ;;
12674     esac
12675   fi
12676
12677 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12678 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12679
12680 #
12681 # Check to make sure the PIC flag actually works.
12682 #
12683 if test -n "$lt_prog_compiler_pic_F77"; then
12684   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12685 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12686 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12687   echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689   lt_prog_compiler_pic_works_F77=no
12690   ac_outfile=conftest.$ac_objext
12691    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12692    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12693    # Insert the option either (1) after the last *FLAGS variable, or
12694    # (2) before a word containing "conftest.", or (3) at the end.
12695    # Note that $ac_compile itself does not contain backslashes and begins
12696    # with a dollar sign (not a hyphen), so the echo should work correctly.
12697    # The option is referenced via a variable to avoid confusing sed.
12698    lt_compile=`echo "$ac_compile" | $SED \
12699    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12701    -e 's:$: $lt_compiler_flag:'`
12702    (eval echo "\"\$as_me:12702: $lt_compile\"" >&5)
12703    (eval "$lt_compile" 2>conftest.err)
12704    ac_status=$?
12705    cat conftest.err >&5
12706    echo "$as_me:12706: \$? = $ac_status" >&5
12707    if (exit $ac_status) && test -s "$ac_outfile"; then
12708      # The compiler can only warn and ignore the option if not recognized
12709      # So say no if there are warnings
12710      if test ! -s conftest.err; then
12711        lt_prog_compiler_pic_works_F77=yes
12712      fi
12713    fi
12714    $rm conftest*
12715
12716 fi
12717 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12718 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12719
12720 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12721     case $lt_prog_compiler_pic_F77 in
12722      "" | " "*) ;;
12723      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12724      esac
12725 else
12726     lt_prog_compiler_pic_F77=
12727      lt_prog_compiler_can_build_shared_F77=no
12728 fi
12729
12730 fi
12731 case "$host_os" in
12732   # For platforms which do not support PIC, -DPIC is meaningless:
12733   *djgpp*)
12734     lt_prog_compiler_pic_F77=
12735     ;;
12736   *)
12737     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12738     ;;
12739 esac
12740
12741 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12742 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12743 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12744   echo $ECHO_N "(cached) $ECHO_C" >&6
12745 else
12746   lt_cv_prog_compiler_c_o_F77=no
12747    $rm -r conftest 2>/dev/null
12748    mkdir conftest
12749    cd conftest
12750    mkdir out
12751    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12752
12753    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12754    # that will create temporary files in the current directory regardless of
12755    # the output directory.  Thus, making CWD read-only will cause this test
12756    # to fail, enabling locking or at least warning the user not to do parallel
12757    # builds.
12758    chmod -w .
12759
12760    lt_compiler_flag="-o out/conftest2.$ac_objext"
12761    # Insert the option either (1) after the last *FLAGS variable, or
12762    # (2) before a word containing "conftest.", or (3) at the end.
12763    # Note that $ac_compile itself does not contain backslashes and begins
12764    # with a dollar sign (not a hyphen), so the echo should work correctly.
12765    lt_compile=`echo "$ac_compile" | $SED \
12766    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12767    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12768    -e 's:$: $lt_compiler_flag:'`
12769    (eval echo "\"\$as_me:12769: $lt_compile\"" >&5)
12770    (eval "$lt_compile" 2>out/conftest.err)
12771    ac_status=$?
12772    cat out/conftest.err >&5
12773    echo "$as_me:12773: \$? = $ac_status" >&5
12774    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12775    then
12776      # The compiler can only warn and ignore the option if not recognized
12777      # So say no if there are warnings
12778      if test ! -s out/conftest.err; then
12779        lt_cv_prog_compiler_c_o_F77=yes
12780      fi
12781    fi
12782    chmod u+w .
12783    $rm conftest* out/*
12784    rmdir out
12785    cd ..
12786    rmdir conftest
12787    $rm conftest*
12788
12789 fi
12790 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12791 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12792
12793
12794 hard_links="nottested"
12795 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12796   # do not overwrite the value of need_locks provided by the user
12797   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12798 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12799   hard_links=yes
12800   $rm conftest*
12801   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12802   touch conftest.a
12803   ln conftest.a conftest.b 2>&5 || hard_links=no
12804   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12805   echo "$as_me:$LINENO: result: $hard_links" >&5
12806 echo "${ECHO_T}$hard_links" >&6
12807   if test "$hard_links" = no; then
12808     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12809 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12810     need_locks=warn
12811   fi
12812 else
12813   need_locks=no
12814 fi
12815
12816 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12817 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12818
12819   runpath_var=
12820   allow_undefined_flag_F77=
12821   enable_shared_with_static_runtimes_F77=no
12822   archive_cmds_F77=
12823   archive_expsym_cmds_F77=
12824   old_archive_From_new_cmds_F77=
12825   old_archive_from_expsyms_cmds_F77=
12826   export_dynamic_flag_spec_F77=
12827   whole_archive_flag_spec_F77=
12828   thread_safe_flag_spec_F77=
12829   hardcode_libdir_flag_spec_F77=
12830   hardcode_libdir_flag_spec_ld_F77=
12831   hardcode_libdir_separator_F77=
12832   hardcode_direct_F77=no
12833   hardcode_minus_L_F77=no
12834   hardcode_shlibpath_var_F77=unsupported
12835   link_all_deplibs_F77=unknown
12836   hardcode_automatic_F77=no
12837   module_cmds_F77=
12838   module_expsym_cmds_F77=
12839   always_export_symbols_F77=no
12840   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12841   # include_expsyms should be a list of space-separated symbols to be *always*
12842   # included in the symbol list
12843   include_expsyms_F77=
12844   # exclude_expsyms can be an extended regexp of symbols to exclude
12845   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12846   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12847   # as well as any symbol that contains `d'.
12848   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12849   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12850   # platforms (ab)use it in PIC code, but their linkers get confused if
12851   # the symbol is explicitly referenced.  Since portable code cannot
12852   # rely on this symbol name, it's probably fine to never include it in
12853   # preloaded symbol tables.
12854   extract_expsyms_cmds=
12855
12856   case $host_os in
12857   cygwin* | mingw* | pw32*)
12858     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12859     # When not using gcc, we currently assume that we are using
12860     # Microsoft Visual C++.
12861     if test "$GCC" != yes; then
12862       with_gnu_ld=no
12863     fi
12864     ;;
12865   openbsd*)
12866     with_gnu_ld=no
12867     ;;
12868   esac
12869
12870   ld_shlibs_F77=yes
12871   if test "$with_gnu_ld" = yes; then
12872     # If archive_cmds runs LD, not CC, wlarc should be empty
12873     wlarc='${wl}'
12874
12875     # See if GNU ld supports shared libraries.
12876     case $host_os in
12877     aix3* | aix4* | aix5*)
12878       # On AIX/PPC, the GNU linker is very broken
12879       if test "$host_cpu" != ia64; then
12880         ld_shlibs_F77=no
12881         cat <<EOF 1>&2
12882
12883 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12884 *** to be unable to reliably create shared libraries on AIX.
12885 *** Therefore, libtool is disabling shared libraries support.  If you
12886 *** really care for shared libraries, you may want to modify your PATH
12887 *** so that a non-GNU linker is found, and then restart.
12888
12889 EOF
12890       fi
12891       ;;
12892
12893     amigaos*)
12894       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
12895       hardcode_libdir_flag_spec_F77='-L$libdir'
12896       hardcode_minus_L_F77=yes
12897
12898       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12899       # that the semantics of dynamic libraries on AmigaOS, at least up
12900       # to version 4, is to share data among multiple programs linked
12901       # with the same dynamic library.  Since this doesn't match the
12902       # behavior of shared libraries on other platforms, we can't use
12903       # them.
12904       ld_shlibs_F77=no
12905       ;;
12906
12907     beos*)
12908       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12909         allow_undefined_flag_F77=unsupported
12910         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12911         # support --undefined.  This deserves some investigation.  FIXME
12912         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12913       else
12914         ld_shlibs_F77=no
12915       fi
12916       ;;
12917
12918     cygwin* | mingw* | pw32*)
12919       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12920       # as there is no search path for DLLs.
12921       hardcode_libdir_flag_spec_F77='-L$libdir'
12922       allow_undefined_flag_F77=unsupported
12923       always_export_symbols_F77=no
12924       enable_shared_with_static_runtimes_F77=yes
12925       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12926
12927       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12928         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12929         # If the export-symbols file already is a .def file (1st line
12930         # is EXPORTS), use it as is; otherwise, prepend...
12931         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12932           cp $export_symbols $output_objdir/$soname.def;
12933         else
12934           echo EXPORTS > $output_objdir/$soname.def;
12935           cat $export_symbols >> $output_objdir/$soname.def;
12936         fi${_S_}
12937         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12938       else
12939         ld_shlibs=no
12940       fi
12941       ;;
12942
12943     netbsd*)
12944       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12945         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12946         wlarc=
12947       else
12948         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12949         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12950       fi
12951       ;;
12952
12953     solaris* | sysv5*)
12954       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12955         ld_shlibs_F77=no
12956         cat <<EOF 1>&2
12957
12958 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12959 *** create shared libraries on Solaris systems.  Therefore, libtool
12960 *** is disabling shared libraries support.  We urge you to upgrade GNU
12961 *** binutils to release 2.9.1 or newer.  Another option is to modify
12962 *** your PATH or compiler configuration so that the native linker is
12963 *** used, and then restart.
12964
12965 EOF
12966       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12967         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12968         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12969       else
12970         ld_shlibs_F77=no
12971       fi
12972       ;;
12973
12974     sunos4*)
12975       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12976       wlarc=
12977       hardcode_direct_F77=yes
12978       hardcode_shlibpath_var_F77=no
12979       ;;
12980
12981     *)
12982       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12983         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12984         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12985       else
12986         ld_shlibs_F77=no
12987       fi
12988       ;;
12989     esac
12990
12991     if test "$ld_shlibs_F77" = yes; then
12992       runpath_var=LD_RUN_PATH
12993       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12994       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12995       # ancient GNU ld didn't support --whole-archive et. al.
12996       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12997         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12998       else
12999         whole_archive_flag_spec_F77=
13000       fi
13001     fi
13002   else
13003     # PORTME fill in a description of your system's linker (not GNU ld)
13004     case $host_os in
13005     aix3*)
13006       allow_undefined_flag_F77=unsupported
13007       always_export_symbols_F77=yes
13008       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
13009       # Note: this linker hardcodes the directories in LIBPATH if there
13010       # are no directories specified by -L.
13011       hardcode_minus_L_F77=yes
13012       if test "$GCC" = yes && test -z "$link_static_flag"; then
13013         # Neither direct hardcoding nor static linking is supported with a
13014         # broken collect2.
13015         hardcode_direct_F77=unsupported
13016       fi
13017       ;;
13018
13019     aix4* | aix5*)
13020       if test "$host_cpu" = ia64; then
13021         # On IA64, the linker does run time linking by default, so we don't
13022         # have to do anything special.
13023         aix_use_runtimelinking=no
13024         exp_sym_flag='-Bexport'
13025         no_entry_flag=""
13026       else
13027         # If we're using GNU nm, then we don't want the "-C" option.
13028         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13029         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13030           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'
13031         else
13032           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'
13033         fi
13034         aix_use_runtimelinking=no
13035
13036         # Test if we are trying to use run time linking or normal
13037         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13038         # need to do runtime linking.
13039         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13040           for ld_flag in $LDFLAGS; do
13041           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13042             aix_use_runtimelinking=yes
13043             break
13044           fi
13045           done
13046         esac
13047
13048         exp_sym_flag='-bexport'
13049         no_entry_flag='-bnoentry'
13050       fi
13051
13052       # When large executables or shared objects are built, AIX ld can
13053       # have problems creating the table of contents.  If linking a library
13054       # or program results in "error TOC overflow" add -mminimal-toc to
13055       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13056       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13057
13058       archive_cmds_F77=''
13059       hardcode_direct_F77=yes
13060       hardcode_libdir_separator_F77=':'
13061       link_all_deplibs_F77=yes
13062
13063       if test "$GCC" = yes; then
13064         case $host_os in aix4.012|aix4.012.*)
13065         # We only want to do this on AIX 4.2 and lower, the check
13066         # below for broken collect2 doesn't work under 4.3+
13067           collect2name=`${CC} -print-prog-name=collect2`
13068           if test -f "$collect2name" && \
13069            strings "$collect2name" | grep resolve_lib_name >/dev/null
13070           then
13071           # We have reworked collect2
13072           hardcode_direct_F77=yes
13073           else
13074           # We have old collect2
13075           hardcode_direct_F77=unsupported
13076           # It fails to find uninstalled libraries when the uninstalled
13077           # path is not listed in the libpath.  Setting hardcode_minus_L
13078           # to unsupported forces relinking
13079           hardcode_minus_L_F77=yes
13080           hardcode_libdir_flag_spec_F77='-L$libdir'
13081           hardcode_libdir_separator_F77=
13082           fi
13083         esac
13084         shared_flag='-shared'
13085       else
13086         # not using gcc
13087         if test "$host_cpu" = ia64; then
13088         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13089         # chokes on -Wl,-G. The following line is correct:
13090           shared_flag='-G'
13091         else
13092         if test "$aix_use_runtimelinking" = yes; then
13093             shared_flag='${wl}-G'
13094           else
13095             shared_flag='${wl}-bM:SRE'
13096         fi
13097         fi
13098       fi
13099
13100       # It seems that -bexpall does not export symbols beginning with
13101       # underscore (_), so it is better to generate a list of symbols to export.
13102       always_export_symbols_F77=yes
13103       if test "$aix_use_runtimelinking" = yes; then
13104         # Warning - without using the other runtime loading flags (-brtl),
13105         # -berok will link without error, but may produce a broken library.
13106         allow_undefined_flag_F77='-berok'
13107        # Determine the default libpath from the value encoded in an empty executable.
13108        cat >conftest.$ac_ext <<_ACEOF
13109       program main
13110
13111       end
13112 _ACEOF
13113 rm -f conftest.$ac_objext conftest$ac_exeext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13115   (eval $ac_link) 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); } &&
13119          { ac_try='test -s conftest$ac_exeext'
13120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121   (eval $ac_try) 2>&5
13122   ac_status=$?
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); }; }; then
13125
13126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13127 }'`
13128 # Check for a 64-bit object if we didn't find anything.
13129 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; }
13130 }'`; fi
13131 else
13132   echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13134
13135 fi
13136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13138
13139        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13140         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"
13141        else
13142         if test "$host_cpu" = ia64; then
13143           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13144           allow_undefined_flag_F77="-z nodefs"
13145           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"
13146         else
13147          # Determine the default libpath from the value encoded in an empty executable.
13148          cat >conftest.$ac_ext <<_ACEOF
13149       program main
13150
13151       end
13152 _ACEOF
13153 rm -f conftest.$ac_objext conftest$ac_exeext
13154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13155   (eval $ac_link) 2>&5
13156   ac_status=$?
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); } &&
13159          { ac_try='test -s conftest$ac_exeext'
13160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161   (eval $ac_try) 2>&5
13162   ac_status=$?
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); }; }; then
13165
13166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13167 }'`
13168 # Check for a 64-bit object if we didn't find anything.
13169 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; }
13170 }'`; fi
13171 else
13172   echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13174
13175 fi
13176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13178
13179          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13180           # Warning - without using the other run time loading flags,
13181           # -berok will link without error, but may produce a broken library.
13182           no_undefined_flag_F77=' ${wl}-bernotok'
13183           allow_undefined_flag_F77=' ${wl}-berok'
13184           # -bexpall does not export symbols beginning with underscore (_)
13185           always_export_symbols_F77=yes
13186           # Exported symbols can be pulled into shared objects from archives
13187           whole_archive_flag_spec_F77=' '
13188           archive_cmds_need_lc_F77=yes
13189           # This is similar to how AIX traditionally builds it's shared libraries.
13190           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13191         fi
13192       fi
13193       ;;
13194
13195     amigaos*)
13196       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
13197       hardcode_libdir_flag_spec_F77='-L$libdir'
13198       hardcode_minus_L_F77=yes
13199       # see comment about different semantics on the GNU ld section
13200       ld_shlibs_F77=no
13201       ;;
13202
13203     bsdi4*)
13204       export_dynamic_flag_spec_F77=-rdynamic
13205       ;;
13206
13207     cygwin* | mingw* | pw32*)
13208       # When not using gcc, we currently assume that we are using
13209       # Microsoft Visual C++.
13210       # hardcode_libdir_flag_spec is actually meaningless, as there is
13211       # no search path for DLLs.
13212       hardcode_libdir_flag_spec_F77=' '
13213       allow_undefined_flag_F77=unsupported
13214       # Tell ltmain to make .lib files, not .a files.
13215       libext=lib
13216       # Tell ltmain to make .dll files, not .so files.
13217       shrext=".dll"
13218       # FIXME: Setting linknames here is a bad hack.
13219       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
13220       # The linker will automatically build a .lib file if we build a DLL.
13221       old_archive_From_new_cmds_F77='true'
13222       # FIXME: Should let the user specify the lib program.
13223       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13224       fix_srcfile_path='`cygpath -w "$srcfile"`'
13225       enable_shared_with_static_runtimes_F77=yes
13226       ;;
13227
13228     darwin* | rhapsody*)
13229     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13230       archive_cmds_need_lc_F77=no
13231       case "$host_os" in
13232       rhapsody* | darwin1.[012])
13233         allow_undefined_flag_F77='-undefined suppress'
13234         ;;
13235       darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
13236         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13237         ;;
13238       *) # Darwin 7.0 on
13239         case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
13240         10.[012])
13241           test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13242           ;;
13243         *) # 10.3 on
13244           if test -z ${LD_TWOLEVEL_NAMESPACE}; then
13245             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13246           else
13247             allow_undefined_flag_F77='-undefined dynamic_lookup'
13248           fi
13249           ;;
13250         esac
13251         ;;
13252       esac
13253       # FIXME: Relying on posixy $() will cause problems for
13254       #        cross-compilation, but unfortunately the echo tests do not
13255       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13256       #        `"' quotes if we put them in here... so don't!
13257         lt_int_apple_cc_single_mod=no
13258         output_verbose_link_cmd='echo'
13259         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13260           lt_int_apple_cc_single_mod=yes
13261         fi
13262         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13263           archive_cmds_F77='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13264         else
13265         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13266       fi
13267       module_cmds_F77='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13268       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13269         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13270           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13271         else
13272           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13273         fi
13274           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13275       hardcode_direct_F77=no
13276       hardcode_automatic_F77=yes
13277       hardcode_shlibpath_var_F77=unsupported
13278       whole_archive_flag_spec_F77='-all_load $convenience'
13279       link_all_deplibs_F77=yes
13280     fi
13281       ;;
13282
13283     dgux*)
13284       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13285       hardcode_libdir_flag_spec_F77='-L$libdir'
13286       hardcode_shlibpath_var_F77=no
13287       ;;
13288
13289     freebsd1*)
13290       ld_shlibs_F77=no
13291       ;;
13292
13293     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13294     # support.  Future versions do this automatically, but an explicit c++rt0.o
13295     # does not break anything, and helps significantly (at the cost of a little
13296     # extra space).
13297     freebsd2.2*)
13298       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13299       hardcode_libdir_flag_spec_F77='-R$libdir'
13300       hardcode_direct_F77=yes
13301       hardcode_shlibpath_var_F77=no
13302       ;;
13303
13304     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13305     freebsd2*)
13306       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13307       hardcode_direct_F77=yes
13308       hardcode_minus_L_F77=yes
13309       hardcode_shlibpath_var_F77=no
13310       ;;
13311
13312     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13313     freebsd*)
13314       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13315       hardcode_libdir_flag_spec_F77='-R$libdir'
13316       hardcode_direct_F77=yes
13317       hardcode_shlibpath_var_F77=no
13318       ;;
13319
13320     hpux9*)
13321       if test "$GCC" = yes; then
13322         archive_cmds_F77='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13323       else
13324         archive_cmds_F77='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13325       fi
13326       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13327       hardcode_libdir_separator_F77=:
13328       hardcode_direct_F77=yes
13329
13330       # hardcode_minus_L: Not really in the search PATH,
13331       # but as the default location of the library.
13332       hardcode_minus_L_F77=yes
13333       export_dynamic_flag_spec_F77='${wl}-E'
13334       ;;
13335
13336     hpux10* | hpux11*)
13337       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13338         case "$host_cpu" in
13339         hppa*64*|ia64*)
13340           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13341           ;;
13342         *)
13343           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13344           ;;
13345         esac
13346       else
13347         case "$host_cpu" in
13348         hppa*64*|ia64*)
13349           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13350           ;;
13351         *)
13352           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13353           ;;
13354         esac
13355       fi
13356       if test "$with_gnu_ld" = no; then
13357         case "$host_cpu" in
13358         hppa*64*)
13359           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13360           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13361           hardcode_libdir_separator_F77=:
13362           hardcode_direct_F77=no
13363           hardcode_shlibpath_var_F77=no
13364           ;;
13365         ia64*)
13366           hardcode_libdir_flag_spec_F77='-L$libdir'
13367           hardcode_direct_F77=no
13368           hardcode_shlibpath_var_F77=no
13369
13370           # hardcode_minus_L: Not really in the search PATH,
13371           # but as the default location of the library.
13372           hardcode_minus_L_F77=yes
13373           ;;
13374         *)
13375           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13376           hardcode_libdir_separator_F77=:
13377           hardcode_direct_F77=yes
13378           export_dynamic_flag_spec_F77='${wl}-E'
13379
13380           # hardcode_minus_L: Not really in the search PATH,
13381           # but as the default location of the library.
13382           hardcode_minus_L_F77=yes
13383           ;;
13384         esac
13385       fi
13386       ;;
13387
13388     irix5* | irix6* | nonstopux*)
13389       if test "$GCC" = yes; then
13390         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'
13391       else
13392         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'
13393         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13394       fi
13395       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13396       hardcode_libdir_separator_F77=:
13397       link_all_deplibs_F77=yes
13398       ;;
13399
13400     netbsd*)
13401       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13402         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13403       else
13404         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13405       fi
13406       hardcode_libdir_flag_spec_F77='-R$libdir'
13407       hardcode_direct_F77=yes
13408       hardcode_shlibpath_var_F77=no
13409       ;;
13410
13411     newsos6)
13412       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13413       hardcode_direct_F77=yes
13414       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13415       hardcode_libdir_separator_F77=:
13416       hardcode_shlibpath_var_F77=no
13417       ;;
13418
13419     openbsd*)
13420       hardcode_direct_F77=yes
13421       hardcode_shlibpath_var_F77=no
13422       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13423         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13424         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13425         export_dynamic_flag_spec_F77='${wl}-E'
13426       else
13427        case $host_os in
13428          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13429            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13430            hardcode_libdir_flag_spec_F77='-R$libdir'
13431            ;;
13432          *)
13433            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13434            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13435            ;;
13436        esac
13437       fi
13438       ;;
13439
13440     os2*)
13441       hardcode_libdir_flag_spec_F77='-L$libdir'
13442       hardcode_minus_L_F77=yes
13443       allow_undefined_flag_F77=unsupported
13444       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13445       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13446       ;;
13447
13448     osf3*)
13449       if test "$GCC" = yes; then
13450         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13451         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'
13452       else
13453         allow_undefined_flag_F77=' -expect_unresolved \*'
13454         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'
13455       fi
13456       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13457       hardcode_libdir_separator_F77=:
13458       ;;
13459
13460     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13461       if test "$GCC" = yes; then
13462         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13463         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'
13464         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13465       else
13466         allow_undefined_flag_F77=' -expect_unresolved \*'
13467         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'
13468         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${_S_}
13469         $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${_S_}$rm $lib.exp'
13470
13471         # Both c and cxx compiler support -rpath directly
13472         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13473       fi
13474       hardcode_libdir_separator_F77=:
13475       ;;
13476
13477     sco3.2v5*)
13478       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13479       hardcode_shlibpath_var_F77=no
13480       export_dynamic_flag_spec_F77='${wl}-Bexport'
13481       runpath_var=LD_RUN_PATH
13482       hardcode_runpath_var=yes
13483       ;;
13484
13485     solaris*)
13486       no_undefined_flag_F77=' -z text'
13487       if test "$GCC" = yes; then
13488         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13489         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
13490           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
13491       else
13492         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13493         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
13494         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
13495       fi
13496       hardcode_libdir_flag_spec_F77='-R$libdir'
13497       hardcode_shlibpath_var_F77=no
13498       case $host_os in
13499       solaris2.[0-5] | solaris2.[0-5].*) ;;
13500       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13501         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13502       esac
13503       link_all_deplibs_F77=yes
13504       ;;
13505
13506     sunos4*)
13507       if test "x$host_vendor" = xsequent; then
13508         # Use $CC to link under sequent, because it throws in some extra .o
13509         # files that make .init and .fini sections work.
13510         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13511       else
13512         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13513       fi
13514       hardcode_libdir_flag_spec_F77='-L$libdir'
13515       hardcode_direct_F77=yes
13516       hardcode_minus_L_F77=yes
13517       hardcode_shlibpath_var_F77=no
13518       ;;
13519
13520     sysv4)
13521       case $host_vendor in
13522         sni)
13523           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13524           hardcode_direct_F77=yes # is this really true???
13525         ;;
13526         siemens)
13527           ## LD is ld it makes a PLAMLIB
13528           ## CC just makes a GrossModule.
13529           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13530           reload_cmds_F77='$CC -r -o $output$reload_objs'
13531           hardcode_direct_F77=no
13532         ;;
13533         motorola)
13534           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13535           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13536         ;;
13537       esac
13538       runpath_var='LD_RUN_PATH'
13539       hardcode_shlibpath_var_F77=no
13540       ;;
13541
13542     sysv4.3*)
13543       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13544       hardcode_shlibpath_var_F77=no
13545       export_dynamic_flag_spec_F77='-Bexport'
13546       ;;
13547
13548     sysv4*MP*)
13549       if test -d /usr/nec; then
13550         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13551         hardcode_shlibpath_var_F77=no
13552         runpath_var=LD_RUN_PATH
13553         hardcode_runpath_var=yes
13554         ld_shlibs_F77=yes
13555       fi
13556       ;;
13557
13558     sysv4.2uw2*)
13559       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13560       hardcode_direct_F77=yes
13561       hardcode_minus_L_F77=no
13562       hardcode_shlibpath_var_F77=no
13563       hardcode_runpath_var=yes
13564       runpath_var=LD_RUN_PATH
13565       ;;
13566
13567    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13568       no_undefined_flag_F77='${wl}-z ${wl}text'
13569       if test "$GCC" = yes; then
13570         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13571       else
13572         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13573       fi
13574       runpath_var='LD_RUN_PATH'
13575       hardcode_shlibpath_var_F77=no
13576       ;;
13577
13578     sysv5*)
13579       no_undefined_flag_F77=' -z text'
13580       # $CC -shared without GNU ld will not create a library from C++
13581       # object files and a static libstdc++, better avoid it by now
13582       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13583       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
13584                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
13585       hardcode_libdir_flag_spec_F77=
13586       hardcode_shlibpath_var_F77=no
13587       runpath_var='LD_RUN_PATH'
13588       ;;
13589
13590     uts4*)
13591       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13592       hardcode_libdir_flag_spec_F77='-L$libdir'
13593       hardcode_shlibpath_var_F77=no
13594       ;;
13595
13596     *)
13597       ld_shlibs_F77=no
13598       ;;
13599     esac
13600   fi
13601
13602 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13603 echo "${ECHO_T}$ld_shlibs_F77" >&6
13604 test "$ld_shlibs_F77" = no && can_build_shared=no
13605
13606 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13607 if test "$GCC" = yes; then
13608   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13609 fi
13610
13611 #
13612 # Do we need to explicitly link libc?
13613 #
13614 case "x$archive_cmds_need_lc_F77" in
13615 x|xyes)
13616   # Assume -lc should be added
13617   archive_cmds_need_lc_F77=yes
13618
13619   if test "$enable_shared" = yes && test "$GCC" = yes; then
13620     case $archive_cmds_F77 in
13621     *"$_S_"*)
13622       # FIXME: we may have to deal with multi-command sequences.
13623       ;;
13624     '$CC '*)
13625       # Test whether the compiler implicitly links with -lc since on some
13626       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13627       # to ld, don't add -lc before -lgcc.
13628       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13629 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13630       $rm conftest*
13631       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13632
13633       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13634   (eval $ac_compile) 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); } 2>conftest.err; then
13638         soname=conftest
13639         lib=conftest
13640         libobjs=conftest.$ac_objext
13641         deplibs=
13642         wl=$lt_prog_compiler_wl_F77
13643         compiler_flags=-v
13644         linker_flags=-v
13645         verstring=
13646         output_objdir=.
13647         libname=conftest
13648         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13649         allow_undefined_flag_F77=
13650         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13651   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13652   ac_status=$?
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); }
13655         then
13656           archive_cmds_need_lc_F77=no
13657         else
13658           archive_cmds_need_lc_F77=yes
13659         fi
13660         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13661       else
13662         cat conftest.err 1>&5
13663       fi
13664       $rm conftest*
13665       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13666 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13667       ;;
13668     esac
13669   fi
13670   ;;
13671 esac
13672
13673 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13674 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13675 hardcode_action_F77=
13676 if test -n "$hardcode_libdir_flag_spec_F77" || \
13677    test -n "$runpath_var F77" || \
13678    test "X$hardcode_automatic_F77"="Xyes" ; then
13679
13680   # We can hardcode non-existant directories.
13681   if test "$hardcode_direct_F77" != no &&
13682      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13683      # have to relink, otherwise we might link with an installed library
13684      # when we should be linking with a yet-to-be-installed one
13685      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13686      test "$hardcode_minus_L_F77" != no; then
13687     # Linking always hardcodes the temporary library directory.
13688     hardcode_action_F77=relink
13689   else
13690     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13691     hardcode_action_F77=immediate
13692   fi
13693 else
13694   # We cannot hardcode anything, or else we can only hardcode existing
13695   # directories.
13696   hardcode_action_F77=unsupported
13697 fi
13698 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13699 echo "${ECHO_T}$hardcode_action_F77" >&6
13700
13701 if test "$hardcode_action_F77" = relink; then
13702   # Fast installation is not supported
13703   enable_fast_install=no
13704 elif test "$shlibpath_overrides_runpath" = yes ||
13705      test "$enable_shared" = no; then
13706   # Fast installation is not necessary
13707   enable_fast_install=needless
13708 fi
13709
13710 striplib=
13711 old_striplib=
13712 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13713 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13714 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13715   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13716   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13717   echo "$as_me:$LINENO: result: yes" >&5
13718 echo "${ECHO_T}yes" >&6
13719 else
13720 # FIXME - insert some real tests, host_os isn't really good enough
13721   case $host_os in
13722    NOT-darwin*)
13723        if test -n "$STRIP" ; then
13724          striplib="$STRIP -x"
13725          echo "$as_me:$LINENO: result: yes" >&5
13726 echo "${ECHO_T}yes" >&6
13727        else
13728   echo "$as_me:$LINENO: result: no" >&5
13729 echo "${ECHO_T}no" >&6
13730 fi
13731        ;;
13732    *)
13733   echo "$as_me:$LINENO: result: no" >&5
13734 echo "${ECHO_T}no" >&6
13735     ;;
13736   esac
13737 fi
13738
13739 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13740 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13741 library_names_spec=
13742 libname_spec='lib$name'
13743 soname_spec=
13744 shrext=".so"
13745 postinstall_cmds=
13746 postuninstall_cmds=
13747 finish_cmds=
13748 finish_eval=
13749 shlibpath_var=
13750 shlibpath_overrides_runpath=unknown
13751 version_type=none
13752 dynamic_linker="$host_os ld.so"
13753 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13754 if test "$GCC" = yes; then
13755   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13756   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13757     # if the path contains ";" then we assume it to be the separator
13758     # otherwise default to the standard path separator (i.e. ":") - it is
13759     # assumed that no part of a normal pathname contains ";" but that should
13760     # okay in the real world where ";" in dirpaths is itself problematic.
13761     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13762   else
13763     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13764   fi
13765 else
13766   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13767 fi
13768 need_lib_prefix=unknown
13769 hardcode_into_libs=no
13770
13771 # when you set need_version to no, make sure it does not cause -set_version
13772 # flags to be left without arguments
13773 need_version=unknown
13774
13775 case $host_os in
13776 aix3*)
13777   version_type=linux
13778   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13779   shlibpath_var=LIBPATH
13780
13781   # AIX 3 has no versioning support, so we append a major version to the name.
13782   soname_spec='${libname}${release}${shared_ext}$major'
13783   ;;
13784
13785 aix4* | aix5*)
13786   version_type=linux
13787   need_lib_prefix=no
13788   need_version=no
13789   hardcode_into_libs=yes
13790   if test "$host_cpu" = ia64; then
13791     # AIX 5 supports IA64
13792     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13793     shlibpath_var=LD_LIBRARY_PATH
13794   else
13795     # With GCC up to 2.95.x, collect2 would create an import file
13796     # for dependence libraries.  The import file would start with
13797     # the line `#! .'.  This would cause the generated library to
13798     # depend on `.', always an invalid library.  This was fixed in
13799     # development snapshots of GCC prior to 3.0.
13800     case $host_os in
13801       aix4 | aix4.[01] | aix4.[01].*)
13802       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13803            echo ' yes '
13804            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13805         :
13806       else
13807         can_build_shared=no
13808       fi
13809       ;;
13810     esac
13811     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13812     # soname into executable. Probably we can add versioning support to
13813     # collect2, so additional links can be useful in future.
13814     if test "$aix_use_runtimelinking" = yes; then
13815       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13816       # instead of lib<name>.a to let people know that these are not
13817       # typical AIX shared libraries.
13818       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13819     else
13820       # We preserve .a as extension for shared libraries through AIX4.2
13821       # and later when we are not doing run time linking.
13822       library_names_spec='${libname}${release}.a $libname.a'
13823       soname_spec='${libname}${release}${shared_ext}$major'
13824     fi
13825     shlibpath_var=LIBPATH
13826   fi
13827   ;;
13828
13829 amigaos*)
13830   library_names_spec='$libname.ixlibrary $libname.a'
13831   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13832   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'
13833   ;;
13834
13835 beos*)
13836   library_names_spec='${libname}${shared_ext}'
13837   dynamic_linker="$host_os ld.so"
13838   shlibpath_var=LIBRARY_PATH
13839   ;;
13840
13841 bsdi4*)
13842   version_type=linux
13843   need_version=no
13844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13845   soname_spec='${libname}${release}${shared_ext}$major'
13846   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13847   shlibpath_var=LD_LIBRARY_PATH
13848   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13849   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13850   # the default ld.so.conf also contains /usr/contrib/lib and
13851   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13852   # libtool to hard-code these into programs
13853   ;;
13854
13855 cygwin* | mingw* | pw32*)
13856   version_type=windows
13857   shrext=".dll"
13858   need_version=no
13859   need_lib_prefix=no
13860
13861   case $GCC,$host_os in
13862   yes,cygwin* | yes,mingw* | yes,pw32*)
13863     library_names_spec='$libname.dll.a'
13864     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13865     postinstall_cmds='base_file=`basename \${file}`${_S_}
13866       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
13867       dldir=$destdir/`dirname \$dlpath`${_S_}
13868       test -d \$dldir || mkdir -p \$dldir${_S_}
13869       $install_prog $dir/$dlname \$dldir/$dlname'
13870     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
13871       dlpath=$dir/\$dldll${_S_}
13872        $rm \$dlpath'
13873     shlibpath_overrides_runpath=yes
13874
13875     case $host_os in
13876     cygwin*)
13877       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13878       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13879       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13880       ;;
13881     mingw*)
13882       # MinGW DLLs use traditional 'lib' prefix
13883       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13884       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13885       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13886         # It is most probably a Windows format PATH printed by
13887         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13888         # path with ; separators, and with drive letters. We can handle the
13889         # drive letters (cygwin fileutils understands them), so leave them,
13890         # especially as we might pass files found there to a mingw objdump,
13891         # which wouldn't understand a cygwinified path. Ahh.
13892         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13893       else
13894         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13895       fi
13896       ;;
13897     pw32*)
13898       # pw32 DLLs use 'pw' prefix rather than 'lib'
13899       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13900       ;;
13901     esac
13902     ;;
13903
13904   *)
13905     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13906     ;;
13907   esac
13908   dynamic_linker='Win32 ld.exe'
13909   # FIXME: first we should search . and the directory the executable is in
13910   shlibpath_var=PATH
13911   ;;
13912
13913 darwin* | rhapsody*)
13914   dynamic_linker="$host_os dyld"
13915   version_type=darwin
13916   need_lib_prefix=no
13917   need_version=no
13918   # FIXME: Relying on posixy $() will cause problems for
13919   #        cross-compilation, but unfortunately the echo tests do not
13920   #        yet detect zsh echo's removal of \ escapes.
13921   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
13922   soname_spec='${libname}${release}${major}$shared_ext'
13923   shlibpath_overrides_runpath=yes
13924   shlibpath_var=DYLD_LIBRARY_PATH
13925   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13926   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13927   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13928   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"`
13929   fi
13930   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13931   ;;
13932
13933 dgux*)
13934   version_type=linux
13935   need_lib_prefix=no
13936   need_version=no
13937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13938   soname_spec='${libname}${release}${shared_ext}$major'
13939   shlibpath_var=LD_LIBRARY_PATH
13940   ;;
13941
13942 freebsd1*)
13943   dynamic_linker=no
13944   ;;
13945
13946 freebsd*)
13947   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13948   version_type=freebsd-$objformat
13949   case $version_type in
13950     freebsd-elf*)
13951       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13952       need_version=no
13953       need_lib_prefix=no
13954       ;;
13955     freebsd-*)
13956       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13957       need_version=yes
13958       ;;
13959   esac
13960   shlibpath_var=LD_LIBRARY_PATH
13961   case $host_os in
13962   freebsd2*)
13963     shlibpath_overrides_runpath=yes
13964     ;;
13965   freebsd3.01* | freebsdelf3.01*)
13966     shlibpath_overrides_runpath=yes
13967     hardcode_into_libs=yes
13968     ;;
13969   *) # from 3.2 on
13970     shlibpath_overrides_runpath=no
13971     hardcode_into_libs=yes
13972     ;;
13973   esac
13974   ;;
13975
13976 gnu*)
13977   version_type=linux
13978   need_lib_prefix=no
13979   need_version=no
13980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13981   soname_spec='${libname}${release}${shared_ext}$major'
13982   shlibpath_var=LD_LIBRARY_PATH
13983   hardcode_into_libs=yes
13984   ;;
13985
13986 hpux9* | hpux10* | hpux11*)
13987   # Give a soname corresponding to the major version so that dld.sl refuses to
13988   # link against other versions.
13989   version_type=sunos
13990   need_lib_prefix=no
13991   need_version=no
13992   case "$host_cpu" in
13993   ia64*)
13994     shrext='.so'
13995     hardcode_into_libs=yes
13996     dynamic_linker="$host_os dld.so"
13997     shlibpath_var=LD_LIBRARY_PATH
13998     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13999     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14000     soname_spec='${libname}${release}${shared_ext}$major'
14001     if test "X$HPUX_IA64_MODE" = X32; then
14002       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14003     else
14004       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14005     fi
14006     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14007     ;;
14008    hppa*64*)
14009      shrext='.sl'
14010      hardcode_into_libs=yes
14011      dynamic_linker="$host_os dld.sl"
14012      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14013      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14014      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14015      soname_spec='${libname}${release}${shared_ext}$major'
14016      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14017      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14018      ;;
14019    *)
14020     shrext='.sl'
14021     dynamic_linker="$host_os dld.sl"
14022     shlibpath_var=SHLIB_PATH
14023     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025     soname_spec='${libname}${release}${shared_ext}$major'
14026     ;;
14027   esac
14028   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14029   postinstall_cmds='chmod 555 $lib'
14030   ;;
14031
14032 irix5* | irix6* | nonstopux*)
14033   case $host_os in
14034     nonstopux*) version_type=nonstopux ;;
14035     *)
14036         if test "$lt_cv_prog_gnu_ld" = yes; then
14037                 version_type=linux
14038         else
14039                 version_type=irix
14040         fi ;;
14041   esac
14042   need_lib_prefix=no
14043   need_version=no
14044   soname_spec='${libname}${release}${shared_ext}$major'
14045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14046   case $host_os in
14047   irix5* | nonstopux*)
14048     libsuff= shlibsuff=
14049     ;;
14050   *)
14051     case $LD in # libtool.m4 will add one of these switches to LD
14052     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14053       libsuff= shlibsuff= libmagic=32-bit;;
14054     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14055       libsuff=32 shlibsuff=N32 libmagic=N32;;
14056     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14057       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14058     *) libsuff= shlibsuff= libmagic=never-match;;
14059     esac
14060     ;;
14061   esac
14062   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14063   shlibpath_overrides_runpath=no
14064   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14065   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14066   hardcode_into_libs=yes
14067   ;;
14068
14069 # No shared lib support for Linux oldld, aout, or coff.
14070 linux*oldld* | linux*aout* | linux*coff*)
14071   dynamic_linker=no
14072   ;;
14073
14074 # This must be Linux ELF.
14075 linux*)
14076   version_type=linux
14077   need_lib_prefix=no
14078   need_version=no
14079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080   soname_spec='${libname}${release}${shared_ext}$major'
14081   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14082   shlibpath_var=LD_LIBRARY_PATH
14083   shlibpath_overrides_runpath=no
14084   # This implies no fast_install, which is unacceptable.
14085   # Some rework will be needed to allow for fast_install
14086   # before this can be enabled.
14087   hardcode_into_libs=yes
14088
14089   # We used to test for /lib/ld.so.1 and disable shared libraries on
14090   # powerpc, because MkLinux only supported shared libraries with the
14091   # GNU dynamic linker.  Since this was broken with cross compilers,
14092   # most powerpc-linux boxes support dynamic linking these days and
14093   # people can always --disable-shared, the test was removed, and we
14094   # assume the GNU/Linux dynamic linker is in use.
14095   dynamic_linker='GNU/Linux ld.so'
14096   ;;
14097
14098 netbsd*)
14099   version_type=sunos
14100   need_lib_prefix=no
14101   need_version=no
14102   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14104     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14105     dynamic_linker='NetBSD (a.out) ld.so'
14106   else
14107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14108     soname_spec='${libname}${release}${shared_ext}$major'
14109     dynamic_linker='NetBSD ld.elf_so'
14110   fi
14111   shlibpath_var=LD_LIBRARY_PATH
14112   shlibpath_overrides_runpath=yes
14113   hardcode_into_libs=yes
14114   ;;
14115
14116 newsos6)
14117   version_type=linux
14118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119   shlibpath_var=LD_LIBRARY_PATH
14120   shlibpath_overrides_runpath=yes
14121   ;;
14122
14123 nto-qnx)
14124   version_type=linux
14125   need_lib_prefix=no
14126   need_version=no
14127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14128   soname_spec='${libname}${release}${shared_ext}$major'
14129   shlibpath_var=LD_LIBRARY_PATH
14130   shlibpath_overrides_runpath=yes
14131   ;;
14132
14133 openbsd*)
14134   version_type=sunos
14135   need_lib_prefix=no
14136   need_version=no
14137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14138   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14139   shlibpath_var=LD_LIBRARY_PATH
14140   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14141     case $host_os in
14142       openbsd2.[89] | openbsd2.[89].*)
14143         shlibpath_overrides_runpath=no
14144         ;;
14145       *)
14146         shlibpath_overrides_runpath=yes
14147         ;;
14148       esac
14149   else
14150     shlibpath_overrides_runpath=yes
14151   fi
14152   ;;
14153
14154 os2*)
14155   libname_spec='$name'
14156   shrext=".dll"
14157   need_lib_prefix=no
14158   library_names_spec='$libname${shared_ext} $libname.a'
14159   dynamic_linker='OS/2 ld.exe'
14160   shlibpath_var=LIBPATH
14161   ;;
14162
14163 osf3* | osf4* | osf5*)
14164   version_type=osf
14165   need_lib_prefix=no
14166   need_version=no
14167   soname_spec='${libname}${release}${shared_ext}$major'
14168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169   shlibpath_var=LD_LIBRARY_PATH
14170   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14171   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14172   ;;
14173
14174 sco3.2v5*)
14175   version_type=osf
14176   soname_spec='${libname}${release}${shared_ext}$major'
14177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14178   shlibpath_var=LD_LIBRARY_PATH
14179   ;;
14180
14181 solaris*)
14182   version_type=linux
14183   need_lib_prefix=no
14184   need_version=no
14185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186   soname_spec='${libname}${release}${shared_ext}$major'
14187   shlibpath_var=LD_LIBRARY_PATH
14188   shlibpath_overrides_runpath=yes
14189   hardcode_into_libs=yes
14190   # ldd complains unless libraries are executable
14191   postinstall_cmds='chmod +x $lib'
14192   ;;
14193
14194 sunos4*)
14195   version_type=sunos
14196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14197   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14198   shlibpath_var=LD_LIBRARY_PATH
14199   shlibpath_overrides_runpath=yes
14200   if test "$with_gnu_ld" = yes; then
14201     need_lib_prefix=no
14202   fi
14203   need_version=yes
14204   ;;
14205
14206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14207   version_type=linux
14208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14209   soname_spec='${libname}${release}${shared_ext}$major'
14210   shlibpath_var=LD_LIBRARY_PATH
14211   case $host_vendor in
14212     sni)
14213       shlibpath_overrides_runpath=no
14214       need_lib_prefix=no
14215       export_dynamic_flag_spec='${wl}-Blargedynsym'
14216       runpath_var=LD_RUN_PATH
14217       ;;
14218     siemens)
14219       need_lib_prefix=no
14220       ;;
14221     motorola)
14222       need_lib_prefix=no
14223       need_version=no
14224       shlibpath_overrides_runpath=no
14225       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14226       ;;
14227   esac
14228   ;;
14229
14230 sysv4*MP*)
14231   if test -d /usr/nec ;then
14232     version_type=linux
14233     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14234     soname_spec='$libname${shared_ext}.$major'
14235     shlibpath_var=LD_LIBRARY_PATH
14236   fi
14237   ;;
14238
14239 uts4*)
14240   version_type=linux
14241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14242   soname_spec='${libname}${release}${shared_ext}$major'
14243   shlibpath_var=LD_LIBRARY_PATH
14244   ;;
14245
14246 *)
14247   dynamic_linker=no
14248   ;;
14249 esac
14250 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14251 echo "${ECHO_T}$dynamic_linker" >&6
14252 test "$dynamic_linker" = no && can_build_shared=no
14253
14254
14255 # The else clause should only fire when bootstrapping the
14256 # libtool distribution, otherwise you forgot to ship ltmain.sh
14257 # with your package, and you will get complaints that there are
14258 # no rules to generate ltmain.sh.
14259 if test -f "$ltmain"; then
14260   # See if we are running on zsh, and set the options which allow our commands through
14261   # without removal of \ escapes.
14262   if test -n "${ZSH_VERSION+set}" ; then
14263     setopt NO_GLOB_SUBST
14264   fi
14265   # Now quote all the things that may contain metacharacters while being
14266   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14267   # variables and quote the copies for generation of the libtool script.
14268   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14269     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14270     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14271     deplibs_check_method reload_flag reload_cmds need_locks \
14272     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14273     lt_cv_sys_global_symbol_to_c_name_address \
14274     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14275     old_postinstall_cmds old_postuninstall_cmds \
14276     compiler_F77 \
14277     CC_F77 \
14278     LD_F77 \
14279     lt_prog_compiler_wl_F77 \
14280     lt_prog_compiler_pic_F77 \
14281     lt_prog_compiler_static_F77 \
14282     lt_prog_compiler_no_builtin_flag_F77 \
14283     export_dynamic_flag_spec_F77 \
14284     thread_safe_flag_spec_F77 \
14285     whole_archive_flag_spec_F77 \
14286     enable_shared_with_static_runtimes_F77 \
14287     old_archive_cmds_F77 \
14288     old_archive_from_new_cmds_F77 \
14289     predep_objects_F77 \
14290     postdep_objects_F77 \
14291     predeps_F77 \
14292     postdeps_F77 \
14293     compiler_lib_search_path_F77 \
14294     archive_cmds_F77 \
14295     archive_expsym_cmds_F77 \
14296     postinstall_cmds_F77 \
14297     postuninstall_cmds_F77 \
14298     old_archive_from_expsyms_cmds_F77 \
14299     allow_undefined_flag_F77 \
14300     no_undefined_flag_F77 \
14301     export_symbols_cmds_F77 \
14302     hardcode_libdir_flag_spec_F77 \
14303     hardcode_libdir_flag_spec_ld_F77 \
14304     hardcode_libdir_separator_F77 \
14305     hardcode_automatic_F77 \
14306     module_cmds_F77 \
14307     module_expsym_cmds_F77 \
14308     lt_cv_prog_compiler_c_o_F77 \
14309     exclude_expsyms_F77 \
14310     include_expsyms_F77; do
14311
14312     case $var in
14313     old_archive_cmds_F77 | \
14314     old_archive_from_new_cmds_F77 | \
14315     archive_cmds_F77 | \
14316     archive_expsym_cmds_F77 | \
14317     module_cmds_F77 | \
14318     module_expsym_cmds_F77 | \
14319     old_archive_from_expsyms_cmds_F77 | \
14320     export_symbols_cmds_F77 | \
14321     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14322     postinstall_cmds | postuninstall_cmds | \
14323     old_postinstall_cmds | old_postuninstall_cmds | \
14324     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14325       # Double-quote double-evaled strings.
14326       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
14327       ;;
14328     *)
14329       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14330       ;;
14331     esac
14332   done
14333
14334   case $lt_echo in
14335   *'\$0 --fallback-echo"')
14336     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14337     ;;
14338   esac
14339
14340 cfgfile="$ofile"
14341
14342   cat <<__EOF__ >> "$cfgfile"
14343 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14344
14345 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14346
14347 # Set the command separator (default: ~)
14348 _S_=\${LIBTOOL_CMD_SEP-\~}
14349
14350 # Shell to use when invoking shell scripts.
14351 SHELL=$lt_SHELL
14352
14353 # Whether or not to build shared libraries.
14354 build_libtool_libs=$enable_shared
14355
14356 # Whether or not to build static libraries.
14357 build_old_libs=$enable_static
14358
14359 # Whether or not to add -lc for building shared libraries.
14360 build_libtool_need_lc=$archive_cmds_need_lc_F77
14361
14362 # Whether or not to disallow shared libs when runtime libs are static
14363 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14364
14365 # Whether or not to optimize for fast installation.
14366 fast_install=$enable_fast_install
14367
14368 # The host system.
14369 host_alias=$host_alias
14370 host=$host
14371
14372 # An echo program that does not interpret backslashes.
14373 echo=$lt_echo
14374
14375 # The archiver.
14376 AR=$lt_AR
14377 AR_FLAGS=$lt_AR_FLAGS
14378
14379 # A C compiler.
14380 LTCC=$lt_LTCC
14381
14382 # A language-specific compiler.
14383 CC=$lt_compiler_F77
14384
14385 # Is the compiler the GNU C compiler?
14386 with_gcc=$GCC_F77
14387
14388 # An ERE matcher.
14389 EGREP=$lt_EGREP
14390
14391 # The linker used to build libraries.
14392 LD=$lt_LD_F77
14393
14394 # Whether we need hard or soft links.
14395 LN_S=$lt_LN_S
14396
14397 # A BSD-compatible nm program.
14398 NM=$lt_NM
14399
14400 # A symbol stripping program
14401 STRIP=$STRIP
14402
14403 # Used to examine libraries when file_magic_cmd begins "file"
14404 MAGIC_CMD=$MAGIC_CMD
14405
14406 # Used on cygwin: DLL creation program.
14407 DLLTOOL="$DLLTOOL"
14408
14409 # Used on cygwin: object dumper.
14410 OBJDUMP="$OBJDUMP"
14411
14412 # Used on cygwin: assembler.
14413 AS="$AS"
14414
14415 # The name of the directory that contains temporary libtool files.
14416 objdir=$objdir
14417
14418 # How to create reloadable object files.
14419 reload_flag=$lt_reload_flag
14420 reload_cmds=$lt_reload_cmds
14421
14422 # How to pass a linker flag through the compiler.
14423 wl=$lt_lt_prog_compiler_wl_F77
14424
14425 # Object file suffix (normally "o").
14426 objext="$ac_objext"
14427
14428 # Old archive suffix (normally "a").
14429 libext="$libext"
14430
14431 # Shared library suffix (normally ".so").
14432 shrext='$shrext'
14433
14434 # Executable file suffix (normally "").
14435 exeext="$exeext"
14436
14437 # Additional compiler flags for building library objects.
14438 pic_flag=$lt_lt_prog_compiler_pic_F77
14439 pic_mode=$pic_mode
14440
14441 # What is the maximum length of a command?
14442 max_cmd_len=$lt_cv_sys_max_cmd_len
14443
14444 # Does compiler simultaneously support -c and -o options?
14445 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14446
14447 # Must we lock files when doing compilation ?
14448 need_locks=$lt_need_locks
14449
14450 # Do we need the lib prefix for modules?
14451 need_lib_prefix=$need_lib_prefix
14452
14453 # Do we need a version for libraries?
14454 need_version=$need_version
14455
14456 # Whether dlopen is supported.
14457 dlopen_support=$enable_dlopen
14458
14459 # Whether dlopen of programs is supported.
14460 dlopen_self=$enable_dlopen_self
14461
14462 # Whether dlopen of statically linked programs is supported.
14463 dlopen_self_static=$enable_dlopen_self_static
14464
14465 # Compiler flag to prevent dynamic linking.
14466 link_static_flag=$lt_lt_prog_compiler_static_F77
14467
14468 # Compiler flag to turn off builtin functions.
14469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14470
14471 # Compiler flag to allow reflexive dlopens.
14472 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14473
14474 # Compiler flag to generate shared objects directly from archives.
14475 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14476
14477 # Compiler flag to generate thread-safe objects.
14478 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14479
14480 # Library versioning type.
14481 version_type=$version_type
14482
14483 # Format of library name prefix.
14484 libname_spec=$lt_libname_spec
14485
14486 # List of archive names.  First name is the real one, the rest are links.
14487 # The last name is the one that the linker finds with -lNAME.
14488 library_names_spec=$lt_library_names_spec
14489
14490 # The coded name of the library, if different from the real name.
14491 soname_spec=$lt_soname_spec
14492
14493 # Commands used to build and install an old-style archive.
14494 RANLIB=$lt_RANLIB
14495 old_archive_cmds=$lt_old_archive_cmds_F77
14496 old_postinstall_cmds=$lt_old_postinstall_cmds
14497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14498
14499 # Create an old-style archive from a shared archive.
14500 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14501
14502 # Create a temporary old-style archive to link instead of a shared archive.
14503 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14504
14505 # Commands used to build and install a shared archive.
14506 archive_cmds=$lt_archive_cmds_F77
14507 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14508 postinstall_cmds=$lt_postinstall_cmds
14509 postuninstall_cmds=$lt_postuninstall_cmds
14510
14511 # Commands used to build a loadable module (assumed same as above if empty)
14512 module_cmds=$lt_module_cmds_F77
14513 module_expsym_cmds=$lt_module_expsym_cmds_F77
14514
14515 # Commands to strip libraries.
14516 old_striplib=$lt_old_striplib
14517 striplib=$lt_striplib
14518
14519 # Dependencies to place before the objects being linked to create a
14520 # shared library.
14521 predep_objects=$lt_predep_objects_F77
14522
14523 # Dependencies to place after the objects being linked to create a
14524 # shared library.
14525 postdep_objects=$lt_postdep_objects_F77
14526
14527 # Dependencies to place before the objects being linked to create a
14528 # shared library.
14529 predeps=$lt_predeps_F77
14530
14531 # Dependencies to place after the objects being linked to create a
14532 # shared library.
14533 postdeps=$lt_postdeps_F77
14534
14535 # The library search path used internally by the compiler when linking
14536 # a shared library.
14537 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14538
14539 # Method to check whether dependent libraries are shared objects.
14540 deplibs_check_method=$lt_deplibs_check_method
14541
14542 # Command to use when deplibs_check_method == file_magic.
14543 file_magic_cmd=$lt_file_magic_cmd
14544
14545 # Flag that allows shared libraries with undefined symbols to be built.
14546 allow_undefined_flag=$lt_allow_undefined_flag_F77
14547
14548 # Flag that forces no undefined symbols.
14549 no_undefined_flag=$lt_no_undefined_flag_F77
14550
14551 # Commands used to finish a libtool library installation in a directory.
14552 finish_cmds=$lt_finish_cmds
14553
14554 # Same as above, but a single script fragment to be evaled but not shown.
14555 finish_eval=$lt_finish_eval
14556
14557 # Take the output of nm and produce a listing of raw symbols and C names.
14558 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14559
14560 # Transform the output of nm in a proper C declaration
14561 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14562
14563 # Transform the output of nm in a C name address pair
14564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14565
14566 # This is the shared library runtime path variable.
14567 runpath_var=$runpath_var
14568
14569 # This is the shared library path variable.
14570 shlibpath_var=$shlibpath_var
14571
14572 # Is shlibpath searched before the hard-coded library search path?
14573 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14574
14575 # How to hardcode a shared library path into an executable.
14576 hardcode_action=$hardcode_action_F77
14577
14578 # Whether we should hardcode library paths into libraries.
14579 hardcode_into_libs=$hardcode_into_libs
14580
14581 # Flag to hardcode \$libdir into a binary during linking.
14582 # This must work even if \$libdir does not exist.
14583 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14584
14585 # If ld is used when linking, flag to hardcode \$libdir into
14586 # a binary during linking. This must work even if \$libdir does
14587 # not exist.
14588 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14589
14590 # Whether we need a single -rpath flag with a separated argument.
14591 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14592
14593 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14594 # resulting binary.
14595 hardcode_direct=$hardcode_direct_F77
14596
14597 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14598 # resulting binary.
14599 hardcode_minus_L=$hardcode_minus_L_F77
14600
14601 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14602 # the resulting binary.
14603 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14604
14605 # Set to yes if building a shared library automatically hardcodes DIR into the library
14606 # and all subsequent libraries and executables linked against it.
14607 hardcode_automatic=$hardcode_automatic_F77
14608
14609 # Variables whose values should be saved in libtool wrapper scripts and
14610 # restored at relink time.
14611 variables_saved_for_relink="$variables_saved_for_relink"
14612
14613 # Whether libtool must link a program against all its dependency libraries.
14614 link_all_deplibs=$link_all_deplibs_F77
14615
14616 # Compile-time system search path for libraries
14617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14618
14619 # Run-time system search path for libraries
14620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14621
14622 # Fix the shell variable \$srcfile for the compiler.
14623 fix_srcfile_path="$fix_srcfile_path_F77"
14624
14625 # Set to yes if exported symbols are required.
14626 always_export_symbols=$always_export_symbols_F77
14627
14628 # The commands to list exported symbols.
14629 export_symbols_cmds=$lt_export_symbols_cmds_F77
14630
14631 # The commands to extract the exported symbol list from a shared archive.
14632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14633
14634 # Symbols that should not be listed in the preloaded symbols.
14635 exclude_expsyms=$lt_exclude_expsyms_F77
14636
14637 # Symbols that must always be exported.
14638 include_expsyms=$lt_include_expsyms_F77
14639
14640 # ### END LIBTOOL TAG CONFIG: $tagname
14641
14642 __EOF__
14643
14644
14645 else
14646   # If there is no Makefile yet, we rely on a make rule to execute
14647   # `config.status --recheck' to rerun these tests and create the
14648   # libtool script then.
14649   test -f Makefile && make "$ltmain"
14650 fi
14651
14652
14653 ac_ext=c
14654 ac_cpp='$CPP $CPPFLAGS'
14655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14658
14659 CC="$lt_save_CC"
14660
14661         else
14662           tagname=""
14663         fi
14664         ;;
14665
14666       GCJ)
14667         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14668
14669
14670
14671 # Source file extension for Java test sources.
14672 ac_ext=java
14673
14674 # Object file extension for compiled Java test sources.
14675 objext=o
14676 objext_GCJ=$objext
14677
14678 # Code to be used in simple compile tests
14679 lt_simple_compile_test_code="class foo {}\n"
14680
14681 # Code to be used in simple link tests
14682 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14683
14684 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14685
14686 # If no C compiler was specified, use CC.
14687 LTCC=${LTCC-"$CC"}
14688
14689 # Allow CC to be a program name with arguments.
14690 compiler=$CC
14691
14692
14693 # Allow CC to be a program name with arguments.
14694 lt_save_CC="$CC"
14695 CC=${GCJ-"gcj"}
14696 compiler=$CC
14697 compiler_GCJ=$CC
14698
14699 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14700 archive_cmds_need_lc_GCJ=no
14701
14702
14703 lt_prog_compiler_no_builtin_flag_GCJ=
14704
14705 if test "$GCC" = yes; then
14706   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14707
14708   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14709 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14710 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14711   echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713   lt_cv_prog_compiler_rtti_exceptions=no
14714   ac_outfile=conftest.$ac_objext
14715    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14716    lt_compiler_flag="-fno-rtti -fno-exceptions"
14717    # Insert the option either (1) after the last *FLAGS variable, or
14718    # (2) before a word containing "conftest.", or (3) at the end.
14719    # Note that $ac_compile itself does not contain backslashes and begins
14720    # with a dollar sign (not a hyphen), so the echo should work correctly.
14721    # The option is referenced via a variable to avoid confusing sed.
14722    lt_compile=`echo "$ac_compile" | $SED \
14723    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14724    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14725    -e 's:$: $lt_compiler_flag:'`
14726    (eval echo "\"\$as_me:14726: $lt_compile\"" >&5)
14727    (eval "$lt_compile" 2>conftest.err)
14728    ac_status=$?
14729    cat conftest.err >&5
14730    echo "$as_me:14730: \$? = $ac_status" >&5
14731    if (exit $ac_status) && test -s "$ac_outfile"; then
14732      # The compiler can only warn and ignore the option if not recognized
14733      # So say no if there are warnings
14734      if test ! -s conftest.err; then
14735        lt_cv_prog_compiler_rtti_exceptions=yes
14736      fi
14737    fi
14738    $rm conftest*
14739
14740 fi
14741 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14742 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14743
14744 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14745     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14746 else
14747     :
14748 fi
14749
14750 fi
14751
14752 lt_prog_compiler_wl_GCJ=
14753 lt_prog_compiler_pic_GCJ=
14754 lt_prog_compiler_static_GCJ=
14755
14756 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14757 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14758
14759   if test "$GCC" = yes; then
14760     lt_prog_compiler_wl_GCJ='-Wl,'
14761     lt_prog_compiler_static_GCJ='-static'
14762
14763     case $host_os in
14764       aix*)
14765       # All AIX code is PIC.
14766       if test "$host_cpu" = ia64; then
14767         # AIX 5 now supports IA64 processor
14768         lt_prog_compiler_static_GCJ='-Bstatic'
14769       fi
14770       ;;
14771
14772     amigaos*)
14773       # FIXME: we need at least 68020 code to build shared libraries, but
14774       # adding the `-m68020' flag to GCC prevents building anything better,
14775       # like `-m68040'.
14776       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14777       ;;
14778
14779     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14780       # PIC is the default for these OSes.
14781       ;;
14782
14783     mingw* | pw32* | os2*)
14784       # This hack is so that the source file can tell whether it is being
14785       # built for inclusion in a dll (and should export symbols for example).
14786       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14787       ;;
14788
14789     darwin* | rhapsody*)
14790       # PIC is the default on this platform
14791       # Common symbols not allowed in MH_DYLIB files
14792       lt_prog_compiler_pic_GCJ='-fno-common'
14793       ;;
14794
14795     msdosdjgpp*)
14796       # Just because we use GCC doesn't mean we suddenly get shared libraries
14797       # on systems that don't support them.
14798       lt_prog_compiler_can_build_shared_GCJ=no
14799       enable_shared=no
14800       ;;
14801
14802     sysv4*MP*)
14803       if test -d /usr/nec; then
14804         lt_prog_compiler_pic_GCJ=-Kconform_pic
14805       fi
14806       ;;
14807
14808     hpux*)
14809       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14810       # not for PA HP-UX.
14811       case "$host_cpu" in
14812       hppa*64*|ia64*)
14813         # +Z the default
14814         ;;
14815       *)
14816         lt_prog_compiler_pic_GCJ='-fPIC'
14817         ;;
14818       esac
14819       ;;
14820
14821     *)
14822       lt_prog_compiler_pic_GCJ='-fPIC'
14823       ;;
14824     esac
14825   else
14826     # PORTME Check for flag to pass linker flags through the system compiler.
14827     case $host_os in
14828     aix*)
14829       lt_prog_compiler_wl_GCJ='-Wl,'
14830       if test "$host_cpu" = ia64; then
14831         # AIX 5 now supports IA64 processor
14832         lt_prog_compiler_static_GCJ='-Bstatic'
14833       else
14834         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14835       fi
14836       ;;
14837
14838     mingw* | pw32* | os2*)
14839       # This hack is so that the source file can tell whether it is being
14840       # built for inclusion in a dll (and should export symbols for example).
14841       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14842       ;;
14843
14844     hpux9* | hpux10* | hpux11*)
14845       lt_prog_compiler_wl_GCJ='-Wl,'
14846       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14847       # not for PA HP-UX.
14848       case "$host_cpu" in
14849       hppa*64*|ia64*)
14850         # +Z the default
14851         ;;
14852       *)
14853         lt_prog_compiler_pic_GCJ='+Z'
14854         ;;
14855       esac
14856       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14857       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14858       ;;
14859
14860     irix5* | irix6* | nonstopux*)
14861       lt_prog_compiler_wl_GCJ='-Wl,'
14862       # PIC (with -KPIC) is the default.
14863       lt_prog_compiler_static_GCJ='-non_shared'
14864       ;;
14865
14866     newsos6)
14867       lt_prog_compiler_pic_GCJ='-KPIC'
14868       lt_prog_compiler_static_GCJ='-Bstatic'
14869       ;;
14870
14871     linux*)
14872       case $CC in
14873       icc|ecc)
14874         lt_prog_compiler_wl_GCJ='-Wl,'
14875         lt_prog_compiler_pic_GCJ='-KPIC'
14876         lt_prog_compiler_static_GCJ='-static'
14877         ;;
14878       ccc)
14879         lt_prog_compiler_wl_GCJ='-Wl,'
14880         # All Alpha code is PIC.
14881         lt_prog_compiler_static_GCJ='-non_shared'
14882         ;;
14883       esac
14884       ;;
14885
14886     osf3* | osf4* | osf5*)
14887       lt_prog_compiler_wl_GCJ='-Wl,'
14888       # All OSF/1 code is PIC.
14889       lt_prog_compiler_static_GCJ='-non_shared'
14890       ;;
14891
14892     sco3.2v5*)
14893       lt_prog_compiler_pic_GCJ='-Kpic'
14894       lt_prog_compiler_static_GCJ='-dn'
14895       ;;
14896
14897     solaris*)
14898       lt_prog_compiler_wl_GCJ='-Wl,'
14899       lt_prog_compiler_pic_GCJ='-KPIC'
14900       lt_prog_compiler_static_GCJ='-Bstatic'
14901       ;;
14902
14903     sunos4*)
14904       lt_prog_compiler_wl_GCJ='-Qoption ld '
14905       lt_prog_compiler_pic_GCJ='-PIC'
14906       lt_prog_compiler_static_GCJ='-Bstatic'
14907       ;;
14908
14909     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14910       lt_prog_compiler_wl_GCJ='-Wl,'
14911       lt_prog_compiler_pic_GCJ='-KPIC'
14912       lt_prog_compiler_static_GCJ='-Bstatic'
14913       ;;
14914
14915     sysv4*MP*)
14916       if test -d /usr/nec ;then
14917         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14918         lt_prog_compiler_static_GCJ='-Bstatic'
14919       fi
14920       ;;
14921
14922     uts4*)
14923       lt_prog_compiler_pic_GCJ='-pic'
14924       lt_prog_compiler_static_GCJ='-Bstatic'
14925       ;;
14926
14927     *)
14928       lt_prog_compiler_can_build_shared_GCJ=no
14929       ;;
14930     esac
14931   fi
14932
14933 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14934 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14935
14936 #
14937 # Check to make sure the PIC flag actually works.
14938 #
14939 if test -n "$lt_prog_compiler_pic_GCJ"; then
14940   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14941 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14942 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14943   echo $ECHO_N "(cached) $ECHO_C" >&6
14944 else
14945   lt_prog_compiler_pic_works_GCJ=no
14946   ac_outfile=conftest.$ac_objext
14947    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14948    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14949    # Insert the option either (1) after the last *FLAGS variable, or
14950    # (2) before a word containing "conftest.", or (3) at the end.
14951    # Note that $ac_compile itself does not contain backslashes and begins
14952    # with a dollar sign (not a hyphen), so the echo should work correctly.
14953    # The option is referenced via a variable to avoid confusing sed.
14954    lt_compile=`echo "$ac_compile" | $SED \
14955    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14956    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14957    -e 's:$: $lt_compiler_flag:'`
14958    (eval echo "\"\$as_me:14958: $lt_compile\"" >&5)
14959    (eval "$lt_compile" 2>conftest.err)
14960    ac_status=$?
14961    cat conftest.err >&5
14962    echo "$as_me:14962: \$? = $ac_status" >&5
14963    if (exit $ac_status) && test -s "$ac_outfile"; then
14964      # The compiler can only warn and ignore the option if not recognized
14965      # So say no if there are warnings
14966      if test ! -s conftest.err; then
14967        lt_prog_compiler_pic_works_GCJ=yes
14968      fi
14969    fi
14970    $rm conftest*
14971
14972 fi
14973 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14974 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14975
14976 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14977     case $lt_prog_compiler_pic_GCJ in
14978      "" | " "*) ;;
14979      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14980      esac
14981 else
14982     lt_prog_compiler_pic_GCJ=
14983      lt_prog_compiler_can_build_shared_GCJ=no
14984 fi
14985
14986 fi
14987 case "$host_os" in
14988   # For platforms which do not support PIC, -DPIC is meaningless:
14989   *djgpp*)
14990     lt_prog_compiler_pic_GCJ=
14991     ;;
14992   *)
14993     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14994     ;;
14995 esac
14996
14997 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14998 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14999 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15000   echo $ECHO_N "(cached) $ECHO_C" >&6
15001 else
15002   lt_cv_prog_compiler_c_o_GCJ=no
15003    $rm -r conftest 2>/dev/null
15004    mkdir conftest
15005    cd conftest
15006    mkdir out
15007    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15008
15009    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15010    # that will create temporary files in the current directory regardless of
15011    # the output directory.  Thus, making CWD read-only will cause this test
15012    # to fail, enabling locking or at least warning the user not to do parallel
15013    # builds.
15014    chmod -w .
15015
15016    lt_compiler_flag="-o out/conftest2.$ac_objext"
15017    # Insert the option either (1) after the last *FLAGS variable, or
15018    # (2) before a word containing "conftest.", or (3) at the end.
15019    # Note that $ac_compile itself does not contain backslashes and begins
15020    # with a dollar sign (not a hyphen), so the echo should work correctly.
15021    lt_compile=`echo "$ac_compile" | $SED \
15022    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15023    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15024    -e 's:$: $lt_compiler_flag:'`
15025    (eval echo "\"\$as_me:15025: $lt_compile\"" >&5)
15026    (eval "$lt_compile" 2>out/conftest.err)
15027    ac_status=$?
15028    cat out/conftest.err >&5
15029    echo "$as_me:15029: \$? = $ac_status" >&5
15030    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15031    then
15032      # The compiler can only warn and ignore the option if not recognized
15033      # So say no if there are warnings
15034      if test ! -s out/conftest.err; then
15035        lt_cv_prog_compiler_c_o_GCJ=yes
15036      fi
15037    fi
15038    chmod u+w .
15039    $rm conftest* out/*
15040    rmdir out
15041    cd ..
15042    rmdir conftest
15043    $rm conftest*
15044
15045 fi
15046 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15047 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15048
15049
15050 hard_links="nottested"
15051 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15052   # do not overwrite the value of need_locks provided by the user
15053   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15054 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15055   hard_links=yes
15056   $rm conftest*
15057   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15058   touch conftest.a
15059   ln conftest.a conftest.b 2>&5 || hard_links=no
15060   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15061   echo "$as_me:$LINENO: result: $hard_links" >&5
15062 echo "${ECHO_T}$hard_links" >&6
15063   if test "$hard_links" = no; then
15064     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15065 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15066     need_locks=warn
15067   fi
15068 else
15069   need_locks=no
15070 fi
15071
15072 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15073 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15074
15075   runpath_var=
15076   allow_undefined_flag_GCJ=
15077   enable_shared_with_static_runtimes_GCJ=no
15078   archive_cmds_GCJ=
15079   archive_expsym_cmds_GCJ=
15080   old_archive_From_new_cmds_GCJ=
15081   old_archive_from_expsyms_cmds_GCJ=
15082   export_dynamic_flag_spec_GCJ=
15083   whole_archive_flag_spec_GCJ=
15084   thread_safe_flag_spec_GCJ=
15085   hardcode_libdir_flag_spec_GCJ=
15086   hardcode_libdir_flag_spec_ld_GCJ=
15087   hardcode_libdir_separator_GCJ=
15088   hardcode_direct_GCJ=no
15089   hardcode_minus_L_GCJ=no
15090   hardcode_shlibpath_var_GCJ=unsupported
15091   link_all_deplibs_GCJ=unknown
15092   hardcode_automatic_GCJ=no
15093   module_cmds_GCJ=
15094   module_expsym_cmds_GCJ=
15095   always_export_symbols_GCJ=no
15096   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15097   # include_expsyms should be a list of space-separated symbols to be *always*
15098   # included in the symbol list
15099   include_expsyms_GCJ=
15100   # exclude_expsyms can be an extended regexp of symbols to exclude
15101   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15102   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15103   # as well as any symbol that contains `d'.
15104   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15105   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15106   # platforms (ab)use it in PIC code, but their linkers get confused if
15107   # the symbol is explicitly referenced.  Since portable code cannot
15108   # rely on this symbol name, it's probably fine to never include it in
15109   # preloaded symbol tables.
15110   extract_expsyms_cmds=
15111
15112   case $host_os in
15113   cygwin* | mingw* | pw32*)
15114     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15115     # When not using gcc, we currently assume that we are using
15116     # Microsoft Visual C++.
15117     if test "$GCC" != yes; then
15118       with_gnu_ld=no
15119     fi
15120     ;;
15121   openbsd*)
15122     with_gnu_ld=no
15123     ;;
15124   esac
15125
15126   ld_shlibs_GCJ=yes
15127   if test "$with_gnu_ld" = yes; then
15128     # If archive_cmds runs LD, not CC, wlarc should be empty
15129     wlarc='${wl}'
15130
15131     # See if GNU ld supports shared libraries.
15132     case $host_os in
15133     aix3* | aix4* | aix5*)
15134       # On AIX/PPC, the GNU linker is very broken
15135       if test "$host_cpu" != ia64; then
15136         ld_shlibs_GCJ=no
15137         cat <<EOF 1>&2
15138
15139 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15140 *** to be unable to reliably create shared libraries on AIX.
15141 *** Therefore, libtool is disabling shared libraries support.  If you
15142 *** really care for shared libraries, you may want to modify your PATH
15143 *** so that a non-GNU linker is found, and then restart.
15144
15145 EOF
15146       fi
15147       ;;
15148
15149     amigaos*)
15150       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
15151       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15152       hardcode_minus_L_GCJ=yes
15153
15154       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15155       # that the semantics of dynamic libraries on AmigaOS, at least up
15156       # to version 4, is to share data among multiple programs linked
15157       # with the same dynamic library.  Since this doesn't match the
15158       # behavior of shared libraries on other platforms, we can't use
15159       # them.
15160       ld_shlibs_GCJ=no
15161       ;;
15162
15163     beos*)
15164       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15165         allow_undefined_flag_GCJ=unsupported
15166         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15167         # support --undefined.  This deserves some investigation.  FIXME
15168         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15169       else
15170         ld_shlibs_GCJ=no
15171       fi
15172       ;;
15173
15174     cygwin* | mingw* | pw32*)
15175       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15176       # as there is no search path for DLLs.
15177       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15178       allow_undefined_flag_GCJ=unsupported
15179       always_export_symbols_GCJ=no
15180       enable_shared_with_static_runtimes_GCJ=yes
15181       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15182
15183       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15184         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15185         # If the export-symbols file already is a .def file (1st line
15186         # is EXPORTS), use it as is; otherwise, prepend...
15187         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15188           cp $export_symbols $output_objdir/$soname.def;
15189         else
15190           echo EXPORTS > $output_objdir/$soname.def;
15191           cat $export_symbols >> $output_objdir/$soname.def;
15192         fi${_S_}
15193         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15194       else
15195         ld_shlibs=no
15196       fi
15197       ;;
15198
15199     netbsd*)
15200       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15201         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15202         wlarc=
15203       else
15204         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15205         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15206       fi
15207       ;;
15208
15209     solaris* | sysv5*)
15210       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15211         ld_shlibs_GCJ=no
15212         cat <<EOF 1>&2
15213
15214 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15215 *** create shared libraries on Solaris systems.  Therefore, libtool
15216 *** is disabling shared libraries support.  We urge you to upgrade GNU
15217 *** binutils to release 2.9.1 or newer.  Another option is to modify
15218 *** your PATH or compiler configuration so that the native linker is
15219 *** used, and then restart.
15220
15221 EOF
15222       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15223         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15224         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15225       else
15226         ld_shlibs_GCJ=no
15227       fi
15228       ;;
15229
15230     sunos4*)
15231       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15232       wlarc=
15233       hardcode_direct_GCJ=yes
15234       hardcode_shlibpath_var_GCJ=no
15235       ;;
15236
15237     *)
15238       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15239         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15240         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15241       else
15242         ld_shlibs_GCJ=no
15243       fi
15244       ;;
15245     esac
15246
15247     if test "$ld_shlibs_GCJ" = yes; then
15248       runpath_var=LD_RUN_PATH
15249       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15250       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15251       # ancient GNU ld didn't support --whole-archive et. al.
15252       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15253         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15254       else
15255         whole_archive_flag_spec_GCJ=
15256       fi
15257     fi
15258   else
15259     # PORTME fill in a description of your system's linker (not GNU ld)
15260     case $host_os in
15261     aix3*)
15262       allow_undefined_flag_GCJ=unsupported
15263       always_export_symbols_GCJ=yes
15264       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
15265       # Note: this linker hardcodes the directories in LIBPATH if there
15266       # are no directories specified by -L.
15267       hardcode_minus_L_GCJ=yes
15268       if test "$GCC" = yes && test -z "$link_static_flag"; then
15269         # Neither direct hardcoding nor static linking is supported with a
15270         # broken collect2.
15271         hardcode_direct_GCJ=unsupported
15272       fi
15273       ;;
15274
15275     aix4* | aix5*)
15276       if test "$host_cpu" = ia64; then
15277         # On IA64, the linker does run time linking by default, so we don't
15278         # have to do anything special.
15279         aix_use_runtimelinking=no
15280         exp_sym_flag='-Bexport'
15281         no_entry_flag=""
15282       else
15283         # If we're using GNU nm, then we don't want the "-C" option.
15284         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15285         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15286           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'
15287         else
15288           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'
15289         fi
15290         aix_use_runtimelinking=no
15291
15292         # Test if we are trying to use run time linking or normal
15293         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15294         # need to do runtime linking.
15295         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15296           for ld_flag in $LDFLAGS; do
15297           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15298             aix_use_runtimelinking=yes
15299             break
15300           fi
15301           done
15302         esac
15303
15304         exp_sym_flag='-bexport'
15305         no_entry_flag='-bnoentry'
15306       fi
15307
15308       # When large executables or shared objects are built, AIX ld can
15309       # have problems creating the table of contents.  If linking a library
15310       # or program results in "error TOC overflow" add -mminimal-toc to
15311       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15312       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15313
15314       archive_cmds_GCJ=''
15315       hardcode_direct_GCJ=yes
15316       hardcode_libdir_separator_GCJ=':'
15317       link_all_deplibs_GCJ=yes
15318
15319       if test "$GCC" = yes; then
15320         case $host_os in aix4.012|aix4.012.*)
15321         # We only want to do this on AIX 4.2 and lower, the check
15322         # below for broken collect2 doesn't work under 4.3+
15323           collect2name=`${CC} -print-prog-name=collect2`
15324           if test -f "$collect2name" && \
15325            strings "$collect2name" | grep resolve_lib_name >/dev/null
15326           then
15327           # We have reworked collect2
15328           hardcode_direct_GCJ=yes
15329           else
15330           # We have old collect2
15331           hardcode_direct_GCJ=unsupported
15332           # It fails to find uninstalled libraries when the uninstalled
15333           # path is not listed in the libpath.  Setting hardcode_minus_L
15334           # to unsupported forces relinking
15335           hardcode_minus_L_GCJ=yes
15336           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15337           hardcode_libdir_separator_GCJ=
15338           fi
15339         esac
15340         shared_flag='-shared'
15341       else
15342         # not using gcc
15343         if test "$host_cpu" = ia64; then
15344         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15345         # chokes on -Wl,-G. The following line is correct:
15346           shared_flag='-G'
15347         else
15348         if test "$aix_use_runtimelinking" = yes; then
15349             shared_flag='${wl}-G'
15350           else
15351             shared_flag='${wl}-bM:SRE'
15352         fi
15353         fi
15354       fi
15355
15356       # It seems that -bexpall does not export symbols beginning with
15357       # underscore (_), so it is better to generate a list of symbols to export.
15358       always_export_symbols_GCJ=yes
15359       if test "$aix_use_runtimelinking" = yes; then
15360         # Warning - without using the other runtime loading flags (-brtl),
15361         # -berok will link without error, but may produce a broken library.
15362         allow_undefined_flag_GCJ='-berok'
15363        # Determine the default libpath from the value encoded in an empty executable.
15364        cat >conftest.$ac_ext <<_ACEOF
15365 #line $LINENO "configure"
15366 /* confdefs.h.  */
15367 _ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h.  */
15371
15372 int
15373 main ()
15374 {
15375
15376   ;
15377   return 0;
15378 }
15379 _ACEOF
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15382   (eval $ac_link) 2>&5
15383   ac_status=$?
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); } &&
15386          { ac_try='test -s conftest$ac_exeext'
15387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388   (eval $ac_try) 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); }; }; then
15392
15393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15394 }'`
15395 # Check for a 64-bit object if we didn't find anything.
15396 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; }
15397 }'`; fi
15398 else
15399   echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15401
15402 fi
15403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15405
15406        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15407         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"
15408        else
15409         if test "$host_cpu" = ia64; then
15410           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15411           allow_undefined_flag_GCJ="-z nodefs"
15412           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"
15413         else
15414          # Determine the default libpath from the value encoded in an empty executable.
15415          cat >conftest.$ac_ext <<_ACEOF
15416 #line $LINENO "configure"
15417 /* confdefs.h.  */
15418 _ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h.  */
15422
15423 int
15424 main ()
15425 {
15426
15427   ;
15428   return 0;
15429 }
15430 _ACEOF
15431 rm -f conftest.$ac_objext conftest$ac_exeext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15433   (eval $ac_link) 2>&5
15434   ac_status=$?
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); } &&
15437          { ac_try='test -s conftest$ac_exeext'
15438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439   (eval $ac_try) 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); }; }; then
15443
15444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15445 }'`
15446 # Check for a 64-bit object if we didn't find anything.
15447 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; }
15448 }'`; fi
15449 else
15450   echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15452
15453 fi
15454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15456
15457          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15458           # Warning - without using the other run time loading flags,
15459           # -berok will link without error, but may produce a broken library.
15460           no_undefined_flag_GCJ=' ${wl}-bernotok'
15461           allow_undefined_flag_GCJ=' ${wl}-berok'
15462           # -bexpall does not export symbols beginning with underscore (_)
15463           always_export_symbols_GCJ=yes
15464           # Exported symbols can be pulled into shared objects from archives
15465           whole_archive_flag_spec_GCJ=' '
15466           archive_cmds_need_lc_GCJ=yes
15467           # This is similar to how AIX traditionally builds it's shared libraries.
15468           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15469         fi
15470       fi
15471       ;;
15472
15473     amigaos*)
15474       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
15475       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15476       hardcode_minus_L_GCJ=yes
15477       # see comment about different semantics on the GNU ld section
15478       ld_shlibs_GCJ=no
15479       ;;
15480
15481     bsdi4*)
15482       export_dynamic_flag_spec_GCJ=-rdynamic
15483       ;;
15484
15485     cygwin* | mingw* | pw32*)
15486       # When not using gcc, we currently assume that we are using
15487       # Microsoft Visual C++.
15488       # hardcode_libdir_flag_spec is actually meaningless, as there is
15489       # no search path for DLLs.
15490       hardcode_libdir_flag_spec_GCJ=' '
15491       allow_undefined_flag_GCJ=unsupported
15492       # Tell ltmain to make .lib files, not .a files.
15493       libext=lib
15494       # Tell ltmain to make .dll files, not .so files.
15495       shrext=".dll"
15496       # FIXME: Setting linknames here is a bad hack.
15497       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
15498       # The linker will automatically build a .lib file if we build a DLL.
15499       old_archive_From_new_cmds_GCJ='true'
15500       # FIXME: Should let the user specify the lib program.
15501       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15502       fix_srcfile_path='`cygpath -w "$srcfile"`'
15503       enable_shared_with_static_runtimes_GCJ=yes
15504       ;;
15505
15506     darwin* | rhapsody*)
15507     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15508       archive_cmds_need_lc_GCJ=no
15509       case "$host_os" in
15510       rhapsody* | darwin1.[012])
15511         allow_undefined_flag_GCJ='-undefined suppress'
15512         ;;
15513       darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
15514         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15515         ;;
15516       *) # Darwin 7.0 on
15517         case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
15518         10.[012])
15519           test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15520           ;;
15521         *) # 10.3 on
15522           if test -z ${LD_TWOLEVEL_NAMESPACE}; then
15523             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15524           else
15525             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15526           fi
15527           ;;
15528         esac
15529         ;;
15530       esac
15531       # FIXME: Relying on posixy $() will cause problems for
15532       #        cross-compilation, but unfortunately the echo tests do not
15533       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15534       #        `"' quotes if we put them in here... so don't!
15535         lt_int_apple_cc_single_mod=no
15536         output_verbose_link_cmd='echo'
15537         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15538           lt_int_apple_cc_single_mod=yes
15539         fi
15540         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15541           archive_cmds_GCJ='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15542         else
15543         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15544       fi
15545       module_cmds_GCJ='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15546       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15547         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15548           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15549         else
15550           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15551         fi
15552           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15553       hardcode_direct_GCJ=no
15554       hardcode_automatic_GCJ=yes
15555       hardcode_shlibpath_var_GCJ=unsupported
15556       whole_archive_flag_spec_GCJ='-all_load $convenience'
15557       link_all_deplibs_GCJ=yes
15558     fi
15559       ;;
15560
15561     dgux*)
15562       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15564       hardcode_shlibpath_var_GCJ=no
15565       ;;
15566
15567     freebsd1*)
15568       ld_shlibs_GCJ=no
15569       ;;
15570
15571     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15572     # support.  Future versions do this automatically, but an explicit c++rt0.o
15573     # does not break anything, and helps significantly (at the cost of a little
15574     # extra space).
15575     freebsd2.2*)
15576       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15577       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15578       hardcode_direct_GCJ=yes
15579       hardcode_shlibpath_var_GCJ=no
15580       ;;
15581
15582     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15583     freebsd2*)
15584       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15585       hardcode_direct_GCJ=yes
15586       hardcode_minus_L_GCJ=yes
15587       hardcode_shlibpath_var_GCJ=no
15588       ;;
15589
15590     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15591     freebsd*)
15592       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15593       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15594       hardcode_direct_GCJ=yes
15595       hardcode_shlibpath_var_GCJ=no
15596       ;;
15597
15598     hpux9*)
15599       if test "$GCC" = yes; then
15600         archive_cmds_GCJ='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15601       else
15602         archive_cmds_GCJ='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15603       fi
15604       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15605       hardcode_libdir_separator_GCJ=:
15606       hardcode_direct_GCJ=yes
15607
15608       # hardcode_minus_L: Not really in the search PATH,
15609       # but as the default location of the library.
15610       hardcode_minus_L_GCJ=yes
15611       export_dynamic_flag_spec_GCJ='${wl}-E'
15612       ;;
15613
15614     hpux10* | hpux11*)
15615       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15616         case "$host_cpu" in
15617         hppa*64*|ia64*)
15618           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15619           ;;
15620         *)
15621           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15622           ;;
15623         esac
15624       else
15625         case "$host_cpu" in
15626         hppa*64*|ia64*)
15627           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15628           ;;
15629         *)
15630           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15631           ;;
15632         esac
15633       fi
15634       if test "$with_gnu_ld" = no; then
15635         case "$host_cpu" in
15636         hppa*64*)
15637           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15638           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15639           hardcode_libdir_separator_GCJ=:
15640           hardcode_direct_GCJ=no
15641           hardcode_shlibpath_var_GCJ=no
15642           ;;
15643         ia64*)
15644           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15645           hardcode_direct_GCJ=no
15646           hardcode_shlibpath_var_GCJ=no
15647
15648           # hardcode_minus_L: Not really in the search PATH,
15649           # but as the default location of the library.
15650           hardcode_minus_L_GCJ=yes
15651           ;;
15652         *)
15653           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15654           hardcode_libdir_separator_GCJ=:
15655           hardcode_direct_GCJ=yes
15656           export_dynamic_flag_spec_GCJ='${wl}-E'
15657
15658           # hardcode_minus_L: Not really in the search PATH,
15659           # but as the default location of the library.
15660           hardcode_minus_L_GCJ=yes
15661           ;;
15662         esac
15663       fi
15664       ;;
15665
15666     irix5* | irix6* | nonstopux*)
15667       if test "$GCC" = yes; then
15668         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'
15669       else
15670         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'
15671         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15672       fi
15673       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15674       hardcode_libdir_separator_GCJ=:
15675       link_all_deplibs_GCJ=yes
15676       ;;
15677
15678     netbsd*)
15679       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15680         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15681       else
15682         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15683       fi
15684       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15685       hardcode_direct_GCJ=yes
15686       hardcode_shlibpath_var_GCJ=no
15687       ;;
15688
15689     newsos6)
15690       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691       hardcode_direct_GCJ=yes
15692       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15693       hardcode_libdir_separator_GCJ=:
15694       hardcode_shlibpath_var_GCJ=no
15695       ;;
15696
15697     openbsd*)
15698       hardcode_direct_GCJ=yes
15699       hardcode_shlibpath_var_GCJ=no
15700       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15701         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15702         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15703         export_dynamic_flag_spec_GCJ='${wl}-E'
15704       else
15705        case $host_os in
15706          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15707            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15708            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15709            ;;
15710          *)
15711            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15712            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15713            ;;
15714        esac
15715       fi
15716       ;;
15717
15718     os2*)
15719       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15720       hardcode_minus_L_GCJ=yes
15721       allow_undefined_flag_GCJ=unsupported
15722       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15723       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15724       ;;
15725
15726     osf3*)
15727       if test "$GCC" = yes; then
15728         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15729         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'
15730       else
15731         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15732         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'
15733       fi
15734       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15735       hardcode_libdir_separator_GCJ=:
15736       ;;
15737
15738     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15739       if test "$GCC" = yes; then
15740         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15741         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'
15742         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15743       else
15744         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15745         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'
15746         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${_S_}
15747         $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${_S_}$rm $lib.exp'
15748
15749         # Both c and cxx compiler support -rpath directly
15750         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15751       fi
15752       hardcode_libdir_separator_GCJ=:
15753       ;;
15754
15755     sco3.2v5*)
15756       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757       hardcode_shlibpath_var_GCJ=no
15758       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15759       runpath_var=LD_RUN_PATH
15760       hardcode_runpath_var=yes
15761       ;;
15762
15763     solaris*)
15764       no_undefined_flag_GCJ=' -z text'
15765       if test "$GCC" = yes; then
15766         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15767         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
15768           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
15769       else
15770         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15771         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
15772         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
15773       fi
15774       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15775       hardcode_shlibpath_var_GCJ=no
15776       case $host_os in
15777       solaris2.[0-5] | solaris2.[0-5].*) ;;
15778       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15779         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15780       esac
15781       link_all_deplibs_GCJ=yes
15782       ;;
15783
15784     sunos4*)
15785       if test "x$host_vendor" = xsequent; then
15786         # Use $CC to link under sequent, because it throws in some extra .o
15787         # files that make .init and .fini sections work.
15788         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15789       else
15790         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15791       fi
15792       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15793       hardcode_direct_GCJ=yes
15794       hardcode_minus_L_GCJ=yes
15795       hardcode_shlibpath_var_GCJ=no
15796       ;;
15797
15798     sysv4)
15799       case $host_vendor in
15800         sni)
15801           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802           hardcode_direct_GCJ=yes # is this really true???
15803         ;;
15804         siemens)
15805           ## LD is ld it makes a PLAMLIB
15806           ## CC just makes a GrossModule.
15807           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15808           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15809           hardcode_direct_GCJ=no
15810         ;;
15811         motorola)
15812           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15813           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15814         ;;
15815       esac
15816       runpath_var='LD_RUN_PATH'
15817       hardcode_shlibpath_var_GCJ=no
15818       ;;
15819
15820     sysv4.3*)
15821       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15822       hardcode_shlibpath_var_GCJ=no
15823       export_dynamic_flag_spec_GCJ='-Bexport'
15824       ;;
15825
15826     sysv4*MP*)
15827       if test -d /usr/nec; then
15828         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15829         hardcode_shlibpath_var_GCJ=no
15830         runpath_var=LD_RUN_PATH
15831         hardcode_runpath_var=yes
15832         ld_shlibs_GCJ=yes
15833       fi
15834       ;;
15835
15836     sysv4.2uw2*)
15837       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15838       hardcode_direct_GCJ=yes
15839       hardcode_minus_L_GCJ=no
15840       hardcode_shlibpath_var_GCJ=no
15841       hardcode_runpath_var=yes
15842       runpath_var=LD_RUN_PATH
15843       ;;
15844
15845    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15846       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15847       if test "$GCC" = yes; then
15848         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15849       else
15850         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15851       fi
15852       runpath_var='LD_RUN_PATH'
15853       hardcode_shlibpath_var_GCJ=no
15854       ;;
15855
15856     sysv5*)
15857       no_undefined_flag_GCJ=' -z text'
15858       # $CC -shared without GNU ld will not create a library from C++
15859       # object files and a static libstdc++, better avoid it by now
15860       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15861       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
15862                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
15863       hardcode_libdir_flag_spec_GCJ=
15864       hardcode_shlibpath_var_GCJ=no
15865       runpath_var='LD_RUN_PATH'
15866       ;;
15867
15868     uts4*)
15869       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15870       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15871       hardcode_shlibpath_var_GCJ=no
15872       ;;
15873
15874     *)
15875       ld_shlibs_GCJ=no
15876       ;;
15877     esac
15878   fi
15879
15880 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15881 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15882 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15883
15884 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15885 if test "$GCC" = yes; then
15886   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15887 fi
15888
15889 #
15890 # Do we need to explicitly link libc?
15891 #
15892 case "x$archive_cmds_need_lc_GCJ" in
15893 x|xyes)
15894   # Assume -lc should be added
15895   archive_cmds_need_lc_GCJ=yes
15896
15897   if test "$enable_shared" = yes && test "$GCC" = yes; then
15898     case $archive_cmds_GCJ in
15899     *"$_S_"*)
15900       # FIXME: we may have to deal with multi-command sequences.
15901       ;;
15902     '$CC '*)
15903       # Test whether the compiler implicitly links with -lc since on some
15904       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15905       # to ld, don't add -lc before -lgcc.
15906       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15907 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15908       $rm conftest*
15909       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15910
15911       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15912   (eval $ac_compile) 2>&5
15913   ac_status=$?
15914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915   (exit $ac_status); } 2>conftest.err; then
15916         soname=conftest
15917         lib=conftest
15918         libobjs=conftest.$ac_objext
15919         deplibs=
15920         wl=$lt_prog_compiler_wl_GCJ
15921         compiler_flags=-v
15922         linker_flags=-v
15923         verstring=
15924         output_objdir=.
15925         libname=conftest
15926         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15927         allow_undefined_flag_GCJ=
15928         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15929   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15930   ac_status=$?
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); }
15933         then
15934           archive_cmds_need_lc_GCJ=no
15935         else
15936           archive_cmds_need_lc_GCJ=yes
15937         fi
15938         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15939       else
15940         cat conftest.err 1>&5
15941       fi
15942       $rm conftest*
15943       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15944 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15945       ;;
15946     esac
15947   fi
15948   ;;
15949 esac
15950
15951 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15952 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15953 hardcode_action_GCJ=
15954 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15955    test -n "$runpath_var GCJ" || \
15956    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15957
15958   # We can hardcode non-existant directories.
15959   if test "$hardcode_direct_GCJ" != no &&
15960      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15961      # have to relink, otherwise we might link with an installed library
15962      # when we should be linking with a yet-to-be-installed one
15963      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15964      test "$hardcode_minus_L_GCJ" != no; then
15965     # Linking always hardcodes the temporary library directory.
15966     hardcode_action_GCJ=relink
15967   else
15968     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15969     hardcode_action_GCJ=immediate
15970   fi
15971 else
15972   # We cannot hardcode anything, or else we can only hardcode existing
15973   # directories.
15974   hardcode_action_GCJ=unsupported
15975 fi
15976 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15977 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15978
15979 if test "$hardcode_action_GCJ" = relink; then
15980   # Fast installation is not supported
15981   enable_fast_install=no
15982 elif test "$shlibpath_overrides_runpath" = yes ||
15983      test "$enable_shared" = no; then
15984   # Fast installation is not necessary
15985   enable_fast_install=needless
15986 fi
15987
15988 striplib=
15989 old_striplib=
15990 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15991 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15992 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15993   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15994   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15995   echo "$as_me:$LINENO: result: yes" >&5
15996 echo "${ECHO_T}yes" >&6
15997 else
15998 # FIXME - insert some real tests, host_os isn't really good enough
15999   case $host_os in
16000    NOT-darwin*)
16001        if test -n "$STRIP" ; then
16002          striplib="$STRIP -x"
16003          echo "$as_me:$LINENO: result: yes" >&5
16004 echo "${ECHO_T}yes" >&6
16005        else
16006   echo "$as_me:$LINENO: result: no" >&5
16007 echo "${ECHO_T}no" >&6
16008 fi
16009        ;;
16010    *)
16011   echo "$as_me:$LINENO: result: no" >&5
16012 echo "${ECHO_T}no" >&6
16013     ;;
16014   esac
16015 fi
16016
16017 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16018 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16019 library_names_spec=
16020 libname_spec='lib$name'
16021 soname_spec=
16022 shrext=".so"
16023 postinstall_cmds=
16024 postuninstall_cmds=
16025 finish_cmds=
16026 finish_eval=
16027 shlibpath_var=
16028 shlibpath_overrides_runpath=unknown
16029 version_type=none
16030 dynamic_linker="$host_os ld.so"
16031 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16032 if test "$GCC" = yes; then
16033   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16034   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16035     # if the path contains ";" then we assume it to be the separator
16036     # otherwise default to the standard path separator (i.e. ":") - it is
16037     # assumed that no part of a normal pathname contains ";" but that should
16038     # okay in the real world where ";" in dirpaths is itself problematic.
16039     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16040   else
16041     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16042   fi
16043 else
16044   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16045 fi
16046 need_lib_prefix=unknown
16047 hardcode_into_libs=no
16048
16049 # when you set need_version to no, make sure it does not cause -set_version
16050 # flags to be left without arguments
16051 need_version=unknown
16052
16053 case $host_os in
16054 aix3*)
16055   version_type=linux
16056   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16057   shlibpath_var=LIBPATH
16058
16059   # AIX 3 has no versioning support, so we append a major version to the name.
16060   soname_spec='${libname}${release}${shared_ext}$major'
16061   ;;
16062
16063 aix4* | aix5*)
16064   version_type=linux
16065   need_lib_prefix=no
16066   need_version=no
16067   hardcode_into_libs=yes
16068   if test "$host_cpu" = ia64; then
16069     # AIX 5 supports IA64
16070     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16071     shlibpath_var=LD_LIBRARY_PATH
16072   else
16073     # With GCC up to 2.95.x, collect2 would create an import file
16074     # for dependence libraries.  The import file would start with
16075     # the line `#! .'.  This would cause the generated library to
16076     # depend on `.', always an invalid library.  This was fixed in
16077     # development snapshots of GCC prior to 3.0.
16078     case $host_os in
16079       aix4 | aix4.[01] | aix4.[01].*)
16080       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16081            echo ' yes '
16082            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16083         :
16084       else
16085         can_build_shared=no
16086       fi
16087       ;;
16088     esac
16089     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16090     # soname into executable. Probably we can add versioning support to
16091     # collect2, so additional links can be useful in future.
16092     if test "$aix_use_runtimelinking" = yes; then
16093       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16094       # instead of lib<name>.a to let people know that these are not
16095       # typical AIX shared libraries.
16096       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097     else
16098       # We preserve .a as extension for shared libraries through AIX4.2
16099       # and later when we are not doing run time linking.
16100       library_names_spec='${libname}${release}.a $libname.a'
16101       soname_spec='${libname}${release}${shared_ext}$major'
16102     fi
16103     shlibpath_var=LIBPATH
16104   fi
16105   ;;
16106
16107 amigaos*)
16108   library_names_spec='$libname.ixlibrary $libname.a'
16109   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16110   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'
16111   ;;
16112
16113 beos*)
16114   library_names_spec='${libname}${shared_ext}'
16115   dynamic_linker="$host_os ld.so"
16116   shlibpath_var=LIBRARY_PATH
16117   ;;
16118
16119 bsdi4*)
16120   version_type=linux
16121   need_version=no
16122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123   soname_spec='${libname}${release}${shared_ext}$major'
16124   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16125   shlibpath_var=LD_LIBRARY_PATH
16126   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16127   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16128   # the default ld.so.conf also contains /usr/contrib/lib and
16129   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16130   # libtool to hard-code these into programs
16131   ;;
16132
16133 cygwin* | mingw* | pw32*)
16134   version_type=windows
16135   shrext=".dll"
16136   need_version=no
16137   need_lib_prefix=no
16138
16139   case $GCC,$host_os in
16140   yes,cygwin* | yes,mingw* | yes,pw32*)
16141     library_names_spec='$libname.dll.a'
16142     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16143     postinstall_cmds='base_file=`basename \${file}`${_S_}
16144       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
16145       dldir=$destdir/`dirname \$dlpath`${_S_}
16146       test -d \$dldir || mkdir -p \$dldir${_S_}
16147       $install_prog $dir/$dlname \$dldir/$dlname'
16148     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
16149       dlpath=$dir/\$dldll${_S_}
16150        $rm \$dlpath'
16151     shlibpath_overrides_runpath=yes
16152
16153     case $host_os in
16154     cygwin*)
16155       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16156       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16157       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16158       ;;
16159     mingw*)
16160       # MinGW DLLs use traditional 'lib' prefix
16161       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16162       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16163       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16164         # It is most probably a Windows format PATH printed by
16165         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16166         # path with ; separators, and with drive letters. We can handle the
16167         # drive letters (cygwin fileutils understands them), so leave them,
16168         # especially as we might pass files found there to a mingw objdump,
16169         # which wouldn't understand a cygwinified path. Ahh.
16170         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16171       else
16172         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16173       fi
16174       ;;
16175     pw32*)
16176       # pw32 DLLs use 'pw' prefix rather than 'lib'
16177       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16178       ;;
16179     esac
16180     ;;
16181
16182   *)
16183     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16184     ;;
16185   esac
16186   dynamic_linker='Win32 ld.exe'
16187   # FIXME: first we should search . and the directory the executable is in
16188   shlibpath_var=PATH
16189   ;;
16190
16191 darwin* | rhapsody*)
16192   dynamic_linker="$host_os dyld"
16193   version_type=darwin
16194   need_lib_prefix=no
16195   need_version=no
16196   # FIXME: Relying on posixy $() will cause problems for
16197   #        cross-compilation, but unfortunately the echo tests do not
16198   #        yet detect zsh echo's removal of \ escapes.
16199   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
16200   soname_spec='${libname}${release}${major}$shared_ext'
16201   shlibpath_overrides_runpath=yes
16202   shlibpath_var=DYLD_LIBRARY_PATH
16203   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16204   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16205   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16206   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"`
16207   fi
16208   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16209   ;;
16210
16211 dgux*)
16212   version_type=linux
16213   need_lib_prefix=no
16214   need_version=no
16215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16216   soname_spec='${libname}${release}${shared_ext}$major'
16217   shlibpath_var=LD_LIBRARY_PATH
16218   ;;
16219
16220 freebsd1*)
16221   dynamic_linker=no
16222   ;;
16223
16224 freebsd*)
16225   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16226   version_type=freebsd-$objformat
16227   case $version_type in
16228     freebsd-elf*)
16229       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16230       need_version=no
16231       need_lib_prefix=no
16232       ;;
16233     freebsd-*)
16234       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16235       need_version=yes
16236       ;;
16237   esac
16238   shlibpath_var=LD_LIBRARY_PATH
16239   case $host_os in
16240   freebsd2*)
16241     shlibpath_overrides_runpath=yes
16242     ;;
16243   freebsd3.01* | freebsdelf3.01*)
16244     shlibpath_overrides_runpath=yes
16245     hardcode_into_libs=yes
16246     ;;
16247   *) # from 3.2 on
16248     shlibpath_overrides_runpath=no
16249     hardcode_into_libs=yes
16250     ;;
16251   esac
16252   ;;
16253
16254 gnu*)
16255   version_type=linux
16256   need_lib_prefix=no
16257   need_version=no
16258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16259   soname_spec='${libname}${release}${shared_ext}$major'
16260   shlibpath_var=LD_LIBRARY_PATH
16261   hardcode_into_libs=yes
16262   ;;
16263
16264 hpux9* | hpux10* | hpux11*)
16265   # Give a soname corresponding to the major version so that dld.sl refuses to
16266   # link against other versions.
16267   version_type=sunos
16268   need_lib_prefix=no
16269   need_version=no
16270   case "$host_cpu" in
16271   ia64*)
16272     shrext='.so'
16273     hardcode_into_libs=yes
16274     dynamic_linker="$host_os dld.so"
16275     shlibpath_var=LD_LIBRARY_PATH
16276     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16277     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278     soname_spec='${libname}${release}${shared_ext}$major'
16279     if test "X$HPUX_IA64_MODE" = X32; then
16280       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16281     else
16282       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16283     fi
16284     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16285     ;;
16286    hppa*64*)
16287      shrext='.sl'
16288      hardcode_into_libs=yes
16289      dynamic_linker="$host_os dld.sl"
16290      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16291      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16292      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293      soname_spec='${libname}${release}${shared_ext}$major'
16294      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16295      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16296      ;;
16297    *)
16298     shrext='.sl'
16299     dynamic_linker="$host_os dld.sl"
16300     shlibpath_var=SHLIB_PATH
16301     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16303     soname_spec='${libname}${release}${shared_ext}$major'
16304     ;;
16305   esac
16306   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16307   postinstall_cmds='chmod 555 $lib'
16308   ;;
16309
16310 irix5* | irix6* | nonstopux*)
16311   case $host_os in
16312     nonstopux*) version_type=nonstopux ;;
16313     *)
16314         if test "$lt_cv_prog_gnu_ld" = yes; then
16315                 version_type=linux
16316         else
16317                 version_type=irix
16318         fi ;;
16319   esac
16320   need_lib_prefix=no
16321   need_version=no
16322   soname_spec='${libname}${release}${shared_ext}$major'
16323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16324   case $host_os in
16325   irix5* | nonstopux*)
16326     libsuff= shlibsuff=
16327     ;;
16328   *)
16329     case $LD in # libtool.m4 will add one of these switches to LD
16330     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16331       libsuff= shlibsuff= libmagic=32-bit;;
16332     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16333       libsuff=32 shlibsuff=N32 libmagic=N32;;
16334     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16335       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16336     *) libsuff= shlibsuff= libmagic=never-match;;
16337     esac
16338     ;;
16339   esac
16340   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16341   shlibpath_overrides_runpath=no
16342   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16343   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16344   hardcode_into_libs=yes
16345   ;;
16346
16347 # No shared lib support for Linux oldld, aout, or coff.
16348 linux*oldld* | linux*aout* | linux*coff*)
16349   dynamic_linker=no
16350   ;;
16351
16352 # This must be Linux ELF.
16353 linux*)
16354   version_type=linux
16355   need_lib_prefix=no
16356   need_version=no
16357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358   soname_spec='${libname}${release}${shared_ext}$major'
16359   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16360   shlibpath_var=LD_LIBRARY_PATH
16361   shlibpath_overrides_runpath=no
16362   # This implies no fast_install, which is unacceptable.
16363   # Some rework will be needed to allow for fast_install
16364   # before this can be enabled.
16365   hardcode_into_libs=yes
16366
16367   # We used to test for /lib/ld.so.1 and disable shared libraries on
16368   # powerpc, because MkLinux only supported shared libraries with the
16369   # GNU dynamic linker.  Since this was broken with cross compilers,
16370   # most powerpc-linux boxes support dynamic linking these days and
16371   # people can always --disable-shared, the test was removed, and we
16372   # assume the GNU/Linux dynamic linker is in use.
16373   dynamic_linker='GNU/Linux ld.so'
16374   ;;
16375
16376 netbsd*)
16377   version_type=sunos
16378   need_lib_prefix=no
16379   need_version=no
16380   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16381     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16382     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16383     dynamic_linker='NetBSD (a.out) ld.so'
16384   else
16385     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16386     soname_spec='${libname}${release}${shared_ext}$major'
16387     dynamic_linker='NetBSD ld.elf_so'
16388   fi
16389   shlibpath_var=LD_LIBRARY_PATH
16390   shlibpath_overrides_runpath=yes
16391   hardcode_into_libs=yes
16392   ;;
16393
16394 newsos6)
16395   version_type=linux
16396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397   shlibpath_var=LD_LIBRARY_PATH
16398   shlibpath_overrides_runpath=yes
16399   ;;
16400
16401 nto-qnx)
16402   version_type=linux
16403   need_lib_prefix=no
16404   need_version=no
16405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406   soname_spec='${libname}${release}${shared_ext}$major'
16407   shlibpath_var=LD_LIBRARY_PATH
16408   shlibpath_overrides_runpath=yes
16409   ;;
16410
16411 openbsd*)
16412   version_type=sunos
16413   need_lib_prefix=no
16414   need_version=no
16415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16416   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16417   shlibpath_var=LD_LIBRARY_PATH
16418   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16419     case $host_os in
16420       openbsd2.[89] | openbsd2.[89].*)
16421         shlibpath_overrides_runpath=no
16422         ;;
16423       *)
16424         shlibpath_overrides_runpath=yes
16425         ;;
16426       esac
16427   else
16428     shlibpath_overrides_runpath=yes
16429   fi
16430   ;;
16431
16432 os2*)
16433   libname_spec='$name'
16434   shrext=".dll"
16435   need_lib_prefix=no
16436   library_names_spec='$libname${shared_ext} $libname.a'
16437   dynamic_linker='OS/2 ld.exe'
16438   shlibpath_var=LIBPATH
16439   ;;
16440
16441 osf3* | osf4* | osf5*)
16442   version_type=osf
16443   need_lib_prefix=no
16444   need_version=no
16445   soname_spec='${libname}${release}${shared_ext}$major'
16446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447   shlibpath_var=LD_LIBRARY_PATH
16448   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16449   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16450   ;;
16451
16452 sco3.2v5*)
16453   version_type=osf
16454   soname_spec='${libname}${release}${shared_ext}$major'
16455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456   shlibpath_var=LD_LIBRARY_PATH
16457   ;;
16458
16459 solaris*)
16460   version_type=linux
16461   need_lib_prefix=no
16462   need_version=no
16463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16464   soname_spec='${libname}${release}${shared_ext}$major'
16465   shlibpath_var=LD_LIBRARY_PATH
16466   shlibpath_overrides_runpath=yes
16467   hardcode_into_libs=yes
16468   # ldd complains unless libraries are executable
16469   postinstall_cmds='chmod +x $lib'
16470   ;;
16471
16472 sunos4*)
16473   version_type=sunos
16474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16475   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16476   shlibpath_var=LD_LIBRARY_PATH
16477   shlibpath_overrides_runpath=yes
16478   if test "$with_gnu_ld" = yes; then
16479     need_lib_prefix=no
16480   fi
16481   need_version=yes
16482   ;;
16483
16484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16485   version_type=linux
16486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16487   soname_spec='${libname}${release}${shared_ext}$major'
16488   shlibpath_var=LD_LIBRARY_PATH
16489   case $host_vendor in
16490     sni)
16491       shlibpath_overrides_runpath=no
16492       need_lib_prefix=no
16493       export_dynamic_flag_spec='${wl}-Blargedynsym'
16494       runpath_var=LD_RUN_PATH
16495       ;;
16496     siemens)
16497       need_lib_prefix=no
16498       ;;
16499     motorola)
16500       need_lib_prefix=no
16501       need_version=no
16502       shlibpath_overrides_runpath=no
16503       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16504       ;;
16505   esac
16506   ;;
16507
16508 sysv4*MP*)
16509   if test -d /usr/nec ;then
16510     version_type=linux
16511     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16512     soname_spec='$libname${shared_ext}.$major'
16513     shlibpath_var=LD_LIBRARY_PATH
16514   fi
16515   ;;
16516
16517 uts4*)
16518   version_type=linux
16519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520   soname_spec='${libname}${release}${shared_ext}$major'
16521   shlibpath_var=LD_LIBRARY_PATH
16522   ;;
16523
16524 *)
16525   dynamic_linker=no
16526   ;;
16527 esac
16528 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16529 echo "${ECHO_T}$dynamic_linker" >&6
16530 test "$dynamic_linker" = no && can_build_shared=no
16531
16532 if test "x$enable_dlopen" != xyes; then
16533   enable_dlopen=unknown
16534   enable_dlopen_self=unknown
16535   enable_dlopen_self_static=unknown
16536 else
16537   lt_cv_dlopen=no
16538   lt_cv_dlopen_libs=
16539
16540   case $host_os in
16541   beos*)
16542     lt_cv_dlopen="load_add_on"
16543     lt_cv_dlopen_libs=
16544     lt_cv_dlopen_self=yes
16545     ;;
16546
16547   mingw* | pw32*)
16548     lt_cv_dlopen="LoadLibrary"
16549     lt_cv_dlopen_libs=
16550    ;;
16551
16552   cygwin*)
16553     lt_cv_dlopen="dlopen"
16554     lt_cv_dlopen_libs=
16555    ;;
16556
16557   darwin*)
16558   # if libdl is installed we need to link against it
16559     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16560 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16561 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16562   echo $ECHO_N "(cached) $ECHO_C" >&6
16563 else
16564   ac_check_lib_save_LIBS=$LIBS
16565 LIBS="-ldl  $LIBS"
16566 cat >conftest.$ac_ext <<_ACEOF
16567 #line $LINENO "configure"
16568 /* confdefs.h.  */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h.  */
16573
16574 /* Override any gcc2 internal prototype to avoid an error.  */
16575 #ifdef __cplusplus
16576 extern "C"
16577 #endif
16578 /* We use char because int might match the return type of a gcc2
16579    builtin and then its argument prototype would still apply.  */
16580 char dlopen ();
16581 int
16582 main ()
16583 {
16584 dlopen ();
16585   ;
16586   return 0;
16587 }
16588 _ACEOF
16589 rm -f conftest.$ac_objext conftest$ac_exeext
16590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16591   (eval $ac_link) 2>&5
16592   ac_status=$?
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); } &&
16595          { ac_try='test -s conftest$ac_exeext'
16596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597   (eval $ac_try) 2>&5
16598   ac_status=$?
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); }; }; then
16601   ac_cv_lib_dl_dlopen=yes
16602 else
16603   echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16605
16606 ac_cv_lib_dl_dlopen=no
16607 fi
16608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16609 LIBS=$ac_check_lib_save_LIBS
16610 fi
16611 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16612 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16613 if test $ac_cv_lib_dl_dlopen = yes; then
16614   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16615 else
16616
16617     lt_cv_dlopen="dyld"
16618     lt_cv_dlopen_libs=
16619     lt_cv_dlopen_self=yes
16620
16621 fi
16622
16623    ;;
16624
16625   *)
16626     echo "$as_me:$LINENO: checking for shl_load" >&5
16627 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16628 if test "${ac_cv_func_shl_load+set}" = set; then
16629   echo $ECHO_N "(cached) $ECHO_C" >&6
16630 else
16631   cat >conftest.$ac_ext <<_ACEOF
16632 #line $LINENO "configure"
16633 /* confdefs.h.  */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h.  */
16638 /* System header to define __stub macros and hopefully few prototypes,
16639     which can conflict with char shl_load (); below.
16640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16641     <limits.h> exists even on freestanding compilers.  */
16642 #ifdef __STDC__
16643 # include <limits.h>
16644 #else
16645 # include <assert.h>
16646 #endif
16647 /* Override any gcc2 internal prototype to avoid an error.  */
16648 #ifdef __cplusplus
16649 extern "C"
16650 {
16651 #endif
16652 /* We use char because int might match the return type of a gcc2
16653    builtin and then its argument prototype would still apply.  */
16654 char shl_load ();
16655 /* The GNU C library defines this for functions which it implements
16656     to always fail with ENOSYS.  Some functions are actually named
16657     something starting with __ and the normal name is an alias.  */
16658 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16659 choke me
16660 #else
16661 char (*f) () = shl_load;
16662 #endif
16663 #ifdef __cplusplus
16664 }
16665 #endif
16666
16667 int
16668 main ()
16669 {
16670 return f != shl_load;
16671   ;
16672   return 0;
16673 }
16674 _ACEOF
16675 rm -f conftest.$ac_objext conftest$ac_exeext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16677   (eval $ac_link) 2>&5
16678   ac_status=$?
16679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680   (exit $ac_status); } &&
16681          { ac_try='test -s conftest$ac_exeext'
16682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683   (eval $ac_try) 2>&5
16684   ac_status=$?
16685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686   (exit $ac_status); }; }; then
16687   ac_cv_func_shl_load=yes
16688 else
16689   echo "$as_me: failed program was:" >&5
16690 sed 's/^/| /' conftest.$ac_ext >&5
16691
16692 ac_cv_func_shl_load=no
16693 fi
16694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16695 fi
16696 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16697 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16698 if test $ac_cv_func_shl_load = yes; then
16699   lt_cv_dlopen="shl_load"
16700 else
16701   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16702 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16703 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16704   echo $ECHO_N "(cached) $ECHO_C" >&6
16705 else
16706   ac_check_lib_save_LIBS=$LIBS
16707 LIBS="-ldld  $LIBS"
16708 cat >conftest.$ac_ext <<_ACEOF
16709 #line $LINENO "configure"
16710 /* confdefs.h.  */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h.  */
16715
16716 /* Override any gcc2 internal prototype to avoid an error.  */
16717 #ifdef __cplusplus
16718 extern "C"
16719 #endif
16720 /* We use char because int might match the return type of a gcc2
16721    builtin and then its argument prototype would still apply.  */
16722 char shl_load ();
16723 int
16724 main ()
16725 {
16726 shl_load ();
16727   ;
16728   return 0;
16729 }
16730 _ACEOF
16731 rm -f conftest.$ac_objext conftest$ac_exeext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16733   (eval $ac_link) 2>&5
16734   ac_status=$?
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); } &&
16737          { ac_try='test -s conftest$ac_exeext'
16738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739   (eval $ac_try) 2>&5
16740   ac_status=$?
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); }; }; then
16743   ac_cv_lib_dld_shl_load=yes
16744 else
16745   echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 ac_cv_lib_dld_shl_load=no
16749 fi
16750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16751 LIBS=$ac_check_lib_save_LIBS
16752 fi
16753 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16754 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16755 if test $ac_cv_lib_dld_shl_load = yes; then
16756   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16757 else
16758   echo "$as_me:$LINENO: checking for dlopen" >&5
16759 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16760 if test "${ac_cv_func_dlopen+set}" = set; then
16761   echo $ECHO_N "(cached) $ECHO_C" >&6
16762 else
16763   cat >conftest.$ac_ext <<_ACEOF
16764 #line $LINENO "configure"
16765 /* confdefs.h.  */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h.  */
16770 /* System header to define __stub macros and hopefully few prototypes,
16771     which can conflict with char dlopen (); below.
16772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16773     <limits.h> exists even on freestanding compilers.  */
16774 #ifdef __STDC__
16775 # include <limits.h>
16776 #else
16777 # include <assert.h>
16778 #endif
16779 /* Override any gcc2 internal prototype to avoid an error.  */
16780 #ifdef __cplusplus
16781 extern "C"
16782 {
16783 #endif
16784 /* We use char because int might match the return type of a gcc2
16785    builtin and then its argument prototype would still apply.  */
16786 char dlopen ();
16787 /* The GNU C library defines this for functions which it implements
16788     to always fail with ENOSYS.  Some functions are actually named
16789     something starting with __ and the normal name is an alias.  */
16790 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16791 choke me
16792 #else
16793 char (*f) () = dlopen;
16794 #endif
16795 #ifdef __cplusplus
16796 }
16797 #endif
16798
16799 int
16800 main ()
16801 {
16802 return f != dlopen;
16803   ;
16804   return 0;
16805 }
16806 _ACEOF
16807 rm -f conftest.$ac_objext conftest$ac_exeext
16808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16809   (eval $ac_link) 2>&5
16810   ac_status=$?
16811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); } &&
16813          { ac_try='test -s conftest$ac_exeext'
16814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815   (eval $ac_try) 2>&5
16816   ac_status=$?
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); }; }; then
16819   ac_cv_func_dlopen=yes
16820 else
16821   echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16823
16824 ac_cv_func_dlopen=no
16825 fi
16826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16827 fi
16828 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16829 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16830 if test $ac_cv_func_dlopen = yes; then
16831   lt_cv_dlopen="dlopen"
16832 else
16833   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16834 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16835 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16836   echo $ECHO_N "(cached) $ECHO_C" >&6
16837 else
16838   ac_check_lib_save_LIBS=$LIBS
16839 LIBS="-ldl  $LIBS"
16840 cat >conftest.$ac_ext <<_ACEOF
16841 #line $LINENO "configure"
16842 /* confdefs.h.  */
16843 _ACEOF
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h.  */
16847
16848 /* Override any gcc2 internal prototype to avoid an error.  */
16849 #ifdef __cplusplus
16850 extern "C"
16851 #endif
16852 /* We use char because int might match the return type of a gcc2
16853    builtin and then its argument prototype would still apply.  */
16854 char dlopen ();
16855 int
16856 main ()
16857 {
16858 dlopen ();
16859   ;
16860   return 0;
16861 }
16862 _ACEOF
16863 rm -f conftest.$ac_objext conftest$ac_exeext
16864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16865   (eval $ac_link) 2>&5
16866   ac_status=$?
16867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868   (exit $ac_status); } &&
16869          { ac_try='test -s conftest$ac_exeext'
16870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871   (eval $ac_try) 2>&5
16872   ac_status=$?
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); }; }; then
16875   ac_cv_lib_dl_dlopen=yes
16876 else
16877   echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16879
16880 ac_cv_lib_dl_dlopen=no
16881 fi
16882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16883 LIBS=$ac_check_lib_save_LIBS
16884 fi
16885 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16886 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16887 if test $ac_cv_lib_dl_dlopen = yes; then
16888   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16889 else
16890   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16891 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16892 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16893   echo $ECHO_N "(cached) $ECHO_C" >&6
16894 else
16895   ac_check_lib_save_LIBS=$LIBS
16896 LIBS="-lsvld  $LIBS"
16897 cat >conftest.$ac_ext <<_ACEOF
16898 #line $LINENO "configure"
16899 /* confdefs.h.  */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h.  */
16904
16905 /* Override any gcc2 internal prototype to avoid an error.  */
16906 #ifdef __cplusplus
16907 extern "C"
16908 #endif
16909 /* We use char because int might match the return type of a gcc2
16910    builtin and then its argument prototype would still apply.  */
16911 char dlopen ();
16912 int
16913 main ()
16914 {
16915 dlopen ();
16916   ;
16917   return 0;
16918 }
16919 _ACEOF
16920 rm -f conftest.$ac_objext conftest$ac_exeext
16921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16922   (eval $ac_link) 2>&5
16923   ac_status=$?
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); } &&
16926          { ac_try='test -s conftest$ac_exeext'
16927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928   (eval $ac_try) 2>&5
16929   ac_status=$?
16930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931   (exit $ac_status); }; }; then
16932   ac_cv_lib_svld_dlopen=yes
16933 else
16934   echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16936
16937 ac_cv_lib_svld_dlopen=no
16938 fi
16939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16940 LIBS=$ac_check_lib_save_LIBS
16941 fi
16942 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16943 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16944 if test $ac_cv_lib_svld_dlopen = yes; then
16945   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16946 else
16947   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16948 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16949 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16950   echo $ECHO_N "(cached) $ECHO_C" >&6
16951 else
16952   ac_check_lib_save_LIBS=$LIBS
16953 LIBS="-ldld  $LIBS"
16954 cat >conftest.$ac_ext <<_ACEOF
16955 #line $LINENO "configure"
16956 /* confdefs.h.  */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h.  */
16961
16962 /* Override any gcc2 internal prototype to avoid an error.  */
16963 #ifdef __cplusplus
16964 extern "C"
16965 #endif
16966 /* We use char because int might match the return type of a gcc2
16967    builtin and then its argument prototype would still apply.  */
16968 char dld_link ();
16969 int
16970 main ()
16971 {
16972 dld_link ();
16973   ;
16974   return 0;
16975 }
16976 _ACEOF
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16979   (eval $ac_link) 2>&5
16980   ac_status=$?
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); } &&
16983          { ac_try='test -s conftest$ac_exeext'
16984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985   (eval $ac_try) 2>&5
16986   ac_status=$?
16987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988   (exit $ac_status); }; }; then
16989   ac_cv_lib_dld_dld_link=yes
16990 else
16991   echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16993
16994 ac_cv_lib_dld_dld_link=no
16995 fi
16996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16997 LIBS=$ac_check_lib_save_LIBS
16998 fi
16999 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17000 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17001 if test $ac_cv_lib_dld_dld_link = yes; then
17002   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17003 fi
17004
17005
17006 fi
17007
17008
17009 fi
17010
17011
17012 fi
17013
17014
17015 fi
17016
17017
17018 fi
17019
17020     ;;
17021   esac
17022
17023   if test "x$lt_cv_dlopen" != xno; then
17024     enable_dlopen=yes
17025   else
17026     enable_dlopen=no
17027   fi
17028
17029   case $lt_cv_dlopen in
17030   dlopen)
17031     save_CPPFLAGS="$CPPFLAGS"
17032     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17033
17034     save_LDFLAGS="$LDFLAGS"
17035     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17036
17037     save_LIBS="$LIBS"
17038     LIBS="$lt_cv_dlopen_libs $LIBS"
17039
17040     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17041 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17042 if test "${lt_cv_dlopen_self+set}" = set; then
17043   echo $ECHO_N "(cached) $ECHO_C" >&6
17044 else
17045           if test "$cross_compiling" = yes; then :
17046   lt_cv_dlopen_self=cross
17047 else
17048   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17049   lt_status=$lt_dlunknown
17050   cat > conftest.$ac_ext <<EOF
17051 #line 17051 "configure"
17052 #include "confdefs.h"
17053
17054 #if HAVE_DLFCN_H
17055 #include <dlfcn.h>
17056 #endif
17057
17058 #include <stdio.h>
17059
17060 #ifdef RTLD_GLOBAL
17061 #  define LT_DLGLOBAL           RTLD_GLOBAL
17062 #else
17063 #  ifdef DL_GLOBAL
17064 #    define LT_DLGLOBAL         DL_GLOBAL
17065 #  else
17066 #    define LT_DLGLOBAL         0
17067 #  endif
17068 #endif
17069
17070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17071    find out it does not work in some platform. */
17072 #ifndef LT_DLLAZY_OR_NOW
17073 #  ifdef RTLD_LAZY
17074 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17075 #  else
17076 #    ifdef DL_LAZY
17077 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17078 #    else
17079 #      ifdef RTLD_NOW
17080 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17081 #      else
17082 #        ifdef DL_NOW
17083 #          define LT_DLLAZY_OR_NOW      DL_NOW
17084 #        else
17085 #          define LT_DLLAZY_OR_NOW      0
17086 #        endif
17087 #      endif
17088 #    endif
17089 #  endif
17090 #endif
17091
17092 #ifdef __cplusplus
17093 extern "C" void exit (int);
17094 #endif
17095
17096 void fnord() { int i=42;}
17097 int main ()
17098 {
17099   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17100   int status = $lt_dlunknown;
17101
17102   if (self)
17103     {
17104       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17105       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17106       /* dlclose (self); */
17107     }
17108
17109     exit (status);
17110 }
17111 EOF
17112   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17113   (eval $ac_link) 2>&5
17114   ac_status=$?
17115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17117     (./conftest; exit; ) 2>/dev/null
17118     lt_status=$?
17119     case x$lt_status in
17120       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17121       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17122       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17123     esac
17124   else :
17125     # compilation failed
17126     lt_cv_dlopen_self=no
17127   fi
17128 fi
17129 rm -fr conftest*
17130
17131
17132 fi
17133 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17134 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17135
17136     if test "x$lt_cv_dlopen_self" = xyes; then
17137       LDFLAGS="$LDFLAGS $link_static_flag"
17138       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17139 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17140 if test "${lt_cv_dlopen_self_static+set}" = set; then
17141   echo $ECHO_N "(cached) $ECHO_C" >&6
17142 else
17143           if test "$cross_compiling" = yes; then :
17144   lt_cv_dlopen_self_static=cross
17145 else
17146   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17147   lt_status=$lt_dlunknown
17148   cat > conftest.$ac_ext <<EOF
17149 #line 17149 "configure"
17150 #include "confdefs.h"
17151
17152 #if HAVE_DLFCN_H
17153 #include <dlfcn.h>
17154 #endif
17155
17156 #include <stdio.h>
17157
17158 #ifdef RTLD_GLOBAL
17159 #  define LT_DLGLOBAL           RTLD_GLOBAL
17160 #else
17161 #  ifdef DL_GLOBAL
17162 #    define LT_DLGLOBAL         DL_GLOBAL
17163 #  else
17164 #    define LT_DLGLOBAL         0
17165 #  endif
17166 #endif
17167
17168 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17169    find out it does not work in some platform. */
17170 #ifndef LT_DLLAZY_OR_NOW
17171 #  ifdef RTLD_LAZY
17172 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17173 #  else
17174 #    ifdef DL_LAZY
17175 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17176 #    else
17177 #      ifdef RTLD_NOW
17178 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17179 #      else
17180 #        ifdef DL_NOW
17181 #          define LT_DLLAZY_OR_NOW      DL_NOW
17182 #        else
17183 #          define LT_DLLAZY_OR_NOW      0
17184 #        endif
17185 #      endif
17186 #    endif
17187 #  endif
17188 #endif
17189
17190 #ifdef __cplusplus
17191 extern "C" void exit (int);
17192 #endif
17193
17194 void fnord() { int i=42;}
17195 int main ()
17196 {
17197   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17198   int status = $lt_dlunknown;
17199
17200   if (self)
17201     {
17202       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17203       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17204       /* dlclose (self); */
17205     }
17206
17207     exit (status);
17208 }
17209 EOF
17210   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17211   (eval $ac_link) 2>&5
17212   ac_status=$?
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17215     (./conftest; exit; ) 2>/dev/null
17216     lt_status=$?
17217     case x$lt_status in
17218       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17219       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17220       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17221     esac
17222   else :
17223     # compilation failed
17224     lt_cv_dlopen_self_static=no
17225   fi
17226 fi
17227 rm -fr conftest*
17228
17229
17230 fi
17231 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17232 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17233     fi
17234
17235     CPPFLAGS="$save_CPPFLAGS"
17236     LDFLAGS="$save_LDFLAGS"
17237     LIBS="$save_LIBS"
17238     ;;
17239   esac
17240
17241   case $lt_cv_dlopen_self in
17242   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17243   *) enable_dlopen_self=unknown ;;
17244   esac
17245
17246   case $lt_cv_dlopen_self_static in
17247   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17248   *) enable_dlopen_self_static=unknown ;;
17249   esac
17250 fi
17251
17252
17253 # The else clause should only fire when bootstrapping the
17254 # libtool distribution, otherwise you forgot to ship ltmain.sh
17255 # with your package, and you will get complaints that there are
17256 # no rules to generate ltmain.sh.
17257 if test -f "$ltmain"; then
17258   # See if we are running on zsh, and set the options which allow our commands through
17259   # without removal of \ escapes.
17260   if test -n "${ZSH_VERSION+set}" ; then
17261     setopt NO_GLOB_SUBST
17262   fi
17263   # Now quote all the things that may contain metacharacters while being
17264   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17265   # variables and quote the copies for generation of the libtool script.
17266   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17267     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17268     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17269     deplibs_check_method reload_flag reload_cmds need_locks \
17270     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17271     lt_cv_sys_global_symbol_to_c_name_address \
17272     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17273     old_postinstall_cmds old_postuninstall_cmds \
17274     compiler_GCJ \
17275     CC_GCJ \
17276     LD_GCJ \
17277     lt_prog_compiler_wl_GCJ \
17278     lt_prog_compiler_pic_GCJ \
17279     lt_prog_compiler_static_GCJ \
17280     lt_prog_compiler_no_builtin_flag_GCJ \
17281     export_dynamic_flag_spec_GCJ \
17282     thread_safe_flag_spec_GCJ \
17283     whole_archive_flag_spec_GCJ \
17284     enable_shared_with_static_runtimes_GCJ \
17285     old_archive_cmds_GCJ \
17286     old_archive_from_new_cmds_GCJ \
17287     predep_objects_GCJ \
17288     postdep_objects_GCJ \
17289     predeps_GCJ \
17290     postdeps_GCJ \
17291     compiler_lib_search_path_GCJ \
17292     archive_cmds_GCJ \
17293     archive_expsym_cmds_GCJ \
17294     postinstall_cmds_GCJ \
17295     postuninstall_cmds_GCJ \
17296     old_archive_from_expsyms_cmds_GCJ \
17297     allow_undefined_flag_GCJ \
17298     no_undefined_flag_GCJ \
17299     export_symbols_cmds_GCJ \
17300     hardcode_libdir_flag_spec_GCJ \
17301     hardcode_libdir_flag_spec_ld_GCJ \
17302     hardcode_libdir_separator_GCJ \
17303     hardcode_automatic_GCJ \
17304     module_cmds_GCJ \
17305     module_expsym_cmds_GCJ \
17306     lt_cv_prog_compiler_c_o_GCJ \
17307     exclude_expsyms_GCJ \
17308     include_expsyms_GCJ; do
17309
17310     case $var in
17311     old_archive_cmds_GCJ | \
17312     old_archive_from_new_cmds_GCJ | \
17313     archive_cmds_GCJ | \
17314     archive_expsym_cmds_GCJ | \
17315     module_cmds_GCJ | \
17316     module_expsym_cmds_GCJ | \
17317     old_archive_from_expsyms_cmds_GCJ | \
17318     export_symbols_cmds_GCJ | \
17319     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17320     postinstall_cmds | postuninstall_cmds | \
17321     old_postinstall_cmds | old_postuninstall_cmds | \
17322     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17323       # Double-quote double-evaled strings.
17324       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
17325       ;;
17326     *)
17327       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17328       ;;
17329     esac
17330   done
17331
17332   case $lt_echo in
17333   *'\$0 --fallback-echo"')
17334     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17335     ;;
17336   esac
17337
17338 cfgfile="$ofile"
17339
17340   cat <<__EOF__ >> "$cfgfile"
17341 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17342
17343 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17344
17345 # Set the command separator (default: ~)
17346 _S_=\${LIBTOOL_CMD_SEP-\~}
17347
17348 # Shell to use when invoking shell scripts.
17349 SHELL=$lt_SHELL
17350
17351 # Whether or not to build shared libraries.
17352 build_libtool_libs=$enable_shared
17353
17354 # Whether or not to build static libraries.
17355 build_old_libs=$enable_static
17356
17357 # Whether or not to add -lc for building shared libraries.
17358 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17359
17360 # Whether or not to disallow shared libs when runtime libs are static
17361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17362
17363 # Whether or not to optimize for fast installation.
17364 fast_install=$enable_fast_install
17365
17366 # The host system.
17367 host_alias=$host_alias
17368 host=$host
17369
17370 # An echo program that does not interpret backslashes.
17371 echo=$lt_echo
17372
17373 # The archiver.
17374 AR=$lt_AR
17375 AR_FLAGS=$lt_AR_FLAGS
17376
17377 # A C compiler.
17378 LTCC=$lt_LTCC
17379
17380 # A language-specific compiler.
17381 CC=$lt_compiler_GCJ
17382
17383 # Is the compiler the GNU C compiler?
17384 with_gcc=$GCC_GCJ
17385
17386 # An ERE matcher.
17387 EGREP=$lt_EGREP
17388
17389 # The linker used to build libraries.
17390 LD=$lt_LD_GCJ
17391
17392 # Whether we need hard or soft links.
17393 LN_S=$lt_LN_S
17394
17395 # A BSD-compatible nm program.
17396 NM=$lt_NM
17397
17398 # A symbol stripping program
17399 STRIP=$STRIP
17400
17401 # Used to examine libraries when file_magic_cmd begins "file"
17402 MAGIC_CMD=$MAGIC_CMD
17403
17404 # Used on cygwin: DLL creation program.
17405 DLLTOOL="$DLLTOOL"
17406
17407 # Used on cygwin: object dumper.
17408 OBJDUMP="$OBJDUMP"
17409
17410 # Used on cygwin: assembler.
17411 AS="$AS"
17412
17413 # The name of the directory that contains temporary libtool files.
17414 objdir=$objdir
17415
17416 # How to create reloadable object files.
17417 reload_flag=$lt_reload_flag
17418 reload_cmds=$lt_reload_cmds
17419
17420 # How to pass a linker flag through the compiler.
17421 wl=$lt_lt_prog_compiler_wl_GCJ
17422
17423 # Object file suffix (normally "o").
17424 objext="$ac_objext"
17425
17426 # Old archive suffix (normally "a").
17427 libext="$libext"
17428
17429 # Shared library suffix (normally ".so").
17430 shrext='$shrext'
17431
17432 # Executable file suffix (normally "").
17433 exeext="$exeext"
17434
17435 # Additional compiler flags for building library objects.
17436 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17437 pic_mode=$pic_mode
17438
17439 # What is the maximum length of a command?
17440 max_cmd_len=$lt_cv_sys_max_cmd_len
17441
17442 # Does compiler simultaneously support -c and -o options?
17443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17444
17445 # Must we lock files when doing compilation ?
17446 need_locks=$lt_need_locks
17447
17448 # Do we need the lib prefix for modules?
17449 need_lib_prefix=$need_lib_prefix
17450
17451 # Do we need a version for libraries?
17452 need_version=$need_version
17453
17454 # Whether dlopen is supported.
17455 dlopen_support=$enable_dlopen
17456
17457 # Whether dlopen of programs is supported.
17458 dlopen_self=$enable_dlopen_self
17459
17460 # Whether dlopen of statically linked programs is supported.
17461 dlopen_self_static=$enable_dlopen_self_static
17462
17463 # Compiler flag to prevent dynamic linking.
17464 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17465
17466 # Compiler flag to turn off builtin functions.
17467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17468
17469 # Compiler flag to allow reflexive dlopens.
17470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17471
17472 # Compiler flag to generate shared objects directly from archives.
17473 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17474
17475 # Compiler flag to generate thread-safe objects.
17476 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17477
17478 # Library versioning type.
17479 version_type=$version_type
17480
17481 # Format of library name prefix.
17482 libname_spec=$lt_libname_spec
17483
17484 # List of archive names.  First name is the real one, the rest are links.
17485 # The last name is the one that the linker finds with -lNAME.
17486 library_names_spec=$lt_library_names_spec
17487
17488 # The coded name of the library, if different from the real name.
17489 soname_spec=$lt_soname_spec
17490
17491 # Commands used to build and install an old-style archive.
17492 RANLIB=$lt_RANLIB
17493 old_archive_cmds=$lt_old_archive_cmds_GCJ
17494 old_postinstall_cmds=$lt_old_postinstall_cmds
17495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17496
17497 # Create an old-style archive from a shared archive.
17498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17499
17500 # Create a temporary old-style archive to link instead of a shared archive.
17501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17502
17503 # Commands used to build and install a shared archive.
17504 archive_cmds=$lt_archive_cmds_GCJ
17505 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17506 postinstall_cmds=$lt_postinstall_cmds
17507 postuninstall_cmds=$lt_postuninstall_cmds
17508
17509 # Commands used to build a loadable module (assumed same as above if empty)
17510 module_cmds=$lt_module_cmds_GCJ
17511 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17512
17513 # Commands to strip libraries.
17514 old_striplib=$lt_old_striplib
17515 striplib=$lt_striplib
17516
17517 # Dependencies to place before the objects being linked to create a
17518 # shared library.
17519 predep_objects=$lt_predep_objects_GCJ
17520
17521 # Dependencies to place after the objects being linked to create a
17522 # shared library.
17523 postdep_objects=$lt_postdep_objects_GCJ
17524
17525 # Dependencies to place before the objects being linked to create a
17526 # shared library.
17527 predeps=$lt_predeps_GCJ
17528
17529 # Dependencies to place after the objects being linked to create a
17530 # shared library.
17531 postdeps=$lt_postdeps_GCJ
17532
17533 # The library search path used internally by the compiler when linking
17534 # a shared library.
17535 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17536
17537 # Method to check whether dependent libraries are shared objects.
17538 deplibs_check_method=$lt_deplibs_check_method
17539
17540 # Command to use when deplibs_check_method == file_magic.
17541 file_magic_cmd=$lt_file_magic_cmd
17542
17543 # Flag that allows shared libraries with undefined symbols to be built.
17544 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17545
17546 # Flag that forces no undefined symbols.
17547 no_undefined_flag=$lt_no_undefined_flag_GCJ
17548
17549 # Commands used to finish a libtool library installation in a directory.
17550 finish_cmds=$lt_finish_cmds
17551
17552 # Same as above, but a single script fragment to be evaled but not shown.
17553 finish_eval=$lt_finish_eval
17554
17555 # Take the output of nm and produce a listing of raw symbols and C names.
17556 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17557
17558 # Transform the output of nm in a proper C declaration
17559 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17560
17561 # Transform the output of nm in a C name address pair
17562 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17563
17564 # This is the shared library runtime path variable.
17565 runpath_var=$runpath_var
17566
17567 # This is the shared library path variable.
17568 shlibpath_var=$shlibpath_var
17569
17570 # Is shlibpath searched before the hard-coded library search path?
17571 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17572
17573 # How to hardcode a shared library path into an executable.
17574 hardcode_action=$hardcode_action_GCJ
17575
17576 # Whether we should hardcode library paths into libraries.
17577 hardcode_into_libs=$hardcode_into_libs
17578
17579 # Flag to hardcode \$libdir into a binary during linking.
17580 # This must work even if \$libdir does not exist.
17581 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17582
17583 # If ld is used when linking, flag to hardcode \$libdir into
17584 # a binary during linking. This must work even if \$libdir does
17585 # not exist.
17586 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17587
17588 # Whether we need a single -rpath flag with a separated argument.
17589 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17590
17591 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17592 # resulting binary.
17593 hardcode_direct=$hardcode_direct_GCJ
17594
17595 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17596 # resulting binary.
17597 hardcode_minus_L=$hardcode_minus_L_GCJ
17598
17599 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17600 # the resulting binary.
17601 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17602
17603 # Set to yes if building a shared library automatically hardcodes DIR into the library
17604 # and all subsequent libraries and executables linked against it.
17605 hardcode_automatic=$hardcode_automatic_GCJ
17606
17607 # Variables whose values should be saved in libtool wrapper scripts and
17608 # restored at relink time.
17609 variables_saved_for_relink="$variables_saved_for_relink"
17610
17611 # Whether libtool must link a program against all its dependency libraries.
17612 link_all_deplibs=$link_all_deplibs_GCJ
17613
17614 # Compile-time system search path for libraries
17615 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17616
17617 # Run-time system search path for libraries
17618 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17619
17620 # Fix the shell variable \$srcfile for the compiler.
17621 fix_srcfile_path="$fix_srcfile_path_GCJ"
17622
17623 # Set to yes if exported symbols are required.
17624 always_export_symbols=$always_export_symbols_GCJ
17625
17626 # The commands to list exported symbols.
17627 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17628
17629 # The commands to extract the exported symbol list from a shared archive.
17630 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17631
17632 # Symbols that should not be listed in the preloaded symbols.
17633 exclude_expsyms=$lt_exclude_expsyms_GCJ
17634
17635 # Symbols that must always be exported.
17636 include_expsyms=$lt_include_expsyms_GCJ
17637
17638 # ### END LIBTOOL TAG CONFIG: $tagname
17639
17640 __EOF__
17641
17642
17643 else
17644   # If there is no Makefile yet, we rely on a make rule to execute
17645   # `config.status --recheck' to rerun these tests and create the
17646   # libtool script then.
17647   test -f Makefile && make "$ltmain"
17648 fi
17649
17650
17651 ac_ext=c
17652 ac_cpp='$CPP $CPPFLAGS'
17653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17656
17657 CC="$lt_save_CC"
17658
17659         else
17660           tagname=""
17661         fi
17662         ;;
17663
17664       RC)
17665
17666
17667
17668 # Source file extension for RC test sources.
17669 ac_ext=rc
17670
17671 # Object file extension for compiled RC test sources.
17672 objext=o
17673 objext_RC=$objext
17674
17675 # Code to be used in simple compile tests
17676 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17677
17678 # Code to be used in simple link tests
17679 lt_simple_link_test_code="$lt_simple_compile_test_code"
17680
17681 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17682
17683 # If no C compiler was specified, use CC.
17684 LTCC=${LTCC-"$CC"}
17685
17686 # Allow CC to be a program name with arguments.
17687 compiler=$CC
17688
17689
17690 # Allow CC to be a program name with arguments.
17691 lt_save_CC="$CC"
17692 CC=${RC-"windres"}
17693 compiler=$CC
17694 compiler_RC=$CC
17695 lt_cv_prog_compiler_c_o_RC=yes
17696
17697 # The else clause should only fire when bootstrapping the
17698 # libtool distribution, otherwise you forgot to ship ltmain.sh
17699 # with your package, and you will get complaints that there are
17700 # no rules to generate ltmain.sh.
17701 if test -f "$ltmain"; then
17702   # See if we are running on zsh, and set the options which allow our commands through
17703   # without removal of \ escapes.
17704   if test -n "${ZSH_VERSION+set}" ; then
17705     setopt NO_GLOB_SUBST
17706   fi
17707   # Now quote all the things that may contain metacharacters while being
17708   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17709   # variables and quote the copies for generation of the libtool script.
17710   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17711     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17712     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17713     deplibs_check_method reload_flag reload_cmds need_locks \
17714     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17715     lt_cv_sys_global_symbol_to_c_name_address \
17716     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17717     old_postinstall_cmds old_postuninstall_cmds \
17718     compiler_RC \
17719     CC_RC \
17720     LD_RC \
17721     lt_prog_compiler_wl_RC \
17722     lt_prog_compiler_pic_RC \
17723     lt_prog_compiler_static_RC \
17724     lt_prog_compiler_no_builtin_flag_RC \
17725     export_dynamic_flag_spec_RC \
17726     thread_safe_flag_spec_RC \
17727     whole_archive_flag_spec_RC \
17728     enable_shared_with_static_runtimes_RC \
17729     old_archive_cmds_RC \
17730     old_archive_from_new_cmds_RC \
17731     predep_objects_RC \
17732     postdep_objects_RC \
17733     predeps_RC \
17734     postdeps_RC \
17735     compiler_lib_search_path_RC \
17736     archive_cmds_RC \
17737     archive_expsym_cmds_RC \
17738     postinstall_cmds_RC \
17739     postuninstall_cmds_RC \
17740     old_archive_from_expsyms_cmds_RC \
17741     allow_undefined_flag_RC \
17742     no_undefined_flag_RC \
17743     export_symbols_cmds_RC \
17744     hardcode_libdir_flag_spec_RC \
17745     hardcode_libdir_flag_spec_ld_RC \
17746     hardcode_libdir_separator_RC \
17747     hardcode_automatic_RC \
17748     module_cmds_RC \
17749     module_expsym_cmds_RC \
17750     lt_cv_prog_compiler_c_o_RC \
17751     exclude_expsyms_RC \
17752     include_expsyms_RC; do
17753
17754     case $var in
17755     old_archive_cmds_RC | \
17756     old_archive_from_new_cmds_RC | \
17757     archive_cmds_RC | \
17758     archive_expsym_cmds_RC | \
17759     module_cmds_RC | \
17760     module_expsym_cmds_RC | \
17761     old_archive_from_expsyms_cmds_RC | \
17762     export_symbols_cmds_RC | \
17763     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17764     postinstall_cmds | postuninstall_cmds | \
17765     old_postinstall_cmds | old_postuninstall_cmds | \
17766     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17767       # Double-quote double-evaled strings.
17768       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
17769       ;;
17770     *)
17771       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17772       ;;
17773     esac
17774   done
17775
17776   case $lt_echo in
17777   *'\$0 --fallback-echo"')
17778     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17779     ;;
17780   esac
17781
17782 cfgfile="$ofile"
17783
17784   cat <<__EOF__ >> "$cfgfile"
17785 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17786
17787 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17788
17789 # Set the command separator (default: ~)
17790 _S_=\${LIBTOOL_CMD_SEP-\~}
17791
17792 # Shell to use when invoking shell scripts.
17793 SHELL=$lt_SHELL
17794
17795 # Whether or not to build shared libraries.
17796 build_libtool_libs=$enable_shared
17797
17798 # Whether or not to build static libraries.
17799 build_old_libs=$enable_static
17800
17801 # Whether or not to add -lc for building shared libraries.
17802 build_libtool_need_lc=$archive_cmds_need_lc_RC
17803
17804 # Whether or not to disallow shared libs when runtime libs are static
17805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17806
17807 # Whether or not to optimize for fast installation.
17808 fast_install=$enable_fast_install
17809
17810 # The host system.
17811 host_alias=$host_alias
17812 host=$host
17813
17814 # An echo program that does not interpret backslashes.
17815 echo=$lt_echo
17816
17817 # The archiver.
17818 AR=$lt_AR
17819 AR_FLAGS=$lt_AR_FLAGS
17820
17821 # A C compiler.
17822 LTCC=$lt_LTCC
17823
17824 # A language-specific compiler.
17825 CC=$lt_compiler_RC
17826
17827 # Is the compiler the GNU C compiler?
17828 with_gcc=$GCC_RC
17829
17830 # An ERE matcher.
17831 EGREP=$lt_EGREP
17832
17833 # The linker used to build libraries.
17834 LD=$lt_LD_RC
17835
17836 # Whether we need hard or soft links.
17837 LN_S=$lt_LN_S
17838
17839 # A BSD-compatible nm program.
17840 NM=$lt_NM
17841
17842 # A symbol stripping program
17843 STRIP=$STRIP
17844
17845 # Used to examine libraries when file_magic_cmd begins "file"
17846 MAGIC_CMD=$MAGIC_CMD
17847
17848 # Used on cygwin: DLL creation program.
17849 DLLTOOL="$DLLTOOL"
17850
17851 # Used on cygwin: object dumper.
17852 OBJDUMP="$OBJDUMP"
17853
17854 # Used on cygwin: assembler.
17855 AS="$AS"
17856
17857 # The name of the directory that contains temporary libtool files.
17858 objdir=$objdir
17859
17860 # How to create reloadable object files.
17861 reload_flag=$lt_reload_flag
17862 reload_cmds=$lt_reload_cmds
17863
17864 # How to pass a linker flag through the compiler.
17865 wl=$lt_lt_prog_compiler_wl_RC
17866
17867 # Object file suffix (normally "o").
17868 objext="$ac_objext"
17869
17870 # Old archive suffix (normally "a").
17871 libext="$libext"
17872
17873 # Shared library suffix (normally ".so").
17874 shrext='$shrext'
17875
17876 # Executable file suffix (normally "").
17877 exeext="$exeext"
17878
17879 # Additional compiler flags for building library objects.
17880 pic_flag=$lt_lt_prog_compiler_pic_RC
17881 pic_mode=$pic_mode
17882
17883 # What is the maximum length of a command?
17884 max_cmd_len=$lt_cv_sys_max_cmd_len
17885
17886 # Does compiler simultaneously support -c and -o options?
17887 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17888
17889 # Must we lock files when doing compilation ?
17890 need_locks=$lt_need_locks
17891
17892 # Do we need the lib prefix for modules?
17893 need_lib_prefix=$need_lib_prefix
17894
17895 # Do we need a version for libraries?
17896 need_version=$need_version
17897
17898 # Whether dlopen is supported.
17899 dlopen_support=$enable_dlopen
17900
17901 # Whether dlopen of programs is supported.
17902 dlopen_self=$enable_dlopen_self
17903
17904 # Whether dlopen of statically linked programs is supported.
17905 dlopen_self_static=$enable_dlopen_self_static
17906
17907 # Compiler flag to prevent dynamic linking.
17908 link_static_flag=$lt_lt_prog_compiler_static_RC
17909
17910 # Compiler flag to turn off builtin functions.
17911 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17912
17913 # Compiler flag to allow reflexive dlopens.
17914 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17915
17916 # Compiler flag to generate shared objects directly from archives.
17917 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17918
17919 # Compiler flag to generate thread-safe objects.
17920 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17921
17922 # Library versioning type.
17923 version_type=$version_type
17924
17925 # Format of library name prefix.
17926 libname_spec=$lt_libname_spec
17927
17928 # List of archive names.  First name is the real one, the rest are links.
17929 # The last name is the one that the linker finds with -lNAME.
17930 library_names_spec=$lt_library_names_spec
17931
17932 # The coded name of the library, if different from the real name.
17933 soname_spec=$lt_soname_spec
17934
17935 # Commands used to build and install an old-style archive.
17936 RANLIB=$lt_RANLIB
17937 old_archive_cmds=$lt_old_archive_cmds_RC
17938 old_postinstall_cmds=$lt_old_postinstall_cmds
17939 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17940
17941 # Create an old-style archive from a shared archive.
17942 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17943
17944 # Create a temporary old-style archive to link instead of a shared archive.
17945 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17946
17947 # Commands used to build and install a shared archive.
17948 archive_cmds=$lt_archive_cmds_RC
17949 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17950 postinstall_cmds=$lt_postinstall_cmds
17951 postuninstall_cmds=$lt_postuninstall_cmds
17952
17953 # Commands used to build a loadable module (assumed same as above if empty)
17954 module_cmds=$lt_module_cmds_RC
17955 module_expsym_cmds=$lt_module_expsym_cmds_RC
17956
17957 # Commands to strip libraries.
17958 old_striplib=$lt_old_striplib
17959 striplib=$lt_striplib
17960
17961 # Dependencies to place before the objects being linked to create a
17962 # shared library.
17963 predep_objects=$lt_predep_objects_RC
17964
17965 # Dependencies to place after the objects being linked to create a
17966 # shared library.
17967 postdep_objects=$lt_postdep_objects_RC
17968
17969 # Dependencies to place before the objects being linked to create a
17970 # shared library.
17971 predeps=$lt_predeps_RC
17972
17973 # Dependencies to place after the objects being linked to create a
17974 # shared library.
17975 postdeps=$lt_postdeps_RC
17976
17977 # The library search path used internally by the compiler when linking
17978 # a shared library.
17979 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17980
17981 # Method to check whether dependent libraries are shared objects.
17982 deplibs_check_method=$lt_deplibs_check_method
17983
17984 # Command to use when deplibs_check_method == file_magic.
17985 file_magic_cmd=$lt_file_magic_cmd
17986
17987 # Flag that allows shared libraries with undefined symbols to be built.
17988 allow_undefined_flag=$lt_allow_undefined_flag_RC
17989
17990 # Flag that forces no undefined symbols.
17991 no_undefined_flag=$lt_no_undefined_flag_RC
17992
17993 # Commands used to finish a libtool library installation in a directory.
17994 finish_cmds=$lt_finish_cmds
17995
17996 # Same as above, but a single script fragment to be evaled but not shown.
17997 finish_eval=$lt_finish_eval
17998
17999 # Take the output of nm and produce a listing of raw symbols and C names.
18000 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18001
18002 # Transform the output of nm in a proper C declaration
18003 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18004
18005 # Transform the output of nm in a C name address pair
18006 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18007
18008 # This is the shared library runtime path variable.
18009 runpath_var=$runpath_var
18010
18011 # This is the shared library path variable.
18012 shlibpath_var=$shlibpath_var
18013
18014 # Is shlibpath searched before the hard-coded library search path?
18015 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18016
18017 # How to hardcode a shared library path into an executable.
18018 hardcode_action=$hardcode_action_RC
18019
18020 # Whether we should hardcode library paths into libraries.
18021 hardcode_into_libs=$hardcode_into_libs
18022
18023 # Flag to hardcode \$libdir into a binary during linking.
18024 # This must work even if \$libdir does not exist.
18025 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18026
18027 # If ld is used when linking, flag to hardcode \$libdir into
18028 # a binary during linking. This must work even if \$libdir does
18029 # not exist.
18030 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18031
18032 # Whether we need a single -rpath flag with a separated argument.
18033 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18034
18035 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18036 # resulting binary.
18037 hardcode_direct=$hardcode_direct_RC
18038
18039 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18040 # resulting binary.
18041 hardcode_minus_L=$hardcode_minus_L_RC
18042
18043 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18044 # the resulting binary.
18045 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18046
18047 # Set to yes if building a shared library automatically hardcodes DIR into the library
18048 # and all subsequent libraries and executables linked against it.
18049 hardcode_automatic=$hardcode_automatic_RC
18050
18051 # Variables whose values should be saved in libtool wrapper scripts and
18052 # restored at relink time.
18053 variables_saved_for_relink="$variables_saved_for_relink"
18054
18055 # Whether libtool must link a program against all its dependency libraries.
18056 link_all_deplibs=$link_all_deplibs_RC
18057
18058 # Compile-time system search path for libraries
18059 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18060
18061 # Run-time system search path for libraries
18062 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18063
18064 # Fix the shell variable \$srcfile for the compiler.
18065 fix_srcfile_path="$fix_srcfile_path_RC"
18066
18067 # Set to yes if exported symbols are required.
18068 always_export_symbols=$always_export_symbols_RC
18069
18070 # The commands to list exported symbols.
18071 export_symbols_cmds=$lt_export_symbols_cmds_RC
18072
18073 # The commands to extract the exported symbol list from a shared archive.
18074 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18075
18076 # Symbols that should not be listed in the preloaded symbols.
18077 exclude_expsyms=$lt_exclude_expsyms_RC
18078
18079 # Symbols that must always be exported.
18080 include_expsyms=$lt_include_expsyms_RC
18081
18082 # ### END LIBTOOL TAG CONFIG: $tagname
18083
18084 __EOF__
18085
18086
18087 else
18088   # If there is no Makefile yet, we rely on a make rule to execute
18089   # `config.status --recheck' to rerun these tests and create the
18090   # libtool script then.
18091   test -f Makefile && make "$ltmain"
18092 fi
18093
18094
18095 ac_ext=c
18096 ac_cpp='$CPP $CPPFLAGS'
18097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18100
18101 CC="$lt_save_CC"
18102
18103         ;;
18104
18105       *)
18106         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18107 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18108    { (exit 1); exit 1; }; }
18109         ;;
18110       esac
18111
18112       # Append the new tag name to the list of available tags.
18113       if test -n "$tagname" ; then
18114       available_tags="$available_tags $tagname"
18115     fi
18116     fi
18117   done
18118   IFS="$lt_save_ifs"
18119
18120   # Now substitute the updated list of available tags.
18121   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18122     mv "${ofile}T" "$ofile"
18123     chmod +x "$ofile"
18124   else
18125     rm -f "${ofile}T"
18126     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18127 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18128    { (exit 1); exit 1; }; }
18129   fi
18130 fi
18131
18132
18133
18134 # This can be used to rebuild libtool when needed
18135 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18136
18137 # Always use our own libtool.
18138 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18139
18140 # Prevent multiple expansion
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162 # Extract the first word of "dot", so it can be a program name with args.
18163 set dummy dot; ac_word=$2
18164 echo "$as_me:$LINENO: checking for $ac_word" >&5
18165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18166 if test "${ac_cv_path_DOT+set}" = set; then
18167   echo $ECHO_N "(cached) $ECHO_C" >&6
18168 else
18169   case $DOT in
18170   [\\/]* | ?:[\\/]*)
18171   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18172   ;;
18173   *)
18174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18175 for as_dir in $PATH
18176 do
18177   IFS=$as_save_IFS
18178   test -z "$as_dir" && as_dir=.
18179   for ac_exec_ext in '' $ac_executable_extensions; do
18180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18181     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18183     break 2
18184   fi
18185 done
18186 done
18187
18188   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18189   ;;
18190 esac
18191 fi
18192 DOT=$ac_cv_path_DOT
18193
18194 if test -n "$DOT"; then
18195   echo "$as_me:$LINENO: result: $DOT" >&5
18196 echo "${ECHO_T}$DOT" >&6
18197 else
18198   echo "$as_me:$LINENO: result: no" >&5
18199 echo "${ECHO_T}no" >&6
18200 fi
18201
18202 # Extract the first word of "etags", so it can be a program name with args.
18203 set dummy etags; ac_word=$2
18204 echo "$as_me:$LINENO: checking for $ac_word" >&5
18205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18206 if test "${ac_cv_path_ETAGS+set}" = set; then
18207   echo $ECHO_N "(cached) $ECHO_C" >&6
18208 else
18209   case $ETAGS in
18210   [\\/]* | ?:[\\/]*)
18211   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18212   ;;
18213   *)
18214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18215 for as_dir in $PATH
18216 do
18217   IFS=$as_save_IFS
18218   test -z "$as_dir" && as_dir=.
18219   for ac_exec_ext in '' $ac_executable_extensions; do
18220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18221     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18223     break 2
18224   fi
18225 done
18226 done
18227
18228   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18229   ;;
18230 esac
18231 fi
18232 ETAGS=$ac_cv_path_ETAGS
18233
18234 if test -n "$ETAGS"; then
18235   echo "$as_me:$LINENO: result: $ETAGS" >&5
18236 echo "${ECHO_T}$ETAGS" >&6
18237 else
18238   echo "$as_me:$LINENO: result: no" >&5
18239 echo "${ECHO_T}no" >&6
18240 fi
18241
18242 etags_version=`$ETAGS --version 2>&1`
18243 case "$etags_version" in
18244         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18245         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18246         *) ETAGSFLAGS="" ;;
18247 esac
18248 ETAGSFLAGS=$ETAGSFLAGS
18249
18250 # Extract the first word of "python", so it can be a program name with args.
18251 set dummy python; ac_word=$2
18252 echo "$as_me:$LINENO: checking for $ac_word" >&5
18253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18254 if test "${ac_cv_path_PYTHON+set}" = set; then
18255   echo $ECHO_N "(cached) $ECHO_C" >&6
18256 else
18257   case $PYTHON in
18258   [\\/]* | ?:[\\/]*)
18259   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18260   ;;
18261   *)
18262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18263 for as_dir in $PATH
18264 do
18265   IFS=$as_save_IFS
18266   test -z "$as_dir" && as_dir=.
18267   for ac_exec_ext in '' $ac_executable_extensions; do
18268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18269     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18271     break 2
18272   fi
18273 done
18274 done
18275
18276   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18277   ;;
18278 esac
18279 fi
18280 PYTHON=$ac_cv_path_PYTHON
18281
18282 if test -n "$PYTHON"; then
18283   echo "$as_me:$LINENO: result: $PYTHON" >&5
18284 echo "${ECHO_T}$PYTHON" >&6
18285 else
18286   echo "$as_me:$LINENO: result: no" >&5
18287 echo "${ECHO_T}no" >&6
18288 fi
18289
18290 if test "$PYTHON" = "false"
18291 then
18292         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18293 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18294 fi
18295 # Extract the first word of "qmtest", so it can be a program name with args.
18296 set dummy qmtest; ac_word=$2
18297 echo "$as_me:$LINENO: checking for $ac_word" >&5
18298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18299 if test "${ac_cv_path_QMTEST+set}" = set; then
18300   echo $ECHO_N "(cached) $ECHO_C" >&6
18301 else
18302   case $QMTEST in
18303   [\\/]* | ?:[\\/]*)
18304   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18305   ;;
18306   *)
18307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18308 for as_dir in $PATH
18309 do
18310   IFS=$as_save_IFS
18311   test -z "$as_dir" && as_dir=.
18312   for ac_exec_ext in '' $ac_executable_extensions; do
18313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18314     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18316     break 2
18317   fi
18318 done
18319 done
18320
18321   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18322   ;;
18323 esac
18324 fi
18325 QMTEST=$ac_cv_path_QMTEST
18326
18327 if test -n "$QMTEST"; then
18328   echo "$as_me:$LINENO: result: $QMTEST" >&5
18329 echo "${ECHO_T}$QMTEST" >&6
18330 else
18331   echo "$as_me:$LINENO: result: no" >&5
18332 echo "${ECHO_T}no" >&6
18333 fi
18334
18335 if test "$QMTEST" = "false"
18336 then
18337         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18338 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18339 fi
18340
18341 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18342 pymajor=`echo $pyversion | cut -d. -f1`
18343 pyminor=`echo $pyversion | cut -d. -f2`
18344
18345 if test "$pymajor" -ge "2"
18346 then
18347         if test "$pymajor" -eq "2"
18348         then
18349                 if test "$pyminor" -lt "2"
18350                 then
18351                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18352 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18353                 fi
18354         fi
18355 else
18356         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18357 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18358 fi
18359
18360
18361
18362
18363 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18364 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18365 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18366   echo $ECHO_N "(cached) $ECHO_C" >&6
18367 else
18368   ac_check_lib_save_LIBS=$LIBS
18369 LIBS="-lelf  $LIBS"
18370 cat >conftest.$ac_ext <<_ACEOF
18371 #line $LINENO "configure"
18372 /* confdefs.h.  */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h.  */
18377
18378 /* Override any gcc2 internal prototype to avoid an error.  */
18379 #ifdef __cplusplus
18380 extern "C"
18381 #endif
18382 /* We use char because int might match the return type of a gcc2
18383    builtin and then its argument prototype would still apply.  */
18384 char elf_begin ();
18385 int
18386 main ()
18387 {
18388 elf_begin ();
18389   ;
18390   return 0;
18391 }
18392 _ACEOF
18393 rm -f conftest.$ac_objext conftest$ac_exeext
18394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18395   (eval $ac_link) 2>&5
18396   ac_status=$?
18397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398   (exit $ac_status); } &&
18399          { ac_try='test -s conftest$ac_exeext'
18400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401   (eval $ac_try) 2>&5
18402   ac_status=$?
18403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404   (exit $ac_status); }; }; then
18405   ac_cv_lib_elf_elf_begin=yes
18406 else
18407   echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18409
18410 ac_cv_lib_elf_elf_begin=no
18411 fi
18412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18413 LIBS=$ac_check_lib_save_LIBS
18414 fi
18415 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18416 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18417 if test $ac_cv_lib_elf_elf_begin = yes; then
18418   cat >>confdefs.h <<_ACEOF
18419 #define HAVE_LIBELF 1
18420 _ACEOF
18421
18422   LIBS="-lelf $LIBS"
18423
18424 fi
18425
18426
18427 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18428 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18429 if test "${ac_cv_search_dlopen+set}" = set; then
18430   echo $ECHO_N "(cached) $ECHO_C" >&6
18431 else
18432   ac_func_search_save_LIBS=$LIBS
18433 ac_cv_search_dlopen=no
18434 cat >conftest.$ac_ext <<_ACEOF
18435 #line $LINENO "configure"
18436 /* confdefs.h.  */
18437 _ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h.  */
18441
18442 /* Override any gcc2 internal prototype to avoid an error.  */
18443 #ifdef __cplusplus
18444 extern "C"
18445 #endif
18446 /* We use char because int might match the return type of a gcc2
18447    builtin and then its argument prototype would still apply.  */
18448 char dlopen ();
18449 int
18450 main ()
18451 {
18452 dlopen ();
18453   ;
18454   return 0;
18455 }
18456 _ACEOF
18457 rm -f conftest.$ac_objext conftest$ac_exeext
18458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18459   (eval $ac_link) 2>&5
18460   ac_status=$?
18461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462   (exit $ac_status); } &&
18463          { ac_try='test -s conftest$ac_exeext'
18464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465   (eval $ac_try) 2>&5
18466   ac_status=$?
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); }; }; then
18469   ac_cv_search_dlopen="none required"
18470 else
18471   echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18473
18474 fi
18475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18476 if test "$ac_cv_search_dlopen" = no; then
18477   for ac_lib in dl; do
18478     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18479     cat >conftest.$ac_ext <<_ACEOF
18480 #line $LINENO "configure"
18481 /* confdefs.h.  */
18482 _ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h.  */
18486
18487 /* Override any gcc2 internal prototype to avoid an error.  */
18488 #ifdef __cplusplus
18489 extern "C"
18490 #endif
18491 /* We use char because int might match the return type of a gcc2
18492    builtin and then its argument prototype would still apply.  */
18493 char dlopen ();
18494 int
18495 main ()
18496 {
18497 dlopen ();
18498   ;
18499   return 0;
18500 }
18501 _ACEOF
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18504   (eval $ac_link) 2>&5
18505   ac_status=$?
18506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507   (exit $ac_status); } &&
18508          { ac_try='test -s conftest$ac_exeext'
18509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18510   (eval $ac_try) 2>&5
18511   ac_status=$?
18512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513   (exit $ac_status); }; }; then
18514   ac_cv_search_dlopen="-l$ac_lib"
18515 break
18516 else
18517   echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18519
18520 fi
18521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18522   done
18523 fi
18524 LIBS=$ac_func_search_save_LIBS
18525 fi
18526 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18527 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18528 if test "$ac_cv_search_dlopen" != no; then
18529   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18530
18531 cat >>confdefs.h <<\_ACEOF
18532 #define HAVE_DLOPEN 1
18533 _ACEOF
18534
18535 else
18536   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18537 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18538 fi
18539
18540
18541 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18542 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18543 if test "${ac_cv_search_mallinfo+set}" = set; then
18544   echo $ECHO_N "(cached) $ECHO_C" >&6
18545 else
18546   ac_func_search_save_LIBS=$LIBS
18547 ac_cv_search_mallinfo=no
18548 cat >conftest.$ac_ext <<_ACEOF
18549 #line $LINENO "configure"
18550 /* confdefs.h.  */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h.  */
18555
18556 /* Override any gcc2 internal prototype to avoid an error.  */
18557 #ifdef __cplusplus
18558 extern "C"
18559 #endif
18560 /* We use char because int might match the return type of a gcc2
18561    builtin and then its argument prototype would still apply.  */
18562 char mallinfo ();
18563 int
18564 main ()
18565 {
18566 mallinfo ();
18567   ;
18568   return 0;
18569 }
18570 _ACEOF
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18573   (eval $ac_link) 2>&5
18574   ac_status=$?
18575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576   (exit $ac_status); } &&
18577          { ac_try='test -s conftest$ac_exeext'
18578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579   (eval $ac_try) 2>&5
18580   ac_status=$?
18581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); }; }; then
18583   ac_cv_search_mallinfo="none required"
18584 else
18585   echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18587
18588 fi
18589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18590 if test "$ac_cv_search_mallinfo" = no; then
18591   for ac_lib in malloc; do
18592     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18593     cat >conftest.$ac_ext <<_ACEOF
18594 #line $LINENO "configure"
18595 /* confdefs.h.  */
18596 _ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h.  */
18600
18601 /* Override any gcc2 internal prototype to avoid an error.  */
18602 #ifdef __cplusplus
18603 extern "C"
18604 #endif
18605 /* We use char because int might match the return type of a gcc2
18606    builtin and then its argument prototype would still apply.  */
18607 char mallinfo ();
18608 int
18609 main ()
18610 {
18611 mallinfo ();
18612   ;
18613   return 0;
18614 }
18615 _ACEOF
18616 rm -f conftest.$ac_objext conftest$ac_exeext
18617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18618   (eval $ac_link) 2>&5
18619   ac_status=$?
18620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621   (exit $ac_status); } &&
18622          { ac_try='test -s conftest$ac_exeext'
18623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624   (eval $ac_try) 2>&5
18625   ac_status=$?
18626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627   (exit $ac_status); }; }; then
18628   ac_cv_search_mallinfo="-l$ac_lib"
18629 break
18630 else
18631   echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18633
18634 fi
18635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18636   done
18637 fi
18638 LIBS=$ac_func_search_save_LIBS
18639 fi
18640 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18641 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18642 if test "$ac_cv_search_mallinfo" != no; then
18643   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18644
18645 cat >>confdefs.h <<\_ACEOF
18646 #define HAVE_MALLINFO 1
18647 _ACEOF
18648
18649 fi
18650
18651
18652 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18653 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18654 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18655   echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657   ac_func_search_save_LIBS=$LIBS
18658 ac_cv_search_pthread_mutex_lock=no
18659 cat >conftest.$ac_ext <<_ACEOF
18660 #line $LINENO "configure"
18661 /* confdefs.h.  */
18662 _ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h.  */
18666
18667 /* Override any gcc2 internal prototype to avoid an error.  */
18668 #ifdef __cplusplus
18669 extern "C"
18670 #endif
18671 /* We use char because int might match the return type of a gcc2
18672    builtin and then its argument prototype would still apply.  */
18673 char pthread_mutex_lock ();
18674 int
18675 main ()
18676 {
18677 pthread_mutex_lock ();
18678   ;
18679   return 0;
18680 }
18681 _ACEOF
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18684   (eval $ac_link) 2>&5
18685   ac_status=$?
18686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687   (exit $ac_status); } &&
18688          { ac_try='test -s conftest$ac_exeext'
18689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690   (eval $ac_try) 2>&5
18691   ac_status=$?
18692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693   (exit $ac_status); }; }; then
18694   ac_cv_search_pthread_mutex_lock="none required"
18695 else
18696   echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.$ac_ext >&5
18698
18699 fi
18700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18701 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18702   for ac_lib in pthread; do
18703     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18704     cat >conftest.$ac_ext <<_ACEOF
18705 #line $LINENO "configure"
18706 /* confdefs.h.  */
18707 _ACEOF
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h.  */
18711
18712 /* Override any gcc2 internal prototype to avoid an error.  */
18713 #ifdef __cplusplus
18714 extern "C"
18715 #endif
18716 /* We use char because int might match the return type of a gcc2
18717    builtin and then its argument prototype would still apply.  */
18718 char pthread_mutex_lock ();
18719 int
18720 main ()
18721 {
18722 pthread_mutex_lock ();
18723   ;
18724   return 0;
18725 }
18726 _ACEOF
18727 rm -f conftest.$ac_objext conftest$ac_exeext
18728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18729   (eval $ac_link) 2>&5
18730   ac_status=$?
18731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732   (exit $ac_status); } &&
18733          { ac_try='test -s conftest$ac_exeext'
18734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735   (eval $ac_try) 2>&5
18736   ac_status=$?
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); }; }; then
18739   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18740 break
18741 else
18742   echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18744
18745 fi
18746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18747   done
18748 fi
18749 LIBS=$ac_func_search_save_LIBS
18750 fi
18751 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18752 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18753 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18754   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18755   HAVE_PTHREAD_MUTEX_LOCK=1
18756 else
18757   HAVE_PTHREAD_MUTEX_LOCK=0
18758 fi
18759
18760
18761
18762 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18763 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18764 if test "${ac_cv_header_stdc+set}" = set; then
18765   echo $ECHO_N "(cached) $ECHO_C" >&6
18766 else
18767   cat >conftest.$ac_ext <<_ACEOF
18768 #line $LINENO "configure"
18769 /* confdefs.h.  */
18770 _ACEOF
18771 cat confdefs.h >>conftest.$ac_ext
18772 cat >>conftest.$ac_ext <<_ACEOF
18773 /* end confdefs.h.  */
18774 #include <stdlib.h>
18775 #include <stdarg.h>
18776 #include <string.h>
18777 #include <float.h>
18778
18779 int
18780 main ()
18781 {
18782
18783   ;
18784   return 0;
18785 }
18786 _ACEOF
18787 rm -f conftest.$ac_objext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18789   (eval $ac_compile) 2>&5
18790   ac_status=$?
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); } &&
18793          { ac_try='test -s conftest.$ac_objext'
18794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795   (eval $ac_try) 2>&5
18796   ac_status=$?
18797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); }; }; then
18799   ac_cv_header_stdc=yes
18800 else
18801   echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18803
18804 ac_cv_header_stdc=no
18805 fi
18806 rm -f conftest.$ac_objext conftest.$ac_ext
18807
18808 if test $ac_cv_header_stdc = yes; then
18809   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18810   cat >conftest.$ac_ext <<_ACEOF
18811 #line $LINENO "configure"
18812 /* confdefs.h.  */
18813 _ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h.  */
18817 #include <string.h>
18818
18819 _ACEOF
18820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18821   $EGREP "memchr" >/dev/null 2>&1; then
18822   :
18823 else
18824   ac_cv_header_stdc=no
18825 fi
18826 rm -f conftest*
18827
18828 fi
18829
18830 if test $ac_cv_header_stdc = yes; then
18831   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18832   cat >conftest.$ac_ext <<_ACEOF
18833 #line $LINENO "configure"
18834 /* confdefs.h.  */
18835 _ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h.  */
18839 #include <stdlib.h>
18840
18841 _ACEOF
18842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18843   $EGREP "free" >/dev/null 2>&1; then
18844   :
18845 else
18846   ac_cv_header_stdc=no
18847 fi
18848 rm -f conftest*
18849
18850 fi
18851
18852 if test $ac_cv_header_stdc = yes; then
18853   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18854   if test "$cross_compiling" = yes; then
18855   :
18856 else
18857   cat >conftest.$ac_ext <<_ACEOF
18858 #line $LINENO "configure"
18859 /* confdefs.h.  */
18860 _ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h.  */
18864 #include <ctype.h>
18865 #if ((' ' & 0x0FF) == 0x020)
18866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18868 #else
18869 # define ISLOWER(c) \
18870                    (('a' <= (c) && (c) <= 'i') \
18871                      || ('j' <= (c) && (c) <= 'r') \
18872                      || ('s' <= (c) && (c) <= 'z'))
18873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18874 #endif
18875
18876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18877 int
18878 main ()
18879 {
18880   int i;
18881   for (i = 0; i < 256; i++)
18882     if (XOR (islower (i), ISLOWER (i))
18883         || toupper (i) != TOUPPER (i))
18884       exit(2);
18885   exit (0);
18886 }
18887 _ACEOF
18888 rm -f conftest$ac_exeext
18889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18890   (eval $ac_link) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895   (eval $ac_try) 2>&5
18896   ac_status=$?
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); }; }; then
18899   :
18900 else
18901   echo "$as_me: program exited with status $ac_status" >&5
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18904
18905 ( exit $ac_status )
18906 ac_cv_header_stdc=no
18907 fi
18908 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18909 fi
18910 fi
18911 fi
18912 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18913 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18914 if test $ac_cv_header_stdc = yes; then
18915
18916 cat >>confdefs.h <<\_ACEOF
18917 #define STDC_HEADERS 1
18918 _ACEOF
18919
18920 fi
18921
18922 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18923 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18924 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18925   echo $ECHO_N "(cached) $ECHO_C" >&6
18926 else
18927   cat >conftest.$ac_ext <<_ACEOF
18928 #line $LINENO "configure"
18929 /* confdefs.h.  */
18930 _ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h.  */
18934 #include <sys/types.h>
18935 #include <sys/wait.h>
18936 #ifndef WEXITSTATUS
18937 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18938 #endif
18939 #ifndef WIFEXITED
18940 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18941 #endif
18942
18943 int
18944 main ()
18945 {
18946   int s;
18947   wait (&s);
18948   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18949   ;
18950   return 0;
18951 }
18952 _ACEOF
18953 rm -f conftest.$ac_objext
18954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18955   (eval $ac_compile) 2>&5
18956   ac_status=$?
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); } &&
18959          { ac_try='test -s conftest.$ac_objext'
18960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961   (eval $ac_try) 2>&5
18962   ac_status=$?
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); }; }; then
18965   ac_cv_header_sys_wait_h=yes
18966 else
18967   echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970 ac_cv_header_sys_wait_h=no
18971 fi
18972 rm -f conftest.$ac_objext conftest.$ac_ext
18973 fi
18974 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18975 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18976 if test $ac_cv_header_sys_wait_h = yes; then
18977
18978 cat >>confdefs.h <<\_ACEOF
18979 #define HAVE_SYS_WAIT_H 1
18980 _ACEOF
18981
18982 fi
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
18997 do
18998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19000   echo "$as_me:$LINENO: checking for $ac_header" >&5
19001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19003   echo $ECHO_N "(cached) $ECHO_C" >&6
19004 fi
19005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19007 else
19008   # Is the header compilable?
19009 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19011 cat >conftest.$ac_ext <<_ACEOF
19012 #line $LINENO "configure"
19013 /* confdefs.h.  */
19014 _ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h.  */
19018 $ac_includes_default
19019 #include <$ac_header>
19020 _ACEOF
19021 rm -f conftest.$ac_objext
19022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19023   (eval $ac_compile) 2>&5
19024   ac_status=$?
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); } &&
19027          { ac_try='test -s conftest.$ac_objext'
19028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029   (eval $ac_try) 2>&5
19030   ac_status=$?
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); }; }; then
19033   ac_header_compiler=yes
19034 else
19035   echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19037
19038 ac_header_compiler=no
19039 fi
19040 rm -f conftest.$ac_objext conftest.$ac_ext
19041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19042 echo "${ECHO_T}$ac_header_compiler" >&6
19043
19044 # Is the header present?
19045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19047 cat >conftest.$ac_ext <<_ACEOF
19048 #line $LINENO "configure"
19049 /* confdefs.h.  */
19050 _ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h.  */
19054 #include <$ac_header>
19055 _ACEOF
19056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19058   ac_status=$?
19059   grep -v '^ *+' conftest.er1 >conftest.err
19060   rm -f conftest.er1
19061   cat conftest.err >&5
19062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063   (exit $ac_status); } >/dev/null; then
19064   if test -s conftest.err; then
19065     ac_cpp_err=$ac_c_preproc_warn_flag
19066   else
19067     ac_cpp_err=
19068   fi
19069 else
19070   ac_cpp_err=yes
19071 fi
19072 if test -z "$ac_cpp_err"; then
19073   ac_header_preproc=yes
19074 else
19075   echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19077
19078   ac_header_preproc=no
19079 fi
19080 rm -f conftest.err conftest.$ac_ext
19081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19082 echo "${ECHO_T}$ac_header_preproc" >&6
19083
19084 # So?  What about this header?
19085 case $ac_header_compiler:$ac_header_preproc in
19086   yes:no )
19087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19091     (
19092       cat <<\_ASBOX
19093 ## ------------------------------------ ##
19094 ## Report this to bug-autoconf@gnu.org. ##
19095 ## ------------------------------------ ##
19096 _ASBOX
19097     ) |
19098       sed "s/^/$as_me: WARNING:     /" >&2
19099     ;;
19100   no:yes )
19101     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19103     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19107     (
19108       cat <<\_ASBOX
19109 ## ------------------------------------ ##
19110 ## Report this to bug-autoconf@gnu.org. ##
19111 ## ------------------------------------ ##
19112 _ASBOX
19113     ) |
19114       sed "s/^/$as_me: WARNING:     /" >&2
19115     ;;
19116 esac
19117 echo "$as_me:$LINENO: checking for $ac_header" >&5
19118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19120   echo $ECHO_N "(cached) $ECHO_C" >&6
19121 else
19122   eval "$as_ac_Header=$ac_header_preproc"
19123 fi
19124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19126
19127 fi
19128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19129   cat >>confdefs.h <<_ACEOF
19130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19131 _ACEOF
19132
19133 fi
19134
19135 done
19136
19137
19138 if test "${ac_cv_header_sys_types_h+set}" = set; then
19139   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19140 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19141 if test "${ac_cv_header_sys_types_h+set}" = set; then
19142   echo $ECHO_N "(cached) $ECHO_C" >&6
19143 fi
19144 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19145 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19146 else
19147   # Is the header compilable?
19148 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19149 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19150 cat >conftest.$ac_ext <<_ACEOF
19151 #line $LINENO "configure"
19152 /* confdefs.h.  */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h.  */
19157 $ac_includes_default
19158 #include <sys/types.h>
19159 _ACEOF
19160 rm -f conftest.$ac_objext
19161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19162   (eval $ac_compile) 2>&5
19163   ac_status=$?
19164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); } &&
19166          { ac_try='test -s conftest.$ac_objext'
19167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168   (eval $ac_try) 2>&5
19169   ac_status=$?
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); }; }; then
19172   ac_header_compiler=yes
19173 else
19174   echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19176
19177 ac_header_compiler=no
19178 fi
19179 rm -f conftest.$ac_objext conftest.$ac_ext
19180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19181 echo "${ECHO_T}$ac_header_compiler" >&6
19182
19183 # Is the header present?
19184 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19185 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19186 cat >conftest.$ac_ext <<_ACEOF
19187 #line $LINENO "configure"
19188 /* confdefs.h.  */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h.  */
19193 #include <sys/types.h>
19194 _ACEOF
19195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19196   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19197   ac_status=$?
19198   grep -v '^ *+' conftest.er1 >conftest.err
19199   rm -f conftest.er1
19200   cat conftest.err >&5
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); } >/dev/null; then
19203   if test -s conftest.err; then
19204     ac_cpp_err=$ac_c_preproc_warn_flag
19205   else
19206     ac_cpp_err=
19207   fi
19208 else
19209   ac_cpp_err=yes
19210 fi
19211 if test -z "$ac_cpp_err"; then
19212   ac_header_preproc=yes
19213 else
19214   echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19216
19217   ac_header_preproc=no
19218 fi
19219 rm -f conftest.err conftest.$ac_ext
19220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19221 echo "${ECHO_T}$ac_header_preproc" >&6
19222
19223 # So?  What about this header?
19224 case $ac_header_compiler:$ac_header_preproc in
19225   yes:no )
19226     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19227 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19228     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19229 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19230     (
19231       cat <<\_ASBOX
19232 ## ------------------------------------ ##
19233 ## Report this to bug-autoconf@gnu.org. ##
19234 ## ------------------------------------ ##
19235 _ASBOX
19236     ) |
19237       sed "s/^/$as_me: WARNING:     /" >&2
19238     ;;
19239   no:yes )
19240     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19241 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19242     { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19243 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19244     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19245 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19246     (
19247       cat <<\_ASBOX
19248 ## ------------------------------------ ##
19249 ## Report this to bug-autoconf@gnu.org. ##
19250 ## ------------------------------------ ##
19251 _ASBOX
19252     ) |
19253       sed "s/^/$as_me: WARNING:     /" >&2
19254     ;;
19255 esac
19256 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19257 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19258 if test "${ac_cv_header_sys_types_h+set}" = set; then
19259   echo $ECHO_N "(cached) $ECHO_C" >&6
19260 else
19261   ac_cv_header_sys_types_h=$ac_header_preproc
19262 fi
19263 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19264 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19265
19266 fi
19267 if test $ac_cv_header_sys_types_h = yes; then
19268   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19269 else
19270   INCLUDE_SYS_TYPES_H=''
19271 fi
19272
19273
19274
19275 if test "${ac_cv_header_inttypes_h+set}" = set; then
19276   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19277 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19278 if test "${ac_cv_header_inttypes_h+set}" = set; then
19279   echo $ECHO_N "(cached) $ECHO_C" >&6
19280 fi
19281 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19282 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19283 else
19284   # Is the header compilable?
19285 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19286 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19287 cat >conftest.$ac_ext <<_ACEOF
19288 #line $LINENO "configure"
19289 /* confdefs.h.  */
19290 _ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h.  */
19294 $ac_includes_default
19295 #include <inttypes.h>
19296 _ACEOF
19297 rm -f conftest.$ac_objext
19298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19299   (eval $ac_compile) 2>&5
19300   ac_status=$?
19301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302   (exit $ac_status); } &&
19303          { ac_try='test -s conftest.$ac_objext'
19304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305   (eval $ac_try) 2>&5
19306   ac_status=$?
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); }; }; then
19309   ac_header_compiler=yes
19310 else
19311   echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19313
19314 ac_header_compiler=no
19315 fi
19316 rm -f conftest.$ac_objext conftest.$ac_ext
19317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19318 echo "${ECHO_T}$ac_header_compiler" >&6
19319
19320 # Is the header present?
19321 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19322 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19323 cat >conftest.$ac_ext <<_ACEOF
19324 #line $LINENO "configure"
19325 /* confdefs.h.  */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h.  */
19330 #include <inttypes.h>
19331 _ACEOF
19332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19334   ac_status=$?
19335   grep -v '^ *+' conftest.er1 >conftest.err
19336   rm -f conftest.er1
19337   cat conftest.err >&5
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); } >/dev/null; then
19340   if test -s conftest.err; then
19341     ac_cpp_err=$ac_c_preproc_warn_flag
19342   else
19343     ac_cpp_err=
19344   fi
19345 else
19346   ac_cpp_err=yes
19347 fi
19348 if test -z "$ac_cpp_err"; then
19349   ac_header_preproc=yes
19350 else
19351   echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19353
19354   ac_header_preproc=no
19355 fi
19356 rm -f conftest.err conftest.$ac_ext
19357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19358 echo "${ECHO_T}$ac_header_preproc" >&6
19359
19360 # So?  What about this header?
19361 case $ac_header_compiler:$ac_header_preproc in
19362   yes:no )
19363     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19364 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19365     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19366 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19367     (
19368       cat <<\_ASBOX
19369 ## ------------------------------------ ##
19370 ## Report this to bug-autoconf@gnu.org. ##
19371 ## ------------------------------------ ##
19372 _ASBOX
19373     ) |
19374       sed "s/^/$as_me: WARNING:     /" >&2
19375     ;;
19376   no:yes )
19377     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19378 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19379     { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19380 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19381     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19382 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19383     (
19384       cat <<\_ASBOX
19385 ## ------------------------------------ ##
19386 ## Report this to bug-autoconf@gnu.org. ##
19387 ## ------------------------------------ ##
19388 _ASBOX
19389     ) |
19390       sed "s/^/$as_me: WARNING:     /" >&2
19391     ;;
19392 esac
19393 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19394 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19395 if test "${ac_cv_header_inttypes_h+set}" = set; then
19396   echo $ECHO_N "(cached) $ECHO_C" >&6
19397 else
19398   ac_cv_header_inttypes_h=$ac_header_preproc
19399 fi
19400 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19401 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19402
19403 fi
19404 if test $ac_cv_header_inttypes_h = yes; then
19405   INCLUDE_INTTYPES_H='#include <inttypes.h>'
19406 else
19407   INCLUDE_INTTYPES_H=''
19408 fi
19409
19410
19411
19412 if test "${ac_cv_header_stdint_h+set}" = set; then
19413   echo "$as_me:$LINENO: checking for stdint.h" >&5
19414 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19415 if test "${ac_cv_header_stdint_h+set}" = set; then
19416   echo $ECHO_N "(cached) $ECHO_C" >&6
19417 fi
19418 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19419 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19420 else
19421   # Is the header compilable?
19422 echo "$as_me:$LINENO: checking stdint.h usability" >&5
19423 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
19424 cat >conftest.$ac_ext <<_ACEOF
19425 #line $LINENO "configure"
19426 /* confdefs.h.  */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h.  */
19431 $ac_includes_default
19432 #include <stdint.h>
19433 _ACEOF
19434 rm -f conftest.$ac_objext
19435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19436   (eval $ac_compile) 2>&5
19437   ac_status=$?
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); } &&
19440          { ac_try='test -s conftest.$ac_objext'
19441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442   (eval $ac_try) 2>&5
19443   ac_status=$?
19444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445   (exit $ac_status); }; }; then
19446   ac_header_compiler=yes
19447 else
19448   echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19450
19451 ac_header_compiler=no
19452 fi
19453 rm -f conftest.$ac_objext conftest.$ac_ext
19454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19455 echo "${ECHO_T}$ac_header_compiler" >&6
19456
19457 # Is the header present?
19458 echo "$as_me:$LINENO: checking stdint.h presence" >&5
19459 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
19460 cat >conftest.$ac_ext <<_ACEOF
19461 #line $LINENO "configure"
19462 /* confdefs.h.  */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h.  */
19467 #include <stdint.h>
19468 _ACEOF
19469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19470   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19471   ac_status=$?
19472   grep -v '^ *+' conftest.er1 >conftest.err
19473   rm -f conftest.er1
19474   cat conftest.err >&5
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); } >/dev/null; then
19477   if test -s conftest.err; then
19478     ac_cpp_err=$ac_c_preproc_warn_flag
19479   else
19480     ac_cpp_err=
19481   fi
19482 else
19483   ac_cpp_err=yes
19484 fi
19485 if test -z "$ac_cpp_err"; then
19486   ac_header_preproc=yes
19487 else
19488   echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19490
19491   ac_header_preproc=no
19492 fi
19493 rm -f conftest.err conftest.$ac_ext
19494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19495 echo "${ECHO_T}$ac_header_preproc" >&6
19496
19497 # So?  What about this header?
19498 case $ac_header_compiler:$ac_header_preproc in
19499   yes:no )
19500     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
19501 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19502     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19503 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19504     (
19505       cat <<\_ASBOX
19506 ## ------------------------------------ ##
19507 ## Report this to bug-autoconf@gnu.org. ##
19508 ## ------------------------------------ ##
19509 _ASBOX
19510     ) |
19511       sed "s/^/$as_me: WARNING:     /" >&2
19512     ;;
19513   no:yes )
19514     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
19515 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
19516     { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
19517 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
19518     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19519 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19520     (
19521       cat <<\_ASBOX
19522 ## ------------------------------------ ##
19523 ## Report this to bug-autoconf@gnu.org. ##
19524 ## ------------------------------------ ##
19525 _ASBOX
19526     ) |
19527       sed "s/^/$as_me: WARNING:     /" >&2
19528     ;;
19529 esac
19530 echo "$as_me:$LINENO: checking for stdint.h" >&5
19531 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19532 if test "${ac_cv_header_stdint_h+set}" = set; then
19533   echo $ECHO_N "(cached) $ECHO_C" >&6
19534 else
19535   ac_cv_header_stdint_h=$ac_header_preproc
19536 fi
19537 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19538 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19539
19540 fi
19541 if test $ac_cv_header_stdint_h = yes; then
19542   INCLUDE_STDINT_H='#include <stdint.h>'
19543 else
19544   INCLUDE_STDINT_H=''
19545 fi
19546
19547
19548
19549
19550
19551 echo "$as_me:$LINENO: checking for pid_t" >&5
19552 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19553 if test "${ac_cv_type_pid_t+set}" = set; then
19554   echo $ECHO_N "(cached) $ECHO_C" >&6
19555 else
19556   cat >conftest.$ac_ext <<_ACEOF
19557 #line $LINENO "configure"
19558 /* confdefs.h.  */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h.  */
19563 $ac_includes_default
19564 int
19565 main ()
19566 {
19567 if ((pid_t *) 0)
19568   return 0;
19569 if (sizeof (pid_t))
19570   return 0;
19571   ;
19572   return 0;
19573 }
19574 _ACEOF
19575 rm -f conftest.$ac_objext
19576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19577   (eval $ac_compile) 2>&5
19578   ac_status=$?
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); } &&
19581          { ac_try='test -s conftest.$ac_objext'
19582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583   (eval $ac_try) 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }; }; then
19587   ac_cv_type_pid_t=yes
19588 else
19589   echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19591
19592 ac_cv_type_pid_t=no
19593 fi
19594 rm -f conftest.$ac_objext conftest.$ac_ext
19595 fi
19596 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19597 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19598 if test $ac_cv_type_pid_t = yes; then
19599   :
19600 else
19601
19602 cat >>confdefs.h <<_ACEOF
19603 #define pid_t int
19604 _ACEOF
19605
19606 fi
19607
19608 echo "$as_me:$LINENO: checking for size_t" >&5
19609 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19610 if test "${ac_cv_type_size_t+set}" = set; then
19611   echo $ECHO_N "(cached) $ECHO_C" >&6
19612 else
19613   cat >conftest.$ac_ext <<_ACEOF
19614 #line $LINENO "configure"
19615 /* confdefs.h.  */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h.  */
19620 $ac_includes_default
19621 int
19622 main ()
19623 {
19624 if ((size_t *) 0)
19625   return 0;
19626 if (sizeof (size_t))
19627   return 0;
19628   ;
19629   return 0;
19630 }
19631 _ACEOF
19632 rm -f conftest.$ac_objext
19633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19634   (eval $ac_compile) 2>&5
19635   ac_status=$?
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); } &&
19638          { ac_try='test -s conftest.$ac_objext'
19639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640   (eval $ac_try) 2>&5
19641   ac_status=$?
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); }; }; then
19644   ac_cv_type_size_t=yes
19645 else
19646   echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19648
19649 ac_cv_type_size_t=no
19650 fi
19651 rm -f conftest.$ac_objext conftest.$ac_ext
19652 fi
19653 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19654 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19655 if test $ac_cv_type_size_t = yes; then
19656   :
19657 else
19658
19659 cat >>confdefs.h <<_ACEOF
19660 #define size_t unsigned
19661 _ACEOF
19662
19663 fi
19664
19665 echo "$as_me:$LINENO: checking for int64_t" >&5
19666 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19667 if test "${ac_cv_type_int64_t+set}" = set; then
19668   echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670   cat >conftest.$ac_ext <<_ACEOF
19671 #line $LINENO "configure"
19672 /* confdefs.h.  */
19673 _ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h.  */
19677 $ac_includes_default
19678 int
19679 main ()
19680 {
19681 if ((int64_t *) 0)
19682   return 0;
19683 if (sizeof (int64_t))
19684   return 0;
19685   ;
19686   return 0;
19687 }
19688 _ACEOF
19689 rm -f conftest.$ac_objext
19690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19691   (eval $ac_compile) 2>&5
19692   ac_status=$?
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); } &&
19695          { ac_try='test -s conftest.$ac_objext'
19696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697   (eval $ac_try) 2>&5
19698   ac_status=$?
19699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700   (exit $ac_status); }; }; then
19701   ac_cv_type_int64_t=yes
19702 else
19703   echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19705
19706 ac_cv_type_int64_t=no
19707 fi
19708 rm -f conftest.$ac_objext conftest.$ac_ext
19709 fi
19710 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19711 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19712 if test $ac_cv_type_int64_t = yes; then
19713
19714 cat >>confdefs.h <<_ACEOF
19715 #define HAVE_INT64_T 1
19716 _ACEOF
19717
19718
19719 else
19720   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19721 echo "$as_me: error: Type int64_t required but not found" >&2;}
19722    { (exit 1); exit 1; }; }
19723 fi
19724
19725 echo "$as_me:$LINENO: checking for uint64_t" >&5
19726 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19727 if test "${ac_cv_type_uint64_t+set}" = set; then
19728   echo $ECHO_N "(cached) $ECHO_C" >&6
19729 else
19730   cat >conftest.$ac_ext <<_ACEOF
19731 #line $LINENO "configure"
19732 /* confdefs.h.  */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h.  */
19737 $ac_includes_default
19738 int
19739 main ()
19740 {
19741 if ((uint64_t *) 0)
19742   return 0;
19743 if (sizeof (uint64_t))
19744   return 0;
19745   ;
19746   return 0;
19747 }
19748 _ACEOF
19749 rm -f conftest.$ac_objext
19750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19751   (eval $ac_compile) 2>&5
19752   ac_status=$?
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); } &&
19755          { ac_try='test -s conftest.$ac_objext'
19756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757   (eval $ac_try) 2>&5
19758   ac_status=$?
19759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760   (exit $ac_status); }; }; then
19761   ac_cv_type_uint64_t=yes
19762 else
19763   echo "$as_me: failed program was:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19765
19766 ac_cv_type_uint64_t=no
19767 fi
19768 rm -f conftest.$ac_objext conftest.$ac_ext
19769 fi
19770 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19771 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19772 if test $ac_cv_type_uint64_t = yes; then
19773
19774 cat >>confdefs.h <<_ACEOF
19775 #define HAVE_UINT64_T 1
19776 _ACEOF
19777
19778
19779 else
19780   echo "$as_me:$LINENO: checking for u_int64_t" >&5
19781 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
19782 if test "${ac_cv_type_u_int64_t+set}" = set; then
19783   echo $ECHO_N "(cached) $ECHO_C" >&6
19784 else
19785   cat >conftest.$ac_ext <<_ACEOF
19786 #line $LINENO "configure"
19787 /* confdefs.h.  */
19788 _ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h.  */
19792 $ac_includes_default
19793 int
19794 main ()
19795 {
19796 if ((u_int64_t *) 0)
19797   return 0;
19798 if (sizeof (u_int64_t))
19799   return 0;
19800   ;
19801   return 0;
19802 }
19803 _ACEOF
19804 rm -f conftest.$ac_objext
19805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19806   (eval $ac_compile) 2>&5
19807   ac_status=$?
19808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); } &&
19810          { ac_try='test -s conftest.$ac_objext'
19811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812   (eval $ac_try) 2>&5
19813   ac_status=$?
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); }; }; then
19816   ac_cv_type_u_int64_t=yes
19817 else
19818   echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821 ac_cv_type_u_int64_t=no
19822 fi
19823 rm -f conftest.$ac_objext conftest.$ac_ext
19824 fi
19825 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
19826 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
19827 if test $ac_cv_type_u_int64_t = yes; then
19828
19829 cat >>confdefs.h <<_ACEOF
19830 #define HAVE_U_INT64_T 1
19831 _ACEOF
19832
19833
19834 else
19835   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
19836 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
19837    { (exit 1); exit 1; }; }
19838 fi
19839
19840 fi
19841
19842 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19843 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19844 if test "${ac_cv_header_time+set}" = set; then
19845   echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847   cat >conftest.$ac_ext <<_ACEOF
19848 #line $LINENO "configure"
19849 /* confdefs.h.  */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h.  */
19854 #include <sys/types.h>
19855 #include <sys/time.h>
19856 #include <time.h>
19857
19858 int
19859 main ()
19860 {
19861 if ((struct tm *) 0)
19862 return 0;
19863   ;
19864   return 0;
19865 }
19866 _ACEOF
19867 rm -f conftest.$ac_objext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19869   (eval $ac_compile) 2>&5
19870   ac_status=$?
19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); } &&
19873          { ac_try='test -s conftest.$ac_objext'
19874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875   (eval $ac_try) 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); }; }; then
19879   ac_cv_header_time=yes
19880 else
19881   echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884 ac_cv_header_time=no
19885 fi
19886 rm -f conftest.$ac_objext conftest.$ac_ext
19887 fi
19888 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19889 echo "${ECHO_T}$ac_cv_header_time" >&6
19890 if test $ac_cv_header_time = yes; then
19891
19892 cat >>confdefs.h <<\_ACEOF
19893 #define TIME_WITH_SYS_TIME 1
19894 _ACEOF
19895
19896 fi
19897
19898 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19899 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19900 if test "${ac_cv_struct_tm+set}" = set; then
19901   echo $ECHO_N "(cached) $ECHO_C" >&6
19902 else
19903   cat >conftest.$ac_ext <<_ACEOF
19904 #line $LINENO "configure"
19905 /* confdefs.h.  */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h.  */
19910 #include <sys/types.h>
19911 #include <time.h>
19912
19913 int
19914 main ()
19915 {
19916 struct tm *tp; tp->tm_sec;
19917   ;
19918   return 0;
19919 }
19920 _ACEOF
19921 rm -f conftest.$ac_objext
19922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19923   (eval $ac_compile) 2>&5
19924   ac_status=$?
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); } &&
19927          { ac_try='test -s conftest.$ac_objext'
19928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929   (eval $ac_try) 2>&5
19930   ac_status=$?
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); }; }; then
19933   ac_cv_struct_tm=time.h
19934 else
19935   echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19937
19938 ac_cv_struct_tm=sys/time.h
19939 fi
19940 rm -f conftest.$ac_objext conftest.$ac_ext
19941 fi
19942 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19943 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19944 if test $ac_cv_struct_tm = sys/time.h; then
19945
19946 cat >>confdefs.h <<\_ACEOF
19947 #define TM_IN_SYS_TIME 1
19948 _ACEOF
19949
19950 fi
19951
19952
19953
19954         echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
19955 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
19956
19957
19958         ac_ext=c
19959 ac_cpp='$CPP $CPPFLAGS'
19960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19963
19964         if test "$cross_compiling" = yes; then
19965   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19966 See \`config.log' for more details." >&5
19967 echo "$as_me: error: cannot run test program while cross compiling
19968 See \`config.log' for more details." >&2;}
19969    { (exit 1); exit 1; }; }
19970 else
19971   cat >conftest.$ac_ext <<_ACEOF
19972 #line $LINENO "configure"
19973 /* confdefs.h.  */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h.  */
19978 #include <stdio.h>
19979                                  #include <stdlib.h>
19980 int
19981 main ()
19982 {
19983
19984                                  volatile double A, B;
19985                                  char Buffer[100];
19986                                  A = 1;
19987                                  A /= 10.0;
19988                                  sprintf(Buffer, "%a", A);
19989                                  B = atof(Buffer);
19990                                  if (A != B)
19991                                                          return (1);
19992                                  if (A != 0x1.999999999999ap-4)
19993                                                          return (1);
19994                                  return (0);
19995   ;
19996   return 0;
19997 }
19998 _ACEOF
19999 rm -f conftest$ac_exeext
20000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20001   (eval $ac_link) 2>&5
20002   ac_status=$?
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006   (eval $ac_try) 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); }; }; then
20010   ac_c_printf_a=yes
20011 else
20012   echo "$as_me: program exited with status $ac_status" >&5
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20015
20016 ( exit $ac_status )
20017 ac_c_printf_a=no
20018 fi
20019 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20020 fi
20021         ac_ext=c
20022 ac_cpp='$CPP $CPPFLAGS'
20023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20026
20027         echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20028 echo "${ECHO_T}$ac_c_printf_a" >&6
20029         if test "$ac_c_printf_a" = "yes"; then
20030
20031 cat >>confdefs.h <<\_ACEOF
20032 #define HAVE_PRINTF_A 1
20033 _ACEOF
20034
20035         fi
20036
20037
20038 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20039 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20040 if test "${ac_cv_c_bigendian+set}" = set; then
20041   echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20043   # See if sys/param.h defines the BYTE_ORDER macro.
20044 cat >conftest.$ac_ext <<_ACEOF
20045 #line $LINENO "configure"
20046 /* confdefs.h.  */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h.  */
20051 #include <sys/types.h>
20052 #include <sys/param.h>
20053
20054 int
20055 main ()
20056 {
20057 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20058  bogus endian macros
20059 #endif
20060
20061   ;
20062   return 0;
20063 }
20064 _ACEOF
20065 rm -f conftest.$ac_objext
20066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20067   (eval $ac_compile) 2>&5
20068   ac_status=$?
20069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070   (exit $ac_status); } &&
20071          { ac_try='test -s conftest.$ac_objext'
20072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073   (eval $ac_try) 2>&5
20074   ac_status=$?
20075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076   (exit $ac_status); }; }; then
20077   # It does; now see whether it defined to BIG_ENDIAN or not.
20078 cat >conftest.$ac_ext <<_ACEOF
20079 #line $LINENO "configure"
20080 /* confdefs.h.  */
20081 _ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h.  */
20085 #include <sys/types.h>
20086 #include <sys/param.h>
20087
20088 int
20089 main ()
20090 {
20091 #if BYTE_ORDER != BIG_ENDIAN
20092  not big endian
20093 #endif
20094
20095   ;
20096   return 0;
20097 }
20098 _ACEOF
20099 rm -f conftest.$ac_objext
20100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20101   (eval $ac_compile) 2>&5
20102   ac_status=$?
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); } &&
20105          { ac_try='test -s conftest.$ac_objext'
20106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107   (eval $ac_try) 2>&5
20108   ac_status=$?
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); }; }; then
20111   ac_cv_c_bigendian=yes
20112 else
20113   echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116 ac_cv_c_bigendian=no
20117 fi
20118 rm -f conftest.$ac_objext conftest.$ac_ext
20119 else
20120   echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20122
20123 # It does not; compile a test program.
20124 if test "$cross_compiling" = yes; then
20125   # try to guess the endianness by grepping values into an object file
20126   ac_cv_c_bigendian=unknown
20127   cat >conftest.$ac_ext <<_ACEOF
20128 #line $LINENO "configure"
20129 /* confdefs.h.  */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h.  */
20134 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20135 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20136 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20137 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20138 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20139 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20140 int
20141 main ()
20142 {
20143  _ascii (); _ebcdic ();
20144   ;
20145   return 0;
20146 }
20147 _ACEOF
20148 rm -f conftest.$ac_objext
20149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20150   (eval $ac_compile) 2>&5
20151   ac_status=$?
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); } &&
20154          { ac_try='test -s conftest.$ac_objext'
20155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156   (eval $ac_try) 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); }; }; then
20160   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20161   ac_cv_c_bigendian=yes
20162 fi
20163 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20164   if test "$ac_cv_c_bigendian" = unknown; then
20165     ac_cv_c_bigendian=no
20166   else
20167     # finding both strings is unlikely to happen, but who knows?
20168     ac_cv_c_bigendian=unknown
20169   fi
20170 fi
20171 else
20172   echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20174
20175 fi
20176 rm -f conftest.$ac_objext conftest.$ac_ext
20177 else
20178   cat >conftest.$ac_ext <<_ACEOF
20179 #line $LINENO "configure"
20180 /* confdefs.h.  */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h.  */
20185 int
20186 main ()
20187 {
20188   /* Are we little or big endian?  From Harbison&Steele.  */
20189   union
20190   {
20191     long l;
20192     char c[sizeof (long)];
20193   } u;
20194   u.l = 1;
20195   exit (u.c[sizeof (long) - 1] == 1);
20196 }
20197 _ACEOF
20198 rm -f conftest$ac_exeext
20199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20200   (eval $ac_link) 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205   (eval $ac_try) 2>&5
20206   ac_status=$?
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); }; }; then
20209   ac_cv_c_bigendian=no
20210 else
20211   echo "$as_me: program exited with status $ac_status" >&5
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 ( exit $ac_status )
20216 ac_cv_c_bigendian=yes
20217 fi
20218 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20219 fi
20220 fi
20221 rm -f conftest.$ac_objext conftest.$ac_ext
20222 fi
20223 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20224 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20225 case $ac_cv_c_bigendian in
20226   yes)
20227     ENDIAN=big
20228  ;;
20229   no)
20230     ENDIAN=little
20231  ;;
20232   *)
20233     { { echo "$as_me:$LINENO: error: unknown endianness
20234 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20235 echo "$as_me: error: unknown endianness
20236 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20237    { (exit 1); exit 1; }; } ;;
20238 esac
20239
20240
20241 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20242 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20243 if test "${ac_cv_cxx_namespaces+set}" = set; then
20244   echo $ECHO_N "(cached) $ECHO_C" >&6
20245 else
20246
20247
20248  ac_ext=cc
20249 ac_cpp='$CXXCPP $CPPFLAGS'
20250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20253
20254  cat >conftest.$ac_ext <<_ACEOF
20255 #line $LINENO "configure"
20256 /* confdefs.h.  */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h.  */
20261 namespace Outer { namespace Inner { int i = 0; }}
20262 int
20263 main ()
20264 {
20265 using namespace Outer::Inner; return i;
20266   ;
20267   return 0;
20268 }
20269 _ACEOF
20270 rm -f conftest.$ac_objext
20271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20272   (eval $ac_compile) 2>&5
20273   ac_status=$?
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); } &&
20276          { ac_try='test -s conftest.$ac_objext'
20277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278   (eval $ac_try) 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); }; }; then
20282   ac_cv_cxx_namespaces=yes
20283 else
20284   echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287 ac_cv_cxx_namespaces=no
20288 fi
20289 rm -f conftest.$ac_objext conftest.$ac_ext
20290  ac_ext=c
20291 ac_cpp='$CPP $CPPFLAGS'
20292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20295
20296
20297 fi
20298 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20299 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20300 if test "$ac_cv_cxx_namespaces" = yes; then
20301
20302 cat >>confdefs.h <<\_ACEOF
20303 #define HAVE_NAMESPACES
20304 _ACEOF
20305
20306 fi
20307
20308 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20309 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20310 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20311   echo $ECHO_N "(cached) $ECHO_C" >&6
20312 else
20313
20314
20315
20316   ac_ext=cc
20317 ac_cpp='$CXXCPP $CPPFLAGS'
20318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20321
20322   cat >conftest.$ac_ext <<_ACEOF
20323 #line $LINENO "configure"
20324 /* confdefs.h.  */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h.  */
20329 #include <ext/hash_map>
20330 #ifdef HAVE_NAMESPACES
20331 using namespace std;
20332 #endif
20333 int
20334 main ()
20335 {
20336 hash_map<int, int> t;
20337   ;
20338   return 0;
20339 }
20340 _ACEOF
20341 rm -f conftest.$ac_objext
20342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20343   (eval $ac_compile) 2>&5
20344   ac_status=$?
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); } &&
20347          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20353   ac_cv_cxx_have_std_ext_hash_map=yes
20354 else
20355   echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20357
20358 ac_cv_cxx_have_std_ext_hash_map=no
20359 fi
20360 rm -f conftest.$ac_objext conftest.$ac_ext
20361   ac_ext=c
20362 ac_cpp='$CPP $CPPFLAGS'
20363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20366
20367 fi
20368 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20369 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20370  HAVE_STD_EXT_HASH_MAP=0
20371  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20372  then
20373    HAVE_STD_EXT_HASH_MAP=1
20374  fi
20375
20376  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20377 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20378 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20379   echo $ECHO_N "(cached) $ECHO_C" >&6
20380 else
20381
20382
20383
20384   ac_ext=cc
20385 ac_cpp='$CXXCPP $CPPFLAGS'
20386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20389
20390   cat >conftest.$ac_ext <<_ACEOF
20391 #line $LINENO "configure"
20392 /* confdefs.h.  */
20393 _ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h.  */
20397 #include <ext/hash_map>
20398 #ifdef HAVE_NAMESPACES
20399 using namespace __gnu_cxx;
20400 #endif
20401 int
20402 main ()
20403 {
20404 hash_map<int,int> t;
20405   ;
20406   return 0;
20407 }
20408 _ACEOF
20409 rm -f conftest.$ac_objext
20410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20411   (eval $ac_compile) 2>&5
20412   ac_status=$?
20413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); } &&
20415          { ac_try='test -s conftest.$ac_objext'
20416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417   (eval $ac_try) 2>&5
20418   ac_status=$?
20419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420   (exit $ac_status); }; }; then
20421   ac_cv_cxx_have_gnu_ext_hash_map=yes
20422 else
20423   echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20425
20426 ac_cv_cxx_have_gnu_ext_hash_map=no
20427 fi
20428 rm -f conftest.$ac_objext conftest.$ac_ext
20429   ac_ext=c
20430 ac_cpp='$CPP $CPPFLAGS'
20431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20434
20435 fi
20436 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20437 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20438  HAVE_GNU_EXT_HASH_MAP=0
20439  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20440  then
20441    HAVE_GNU_EXT_HASH_MAP=1
20442  fi
20443
20444  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20445 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20446 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20447   echo $ECHO_N "(cached) $ECHO_C" >&6
20448 else
20449
20450
20451
20452   ac_ext=cc
20453 ac_cpp='$CXXCPP $CPPFLAGS'
20454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20457
20458   cat >conftest.$ac_ext <<_ACEOF
20459 #line $LINENO "configure"
20460 /* confdefs.h.  */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h.  */
20465 #include <hash_map>
20466 int
20467 main ()
20468 {
20469 hash_map<int,int> t;
20470   ;
20471   return 0;
20472 }
20473 _ACEOF
20474 rm -f conftest.$ac_objext
20475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20476   (eval $ac_compile) 2>&5
20477   ac_status=$?
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); } &&
20480          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20486   ac_cv_cxx_have_global_hash_map=yes
20487 else
20488   echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20490
20491 ac_cv_cxx_have_global_hash_map=no
20492 fi
20493 rm -f conftest.$ac_objext conftest.$ac_ext
20494   ac_ext=c
20495 ac_cpp='$CPP $CPPFLAGS'
20496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20499
20500 fi
20501 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20502 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20503  HAVE_GLOBAL_HASH_MAP=0
20504  if test "$ac_cv_cxx_have_global_hash_map" = yes
20505  then
20506    HAVE_GLOBAL_HASH_MAP=1
20507  fi
20508
20509 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20510 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20511 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20512   echo $ECHO_N "(cached) $ECHO_C" >&6
20513 else
20514
20515
20516
20517   ac_ext=cc
20518 ac_cpp='$CXXCPP $CPPFLAGS'
20519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20522
20523   cat >conftest.$ac_ext <<_ACEOF
20524 #line $LINENO "configure"
20525 /* confdefs.h.  */
20526 _ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h.  */
20530 #include <ext/hash_set>
20531 #ifdef HAVE_NAMESPACES
20532 using namespace std;
20533 #endif
20534 int
20535 main ()
20536 {
20537 hash_set<int> t;
20538   ;
20539   return 0;
20540 }
20541 _ACEOF
20542 rm -f conftest.$ac_objext
20543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20544   (eval $ac_compile) 2>&5
20545   ac_status=$?
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); } &&
20548          { ac_try='test -s conftest.$ac_objext'
20549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550   (eval $ac_try) 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); }; }; then
20554   ac_cv_cxx_have_std_ext_hash_set=yes
20555 else
20556   echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20558
20559 ac_cv_cxx_have_std_ext_hash_set=no
20560 fi
20561 rm -f conftest.$ac_objext conftest.$ac_ext
20562   ac_ext=c
20563 ac_cpp='$CPP $CPPFLAGS'
20564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20567
20568 fi
20569 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20570 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20571  HAVE_STD_EXT_HASH_SET=0
20572  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20573  then
20574    HAVE_STD_EXT_HASH_SET=1
20575  fi
20576
20577  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20578 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20579 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20580   echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20582
20583
20584
20585   ac_ext=cc
20586 ac_cpp='$CXXCPP $CPPFLAGS'
20587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20590
20591   cat >conftest.$ac_ext <<_ACEOF
20592 #line $LINENO "configure"
20593 /* confdefs.h.  */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h.  */
20598 #include <ext/hash_set>
20599 #ifdef HAVE_NAMESPACES
20600 using namespace __gnu_cxx;
20601 #endif
20602 int
20603 main ()
20604 {
20605 hash_set<int> t;
20606   ;
20607   return 0;
20608 }
20609 _ACEOF
20610 rm -f conftest.$ac_objext
20611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20612   (eval $ac_compile) 2>&5
20613   ac_status=$?
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); } &&
20616          { ac_try='test -s conftest.$ac_objext'
20617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618   (eval $ac_try) 2>&5
20619   ac_status=$?
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); }; }; then
20622   ac_cv_cxx_have_gnu_ext_hash_set=yes
20623 else
20624   echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20626
20627 ac_cv_cxx_have_gnu_ext_hash_set=no
20628 fi
20629 rm -f conftest.$ac_objext conftest.$ac_ext
20630   ac_ext=c
20631 ac_cpp='$CPP $CPPFLAGS'
20632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20635
20636 fi
20637 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20638 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20639  HAVE_GNU_EXT_HASH_SET=0
20640  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20641  then
20642    HAVE_GNU_EXT_HASH_SET=1
20643  fi
20644
20645  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20646 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20647 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20648   echo $ECHO_N "(cached) $ECHO_C" >&6
20649 else
20650
20651
20652
20653   ac_ext=cc
20654 ac_cpp='$CXXCPP $CPPFLAGS'
20655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20658
20659   cat >conftest.$ac_ext <<_ACEOF
20660 #line $LINENO "configure"
20661 /* confdefs.h.  */
20662 _ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h.  */
20666 #include <hash_set>
20667 int
20668 main ()
20669 {
20670 hash_set<int> t; return 0;
20671   ;
20672   return 0;
20673 }
20674 _ACEOF
20675 rm -f conftest.$ac_objext
20676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20677   (eval $ac_compile) 2>&5
20678   ac_status=$?
20679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680   (exit $ac_status); } &&
20681          { ac_try='test -s conftest.$ac_objext'
20682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20683   (eval $ac_try) 2>&5
20684   ac_status=$?
20685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686   (exit $ac_status); }; }; then
20687   ac_cv_cxx_have_global_hash_set=yes
20688 else
20689   echo "$as_me: failed program was:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20691
20692 ac_cv_cxx_have_global_hash_set=no
20693 fi
20694 rm -f conftest.$ac_objext conftest.$ac_ext
20695   ac_ext=c
20696 ac_cpp='$CPP $CPPFLAGS'
20697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20700
20701 fi
20702 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20703 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20704  HAVE_GLOBAL_HASH_SET=0
20705  if test "$ac_cv_cxx_have_global_hash_set" = yes
20706  then
20707    HAVE_GLOBAL_HASH_SET=1
20708  fi
20709
20710 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20711 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20712 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20713   echo $ECHO_N "(cached) $ECHO_C" >&6
20714 else
20715
20716
20717
20718   ac_ext=cc
20719 ac_cpp='$CXXCPP $CPPFLAGS'
20720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20723
20724   cat >conftest.$ac_ext <<_ACEOF
20725 #line $LINENO "configure"
20726 /* confdefs.h.  */
20727 _ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h.  */
20731 #include <iterator>
20732 #ifdef HAVE_NAMESPACES
20733 using namespace std;
20734 #endif
20735 int
20736 main ()
20737 {
20738 iterator<int,int,int> t; return 0;
20739   ;
20740   return 0;
20741 }
20742 _ACEOF
20743 rm -f conftest.$ac_objext
20744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20745   (eval $ac_compile) 2>&5
20746   ac_status=$?
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); } &&
20749          { ac_try='test -s conftest.$ac_objext'
20750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751   (eval $ac_try) 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); }; }; then
20755   ac_cv_cxx_have_std_iterator=yes
20756 else
20757   echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20759
20760 ac_cv_cxx_have_std_iterator=no
20761 fi
20762 rm -f conftest.$ac_objext conftest.$ac_ext
20763   ac_ext=c
20764 ac_cpp='$CPP $CPPFLAGS'
20765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20768
20769
20770 fi
20771 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20772 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20773 HAVE_STD_ITERATOR=0
20774 if test "$ac_cv_cxx_have_std_iterator" = yes
20775 then
20776    HAVE_STD_ITERATOR=1
20777 fi
20778
20779 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20780 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20781 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20782   echo $ECHO_N "(cached) $ECHO_C" >&6
20783 else
20784
20785
20786
20787   ac_ext=cc
20788 ac_cpp='$CXXCPP $CPPFLAGS'
20789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20792
20793   cat >conftest.$ac_ext <<_ACEOF
20794 #line $LINENO "configure"
20795 /* confdefs.h.  */
20796 _ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h.  */
20800 #include <iterator>
20801 #ifdef HAVE_NAMESPACES
20802 using namespace std;
20803 #endif
20804 int
20805 main ()
20806 {
20807 bidirectional_iterator<int,int> t; return 0;
20808   ;
20809   return 0;
20810 }
20811 _ACEOF
20812 rm -f conftest.$ac_objext
20813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20814   (eval $ac_compile) 2>&5
20815   ac_status=$?
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); } &&
20818          { ac_try='test -s conftest.$ac_objext'
20819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820   (eval $ac_try) 2>&5
20821   ac_status=$?
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); }; }; then
20824   ac_cv_cxx_have_bi_iterator=yes
20825 else
20826   echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20828
20829 ac_cv_cxx_have_bi_iterator=no
20830 fi
20831 rm -f conftest.$ac_objext conftest.$ac_ext
20832   ac_ext=c
20833 ac_cpp='$CPP $CPPFLAGS'
20834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20837
20838
20839 fi
20840 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20841 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20842 HAVE_BI_ITERATOR=0
20843 if test "$ac_cv_cxx_have_bi_iterator" = yes
20844 then
20845    HAVE_BI_ITERATOR=1
20846 fi
20847
20848 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20849 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20850 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20851   echo $ECHO_N "(cached) $ECHO_C" >&6
20852 else
20853
20854
20855
20856   ac_ext=cc
20857 ac_cpp='$CXXCPP $CPPFLAGS'
20858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20861
20862   cat >conftest.$ac_ext <<_ACEOF
20863 #line $LINENO "configure"
20864 /* confdefs.h.  */
20865 _ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h.  */
20869 #include <iterator>
20870 #ifdef HAVE_NAMESPACES
20871 using namespace std;
20872 #endif
20873 int
20874 main ()
20875 {
20876 forward_iterator<int,int> t; return 0;
20877   ;
20878   return 0;
20879 }
20880 _ACEOF
20881 rm -f conftest.$ac_objext
20882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20883   (eval $ac_compile) 2>&5
20884   ac_status=$?
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } &&
20887          { ac_try='test -s conftest.$ac_objext'
20888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889   (eval $ac_try) 2>&5
20890   ac_status=$?
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); }; }; then
20893   ac_cv_cxx_have_fwd_iterator=yes
20894 else
20895   echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20897
20898 ac_cv_cxx_have_fwd_iterator=no
20899 fi
20900 rm -f conftest.$ac_objext conftest.$ac_ext
20901   ac_ext=c
20902 ac_cpp='$CPP $CPPFLAGS'
20903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20906
20907
20908 fi
20909 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20910 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20911 HAVE_FWD_ITERATOR=0
20912 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20913 then
20914    HAVE_FWD_ITERATOR=1
20915 fi
20916
20917
20918
20919 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20920 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
20921 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20922   echo $ECHO_N "(cached) $ECHO_C" >&6
20923 else
20924   ac_ext=cc
20925 ac_cpp='$CXXCPP $CPPFLAGS'
20926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20929
20930   cat >conftest.$ac_ext <<_ACEOF
20931 #line $LINENO "configure"
20932 /* confdefs.h.  */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h.  */
20937 #include <math.h>
20938                      int foo(float f) {return isnan(f);}
20939 _ACEOF
20940 rm -f conftest.$ac_objext
20941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20942   (eval $ac_compile) 2>&5
20943   ac_status=$?
20944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); } &&
20946          { ac_try='test -s conftest.$ac_objext'
20947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948   (eval $ac_try) 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); }; }; then
20952   ac_cv_func_isnan_in_math_h=yes
20953 else
20954   echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20956
20957 ac_cv_func_isnan_in_math_h=no
20958 fi
20959 rm -f conftest.$ac_objext conftest.$ac_ext
20960  ac_ext=c
20961 ac_cpp='$CPP $CPPFLAGS'
20962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20965
20966 fi
20967 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20968 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
20969  if test "$ac_cv_func_isnan_in_math_h" = "yes"
20970  then
20971
20972 cat >>confdefs.h <<\_ACEOF
20973 #define HAVE_ISNAN_IN_MATH_H 1
20974 _ACEOF
20975
20976  fi
20977 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20978 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
20979 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20980   echo $ECHO_N "(cached) $ECHO_C" >&6
20981 else
20982   ac_ext=cc
20983 ac_cpp='$CXXCPP $CPPFLAGS'
20984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20987
20988   cat >conftest.$ac_ext <<_ACEOF
20989 #line $LINENO "configure"
20990 /* confdefs.h.  */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h.  */
20995 #include <cmath>
20996                      int foo(float f) {return isnan(f);}
20997 _ACEOF
20998 rm -f conftest.$ac_objext
20999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21000   (eval $ac_compile) 2>&5
21001   ac_status=$?
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); } &&
21004          { ac_try='test -s conftest.$ac_objext'
21005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006   (eval $ac_try) 2>&5
21007   ac_status=$?
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); }; }; then
21010   ac_cv_func_isnan_in_cmath=yes
21011 else
21012   echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21014
21015 ac_cv_func_isnan_in_cmath=no
21016 fi
21017 rm -f conftest.$ac_objext conftest.$ac_ext
21018  ac_ext=c
21019 ac_cpp='$CPP $CPPFLAGS'
21020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023
21024 fi
21025 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21026 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21027  if test "$ac_cv_func_isnan_in_cmath" = "yes"
21028  then
21029
21030 cat >>confdefs.h <<\_ACEOF
21031 #define HAVE_ISNAN_IN_CMATH 1
21032 _ACEOF
21033
21034  fi
21035 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21036 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21037 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21038   echo $ECHO_N "(cached) $ECHO_C" >&6
21039 else
21040   ac_ext=cc
21041 ac_cpp='$CXXCPP $CPPFLAGS'
21042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21045
21046   cat >conftest.$ac_ext <<_ACEOF
21047 #line $LINENO "configure"
21048 /* confdefs.h.  */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h.  */
21053 #include <cmath>
21054                      using std::isnan; int foo(float f) {return isnan(f);}
21055 _ACEOF
21056 rm -f conftest.$ac_objext
21057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21058   (eval $ac_compile) 2>&5
21059   ac_status=$?
21060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061   (exit $ac_status); } &&
21062          { ac_try='test -s conftest.$ac_objext'
21063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064   (eval $ac_try) 2>&5
21065   ac_status=$?
21066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067   (exit $ac_status); }; }; then
21068   ac_cv_func_std_isnan_in_cmath=yes
21069 else
21070   echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21072
21073 ac_cv_func_std_isnan_in_cmath=no
21074 fi
21075 rm -f conftest.$ac_objext conftest.$ac_ext
21076  ac_ext=c
21077 ac_cpp='$CPP $CPPFLAGS'
21078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21081
21082 fi
21083 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21084 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21085  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21086  then
21087
21088 cat >>confdefs.h <<\_ACEOF
21089 #define HAVE_STD_ISNAN_IN_CMATH 1
21090 _ACEOF
21091
21092  fi
21093
21094
21095 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21096 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21097 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21098   echo $ECHO_N "(cached) $ECHO_C" >&6
21099 else
21100   ac_ext=cc
21101 ac_cpp='$CXXCPP $CPPFLAGS'
21102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21105
21106   cat >conftest.$ac_ext <<_ACEOF
21107 #line $LINENO "configure"
21108 /* confdefs.h.  */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h.  */
21113 #include <math.h>
21114                      int foo(float f) {return isinf(f);}
21115 _ACEOF
21116 rm -f conftest.$ac_objext
21117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21118   (eval $ac_compile) 2>&5
21119   ac_status=$?
21120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); } &&
21122          { ac_try='test -s conftest.$ac_objext'
21123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124   (eval $ac_try) 2>&5
21125   ac_status=$?
21126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127   (exit $ac_status); }; }; then
21128   ac_cv_func_isinf_in_math_h=yes
21129 else
21130   echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21132
21133 ac_cv_func_isinf_in_math_h=no
21134 fi
21135 rm -f conftest.$ac_objext conftest.$ac_ext
21136  ac_ext=c
21137 ac_cpp='$CPP $CPPFLAGS'
21138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21141
21142 fi
21143 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21144 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21145  if test "$ac_cv_func_isinf_in_math_h" = "yes"
21146  then
21147
21148 cat >>confdefs.h <<\_ACEOF
21149 #define HAVE_ISINF_IN_MATH_H 1
21150 _ACEOF
21151
21152  fi
21153 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21154 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21155 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21156   echo $ECHO_N "(cached) $ECHO_C" >&6
21157 else
21158   ac_ext=cc
21159 ac_cpp='$CXXCPP $CPPFLAGS'
21160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21163
21164   cat >conftest.$ac_ext <<_ACEOF
21165 #line $LINENO "configure"
21166 /* confdefs.h.  */
21167 _ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h.  */
21171 #include <cmath>
21172                      int foo(float f) {return isinf(f);}
21173 _ACEOF
21174 rm -f conftest.$ac_objext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176   (eval $ac_compile) 2>&5
21177   ac_status=$?
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); } &&
21180          { ac_try='test -s conftest.$ac_objext'
21181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182   (eval $ac_try) 2>&5
21183   ac_status=$?
21184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185   (exit $ac_status); }; }; then
21186   ac_cv_func_isinf_in_cmath=yes
21187 else
21188   echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21190
21191 ac_cv_func_isinf_in_cmath=no
21192 fi
21193 rm -f conftest.$ac_objext conftest.$ac_ext
21194  ac_ext=c
21195 ac_cpp='$CPP $CPPFLAGS'
21196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21199
21200 fi
21201 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21202 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21203  if test "$ac_cv_func_isinf_in_cmath" = "yes"
21204  then
21205
21206 cat >>confdefs.h <<\_ACEOF
21207 #define HAVE_ISINF_IN_CMATH 1
21208 _ACEOF
21209
21210  fi
21211 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21212 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21213 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21214   echo $ECHO_N "(cached) $ECHO_C" >&6
21215 else
21216   ac_ext=cc
21217 ac_cpp='$CXXCPP $CPPFLAGS'
21218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21221
21222   cat >conftest.$ac_ext <<_ACEOF
21223 #line $LINENO "configure"
21224 /* confdefs.h.  */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h.  */
21229 #include <cmath>
21230                      using std::isinf; int foo(float f) {return isinf(f);}
21231 _ACEOF
21232 rm -f conftest.$ac_objext
21233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21234   (eval $ac_compile) 2>&5
21235   ac_status=$?
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); } &&
21238          { ac_try='test -s conftest.$ac_objext'
21239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240   (eval $ac_try) 2>&5
21241   ac_status=$?
21242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243   (exit $ac_status); }; }; then
21244   ac_cv_func_std_isinf_in_cmath=yes
21245 else
21246   echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21248
21249 ac_cv_func_std_isinf_in_cmath=no
21250 fi
21251 rm -f conftest.$ac_objext conftest.$ac_ext
21252  ac_ext=c
21253 ac_cpp='$CPP $CPPFLAGS'
21254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21257
21258 fi
21259 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21260 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
21261  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
21262  then
21263
21264 cat >>confdefs.h <<\_ACEOF
21265 #define HAVE_STD_ISINF_IN_CMATH 1
21266 _ACEOF
21267
21268  fi
21269 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21270 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
21271 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21272   echo $ECHO_N "(cached) $ECHO_C" >&6
21273 else
21274   ac_ext=cc
21275 ac_cpp='$CXXCPP $CPPFLAGS'
21276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21279
21280   cat >conftest.$ac_ext <<_ACEOF
21281 #line $LINENO "configure"
21282 /* confdefs.h.  */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h.  */
21287 #include <ieeefp.h>
21288                      int foo(float f) {return finite(f);}
21289 _ACEOF
21290 rm -f conftest.$ac_objext
21291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21292   (eval $ac_compile) 2>&5
21293   ac_status=$?
21294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295   (exit $ac_status); } &&
21296          { ac_try='test -s conftest.$ac_objext'
21297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298   (eval $ac_try) 2>&5
21299   ac_status=$?
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); }; }; then
21302   ac_cv_func_finite_in_ieeefp_h=yes
21303 else
21304   echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21306
21307 ac_cv_func_finite_in_ieeefp_h=no
21308 fi
21309 rm -f conftest.$ac_objext conftest.$ac_ext
21310  ac_ext=c
21311 ac_cpp='$CPP $CPPFLAGS'
21312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21315
21316 fi
21317 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21318 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
21319  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
21320  then
21321
21322 cat >>confdefs.h <<\_ACEOF
21323 #define HAVE_FINITE_IN_IEEEFP_H 1
21324 _ACEOF
21325
21326  fi
21327
21328
21329 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21330 # for constant arguments.  Useless!
21331 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21332 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21333 if test "${ac_cv_working_alloca_h+set}" = set; then
21334   echo $ECHO_N "(cached) $ECHO_C" >&6
21335 else
21336   cat >conftest.$ac_ext <<_ACEOF
21337 #line $LINENO "configure"
21338 /* confdefs.h.  */
21339 _ACEOF
21340 cat confdefs.h >>conftest.$ac_ext
21341 cat >>conftest.$ac_ext <<_ACEOF
21342 /* end confdefs.h.  */
21343 #include <alloca.h>
21344 int
21345 main ()
21346 {
21347 char *p = (char *) alloca (2 * sizeof (int));
21348   ;
21349   return 0;
21350 }
21351 _ACEOF
21352 rm -f conftest.$ac_objext conftest$ac_exeext
21353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21354   (eval $ac_link) 2>&5
21355   ac_status=$?
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); } &&
21358          { ac_try='test -s conftest$ac_exeext'
21359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360   (eval $ac_try) 2>&5
21361   ac_status=$?
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); }; }; then
21364   ac_cv_working_alloca_h=yes
21365 else
21366   echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21368
21369 ac_cv_working_alloca_h=no
21370 fi
21371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21372 fi
21373 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21374 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21375 if test $ac_cv_working_alloca_h = yes; then
21376
21377 cat >>confdefs.h <<\_ACEOF
21378 #define HAVE_ALLOCA_H 1
21379 _ACEOF
21380
21381 fi
21382
21383 echo "$as_me:$LINENO: checking for alloca" >&5
21384 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21385 if test "${ac_cv_func_alloca_works+set}" = set; then
21386   echo $ECHO_N "(cached) $ECHO_C" >&6
21387 else
21388   cat >conftest.$ac_ext <<_ACEOF
21389 #line $LINENO "configure"
21390 /* confdefs.h.  */
21391 _ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h.  */
21395 #ifdef __GNUC__
21396 # define alloca __builtin_alloca
21397 #else
21398 # ifdef _MSC_VER
21399 #  include <malloc.h>
21400 #  define alloca _alloca
21401 # else
21402 #  if HAVE_ALLOCA_H
21403 #   include <alloca.h>
21404 #  else
21405 #   ifdef _AIX
21406  #pragma alloca
21407 #   else
21408 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21409 char *alloca ();
21410 #    endif
21411 #   endif
21412 #  endif
21413 # endif
21414 #endif
21415
21416 int
21417 main ()
21418 {
21419 char *p = (char *) alloca (1);
21420   ;
21421   return 0;
21422 }
21423 _ACEOF
21424 rm -f conftest.$ac_objext conftest$ac_exeext
21425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21426   (eval $ac_link) 2>&5
21427   ac_status=$?
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); } &&
21430          { ac_try='test -s conftest$ac_exeext'
21431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432   (eval $ac_try) 2>&5
21433   ac_status=$?
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); }; }; then
21436   ac_cv_func_alloca_works=yes
21437 else
21438   echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21440
21441 ac_cv_func_alloca_works=no
21442 fi
21443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21444 fi
21445 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21446 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21447
21448 if test $ac_cv_func_alloca_works = yes; then
21449
21450 cat >>confdefs.h <<\_ACEOF
21451 #define HAVE_ALLOCA 1
21452 _ACEOF
21453
21454 else
21455   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21456 # that cause trouble.  Some versions do not even contain alloca or
21457 # contain a buggy version.  If you still want to use their alloca,
21458 # use ar to extract alloca.o from them instead of compiling alloca.c.
21459
21460 ALLOCA=alloca.$ac_objext
21461
21462 cat >>confdefs.h <<\_ACEOF
21463 #define C_ALLOCA 1
21464 _ACEOF
21465
21466
21467 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21468 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21469 if test "${ac_cv_os_cray+set}" = set; then
21470   echo $ECHO_N "(cached) $ECHO_C" >&6
21471 else
21472   cat >conftest.$ac_ext <<_ACEOF
21473 #line $LINENO "configure"
21474 /* confdefs.h.  */
21475 _ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h.  */
21479 #if defined(CRAY) && ! defined(CRAY2)
21480 webecray
21481 #else
21482 wenotbecray
21483 #endif
21484
21485 _ACEOF
21486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21487   $EGREP "webecray" >/dev/null 2>&1; then
21488   ac_cv_os_cray=yes
21489 else
21490   ac_cv_os_cray=no
21491 fi
21492 rm -f conftest*
21493
21494 fi
21495 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21496 echo "${ECHO_T}$ac_cv_os_cray" >&6
21497 if test $ac_cv_os_cray = yes; then
21498   for ac_func in _getb67 GETB67 getb67; do
21499     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21500 echo "$as_me:$LINENO: checking for $ac_func" >&5
21501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21502 if eval "test \"\${$as_ac_var+set}\" = set"; then
21503   echo $ECHO_N "(cached) $ECHO_C" >&6
21504 else
21505   cat >conftest.$ac_ext <<_ACEOF
21506 #line $LINENO "configure"
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512 /* System header to define __stub macros and hopefully few prototypes,
21513     which can conflict with char $ac_func (); below.
21514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21515     <limits.h> exists even on freestanding compilers.  */
21516 #ifdef __STDC__
21517 # include <limits.h>
21518 #else
21519 # include <assert.h>
21520 #endif
21521 /* Override any gcc2 internal prototype to avoid an error.  */
21522 #ifdef __cplusplus
21523 extern "C"
21524 {
21525 #endif
21526 /* We use char because int might match the return type of a gcc2
21527    builtin and then its argument prototype would still apply.  */
21528 char $ac_func ();
21529 /* The GNU C library defines this for functions which it implements
21530     to always fail with ENOSYS.  Some functions are actually named
21531     something starting with __ and the normal name is an alias.  */
21532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21533 choke me
21534 #else
21535 char (*f) () = $ac_func;
21536 #endif
21537 #ifdef __cplusplus
21538 }
21539 #endif
21540
21541 int
21542 main ()
21543 {
21544 return f != $ac_func;
21545   ;
21546   return 0;
21547 }
21548 _ACEOF
21549 rm -f conftest.$ac_objext conftest$ac_exeext
21550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21551   (eval $ac_link) 2>&5
21552   ac_status=$?
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); } &&
21555          { ac_try='test -s conftest$ac_exeext'
21556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557   (eval $ac_try) 2>&5
21558   ac_status=$?
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); }; }; then
21561   eval "$as_ac_var=yes"
21562 else
21563   echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21565
21566 eval "$as_ac_var=no"
21567 fi
21568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21569 fi
21570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21572 if test `eval echo '${'$as_ac_var'}'` = yes; then
21573
21574 cat >>confdefs.h <<_ACEOF
21575 #define CRAY_STACKSEG_END $ac_func
21576 _ACEOF
21577
21578     break
21579 fi
21580
21581   done
21582 fi
21583
21584 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21585 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21586 if test "${ac_cv_c_stack_direction+set}" = set; then
21587   echo $ECHO_N "(cached) $ECHO_C" >&6
21588 else
21589   if test "$cross_compiling" = yes; then
21590   ac_cv_c_stack_direction=0
21591 else
21592   cat >conftest.$ac_ext <<_ACEOF
21593 #line $LINENO "configure"
21594 /* confdefs.h.  */
21595 _ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h.  */
21599 int
21600 find_stack_direction ()
21601 {
21602   static char *addr = 0;
21603   auto char dummy;
21604   if (addr == 0)
21605     {
21606       addr = &dummy;
21607       return find_stack_direction ();
21608     }
21609   else
21610     return (&dummy > addr) ? 1 : -1;
21611 }
21612
21613 int
21614 main ()
21615 {
21616   exit (find_stack_direction () < 0);
21617 }
21618 _ACEOF
21619 rm -f conftest$ac_exeext
21620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21621   (eval $ac_link) 2>&5
21622   ac_status=$?
21623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626   (eval $ac_try) 2>&5
21627   ac_status=$?
21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629   (exit $ac_status); }; }; then
21630   ac_cv_c_stack_direction=1
21631 else
21632   echo "$as_me: program exited with status $ac_status" >&5
21633 echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.$ac_ext >&5
21635
21636 ( exit $ac_status )
21637 ac_cv_c_stack_direction=-1
21638 fi
21639 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21640 fi
21641 fi
21642 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21643 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21644
21645 cat >>confdefs.h <<_ACEOF
21646 #define STACK_DIRECTION $ac_cv_c_stack_direction
21647 _ACEOF
21648
21649
21650 fi
21651
21652
21653
21654 for ac_header in stdlib.h unistd.h
21655 do
21656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21658   echo "$as_me:$LINENO: checking for $ac_header" >&5
21659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21661   echo $ECHO_N "(cached) $ECHO_C" >&6
21662 fi
21663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21665 else
21666   # Is the header compilable?
21667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21669 cat >conftest.$ac_ext <<_ACEOF
21670 #line $LINENO "configure"
21671 /* confdefs.h.  */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h.  */
21676 $ac_includes_default
21677 #include <$ac_header>
21678 _ACEOF
21679 rm -f conftest.$ac_objext
21680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21681   (eval $ac_compile) 2>&5
21682   ac_status=$?
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); } &&
21685          { ac_try='test -s conftest.$ac_objext'
21686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687   (eval $ac_try) 2>&5
21688   ac_status=$?
21689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690   (exit $ac_status); }; }; then
21691   ac_header_compiler=yes
21692 else
21693   echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696 ac_header_compiler=no
21697 fi
21698 rm -f conftest.$ac_objext conftest.$ac_ext
21699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21700 echo "${ECHO_T}$ac_header_compiler" >&6
21701
21702 # Is the header present?
21703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21705 cat >conftest.$ac_ext <<_ACEOF
21706 #line $LINENO "configure"
21707 /* confdefs.h.  */
21708 _ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h.  */
21712 #include <$ac_header>
21713 _ACEOF
21714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21716   ac_status=$?
21717   grep -v '^ *+' conftest.er1 >conftest.err
21718   rm -f conftest.er1
21719   cat conftest.err >&5
21720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721   (exit $ac_status); } >/dev/null; then
21722   if test -s conftest.err; then
21723     ac_cpp_err=$ac_c_preproc_warn_flag
21724   else
21725     ac_cpp_err=
21726   fi
21727 else
21728   ac_cpp_err=yes
21729 fi
21730 if test -z "$ac_cpp_err"; then
21731   ac_header_preproc=yes
21732 else
21733   echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21735
21736   ac_header_preproc=no
21737 fi
21738 rm -f conftest.err conftest.$ac_ext
21739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21740 echo "${ECHO_T}$ac_header_preproc" >&6
21741
21742 # So?  What about this header?
21743 case $ac_header_compiler:$ac_header_preproc in
21744   yes:no )
21745     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21749     (
21750       cat <<\_ASBOX
21751 ## ------------------------------------ ##
21752 ## Report this to bug-autoconf@gnu.org. ##
21753 ## ------------------------------------ ##
21754 _ASBOX
21755     ) |
21756       sed "s/^/$as_me: WARNING:     /" >&2
21757     ;;
21758   no:yes )
21759     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21761     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21765     (
21766       cat <<\_ASBOX
21767 ## ------------------------------------ ##
21768 ## Report this to bug-autoconf@gnu.org. ##
21769 ## ------------------------------------ ##
21770 _ASBOX
21771     ) |
21772       sed "s/^/$as_me: WARNING:     /" >&2
21773     ;;
21774 esac
21775 echo "$as_me:$LINENO: checking for $ac_header" >&5
21776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21778   echo $ECHO_N "(cached) $ECHO_C" >&6
21779 else
21780   eval "$as_ac_Header=$ac_header_preproc"
21781 fi
21782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21784
21785 fi
21786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21787   cat >>confdefs.h <<_ACEOF
21788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21789 _ACEOF
21790
21791 fi
21792
21793 done
21794
21795
21796 for ac_func in getpagesize
21797 do
21798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21799 echo "$as_me:$LINENO: checking for $ac_func" >&5
21800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21801 if eval "test \"\${$as_ac_var+set}\" = set"; then
21802   echo $ECHO_N "(cached) $ECHO_C" >&6
21803 else
21804   cat >conftest.$ac_ext <<_ACEOF
21805 #line $LINENO "configure"
21806 /* confdefs.h.  */
21807 _ACEOF
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h.  */
21811 /* System header to define __stub macros and hopefully few prototypes,
21812     which can conflict with char $ac_func (); below.
21813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21814     <limits.h> exists even on freestanding compilers.  */
21815 #ifdef __STDC__
21816 # include <limits.h>
21817 #else
21818 # include <assert.h>
21819 #endif
21820 /* Override any gcc2 internal prototype to avoid an error.  */
21821 #ifdef __cplusplus
21822 extern "C"
21823 {
21824 #endif
21825 /* We use char because int might match the return type of a gcc2
21826    builtin and then its argument prototype would still apply.  */
21827 char $ac_func ();
21828 /* The GNU C library defines this for functions which it implements
21829     to always fail with ENOSYS.  Some functions are actually named
21830     something starting with __ and the normal name is an alias.  */
21831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21832 choke me
21833 #else
21834 char (*f) () = $ac_func;
21835 #endif
21836 #ifdef __cplusplus
21837 }
21838 #endif
21839
21840 int
21841 main ()
21842 {
21843 return f != $ac_func;
21844   ;
21845   return 0;
21846 }
21847 _ACEOF
21848 rm -f conftest.$ac_objext conftest$ac_exeext
21849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21850   (eval $ac_link) 2>&5
21851   ac_status=$?
21852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853   (exit $ac_status); } &&
21854          { ac_try='test -s conftest$ac_exeext'
21855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856   (eval $ac_try) 2>&5
21857   ac_status=$?
21858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859   (exit $ac_status); }; }; then
21860   eval "$as_ac_var=yes"
21861 else
21862   echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21864
21865 eval "$as_ac_var=no"
21866 fi
21867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21868 fi
21869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21871 if test `eval echo '${'$as_ac_var'}'` = yes; then
21872   cat >>confdefs.h <<_ACEOF
21873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21874 _ACEOF
21875
21876 fi
21877 done
21878
21879 echo "$as_me:$LINENO: checking for working mmap" >&5
21880 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21881 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21882   echo $ECHO_N "(cached) $ECHO_C" >&6
21883 else
21884   if test "$cross_compiling" = yes; then
21885   ac_cv_func_mmap_fixed_mapped=no
21886 else
21887   cat >conftest.$ac_ext <<_ACEOF
21888 #line $LINENO "configure"
21889 /* confdefs.h.  */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h.  */
21894 $ac_includes_default
21895 /* malloc might have been renamed as rpl_malloc. */
21896 #undef malloc
21897
21898 /* Thanks to Mike Haertel and Jim Avera for this test.
21899    Here is a matrix of mmap possibilities:
21900         mmap private not fixed
21901         mmap private fixed at somewhere currently unmapped
21902         mmap private fixed at somewhere already mapped
21903         mmap shared not fixed
21904         mmap shared fixed at somewhere currently unmapped
21905         mmap shared fixed at somewhere already mapped
21906    For private mappings, we should verify that changes cannot be read()
21907    back from the file, nor mmap's back from the file at a different
21908    address.  (There have been systems where private was not correctly
21909    implemented like the infamous i386 svr4.0, and systems where the
21910    VM page cache was not coherent with the file system buffer cache
21911    like early versions of FreeBSD and possibly contemporary NetBSD.)
21912    For shared mappings, we should conversely verify that changes get
21913    propagated back to all the places they're supposed to be.
21914
21915    Grep wants private fixed already mapped.
21916    The main things grep needs to know about mmap are:
21917    * does it exist and is it safe to write into the mmap'd area
21918    * how to use it (BSD variants)  */
21919
21920 #include <fcntl.h>
21921 #include <sys/mman.h>
21922
21923 #if !STDC_HEADERS && !HAVE_STDLIB_H
21924 char *malloc ();
21925 #endif
21926
21927 /* This mess was copied from the GNU getpagesize.h.  */
21928 #if !HAVE_GETPAGESIZE
21929 /* Assume that all systems that can run configure have sys/param.h.  */
21930 # if !HAVE_SYS_PARAM_H
21931 #  define HAVE_SYS_PARAM_H 1
21932 # endif
21933
21934 # ifdef _SC_PAGESIZE
21935 #  define getpagesize() sysconf(_SC_PAGESIZE)
21936 # else /* no _SC_PAGESIZE */
21937 #  if HAVE_SYS_PARAM_H
21938 #   include <sys/param.h>
21939 #   ifdef EXEC_PAGESIZE
21940 #    define getpagesize() EXEC_PAGESIZE
21941 #   else /* no EXEC_PAGESIZE */
21942 #    ifdef NBPG
21943 #     define getpagesize() NBPG * CLSIZE
21944 #     ifndef CLSIZE
21945 #      define CLSIZE 1
21946 #     endif /* no CLSIZE */
21947 #    else /* no NBPG */
21948 #     ifdef NBPC
21949 #      define getpagesize() NBPC
21950 #     else /* no NBPC */
21951 #      ifdef PAGESIZE
21952 #       define getpagesize() PAGESIZE
21953 #      endif /* PAGESIZE */
21954 #     endif /* no NBPC */
21955 #    endif /* no NBPG */
21956 #   endif /* no EXEC_PAGESIZE */
21957 #  else /* no HAVE_SYS_PARAM_H */
21958 #   define getpagesize() 8192   /* punt totally */
21959 #  endif /* no HAVE_SYS_PARAM_H */
21960 # endif /* no _SC_PAGESIZE */
21961
21962 #endif /* no HAVE_GETPAGESIZE */
21963
21964 int
21965 main ()
21966 {
21967   char *data, *data2, *data3;
21968   int i, pagesize;
21969   int fd;
21970
21971   pagesize = getpagesize ();
21972
21973   /* First, make a file with some known garbage in it. */
21974   data = (char *) malloc (pagesize);
21975   if (!data)
21976     exit (1);
21977   for (i = 0; i < pagesize; ++i)
21978     *(data + i) = rand ();
21979   umask (0);
21980   fd = creat ("conftest.mmap", 0600);
21981   if (fd < 0)
21982     exit (1);
21983   if (write (fd, data, pagesize) != pagesize)
21984     exit (1);
21985   close (fd);
21986
21987   /* Next, try to mmap the file at a fixed address which already has
21988      something else allocated at it.  If we can, also make sure that
21989      we see the same garbage.  */
21990   fd = open ("conftest.mmap", O_RDWR);
21991   if (fd < 0)
21992     exit (1);
21993   data2 = (char *) malloc (2 * pagesize);
21994   if (!data2)
21995     exit (1);
21996   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21997   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21998                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21999     exit (1);
22000   for (i = 0; i < pagesize; ++i)
22001     if (*(data + i) != *(data2 + i))
22002       exit (1);
22003
22004   /* Finally, make sure that changes to the mapped area do not
22005      percolate back to the file as seen by read().  (This is a bug on
22006      some variants of i386 svr4.0.)  */
22007   for (i = 0; i < pagesize; ++i)
22008     *(data2 + i) = *(data2 + i) + 1;
22009   data3 = (char *) malloc (pagesize);
22010   if (!data3)
22011     exit (1);
22012   if (read (fd, data3, pagesize) != pagesize)
22013     exit (1);
22014   for (i = 0; i < pagesize; ++i)
22015     if (*(data + i) != *(data3 + i))
22016       exit (1);
22017   close (fd);
22018   exit (0);
22019 }
22020 _ACEOF
22021 rm -f conftest$ac_exeext
22022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22023   (eval $ac_link) 2>&5
22024   ac_status=$?
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028   (eval $ac_try) 2>&5
22029   ac_status=$?
22030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031   (exit $ac_status); }; }; then
22032   ac_cv_func_mmap_fixed_mapped=yes
22033 else
22034   echo "$as_me: program exited with status $ac_status" >&5
22035 echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22037
22038 ( exit $ac_status )
22039 ac_cv_func_mmap_fixed_mapped=no
22040 fi
22041 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22042 fi
22043 fi
22044 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22045 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22046 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22047
22048 cat >>confdefs.h <<\_ACEOF
22049 #define HAVE_MMAP 1
22050 _ACEOF
22051
22052 fi
22053 rm -f conftest.mmap
22054
22055 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22056 then
22057         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22058 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22059 fi
22060 echo "$as_me:$LINENO: checking for mmap of files" >&5
22061 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22062 if test "${ac_cv_func_mmap_file+set}" = set; then
22063   echo $ECHO_N "(cached) $ECHO_C" >&6
22064 else
22065
22066
22067   ac_ext=c
22068 ac_cpp='$CPP $CPPFLAGS'
22069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22072
22073   if test "$cross_compiling" = yes; then
22074   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22075 See \`config.log' for more details." >&5
22076 echo "$as_me: error: cannot run test program while cross compiling
22077 See \`config.log' for more details." >&2;}
22078    { (exit 1); exit 1; }; }
22079 else
22080   cat >conftest.$ac_ext <<_ACEOF
22081 #line $LINENO "configure"
22082 /* confdefs.h.  */
22083 _ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h.  */
22087
22088 #ifdef HAVE_SYS_TYPES_H
22089 #include <sys/types.h>
22090 #endif
22091
22092 #ifdef HAVE_SYS_MMAN_H
22093 #include <sys/mman.h>
22094 #endif
22095
22096 #ifdef HAVE_FCNTL_H
22097 #include <fcntl.h>
22098 #endif
22099
22100   int fd;
22101   int main () {
22102   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22103 _ACEOF
22104 rm -f conftest$ac_exeext
22105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22106   (eval $ac_link) 2>&5
22107   ac_status=$?
22108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111   (eval $ac_try) 2>&5
22112   ac_status=$?
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); }; }; then
22115   ac_cv_func_mmap_file=yes
22116 else
22117   echo "$as_me: program exited with status $ac_status" >&5
22118 echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22120
22121 ( exit $ac_status )
22122 ac_cv_func_mmap_file=no
22123 fi
22124 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22125 fi
22126   ac_ext=c
22127 ac_cpp='$CPP $CPPFLAGS'
22128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22131
22132
22133 fi
22134 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22135 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22136 if test "$ac_cv_func_mmap_file" = yes; then
22137
22138 cat >>confdefs.h <<\_ACEOF
22139 #define HAVE_MMAP_FILE
22140 _ACEOF
22141
22142    MMAP_FILE=yes
22143
22144 fi
22145
22146 if test "$ac_cv_func_mmap_file" = "no"
22147 then
22148         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22149 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22150 fi
22151 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22152 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22153 if test "${ac_cv_header_mmap_anon+set}" = set; then
22154   echo $ECHO_N "(cached) $ECHO_C" >&6
22155 else
22156
22157
22158   ac_ext=c
22159 ac_cpp='$CPP $CPPFLAGS'
22160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22163
22164   cat >conftest.$ac_ext <<_ACEOF
22165 #line $LINENO "configure"
22166 /* confdefs.h.  */
22167 _ACEOF
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h.  */
22171 #include <sys/mman.h>
22172   #include <unistd.h>
22173   #include <fcntl.h>
22174 int
22175 main ()
22176 {
22177 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22178   ;
22179   return 0;
22180 }
22181 _ACEOF
22182 rm -f conftest.$ac_objext
22183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22184   (eval $ac_compile) 2>&5
22185   ac_status=$?
22186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187   (exit $ac_status); } &&
22188          { ac_try='test -s conftest.$ac_objext'
22189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190   (eval $ac_try) 2>&5
22191   ac_status=$?
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); }; }; then
22194   ac_cv_header_mmap_anon=yes
22195 else
22196   echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22198
22199 ac_cv_header_mmap_anon=no
22200 fi
22201 rm -f conftest.$ac_objext conftest.$ac_ext
22202   ac_ext=c
22203 ac_cpp='$CPP $CPPFLAGS'
22204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22207
22208
22209 fi
22210 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22211 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22212 if test "$ac_cv_header_mmap_anon" = yes; then
22213
22214 cat >>confdefs.h <<\_ACEOF
22215 #define HAVE_MMAP_ANONYMOUS
22216 _ACEOF
22217
22218 fi
22219
22220 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22221 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22222 if test "${ac_cv_type_signal+set}" = set; then
22223   echo $ECHO_N "(cached) $ECHO_C" >&6
22224 else
22225   cat >conftest.$ac_ext <<_ACEOF
22226 #line $LINENO "configure"
22227 /* confdefs.h.  */
22228 _ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h.  */
22232 #include <sys/types.h>
22233 #include <signal.h>
22234 #ifdef signal
22235 # undef signal
22236 #endif
22237 #ifdef __cplusplus
22238 extern "C" void (*signal (int, void (*)(int)))(int);
22239 #else
22240 void (*signal ()) ();
22241 #endif
22242
22243 int
22244 main ()
22245 {
22246 int i;
22247   ;
22248   return 0;
22249 }
22250 _ACEOF
22251 rm -f conftest.$ac_objext
22252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22253   (eval $ac_compile) 2>&5
22254   ac_status=$?
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); } &&
22257          { ac_try='test -s conftest.$ac_objext'
22258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259   (eval $ac_try) 2>&5
22260   ac_status=$?
22261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262   (exit $ac_status); }; }; then
22263   ac_cv_type_signal=void
22264 else
22265   echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22267
22268 ac_cv_type_signal=int
22269 fi
22270 rm -f conftest.$ac_objext conftest.$ac_ext
22271 fi
22272 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22273 echo "${ECHO_T}$ac_cv_type_signal" >&6
22274
22275 cat >>confdefs.h <<_ACEOF
22276 #define RETSIGTYPE $ac_cv_type_signal
22277 _ACEOF
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
22290 do
22291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22292 echo "$as_me:$LINENO: checking for $ac_func" >&5
22293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22294 if eval "test \"\${$as_ac_var+set}\" = set"; then
22295   echo $ECHO_N "(cached) $ECHO_C" >&6
22296 else
22297   cat >conftest.$ac_ext <<_ACEOF
22298 #line $LINENO "configure"
22299 /* confdefs.h.  */
22300 _ACEOF
22301 cat confdefs.h >>conftest.$ac_ext
22302 cat >>conftest.$ac_ext <<_ACEOF
22303 /* end confdefs.h.  */
22304 /* System header to define __stub macros and hopefully few prototypes,
22305     which can conflict with char $ac_func (); below.
22306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22307     <limits.h> exists even on freestanding compilers.  */
22308 #ifdef __STDC__
22309 # include <limits.h>
22310 #else
22311 # include <assert.h>
22312 #endif
22313 /* Override any gcc2 internal prototype to avoid an error.  */
22314 #ifdef __cplusplus
22315 extern "C"
22316 {
22317 #endif
22318 /* We use char because int might match the return type of a gcc2
22319    builtin and then its argument prototype would still apply.  */
22320 char $ac_func ();
22321 /* The GNU C library defines this for functions which it implements
22322     to always fail with ENOSYS.  Some functions are actually named
22323     something starting with __ and the normal name is an alias.  */
22324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22325 choke me
22326 #else
22327 char (*f) () = $ac_func;
22328 #endif
22329 #ifdef __cplusplus
22330 }
22331 #endif
22332
22333 int
22334 main ()
22335 {
22336 return f != $ac_func;
22337   ;
22338   return 0;
22339 }
22340 _ACEOF
22341 rm -f conftest.$ac_objext conftest$ac_exeext
22342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22343   (eval $ac_link) 2>&5
22344   ac_status=$?
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); } &&
22347          { ac_try='test -s conftest$ac_exeext'
22348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349   (eval $ac_try) 2>&5
22350   ac_status=$?
22351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352   (exit $ac_status); }; }; then
22353   eval "$as_ac_var=yes"
22354 else
22355   echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22357
22358 eval "$as_ac_var=no"
22359 fi
22360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22361 fi
22362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22364 if test `eval echo '${'$as_ac_var'}'` = yes; then
22365   cat >>confdefs.h <<_ACEOF
22366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22367 _ACEOF
22368
22369 fi
22370 done
22371
22372 echo "$as_me:$LINENO: checking for mprotect" >&5
22373 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22374 if test "${ac_cv_func_mprotect+set}" = set; then
22375   echo $ECHO_N "(cached) $ECHO_C" >&6
22376 else
22377   cat >conftest.$ac_ext <<_ACEOF
22378 #line $LINENO "configure"
22379 /* confdefs.h.  */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h.  */
22384 /* System header to define __stub macros and hopefully few prototypes,
22385     which can conflict with char mprotect (); below.
22386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22387     <limits.h> exists even on freestanding compilers.  */
22388 #ifdef __STDC__
22389 # include <limits.h>
22390 #else
22391 # include <assert.h>
22392 #endif
22393 /* Override any gcc2 internal prototype to avoid an error.  */
22394 #ifdef __cplusplus
22395 extern "C"
22396 {
22397 #endif
22398 /* We use char because int might match the return type of a gcc2
22399    builtin and then its argument prototype would still apply.  */
22400 char mprotect ();
22401 /* The GNU C library defines this for functions which it implements
22402     to always fail with ENOSYS.  Some functions are actually named
22403     something starting with __ and the normal name is an alias.  */
22404 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22405 choke me
22406 #else
22407 char (*f) () = mprotect;
22408 #endif
22409 #ifdef __cplusplus
22410 }
22411 #endif
22412
22413 int
22414 main ()
22415 {
22416 return f != mprotect;
22417   ;
22418   return 0;
22419 }
22420 _ACEOF
22421 rm -f conftest.$ac_objext conftest$ac_exeext
22422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22423   (eval $ac_link) 2>&5
22424   ac_status=$?
22425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426   (exit $ac_status); } &&
22427          { ac_try='test -s conftest$ac_exeext'
22428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429   (eval $ac_try) 2>&5
22430   ac_status=$?
22431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432   (exit $ac_status); }; }; then
22433   ac_cv_func_mprotect=yes
22434 else
22435   echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22437
22438 ac_cv_func_mprotect=no
22439 fi
22440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22441 fi
22442 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22443 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22444 if test $ac_cv_func_mprotect = yes; then
22445   :
22446 else
22447   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22448 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22449    { (exit 1); exit 1; }; }
22450 fi
22451
22452
22453
22454   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
22455 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
22456
22457
22458   ac_ext=c
22459 ac_cpp='$CPP $CPPFLAGS'
22460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22463
22464   oldcflags="$CFLAGS"
22465   CFLAGS="$CFLAGS -Wl,-R."
22466   cat >conftest.$ac_ext <<_ACEOF
22467 int main() { return 0; }
22468 _ACEOF
22469 rm -f conftest.$ac_objext conftest$ac_exeext
22470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22471   (eval $ac_link) 2>&5
22472   ac_status=$?
22473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); } &&
22475          { ac_try='test -s conftest$ac_exeext'
22476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477   (eval $ac_try) 2>&5
22478   ac_status=$?
22479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480   (exit $ac_status); }; }; then
22481   ac_cv_link_use_r=yes
22482 else
22483   echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22485
22486 ac_cv_link_use_r=no
22487 fi
22488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22489   CFLAGS="$oldcflags"
22490   ac_ext=c
22491 ac_cpp='$CPP $CPPFLAGS'
22492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22495
22496   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
22497 echo "${ECHO_T}$ac_cv_link_use_r" >&6
22498   if test "$ac_cv_link_use_r" = yes
22499   then
22500
22501 cat >>confdefs.h <<\_ACEOF
22502 #define HAVE_LINK_R 1
22503 _ACEOF
22504
22505   fi
22506
22507
22508 # Check whether --enable-optimized or --disable-optimized was given.
22509 if test "${enable_optimized+set}" = set; then
22510   enableval="$enable_optimized"
22511
22512 else
22513   enableval=no
22514 fi;
22515 if test ${enableval} = "no"
22516 then
22517         ENABLE_OPTIMIZED=
22518
22519 else
22520         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22521
22522 fi
22523
22524 # Check whether --enable-jit or --disable-jit was given.
22525 if test "${enable_jit+set}" = set; then
22526   enableval="$enable_jit"
22527
22528 else
22529   enableval=default
22530 fi;
22531 if test ${enableval} = "no"
22532 then
22533         JIT=
22534
22535 else
22536         case $target in
22537                 *i*86*)
22538                         JIT=TARGET_HAS_JIT=1
22539
22540                         ;;
22541                 *sparc*)
22542                         JIT=TARGET_HAS_JIT=1
22543
22544                         ;;
22545                 *)
22546                         JIT=
22547
22548                         ;;
22549         esac
22550 fi
22551
22552
22553 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22554 if test "${with_llvmgccdir+set}" = set; then
22555   withval="$with_llvmgccdir"
22556   LLVMGCCDIR=$withval
22557
22558 fi;
22559 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22560 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22561 LLVM_GCC_CHECK=no
22562 if test -d "$LLVMGCCDIR"
22563 then
22564         if test -x "$LLVMGCCDIR/bin/gcc"
22565         then
22566                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22567         fi
22568 fi
22569 llvmgccwarn=no
22570 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22571 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22572 if test "$LLVM_GCC_CHECK" = "no"
22573 then
22574     llvmgccwarn=yes
22575 fi
22576 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22577 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22578 LLVM_GCC_SANE=no
22579 if test -x "$LLVM_GCC_CHECK"
22580 then
22581         cp /dev/null conftest.c
22582     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22583         if test $? -eq 0
22584         then
22585                 LLVM_GCC_SANE=yes
22586         fi
22587         rm conftest.c
22588         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22589         LLVMCC1=$llvmcc1path
22590
22591         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22592         LLVMCC1PLUS=$llvmcc1pluspath
22593
22594 fi
22595 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22596 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22597 if test "$LLVM_GCC_SANE" = "no"
22598 then
22599         llvmgccwarn=yes
22600 fi
22601
22602 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22603 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22604 eval "SHLIBEXT=$shrext"
22605 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22606 echo "${ECHO_T}$SHLIBEXT" >&6
22607 SHLIBEXT=$SHLIBEXT
22608
22609
22610 cat >>confdefs.h <<_ACEOF
22611 #define SHLIBEXT "$SHLIBEXT"
22612 _ACEOF
22613
22614
22615 # Translate the various configuration directories and other basic
22616 # information into substitutions that will end up in config.h.in so
22617 # that these configured values can be hard-wired into a program.
22618 eval LLVM_PREFIX="${prefix}";
22619 eval LLVM_BINDIR="${prefix}/bin";
22620 eval LLVM_LIBDIR="${prefix}/lib";
22621 eval LLVM_DATADIR="${prefix}/data";
22622 eval LLVM_DOCSDIR="${prefix}/docs";
22623 eval LLVM_ETCDIR="${prefix}/etc";
22624 eval LLVM_INCLUDEDIR="${prefix}/include";
22625 eval LLVM_INFODIR="${prefix}/info";
22626 eval LLVM_MANDIR="${prefix}/man";
22627 LLVM_CONFIGTIME=`date`
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639 cat >>confdefs.h <<_ACEOF
22640 #define LLVM_PREFIX "$LLVM_PREFIX"
22641 _ACEOF
22642
22643
22644 cat >>confdefs.h <<_ACEOF
22645 #define LLVM_BINDIR "$LLVM_BINDIR"
22646 _ACEOF
22647
22648
22649 cat >>confdefs.h <<_ACEOF
22650 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22651 _ACEOF
22652
22653
22654 cat >>confdefs.h <<_ACEOF
22655 #define LLVM_DATADIR "$LLVM_DATADIR"
22656 _ACEOF
22657
22658
22659 cat >>confdefs.h <<_ACEOF
22660 #define LLVM_DATADIR "$LLVM_DOCSDIR"
22661 _ACEOF
22662
22663
22664 cat >>confdefs.h <<_ACEOF
22665 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22666 _ACEOF
22667
22668
22669 cat >>confdefs.h <<_ACEOF
22670 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22671 _ACEOF
22672
22673
22674 cat >>confdefs.h <<_ACEOF
22675 #define LLVM_INFODIR "$LLVM_INFODIR"
22676 _ACEOF
22677
22678
22679 cat >>confdefs.h <<_ACEOF
22680 #define LLVM_MANDIR "$LLVM_MANDIR"
22681 _ACEOF
22682
22683
22684 cat >>confdefs.h <<_ACEOF
22685 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22686 _ACEOF
22687
22688
22689 cat >confcache <<\_ACEOF
22690 # This file is a shell script that caches the results of configure
22691 # tests run on this system so they can be shared between configure
22692 # scripts and configure runs, see configure's option --config-cache.
22693 # It is not useful on other systems.  If it contains results you don't
22694 # want to keep, you may remove or edit it.
22695 #
22696 # config.status only pays attention to the cache file if you give it
22697 # the --recheck option to rerun configure.
22698 #
22699 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22700 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22701 # following values.
22702
22703 _ACEOF
22704
22705 # The following way of writing the cache mishandles newlines in values,
22706 # but we know of no workaround that is simple, portable, and efficient.
22707 # So, don't put newlines in cache variables' values.
22708 # Ultrix sh set writes to stderr and can't be redirected directly,
22709 # and sets the high bit in the cache file unless we assign to the vars.
22710 {
22711   (set) 2>&1 |
22712     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22713     *ac_space=\ *)
22714       # `set' does not quote correctly, so add quotes (double-quote
22715       # substitution turns \\\\ into \\, and sed turns \\ into \).
22716       sed -n \
22717         "s/'/'\\\\''/g;
22718           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22719       ;;
22720     *)
22721       # `set' quotes correctly as required by POSIX, so do not add quotes.
22722       sed -n \
22723         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22724       ;;
22725     esac;
22726 } |
22727   sed '
22728      t clear
22729      : clear
22730      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22731      t end
22732      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22733      : end' >>confcache
22734 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22735   if test -w $cache_file; then
22736     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22737     cat confcache >$cache_file
22738   else
22739     echo "not updating unwritable cache $cache_file"
22740   fi
22741 fi
22742 rm -f confcache
22743
22744 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22745 # Let make expand exec_prefix.
22746 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22747
22748 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22749 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22750 # trailing colons and then remove the whole line if VPATH becomes empty
22751 # (actually we leave an empty line to preserve line numbers).
22752 if test "x$srcdir" = x.; then
22753   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22754 s/:*\$(srcdir):*/:/;
22755 s/:*\${srcdir}:*/:/;
22756 s/:*@srcdir@:*/:/;
22757 s/^\([^=]*=[    ]*\):*/\1/;
22758 s/:*$//;
22759 s/^[^=]*=[      ]*$//;
22760 }'
22761 fi
22762
22763 DEFS=-DHAVE_CONFIG_H
22764
22765 ac_libobjs=
22766 ac_ltlibobjs=
22767 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22768   # 1. Remove the extension, and $U if already installed.
22769   ac_i=`echo "$ac_i" |
22770          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22771   # 2. Add them.
22772   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22773   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22774 done
22775 LIBOBJS=$ac_libobjs
22776
22777 LTLIBOBJS=$ac_ltlibobjs
22778
22779
22780
22781 : ${CONFIG_STATUS=./config.status}
22782 ac_clean_files_save=$ac_clean_files
22783 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22784 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22785 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22786 cat >$CONFIG_STATUS <<_ACEOF
22787 #! $SHELL
22788 # Generated by $as_me.
22789 # Run this file to recreate the current configuration.
22790 # Compiler output produced by configure, useful for debugging
22791 # configure, is in config.log if it exists.
22792
22793 debug=false
22794 ac_cs_recheck=false
22795 ac_cs_silent=false
22796 SHELL=\${CONFIG_SHELL-$SHELL}
22797 _ACEOF
22798
22799 cat >>$CONFIG_STATUS <<\_ACEOF
22800 ## --------------------- ##
22801 ## M4sh Initialization.  ##
22802 ## --------------------- ##
22803
22804 # Be Bourne compatible
22805 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22806   emulate sh
22807   NULLCMD=:
22808   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22809   # is contrary to our usage.  Disable this feature.
22810   alias -g '${1+"$@"}'='"$@"'
22811 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22812   set -o posix
22813 fi
22814
22815 # Support unset when possible.
22816 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22817   as_unset=unset
22818 else
22819   as_unset=false
22820 fi
22821
22822
22823 # Work around bugs in pre-3.0 UWIN ksh.
22824 $as_unset ENV MAIL MAILPATH
22825 PS1='$ '
22826 PS2='> '
22827 PS4='+ '
22828
22829 # NLS nuisances.
22830 for as_var in \
22831   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22832   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22833   LC_TELEPHONE LC_TIME
22834 do
22835   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22836     eval $as_var=C; export $as_var
22837   else
22838     $as_unset $as_var
22839   fi
22840 done
22841
22842 # Required to use basename.
22843 if expr a : '\(a\)' >/dev/null 2>&1; then
22844   as_expr=expr
22845 else
22846   as_expr=false
22847 fi
22848
22849 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22850   as_basename=basename
22851 else
22852   as_basename=false
22853 fi
22854
22855
22856 # Name of the executable.
22857 as_me=`$as_basename "$0" ||
22858 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22859          X"$0" : 'X\(//\)$' \| \
22860          X"$0" : 'X\(/\)$' \| \
22861          .     : '\(.\)' 2>/dev/null ||
22862 echo X/"$0" |
22863     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22864           /^X\/\(\/\/\)$/{ s//\1/; q; }
22865           /^X\/\(\/\).*/{ s//\1/; q; }
22866           s/.*/./; q'`
22867
22868
22869 # PATH needs CR, and LINENO needs CR and PATH.
22870 # Avoid depending upon Character Ranges.
22871 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22872 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22873 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22874 as_cr_digits='0123456789'
22875 as_cr_alnum=$as_cr_Letters$as_cr_digits
22876
22877 # The user is always right.
22878 if test "${PATH_SEPARATOR+set}" != set; then
22879   echo "#! /bin/sh" >conf$$.sh
22880   echo  "exit 0"   >>conf$$.sh
22881   chmod +x conf$$.sh
22882   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22883     PATH_SEPARATOR=';'
22884   else
22885     PATH_SEPARATOR=:
22886   fi
22887   rm -f conf$$.sh
22888 fi
22889
22890
22891   as_lineno_1=$LINENO
22892   as_lineno_2=$LINENO
22893   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22894   test "x$as_lineno_1" != "x$as_lineno_2" &&
22895   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22896   # Find who we are.  Look in the path if we contain no path at all
22897   # relative or not.
22898   case $0 in
22899     *[\\/]* ) as_myself=$0 ;;
22900     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22901 for as_dir in $PATH
22902 do
22903   IFS=$as_save_IFS
22904   test -z "$as_dir" && as_dir=.
22905   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22906 done
22907
22908        ;;
22909   esac
22910   # We did not find ourselves, most probably we were run as `sh COMMAND'
22911   # in which case we are not to be found in the path.
22912   if test "x$as_myself" = x; then
22913     as_myself=$0
22914   fi
22915   if test ! -f "$as_myself"; then
22916     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22917 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22918    { (exit 1); exit 1; }; }
22919   fi
22920   case $CONFIG_SHELL in
22921   '')
22922     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22923 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22924 do
22925   IFS=$as_save_IFS
22926   test -z "$as_dir" && as_dir=.
22927   for as_base in sh bash ksh sh5; do
22928          case $as_dir in
22929          /*)
22930            if ("$as_dir/$as_base" -c '
22931   as_lineno_1=$LINENO
22932   as_lineno_2=$LINENO
22933   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22934   test "x$as_lineno_1" != "x$as_lineno_2" &&
22935   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22936              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22937              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22938              CONFIG_SHELL=$as_dir/$as_base
22939              export CONFIG_SHELL
22940              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22941            fi;;
22942          esac
22943        done
22944 done
22945 ;;
22946   esac
22947
22948   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22949   # uniformly replaced by the line number.  The first 'sed' inserts a
22950   # line-number line before each line; the second 'sed' does the real
22951   # work.  The second script uses 'N' to pair each line-number line
22952   # with the numbered line, and appends trailing '-' during
22953   # substitution so that $LINENO is not a special case at line end.
22954   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22955   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22956   sed '=' <$as_myself |
22957     sed '
22958       N
22959       s,$,-,
22960       : loop
22961       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22962       t loop
22963       s,-$,,
22964       s,^['$as_cr_digits']*\n,,
22965     ' >$as_me.lineno &&
22966   chmod +x $as_me.lineno ||
22967     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22968 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22969    { (exit 1); exit 1; }; }
22970
22971   # Don't try to exec as it changes $[0], causing all sort of problems
22972   # (the dirname of $[0] is not the place where we might find the
22973   # original and so on.  Autoconf is especially sensible to this).
22974   . ./$as_me.lineno
22975   # Exit status is that of the last command.
22976   exit
22977 }
22978
22979
22980 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22981   *c*,-n*) ECHO_N= ECHO_C='
22982 ' ECHO_T='      ' ;;
22983   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22984   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22985 esac
22986
22987 if expr a : '\(a\)' >/dev/null 2>&1; then
22988   as_expr=expr
22989 else
22990   as_expr=false
22991 fi
22992
22993 rm -f conf$$ conf$$.exe conf$$.file
22994 echo >conf$$.file
22995 if ln -s conf$$.file conf$$ 2>/dev/null; then
22996   # We could just check for DJGPP; but this test a) works b) is more generic
22997   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22998   if test -f conf$$.exe; then
22999     # Don't use ln at all; we don't have any links
23000     as_ln_s='cp -p'
23001   else
23002     as_ln_s='ln -s'
23003   fi
23004 elif ln conf$$.file conf$$ 2>/dev/null; then
23005   as_ln_s=ln
23006 else
23007   as_ln_s='cp -p'
23008 fi
23009 rm -f conf$$ conf$$.exe conf$$.file
23010
23011 if mkdir -p . 2>/dev/null; then
23012   as_mkdir_p=:
23013 else
23014   as_mkdir_p=false
23015 fi
23016
23017 as_executable_p="test -f"
23018
23019 # Sed expression to map a string onto a valid CPP name.
23020 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23021
23022 # Sed expression to map a string onto a valid variable name.
23023 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23024
23025
23026 # IFS
23027 # We need space, tab and new line, in precisely that order.
23028 as_nl='
23029 '
23030 IFS="   $as_nl"
23031
23032 # CDPATH.
23033 $as_unset CDPATH
23034
23035 exec 6>&1
23036
23037 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23038 # report actual input values of CONFIG_FILES etc. instead of their
23039 # values after options handling.  Logging --version etc. is OK.
23040 exec 5>>config.log
23041 {
23042   echo
23043   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23044 ## Running $as_me. ##
23045 _ASBOX
23046 } >&5
23047 cat >&5 <<_CSEOF
23048
23049 This file was extended by LLVM $as_me 1.4, which was
23050 generated by GNU Autoconf 2.57.  Invocation command line was
23051
23052   CONFIG_FILES    = $CONFIG_FILES
23053   CONFIG_HEADERS  = $CONFIG_HEADERS
23054   CONFIG_LINKS    = $CONFIG_LINKS
23055   CONFIG_COMMANDS = $CONFIG_COMMANDS
23056   $ $0 $@
23057
23058 _CSEOF
23059 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23060 echo >&5
23061 _ACEOF
23062
23063 # Files that config.status was made for.
23064 if test -n "$ac_config_files"; then
23065   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23066 fi
23067
23068 if test -n "$ac_config_headers"; then
23069   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23070 fi
23071
23072 if test -n "$ac_config_links"; then
23073   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23074 fi
23075
23076 if test -n "$ac_config_commands"; then
23077   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23078 fi
23079
23080 cat >>$CONFIG_STATUS <<\_ACEOF
23081
23082 ac_cs_usage="\
23083 \`$as_me' instantiates files from templates according to the
23084 current configuration.
23085
23086 Usage: $0 [OPTIONS] [FILE]...
23087
23088   -h, --help       print this help, then exit
23089   -V, --version    print version number, then exit
23090   -q, --quiet      do not print progress messages
23091   -d, --debug      don't remove temporary files
23092       --recheck    update $as_me by reconfiguring in the same conditions
23093   --file=FILE[:TEMPLATE]
23094                    instantiate the configuration file FILE
23095   --header=FILE[:TEMPLATE]
23096                    instantiate the configuration header FILE
23097
23098 Configuration files:
23099 $config_files
23100
23101 Configuration headers:
23102 $config_headers
23103
23104 Configuration links:
23105 $config_links
23106
23107 Configuration commands:
23108 $config_commands
23109
23110 Report bugs to <bug-autoconf@gnu.org>."
23111 _ACEOF
23112
23113 cat >>$CONFIG_STATUS <<_ACEOF
23114 ac_cs_version="\\
23115 LLVM config.status 1.4
23116 configured by $0, generated by GNU Autoconf 2.57,
23117   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23118
23119 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23120 Free Software Foundation, Inc.
23121 This config.status script is free software; the Free Software Foundation
23122 gives unlimited permission to copy, distribute and modify it."
23123 srcdir=$srcdir
23124 INSTALL="$INSTALL"
23125 _ACEOF
23126
23127 cat >>$CONFIG_STATUS <<\_ACEOF
23128 # If no file are specified by the user, then we need to provide default
23129 # value.  By we need to know if files were specified by the user.
23130 ac_need_defaults=:
23131 while test $# != 0
23132 do
23133   case $1 in
23134   --*=*)
23135     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23136     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23137     ac_shift=:
23138     ;;
23139   -*)
23140     ac_option=$1
23141     ac_optarg=$2
23142     ac_shift=shift
23143     ;;
23144   *) # This is not an option, so the user has probably given explicit
23145      # arguments.
23146      ac_option=$1
23147      ac_need_defaults=false;;
23148   esac
23149
23150   case $ac_option in
23151   # Handling of the options.
23152 _ACEOF
23153 cat >>$CONFIG_STATUS <<\_ACEOF
23154   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23155     ac_cs_recheck=: ;;
23156   --version | --vers* | -V )
23157     echo "$ac_cs_version"; exit 0 ;;
23158   --he | --h)
23159     # Conflict between --help and --header
23160     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23161 Try \`$0 --help' for more information." >&5
23162 echo "$as_me: error: ambiguous option: $1
23163 Try \`$0 --help' for more information." >&2;}
23164    { (exit 1); exit 1; }; };;
23165   --help | --hel | -h )
23166     echo "$ac_cs_usage"; exit 0 ;;
23167   --debug | --d* | -d )
23168     debug=: ;;
23169   --file | --fil | --fi | --f )
23170     $ac_shift
23171     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23172     ac_need_defaults=false;;
23173   --header | --heade | --head | --hea )
23174     $ac_shift
23175     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23176     ac_need_defaults=false;;
23177   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23178   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23179     ac_cs_silent=: ;;
23180
23181   # This is an error.
23182   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23183 Try \`$0 --help' for more information." >&5
23184 echo "$as_me: error: unrecognized option: $1
23185 Try \`$0 --help' for more information." >&2;}
23186    { (exit 1); exit 1; }; } ;;
23187
23188   *) ac_config_targets="$ac_config_targets $1" ;;
23189
23190   esac
23191   shift
23192 done
23193
23194 ac_configure_extra_args=
23195
23196 if $ac_cs_silent; then
23197   exec 6>/dev/null
23198   ac_configure_extra_args="$ac_configure_extra_args --silent"
23199 fi
23200
23201 _ACEOF
23202 cat >>$CONFIG_STATUS <<_ACEOF
23203 if \$ac_cs_recheck; then
23204   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23205   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23206 fi
23207
23208 _ACEOF
23209
23210 cat >>$CONFIG_STATUS <<_ACEOF
23211 #
23212 # INIT-COMMANDS section.
23213 #
23214
23215 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23216 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23217 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
23218 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23219 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23220 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23221 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23222 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23223 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23224 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23225 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23226 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23227
23228 _ACEOF
23229
23230
23231
23232 cat >>$CONFIG_STATUS <<\_ACEOF
23233 for ac_config_target in $ac_config_targets
23234 do
23235   case "$ac_config_target" in
23236   # Handling of arguments.
23237   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23238   "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
23239   "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
23240   "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
23241   "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
23242   "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
23243   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
23244   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23245   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23246   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23247   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23248   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23249   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23250   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23251   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23252   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23253   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23254   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23255   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23256   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23257   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23258 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23259    { (exit 1); exit 1; }; };;
23260   esac
23261 done
23262
23263 # If the user did not use the arguments to specify the items to instantiate,
23264 # then the envvar interface is used.  Set only those that are not.
23265 # We use the long form for the default assignment because of an extremely
23266 # bizarre bug on SunOS 4.1.3.
23267 if $ac_need_defaults; then
23268   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23269   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23270   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23271   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23272 fi
23273
23274 # Have a temporary directory for convenience.  Make it in the build tree
23275 # simply because there is no reason to put it here, and in addition,
23276 # creating and moving files from /tmp can sometimes cause problems.
23277 # Create a temporary directory, and hook for its removal unless debugging.
23278 $debug ||
23279 {
23280   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23281   trap '{ (exit 1); exit 1; }' 1 2 13 15
23282 }
23283
23284 # Create a (secure) tmp directory for tmp files.
23285
23286 {
23287   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23288   test -n "$tmp" && test -d "$tmp"
23289 }  ||
23290 {
23291   tmp=./confstat$$-$RANDOM
23292   (umask 077 && mkdir $tmp)
23293 } ||
23294 {
23295    echo "$me: cannot create a temporary directory in ." >&2
23296    { (exit 1); exit 1; }
23297 }
23298
23299 _ACEOF
23300
23301 cat >>$CONFIG_STATUS <<_ACEOF
23302
23303 #
23304 # CONFIG_FILES section.
23305 #
23306
23307 # No need to generate the scripts if there are no CONFIG_FILES.
23308 # This happens for instance when ./config.status config.h
23309 if test -n "\$CONFIG_FILES"; then
23310   # Protect against being on the right side of a sed subst in config.status.
23311   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23312    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23313 s,@SHELL@,$SHELL,;t t
23314 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23315 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23316 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23317 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23318 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23319 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23320 s,@exec_prefix@,$exec_prefix,;t t
23321 s,@prefix@,$prefix,;t t
23322 s,@program_transform_name@,$program_transform_name,;t t
23323 s,@bindir@,$bindir,;t t
23324 s,@sbindir@,$sbindir,;t t
23325 s,@libexecdir@,$libexecdir,;t t
23326 s,@datadir@,$datadir,;t t
23327 s,@sysconfdir@,$sysconfdir,;t t
23328 s,@sharedstatedir@,$sharedstatedir,;t t
23329 s,@localstatedir@,$localstatedir,;t t
23330 s,@libdir@,$libdir,;t t
23331 s,@includedir@,$includedir,;t t
23332 s,@oldincludedir@,$oldincludedir,;t t
23333 s,@infodir@,$infodir,;t t
23334 s,@mandir@,$mandir,;t t
23335 s,@build_alias@,$build_alias,;t t
23336 s,@host_alias@,$host_alias,;t t
23337 s,@target_alias@,$target_alias,;t t
23338 s,@DEFS@,$DEFS,;t t
23339 s,@ECHO_C@,$ECHO_C,;t t
23340 s,@ECHO_N@,$ECHO_N,;t t
23341 s,@ECHO_T@,$ECHO_T,;t t
23342 s,@LIBS@,$LIBS,;t t
23343 s,@subdirs@,$subdirs,;t t
23344 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23345 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23346 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23347 s,@build@,$build,;t t
23348 s,@build_cpu@,$build_cpu,;t t
23349 s,@build_vendor@,$build_vendor,;t t
23350 s,@build_os@,$build_os,;t t
23351 s,@host@,$host,;t t
23352 s,@host_cpu@,$host_cpu,;t t
23353 s,@host_vendor@,$host_vendor,;t t
23354 s,@host_os@,$host_os,;t t
23355 s,@target@,$target,;t t
23356 s,@target_cpu@,$target_cpu,;t t
23357 s,@target_vendor@,$target_vendor,;t t
23358 s,@target_os@,$target_os,;t t
23359 s,@OS@,$OS,;t t
23360 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23361 s,@ARCH@,$ARCH,;t t
23362 s,@CXX@,$CXX,;t t
23363 s,@CXXFLAGS@,$CXXFLAGS,;t t
23364 s,@LDFLAGS@,$LDFLAGS,;t t
23365 s,@CPPFLAGS@,$CPPFLAGS,;t t
23366 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23367 s,@EXEEXT@,$EXEEXT,;t t
23368 s,@OBJEXT@,$OBJEXT,;t t
23369 s,@CC@,$CC,;t t
23370 s,@CFLAGS@,$CFLAGS,;t t
23371 s,@ac_ct_CC@,$ac_ct_CC,;t t
23372 s,@CPP@,$CPP,;t t
23373 s,@ifGNUmake@,$ifGNUmake,;t t
23374 s,@LEX@,$LEX,;t t
23375 s,@LEXLIB@,$LEXLIB,;t t
23376 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23377 s,@FLEX@,$FLEX,;t t
23378 s,@YACC@,$YACC,;t t
23379 s,@BISON@,$BISON,;t t
23380 s,@EGREP@,$EGREP,;t t
23381 s,@LN_S@,$LN_S,;t t
23382 s,@ECHO@,$ECHO,;t t
23383 s,@AR@,$AR,;t t
23384 s,@ac_ct_AR@,$ac_ct_AR,;t t
23385 s,@RANLIB@,$RANLIB,;t t
23386 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23387 s,@STRIP@,$STRIP,;t t
23388 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23389 s,@CXXCPP@,$CXXCPP,;t t
23390 s,@F77@,$F77,;t t
23391 s,@FFLAGS@,$FFLAGS,;t t
23392 s,@ac_ct_F77@,$ac_ct_F77,;t t
23393 s,@LIBTOOL@,$LIBTOOL,;t t
23394 s,@DOT@,$DOT,;t t
23395 s,@ETAGS@,$ETAGS,;t t
23396 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
23397 s,@PYTHON@,$PYTHON,;t t
23398 s,@QMTEST@,$QMTEST,;t t
23399 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
23400 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
23401 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
23402 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
23403 s,@ENDIAN@,$ENDIAN,;t t
23404 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
23405 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
23406 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
23407 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
23408 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
23409 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
23410 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
23411 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
23412 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
23413 s,@ALLOCA@,$ALLOCA,;t t
23414 s,@MMAP_FILE@,$MMAP_FILE,;t t
23415 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23416 s,@JIT@,$JIT,;t t
23417 s,@LLVMCC1@,$LLVMCC1,;t t
23418 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
23419 s,@SHLIBEXT@,$SHLIBEXT,;t t
23420 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
23421 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
23422 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
23423 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
23424 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
23425 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
23426 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
23427 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
23428 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
23429 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
23430 s,@LIBOBJS@,$LIBOBJS,;t t
23431 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23432 CEOF
23433
23434 _ACEOF
23435
23436   cat >>$CONFIG_STATUS <<\_ACEOF
23437   # Split the substitutions into bite-sized pieces for seds with
23438   # small command number limits, like on Digital OSF/1 and HP-UX.
23439   ac_max_sed_lines=48
23440   ac_sed_frag=1 # Number of current file.
23441   ac_beg=1 # First line for current file.
23442   ac_end=$ac_max_sed_lines # Line after last line for current file.
23443   ac_more_lines=:
23444   ac_sed_cmds=
23445   while $ac_more_lines; do
23446     if test $ac_beg -gt 1; then
23447       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23448     else
23449       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23450     fi
23451     if test ! -s $tmp/subs.frag; then
23452       ac_more_lines=false
23453     else
23454       # The purpose of the label and of the branching condition is to
23455       # speed up the sed processing (if there are no `@' at all, there
23456       # is no need to browse any of the substitutions).
23457       # These are the two extra sed commands mentioned above.
23458       (echo ':t
23459   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23460       if test -z "$ac_sed_cmds"; then
23461         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23462       else
23463         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23464       fi
23465       ac_sed_frag=`expr $ac_sed_frag + 1`
23466       ac_beg=$ac_end
23467       ac_end=`expr $ac_end + $ac_max_sed_lines`
23468     fi
23469   done
23470   if test -z "$ac_sed_cmds"; then
23471     ac_sed_cmds=cat
23472   fi
23473 fi # test -n "$CONFIG_FILES"
23474
23475 _ACEOF
23476 cat >>$CONFIG_STATUS <<\_ACEOF
23477 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23478   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23479   case $ac_file in
23480   - | *:- | *:-:* ) # input from stdin
23481         cat >$tmp/stdin
23482         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23483         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23484   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23485         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23486   * )   ac_file_in=$ac_file.in ;;
23487   esac
23488
23489   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23490   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23491 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23492          X"$ac_file" : 'X\(//\)[^/]' \| \
23493          X"$ac_file" : 'X\(//\)$' \| \
23494          X"$ac_file" : 'X\(/\)' \| \
23495          .     : '\(.\)' 2>/dev/null ||
23496 echo X"$ac_file" |
23497     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23498           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23499           /^X\(\/\/\)$/{ s//\1/; q; }
23500           /^X\(\/\).*/{ s//\1/; q; }
23501           s/.*/./; q'`
23502   { if $as_mkdir_p; then
23503     mkdir -p "$ac_dir"
23504   else
23505     as_dir="$ac_dir"
23506     as_dirs=
23507     while test ! -d "$as_dir"; do
23508       as_dirs="$as_dir $as_dirs"
23509       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23510 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23511          X"$as_dir" : 'X\(//\)[^/]' \| \
23512          X"$as_dir" : 'X\(//\)$' \| \
23513          X"$as_dir" : 'X\(/\)' \| \
23514          .     : '\(.\)' 2>/dev/null ||
23515 echo X"$as_dir" |
23516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23517           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23518           /^X\(\/\/\)$/{ s//\1/; q; }
23519           /^X\(\/\).*/{ s//\1/; q; }
23520           s/.*/./; q'`
23521     done
23522     test ! -n "$as_dirs" || mkdir $as_dirs
23523   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23524 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23525    { (exit 1); exit 1; }; }; }
23526
23527   ac_builddir=.
23528
23529 if test "$ac_dir" != .; then
23530   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23531   # A "../" for each directory in $ac_dir_suffix.
23532   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23533 else
23534   ac_dir_suffix= ac_top_builddir=
23535 fi
23536
23537 case $srcdir in
23538   .)  # No --srcdir option.  We are building in place.
23539     ac_srcdir=.
23540     if test -z "$ac_top_builddir"; then
23541        ac_top_srcdir=.
23542     else
23543        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23544     fi ;;
23545   [\\/]* | ?:[\\/]* )  # Absolute path.
23546     ac_srcdir=$srcdir$ac_dir_suffix;
23547     ac_top_srcdir=$srcdir ;;
23548   *) # Relative path.
23549     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23550     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23551 esac
23552 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23553 # absolute.
23554 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23555 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23556 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23557 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23558
23559
23560   case $INSTALL in
23561   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23562   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23563   esac
23564
23565   if test x"$ac_file" != x-; then
23566     { echo "$as_me:$LINENO: creating $ac_file" >&5
23567 echo "$as_me: creating $ac_file" >&6;}
23568     rm -f "$ac_file"
23569   fi
23570   # Let's still pretend it is `configure' which instantiates (i.e., don't
23571   # use $as_me), people would be surprised to read:
23572   #    /* config.h.  Generated by config.status.  */
23573   if test x"$ac_file" = x-; then
23574     configure_input=
23575   else
23576     configure_input="$ac_file.  "
23577   fi
23578   configure_input=$configure_input"Generated from `echo $ac_file_in |
23579                                      sed 's,.*/,,'` by configure."
23580
23581   # First look for the input files in the build tree, otherwise in the
23582   # src tree.
23583   ac_file_inputs=`IFS=:
23584     for f in $ac_file_in; do
23585       case $f in
23586       -) echo $tmp/stdin ;;
23587       [\\/$]*)
23588          # Absolute (can't be DOS-style, as IFS=:)
23589          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23590 echo "$as_me: error: cannot find input file: $f" >&2;}
23591    { (exit 1); exit 1; }; }
23592          echo $f;;
23593       *) # Relative
23594          if test -f "$f"; then
23595            # Build tree
23596            echo $f
23597          elif test -f "$srcdir/$f"; then
23598            # Source tree
23599            echo $srcdir/$f
23600          else
23601            # /dev/null tree
23602            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23603 echo "$as_me: error: cannot find input file: $f" >&2;}
23604    { (exit 1); exit 1; }; }
23605          fi;;
23606       esac
23607     done` || { (exit 1); exit 1; }
23608 _ACEOF
23609 cat >>$CONFIG_STATUS <<_ACEOF
23610   sed "$ac_vpsub
23611 $extrasub
23612 _ACEOF
23613 cat >>$CONFIG_STATUS <<\_ACEOF
23614 :t
23615 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23616 s,@configure_input@,$configure_input,;t t
23617 s,@srcdir@,$ac_srcdir,;t t
23618 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23619 s,@top_srcdir@,$ac_top_srcdir,;t t
23620 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23621 s,@builddir@,$ac_builddir,;t t
23622 s,@abs_builddir@,$ac_abs_builddir,;t t
23623 s,@top_builddir@,$ac_top_builddir,;t t
23624 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23625 s,@INSTALL@,$ac_INSTALL,;t t
23626 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23627   rm -f $tmp/stdin
23628   if test x"$ac_file" != x-; then
23629     mv $tmp/out $ac_file
23630   else
23631     cat $tmp/out
23632     rm -f $tmp/out
23633   fi
23634
23635 done
23636 _ACEOF
23637 cat >>$CONFIG_STATUS <<\_ACEOF
23638
23639 #
23640 # CONFIG_HEADER section.
23641 #
23642
23643 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23644 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23645 #
23646 # ac_d sets the value in "#define NAME VALUE" lines.
23647 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23648 ac_dB='[        ].*$,\1#\2'
23649 ac_dC=' '
23650 ac_dD=',;t'
23651 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23652 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23653 ac_uB='$,\1#\2define\3'
23654 ac_uC=' '
23655 ac_uD=',;t'
23656
23657 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23658   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23659   case $ac_file in
23660   - | *:- | *:-:* ) # input from stdin
23661         cat >$tmp/stdin
23662         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23663         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23664   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23665         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23666   * )   ac_file_in=$ac_file.in ;;
23667   esac
23668
23669   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23670 echo "$as_me: creating $ac_file" >&6;}
23671
23672   # First look for the input files in the build tree, otherwise in the
23673   # src tree.
23674   ac_file_inputs=`IFS=:
23675     for f in $ac_file_in; do
23676       case $f in
23677       -) echo $tmp/stdin ;;
23678       [\\/$]*)
23679          # Absolute (can't be DOS-style, as IFS=:)
23680          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23681 echo "$as_me: error: cannot find input file: $f" >&2;}
23682    { (exit 1); exit 1; }; }
23683          echo $f;;
23684       *) # Relative
23685          if test -f "$f"; then
23686            # Build tree
23687            echo $f
23688          elif test -f "$srcdir/$f"; then
23689            # Source tree
23690            echo $srcdir/$f
23691          else
23692            # /dev/null tree
23693            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23694 echo "$as_me: error: cannot find input file: $f" >&2;}
23695    { (exit 1); exit 1; }; }
23696          fi;;
23697       esac
23698     done` || { (exit 1); exit 1; }
23699   # Remove the trailing spaces.
23700   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23701
23702 _ACEOF
23703
23704 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23705 # `conftest.undefs', that substitutes the proper values into
23706 # config.h.in to produce config.h.  The first handles `#define'
23707 # templates, and the second `#undef' templates.
23708 # And first: Protect against being on the right side of a sed subst in
23709 # config.status.  Protect against being in an unquoted here document
23710 # in config.status.
23711 rm -f conftest.defines conftest.undefs
23712 # Using a here document instead of a string reduces the quoting nightmare.
23713 # Putting comments in sed scripts is not portable.
23714 #
23715 # `end' is used to avoid that the second main sed command (meant for
23716 # 0-ary CPP macros) applies to n-ary macro definitions.
23717 # See the Autoconf documentation for `clear'.
23718 cat >confdef2sed.sed <<\_ACEOF
23719 s/[\\&,]/\\&/g
23720 s,[\\$`],\\&,g
23721 t clear
23722 : clear
23723 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23724 t end
23725 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23726 : end
23727 _ACEOF
23728 # If some macros were called several times there might be several times
23729 # the same #defines, which is useless.  Nevertheless, we may not want to
23730 # sort them, since we want the *last* AC-DEFINE to be honored.
23731 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23732 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23733 rm -f confdef2sed.sed
23734
23735 # This sed command replaces #undef with comments.  This is necessary, for
23736 # example, in the case of _POSIX_SOURCE, which is predefined and required
23737 # on some systems where configure will not decide to define it.
23738 cat >>conftest.undefs <<\_ACEOF
23739 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23740 _ACEOF
23741
23742 # Break up conftest.defines because some shells have a limit on the size
23743 # of here documents, and old seds have small limits too (100 cmds).
23744 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23745 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23746 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23747 echo '  :' >>$CONFIG_STATUS
23748 rm -f conftest.tail
23749 while grep . conftest.defines >/dev/null
23750 do
23751   # Write a limited-size here document to $tmp/defines.sed.
23752   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23753   # Speed up: don't consider the non `#define' lines.
23754   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
23755   # Work around the forget-to-reset-the-flag bug.
23756   echo 't clr' >>$CONFIG_STATUS
23757   echo ': clr' >>$CONFIG_STATUS
23758   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23759   echo 'CEOF
23760   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23761   rm -f $tmp/in
23762   mv $tmp/out $tmp/in
23763 ' >>$CONFIG_STATUS
23764   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23765   rm -f conftest.defines
23766   mv conftest.tail conftest.defines
23767 done
23768 rm -f conftest.defines
23769 echo '  fi # grep' >>$CONFIG_STATUS
23770 echo >>$CONFIG_STATUS
23771
23772 # Break up conftest.undefs because some shells have a limit on the size
23773 # of here documents, and old seds have small limits too (100 cmds).
23774 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23775 rm -f conftest.tail
23776 while grep . conftest.undefs >/dev/null
23777 do
23778   # Write a limited-size here document to $tmp/undefs.sed.
23779   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23780   # Speed up: don't consider the non `#undef'
23781   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23782   # Work around the forget-to-reset-the-flag bug.
23783   echo 't clr' >>$CONFIG_STATUS
23784   echo ': clr' >>$CONFIG_STATUS
23785   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23786   echo 'CEOF
23787   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23788   rm -f $tmp/in
23789   mv $tmp/out $tmp/in
23790 ' >>$CONFIG_STATUS
23791   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23792   rm -f conftest.undefs
23793   mv conftest.tail conftest.undefs
23794 done
23795 rm -f conftest.undefs
23796
23797 cat >>$CONFIG_STATUS <<\_ACEOF
23798   # Let's still pretend it is `configure' which instantiates (i.e., don't
23799   # use $as_me), people would be surprised to read:
23800   #    /* config.h.  Generated by config.status.  */
23801   if test x"$ac_file" = x-; then
23802     echo "/* Generated by configure.  */" >$tmp/config.h
23803   else
23804     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23805   fi
23806   cat $tmp/in >>$tmp/config.h
23807   rm -f $tmp/in
23808   if test x"$ac_file" != x-; then
23809     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23810       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23811 echo "$as_me: $ac_file is unchanged" >&6;}
23812     else
23813       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23814 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23815          X"$ac_file" : 'X\(//\)[^/]' \| \
23816          X"$ac_file" : 'X\(//\)$' \| \
23817          X"$ac_file" : 'X\(/\)' \| \
23818          .     : '\(.\)' 2>/dev/null ||
23819 echo X"$ac_file" |
23820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23821           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23822           /^X\(\/\/\)$/{ s//\1/; q; }
23823           /^X\(\/\).*/{ s//\1/; q; }
23824           s/.*/./; q'`
23825       { if $as_mkdir_p; then
23826     mkdir -p "$ac_dir"
23827   else
23828     as_dir="$ac_dir"
23829     as_dirs=
23830     while test ! -d "$as_dir"; do
23831       as_dirs="$as_dir $as_dirs"
23832       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23834          X"$as_dir" : 'X\(//\)[^/]' \| \
23835          X"$as_dir" : 'X\(//\)$' \| \
23836          X"$as_dir" : 'X\(/\)' \| \
23837          .     : '\(.\)' 2>/dev/null ||
23838 echo X"$as_dir" |
23839     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23840           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23841           /^X\(\/\/\)$/{ s//\1/; q; }
23842           /^X\(\/\).*/{ s//\1/; q; }
23843           s/.*/./; q'`
23844     done
23845     test ! -n "$as_dirs" || mkdir $as_dirs
23846   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23847 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23848    { (exit 1); exit 1; }; }; }
23849
23850       rm -f $ac_file
23851       mv $tmp/config.h $ac_file
23852     fi
23853   else
23854     cat $tmp/config.h
23855     rm -f $tmp/config.h
23856   fi
23857 done
23858 _ACEOF
23859 cat >>$CONFIG_STATUS <<\_ACEOF
23860
23861 #
23862 # CONFIG_LINKS section.
23863 #
23864
23865 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23866   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23867   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23868
23869   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23870 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23871
23872   if test ! -r $srcdir/$ac_source; then
23873     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23874 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23875    { (exit 1); exit 1; }; }
23876   fi
23877   rm -f $ac_dest
23878
23879   # Make relative symlinks.
23880   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23881 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23882          X"$ac_dest" : 'X\(//\)[^/]' \| \
23883          X"$ac_dest" : 'X\(//\)$' \| \
23884          X"$ac_dest" : 'X\(/\)' \| \
23885          .     : '\(.\)' 2>/dev/null ||
23886 echo X"$ac_dest" |
23887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23888           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23889           /^X\(\/\/\)$/{ s//\1/; q; }
23890           /^X\(\/\).*/{ s//\1/; q; }
23891           s/.*/./; q'`
23892   { if $as_mkdir_p; then
23893     mkdir -p "$ac_dest_dir"
23894   else
23895     as_dir="$ac_dest_dir"
23896     as_dirs=
23897     while test ! -d "$as_dir"; do
23898       as_dirs="$as_dir $as_dirs"
23899       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23900 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23901          X"$as_dir" : 'X\(//\)[^/]' \| \
23902          X"$as_dir" : 'X\(//\)$' \| \
23903          X"$as_dir" : 'X\(/\)' \| \
23904          .     : '\(.\)' 2>/dev/null ||
23905 echo X"$as_dir" |
23906     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23907           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23908           /^X\(\/\/\)$/{ s//\1/; q; }
23909           /^X\(\/\).*/{ s//\1/; q; }
23910           s/.*/./; q'`
23911     done
23912     test ! -n "$as_dirs" || mkdir $as_dirs
23913   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23914 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23915    { (exit 1); exit 1; }; }; }
23916
23917   ac_builddir=.
23918
23919 if test "$ac_dest_dir" != .; then
23920   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23921   # A "../" for each directory in $ac_dir_suffix.
23922   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23923 else
23924   ac_dir_suffix= ac_top_builddir=
23925 fi
23926
23927 case $srcdir in
23928   .)  # No --srcdir option.  We are building in place.
23929     ac_srcdir=.
23930     if test -z "$ac_top_builddir"; then
23931        ac_top_srcdir=.
23932     else
23933        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23934     fi ;;
23935   [\\/]* | ?:[\\/]* )  # Absolute path.
23936     ac_srcdir=$srcdir$ac_dir_suffix;
23937     ac_top_srcdir=$srcdir ;;
23938   *) # Relative path.
23939     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23940     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23941 esac
23942 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
23943 # absolute.
23944 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
23945 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
23946 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
23947 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
23948
23949
23950   case $srcdir in
23951   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23952       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23953   esac
23954
23955   # Try a symlink, then a hard link, then a copy.
23956   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23957     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23958     cp -p $srcdir/$ac_source $ac_dest ||
23959     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23960 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23961    { (exit 1); exit 1; }; }
23962 done
23963 _ACEOF
23964 cat >>$CONFIG_STATUS <<\_ACEOF
23965
23966 #
23967 # CONFIG_COMMANDS section.
23968 #
23969 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23970   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23971   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23972   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23973 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23974          X"$ac_dest" : 'X\(//\)[^/]' \| \
23975          X"$ac_dest" : 'X\(//\)$' \| \
23976          X"$ac_dest" : 'X\(/\)' \| \
23977          .     : '\(.\)' 2>/dev/null ||
23978 echo X"$ac_dest" |
23979     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23980           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23981           /^X\(\/\/\)$/{ s//\1/; q; }
23982           /^X\(\/\).*/{ s//\1/; q; }
23983           s/.*/./; q'`
23984   ac_builddir=.
23985
23986 if test "$ac_dir" != .; then
23987   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23988   # A "../" for each directory in $ac_dir_suffix.
23989   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23990 else
23991   ac_dir_suffix= ac_top_builddir=
23992 fi
23993
23994 case $srcdir in
23995   .)  # No --srcdir option.  We are building in place.
23996     ac_srcdir=.
23997     if test -z "$ac_top_builddir"; then
23998        ac_top_srcdir=.
23999     else
24000        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24001     fi ;;
24002   [\\/]* | ?:[\\/]* )  # Absolute path.
24003     ac_srcdir=$srcdir$ac_dir_suffix;
24004     ac_top_srcdir=$srcdir ;;
24005   *) # Relative path.
24006     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24007     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24008 esac
24009 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24010 # absolute.
24011 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24012 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24013 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24014 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24015
24016
24017   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24018 echo "$as_me: executing $ac_dest commands" >&6;}
24019   case $ac_dest in
24020     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24021     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24022     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
24023     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24024     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24025     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24026     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24027     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24028     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24029     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24030     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24031     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24032   esac
24033 done
24034 _ACEOF
24035
24036 cat >>$CONFIG_STATUS <<\_ACEOF
24037
24038 { (exit 0); exit 0; }
24039 _ACEOF
24040 chmod +x $CONFIG_STATUS
24041 ac_clean_files=$ac_clean_files_save
24042
24043
24044 # configure is writing to config.log, and then calls config.status.
24045 # config.status does its own redirection, appending to config.log.
24046 # Unfortunately, on DOS this fails, as config.log is still kept open
24047 # by configure, so config.status won't be able to write to it; its
24048 # output is simply discarded.  So we exec the FD to /dev/null,
24049 # effectively closing config.log, so it can be properly (re)opened and
24050 # appended to by config.status.  When coming back to configure, we
24051 # need to make the FD available again.
24052 if test "$no_create" != yes; then
24053   ac_cs_success=:
24054   ac_config_status_args=
24055   test "$silent" = yes &&
24056     ac_config_status_args="$ac_config_status_args --quiet"
24057   exec 5>/dev/null
24058   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24059   exec 5>>config.log
24060   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24061   # would make configure fail if this is the last instruction.
24062   $ac_cs_success || { (exit 1); exit 1; }
24063 fi
24064
24065 #
24066 # CONFIG_SUBDIRS section.
24067 #
24068 if test "$no_recursion" != yes; then
24069
24070   # Remove --cache-file and --srcdir arguments so they do not pile up.
24071   ac_sub_configure_args=
24072   ac_prev=
24073   for ac_arg in $ac_configure_args; do
24074     if test -n "$ac_prev"; then
24075       ac_prev=
24076       continue
24077     fi
24078     case $ac_arg in
24079     -cache-file | --cache-file | --cache-fil | --cache-fi \
24080     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24081       ac_prev=cache_file ;;
24082     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24083     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24084     | --c=*)
24085       ;;
24086     --config-cache | -C)
24087       ;;
24088     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24089       ac_prev=srcdir ;;
24090     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24091       ;;
24092     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24093       ac_prev=prefix ;;
24094     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24095       ;;
24096     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24097     esac
24098   done
24099
24100   # Always prepend --prefix to ensure using the same prefix
24101   # in subdir configurations.
24102   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24103
24104   ac_popdir=`pwd`
24105   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24106
24107     # Do not complain, so a configure script can configure whichever
24108     # parts of a large source tree are present.
24109     test -d $srcdir/$ac_dir || continue
24110
24111     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24112 echo "$as_me: configuring in $ac_dir" >&6;}
24113     { if $as_mkdir_p; then
24114     mkdir -p "$ac_dir"
24115   else
24116     as_dir="$ac_dir"
24117     as_dirs=
24118     while test ! -d "$as_dir"; do
24119       as_dirs="$as_dir $as_dirs"
24120       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24122          X"$as_dir" : 'X\(//\)[^/]' \| \
24123          X"$as_dir" : 'X\(//\)$' \| \
24124          X"$as_dir" : 'X\(/\)' \| \
24125          .     : '\(.\)' 2>/dev/null ||
24126 echo X"$as_dir" |
24127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24128           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24129           /^X\(\/\/\)$/{ s//\1/; q; }
24130           /^X\(\/\).*/{ s//\1/; q; }
24131           s/.*/./; q'`
24132     done
24133     test ! -n "$as_dirs" || mkdir $as_dirs
24134   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24135 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24136    { (exit 1); exit 1; }; }; }
24137
24138     ac_builddir=.
24139
24140 if test "$ac_dir" != .; then
24141   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24142   # A "../" for each directory in $ac_dir_suffix.
24143   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24144 else
24145   ac_dir_suffix= ac_top_builddir=
24146 fi
24147
24148 case $srcdir in
24149   .)  # No --srcdir option.  We are building in place.
24150     ac_srcdir=.
24151     if test -z "$ac_top_builddir"; then
24152        ac_top_srcdir=.
24153     else
24154        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24155     fi ;;
24156   [\\/]* | ?:[\\/]* )  # Absolute path.
24157     ac_srcdir=$srcdir$ac_dir_suffix;
24158     ac_top_srcdir=$srcdir ;;
24159   *) # Relative path.
24160     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24161     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24162 esac
24163 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24164 # absolute.
24165 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24166 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24167 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24168 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24169
24170
24171     cd $ac_dir
24172
24173     # Check for guested configure; otherwise get Cygnus style configure.
24174     if test -f $ac_srcdir/configure.gnu; then
24175       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24176     elif test -f $ac_srcdir/configure; then
24177       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24178     elif test -f $ac_srcdir/configure.in; then
24179       ac_sub_configure=$ac_configure
24180     else
24181       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24182 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24183       ac_sub_configure=
24184     fi
24185
24186     # The recursion is here.
24187     if test -n "$ac_sub_configure"; then
24188       # Make the cache file name correct relative to the subdirectory.
24189       case $cache_file in
24190       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24191       *) # Relative path.
24192         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24193       esac
24194
24195       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24196 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24197       # The eval makes quoting arguments work.
24198       eval $ac_sub_configure $ac_sub_configure_args \
24199            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24200         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24201 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24202    { (exit 1); exit 1; }; }
24203     fi
24204
24205     cd $ac_popdir
24206   done
24207 fi
24208
24209
24210 if test $llvmgccwarn = yes
24211 then
24212         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24213 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24214         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24215 echo "$as_me: WARNING: ***** appear to be working." >&2;}
24216         { echo "$as_me:$LINENO: WARNING: ***** " >&5
24217 echo "$as_me: WARNING: ***** " >&2;}
24218         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24219 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24220         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24221 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24222         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24223 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
24224 fi
24225