Fit to 80 cols
[oota-llvm.git] / configure_am
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for LLVM 1.4.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='LLVM'
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='LLVM 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
430 ac_unique_file=""lib/VMCore/Module.cpp""
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subdirs_all="$ac_subdirs_all projects/sample"
469 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
470 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
471 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
472 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
473 ac_subdirs_all="$ac_subdirs_all projects/Java"
474 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
475 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar LLVMGCCDIR ENABLE_OPTIMIZED ENABLE_PROFILED BUILDMODE JIT OS ARCH_X86_TRUE ARCH_X86_FALSE ARCH_SPARC_TRUE ARCH_SPARC_FALSE ARCH_PPC_TRUE ARCH_PPC_FALSE ARCH_UNKNOWN_TRUE ARCH_UNKNOWN_FALSE ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS PYTHON QMTEST ifGNUmake LLVMCC1 LLVMCC1PLUS ETAGSFLAGS ALLOCA MMAP_FILE HAVE_ZLIB HAVE_BZIP2 SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME subdirs 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_CC_set=${CC+set}
918 ac_env_CC_value=$CC
919 ac_cv_env_CC_set=${CC+set}
920 ac_cv_env_CC_value=$CC
921 ac_env_CFLAGS_set=${CFLAGS+set}
922 ac_env_CFLAGS_value=$CFLAGS
923 ac_cv_env_CFLAGS_set=${CFLAGS+set}
924 ac_cv_env_CFLAGS_value=$CFLAGS
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_CXX_set=${CXX+set}
934 ac_env_CXX_value=$CXX
935 ac_cv_env_CXX_set=${CXX+set}
936 ac_cv_env_CXX_value=$CXX
937 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_env_CXXFLAGS_value=$CXXFLAGS
939 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
940 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
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 Program names:
1019   --program-prefix=PREFIX            prepend PREFIX to installed program names
1020   --program-suffix=SUFFIX            append SUFFIX to installed program names
1021   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1022
1023 System types:
1024   --build=BUILD     configure for building on BUILD [guessed]
1025   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1026   --target=TARGET   configure for building compilers for TARGET [HOST]
1027 _ACEOF
1028 fi
1029
1030 if test -n "$ac_init_help"; then
1031   case $ac_init_help in
1032      short | recursive ) echo "Configuration of LLVM 1.4:";;
1033    esac
1034   cat <<\_ACEOF
1035
1036 Optional Features:
1037   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1038   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1039   --enable-optimized      Build an optimized version of LLVM (default=no)
1040   --enable-profiled       Build a profiled version of LLVM (default=no)
1041   --enable-jit            Enable Just In Time Compiling (default is YES)
1042   --disable-dependency-tracking  speeds up one-time build
1043   --enable-dependency-tracking   do not reject slow dependency extractors
1044   --enable-shared[=PKGS]
1045                           build shared libraries [default=yes]
1046   --enable-static[=PKGS]
1047                           build static libraries [default=yes]
1048   --enable-fast-install[=PKGS]
1049                           optimize for fast installation [default=yes]
1050   --disable-libtool-lock  avoid locking (might break parallel builds)
1051
1052 Optional Packages:
1053   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1054   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1055   --with-llvmgccdir       Location of LLVM GCC front-end
1056   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1057   --with-pic              try to use only PIC/non-PIC objects [default=use
1058                           both]
1059   --with-tags[=TAGS]
1060                           include additional configurations [automatic]
1061
1062 Some influential environment variables:
1063   CC          C compiler command
1064   CFLAGS      C compiler flags
1065   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1066               nonstandard directory <lib dir>
1067   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068               headers in a nonstandard directory <include dir>
1069   CXX         C++ compiler command
1070   CXXFLAGS    C++ compiler flags
1071   CPP         C preprocessor
1072   CXXCPP      C++ preprocessor
1073   F77         Fortran 77 compiler command
1074   FFLAGS      Fortran 77 compiler flags
1075
1076 Use these variables to override the choices made by `configure' or to help
1077 it to find libraries and programs with nonstandard names/locations.
1078
1079 Report bugs to <llvmbugs@cs.uiuc.edu>.
1080 _ACEOF
1081 fi
1082
1083 if test "$ac_init_help" = "recursive"; then
1084   # If there are subdirs, report their specific --help.
1085   ac_popdir=`pwd`
1086   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087     test -d $ac_dir || continue
1088     ac_builddir=.
1089
1090 if test "$ac_dir" != .; then
1091   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092   # A "../" for each directory in $ac_dir_suffix.
1093   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094 else
1095   ac_dir_suffix= ac_top_builddir=
1096 fi
1097
1098 case $srcdir in
1099   .)  # No --srcdir option.  We are building in place.
1100     ac_srcdir=.
1101     if test -z "$ac_top_builddir"; then
1102        ac_top_srcdir=.
1103     else
1104        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105     fi ;;
1106   [\\/]* | ?:[\\/]* )  # Absolute path.
1107     ac_srcdir=$srcdir$ac_dir_suffix;
1108     ac_top_srcdir=$srcdir ;;
1109   *) # Relative path.
1110     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112 esac
1113
1114 # Do not use `cd foo && pwd` to compute absolute paths, because
1115 # the directories may not exist.
1116 case `pwd` in
1117 .) ac_abs_builddir="$ac_dir";;
1118 *)
1119   case "$ac_dir" in
1120   .) ac_abs_builddir=`pwd`;;
1121   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1123   esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 *)
1128   case ${ac_top_builddir}. in
1129   .) ac_abs_top_builddir=$ac_abs_builddir;;
1130   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132   esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_srcdir=$ac_srcdir;;
1136 *)
1137   case $ac_srcdir in
1138   .) ac_abs_srcdir=$ac_abs_builddir;;
1139   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141   esac;;
1142 esac
1143 case $ac_abs_builddir in
1144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 *)
1146   case $ac_top_srcdir in
1147   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150   esac;;
1151 esac
1152
1153     cd $ac_dir
1154     # Check for guested configure; otherwise get Cygnus style configure.
1155     if test -f $ac_srcdir/configure.gnu; then
1156       echo
1157       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1158     elif test -f $ac_srcdir/configure; then
1159       echo
1160       $SHELL $ac_srcdir/configure  --help=recursive
1161     elif test -f $ac_srcdir/configure.ac ||
1162            test -f $ac_srcdir/configure.in; then
1163       echo
1164       $ac_configure --help
1165     else
1166       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167     fi
1168     cd $ac_popdir
1169   done
1170 fi
1171
1172 test -n "$ac_init_help" && exit 0
1173 if $ac_init_version; then
1174   cat <<\_ACEOF
1175 LLVM configure 1.4
1176 generated by GNU Autoconf 2.59
1177
1178 Copyright (C) 2003 Free Software Foundation, Inc.
1179 This configure script is free software; the Free Software Foundation
1180 gives unlimited permission to copy, distribute and modify it.
1181 _ACEOF
1182   exit 0
1183 fi
1184 exec 5>config.log
1185 cat >&5 <<_ACEOF
1186 This file contains any messages produced by compilers while
1187 running configure, to aid debugging if configure makes a mistake.
1188
1189 It was created by LLVM $as_me 1.4, which was
1190 generated by GNU Autoconf 2.59.  Invocation command line was
1191
1192   $ $0 $@
1193
1194 _ACEOF
1195 {
1196 cat <<_ASUNAME
1197 ## --------- ##
1198 ## Platform. ##
1199 ## --------- ##
1200
1201 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206
1207 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1209
1210 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1211 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1212 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1214 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1215 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1216 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1217
1218 _ASUNAME
1219
1220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221 for as_dir in $PATH
1222 do
1223   IFS=$as_save_IFS
1224   test -z "$as_dir" && as_dir=.
1225   echo "PATH: $as_dir"
1226 done
1227
1228 } >&5
1229
1230 cat >&5 <<_ACEOF
1231
1232
1233 ## ----------- ##
1234 ## Core tests. ##
1235 ## ----------- ##
1236
1237 _ACEOF
1238
1239
1240 # Keep a trace of the command line.
1241 # Strip out --no-create and --no-recursion so they do not pile up.
1242 # Strip out --silent because we don't want to record it for future runs.
1243 # Also quote any args containing shell meta-characters.
1244 # Make two passes to allow for proper duplicate-argument suppression.
1245 ac_configure_args=
1246 ac_configure_args0=
1247 ac_configure_args1=
1248 ac_sep=
1249 ac_must_keep_next=false
1250 for ac_pass in 1 2
1251 do
1252   for ac_arg
1253   do
1254     case $ac_arg in
1255     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257     | -silent | --silent | --silen | --sile | --sil)
1258       continue ;;
1259     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261     esac
1262     case $ac_pass in
1263     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264     2)
1265       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266       if test $ac_must_keep_next = true; then
1267         ac_must_keep_next=false # Got value, back to normal.
1268       else
1269         case $ac_arg in
1270           *=* | --config-cache | -C | -disable-* | --disable-* \
1271           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273           | -with-* | --with-* | -without-* | --without-* | --x)
1274             case "$ac_configure_args0 " in
1275               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276             esac
1277             ;;
1278           -* ) ac_must_keep_next=true ;;
1279         esac
1280       fi
1281       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282       # Get rid of the leading space.
1283       ac_sep=" "
1284       ;;
1285     esac
1286   done
1287 done
1288 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290
1291 # When interrupted or exit'd, cleanup temporary files, and complete
1292 # config.log.  We remove comments because anyway the quotes in there
1293 # would cause problems or look ugly.
1294 # WARNING: Be sure not to use single quotes in there, as some shells,
1295 # such as our DU 5.0 friend, will then `close' the trap.
1296 trap 'exit_status=$?
1297   # Save into config.log some information that might help in debugging.
1298   {
1299     echo
1300
1301     cat <<\_ASBOX
1302 ## ---------------- ##
1303 ## Cache variables. ##
1304 ## ---------------- ##
1305 _ASBOX
1306     echo
1307     # The following way of writing the cache mishandles newlines in values,
1308 {
1309   (set) 2>&1 |
1310     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311     *ac_space=\ *)
1312       sed -n \
1313         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1315       ;;
1316     *)
1317       sed -n \
1318         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1319       ;;
1320     esac;
1321 }
1322     echo
1323
1324     cat <<\_ASBOX
1325 ## ----------------- ##
1326 ## Output variables. ##
1327 ## ----------------- ##
1328 _ASBOX
1329     echo
1330     for ac_var in $ac_subst_vars
1331     do
1332       eval ac_val=$`echo $ac_var`
1333       echo "$ac_var='"'"'$ac_val'"'"'"
1334     done | sort
1335     echo
1336
1337     if test -n "$ac_subst_files"; then
1338       cat <<\_ASBOX
1339 ## ------------- ##
1340 ## Output files. ##
1341 ## ------------- ##
1342 _ASBOX
1343       echo
1344       for ac_var in $ac_subst_files
1345       do
1346         eval ac_val=$`echo $ac_var`
1347         echo "$ac_var='"'"'$ac_val'"'"'"
1348       done | sort
1349       echo
1350     fi
1351
1352     if test -s confdefs.h; then
1353       cat <<\_ASBOX
1354 ## ----------- ##
1355 ## confdefs.h. ##
1356 ## ----------- ##
1357 _ASBOX
1358       echo
1359       sed "/^$/d" confdefs.h | sort
1360       echo
1361     fi
1362     test "$ac_signal" != 0 &&
1363       echo "$as_me: caught signal $ac_signal"
1364     echo "$as_me: exit $exit_status"
1365   } >&5
1366   rm -f core *.core &&
1367   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368     exit $exit_status
1369      ' 0
1370 for ac_signal in 1 2 13 15; do
1371   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372 done
1373 ac_signal=0
1374
1375 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1376 rm -rf conftest* confdefs.h
1377 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378 echo >confdefs.h
1379
1380 # Predefined preprocessor variables.
1381
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_NAME "$PACKAGE_NAME"
1384 _ACEOF
1385
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389 _ACEOF
1390
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1394 _ACEOF
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_STRING "$PACKAGE_STRING"
1399 _ACEOF
1400
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404 _ACEOF
1405
1406
1407 # Let the site file select an alternate cache file if it wants to.
1408 # Prefer explicitly selected file to automatically selected ones.
1409 if test -z "$CONFIG_SITE"; then
1410   if test "x$prefix" != xNONE; then
1411     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412   else
1413     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414   fi
1415 fi
1416 for ac_site_file in $CONFIG_SITE; do
1417   if test -r "$ac_site_file"; then
1418     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419 echo "$as_me: loading site script $ac_site_file" >&6;}
1420     sed 's/^/| /' "$ac_site_file" >&5
1421     . "$ac_site_file"
1422   fi
1423 done
1424
1425 if test -r "$cache_file"; then
1426   # Some versions of bash will fail to source /dev/null (special
1427   # files actually), so we avoid doing that.
1428   if test -f "$cache_file"; then
1429     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430 echo "$as_me: loading cache $cache_file" >&6;}
1431     case $cache_file in
1432       [\\/]* | ?:[\\/]* ) . $cache_file;;
1433       *)                      . ./$cache_file;;
1434     esac
1435   fi
1436 else
1437   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438 echo "$as_me: creating cache $cache_file" >&6;}
1439   >$cache_file
1440 fi
1441
1442 # Check that the precious variables saved in the cache have kept the same
1443 # value.
1444 ac_cache_corrupted=false
1445 for ac_var in `(set) 2>&1 |
1446                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1447   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448   eval ac_new_set=\$ac_env_${ac_var}_set
1449   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450   eval ac_new_val="\$ac_env_${ac_var}_value"
1451   case $ac_old_set,$ac_new_set in
1452     set,)
1453       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455       ac_cache_corrupted=: ;;
1456     ,set)
1457       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459       ac_cache_corrupted=: ;;
1460     ,);;
1461     *)
1462       if test "x$ac_old_val" != "x$ac_new_val"; then
1463         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1464 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1465         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1466 echo "$as_me:   former value:  $ac_old_val" >&2;}
1467         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1468 echo "$as_me:   current value: $ac_new_val" >&2;}
1469         ac_cache_corrupted=:
1470       fi;;
1471   esac
1472   # Pass precious variables to config.status.
1473   if test "$ac_new_set" = set; then
1474     case $ac_new_val in
1475     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477     *) ac_arg=$ac_var=$ac_new_val ;;
1478     esac
1479     case " $ac_configure_args " in
1480       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1481       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482     esac
1483   fi
1484 done
1485 if $ac_cache_corrupted; then
1486   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490    { (exit 1); exit 1; }; }
1491 fi
1492
1493 ac_ext=c
1494 ac_cpp='$CPP $CPPFLAGS'
1495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526 ac_aux_dir=
1527 for ac_dir in autoconf $srcdir/autoconf; do
1528   if test -f $ac_dir/install-sh; then
1529     ac_aux_dir=$ac_dir
1530     ac_install_sh="$ac_aux_dir/install-sh -c"
1531     break
1532   elif test -f $ac_dir/install.sh; then
1533     ac_aux_dir=$ac_dir
1534     ac_install_sh="$ac_aux_dir/install.sh -c"
1535     break
1536   elif test -f $ac_dir/shtool; then
1537     ac_aux_dir=$ac_dir
1538     ac_install_sh="$ac_aux_dir/shtool install -c"
1539     break
1540   fi
1541 done
1542 if test -z "$ac_aux_dir"; then
1543   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1544 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1545    { (exit 1); exit 1; }; }
1546 fi
1547 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1548 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1549 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1550
1551
1552
1553
1554 # Make sure we can run config.sub.
1555 $ac_config_sub sun4 >/dev/null 2>&1 ||
1556   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1557 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1558    { (exit 1); exit 1; }; }
1559
1560 echo "$as_me:$LINENO: checking build system type" >&5
1561 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1562 if test "${ac_cv_build+set}" = set; then
1563   echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565   ac_cv_build_alias=$build_alias
1566 test -z "$ac_cv_build_alias" &&
1567   ac_cv_build_alias=`$ac_config_guess`
1568 test -z "$ac_cv_build_alias" &&
1569   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1570 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1571    { (exit 1); exit 1; }; }
1572 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1573   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1574 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1575    { (exit 1); exit 1; }; }
1576
1577 fi
1578 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1579 echo "${ECHO_T}$ac_cv_build" >&6
1580 build=$ac_cv_build
1581 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584
1585
1586 echo "$as_me:$LINENO: checking host system type" >&5
1587 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1588 if test "${ac_cv_host+set}" = set; then
1589   echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591   ac_cv_host_alias=$host_alias
1592 test -z "$ac_cv_host_alias" &&
1593   ac_cv_host_alias=$ac_cv_build_alias
1594 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1595   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1596 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1597    { (exit 1); exit 1; }; }
1598
1599 fi
1600 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1601 echo "${ECHO_T}$ac_cv_host" >&6
1602 host=$ac_cv_host
1603 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608 echo "$as_me:$LINENO: checking target system type" >&5
1609 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1610 if test "${ac_cv_target+set}" = set; then
1611   echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613   ac_cv_target_alias=$target_alias
1614 test "x$ac_cv_target_alias" = "x" &&
1615   ac_cv_target_alias=$ac_cv_host_alias
1616 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1617   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1618 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1619    { (exit 1); exit 1; }; }
1620
1621 fi
1622 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1623 echo "${ECHO_T}$ac_cv_target" >&6
1624 target=$ac_cv_target
1625 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630 # The aliases save the names the user supplied, while $host etc.
1631 # will get canonicalized.
1632 test -n "$target_alias" &&
1633   test "$program_prefix$program_suffix$program_transform_name" = \
1634     NONENONEs,x,x, &&
1635   program_prefix=${target_alias}-
1636
1637 if test ${srcdir} != "." ; then
1638         if test -f ${srcdir}/include/llvm/Config/config.h ; then
1639                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1640 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1641    { (exit 1); exit 1; }; }
1642         fi
1643 fi
1644
1645 am__api_version="1.9"
1646 # Find a good install program.  We prefer a C program (faster),
1647 # so one script is as good as another.  But avoid the broken or
1648 # incompatible versions:
1649 # SysV /etc/install, /usr/sbin/install
1650 # SunOS /usr/etc/install
1651 # IRIX /sbin/install
1652 # AIX /bin/install
1653 # AmigaOS /C/install, which installs bootblocks on floppy discs
1654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1657 # OS/2's system install, which has a completely different semantic
1658 # ./install, which can be erroneously created by make from ./install.sh.
1659 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1660 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1661 if test -z "$INSTALL"; then
1662 if test "${ac_cv_path_install+set}" = set; then
1663   echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668   IFS=$as_save_IFS
1669   test -z "$as_dir" && as_dir=.
1670   # Account for people who put trailing slashes in PATH elements.
1671 case $as_dir/ in
1672   ./ | .// | /cC/* | \
1673   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1674   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1675   /usr/ucb/* ) ;;
1676   *)
1677     # OSF1 and SCO ODT 3.0 have their own names for install.
1678     # Don't use installbsd from OSF since it installs stuff as root
1679     # by default.
1680     for ac_prog in ginstall scoinst install; do
1681       for ac_exec_ext in '' $ac_executable_extensions; do
1682         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1683           if test $ac_prog = install &&
1684             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1685             # AIX install.  It has an incompatible calling convention.
1686             :
1687           elif test $ac_prog = install &&
1688             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1689             # program-specific install script used by HP pwplus--don't use.
1690             :
1691           else
1692             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1693             break 3
1694           fi
1695         fi
1696       done
1697     done
1698     ;;
1699 esac
1700 done
1701
1702
1703 fi
1704   if test "${ac_cv_path_install+set}" = set; then
1705     INSTALL=$ac_cv_path_install
1706   else
1707     # As a last resort, use the slow shell script.  We don't cache a
1708     # path for INSTALL within a source directory, because that will
1709     # break other packages using the cache if that directory is
1710     # removed, or if the path is relative.
1711     INSTALL=$ac_install_sh
1712   fi
1713 fi
1714 echo "$as_me:$LINENO: result: $INSTALL" >&5
1715 echo "${ECHO_T}$INSTALL" >&6
1716
1717 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1718 # It thinks the first close brace ends the variable substitution.
1719 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1720
1721 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1722
1723 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1724
1725 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1726 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1727 # Just in case
1728 sleep 1
1729 echo timestamp > conftest.file
1730 # Do `set' in a subshell so we don't clobber the current shell's
1731 # arguments.  Must try -L first in case configure is actually a
1732 # symlink; some systems play weird games with the mod time of symlinks
1733 # (eg FreeBSD returns the mod time of the symlink's containing
1734 # directory).
1735 if (
1736    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1737    if test "$*" = "X"; then
1738       # -L didn't work.
1739       set X `ls -t $srcdir/configure conftest.file`
1740    fi
1741    rm -f conftest.file
1742    if test "$*" != "X $srcdir/configure conftest.file" \
1743       && test "$*" != "X conftest.file $srcdir/configure"; then
1744
1745       # If neither matched, then we have a broken ls.  This can happen
1746       # if, for instance, CONFIG_SHELL is bash and it inherits a
1747       # broken ls alias from the environment.  This has actually
1748       # happened.  Such a system could not be considered "sane".
1749       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1750 alias in your environment" >&5
1751 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1752 alias in your environment" >&2;}
1753    { (exit 1); exit 1; }; }
1754    fi
1755
1756    test "$2" = conftest.file
1757    )
1758 then
1759    # Ok.
1760    :
1761 else
1762    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1763 Check your system clock" >&5
1764 echo "$as_me: error: newly created file is older than distributed files!
1765 Check your system clock" >&2;}
1766    { (exit 1); exit 1; }; }
1767 fi
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1770 test "$program_prefix" != NONE &&
1771   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1772 # Use a double $ so make ignores it.
1773 test "$program_suffix" != NONE &&
1774   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1775 # Double any \ or $.  echo might interpret backslashes.
1776 # By default was `s,x,x', remove it if useless.
1777 cat <<\_ACEOF >conftest.sed
1778 s/[\\$]/&&/g;s/;s,x,x,$//
1779 _ACEOF
1780 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1781 rm conftest.sed
1782
1783 # expand $ac_aux_dir to an absolute path
1784 am_aux_dir=`cd $ac_aux_dir && pwd`
1785
1786 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1787 # Use eval to expand $SHELL
1788 if eval "$MISSING --run true"; then
1789   am_missing_run="$MISSING --run "
1790 else
1791   am_missing_run=
1792   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1793 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1794 fi
1795
1796 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1797   # We used to keeping the `.' as first argument, in order to
1798   # allow $(mkdir_p) to be used without argument.  As in
1799   #   $(mkdir_p) $(somedir)
1800   # where $(somedir) is conditionally defined.  However this is wrong
1801   # for two reasons:
1802   #  1. if the package is installed by a user who cannot write `.'
1803   #     make install will fail,
1804   #  2. the above comment should most certainly read
1805   #     $(mkdir_p) $(DESTDIR)$(somedir)
1806   #     so it does not work when $(somedir) is undefined and
1807   #     $(DESTDIR) is not.
1808   #  To support the latter case, we have to write
1809   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1810   #  so the `.' trick is pointless.
1811   mkdir_p='mkdir -p --'
1812 else
1813   # On NextStep and OpenStep, the `mkdir' command does not
1814   # recognize any option.  It will interpret all options as
1815   # directories to create, and then abort because `.' already
1816   # exists.
1817   for d in ./-p ./--version;
1818   do
1819     test -d $d && rmdir $d
1820   done
1821   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1822   if test -f "$ac_aux_dir/mkinstalldirs"; then
1823     mkdir_p='$(mkinstalldirs)'
1824   else
1825     mkdir_p='$(install_sh) -d'
1826   fi
1827 fi
1828
1829 for ac_prog in gawk mawk nawk awk
1830 do
1831   # Extract the first word of "$ac_prog", so it can be a program name with args.
1832 set dummy $ac_prog; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_AWK+set}" = set; then
1836   echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838   if test -n "$AWK"; then
1839   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1843 do
1844   IFS=$as_save_IFS
1845   test -z "$as_dir" && as_dir=.
1846   for ac_exec_ext in '' $ac_executable_extensions; do
1847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848     ac_cv_prog_AWK="$ac_prog"
1849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850     break 2
1851   fi
1852 done
1853 done
1854
1855 fi
1856 fi
1857 AWK=$ac_cv_prog_AWK
1858 if test -n "$AWK"; then
1859   echo "$as_me:$LINENO: result: $AWK" >&5
1860 echo "${ECHO_T}$AWK" >&6
1861 else
1862   echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1864 fi
1865
1866   test -n "$AWK" && break
1867 done
1868
1869 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1870 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1871 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1872 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   cat >conftest.make <<\_ACEOF
1876 all:
1877         @echo 'ac_maketemp="$(MAKE)"'
1878 _ACEOF
1879 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1880 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1881 if test -n "$ac_maketemp"; then
1882   eval ac_cv_prog_make_${ac_make}_set=yes
1883 else
1884   eval ac_cv_prog_make_${ac_make}_set=no
1885 fi
1886 rm -f conftest.make
1887 fi
1888 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1889   echo "$as_me:$LINENO: result: yes" >&5
1890 echo "${ECHO_T}yes" >&6
1891   SET_MAKE=
1892 else
1893   echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895   SET_MAKE="MAKE=${MAKE-make}"
1896 fi
1897
1898 rm -rf .tst 2>/dev/null
1899 mkdir .tst 2>/dev/null
1900 if test -d .tst; then
1901   am__leading_dot=.
1902 else
1903   am__leading_dot=_
1904 fi
1905 rmdir .tst 2>/dev/null
1906
1907 # test to see if srcdir already configured
1908 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1909    test -f $srcdir/config.status; then
1910   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1911 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1912    { (exit 1); exit 1; }; }
1913 fi
1914
1915 # test whether we have cygpath
1916 if test -z "$CYGPATH_W"; then
1917   if (cygpath --version) >/dev/null 2>/dev/null; then
1918     CYGPATH_W='cygpath -w'
1919   else
1920     CYGPATH_W=echo
1921   fi
1922 fi
1923
1924
1925 # Define the identity of the package.
1926  PACKAGE='-llvm-'
1927  VERSION='1.4'
1928
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE "$PACKAGE"
1932 _ACEOF
1933
1934
1935 cat >>confdefs.h <<_ACEOF
1936 #define VERSION "$VERSION"
1937 _ACEOF
1938
1939 # Some tools Automake needs.
1940
1941 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1942
1943
1944 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1945
1946
1947 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1948
1949
1950 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1951
1952
1953 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1954
1955 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1956
1957 # Installed binaries are usually stripped using `strip' when the user
1958 # run `make install-strip'.  However `strip' might not be the right
1959 # tool to use in cross-compilation environments, therefore Automake
1960 # will honor the `STRIP' environment variable to overrule this program.
1961 if test "$cross_compiling" != no; then
1962   if test -n "$ac_tool_prefix"; then
1963   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1964 set dummy ${ac_tool_prefix}strip; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_STRIP+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   if test -n "$STRIP"; then
1971   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976   IFS=$as_save_IFS
1977   test -z "$as_dir" && as_dir=.
1978   for ac_exec_ext in '' $ac_executable_extensions; do
1979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982     break 2
1983   fi
1984 done
1985 done
1986
1987 fi
1988 fi
1989 STRIP=$ac_cv_prog_STRIP
1990 if test -n "$STRIP"; then
1991   echo "$as_me:$LINENO: result: $STRIP" >&5
1992 echo "${ECHO_T}$STRIP" >&6
1993 else
1994   echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1996 fi
1997
1998 fi
1999 if test -z "$ac_cv_prog_STRIP"; then
2000   ac_ct_STRIP=$STRIP
2001   # Extract the first word of "strip", so it can be a program name with args.
2002 set dummy strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$ac_ct_STRIP"; then
2009   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018     ac_cv_prog_ac_ct_STRIP="strip"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2026 fi
2027 fi
2028 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2029 if test -n "$ac_ct_STRIP"; then
2030   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2031 echo "${ECHO_T}$ac_ct_STRIP" >&6
2032 else
2033   echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 fi
2036
2037   STRIP=$ac_ct_STRIP
2038 else
2039   STRIP="$ac_cv_prog_STRIP"
2040 fi
2041
2042 fi
2043 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2044
2045 # We need awk for the "check" target.  The system "awk" is bad on
2046 # some platforms.
2047 # Always define AMTAR for backward compatibility.
2048
2049 AMTAR=${AMTAR-"${am_missing_run}tar"}
2050
2051 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2063 if test "${with_llvmgccdir+set}" = set; then
2064   withval="$with_llvmgccdir"
2065   case "${withval}" in
2066     /*|*/*) LLVMGCCDIR=$withval ;;
2067     *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-llvmgccdir" >&5
2068 echo "$as_me: error: bad value ${withval} for --with-llvmgccdir" >&2;}
2069    { (exit 1); exit 1; }; } ;;
2070   esac
2071 else
2072   LLVMGCCDIR=/usr/local/llvm-gcc
2073 fi;
2074
2075
2076 # Check whether --enable-optimized or --disable-optimized was given.
2077 if test "${enable_optimized+set}" = set; then
2078   enableval="$enable_optimized"
2079   case "${withval}" in
2080     yes) ENABLE_OPTIMIZED=1 ;;
2081     no)  ENABLE_OPTIMIZED=0 ;;
2082     "")  ENABLE_OPTIMIZED=0 ;;
2083     *)   { { echo "$as_me:$LINENO: error: bad value ${withval} for --enable-optimized" >&5
2084 echo "$as_me: error: bad value ${withval} for --enable-optimized" >&2;}
2085    { (exit 1); exit 1; }; } ;;
2086   esac
2087 else
2088   ENABLE_OPTIMIZED=0
2089 fi;
2090
2091
2092 # Check whether --enable-profiled or --disable-profiled was given.
2093 if test "${enable_profiled+set}" = set; then
2094   enableval="$enable_profiled"
2095   case "${withval}" in
2096     yes) ENABLE_PROFILED=1 ;;
2097     no)  ENABLE_PROFILED=0 ;;
2098     "")  ENABLE_PROFILED=0 ;;
2099     *)   { { echo "$as_me:$LINENO: error: bad value ${withval} for --enable-profiled" >&5
2100 echo "$as_me: error: bad value ${withval} for --enable-profiled" >&2;}
2101    { (exit 1); exit 1; }; } ;;
2102   esac
2103 else
2104   ENABLE_PROFILED=0
2105 fi;
2106 ENABLE_PROFILED=$ENABLE_PROFILED
2107
2108
2109 if test $ENABLE_PROFILED = 1 ; then
2110   BUILDMODE=Profile
2111
2112 else
2113   if test $ENABLE_OPTIMIZED = 1 ; then
2114     BUILDMODE=Release
2115
2116   else
2117     BUILDMODE=Debug
2118
2119   fi
2120 fi
2121
2122 # Check whether --enable-jit or --disable-jit was given.
2123 if test "${enable_jit+set}" = set; then
2124   enableval="$enable_jit"
2125
2126 else
2127   enableval=default
2128 fi;
2129
2130 if test ${enableval} = "no"
2131 then
2132   JIT=
2133
2134 else
2135   case $target in
2136     *i*86*) JIT=TARGET_HAS_JIT=1
2137  ;;
2138     *sparc*) JIT=TARGET_HAS_JIT=1
2139  ;;
2140           *) JIT=
2141  ;;
2142   esac
2143 fi
2144
2145
2146 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
2147 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
2148 case $build in
2149   *-*-aix*)      llvm_platform_type="AIX" ;;
2150   *-*-cygwin*)   llvm_platform_type="Cygwin" ;;
2151   *-*-darwin*)   llvm_platform_type="Darwin" ;;
2152   *-*-freebsd*)  llvm_platform_type="FreeBSD" ;;
2153   *-*-interix*)  llvm_platform_type="Interix" ;;
2154   *-*-linux*)    llvm_platform_type="Linux" ;;
2155   *-*-solaris*)  llvm_platform_type="SunOS" ;;
2156   *-*-win32*)    llvm_platform_type="Win32" ;;
2157   *-*-mingw*)    llvm_platform_type="Win32" ;;
2158   *)
2159     { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
2160 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
2161    { (exit 1); exit 1; }; }
2162     llvm_platform_type="Unknown"
2163     ;;
2164 esac
2165 OS=$llvm_platform_type
2166
2167 echo "$as_me:$LINENO: result: $llvm_platform_type" >&5
2168 echo "${ECHO_T}$llvm_platform_type" >&6
2169
2170 echo "$as_me:$LINENO: checking target architecture" >&5
2171 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
2172 case $target in
2173   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
2174  ;;
2175 esac
2176
2177 case $target in
2178   i*86-*)      ARCH="x86" ;;
2179   sparc*-*)    ARCH="Sparc" ;;
2180   powerpc*-*)  ARCH="PowerPC" ;;
2181         *)     ARCH="Unknown";;
2182 esac
2183
2184
2185 if test $ARCH = "x86"; then
2186   ARCH_X86_TRUE=
2187   ARCH_X86_FALSE='#'
2188 else
2189   ARCH_X86_TRUE='#'
2190   ARCH_X86_FALSE=
2191 fi
2192
2193
2194
2195 if test $ARCH = "Sparc"; then
2196   ARCH_SPARC_TRUE=
2197   ARCH_SPARC_FALSE='#'
2198 else
2199   ARCH_SPARC_TRUE='#'
2200   ARCH_SPARC_FALSE=
2201 fi
2202
2203
2204
2205 if test $ARCH = "PowerPC"; then
2206   ARCH_PPC_TRUE=
2207   ARCH_PPC_FALSE='#'
2208 else
2209   ARCH_PPC_TRUE='#'
2210   ARCH_PPC_FALSE=
2211 fi
2212
2213
2214
2215 if test $ARCH = "Unknown"; then
2216   ARCH_UNKNOWN_TRUE=
2217   ARCH_UNKNOWN_FALSE='#'
2218 else
2219   ARCH_UNKNOWN_TRUE='#'
2220   ARCH_UNKNOWN_FALSE=
2221 fi
2222
2223 ARCH=$ARCH
2224
2225 echo "$as_me:$LINENO: result: $ARCH" >&5
2226 echo "${ECHO_T}$ARCH" >&6
2227
2228 DEPDIR="${am__leading_dot}deps"
2229
2230           ac_config_commands="$ac_config_commands depfiles"
2231
2232
2233 am_make=${MAKE-make}
2234 cat > confinc << 'END'
2235 am__doit:
2236         @echo done
2237 .PHONY: am__doit
2238 END
2239 # If we don't find an include directive, just comment out the code.
2240 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2241 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2242 am__include="#"
2243 am__quote=
2244 _am_result=none
2245 # First try GNU make style include.
2246 echo "include confinc" > confmf
2247 # We grep out `Entering directory' and `Leaving directory'
2248 # messages which can occur if `w' ends up in MAKEFLAGS.
2249 # In particular we don't look at `^make:' because GNU make might
2250 # be invoked under some other name (usually "gmake"), in which
2251 # case it prints its new name instead of `make'.
2252 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2253    am__include=include
2254    am__quote=
2255    _am_result=GNU
2256 fi
2257 # Now try BSD make style include.
2258 if test "$am__include" = "#"; then
2259    echo '.include "confinc"' > confmf
2260    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2261       am__include=.include
2262       am__quote="\""
2263       _am_result=BSD
2264    fi
2265 fi
2266
2267
2268 echo "$as_me:$LINENO: result: $_am_result" >&5
2269 echo "${ECHO_T}$_am_result" >&6
2270 rm -f confinc confmf
2271
2272 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2273 if test "${enable_dependency_tracking+set}" = set; then
2274   enableval="$enable_dependency_tracking"
2275
2276 fi;
2277 if test "x$enable_dependency_tracking" != xno; then
2278   am_depcomp="$ac_aux_dir/depcomp"
2279   AMDEPBACKSLASH='\'
2280 fi
2281
2282
2283 if test "x$enable_dependency_tracking" != xno; then
2284   AMDEP_TRUE=
2285   AMDEP_FALSE='#'
2286 else
2287   AMDEP_TRUE='#'
2288   AMDEP_FALSE=
2289 fi
2290
2291
2292
2293 ac_ext=c
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298 if test -n "$ac_tool_prefix"; then
2299   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2300 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2301 echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2303 if test "${ac_cv_prog_CC+set}" = set; then
2304   echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306   if test -n "$CC"; then
2307   ac_cv_prog_CC="$CC" # Let the user override the test.
2308 else
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2311 do
2312   IFS=$as_save_IFS
2313   test -z "$as_dir" && as_dir=.
2314   for ac_exec_ext in '' $ac_executable_extensions; do
2315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318     break 2
2319   fi
2320 done
2321 done
2322
2323 fi
2324 fi
2325 CC=$ac_cv_prog_CC
2326 if test -n "$CC"; then
2327   echo "$as_me:$LINENO: result: $CC" >&5
2328 echo "${ECHO_T}$CC" >&6
2329 else
2330   echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6
2332 fi
2333
2334 fi
2335 if test -z "$ac_cv_prog_CC"; then
2336   ac_ct_CC=$CC
2337   # Extract the first word of "gcc", so it can be a program name with args.
2338 set dummy gcc; ac_word=$2
2339 echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   if test -n "$ac_ct_CC"; then
2345   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350   IFS=$as_save_IFS
2351   test -z "$as_dir" && as_dir=.
2352   for ac_exec_ext in '' $ac_executable_extensions; do
2353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354     ac_cv_prog_ac_ct_CC="gcc"
2355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356     break 2
2357   fi
2358 done
2359 done
2360
2361 fi
2362 fi
2363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2364 if test -n "$ac_ct_CC"; then
2365   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2366 echo "${ECHO_T}$ac_ct_CC" >&6
2367 else
2368   echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2370 fi
2371
2372   CC=$ac_ct_CC
2373 else
2374   CC="$ac_cv_prog_CC"
2375 fi
2376
2377 if test -z "$CC"; then
2378   if test -n "$ac_tool_prefix"; then
2379   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2380 set dummy ${ac_tool_prefix}cc; ac_word=$2
2381 echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2383 if test "${ac_cv_prog_CC+set}" = set; then
2384   echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386   if test -n "$CC"; then
2387   ac_cv_prog_CC="$CC" # Let the user override the test.
2388 else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392   IFS=$as_save_IFS
2393   test -z "$as_dir" && as_dir=.
2394   for ac_exec_ext in '' $ac_executable_extensions; do
2395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2396     ac_cv_prog_CC="${ac_tool_prefix}cc"
2397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398     break 2
2399   fi
2400 done
2401 done
2402
2403 fi
2404 fi
2405 CC=$ac_cv_prog_CC
2406 if test -n "$CC"; then
2407   echo "$as_me:$LINENO: result: $CC" >&5
2408 echo "${ECHO_T}$CC" >&6
2409 else
2410   echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6
2412 fi
2413
2414 fi
2415 if test -z "$ac_cv_prog_CC"; then
2416   ac_ct_CC=$CC
2417   # Extract the first word of "cc", so it can be a program name with args.
2418 set dummy cc; ac_word=$2
2419 echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2422   echo $ECHO_N "(cached) $ECHO_C" >&6
2423 else
2424   if test -n "$ac_ct_CC"; then
2425   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2426 else
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2429 do
2430   IFS=$as_save_IFS
2431   test -z "$as_dir" && as_dir=.
2432   for ac_exec_ext in '' $ac_executable_extensions; do
2433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2434     ac_cv_prog_ac_ct_CC="cc"
2435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436     break 2
2437   fi
2438 done
2439 done
2440
2441 fi
2442 fi
2443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444 if test -n "$ac_ct_CC"; then
2445   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2446 echo "${ECHO_T}$ac_ct_CC" >&6
2447 else
2448   echo "$as_me:$LINENO: result: no" >&5
2449 echo "${ECHO_T}no" >&6
2450 fi
2451
2452   CC=$ac_ct_CC
2453 else
2454   CC="$ac_cv_prog_CC"
2455 fi
2456
2457 fi
2458 if test -z "$CC"; then
2459   # Extract the first word of "cc", so it can be a program name with args.
2460 set dummy cc; ac_word=$2
2461 echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2463 if test "${ac_cv_prog_CC+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   if test -n "$CC"; then
2467   ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469   ac_prog_rejected=no
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473   IFS=$as_save_IFS
2474   test -z "$as_dir" && as_dir=.
2475   for ac_exec_ext in '' $ac_executable_extensions; do
2476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2477     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2478        ac_prog_rejected=yes
2479        continue
2480      fi
2481     ac_cv_prog_CC="cc"
2482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483     break 2
2484   fi
2485 done
2486 done
2487
2488 if test $ac_prog_rejected = yes; then
2489   # We found a bogon in the path, so make sure we never use it.
2490   set dummy $ac_cv_prog_CC
2491   shift
2492   if test $# != 0; then
2493     # We chose a different compiler from the bogus one.
2494     # However, it has the same basename, so the bogon will be chosen
2495     # first if we set CC to just the basename; use the full file name.
2496     shift
2497     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2498   fi
2499 fi
2500 fi
2501 fi
2502 CC=$ac_cv_prog_CC
2503 if test -n "$CC"; then
2504   echo "$as_me:$LINENO: result: $CC" >&5
2505 echo "${ECHO_T}$CC" >&6
2506 else
2507   echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6
2509 fi
2510
2511 fi
2512 if test -z "$CC"; then
2513   if test -n "$ac_tool_prefix"; then
2514   for ac_prog in cl
2515   do
2516     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2518 echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2520 if test "${ac_cv_prog_CC+set}" = set; then
2521   echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523   if test -n "$CC"; then
2524   ac_cv_prog_CC="$CC" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529   IFS=$as_save_IFS
2530   test -z "$as_dir" && as_dir=.
2531   for ac_exec_ext in '' $ac_executable_extensions; do
2532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535     break 2
2536   fi
2537 done
2538 done
2539
2540 fi
2541 fi
2542 CC=$ac_cv_prog_CC
2543 if test -n "$CC"; then
2544   echo "$as_me:$LINENO: result: $CC" >&5
2545 echo "${ECHO_T}$CC" >&6
2546 else
2547   echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6
2549 fi
2550
2551     test -n "$CC" && break
2552   done
2553 fi
2554 if test -z "$CC"; then
2555   ac_ct_CC=$CC
2556   for ac_prog in cl
2557 do
2558   # Extract the first word of "$ac_prog", so it can be a program name with args.
2559 set dummy $ac_prog; ac_word=$2
2560 echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565   if test -n "$ac_ct_CC"; then
2566   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571   IFS=$as_save_IFS
2572   test -z "$as_dir" && as_dir=.
2573   for ac_exec_ext in '' $ac_executable_extensions; do
2574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575     ac_cv_prog_ac_ct_CC="$ac_prog"
2576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577     break 2
2578   fi
2579 done
2580 done
2581
2582 fi
2583 fi
2584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2585 if test -n "$ac_ct_CC"; then
2586   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2587 echo "${ECHO_T}$ac_ct_CC" >&6
2588 else
2589   echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6
2591 fi
2592
2593   test -n "$ac_ct_CC" && break
2594 done
2595
2596   CC=$ac_ct_CC
2597 fi
2598
2599 fi
2600
2601
2602 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: no acceptable C compiler found in \$PATH
2605 See \`config.log' for more details." >&2;}
2606    { (exit 1); exit 1; }; }
2607
2608 # Provide some information about the compiler.
2609 echo "$as_me:$LINENO:" \
2610      "checking for C compiler version" >&5
2611 ac_compiler=`set X $ac_compile; echo $2`
2612 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2613   (eval $ac_compiler --version </dev/null >&5) 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }
2617 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2618   (eval $ac_compiler -v </dev/null >&5) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }
2622 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2623   (eval $ac_compiler -V </dev/null >&5) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }
2627
2628 cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634
2635 int
2636 main ()
2637 {
2638
2639   ;
2640   return 0;
2641 }
2642 _ACEOF
2643 ac_clean_files_save=$ac_clean_files
2644 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2645 # Try to create an executable without -o first, disregard a.out.
2646 # It will help us diagnose broken compilers, and finding out an intuition
2647 # of exeext.
2648 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2649 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2650 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2651 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2652   (eval $ac_link_default) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; then
2656   # Find the output, starting from the most likely.  This scheme is
2657 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2658 # resort.
2659
2660 # Be careful to initialize this variable, since it used to be cached.
2661 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2662 ac_cv_exeext=
2663 # b.out is created by i960 compilers.
2664 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2665 do
2666   test -f "$ac_file" || continue
2667   case $ac_file in
2668     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2669         ;;
2670     conftest.$ac_ext )
2671         # This is the source file.
2672         ;;
2673     [ab].out )
2674         # We found the default executable, but exeext='' is most
2675         # certainly right.
2676         break;;
2677     *.* )
2678         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2679         # FIXME: I believe we export ac_cv_exeext for Libtool,
2680         # but it would be cool to find out if it's true.  Does anybody
2681         # maintain Libtool? --akim.
2682         export ac_cv_exeext
2683         break;;
2684     * )
2685         break;;
2686   esac
2687 done
2688 else
2689   echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2691
2692 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: C compiler cannot create executables
2695 See \`config.log' for more details." >&2;}
2696    { (exit 77); exit 77; }; }
2697 fi
2698
2699 ac_exeext=$ac_cv_exeext
2700 echo "$as_me:$LINENO: result: $ac_file" >&5
2701 echo "${ECHO_T}$ac_file" >&6
2702
2703 # Check the compiler produces executables we can run.  If not, either
2704 # the compiler is broken, or we cross compile.
2705 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2706 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2707 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2708 # If not cross compiling, check that we can run a simple program.
2709 if test "$cross_compiling" != yes; then
2710   if { ac_try='./$ac_file'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; }; then
2716     cross_compiling=no
2717   else
2718     if test "$cross_compiling" = maybe; then
2719         cross_compiling=yes
2720     else
2721         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2722 If you meant to cross compile, use \`--host'.
2723 See \`config.log' for more details." >&5
2724 echo "$as_me: error: cannot run C compiled programs.
2725 If you meant to cross compile, use \`--host'.
2726 See \`config.log' for more details." >&2;}
2727    { (exit 1); exit 1; }; }
2728     fi
2729   fi
2730 fi
2731 echo "$as_me:$LINENO: result: yes" >&5
2732 echo "${ECHO_T}yes" >&6
2733
2734 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2735 ac_clean_files=$ac_clean_files_save
2736 # Check the compiler produces executables we can run.  If not, either
2737 # the compiler is broken, or we cross compile.
2738 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2739 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2740 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2741 echo "${ECHO_T}$cross_compiling" >&6
2742
2743 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2744 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2746   (eval $ac_link) 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }; then
2750   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2751 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2752 # work properly (i.e., refer to `conftest.exe'), while it won't with
2753 # `rm'.
2754 for ac_file in conftest.exe conftest conftest.*; do
2755   test -f "$ac_file" || continue
2756   case $ac_file in
2757     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2758     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2759           export ac_cv_exeext
2760           break;;
2761     * ) break;;
2762   esac
2763 done
2764 else
2765   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2766 See \`config.log' for more details." >&5
2767 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2768 See \`config.log' for more details." >&2;}
2769    { (exit 1); exit 1; }; }
2770 fi
2771
2772 rm -f conftest$ac_cv_exeext
2773 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2774 echo "${ECHO_T}$ac_cv_exeext" >&6
2775
2776 rm -f conftest.$ac_ext
2777 EXEEXT=$ac_cv_exeext
2778 ac_exeext=$EXEEXT
2779 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2780 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2781 if test "${ac_cv_objext+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784   cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2790
2791 int
2792 main ()
2793 {
2794
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 rm -f conftest.o conftest.obj
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801   (eval $ac_compile) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; then
2805   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2806   case $ac_file in
2807     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2808     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2809        break;;
2810   esac
2811 done
2812 else
2813   echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815
2816 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2817 See \`config.log' for more details." >&5
2818 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2819 See \`config.log' for more details." >&2;}
2820    { (exit 1); exit 1; }; }
2821 fi
2822
2823 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2824 fi
2825 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2826 echo "${ECHO_T}$ac_cv_objext" >&6
2827 OBJEXT=$ac_cv_objext
2828 ac_objext=$OBJEXT
2829 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2830 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2831 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834   cat >conftest.$ac_ext <<_ACEOF
2835 /* confdefs.h.  */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h.  */
2840
2841 int
2842 main ()
2843 {
2844 #ifndef __GNUC__
2845        choke me
2846 #endif
2847
2848   ;
2849   return 0;
2850 }
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854   (eval $ac_compile) 2>conftest.er1
2855   ac_status=$?
2856   grep -v '^ *+' conftest.er1 >conftest.err
2857   rm -f conftest.er1
2858   cat conftest.err >&5
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } &&
2861          { ac_try='test -z "$ac_c_werror_flag"
2862                          || test ! -s conftest.err'
2863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; } &&
2868          { ac_try='test -s conftest.$ac_objext'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874   ac_compiler_gnu=yes
2875 else
2876   echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 ac_compiler_gnu=no
2880 fi
2881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2883
2884 fi
2885 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2886 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2887 GCC=`test $ac_compiler_gnu = yes && echo yes`
2888 ac_test_CFLAGS=${CFLAGS+set}
2889 ac_save_CFLAGS=$CFLAGS
2890 CFLAGS="-g"
2891 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2892 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2893 if test "${ac_cv_prog_cc_g+set}" = set; then
2894   echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896   cat >conftest.$ac_ext <<_ACEOF
2897 /* confdefs.h.  */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h.  */
2902
2903 int
2904 main ()
2905 {
2906
2907   ;
2908   return 0;
2909 }
2910 _ACEOF
2911 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913   (eval $ac_compile) 2>conftest.er1
2914   ac_status=$?
2915   grep -v '^ *+' conftest.er1 >conftest.err
2916   rm -f conftest.er1
2917   cat conftest.err >&5
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); } &&
2920          { ac_try='test -z "$ac_c_werror_flag"
2921                          || test ! -s conftest.err'
2922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923   (eval $ac_try) 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }; } &&
2927          { ac_try='test -s conftest.$ac_objext'
2928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929   (eval $ac_try) 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); }; }; then
2933   ac_cv_prog_cc_g=yes
2934 else
2935   echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2937
2938 ac_cv_prog_cc_g=no
2939 fi
2940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2941 fi
2942 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2943 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2944 if test "$ac_test_CFLAGS" = set; then
2945   CFLAGS=$ac_save_CFLAGS
2946 elif test $ac_cv_prog_cc_g = yes; then
2947   if test "$GCC" = yes; then
2948     CFLAGS="-g -O2"
2949   else
2950     CFLAGS="-g"
2951   fi
2952 else
2953   if test "$GCC" = yes; then
2954     CFLAGS="-O2"
2955   else
2956     CFLAGS=
2957   fi
2958 fi
2959 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2960 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2961 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2962   echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964   ac_cv_prog_cc_stdc=no
2965 ac_save_CC=$CC
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h.  */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h.  */
2972 #include <stdarg.h>
2973 #include <stdio.h>
2974 #include <sys/types.h>
2975 #include <sys/stat.h>
2976 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2977 struct buf { int x; };
2978 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2979 static char *e (p, i)
2980      char **p;
2981      int i;
2982 {
2983   return p[i];
2984 }
2985 static char *f (char * (*g) (char **, int), char **p, ...)
2986 {
2987   char *s;
2988   va_list v;
2989   va_start (v,p);
2990   s = g (p, va_arg (v,int));
2991   va_end (v);
2992   return s;
2993 }
2994
2995 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2996    function prototypes and stuff, but not '\xHH' hex character constants.
2997    These don't provoke an error unfortunately, instead are silently treated
2998    as 'x'.  The following induces an error, until -std1 is added to get
2999    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3000    array size at least.  It's necessary to write '\x00'==0 to get something
3001    that's true only with -std1.  */
3002 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3003
3004 int test (int i, double x);
3005 struct s1 {int (*f) (int a);};
3006 struct s2 {int (*f) (double a);};
3007 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3008 int argc;
3009 char **argv;
3010 int
3011 main ()
3012 {
3013 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 # Don't try gcc -ansi; that turns off useful extensions and
3019 # breaks some systems' header files.
3020 # AIX                   -qlanglvl=ansi
3021 # Ultrix and OSF/1      -std1
3022 # HP-UX 10.20 and later -Ae
3023 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3024 # SVR4                  -Xc -D__EXTENSIONS__
3025 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3026 do
3027   CC="$ac_save_CC $ac_arg"
3028   rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030   (eval $ac_compile) 2>conftest.er1
3031   ac_status=$?
3032   grep -v '^ *+' conftest.er1 >conftest.err
3033   rm -f conftest.er1
3034   cat conftest.err >&5
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } &&
3037          { ac_try='test -z "$ac_c_werror_flag"
3038                          || test ! -s conftest.err'
3039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040   (eval $ac_try) 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; } &&
3044          { ac_try='test -s conftest.$ac_objext'
3045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046   (eval $ac_try) 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; }; then
3050   ac_cv_prog_cc_stdc=$ac_arg
3051 break
3052 else
3053   echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 fi
3057 rm -f conftest.err conftest.$ac_objext
3058 done
3059 rm -f conftest.$ac_ext conftest.$ac_objext
3060 CC=$ac_save_CC
3061
3062 fi
3063
3064 case "x$ac_cv_prog_cc_stdc" in
3065   x|xno)
3066     echo "$as_me:$LINENO: result: none needed" >&5
3067 echo "${ECHO_T}none needed" >&6 ;;
3068   *)
3069     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3070 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3071     CC="$CC $ac_cv_prog_cc_stdc" ;;
3072 esac
3073
3074 # Some people use a C++ compiler to compile C.  Since we use `exit',
3075 # in C++ we need to declare it.  In case someone uses the same compiler
3076 # for both compiling C and C++ we need to have the C++ compiler decide
3077 # the declaration of exit, since it's the most demanding environment.
3078 cat >conftest.$ac_ext <<_ACEOF
3079 #ifndef __cplusplus
3080   choke me
3081 #endif
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3085   (eval $ac_compile) 2>conftest.er1
3086   ac_status=$?
3087   grep -v '^ *+' conftest.er1 >conftest.err
3088   rm -f conftest.er1
3089   cat conftest.err >&5
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); } &&
3092          { ac_try='test -z "$ac_c_werror_flag"
3093                          || test ! -s conftest.err'
3094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095   (eval $ac_try) 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; } &&
3099          { ac_try='test -s conftest.$ac_objext'
3100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101   (eval $ac_try) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; }; then
3105   for ac_declaration in \
3106    '' \
3107    'extern "C" void std::exit (int) throw (); using std::exit;' \
3108    'extern "C" void std::exit (int); using std::exit;' \
3109    'extern "C" void exit (int) throw ();' \
3110    'extern "C" void exit (int);' \
3111    'void exit (int);'
3112 do
3113   cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h.  */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h.  */
3119 $ac_declaration
3120 #include <stdlib.h>
3121 int
3122 main ()
3123 {
3124 exit (42);
3125   ;
3126   return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3131   (eval $ac_compile) 2>conftest.er1
3132   ac_status=$?
3133   grep -v '^ *+' conftest.er1 >conftest.err
3134   rm -f conftest.er1
3135   cat conftest.err >&5
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); } &&
3138          { ac_try='test -z "$ac_c_werror_flag"
3139                          || test ! -s conftest.err'
3140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141   (eval $ac_try) 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; } &&
3145          { ac_try='test -s conftest.$ac_objext'
3146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147   (eval $ac_try) 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }; }; then
3151   :
3152 else
3153   echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 continue
3157 fi
3158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3159   cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165 $ac_declaration
3166 int
3167 main ()
3168 {
3169 exit (42);
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3176   (eval $ac_compile) 2>conftest.er1
3177   ac_status=$?
3178   grep -v '^ *+' conftest.er1 >conftest.err
3179   rm -f conftest.er1
3180   cat conftest.err >&5
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); } &&
3183          { ac_try='test -z "$ac_c_werror_flag"
3184                          || test ! -s conftest.err'
3185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186   (eval $ac_try) 2>&5
3187   ac_status=$?
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); }; } &&
3190          { ac_try='test -s conftest.$ac_objext'
3191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192   (eval $ac_try) 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); }; }; then
3196   break
3197 else
3198   echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 fi
3202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3203 done
3204 rm -f conftest*
3205 if test -n "$ac_declaration"; then
3206   echo '#ifdef __cplusplus' >>confdefs.h
3207   echo $ac_declaration      >>confdefs.h
3208   echo '#endif'             >>confdefs.h
3209 fi
3210
3211 else
3212   echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215 fi
3216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_ext=c
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222
3223 depcc="$CC"   am_compiler_list=
3224
3225 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3226 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3227 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3228   echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3231   # We make a subdir and do the tests there.  Otherwise we can end up
3232   # making bogus files that we don't know about and never remove.  For
3233   # instance it was reported that on HP-UX the gcc test will end up
3234   # making a dummy file named `D' -- because `-MD' means `put the output
3235   # in D'.
3236   mkdir conftest.dir
3237   # Copy depcomp to subdir because otherwise we won't find it if we're
3238   # using a relative directory.
3239   cp "$am_depcomp" conftest.dir
3240   cd conftest.dir
3241   # We will build objects and dependencies in a subdirectory because
3242   # it helps to detect inapplicable dependency modes.  For instance
3243   # both Tru64's cc and ICC support -MD to output dependencies as a
3244   # side effect of compilation, but ICC will put the dependencies in
3245   # the current directory while Tru64 will put them in the object
3246   # directory.
3247   mkdir sub
3248
3249   am_cv_CC_dependencies_compiler_type=none
3250   if test "$am_compiler_list" = ""; then
3251      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3252   fi
3253   for depmode in $am_compiler_list; do
3254     # Setup a source with many dependencies, because some compilers
3255     # like to wrap large dependency lists on column 80 (with \), and
3256     # we should not choose a depcomp mode which is confused by this.
3257     #
3258     # We need to recreate these files for each test, as the compiler may
3259     # overwrite some of them when testing with obscure command lines.
3260     # This happens at least with the AIX C compiler.
3261     : > sub/conftest.c
3262     for i in 1 2 3 4 5 6; do
3263       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3264       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3265       # Solaris 8's {/usr,}/bin/sh.
3266       touch sub/conftst$i.h
3267     done
3268     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3269
3270     case $depmode in
3271     nosideeffect)
3272       # after this tag, mechanisms are not by side-effect, so they'll
3273       # only be used when explicitly requested
3274       if test "x$enable_dependency_tracking" = xyes; then
3275         continue
3276       else
3277         break
3278       fi
3279       ;;
3280     none) break ;;
3281     esac
3282     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3283     # mode.  It turns out that the SunPro C++ compiler does not properly
3284     # handle `-M -o', and we need to detect this.
3285     if depmode=$depmode \
3286        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3287        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3288        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3289          >/dev/null 2>conftest.err &&
3290        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3291        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3292        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3293       # icc doesn't choke on unknown options, it will just issue warnings
3294       # or remarks (even with -Werror).  So we grep stderr for any message
3295       # that says an option was ignored or not supported.
3296       # When given -MP, icc 7.0 and 7.1 complain thusly:
3297       #   icc: Command line warning: ignoring option '-M'; no argument required
3298       # The diagnosis changed in icc 8.0:
3299       #   icc: Command line remark: option '-MP' not supported
3300       if (grep 'ignoring option' conftest.err ||
3301           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3302         am_cv_CC_dependencies_compiler_type=$depmode
3303         break
3304       fi
3305     fi
3306   done
3307
3308   cd ..
3309   rm -rf conftest.dir
3310 else
3311   am_cv_CC_dependencies_compiler_type=none
3312 fi
3313
3314 fi
3315 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3316 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3317 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3318
3319
3320
3321 if
3322   test "x$enable_dependency_tracking" != xno \
3323   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3324   am__fastdepCC_TRUE=
3325   am__fastdepCC_FALSE='#'
3326 else
3327   am__fastdepCC_TRUE='#'
3328   am__fastdepCC_FALSE=
3329 fi
3330
3331
3332
3333 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3334 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3335 if test "${ac_cv_c_bigendian+set}" = set; then
3336   echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338   # See if sys/param.h defines the BYTE_ORDER macro.
3339 cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h.  */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h.  */
3345 #include <sys/types.h>
3346 #include <sys/param.h>
3347
3348 int
3349 main ()
3350 {
3351 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3352  bogus endian macros
3353 #endif
3354
3355   ;
3356   return 0;
3357 }
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361   (eval $ac_compile) 2>conftest.er1
3362   ac_status=$?
3363   grep -v '^ *+' conftest.er1 >conftest.err
3364   rm -f conftest.er1
3365   cat conftest.err >&5
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); } &&
3368          { ac_try='test -z "$ac_c_werror_flag"
3369                          || test ! -s conftest.err'
3370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371   (eval $ac_try) 2>&5
3372   ac_status=$?
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); }; } &&
3375          { ac_try='test -s conftest.$ac_objext'
3376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377   (eval $ac_try) 2>&5
3378   ac_status=$?
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); }; }; then
3381   # It does; now see whether it defined to BIG_ENDIAN or not.
3382 cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388 #include <sys/types.h>
3389 #include <sys/param.h>
3390
3391 int
3392 main ()
3393 {
3394 #if BYTE_ORDER != BIG_ENDIAN
3395  not big endian
3396 #endif
3397
3398   ;
3399   return 0;
3400 }
3401 _ACEOF
3402 rm -f conftest.$ac_objext
3403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404   (eval $ac_compile) 2>conftest.er1
3405   ac_status=$?
3406   grep -v '^ *+' conftest.er1 >conftest.err
3407   rm -f conftest.er1
3408   cat conftest.err >&5
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } &&
3411          { ac_try='test -z "$ac_c_werror_flag"
3412                          || test ! -s conftest.err'
3413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414   (eval $ac_try) 2>&5
3415   ac_status=$?
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); }; } &&
3418          { ac_try='test -s conftest.$ac_objext'
3419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420   (eval $ac_try) 2>&5
3421   ac_status=$?
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); }; }; then
3424   ac_cv_c_bigendian=yes
3425 else
3426   echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429 ac_cv_c_bigendian=no
3430 fi
3431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 # It does not; compile a test program.
3437 if test "$cross_compiling" = yes; then
3438   # try to guess the endianness by grepping values into an object file
3439   ac_cv_c_bigendian=unknown
3440   cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h.  */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h.  */
3446 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3447 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3448 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3449 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3450 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3451 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3452 int
3453 main ()
3454 {
3455  _ascii (); _ebcdic ();
3456   ;
3457   return 0;
3458 }
3459 _ACEOF
3460 rm -f conftest.$ac_objext
3461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462   (eval $ac_compile) 2>conftest.er1
3463   ac_status=$?
3464   grep -v '^ *+' conftest.er1 >conftest.err
3465   rm -f conftest.er1
3466   cat conftest.err >&5
3467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468   (exit $ac_status); } &&
3469          { ac_try='test -z "$ac_c_werror_flag"
3470                          || test ! -s conftest.err'
3471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472   (eval $ac_try) 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }; } &&
3476          { ac_try='test -s conftest.$ac_objext'
3477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478   (eval $ac_try) 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); }; }; then
3482   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3483   ac_cv_c_bigendian=yes
3484 fi
3485 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3486   if test "$ac_cv_c_bigendian" = unknown; then
3487     ac_cv_c_bigendian=no
3488   else
3489     # finding both strings is unlikely to happen, but who knows?
3490     ac_cv_c_bigendian=unknown
3491   fi
3492 fi
3493 else
3494   echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497 fi
3498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3499 else
3500   cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506 int
3507 main ()
3508 {
3509   /* Are we little or big endian?  From Harbison&Steele.  */
3510   union
3511   {
3512     long l;
3513     char c[sizeof (long)];
3514   } u;
3515   u.l = 1;
3516   exit (u.c[sizeof (long) - 1] == 1);
3517 }
3518 _ACEOF
3519 rm -f conftest$ac_exeext
3520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3521   (eval $ac_link) 2>&5
3522   ac_status=$?
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; }; then
3530   ac_cv_c_bigendian=no
3531 else
3532   echo "$as_me: program exited with status $ac_status" >&5
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3535
3536 ( exit $ac_status )
3537 ac_cv_c_bigendian=yes
3538 fi
3539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3540 fi
3541 fi
3542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3543 fi
3544 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3545 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3546 case $ac_cv_c_bigendian in
3547   yes)
3548     ENDIAN=big
3549  ;;
3550   no)
3551     ENDIAN=little
3552  ;;
3553   *)
3554     { { echo "$as_me:$LINENO: error: unknown endianness
3555 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3556 echo "$as_me: error: unknown endianness
3557 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3558    { (exit 1); exit 1; }; } ;;
3559 esac
3560
3561
3562
3563 # Find a good install program.  We prefer a C program (faster),
3564 # so one script is as good as another.  But avoid the broken or
3565 # incompatible versions:
3566 # SysV /etc/install, /usr/sbin/install
3567 # SunOS /usr/etc/install
3568 # IRIX /sbin/install
3569 # AIX /bin/install
3570 # AmigaOS /C/install, which installs bootblocks on floppy discs
3571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3574 # OS/2's system install, which has a completely different semantic
3575 # ./install, which can be erroneously created by make from ./install.sh.
3576 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3577 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3578 if test -z "$INSTALL"; then
3579 if test "${ac_cv_path_install+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585   IFS=$as_save_IFS
3586   test -z "$as_dir" && as_dir=.
3587   # Account for people who put trailing slashes in PATH elements.
3588 case $as_dir/ in
3589   ./ | .// | /cC/* | \
3590   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3591   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3592   /usr/ucb/* ) ;;
3593   *)
3594     # OSF1 and SCO ODT 3.0 have their own names for install.
3595     # Don't use installbsd from OSF since it installs stuff as root
3596     # by default.
3597     for ac_prog in ginstall scoinst install; do
3598       for ac_exec_ext in '' $ac_executable_extensions; do
3599         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3600           if test $ac_prog = install &&
3601             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3602             # AIX install.  It has an incompatible calling convention.
3603             :
3604           elif test $ac_prog = install &&
3605             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3606             # program-specific install script used by HP pwplus--don't use.
3607             :
3608           else
3609             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3610             break 3
3611           fi
3612         fi
3613       done
3614     done
3615     ;;
3616 esac
3617 done
3618
3619
3620 fi
3621   if test "${ac_cv_path_install+set}" = set; then
3622     INSTALL=$ac_cv_path_install
3623   else
3624     # As a last resort, use the slow shell script.  We don't cache a
3625     # path for INSTALL within a source directory, because that will
3626     # break other packages using the cache if that directory is
3627     # removed, or if the path is relative.
3628     INSTALL=$ac_install_sh
3629   fi
3630 fi
3631 echo "$as_me:$LINENO: result: $INSTALL" >&5
3632 echo "${ECHO_T}$INSTALL" >&6
3633
3634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3635 # It thinks the first close brace ends the variable substitution.
3636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3637
3638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3639
3640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3641
3642
3643 ac_ext=cc
3644 ac_cpp='$CXXCPP $CPPFLAGS'
3645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3648 if test -n "$ac_tool_prefix"; then
3649   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3650   do
3651     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_CXX+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   if test -n "$CXX"; then
3659   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666   for ac_exec_ext in '' $ac_executable_extensions; do
3667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673 done
3674
3675 fi
3676 fi
3677 CXX=$ac_cv_prog_CXX
3678 if test -n "$CXX"; then
3679   echo "$as_me:$LINENO: result: $CXX" >&5
3680 echo "${ECHO_T}$CXX" >&6
3681 else
3682   echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3684 fi
3685
3686     test -n "$CXX" && break
3687   done
3688 fi
3689 if test -z "$CXX"; then
3690   ac_ct_CXX=$CXX
3691   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3692 do
3693   # Extract the first word of "$ac_prog", so it can be a program name with args.
3694 set dummy $ac_prog; ac_word=$2
3695 echo "$as_me:$LINENO: checking for $ac_word" >&5
3696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3697 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   if test -n "$ac_ct_CXX"; then
3701   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706   IFS=$as_save_IFS
3707   test -z "$as_dir" && as_dir=.
3708   for ac_exec_ext in '' $ac_executable_extensions; do
3709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710     ac_cv_prog_ac_ct_CXX="$ac_prog"
3711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3712     break 2
3713   fi
3714 done
3715 done
3716
3717 fi
3718 fi
3719 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3720 if test -n "$ac_ct_CXX"; then
3721   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3722 echo "${ECHO_T}$ac_ct_CXX" >&6
3723 else
3724   echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6
3726 fi
3727
3728   test -n "$ac_ct_CXX" && break
3729 done
3730 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3731
3732   CXX=$ac_ct_CXX
3733 fi
3734
3735
3736 # Provide some information about the compiler.
3737 echo "$as_me:$LINENO:" \
3738      "checking for C++ compiler version" >&5
3739 ac_compiler=`set X $ac_compile; echo $2`
3740 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3741   (eval $ac_compiler --version </dev/null >&5) 2>&5
3742   ac_status=$?
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); }
3745 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3746   (eval $ac_compiler -v </dev/null >&5) 2>&5
3747   ac_status=$?
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); }
3750 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3751   (eval $ac_compiler -V </dev/null >&5) 2>&5
3752   ac_status=$?
3753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754   (exit $ac_status); }
3755
3756 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3757 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3758 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h.  */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h.  */
3767
3768 int
3769 main ()
3770 {
3771 #ifndef __GNUC__
3772        choke me
3773 #endif
3774
3775   ;
3776   return 0;
3777 }
3778 _ACEOF
3779 rm -f conftest.$ac_objext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3781   (eval $ac_compile) 2>conftest.er1
3782   ac_status=$?
3783   grep -v '^ *+' conftest.er1 >conftest.err
3784   rm -f conftest.er1
3785   cat conftest.err >&5
3786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787   (exit $ac_status); } &&
3788          { ac_try='test -z "$ac_cxx_werror_flag"
3789                          || test ! -s conftest.err'
3790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791   (eval $ac_try) 2>&5
3792   ac_status=$?
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); }; } &&
3795          { ac_try='test -s conftest.$ac_objext'
3796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797   (eval $ac_try) 2>&5
3798   ac_status=$?
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); }; }; then
3801   ac_compiler_gnu=yes
3802 else
3803   echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805
3806 ac_compiler_gnu=no
3807 fi
3808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3810
3811 fi
3812 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3813 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3814 GXX=`test $ac_compiler_gnu = yes && echo yes`
3815 ac_test_CXXFLAGS=${CXXFLAGS+set}
3816 ac_save_CXXFLAGS=$CXXFLAGS
3817 CXXFLAGS="-g"
3818 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3819 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3820 if test "${ac_cv_prog_cxx_g+set}" = set; then
3821   echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823   cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h.  */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h.  */
3829
3830 int
3831 main ()
3832 {
3833
3834   ;
3835   return 0;
3836 }
3837 _ACEOF
3838 rm -f conftest.$ac_objext
3839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3840   (eval $ac_compile) 2>conftest.er1
3841   ac_status=$?
3842   grep -v '^ *+' conftest.er1 >conftest.err
3843   rm -f conftest.er1
3844   cat conftest.err >&5
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); } &&
3847          { ac_try='test -z "$ac_cxx_werror_flag"
3848                          || test ! -s conftest.err'
3849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850   (eval $ac_try) 2>&5
3851   ac_status=$?
3852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853   (exit $ac_status); }; } &&
3854          { ac_try='test -s conftest.$ac_objext'
3855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856   (eval $ac_try) 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); }; }; then
3860   ac_cv_prog_cxx_g=yes
3861 else
3862   echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865 ac_cv_prog_cxx_g=no
3866 fi
3867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3868 fi
3869 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3870 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3871 if test "$ac_test_CXXFLAGS" = set; then
3872   CXXFLAGS=$ac_save_CXXFLAGS
3873 elif test $ac_cv_prog_cxx_g = yes; then
3874   if test "$GXX" = yes; then
3875     CXXFLAGS="-g -O2"
3876   else
3877     CXXFLAGS="-g"
3878   fi
3879 else
3880   if test "$GXX" = yes; then
3881     CXXFLAGS="-O2"
3882   else
3883     CXXFLAGS=
3884   fi
3885 fi
3886 for ac_declaration in \
3887    '' \
3888    'extern "C" void std::exit (int) throw (); using std::exit;' \
3889    'extern "C" void std::exit (int); using std::exit;' \
3890    'extern "C" void exit (int) throw ();' \
3891    'extern "C" void exit (int);' \
3892    'void exit (int);'
3893 do
3894   cat >conftest.$ac_ext <<_ACEOF
3895 /* confdefs.h.  */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h.  */
3900 $ac_declaration
3901 #include <stdlib.h>
3902 int
3903 main ()
3904 {
3905 exit (42);
3906   ;
3907   return 0;
3908 }
3909 _ACEOF
3910 rm -f conftest.$ac_objext
3911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3912   (eval $ac_compile) 2>conftest.er1
3913   ac_status=$?
3914   grep -v '^ *+' conftest.er1 >conftest.err
3915   rm -f conftest.er1
3916   cat conftest.err >&5
3917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918   (exit $ac_status); } &&
3919          { ac_try='test -z "$ac_cxx_werror_flag"
3920                          || test ! -s conftest.err'
3921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922   (eval $ac_try) 2>&5
3923   ac_status=$?
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); }; } &&
3926          { ac_try='test -s conftest.$ac_objext'
3927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928   (eval $ac_try) 2>&5
3929   ac_status=$?
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); }; }; then
3932   :
3933 else
3934   echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3936
3937 continue
3938 fi
3939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3940   cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h.  */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h.  */
3946 $ac_declaration
3947 int
3948 main ()
3949 {
3950 exit (42);
3951   ;
3952   return 0;
3953 }
3954 _ACEOF
3955 rm -f conftest.$ac_objext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957   (eval $ac_compile) 2>conftest.er1
3958   ac_status=$?
3959   grep -v '^ *+' conftest.er1 >conftest.err
3960   rm -f conftest.er1
3961   cat conftest.err >&5
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); } &&
3964          { ac_try='test -z "$ac_cxx_werror_flag"
3965                          || test ! -s conftest.err'
3966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967   (eval $ac_try) 2>&5
3968   ac_status=$?
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); }; } &&
3971          { ac_try='test -s conftest.$ac_objext'
3972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973   (eval $ac_try) 2>&5
3974   ac_status=$?
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); }; }; then
3977   break
3978 else
3979   echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982 fi
3983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3984 done
3985 rm -f conftest*
3986 if test -n "$ac_declaration"; then
3987   echo '#ifdef __cplusplus' >>confdefs.h
3988   echo $ac_declaration      >>confdefs.h
3989   echo '#endif'             >>confdefs.h
3990 fi
3991
3992 ac_ext=c
3993 ac_cpp='$CPP $CPPFLAGS'
3994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997
3998 depcc="$CXX"  am_compiler_list=
3999
4000 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4001 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4002 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4003   echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4006   # We make a subdir and do the tests there.  Otherwise we can end up
4007   # making bogus files that we don't know about and never remove.  For
4008   # instance it was reported that on HP-UX the gcc test will end up
4009   # making a dummy file named `D' -- because `-MD' means `put the output
4010   # in D'.
4011   mkdir conftest.dir
4012   # Copy depcomp to subdir because otherwise we won't find it if we're
4013   # using a relative directory.
4014   cp "$am_depcomp" conftest.dir
4015   cd conftest.dir
4016   # We will build objects and dependencies in a subdirectory because
4017   # it helps to detect inapplicable dependency modes.  For instance
4018   # both Tru64's cc and ICC support -MD to output dependencies as a
4019   # side effect of compilation, but ICC will put the dependencies in
4020   # the current directory while Tru64 will put them in the object
4021   # directory.
4022   mkdir sub
4023
4024   am_cv_CXX_dependencies_compiler_type=none
4025   if test "$am_compiler_list" = ""; then
4026      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4027   fi
4028   for depmode in $am_compiler_list; do
4029     # Setup a source with many dependencies, because some compilers
4030     # like to wrap large dependency lists on column 80 (with \), and
4031     # we should not choose a depcomp mode which is confused by this.
4032     #
4033     # We need to recreate these files for each test, as the compiler may
4034     # overwrite some of them when testing with obscure command lines.
4035     # This happens at least with the AIX C compiler.
4036     : > sub/conftest.c
4037     for i in 1 2 3 4 5 6; do
4038       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4039       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4040       # Solaris 8's {/usr,}/bin/sh.
4041       touch sub/conftst$i.h
4042     done
4043     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4044
4045     case $depmode in
4046     nosideeffect)
4047       # after this tag, mechanisms are not by side-effect, so they'll
4048       # only be used when explicitly requested
4049       if test "x$enable_dependency_tracking" = xyes; then
4050         continue
4051       else
4052         break
4053       fi
4054       ;;
4055     none) break ;;
4056     esac
4057     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4058     # mode.  It turns out that the SunPro C++ compiler does not properly
4059     # handle `-M -o', and we need to detect this.
4060     if depmode=$depmode \
4061        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4062        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4063        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4064          >/dev/null 2>conftest.err &&
4065        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4066        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4067        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4068       # icc doesn't choke on unknown options, it will just issue warnings
4069       # or remarks (even with -Werror).  So we grep stderr for any message
4070       # that says an option was ignored or not supported.
4071       # When given -MP, icc 7.0 and 7.1 complain thusly:
4072       #   icc: Command line warning: ignoring option '-M'; no argument required
4073       # The diagnosis changed in icc 8.0:
4074       #   icc: Command line remark: option '-MP' not supported
4075       if (grep 'ignoring option' conftest.err ||
4076           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4077         am_cv_CXX_dependencies_compiler_type=$depmode
4078         break
4079       fi
4080     fi
4081   done
4082
4083   cd ..
4084   rm -rf conftest.dir
4085 else
4086   am_cv_CXX_dependencies_compiler_type=none
4087 fi
4088
4089 fi
4090 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4091 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4092 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4093
4094
4095
4096 if
4097   test "x$enable_dependency_tracking" != xno \
4098   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4099   am__fastdepCXX_TRUE=
4100   am__fastdepCXX_FALSE='#'
4101 else
4102   am__fastdepCXX_TRUE='#'
4103   am__fastdepCXX_FALSE=
4104 fi
4105
4106
4107 ac_ext=c
4108 ac_cpp='$CPP $CPPFLAGS'
4109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112 if test -n "$ac_tool_prefix"; then
4113   for ac_prog in gcc
4114   do
4115     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4117 echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119 if test "${ac_cv_prog_CC+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   if test -n "$CC"; then
4123   ac_cv_prog_CC="$CC" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128   IFS=$as_save_IFS
4129   test -z "$as_dir" && as_dir=.
4130   for ac_exec_ext in '' $ac_executable_extensions; do
4131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134     break 2
4135   fi
4136 done
4137 done
4138
4139 fi
4140 fi
4141 CC=$ac_cv_prog_CC
4142 if test -n "$CC"; then
4143   echo "$as_me:$LINENO: result: $CC" >&5
4144 echo "${ECHO_T}$CC" >&6
4145 else
4146   echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4148 fi
4149
4150     test -n "$CC" && break
4151   done
4152 fi
4153 if test -z "$CC"; then
4154   ac_ct_CC=$CC
4155   for ac_prog in gcc
4156 do
4157   # Extract the first word of "$ac_prog", so it can be a program name with args.
4158 set dummy $ac_prog; ac_word=$2
4159 echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   if test -n "$ac_ct_CC"; then
4165   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170   IFS=$as_save_IFS
4171   test -z "$as_dir" && as_dir=.
4172   for ac_exec_ext in '' $ac_executable_extensions; do
4173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174     ac_cv_prog_ac_ct_CC="$ac_prog"
4175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176     break 2
4177   fi
4178 done
4179 done
4180
4181 fi
4182 fi
4183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4184 if test -n "$ac_ct_CC"; then
4185   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4186 echo "${ECHO_T}$ac_ct_CC" >&6
4187 else
4188   echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4190 fi
4191
4192   test -n "$ac_ct_CC" && break
4193 done
4194
4195   CC=$ac_ct_CC
4196 fi
4197
4198
4199 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4200 See \`config.log' for more details." >&5
4201 echo "$as_me: error: no acceptable C compiler found in \$PATH
4202 See \`config.log' for more details." >&2;}
4203    { (exit 1); exit 1; }; }
4204
4205 # Provide some information about the compiler.
4206 echo "$as_me:$LINENO:" \
4207      "checking for C compiler version" >&5
4208 ac_compiler=`set X $ac_compile; echo $2`
4209 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4210   (eval $ac_compiler --version </dev/null >&5) 2>&5
4211   ac_status=$?
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); }
4214 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4215   (eval $ac_compiler -v </dev/null >&5) 2>&5
4216   ac_status=$?
4217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218   (exit $ac_status); }
4219 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4220   (eval $ac_compiler -V </dev/null >&5) 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); }
4224
4225 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4226 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4227 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h.  */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h.  */
4236
4237 int
4238 main ()
4239 {
4240 #ifndef __GNUC__
4241        choke me
4242 #endif
4243
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250   (eval $ac_compile) 2>conftest.er1
4251   ac_status=$?
4252   grep -v '^ *+' conftest.er1 >conftest.err
4253   rm -f conftest.er1
4254   cat conftest.err >&5
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } &&
4257          { ac_try='test -z "$ac_c_werror_flag"
4258                          || test ! -s conftest.err'
4259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260   (eval $ac_try) 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }; } &&
4264          { ac_try='test -s conftest.$ac_objext'
4265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266   (eval $ac_try) 2>&5
4267   ac_status=$?
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); }; }; then
4270   ac_compiler_gnu=yes
4271 else
4272   echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
4275 ac_compiler_gnu=no
4276 fi
4277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4278 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4279
4280 fi
4281 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4282 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4283 GCC=`test $ac_compiler_gnu = yes && echo yes`
4284 ac_test_CFLAGS=${CFLAGS+set}
4285 ac_save_CFLAGS=$CFLAGS
4286 CFLAGS="-g"
4287 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4288 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4289 if test "${ac_cv_prog_cc_g+set}" = set; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h.  */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h.  */
4298
4299 int
4300 main ()
4301 {
4302
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 rm -f conftest.$ac_objext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309   (eval $ac_compile) 2>conftest.er1
4310   ac_status=$?
4311   grep -v '^ *+' conftest.er1 >conftest.err
4312   rm -f conftest.er1
4313   cat conftest.err >&5
4314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315   (exit $ac_status); } &&
4316          { ac_try='test -z "$ac_c_werror_flag"
4317                          || test ! -s conftest.err'
4318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319   (eval $ac_try) 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); }; } &&
4323          { ac_try='test -s conftest.$ac_objext'
4324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325   (eval $ac_try) 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); }; }; then
4329   ac_cv_prog_cc_g=yes
4330 else
4331   echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4333
4334 ac_cv_prog_cc_g=no
4335 fi
4336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4337 fi
4338 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4339 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4340 if test "$ac_test_CFLAGS" = set; then
4341   CFLAGS=$ac_save_CFLAGS
4342 elif test $ac_cv_prog_cc_g = yes; then
4343   if test "$GCC" = yes; then
4344     CFLAGS="-g -O2"
4345   else
4346     CFLAGS="-g"
4347   fi
4348 else
4349   if test "$GCC" = yes; then
4350     CFLAGS="-O2"
4351   else
4352     CFLAGS=
4353   fi
4354 fi
4355 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4356 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4357 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4358   echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360   ac_cv_prog_cc_stdc=no
4361 ac_save_CC=$CC
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h.  */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h.  */
4368 #include <stdarg.h>
4369 #include <stdio.h>
4370 #include <sys/types.h>
4371 #include <sys/stat.h>
4372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4373 struct buf { int x; };
4374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4375 static char *e (p, i)
4376      char **p;
4377      int i;
4378 {
4379   return p[i];
4380 }
4381 static char *f (char * (*g) (char **, int), char **p, ...)
4382 {
4383   char *s;
4384   va_list v;
4385   va_start (v,p);
4386   s = g (p, va_arg (v,int));
4387   va_end (v);
4388   return s;
4389 }
4390
4391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4392    function prototypes and stuff, but not '\xHH' hex character constants.
4393    These don't provoke an error unfortunately, instead are silently treated
4394    as 'x'.  The following induces an error, until -std1 is added to get
4395    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4396    array size at least.  It's necessary to write '\x00'==0 to get something
4397    that's true only with -std1.  */
4398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4399
4400 int test (int i, double x);
4401 struct s1 {int (*f) (int a);};
4402 struct s2 {int (*f) (double a);};
4403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4404 int argc;
4405 char **argv;
4406 int
4407 main ()
4408 {
4409 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4410   ;
4411   return 0;
4412 }
4413 _ACEOF
4414 # Don't try gcc -ansi; that turns off useful extensions and
4415 # breaks some systems' header files.
4416 # AIX                   -qlanglvl=ansi
4417 # Ultrix and OSF/1      -std1
4418 # HP-UX 10.20 and later -Ae
4419 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4420 # SVR4                  -Xc -D__EXTENSIONS__
4421 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4422 do
4423   CC="$ac_save_CC $ac_arg"
4424   rm -f conftest.$ac_objext
4425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4426   (eval $ac_compile) 2>conftest.er1
4427   ac_status=$?
4428   grep -v '^ *+' conftest.er1 >conftest.err
4429   rm -f conftest.er1
4430   cat conftest.err >&5
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); } &&
4433          { ac_try='test -z "$ac_c_werror_flag"
4434                          || test ! -s conftest.err'
4435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436   (eval $ac_try) 2>&5
4437   ac_status=$?
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); }; } &&
4440          { ac_try='test -s conftest.$ac_objext'
4441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442   (eval $ac_try) 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); }; }; then
4446   ac_cv_prog_cc_stdc=$ac_arg
4447 break
4448 else
4449   echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452 fi
4453 rm -f conftest.err conftest.$ac_objext
4454 done
4455 rm -f conftest.$ac_ext conftest.$ac_objext
4456 CC=$ac_save_CC
4457
4458 fi
4459
4460 case "x$ac_cv_prog_cc_stdc" in
4461   x|xno)
4462     echo "$as_me:$LINENO: result: none needed" >&5
4463 echo "${ECHO_T}none needed" >&6 ;;
4464   *)
4465     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4466 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4467     CC="$CC $ac_cv_prog_cc_stdc" ;;
4468 esac
4469
4470 # Some people use a C++ compiler to compile C.  Since we use `exit',
4471 # in C++ we need to declare it.  In case someone uses the same compiler
4472 # for both compiling C and C++ we need to have the C++ compiler decide
4473 # the declaration of exit, since it's the most demanding environment.
4474 cat >conftest.$ac_ext <<_ACEOF
4475 #ifndef __cplusplus
4476   choke me
4477 #endif
4478 _ACEOF
4479 rm -f conftest.$ac_objext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481   (eval $ac_compile) 2>conftest.er1
4482   ac_status=$?
4483   grep -v '^ *+' conftest.er1 >conftest.err
4484   rm -f conftest.er1
4485   cat conftest.err >&5
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); } &&
4488          { ac_try='test -z "$ac_c_werror_flag"
4489                          || test ! -s conftest.err'
4490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491   (eval $ac_try) 2>&5
4492   ac_status=$?
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); }; } &&
4495          { ac_try='test -s conftest.$ac_objext'
4496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497   (eval $ac_try) 2>&5
4498   ac_status=$?
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); }; }; then
4501   for ac_declaration in \
4502    '' \
4503    'extern "C" void std::exit (int) throw (); using std::exit;' \
4504    'extern "C" void std::exit (int); using std::exit;' \
4505    'extern "C" void exit (int) throw ();' \
4506    'extern "C" void exit (int);' \
4507    'void exit (int);'
4508 do
4509   cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h.  */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h.  */
4515 $ac_declaration
4516 #include <stdlib.h>
4517 int
4518 main ()
4519 {
4520 exit (42);
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 rm -f conftest.$ac_objext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527   (eval $ac_compile) 2>conftest.er1
4528   ac_status=$?
4529   grep -v '^ *+' conftest.er1 >conftest.err
4530   rm -f conftest.er1
4531   cat conftest.err >&5
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); } &&
4534          { ac_try='test -z "$ac_c_werror_flag"
4535                          || test ! -s conftest.err'
4536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537   (eval $ac_try) 2>&5
4538   ac_status=$?
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); }; } &&
4541          { ac_try='test -s conftest.$ac_objext'
4542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543   (eval $ac_try) 2>&5
4544   ac_status=$?
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); }; }; then
4547   :
4548 else
4549   echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 continue
4553 fi
4554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4555   cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h.  */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h.  */
4561 $ac_declaration
4562 int
4563 main ()
4564 {
4565 exit (42);
4566   ;
4567   return 0;
4568 }
4569 _ACEOF
4570 rm -f conftest.$ac_objext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4572   (eval $ac_compile) 2>conftest.er1
4573   ac_status=$?
4574   grep -v '^ *+' conftest.er1 >conftest.err
4575   rm -f conftest.er1
4576   cat conftest.err >&5
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); } &&
4579          { ac_try='test -z "$ac_c_werror_flag"
4580                          || test ! -s conftest.err'
4581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582   (eval $ac_try) 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); }; } &&
4586          { ac_try='test -s conftest.$ac_objext'
4587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588   (eval $ac_try) 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); }; }; then
4592   break
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597 fi
4598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4599 done
4600 rm -f conftest*
4601 if test -n "$ac_declaration"; then
4602   echo '#ifdef __cplusplus' >>confdefs.h
4603   echo $ac_declaration      >>confdefs.h
4604   echo '#endif'             >>confdefs.h
4605 fi
4606
4607 else
4608   echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611 fi
4612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4613 ac_ext=c
4614 ac_cpp='$CPP $CPPFLAGS'
4615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618
4619 depcc="$CC"   am_compiler_list=
4620
4621 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4622 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4623 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4624   echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4627   # We make a subdir and do the tests there.  Otherwise we can end up
4628   # making bogus files that we don't know about and never remove.  For
4629   # instance it was reported that on HP-UX the gcc test will end up
4630   # making a dummy file named `D' -- because `-MD' means `put the output
4631   # in D'.
4632   mkdir conftest.dir
4633   # Copy depcomp to subdir because otherwise we won't find it if we're
4634   # using a relative directory.
4635   cp "$am_depcomp" conftest.dir
4636   cd conftest.dir
4637   # We will build objects and dependencies in a subdirectory because
4638   # it helps to detect inapplicable dependency modes.  For instance
4639   # both Tru64's cc and ICC support -MD to output dependencies as a
4640   # side effect of compilation, but ICC will put the dependencies in
4641   # the current directory while Tru64 will put them in the object
4642   # directory.
4643   mkdir sub
4644
4645   am_cv_CC_dependencies_compiler_type=none
4646   if test "$am_compiler_list" = ""; then
4647      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4648   fi
4649   for depmode in $am_compiler_list; do
4650     # Setup a source with many dependencies, because some compilers
4651     # like to wrap large dependency lists on column 80 (with \), and
4652     # we should not choose a depcomp mode which is confused by this.
4653     #
4654     # We need to recreate these files for each test, as the compiler may
4655     # overwrite some of them when testing with obscure command lines.
4656     # This happens at least with the AIX C compiler.
4657     : > sub/conftest.c
4658     for i in 1 2 3 4 5 6; do
4659       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4660       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4661       # Solaris 8's {/usr,}/bin/sh.
4662       touch sub/conftst$i.h
4663     done
4664     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4665
4666     case $depmode in
4667     nosideeffect)
4668       # after this tag, mechanisms are not by side-effect, so they'll
4669       # only be used when explicitly requested
4670       if test "x$enable_dependency_tracking" = xyes; then
4671         continue
4672       else
4673         break
4674       fi
4675       ;;
4676     none) break ;;
4677     esac
4678     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4679     # mode.  It turns out that the SunPro C++ compiler does not properly
4680     # handle `-M -o', and we need to detect this.
4681     if depmode=$depmode \
4682        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4683        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4684        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4685          >/dev/null 2>conftest.err &&
4686        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4687        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4688        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4689       # icc doesn't choke on unknown options, it will just issue warnings
4690       # or remarks (even with -Werror).  So we grep stderr for any message
4691       # that says an option was ignored or not supported.
4692       # When given -MP, icc 7.0 and 7.1 complain thusly:
4693       #   icc: Command line warning: ignoring option '-M'; no argument required
4694       # The diagnosis changed in icc 8.0:
4695       #   icc: Command line remark: option '-MP' not supported
4696       if (grep 'ignoring option' conftest.err ||
4697           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4698         am_cv_CC_dependencies_compiler_type=$depmode
4699         break
4700       fi
4701     fi
4702   done
4703
4704   cd ..
4705   rm -rf conftest.dir
4706 else
4707   am_cv_CC_dependencies_compiler_type=none
4708 fi
4709
4710 fi
4711 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4712 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4713 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4714
4715
4716
4717 if
4718   test "x$enable_dependency_tracking" != xno \
4719   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4720   am__fastdepCC_TRUE=
4721   am__fastdepCC_FALSE='#'
4722 else
4723   am__fastdepCC_TRUE='#'
4724   am__fastdepCC_FALSE=
4725 fi
4726
4727
4728 ac_ext=c
4729 ac_cpp='$CPP $CPPFLAGS'
4730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4734 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4735 # On Suns, sometimes $CPP names a directory.
4736 if test -n "$CPP" && test -d "$CPP"; then
4737   CPP=
4738 fi
4739 if test -z "$CPP"; then
4740   if test "${ac_cv_prog_CPP+set}" = set; then
4741   echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743       # Double quotes because CPP needs to be expanded
4744     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4745     do
4746       ac_preproc_ok=false
4747 for ac_c_preproc_warn_flag in '' yes
4748 do
4749   # Use a header file that comes with gcc, so configuring glibc
4750   # with a fresh cross-compiler works.
4751   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4752   # <limits.h> exists even on freestanding compilers.
4753   # On the NeXT, cc -E runs the code through the compiler's parser,
4754   # not just through cpp. "Syntax error" is here to catch this case.
4755   cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h.  */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h.  */
4761 #ifdef __STDC__
4762 # include <limits.h>
4763 #else
4764 # include <assert.h>
4765 #endif
4766                      Syntax error
4767 _ACEOF
4768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4769   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4770   ac_status=$?
4771   grep -v '^ *+' conftest.er1 >conftest.err
4772   rm -f conftest.er1
4773   cat conftest.err >&5
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); } >/dev/null; then
4776   if test -s conftest.err; then
4777     ac_cpp_err=$ac_c_preproc_warn_flag
4778     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4779   else
4780     ac_cpp_err=
4781   fi
4782 else
4783   ac_cpp_err=yes
4784 fi
4785 if test -z "$ac_cpp_err"; then
4786   :
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791   # Broken: fails on valid input.
4792 continue
4793 fi
4794 rm -f conftest.err conftest.$ac_ext
4795
4796   # OK, works on sane cases.  Now check whether non-existent headers
4797   # can be detected and how.
4798   cat >conftest.$ac_ext <<_ACEOF
4799 /* confdefs.h.  */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h.  */
4804 #include <ac_nonexistent.h>
4805 _ACEOF
4806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4807   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4808   ac_status=$?
4809   grep -v '^ *+' conftest.er1 >conftest.err
4810   rm -f conftest.er1
4811   cat conftest.err >&5
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); } >/dev/null; then
4814   if test -s conftest.err; then
4815     ac_cpp_err=$ac_c_preproc_warn_flag
4816     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4817   else
4818     ac_cpp_err=
4819   fi
4820 else
4821   ac_cpp_err=yes
4822 fi
4823 if test -z "$ac_cpp_err"; then
4824   # Broken: success on invalid input.
4825 continue
4826 else
4827   echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830   # Passes both tests.
4831 ac_preproc_ok=:
4832 break
4833 fi
4834 rm -f conftest.err conftest.$ac_ext
4835
4836 done
4837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4838 rm -f conftest.err conftest.$ac_ext
4839 if $ac_preproc_ok; then
4840   break
4841 fi
4842
4843     done
4844     ac_cv_prog_CPP=$CPP
4845
4846 fi
4847   CPP=$ac_cv_prog_CPP
4848 else
4849   ac_cv_prog_CPP=$CPP
4850 fi
4851 echo "$as_me:$LINENO: result: $CPP" >&5
4852 echo "${ECHO_T}$CPP" >&6
4853 ac_preproc_ok=false
4854 for ac_c_preproc_warn_flag in '' yes
4855 do
4856   # Use a header file that comes with gcc, so configuring glibc
4857   # with a fresh cross-compiler works.
4858   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4859   # <limits.h> exists even on freestanding compilers.
4860   # On the NeXT, cc -E runs the code through the compiler's parser,
4861   # not just through cpp. "Syntax error" is here to catch this case.
4862   cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h.  */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h.  */
4868 #ifdef __STDC__
4869 # include <limits.h>
4870 #else
4871 # include <assert.h>
4872 #endif
4873                      Syntax error
4874 _ACEOF
4875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4877   ac_status=$?
4878   grep -v '^ *+' conftest.er1 >conftest.err
4879   rm -f conftest.er1
4880   cat conftest.err >&5
4881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882   (exit $ac_status); } >/dev/null; then
4883   if test -s conftest.err; then
4884     ac_cpp_err=$ac_c_preproc_warn_flag
4885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4886   else
4887     ac_cpp_err=
4888   fi
4889 else
4890   ac_cpp_err=yes
4891 fi
4892 if test -z "$ac_cpp_err"; then
4893   :
4894 else
4895   echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4897
4898   # Broken: fails on valid input.
4899 continue
4900 fi
4901 rm -f conftest.err conftest.$ac_ext
4902
4903   # OK, works on sane cases.  Now check whether non-existent headers
4904   # can be detected and how.
4905   cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h.  */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h.  */
4911 #include <ac_nonexistent.h>
4912 _ACEOF
4913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4915   ac_status=$?
4916   grep -v '^ *+' conftest.er1 >conftest.err
4917   rm -f conftest.er1
4918   cat conftest.err >&5
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); } >/dev/null; then
4921   if test -s conftest.err; then
4922     ac_cpp_err=$ac_c_preproc_warn_flag
4923     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4924   else
4925     ac_cpp_err=
4926   fi
4927 else
4928   ac_cpp_err=yes
4929 fi
4930 if test -z "$ac_cpp_err"; then
4931   # Broken: success on invalid input.
4932 continue
4933 else
4934   echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4936
4937   # Passes both tests.
4938 ac_preproc_ok=:
4939 break
4940 fi
4941 rm -f conftest.err conftest.$ac_ext
4942
4943 done
4944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4945 rm -f conftest.err conftest.$ac_ext
4946 if $ac_preproc_ok; then
4947   :
4948 else
4949   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4950 See \`config.log' for more details." >&5
4951 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4952 See \`config.log' for more details." >&2;}
4953    { (exit 1); exit 1; }; }
4954 fi
4955
4956 ac_ext=c
4957 ac_cpp='$CPP $CPPFLAGS'
4958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4961
4962
4963 echo "$as_me:$LINENO: checking " >&5
4964 echo $ECHO_N "checking ... $ECHO_C" >&6
4965 if test "${ac_cv_has_flex+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   for ac_prog in flex lex
4969 do
4970   # Extract the first word of "$ac_prog", so it can be a program name with args.
4971 set dummy $ac_prog; ac_word=$2
4972 echo "$as_me:$LINENO: checking for $ac_word" >&5
4973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4974 if test "${ac_cv_prog_LEX+set}" = set; then
4975   echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977   if test -n "$LEX"; then
4978   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4979 else
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983   IFS=$as_save_IFS
4984   test -z "$as_dir" && as_dir=.
4985   for ac_exec_ext in '' $ac_executable_extensions; do
4986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987     ac_cv_prog_LEX="$ac_prog"
4988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989     break 2
4990   fi
4991 done
4992 done
4993
4994 fi
4995 fi
4996 LEX=$ac_cv_prog_LEX
4997 if test -n "$LEX"; then
4998   echo "$as_me:$LINENO: result: $LEX" >&5
4999 echo "${ECHO_T}$LEX" >&6
5000 else
5001   echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6
5003 fi
5004
5005   test -n "$LEX" && break
5006 done
5007 test -n "$LEX" || LEX=":"
5008
5009 if test -z "$LEXLIB"
5010 then
5011   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5012 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5013 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   ac_check_lib_save_LIBS=$LIBS
5017 LIBS="-lfl  $LIBS"
5018 cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h.  */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h.  */
5024
5025 /* Override any gcc2 internal prototype to avoid an error.  */
5026 #ifdef __cplusplus
5027 extern "C"
5028 #endif
5029 /* We use char because int might match the return type of a gcc2
5030    builtin and then its argument prototype would still apply.  */
5031 char yywrap ();
5032 int
5033 main ()
5034 {
5035 yywrap ();
5036   ;
5037   return 0;
5038 }
5039 _ACEOF
5040 rm -f conftest.$ac_objext conftest$ac_exeext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5042   (eval $ac_link) 2>conftest.er1
5043   ac_status=$?
5044   grep -v '^ *+' conftest.er1 >conftest.err
5045   rm -f conftest.er1
5046   cat conftest.err >&5
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); } &&
5049          { ac_try='test -z "$ac_c_werror_flag"
5050                          || test ! -s conftest.err'
5051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052   (eval $ac_try) 2>&5
5053   ac_status=$?
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); }; } &&
5056          { ac_try='test -s conftest$ac_exeext'
5057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058   (eval $ac_try) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; }; then
5062   ac_cv_lib_fl_yywrap=yes
5063 else
5064   echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067 ac_cv_lib_fl_yywrap=no
5068 fi
5069 rm -f conftest.err conftest.$ac_objext \
5070       conftest$ac_exeext conftest.$ac_ext
5071 LIBS=$ac_check_lib_save_LIBS
5072 fi
5073 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5074 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5075 if test $ac_cv_lib_fl_yywrap = yes; then
5076   LEXLIB="-lfl"
5077 else
5078   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5079 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5080 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   ac_check_lib_save_LIBS=$LIBS
5084 LIBS="-ll  $LIBS"
5085 cat >conftest.$ac_ext <<_ACEOF
5086 /* confdefs.h.  */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h.  */
5091
5092 /* Override any gcc2 internal prototype to avoid an error.  */
5093 #ifdef __cplusplus
5094 extern "C"
5095 #endif
5096 /* We use char because int might match the return type of a gcc2
5097    builtin and then its argument prototype would still apply.  */
5098 char yywrap ();
5099 int
5100 main ()
5101 {
5102 yywrap ();
5103   ;
5104   return 0;
5105 }
5106 _ACEOF
5107 rm -f conftest.$ac_objext conftest$ac_exeext
5108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5109   (eval $ac_link) 2>conftest.er1
5110   ac_status=$?
5111   grep -v '^ *+' conftest.er1 >conftest.err
5112   rm -f conftest.er1
5113   cat conftest.err >&5
5114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); } &&
5116          { ac_try='test -z "$ac_c_werror_flag"
5117                          || test ! -s conftest.err'
5118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119   (eval $ac_try) 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); }; } &&
5123          { ac_try='test -s conftest$ac_exeext'
5124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125   (eval $ac_try) 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); }; }; then
5129   ac_cv_lib_l_yywrap=yes
5130 else
5131   echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5133
5134 ac_cv_lib_l_yywrap=no
5135 fi
5136 rm -f conftest.err conftest.$ac_objext \
5137       conftest$ac_exeext conftest.$ac_ext
5138 LIBS=$ac_check_lib_save_LIBS
5139 fi
5140 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5141 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5142 if test $ac_cv_lib_l_yywrap = yes; then
5143   LEXLIB="-ll"
5144 fi
5145
5146 fi
5147
5148 fi
5149
5150 if test "x$LEX" != "x:"; then
5151   echo "$as_me:$LINENO: checking lex output file root" >&5
5152 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5153 if test "${ac_cv_prog_lex_root+set}" = set; then
5154   echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156   # The minimal lex program is just a single line: %%.  But some broken lexes
5157 # (Solaris, I think it was) want two %% lines, so accommodate them.
5158 cat >conftest.l <<_ACEOF
5159 %%
5160 %%
5161 _ACEOF
5162 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5163   (eval $LEX conftest.l) 2>&5
5164   ac_status=$?
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); }
5167 if test -f lex.yy.c; then
5168   ac_cv_prog_lex_root=lex.yy
5169 elif test -f lexyy.c; then
5170   ac_cv_prog_lex_root=lexyy
5171 else
5172   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5173 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5174    { (exit 1); exit 1; }; }
5175 fi
5176 fi
5177 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5178 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5179 rm -f conftest.l
5180 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5181
5182 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5183 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5184 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5185   echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187   # POSIX says lex can declare yytext either as a pointer or an array; the
5188 # default is implementation-dependent. Figure out which it is, since
5189 # not all implementations provide the %pointer and %array declarations.
5190 ac_cv_prog_lex_yytext_pointer=no
5191 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5192 ac_save_LIBS=$LIBS
5193 LIBS="$LIBS $LEXLIB"
5194 cat >conftest.$ac_ext <<_ACEOF
5195 `cat $LEX_OUTPUT_ROOT.c`
5196 _ACEOF
5197 rm -f conftest.$ac_objext conftest$ac_exeext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199   (eval $ac_link) 2>conftest.er1
5200   ac_status=$?
5201   grep -v '^ *+' conftest.er1 >conftest.err
5202   rm -f conftest.er1
5203   cat conftest.err >&5
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); } &&
5206          { ac_try='test -z "$ac_c_werror_flag"
5207                          || test ! -s conftest.err'
5208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209   (eval $ac_try) 2>&5
5210   ac_status=$?
5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); }; } &&
5213          { ac_try='test -s conftest$ac_exeext'
5214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215   (eval $ac_try) 2>&5
5216   ac_status=$?
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); }; }; then
5219   ac_cv_prog_lex_yytext_pointer=yes
5220 else
5221   echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224 fi
5225 rm -f conftest.err conftest.$ac_objext \
5226       conftest$ac_exeext conftest.$ac_ext
5227 LIBS=$ac_save_LIBS
5228 rm -f "${LEX_OUTPUT_ROOT}.c"
5229
5230 fi
5231 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5232 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5233 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5234
5235 cat >>confdefs.h <<\_ACEOF
5236 #define YYTEXT_POINTER 1
5237 _ACEOF
5238
5239 fi
5240
5241 fi
5242
5243 fi
5244 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
5245 echo "${ECHO_T}$ac_cv_has_flex" >&6
5246 if test "$LEX" != "flex"; then
5247   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
5248 echo "$as_me: error: flex not found but required" >&2;}
5249    { (exit 1); exit 1; }; }
5250 else
5251   FLEX=flex
5252
5253 fi
5254
5255 echo "$as_me:$LINENO: checking " >&5
5256 echo $ECHO_N "checking ... $ECHO_C" >&6
5257 if test "${ac_cv_has_bison+set}" = set; then
5258   echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260   for ac_prog in 'bison -y' byacc
5261 do
5262   # Extract the first word of "$ac_prog", so it can be a program name with args.
5263 set dummy $ac_prog; ac_word=$2
5264 echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5266 if test "${ac_cv_prog_YACC+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   if test -n "$YACC"; then
5270   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5271 else
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5274 do
5275   IFS=$as_save_IFS
5276   test -z "$as_dir" && as_dir=.
5277   for ac_exec_ext in '' $ac_executable_extensions; do
5278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279     ac_cv_prog_YACC="$ac_prog"
5280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281     break 2
5282   fi
5283 done
5284 done
5285
5286 fi
5287 fi
5288 YACC=$ac_cv_prog_YACC
5289 if test -n "$YACC"; then
5290   echo "$as_me:$LINENO: result: $YACC" >&5
5291 echo "${ECHO_T}$YACC" >&6
5292 else
5293   echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6
5295 fi
5296
5297   test -n "$YACC" && break
5298 done
5299 test -n "$YACC" || YACC="yacc"
5300
5301
5302 fi
5303 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
5304 echo "${ECHO_T}$ac_cv_has_bison" >&6
5305 if test "$YACC" != "bison -y"; then
5306   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
5307 echo "$as_me: error: bison not found but required" >&2;}
5308    { (exit 1); exit 1; }; }
5309 else
5310   BISON=bison
5311
5312 fi
5313
5314 # Check whether --enable-shared or --disable-shared was given.
5315 if test "${enable_shared+set}" = set; then
5316   enableval="$enable_shared"
5317   p=${PACKAGE-default}
5318     case $enableval in
5319     yes) enable_shared=yes ;;
5320     no) enable_shared=no ;;
5321     *)
5322       enable_shared=no
5323       # Look at the argument we got.  We use all the common list separators.
5324       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5325       for pkg in $enableval; do
5326         IFS="$lt_save_ifs"
5327         if test "X$pkg" = "X$p"; then
5328           enable_shared=yes
5329         fi
5330       done
5331       IFS="$lt_save_ifs"
5332       ;;
5333     esac
5334 else
5335   enable_shared=yes
5336 fi;
5337
5338 # Check whether --enable-static or --disable-static was given.
5339 if test "${enable_static+set}" = set; then
5340   enableval="$enable_static"
5341   p=${PACKAGE-default}
5342     case $enableval in
5343     yes) enable_static=yes ;;
5344     no) enable_static=no ;;
5345     *)
5346      enable_static=no
5347       # Look at the argument we got.  We use all the common list separators.
5348       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5349       for pkg in $enableval; do
5350         IFS="$lt_save_ifs"
5351         if test "X$pkg" = "X$p"; then
5352           enable_static=yes
5353         fi
5354       done
5355       IFS="$lt_save_ifs"
5356       ;;
5357     esac
5358 else
5359   enable_static=yes
5360 fi;
5361
5362 # Check whether --enable-fast-install or --disable-fast-install was given.
5363 if test "${enable_fast_install+set}" = set; then
5364   enableval="$enable_fast_install"
5365   p=${PACKAGE-default}
5366     case $enableval in
5367     yes) enable_fast_install=yes ;;
5368     no) enable_fast_install=no ;;
5369     *)
5370       enable_fast_install=no
5371       # Look at the argument we got.  We use all the common list separators.
5372       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5373       for pkg in $enableval; do
5374         IFS="$lt_save_ifs"
5375         if test "X$pkg" = "X$p"; then
5376           enable_fast_install=yes
5377         fi
5378       done
5379       IFS="$lt_save_ifs"
5380       ;;
5381     esac
5382 else
5383   enable_fast_install=yes
5384 fi;
5385
5386 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5387 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5388 if test "${lt_cv_path_SED+set}" = set; then
5389   echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391   # Loop through the user's path and test for sed and gsed.
5392 # Then use that list of sed's as ones to test for truncation.
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396   IFS=$as_save_IFS
5397   test -z "$as_dir" && as_dir=.
5398   for lt_ac_prog in sed gsed; do
5399     for ac_exec_ext in '' $ac_executable_extensions; do
5400       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5401         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5402       fi
5403     done
5404   done
5405 done
5406 lt_ac_max=0
5407 lt_ac_count=0
5408 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5409 # along with /bin/sed that truncates output.
5410 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5411   test ! -f $lt_ac_sed && break
5412   cat /dev/null > conftest.in
5413   lt_ac_count=0
5414   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5415   # Check for GNU sed and select it if it is found.
5416   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5417     lt_cv_path_SED=$lt_ac_sed
5418     break
5419   fi
5420   while true; do
5421     cat conftest.in conftest.in >conftest.tmp
5422     mv conftest.tmp conftest.in
5423     cp conftest.in conftest.nl
5424     echo >>conftest.nl
5425     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5426     cmp -s conftest.out conftest.nl || break
5427     # 10000 chars as input seems more than enough
5428     test $lt_ac_count -gt 10 && break
5429     lt_ac_count=`expr $lt_ac_count + 1`
5430     if test $lt_ac_count -gt $lt_ac_max; then
5431       lt_ac_max=$lt_ac_count
5432       lt_cv_path_SED=$lt_ac_sed
5433     fi
5434   done
5435 done
5436
5437 fi
5438
5439 SED=$lt_cv_path_SED
5440 echo "$as_me:$LINENO: result: $SED" >&5
5441 echo "${ECHO_T}$SED" >&6
5442
5443 echo "$as_me:$LINENO: checking for egrep" >&5
5444 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5445 if test "${ac_cv_prog_egrep+set}" = set; then
5446   echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5449     then ac_cv_prog_egrep='grep -E'
5450     else ac_cv_prog_egrep='egrep'
5451     fi
5452 fi
5453 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5454 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5455  EGREP=$ac_cv_prog_egrep
5456
5457
5458
5459 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5460 if test "${with_gnu_ld+set}" = set; then
5461   withval="$with_gnu_ld"
5462   test "$withval" = no || with_gnu_ld=yes
5463 else
5464   with_gnu_ld=no
5465 fi;
5466 ac_prog=ld
5467 if test "$GCC" = yes; then
5468   # Check if gcc -print-prog-name=ld gives a path.
5469   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5470 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5471   case $host in
5472   *-*-mingw*)
5473     # gcc leaves a trailing carriage return which upsets mingw
5474     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5475   *)
5476     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5477   esac
5478   case $ac_prog in
5479     # Accept absolute paths.
5480     [\\/]* | ?:[\\/]*)
5481       re_direlt='/[^/][^/]*/\.\./'
5482       # Canonicalize the pathname of ld
5483       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5484       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5485         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5486       done
5487       test -z "$LD" && LD="$ac_prog"
5488       ;;
5489   "")
5490     # If it fails, then pretend we aren't using GCC.
5491     ac_prog=ld
5492     ;;
5493   *)
5494     # If it is relative, then search for the first ld in PATH.
5495     with_gnu_ld=unknown
5496     ;;
5497   esac
5498 elif test "$with_gnu_ld" = yes; then
5499   echo "$as_me:$LINENO: checking for GNU ld" >&5
5500 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5501 else
5502   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5503 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5504 fi
5505 if test "${lt_cv_path_LD+set}" = set; then
5506   echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508   if test -z "$LD"; then
5509   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5510   for ac_dir in $PATH; do
5511     IFS="$lt_save_ifs"
5512     test -z "$ac_dir" && ac_dir=.
5513     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5514       lt_cv_path_LD="$ac_dir/$ac_prog"
5515       # Check to see if the program is GNU ld.  I'd rather use --version,
5516       # but apparently some GNU ld's only accept -v.
5517       # Break only if it was the GNU/non-GNU ld that we prefer.
5518       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5519       *GNU* | *'with BFD'*)
5520         test "$with_gnu_ld" != no && break
5521         ;;
5522       *)
5523         test "$with_gnu_ld" != yes && break
5524         ;;
5525       esac
5526     fi
5527   done
5528   IFS="$lt_save_ifs"
5529 else
5530   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5531 fi
5532 fi
5533
5534 LD="$lt_cv_path_LD"
5535 if test -n "$LD"; then
5536   echo "$as_me:$LINENO: result: $LD" >&5
5537 echo "${ECHO_T}$LD" >&6
5538 else
5539   echo "$as_me:$LINENO: result: no" >&5
5540 echo "${ECHO_T}no" >&6
5541 fi
5542 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5543 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5544    { (exit 1); exit 1; }; }
5545 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5546 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5547 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5548   echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5551 case `$LD -v 2>&1 </dev/null` in
5552 *GNU* | *'with BFD'*)
5553   lt_cv_prog_gnu_ld=yes
5554   ;;
5555 *)
5556   lt_cv_prog_gnu_ld=no
5557   ;;
5558 esac
5559 fi
5560 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5561 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5562 with_gnu_ld=$lt_cv_prog_gnu_ld
5563
5564
5565 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5566 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5567 if test "${lt_cv_ld_reload_flag+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570   lt_cv_ld_reload_flag='-r'
5571 fi
5572 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5573 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5574 reload_flag=$lt_cv_ld_reload_flag
5575 case $reload_flag in
5576 "" | " "*) ;;
5577 *) reload_flag=" $reload_flag" ;;
5578 esac
5579 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5580 case $host_os in
5581   darwin*)
5582     if test "$GCC" = yes; then
5583       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5584     else
5585       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5586     fi
5587     ;;
5588 esac
5589
5590 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5591 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5592 if test "${lt_cv_path_NM+set}" = set; then
5593   echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595   if test -n "$NM"; then
5596   # Let the user override the test.
5597   lt_cv_path_NM="$NM"
5598 else
5599   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5600   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5601     IFS="$lt_save_ifs"
5602     test -z "$ac_dir" && ac_dir=.
5603     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5604     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5605       # Check to see if the nm accepts a BSD-compat flag.
5606       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5607       #   nm: unknown option "B" ignored
5608       # Tru64's nm complains that /dev/null is an invalid object file
5609       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5610       */dev/null* | *'Invalid file or object type'*)
5611         lt_cv_path_NM="$tmp_nm -B"
5612         break
5613         ;;
5614       *)
5615         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5616         */dev/null*)
5617           lt_cv_path_NM="$tmp_nm -p"
5618           break
5619           ;;
5620         *)
5621           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5622           continue # so that we can try to find one that supports BSD flags
5623           ;;
5624         esac
5625       esac
5626     fi
5627   done
5628   IFS="$lt_save_ifs"
5629   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5630 fi
5631 fi
5632 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5633 echo "${ECHO_T}$lt_cv_path_NM" >&6
5634 NM="$lt_cv_path_NM"
5635
5636 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5637 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5638 LN_S=$as_ln_s
5639 if test "$LN_S" = "ln -s"; then
5640   echo "$as_me:$LINENO: result: yes" >&5
5641 echo "${ECHO_T}yes" >&6
5642 else
5643   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5644 echo "${ECHO_T}no, using $LN_S" >&6
5645 fi
5646
5647 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5648 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5649 if test "${lt_cv_deplibs_check_method+set}" = set; then
5650   echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652   lt_cv_file_magic_cmd='$MAGIC_CMD'
5653 lt_cv_file_magic_test_file=
5654 lt_cv_deplibs_check_method='unknown'
5655 # Need to set the preceding variable on all platforms that support
5656 # interlibrary dependencies.
5657 # 'none' -- dependencies not supported.
5658 # `unknown' -- same as none, but documents that we really don't know.
5659 # 'pass_all' -- all dependencies passed with no checks.
5660 # 'test_compile' -- check by making test program.
5661 # 'file_magic [[regex]]' -- check by looking for files in library path
5662 # which responds to the $file_magic_cmd with a given extended regex.
5663 # If you have `file' or equivalent on your system and you're not sure
5664 # whether `pass_all' will *always* work, you probably want this one.
5665
5666 case $host_os in
5667 aix4* | aix5*)
5668   lt_cv_deplibs_check_method=pass_all
5669   ;;
5670
5671 beos*)
5672   lt_cv_deplibs_check_method=pass_all
5673   ;;
5674
5675 bsdi[45]*)
5676   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5677   lt_cv_file_magic_cmd='/usr/bin/file -L'
5678   lt_cv_file_magic_test_file=/shlib/libc.so
5679   ;;
5680
5681 cygwin*)
5682   # func_win32_libid is a shell function defined in ltmain.sh
5683   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5684   lt_cv_file_magic_cmd='func_win32_libid'
5685   ;;
5686
5687 mingw* | pw32*)
5688   # Base MSYS/MinGW do not provide the 'file' command needed by
5689   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5690   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5691   lt_cv_file_magic_cmd='$OBJDUMP -f'
5692   ;;
5693
5694 darwin* | rhapsody*)
5695   lt_cv_deplibs_check_method=pass_all
5696   ;;
5697
5698 freebsd* | kfreebsd*-gnu)
5699   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5700     case $host_cpu in
5701     i*86 )
5702       # Not sure whether the presence of OpenBSD here was a mistake.
5703       # Let's accept both of them until this is cleared up.
5704       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5705       lt_cv_file_magic_cmd=/usr/bin/file
5706       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5707       ;;
5708     esac
5709   else
5710     lt_cv_deplibs_check_method=pass_all
5711   fi
5712   ;;
5713
5714 gnu*)
5715   lt_cv_deplibs_check_method=pass_all
5716   ;;
5717
5718 hpux10.20* | hpux11*)
5719   lt_cv_file_magic_cmd=/usr/bin/file
5720   case "$host_cpu" in
5721   ia64*)
5722     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5723     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5724     ;;
5725   hppa*64*)
5726     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]'
5727     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5728     ;;
5729   *)
5730     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5731     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5732     ;;
5733   esac
5734   ;;
5735
5736 irix5* | irix6* | nonstopux*)
5737   case $LD in
5738   *-32|*"-32 ") libmagic=32-bit;;
5739   *-n32|*"-n32 ") libmagic=N32;;
5740   *-64|*"-64 ") libmagic=64-bit;;
5741   *) libmagic=never-match;;
5742   esac
5743   lt_cv_deplibs_check_method=pass_all
5744   ;;
5745
5746 # This must be Linux ELF.
5747 linux*)
5748   lt_cv_deplibs_check_method=pass_all
5749   ;;
5750
5751 netbsd*)
5752   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5753     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5754   else
5755     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5756   fi
5757   ;;
5758
5759 newos6*)
5760   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5761   lt_cv_file_magic_cmd=/usr/bin/file
5762   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5763   ;;
5764
5765 nto-qnx*)
5766   lt_cv_deplibs_check_method=unknown
5767   ;;
5768
5769 openbsd*)
5770   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5771     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5772   else
5773     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5774   fi
5775   ;;
5776
5777 osf3* | osf4* | osf5*)
5778   lt_cv_deplibs_check_method=pass_all
5779   ;;
5780
5781 sco3.2v5*)
5782   lt_cv_deplibs_check_method=pass_all
5783   ;;
5784
5785 solaris*)
5786   lt_cv_deplibs_check_method=pass_all
5787   ;;
5788
5789 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5790   case $host_vendor in
5791   motorola)
5792     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]'
5793     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5794     ;;
5795   ncr)
5796     lt_cv_deplibs_check_method=pass_all
5797     ;;
5798   sequent)
5799     lt_cv_file_magic_cmd='/bin/file'
5800     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5801     ;;
5802   sni)
5803     lt_cv_file_magic_cmd='/bin/file'
5804     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5805     lt_cv_file_magic_test_file=/lib/libc.so
5806     ;;
5807   siemens)
5808     lt_cv_deplibs_check_method=pass_all
5809     ;;
5810   esac
5811   ;;
5812
5813 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5814   lt_cv_deplibs_check_method=pass_all
5815   ;;
5816 esac
5817
5818 fi
5819 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5820 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5821 file_magic_cmd=$lt_cv_file_magic_cmd
5822 deplibs_check_method=$lt_cv_deplibs_check_method
5823 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5824
5825
5826
5827
5828 # If no C compiler was specified, use CC.
5829 LTCC=${LTCC-"$CC"}
5830
5831 # Allow CC to be a program name with arguments.
5832 compiler=$CC
5833
5834 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5835 if test "${enable_libtool_lock+set}" = set; then
5836   enableval="$enable_libtool_lock"
5837
5838 fi;
5839 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5840
5841 # Some flags need to be propagated to the compiler or linker for good
5842 # libtool support.
5843 case $host in
5844 ia64-*-hpux*)
5845   # Find out which ABI we are using.
5846   echo 'int i;' > conftest.$ac_ext
5847   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5848   (eval $ac_compile) 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); }; then
5852     case `/usr/bin/file conftest.$ac_objext` in
5853     *ELF-32*)
5854       HPUX_IA64_MODE="32"
5855       ;;
5856     *ELF-64*)
5857       HPUX_IA64_MODE="64"
5858       ;;
5859     esac
5860   fi
5861   rm -rf conftest*
5862   ;;
5863 *-*-irix6*)
5864   # Find out which ABI we are using.
5865   echo '#line 5865 "configure"' > conftest.$ac_ext
5866   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867   (eval $ac_compile) 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); }; then
5871    if test "$lt_cv_prog_gnu_ld" = yes; then
5872     case `/usr/bin/file conftest.$ac_objext` in
5873     *32-bit*)
5874       LD="${LD-ld} -melf32bsmip"
5875       ;;
5876     *N32*)
5877       LD="${LD-ld} -melf32bmipn32"
5878       ;;
5879     *64-bit*)
5880       LD="${LD-ld} -melf64bmip"
5881       ;;
5882     esac
5883    else
5884     case `/usr/bin/file conftest.$ac_objext` in
5885     *32-bit*)
5886       LD="${LD-ld} -32"
5887       ;;
5888     *N32*)
5889       LD="${LD-ld} -n32"
5890       ;;
5891     *64-bit*)
5892       LD="${LD-ld} -64"
5893       ;;
5894     esac
5895    fi
5896   fi
5897   rm -rf conftest*
5898   ;;
5899
5900 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5901   # Find out which ABI we are using.
5902   echo 'int i;' > conftest.$ac_ext
5903   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5904   (eval $ac_compile) 2>&5
5905   ac_status=$?
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); }; then
5908     case "`/usr/bin/file conftest.o`" in
5909     *32-bit*)
5910       case $host in
5911         x86_64-*linux*)
5912           LD="${LD-ld} -m elf_i386"
5913           ;;
5914         ppc64-*linux*|powerpc64-*linux*)
5915           LD="${LD-ld} -m elf32ppclinux"
5916           ;;
5917         s390x-*linux*)
5918           LD="${LD-ld} -m elf_s390"
5919           ;;
5920         sparc64-*linux*)
5921           LD="${LD-ld} -m elf32_sparc"
5922           ;;
5923       esac
5924       ;;
5925     *64-bit*)
5926       case $host in
5927         x86_64-*linux*)
5928           LD="${LD-ld} -m elf_x86_64"
5929           ;;
5930         ppc*-*linux*|powerpc*-*linux*)
5931           LD="${LD-ld} -m elf64ppc"
5932           ;;
5933         s390*-*linux*)
5934           LD="${LD-ld} -m elf64_s390"
5935           ;;
5936         sparc*-*linux*)
5937           LD="${LD-ld} -m elf64_sparc"
5938           ;;
5939       esac
5940       ;;
5941     esac
5942   fi
5943   rm -rf conftest*
5944   ;;
5945
5946 *-*-sco3.2v5*)
5947   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5948   SAVE_CFLAGS="$CFLAGS"
5949   CFLAGS="$CFLAGS -belf"
5950   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5951 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5952 if test "${lt_cv_cc_needs_belf+set}" = set; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955   ac_ext=c
5956 ac_cpp='$CPP $CPPFLAGS'
5957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5960
5961      cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h.  */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h.  */
5967
5968 _ACEOF
5969 rm -f conftest.$ac_objext conftest$ac_exeext
5970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5971   (eval $ac_link) 2>conftest.er1
5972   ac_status=$?
5973   grep -v '^ *+' conftest.er1 >conftest.err
5974   rm -f conftest.er1
5975   cat conftest.err >&5
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); } &&
5978          { ac_try='test -z "$ac_c_werror_flag"
5979                          || test ! -s conftest.err'
5980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981   (eval $ac_try) 2>&5
5982   ac_status=$?
5983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984   (exit $ac_status); }; } &&
5985          { ac_try='test -s conftest$ac_exeext'
5986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987   (eval $ac_try) 2>&5
5988   ac_status=$?
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); }; }; then
5991   lt_cv_cc_needs_belf=yes
5992 else
5993   echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 lt_cv_cc_needs_belf=no
5997 fi
5998 rm -f conftest.err conftest.$ac_objext \
5999       conftest$ac_exeext conftest.$ac_ext
6000      ac_ext=c
6001 ac_cpp='$CPP $CPPFLAGS'
6002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005
6006 fi
6007 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6008 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6009   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6010     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6011     CFLAGS="$SAVE_CFLAGS"
6012   fi
6013   ;;
6014
6015 esac
6016
6017 need_locks="$enable_libtool_lock"
6018
6019
6020
6021 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6022 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6023 if test "${ac_cv_header_stdc+set}" = set; then
6024   echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026   cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h.  */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h.  */
6032 #include <stdlib.h>
6033 #include <stdarg.h>
6034 #include <string.h>
6035 #include <float.h>
6036
6037 int
6038 main ()
6039 {
6040
6041   ;
6042   return 0;
6043 }
6044 _ACEOF
6045 rm -f conftest.$ac_objext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047   (eval $ac_compile) 2>conftest.er1
6048   ac_status=$?
6049   grep -v '^ *+' conftest.er1 >conftest.err
6050   rm -f conftest.er1
6051   cat conftest.err >&5
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); } &&
6054          { ac_try='test -z "$ac_c_werror_flag"
6055                          || test ! -s conftest.err'
6056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057   (eval $ac_try) 2>&5
6058   ac_status=$?
6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); }; } &&
6061          { ac_try='test -s conftest.$ac_objext'
6062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063   (eval $ac_try) 2>&5
6064   ac_status=$?
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); }; }; then
6067   ac_cv_header_stdc=yes
6068 else
6069   echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6071
6072 ac_cv_header_stdc=no
6073 fi
6074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6075
6076 if test $ac_cv_header_stdc = yes; then
6077   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6078   cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h.  */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h.  */
6084 #include <string.h>
6085
6086 _ACEOF
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088   $EGREP "memchr" >/dev/null 2>&1; then
6089   :
6090 else
6091   ac_cv_header_stdc=no
6092 fi
6093 rm -f conftest*
6094
6095 fi
6096
6097 if test $ac_cv_header_stdc = yes; then
6098   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6099   cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h.  */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h.  */
6105 #include <stdlib.h>
6106
6107 _ACEOF
6108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6109   $EGREP "free" >/dev/null 2>&1; then
6110   :
6111 else
6112   ac_cv_header_stdc=no
6113 fi
6114 rm -f conftest*
6115
6116 fi
6117
6118 if test $ac_cv_header_stdc = yes; then
6119   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6120   if test "$cross_compiling" = yes; then
6121   :
6122 else
6123   cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h.  */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h.  */
6129 #include <ctype.h>
6130 #if ((' ' & 0x0FF) == 0x020)
6131 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6132 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6133 #else
6134 # define ISLOWER(c) \
6135                    (('a' <= (c) && (c) <= 'i') \
6136                      || ('j' <= (c) && (c) <= 'r') \
6137                      || ('s' <= (c) && (c) <= 'z'))
6138 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6139 #endif
6140
6141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6142 int
6143 main ()
6144 {
6145   int i;
6146   for (i = 0; i < 256; i++)
6147     if (XOR (islower (i), ISLOWER (i))
6148         || toupper (i) != TOUPPER (i))
6149       exit(2);
6150   exit (0);
6151 }
6152 _ACEOF
6153 rm -f conftest$ac_exeext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6155   (eval $ac_link) 2>&5
6156   ac_status=$?
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160   (eval $ac_try) 2>&5
6161   ac_status=$?
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); }; }; then
6164   :
6165 else
6166   echo "$as_me: program exited with status $ac_status" >&5
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170 ( exit $ac_status )
6171 ac_cv_header_stdc=no
6172 fi
6173 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6174 fi
6175 fi
6176 fi
6177 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6178 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6179 if test $ac_cv_header_stdc = yes; then
6180
6181 cat >>confdefs.h <<\_ACEOF
6182 #define STDC_HEADERS 1
6183 _ACEOF
6184
6185 fi
6186
6187 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6198                   inttypes.h stdint.h unistd.h
6199 do
6200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6201 echo "$as_me:$LINENO: checking for $ac_header" >&5
6202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6204   echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206   cat >conftest.$ac_ext <<_ACEOF
6207 /* confdefs.h.  */
6208 _ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h.  */
6212 $ac_includes_default
6213
6214 #include <$ac_header>
6215 _ACEOF
6216 rm -f conftest.$ac_objext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218   (eval $ac_compile) 2>conftest.er1
6219   ac_status=$?
6220   grep -v '^ *+' conftest.er1 >conftest.err
6221   rm -f conftest.er1
6222   cat conftest.err >&5
6223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); } &&
6225          { ac_try='test -z "$ac_c_werror_flag"
6226                          || test ! -s conftest.err'
6227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228   (eval $ac_try) 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); }; } &&
6232          { ac_try='test -s conftest.$ac_objext'
6233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234   (eval $ac_try) 2>&5
6235   ac_status=$?
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); }; }; then
6238   eval "$as_ac_Header=yes"
6239 else
6240   echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6242
6243 eval "$as_ac_Header=no"
6244 fi
6245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6246 fi
6247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6250   cat >>confdefs.h <<_ACEOF
6251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6252 _ACEOF
6253
6254 fi
6255
6256 done
6257
6258
6259
6260 for ac_header in dlfcn.h
6261 do
6262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6264   echo "$as_me:$LINENO: checking for $ac_header" >&5
6265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6267   echo $ECHO_N "(cached) $ECHO_C" >&6
6268 fi
6269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6271 else
6272   # Is the header compilable?
6273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6275 cat >conftest.$ac_ext <<_ACEOF
6276 /* confdefs.h.  */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h.  */
6281 $ac_includes_default
6282 #include <$ac_header>
6283 _ACEOF
6284 rm -f conftest.$ac_objext
6285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6286   (eval $ac_compile) 2>conftest.er1
6287   ac_status=$?
6288   grep -v '^ *+' conftest.er1 >conftest.err
6289   rm -f conftest.er1
6290   cat conftest.err >&5
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); } &&
6293          { ac_try='test -z "$ac_c_werror_flag"
6294                          || test ! -s conftest.err'
6295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296   (eval $ac_try) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); }; } &&
6300          { ac_try='test -s conftest.$ac_objext'
6301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302   (eval $ac_try) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; }; then
6306   ac_header_compiler=yes
6307 else
6308   echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6310
6311 ac_header_compiler=no
6312 fi
6313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6315 echo "${ECHO_T}$ac_header_compiler" >&6
6316
6317 # Is the header present?
6318 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6320 cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h.  */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h.  */
6326 #include <$ac_header>
6327 _ACEOF
6328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6329   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6330   ac_status=$?
6331   grep -v '^ *+' conftest.er1 >conftest.err
6332   rm -f conftest.er1
6333   cat conftest.err >&5
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); } >/dev/null; then
6336   if test -s conftest.err; then
6337     ac_cpp_err=$ac_c_preproc_warn_flag
6338     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6339   else
6340     ac_cpp_err=
6341   fi
6342 else
6343   ac_cpp_err=yes
6344 fi
6345 if test -z "$ac_cpp_err"; then
6346   ac_header_preproc=yes
6347 else
6348   echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6350
6351   ac_header_preproc=no
6352 fi
6353 rm -f conftest.err conftest.$ac_ext
6354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6355 echo "${ECHO_T}$ac_header_preproc" >&6
6356
6357 # So?  What about this header?
6358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6359   yes:no: )
6360     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6364     ac_header_preproc=yes
6365     ;;
6366   no:yes:* )
6367     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6369     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6370 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6371     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6373     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6374 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6377     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6379     (
6380       cat <<\_ASBOX
6381 ## ----------------------------------- ##
6382 ## Report this to llvmbugs@cs.uiuc.edu ##
6383 ## ----------------------------------- ##
6384 _ASBOX
6385     ) |
6386       sed "s/^/$as_me: WARNING:     /" >&2
6387     ;;
6388 esac
6389 echo "$as_me:$LINENO: checking for $ac_header" >&5
6390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   eval "$as_ac_Header=\$ac_header_preproc"
6395 fi
6396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6398
6399 fi
6400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6401   cat >>confdefs.h <<_ACEOF
6402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6403 _ACEOF
6404
6405 fi
6406
6407 done
6408
6409
6410
6411 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6412     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6413     (test "X$CXX" != "Xg++"))) ; then
6414   ac_ext=cc
6415 ac_cpp='$CXXCPP $CPPFLAGS'
6416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6419 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6420 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6421 if test -z "$CXXCPP"; then
6422   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6423   echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425       # Double quotes because CXXCPP needs to be expanded
6426     for CXXCPP in "$CXX -E" "/lib/cpp"
6427     do
6428       ac_preproc_ok=false
6429 for ac_cxx_preproc_warn_flag in '' yes
6430 do
6431   # Use a header file that comes with gcc, so configuring glibc
6432   # with a fresh cross-compiler works.
6433   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6434   # <limits.h> exists even on freestanding compilers.
6435   # On the NeXT, cc -E runs the code through the compiler's parser,
6436   # not just through cpp. "Syntax error" is here to catch this case.
6437   cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h.  */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h.  */
6443 #ifdef __STDC__
6444 # include <limits.h>
6445 #else
6446 # include <assert.h>
6447 #endif
6448                      Syntax error
6449 _ACEOF
6450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6452   ac_status=$?
6453   grep -v '^ *+' conftest.er1 >conftest.err
6454   rm -f conftest.er1
6455   cat conftest.err >&5
6456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457   (exit $ac_status); } >/dev/null; then
6458   if test -s conftest.err; then
6459     ac_cpp_err=$ac_cxx_preproc_warn_flag
6460     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6461   else
6462     ac_cpp_err=
6463   fi
6464 else
6465   ac_cpp_err=yes
6466 fi
6467 if test -z "$ac_cpp_err"; then
6468   :
6469 else
6470   echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6472
6473   # Broken: fails on valid input.
6474 continue
6475 fi
6476 rm -f conftest.err conftest.$ac_ext
6477
6478   # OK, works on sane cases.  Now check whether non-existent headers
6479   # can be detected and how.
6480   cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h.  */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h.  */
6486 #include <ac_nonexistent.h>
6487 _ACEOF
6488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6489   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6490   ac_status=$?
6491   grep -v '^ *+' conftest.er1 >conftest.err
6492   rm -f conftest.er1
6493   cat conftest.err >&5
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); } >/dev/null; then
6496   if test -s conftest.err; then
6497     ac_cpp_err=$ac_cxx_preproc_warn_flag
6498     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6499   else
6500     ac_cpp_err=
6501   fi
6502 else
6503   ac_cpp_err=yes
6504 fi
6505 if test -z "$ac_cpp_err"; then
6506   # Broken: success on invalid input.
6507 continue
6508 else
6509   echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6511
6512   # Passes both tests.
6513 ac_preproc_ok=:
6514 break
6515 fi
6516 rm -f conftest.err conftest.$ac_ext
6517
6518 done
6519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6520 rm -f conftest.err conftest.$ac_ext
6521 if $ac_preproc_ok; then
6522   break
6523 fi
6524
6525     done
6526     ac_cv_prog_CXXCPP=$CXXCPP
6527
6528 fi
6529   CXXCPP=$ac_cv_prog_CXXCPP
6530 else
6531   ac_cv_prog_CXXCPP=$CXXCPP
6532 fi
6533 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6534 echo "${ECHO_T}$CXXCPP" >&6
6535 ac_preproc_ok=false
6536 for ac_cxx_preproc_warn_flag in '' yes
6537 do
6538   # Use a header file that comes with gcc, so configuring glibc
6539   # with a fresh cross-compiler works.
6540   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6541   # <limits.h> exists even on freestanding compilers.
6542   # On the NeXT, cc -E runs the code through the compiler's parser,
6543   # not just through cpp. "Syntax error" is here to catch this case.
6544   cat >conftest.$ac_ext <<_ACEOF
6545 /* confdefs.h.  */
6546 _ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h.  */
6550 #ifdef __STDC__
6551 # include <limits.h>
6552 #else
6553 # include <assert.h>
6554 #endif
6555                      Syntax error
6556 _ACEOF
6557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6558   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6559   ac_status=$?
6560   grep -v '^ *+' conftest.er1 >conftest.err
6561   rm -f conftest.er1
6562   cat conftest.err >&5
6563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564   (exit $ac_status); } >/dev/null; then
6565   if test -s conftest.err; then
6566     ac_cpp_err=$ac_cxx_preproc_warn_flag
6567     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6568   else
6569     ac_cpp_err=
6570   fi
6571 else
6572   ac_cpp_err=yes
6573 fi
6574 if test -z "$ac_cpp_err"; then
6575   :
6576 else
6577   echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6579
6580   # Broken: fails on valid input.
6581 continue
6582 fi
6583 rm -f conftest.err conftest.$ac_ext
6584
6585   # OK, works on sane cases.  Now check whether non-existent headers
6586   # can be detected and how.
6587   cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h.  */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h.  */
6593 #include <ac_nonexistent.h>
6594 _ACEOF
6595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6596   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6597   ac_status=$?
6598   grep -v '^ *+' conftest.er1 >conftest.err
6599   rm -f conftest.er1
6600   cat conftest.err >&5
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); } >/dev/null; then
6603   if test -s conftest.err; then
6604     ac_cpp_err=$ac_cxx_preproc_warn_flag
6605     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6606   else
6607     ac_cpp_err=
6608   fi
6609 else
6610   ac_cpp_err=yes
6611 fi
6612 if test -z "$ac_cpp_err"; then
6613   # Broken: success on invalid input.
6614 continue
6615 else
6616   echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6618
6619   # Passes both tests.
6620 ac_preproc_ok=:
6621 break
6622 fi
6623 rm -f conftest.err conftest.$ac_ext
6624
6625 done
6626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6627 rm -f conftest.err conftest.$ac_ext
6628 if $ac_preproc_ok; then
6629   :
6630 else
6631   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6632 See \`config.log' for more details." >&5
6633 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6634 See \`config.log' for more details." >&2;}
6635    { (exit 1); exit 1; }; }
6636 fi
6637
6638 ac_ext=cc
6639 ac_cpp='$CXXCPP $CPPFLAGS'
6640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6643
6644 fi
6645
6646
6647 ac_ext=f
6648 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6649 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6650 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6651 if test -n "$ac_tool_prefix"; then
6652   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6653   do
6654     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6656 echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6658 if test "${ac_cv_prog_F77+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   if test -n "$F77"; then
6662   ac_cv_prog_F77="$F77" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667   IFS=$as_save_IFS
6668   test -z "$as_dir" && as_dir=.
6669   for ac_exec_ext in '' $ac_executable_extensions; do
6670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673     break 2
6674   fi
6675 done
6676 done
6677
6678 fi
6679 fi
6680 F77=$ac_cv_prog_F77
6681 if test -n "$F77"; then
6682   echo "$as_me:$LINENO: result: $F77" >&5
6683 echo "${ECHO_T}$F77" >&6
6684 else
6685   echo "$as_me:$LINENO: result: no" >&5
6686 echo "${ECHO_T}no" >&6
6687 fi
6688
6689     test -n "$F77" && break
6690   done
6691 fi
6692 if test -z "$F77"; then
6693   ac_ct_F77=$F77
6694   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6695 do
6696   # Extract the first word of "$ac_prog", so it can be a program name with args.
6697 set dummy $ac_prog; ac_word=$2
6698 echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6700 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   if test -n "$ac_ct_F77"; then
6704   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711   for ac_exec_ext in '' $ac_executable_extensions; do
6712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713     ac_cv_prog_ac_ct_F77="$ac_prog"
6714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718 done
6719
6720 fi
6721 fi
6722 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6723 if test -n "$ac_ct_F77"; then
6724   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6725 echo "${ECHO_T}$ac_ct_F77" >&6
6726 else
6727   echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6
6729 fi
6730
6731   test -n "$ac_ct_F77" && break
6732 done
6733
6734   F77=$ac_ct_F77
6735 fi
6736
6737
6738 # Provide some information about the compiler.
6739 echo "$as_me:6739:" \
6740      "checking for Fortran 77 compiler version" >&5
6741 ac_compiler=`set X $ac_compile; echo $2`
6742 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6743   (eval $ac_compiler --version </dev/null >&5) 2>&5
6744   ac_status=$?
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); }
6747 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6748   (eval $ac_compiler -v </dev/null >&5) 2>&5
6749   ac_status=$?
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); }
6752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6753   (eval $ac_compiler -V </dev/null >&5) 2>&5
6754   ac_status=$?
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); }
6757 rm -f a.out
6758
6759 # If we don't use `.F' as extension, the preprocessor is not run on the
6760 # input file.  (Note that this only needs to work for GNU compilers.)
6761 ac_save_ext=$ac_ext
6762 ac_ext=F
6763 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6764 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6765 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768   cat >conftest.$ac_ext <<_ACEOF
6769       program main
6770 #ifndef __GNUC__
6771        choke me
6772 #endif
6773
6774       end
6775 _ACEOF
6776 rm -f conftest.$ac_objext
6777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6778   (eval $ac_compile) 2>conftest.er1
6779   ac_status=$?
6780   grep -v '^ *+' conftest.er1 >conftest.err
6781   rm -f conftest.er1
6782   cat conftest.err >&5
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); } &&
6785          { ac_try='test -z "$ac_f77_werror_flag"
6786                          || test ! -s conftest.err'
6787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788   (eval $ac_try) 2>&5
6789   ac_status=$?
6790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791   (exit $ac_status); }; } &&
6792          { ac_try='test -s conftest.$ac_objext'
6793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794   (eval $ac_try) 2>&5
6795   ac_status=$?
6796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797   (exit $ac_status); }; }; then
6798   ac_compiler_gnu=yes
6799 else
6800   echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6802
6803 ac_compiler_gnu=no
6804 fi
6805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6806 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6807
6808 fi
6809 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6810 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6811 ac_ext=$ac_save_ext
6812 ac_test_FFLAGS=${FFLAGS+set}
6813 ac_save_FFLAGS=$FFLAGS
6814 FFLAGS=
6815 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6816 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6817 if test "${ac_cv_prog_f77_g+set}" = set; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   FFLAGS=-g
6821 cat >conftest.$ac_ext <<_ACEOF
6822       program main
6823
6824       end
6825 _ACEOF
6826 rm -f conftest.$ac_objext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6828   (eval $ac_compile) 2>conftest.er1
6829   ac_status=$?
6830   grep -v '^ *+' conftest.er1 >conftest.err
6831   rm -f conftest.er1
6832   cat conftest.err >&5
6833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834   (exit $ac_status); } &&
6835          { ac_try='test -z "$ac_f77_werror_flag"
6836                          || test ! -s conftest.err'
6837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838   (eval $ac_try) 2>&5
6839   ac_status=$?
6840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); }; } &&
6842          { ac_try='test -s conftest.$ac_objext'
6843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844   (eval $ac_try) 2>&5
6845   ac_status=$?
6846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847   (exit $ac_status); }; }; then
6848   ac_cv_prog_f77_g=yes
6849 else
6850   echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6852
6853 ac_cv_prog_f77_g=no
6854 fi
6855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6856
6857 fi
6858 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6859 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6860 if test "$ac_test_FFLAGS" = set; then
6861   FFLAGS=$ac_save_FFLAGS
6862 elif test $ac_cv_prog_f77_g = yes; then
6863   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6864     FFLAGS="-g -O2"
6865   else
6866     FFLAGS="-g"
6867   fi
6868 else
6869   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6870     FFLAGS="-O2"
6871   else
6872     FFLAGS=
6873   fi
6874 fi
6875
6876 G77=`test $ac_compiler_gnu = yes && echo yes`
6877 ac_ext=c
6878 ac_cpp='$CPP $CPPFLAGS'
6879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6882
6883
6884
6885 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6886
6887 # find the maximum length of command line arguments
6888 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6889 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6890 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6891   echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893     i=0
6894   teststring="ABCD"
6895
6896   case $build_os in
6897   msdosdjgpp*)
6898     # On DJGPP, this test can blow up pretty badly due to problems in libc
6899     # (any single argument exceeding 2000 bytes causes a buffer overrun
6900     # during glob expansion).  Even if it were fixed, the result of this
6901     # check would be larger than it should be.
6902     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6903     ;;
6904
6905   gnu*)
6906     # Under GNU Hurd, this test is not required because there is
6907     # no limit to the length of command line arguments.
6908     # Libtool will interpret -1 as no limit whatsoever
6909     lt_cv_sys_max_cmd_len=-1;
6910     ;;
6911
6912   cygwin* | mingw*)
6913     # On Win9x/ME, this test blows up -- it succeeds, but takes
6914     # about 5 minutes as the teststring grows exponentially.
6915     # Worse, since 9x/ME are not pre-emptively multitasking,
6916     # you end up with a "frozen" computer, even though with patience
6917     # the test eventually succeeds (with a max line length of 256k).
6918     # Instead, let's just punt: use the minimum linelength reported by
6919     # all of the supported platforms: 8192 (on NT/2K/XP).
6920     lt_cv_sys_max_cmd_len=8192;
6921     ;;
6922
6923   amigaos*)
6924     # On AmigaOS with pdksh, this test takes hours, literally.
6925     # So we just punt and use a minimum line length of 8192.
6926     lt_cv_sys_max_cmd_len=8192;
6927     ;;
6928
6929   netbsd* | freebsd* | openbsd* | darwin* )
6930     # This has been around since 386BSD, at least.  Likely further.
6931     if test -x /sbin/sysctl; then
6932       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6933     elif test -x /usr/sbin/sysctl; then
6934       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6935     else
6936       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6937     fi
6938     # And add a safety zone
6939     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6940     ;;
6941
6942  *)
6943     # If test is not a shell built-in, we'll probably end up computing a
6944     # maximum length that is only half of the actual maximum length, but
6945     # we can't tell.
6946     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6947     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6948                = "XX$teststring") >/dev/null 2>&1 &&
6949             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6950             lt_cv_sys_max_cmd_len=$new_result &&
6951             test $i != 17 # 1/2 MB should be enough
6952     do
6953       i=`expr $i + 1`
6954       teststring=$teststring$teststring
6955     done
6956     teststring=
6957     # Add a significant safety factor because C++ compilers can tack on massive
6958     # amounts of additional arguments before passing them to the linker.
6959     # It appears as though 1/2 is a usable value.
6960     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6961     ;;
6962   esac
6963
6964 fi
6965
6966 if test -n $lt_cv_sys_max_cmd_len ; then
6967   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6968 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6969 else
6970   echo "$as_me:$LINENO: result: none" >&5
6971 echo "${ECHO_T}none" >&6
6972 fi
6973
6974
6975
6976
6977 # Check for command to grab the raw symbol name followed by C symbol from nm.
6978 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6979 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6980 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6981   echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983
6984 # These are sane defaults that work on at least a few old systems.
6985 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6986
6987 # Character class describing NM global symbol codes.
6988 symcode='[BCDEGRST]'
6989
6990 # Regexp to match symbols that can be accessed directly from C.
6991 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6992
6993 # Transform the above into a raw symbol and a C symbol.
6994 symxfrm='\1 \2\3 \3'
6995
6996 # Transform an extracted symbol line into a proper C declaration
6997 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6998
6999 # Transform an extracted symbol line into symbol name and symbol address
7000 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'"
7001
7002 # Define system-specific variables.
7003 case $host_os in
7004 aix*)
7005   symcode='[BCDT]'
7006   ;;
7007 cygwin* | mingw* | pw32*)
7008   symcode='[ABCDGISTW]'
7009   ;;
7010 hpux*) # Its linker distinguishes data from code symbols
7011   if test "$host_cpu" = ia64; then
7012     symcode='[ABCDEGRST]'
7013   fi
7014   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7015   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'"
7016   ;;
7017 linux*)
7018   if test "$host_cpu" = ia64; then
7019     symcode='[ABCDGIRSTW]'
7020     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7021     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'"
7022   fi
7023   ;;
7024 irix* | nonstopux*)
7025   symcode='[BCDEGRST]'
7026   ;;
7027 osf*)
7028   symcode='[BCDEGQRST]'
7029   ;;
7030 solaris* | sysv5*)
7031   symcode='[BDRT]'
7032   ;;
7033 sysv4)
7034   symcode='[DFNSTU]'
7035   ;;
7036 esac
7037
7038 # Handle CRLF in mingw tool chain
7039 opt_cr=
7040 case $build_os in
7041 mingw*)
7042   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7043   ;;
7044 esac
7045
7046 # If we're using GNU nm, then use its standard symbol codes.
7047 case `$NM -V 2>&1` in
7048 *GNU* | *'with BFD'*)
7049   symcode='[ABCDGIRSTW]' ;;
7050 esac
7051
7052 # Try without a prefix undercore, then with it.
7053 for ac_symprfx in "" "_"; do
7054
7055   # Write the raw and C identifiers.
7056   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7057
7058   # Check to see that the pipe works correctly.
7059   pipe_works=no
7060
7061   rm -f conftest*
7062   cat > conftest.$ac_ext <<EOF
7063 #ifdef __cplusplus
7064 extern "C" {
7065 #endif
7066 char nm_test_var;
7067 void nm_test_func(){}
7068 #ifdef __cplusplus
7069 }
7070 #endif
7071 int main(){nm_test_var='a';nm_test_func();return(0);}
7072 EOF
7073
7074   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075   (eval $ac_compile) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); }; then
7079     # Now try to grab the symbols.
7080     nlist=conftest.nm
7081     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7082   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7083   ac_status=$?
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); } && test -s "$nlist"; then
7086       # Try sorting and uniquifying the output.
7087       if sort "$nlist" | uniq > "$nlist"T; then
7088         mv -f "$nlist"T "$nlist"
7089       else
7090         rm -f "$nlist"T
7091       fi
7092
7093       # Make sure that we snagged all the symbols we need.
7094       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7095         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7096           cat <<EOF > conftest.$ac_ext
7097 #ifdef __cplusplus
7098 extern "C" {
7099 #endif
7100
7101 EOF
7102           # Now generate the symbol file.
7103           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7104
7105           cat <<EOF >> conftest.$ac_ext
7106 #if defined (__STDC__) && __STDC__
7107 # define lt_ptr_t void *
7108 #else
7109 # define lt_ptr_t char *
7110 # define const
7111 #endif
7112
7113 /* The mapping between symbol names and symbols. */
7114 const struct {
7115   const char *name;
7116   lt_ptr_t address;
7117 }
7118 lt_preloaded_symbols[] =
7119 {
7120 EOF
7121           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7122           cat <<\EOF >> conftest.$ac_ext
7123   {0, (lt_ptr_t) 0}
7124 };
7125
7126 #ifdef __cplusplus
7127 }
7128 #endif
7129 EOF
7130           # Now try linking the two files.
7131           mv conftest.$ac_objext conftstm.$ac_objext
7132           lt_save_LIBS="$LIBS"
7133           lt_save_CFLAGS="$CFLAGS"
7134           LIBS="conftstm.$ac_objext"
7135           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7136           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137   (eval $ac_link) 2>&5
7138   ac_status=$?
7139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7141             pipe_works=yes
7142           fi
7143           LIBS="$lt_save_LIBS"
7144           CFLAGS="$lt_save_CFLAGS"
7145         else
7146           echo "cannot find nm_test_func in $nlist" >&5
7147         fi
7148       else
7149         echo "cannot find nm_test_var in $nlist" >&5
7150       fi
7151     else
7152       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7153     fi
7154   else
7155     echo "$progname: failed program was:" >&5
7156     cat conftest.$ac_ext >&5
7157   fi
7158   rm -f conftest* conftst*
7159
7160   # Do not use the global_symbol_pipe unless it works.
7161   if test "$pipe_works" = yes; then
7162     break
7163   else
7164     lt_cv_sys_global_symbol_pipe=
7165   fi
7166 done
7167
7168 fi
7169
7170 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7171   lt_cv_sys_global_symbol_to_cdecl=
7172 fi
7173 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7174   echo "$as_me:$LINENO: result: failed" >&5
7175 echo "${ECHO_T}failed" >&6
7176 else
7177   echo "$as_me:$LINENO: result: ok" >&5
7178 echo "${ECHO_T}ok" >&6
7179 fi
7180
7181 echo "$as_me:$LINENO: checking for objdir" >&5
7182 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7183 if test "${lt_cv_objdir+set}" = set; then
7184   echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186   rm -f .libs 2>/dev/null
7187 mkdir .libs 2>/dev/null
7188 if test -d .libs; then
7189   lt_cv_objdir=.libs
7190 else
7191   # MS-DOS does not allow filenames that begin with a dot.
7192   lt_cv_objdir=_libs
7193 fi
7194 rmdir .libs 2>/dev/null
7195 fi
7196 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7197 echo "${ECHO_T}$lt_cv_objdir" >&6
7198 objdir=$lt_cv_objdir
7199
7200
7201
7202
7203
7204 case $host_os in
7205 aix3*)
7206   # AIX sometimes has problems with the GCC collect2 program.  For some
7207   # reason, if we set the COLLECT_NAMES environment variable, the problems
7208   # vanish in a puff of smoke.
7209   if test "X${COLLECT_NAMES+set}" != Xset; then
7210     COLLECT_NAMES=
7211     export COLLECT_NAMES
7212   fi
7213   ;;
7214 esac
7215
7216 # Sed substitution that helps us do robust quoting.  It backslashifies
7217 # metacharacters that are still active within double-quoted strings.
7218 Xsed='sed -e s/^X//'
7219 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7220
7221 # Same as above, but do not quote variable references.
7222 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7223
7224 # Sed substitution to delay expansion of an escaped shell variable in a
7225 # double_quote_subst'ed string.
7226 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7227
7228 # Sed substitution to avoid accidental globbing in evaled expressions
7229 no_glob_subst='s/\*/\\\*/g'
7230
7231 # Constants:
7232 rm="rm -f"
7233
7234 # Global variables:
7235 default_ofile=mklib
7236 can_build_shared=yes
7237
7238 # All known linkers require a `.a' archive for static linking (except M$VC,
7239 # which needs '.lib').
7240 libext=a
7241 ltmain="$ac_aux_dir/ltmain.sh"
7242 ofile="$default_ofile"
7243 with_gnu_ld="$lt_cv_prog_gnu_ld"
7244
7245 if test -n "$ac_tool_prefix"; then
7246   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7247 set dummy ${ac_tool_prefix}ar; ac_word=$2
7248 echo "$as_me:$LINENO: checking for $ac_word" >&5
7249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7250 if test "${ac_cv_prog_AR+set}" = set; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253   if test -n "$AR"; then
7254   ac_cv_prog_AR="$AR" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259   IFS=$as_save_IFS
7260   test -z "$as_dir" && as_dir=.
7261   for ac_exec_ext in '' $ac_executable_extensions; do
7262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263     ac_cv_prog_AR="${ac_tool_prefix}ar"
7264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265     break 2
7266   fi
7267 done
7268 done
7269
7270 fi
7271 fi
7272 AR=$ac_cv_prog_AR
7273 if test -n "$AR"; then
7274   echo "$as_me:$LINENO: result: $AR" >&5
7275 echo "${ECHO_T}$AR" >&6
7276 else
7277   echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6
7279 fi
7280
7281 fi
7282 if test -z "$ac_cv_prog_AR"; then
7283   ac_ct_AR=$AR
7284   # Extract the first word of "ar", so it can be a program name with args.
7285 set dummy ar; ac_word=$2
7286 echo "$as_me:$LINENO: checking for $ac_word" >&5
7287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7288 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7289   echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291   if test -n "$ac_ct_AR"; then
7292   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7293 else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299   for ac_exec_ext in '' $ac_executable_extensions; do
7300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7301     ac_cv_prog_ac_ct_AR="ar"
7302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303     break 2
7304   fi
7305 done
7306 done
7307
7308   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7309 fi
7310 fi
7311 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7312 if test -n "$ac_ct_AR"; then
7313   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7314 echo "${ECHO_T}$ac_ct_AR" >&6
7315 else
7316   echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6
7318 fi
7319
7320   AR=$ac_ct_AR
7321 else
7322   AR="$ac_cv_prog_AR"
7323 fi
7324
7325 if test -n "$ac_tool_prefix"; then
7326   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7327 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7328 echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7330 if test "${ac_cv_prog_RANLIB+set}" = set; then
7331   echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333   if test -n "$RANLIB"; then
7334   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339   IFS=$as_save_IFS
7340   test -z "$as_dir" && as_dir=.
7341   for ac_exec_ext in '' $ac_executable_extensions; do
7342   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345     break 2
7346   fi
7347 done
7348 done
7349
7350 fi
7351 fi
7352 RANLIB=$ac_cv_prog_RANLIB
7353 if test -n "$RANLIB"; then
7354   echo "$as_me:$LINENO: result: $RANLIB" >&5
7355 echo "${ECHO_T}$RANLIB" >&6
7356 else
7357   echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6
7359 fi
7360
7361 fi
7362 if test -z "$ac_cv_prog_RANLIB"; then
7363   ac_ct_RANLIB=$RANLIB
7364   # Extract the first word of "ranlib", so it can be a program name with args.
7365 set dummy ranlib; ac_word=$2
7366 echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7368 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7369   echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371   if test -n "$ac_ct_RANLIB"; then
7372   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379   for ac_exec_ext in '' $ac_executable_extensions; do
7380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381     ac_cv_prog_ac_ct_RANLIB="ranlib"
7382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386 done
7387
7388   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7389 fi
7390 fi
7391 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7392 if test -n "$ac_ct_RANLIB"; then
7393   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7394 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7395 else
7396   echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6
7398 fi
7399
7400   RANLIB=$ac_ct_RANLIB
7401 else
7402   RANLIB="$ac_cv_prog_RANLIB"
7403 fi
7404
7405 if test -n "$ac_tool_prefix"; then
7406   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7407 set dummy ${ac_tool_prefix}strip; ac_word=$2
7408 echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7410 if test "${ac_cv_prog_STRIP+set}" = set; then
7411   echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413   if test -n "$STRIP"; then
7414   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421   for ac_exec_ext in '' $ac_executable_extensions; do
7422   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425     break 2
7426   fi
7427 done
7428 done
7429
7430 fi
7431 fi
7432 STRIP=$ac_cv_prog_STRIP
7433 if test -n "$STRIP"; then
7434   echo "$as_me:$LINENO: result: $STRIP" >&5
7435 echo "${ECHO_T}$STRIP" >&6
7436 else
7437   echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7439 fi
7440
7441 fi
7442 if test -z "$ac_cv_prog_STRIP"; then
7443   ac_ct_STRIP=$STRIP
7444   # Extract the first word of "strip", so it can be a program name with args.
7445 set dummy strip; ac_word=$2
7446 echo "$as_me:$LINENO: checking for $ac_word" >&5
7447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7448 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7449   echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451   if test -n "$ac_ct_STRIP"; then
7452   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457   IFS=$as_save_IFS
7458   test -z "$as_dir" && as_dir=.
7459   for ac_exec_ext in '' $ac_executable_extensions; do
7460   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461     ac_cv_prog_ac_ct_STRIP="strip"
7462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463     break 2
7464   fi
7465 done
7466 done
7467
7468   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7469 fi
7470 fi
7471 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7472 if test -n "$ac_ct_STRIP"; then
7473   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7474 echo "${ECHO_T}$ac_ct_STRIP" >&6
7475 else
7476   echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6
7478 fi
7479
7480   STRIP=$ac_ct_STRIP
7481 else
7482   STRIP="$ac_cv_prog_STRIP"
7483 fi
7484
7485
7486 old_CC="$CC"
7487 old_CFLAGS="$CFLAGS"
7488
7489 # Set sane defaults for various variables
7490 test -z "$AR" && AR=ar
7491 test -z "$AR_FLAGS" && AR_FLAGS=cru
7492 test -z "$AS" && AS=as
7493 test -z "$CC" && CC=cc
7494 test -z "$LTCC" && LTCC=$CC
7495 test -z "$DLLTOOL" && DLLTOOL=dlltool
7496 test -z "$LD" && LD=ld
7497 test -z "$LN_S" && LN_S="ln -s"
7498 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7499 test -z "$NM" && NM=nm
7500 test -z "$SED" && SED=sed
7501 test -z "$OBJDUMP" && OBJDUMP=objdump
7502 test -z "$RANLIB" && RANLIB=:
7503 test -z "$STRIP" && STRIP=:
7504 test -z "$ac_objext" && ac_objext=o
7505
7506 # Determine commands to create old-style static archives.
7507 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7508 old_postinstall_cmds='chmod 644 $oldlib'
7509 old_postuninstall_cmds=
7510
7511 if test -n "$RANLIB"; then
7512   case $host_os in
7513   openbsd*)
7514     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7515     ;;
7516   *)
7517     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7518     ;;
7519   esac
7520   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7521 fi
7522
7523 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7524
7525 # Only perform the check for file, if the check method requires it
7526 case $deplibs_check_method in
7527 file_magic*)
7528   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7529     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7530 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7531 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534   case $MAGIC_CMD in
7535 [\\/*] |  ?:[\\/]*)
7536   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7537   ;;
7538 *)
7539   lt_save_MAGIC_CMD="$MAGIC_CMD"
7540   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7541   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7542   for ac_dir in $ac_dummy; do
7543     IFS="$lt_save_ifs"
7544     test -z "$ac_dir" && ac_dir=.
7545     if test -f $ac_dir/${ac_tool_prefix}file; then
7546       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7547       if test -n "$file_magic_test_file"; then
7548         case $deplibs_check_method in
7549         "file_magic "*)
7550           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7551           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7552           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7553             $EGREP "$file_magic_regex" > /dev/null; then
7554             :
7555           else
7556             cat <<EOF 1>&2
7557
7558 *** Warning: the command libtool uses to detect shared libraries,
7559 *** $file_magic_cmd, produces output that libtool cannot recognize.
7560 *** The result is that libtool may fail to recognize shared libraries
7561 *** as such.  This will affect the creation of libtool libraries that
7562 *** depend on shared libraries, but programs linked with such libtool
7563 *** libraries will work regardless of this problem.  Nevertheless, you
7564 *** may want to report the problem to your system manager and/or to
7565 *** bug-libtool@gnu.org
7566
7567 EOF
7568           fi ;;
7569         esac
7570       fi
7571       break
7572     fi
7573   done
7574   IFS="$lt_save_ifs"
7575   MAGIC_CMD="$lt_save_MAGIC_CMD"
7576   ;;
7577 esac
7578 fi
7579
7580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7581 if test -n "$MAGIC_CMD"; then
7582   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7583 echo "${ECHO_T}$MAGIC_CMD" >&6
7584 else
7585   echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6
7587 fi
7588
7589 if test -z "$lt_cv_path_MAGIC_CMD"; then
7590   if test -n "$ac_tool_prefix"; then
7591     echo "$as_me:$LINENO: checking for file" >&5
7592 echo $ECHO_N "checking for file... $ECHO_C" >&6
7593 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7594   echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596   case $MAGIC_CMD in
7597 [\\/*] |  ?:[\\/]*)
7598   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7599   ;;
7600 *)
7601   lt_save_MAGIC_CMD="$MAGIC_CMD"
7602   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7603   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7604   for ac_dir in $ac_dummy; do
7605     IFS="$lt_save_ifs"
7606     test -z "$ac_dir" && ac_dir=.
7607     if test -f $ac_dir/file; then
7608       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7609       if test -n "$file_magic_test_file"; then
7610         case $deplibs_check_method in
7611         "file_magic "*)
7612           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7613           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7614           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7615             $EGREP "$file_magic_regex" > /dev/null; then
7616             :
7617           else
7618             cat <<EOF 1>&2
7619
7620 *** Warning: the command libtool uses to detect shared libraries,
7621 *** $file_magic_cmd, produces output that libtool cannot recognize.
7622 *** The result is that libtool may fail to recognize shared libraries
7623 *** as such.  This will affect the creation of libtool libraries that
7624 *** depend on shared libraries, but programs linked with such libtool
7625 *** libraries will work regardless of this problem.  Nevertheless, you
7626 *** may want to report the problem to your system manager and/or to
7627 *** bug-libtool@gnu.org
7628
7629 EOF
7630           fi ;;
7631         esac
7632       fi
7633       break
7634     fi
7635   done
7636   IFS="$lt_save_ifs"
7637   MAGIC_CMD="$lt_save_MAGIC_CMD"
7638   ;;
7639 esac
7640 fi
7641
7642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7643 if test -n "$MAGIC_CMD"; then
7644   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7645 echo "${ECHO_T}$MAGIC_CMD" >&6
7646 else
7647   echo "$as_me:$LINENO: result: no" >&5
7648 echo "${ECHO_T}no" >&6
7649 fi
7650
7651   else
7652     MAGIC_CMD=:
7653   fi
7654 fi
7655
7656   fi
7657   ;;
7658 esac
7659
7660 enable_dlopen=no
7661 enable_win32_dll=no
7662
7663 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7664 if test "${enable_libtool_lock+set}" = set; then
7665   enableval="$enable_libtool_lock"
7666
7667 fi;
7668 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7669
7670
7671 # Check whether --with-pic or --without-pic was given.
7672 if test "${with_pic+set}" = set; then
7673   withval="$with_pic"
7674   pic_mode="$withval"
7675 else
7676   pic_mode=default
7677 fi;
7678 test -z "$pic_mode" && pic_mode=default
7679
7680 # Use C for the default configuration in the libtool script
7681 tagname=
7682 lt_save_CC="$CC"
7683 ac_ext=c
7684 ac_cpp='$CPP $CPPFLAGS'
7685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7688
7689
7690 # Source file extension for C test sources.
7691 ac_ext=c
7692
7693 # Object file extension for compiled C test sources.
7694 objext=o
7695 objext=$objext
7696
7697 # Code to be used in simple compile tests
7698 lt_simple_compile_test_code="int some_variable = 0;\n"
7699
7700 # Code to be used in simple link tests
7701 lt_simple_link_test_code='int main(){return(0);}\n'
7702
7703
7704 # If no C compiler was specified, use CC.
7705 LTCC=${LTCC-"$CC"}
7706
7707 # Allow CC to be a program name with arguments.
7708 compiler=$CC
7709
7710
7711 #
7712 # Check for any special shared library compilation flags.
7713 #
7714 lt_prog_cc_shlib=
7715 if test "$GCC" = no; then
7716   case $host_os in
7717   sco3.2v5*)
7718     lt_prog_cc_shlib='-belf'
7719     ;;
7720   esac
7721 fi
7722 if test -n "$lt_prog_cc_shlib"; then
7723   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7724 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7725   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7726   else
7727     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7728 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7729     lt_cv_prog_cc_can_build_shared=no
7730   fi
7731 fi
7732
7733
7734 #
7735 # Check to make sure the static flag actually works.
7736 #
7737 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7738 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7739 if test "${lt_prog_compiler_static_works+set}" = set; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742   lt_prog_compiler_static_works=no
7743    save_LDFLAGS="$LDFLAGS"
7744    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7745    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7746    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7747      # The compiler can only warn and ignore the option if not recognized
7748      # So say no if there are warnings
7749      if test -s conftest.err; then
7750        # Append any errors to the config.log.
7751        cat conftest.err 1>&5
7752      else
7753        lt_prog_compiler_static_works=yes
7754      fi
7755    fi
7756    $rm conftest*
7757    LDFLAGS="$save_LDFLAGS"
7758
7759 fi
7760 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7761 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7762
7763 if test x"$lt_prog_compiler_static_works" = xyes; then
7764     :
7765 else
7766     lt_prog_compiler_static=
7767 fi
7768
7769
7770
7771
7772 lt_prog_compiler_no_builtin_flag=
7773
7774 if test "$GCC" = yes; then
7775   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7776
7777
7778 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7779 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7780 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   lt_cv_prog_compiler_rtti_exceptions=no
7784   ac_outfile=conftest.$ac_objext
7785    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7786    lt_compiler_flag="-fno-rtti -fno-exceptions"
7787    # Insert the option either (1) after the last *FLAGS variable, or
7788    # (2) before a word containing "conftest.", or (3) at the end.
7789    # Note that $ac_compile itself does not contain backslashes and begins
7790    # with a dollar sign (not a hyphen), so the echo should work correctly.
7791    # The option is referenced via a variable to avoid confusing sed.
7792    lt_compile=`echo "$ac_compile" | $SED \
7793    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7795    -e 's:$: $lt_compiler_flag:'`
7796    (eval echo "\"\$as_me:7796: $lt_compile\"" >&5)
7797    (eval "$lt_compile" 2>conftest.err)
7798    ac_status=$?
7799    cat conftest.err >&5
7800    echo "$as_me:7800: \$? = $ac_status" >&5
7801    if (exit $ac_status) && test -s "$ac_outfile"; then
7802      # The compiler can only warn and ignore the option if not recognized
7803      # So say no if there are warnings
7804      if test ! -s conftest.err; then
7805        lt_cv_prog_compiler_rtti_exceptions=yes
7806      fi
7807    fi
7808    $rm conftest*
7809
7810 fi
7811 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7812 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7813
7814 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7815     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7816 else
7817     :
7818 fi
7819
7820 fi
7821
7822 lt_prog_compiler_wl=
7823 lt_prog_compiler_pic=
7824 lt_prog_compiler_static=
7825
7826 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7827 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7828
7829   if test "$GCC" = yes; then
7830     lt_prog_compiler_wl='-Wl,'
7831     lt_prog_compiler_static='-static'
7832
7833     case $host_os in
7834       aix*)
7835       # All AIX code is PIC.
7836       if test "$host_cpu" = ia64; then
7837         # AIX 5 now supports IA64 processor
7838         lt_prog_compiler_static='-Bstatic'
7839       fi
7840       ;;
7841
7842     amigaos*)
7843       # FIXME: we need at least 68020 code to build shared libraries, but
7844       # adding the `-m68020' flag to GCC prevents building anything better,
7845       # like `-m68040'.
7846       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7847       ;;
7848
7849     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7850       # PIC is the default for these OSes.
7851       ;;
7852
7853     mingw* | pw32* | os2*)
7854       # This hack is so that the source file can tell whether it is being
7855       # built for inclusion in a dll (and should export symbols for example).
7856       lt_prog_compiler_pic='-DDLL_EXPORT'
7857       ;;
7858
7859     darwin* | rhapsody*)
7860       # PIC is the default on this platform
7861       # Common symbols not allowed in MH_DYLIB files
7862       lt_prog_compiler_pic='-fno-common'
7863       ;;
7864
7865     msdosdjgpp*)
7866       # Just because we use GCC doesn't mean we suddenly get shared libraries
7867       # on systems that don't support them.
7868       lt_prog_compiler_can_build_shared=no
7869       enable_shared=no
7870       ;;
7871
7872     sysv4*MP*)
7873       if test -d /usr/nec; then
7874         lt_prog_compiler_pic=-Kconform_pic
7875       fi
7876       ;;
7877
7878     hpux*)
7879       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7880       # not for PA HP-UX.
7881       case "$host_cpu" in
7882       hppa*64*|ia64*)
7883         # +Z the default
7884         ;;
7885       *)
7886         lt_prog_compiler_pic='-fPIC'
7887         ;;
7888       esac
7889       ;;
7890
7891     *)
7892       lt_prog_compiler_pic='-fPIC'
7893       ;;
7894     esac
7895   else
7896     # PORTME Check for flag to pass linker flags through the system compiler.
7897     case $host_os in
7898     aix*)
7899       lt_prog_compiler_wl='-Wl,'
7900       if test "$host_cpu" = ia64; then
7901         # AIX 5 now supports IA64 processor
7902         lt_prog_compiler_static='-Bstatic'
7903       else
7904         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7905       fi
7906       ;;
7907       darwin*)
7908         # PIC is the default on this platform
7909         # Common symbols not allowed in MH_DYLIB files
7910        case "$cc_basename" in
7911          xlc*)
7912          lt_prog_compiler_pic='-qnocommon'
7913          lt_prog_compiler_wl='-Wl,'
7914          ;;
7915        esac
7916        ;;
7917
7918     mingw* | pw32* | os2*)
7919       # This hack is so that the source file can tell whether it is being
7920       # built for inclusion in a dll (and should export symbols for example).
7921       lt_prog_compiler_pic='-DDLL_EXPORT'
7922       ;;
7923
7924     hpux9* | hpux10* | hpux11*)
7925       lt_prog_compiler_wl='-Wl,'
7926       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7927       # not for PA HP-UX.
7928       case "$host_cpu" in
7929       hppa*64*|ia64*)
7930         # +Z the default
7931         ;;
7932       *)
7933         lt_prog_compiler_pic='+Z'
7934         ;;
7935       esac
7936       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7937       lt_prog_compiler_static='${wl}-a ${wl}archive'
7938       ;;
7939
7940     irix5* | irix6* | nonstopux*)
7941       lt_prog_compiler_wl='-Wl,'
7942       # PIC (with -KPIC) is the default.
7943       lt_prog_compiler_static='-non_shared'
7944       ;;
7945
7946     newsos6)
7947       lt_prog_compiler_pic='-KPIC'
7948       lt_prog_compiler_static='-Bstatic'
7949       ;;
7950
7951     linux*)
7952       case $CC in
7953       icc* | ecc*)
7954         lt_prog_compiler_wl='-Wl,'
7955         lt_prog_compiler_pic='-KPIC'
7956         lt_prog_compiler_static='-static'
7957         ;;
7958       ccc*)
7959         lt_prog_compiler_wl='-Wl,'
7960         # All Alpha code is PIC.
7961         lt_prog_compiler_static='-non_shared'
7962         ;;
7963       esac
7964       ;;
7965
7966     osf3* | osf4* | osf5*)
7967       lt_prog_compiler_wl='-Wl,'
7968       # All OSF/1 code is PIC.
7969       lt_prog_compiler_static='-non_shared'
7970       ;;
7971
7972     sco3.2v5*)
7973       lt_prog_compiler_pic='-Kpic'
7974       lt_prog_compiler_static='-dn'
7975       ;;
7976
7977     solaris*)
7978       lt_prog_compiler_wl='-Wl,'
7979       lt_prog_compiler_pic='-KPIC'
7980       lt_prog_compiler_static='-Bstatic'
7981       ;;
7982
7983     sunos4*)
7984       lt_prog_compiler_wl='-Qoption ld '
7985       lt_prog_compiler_pic='-PIC'
7986       lt_prog_compiler_static='-Bstatic'
7987       ;;
7988
7989     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7990       lt_prog_compiler_wl='-Wl,'
7991       lt_prog_compiler_pic='-KPIC'
7992       lt_prog_compiler_static='-Bstatic'
7993       ;;
7994
7995     sysv4*MP*)
7996       if test -d /usr/nec ;then
7997         lt_prog_compiler_pic='-Kconform_pic'
7998         lt_prog_compiler_static='-Bstatic'
7999       fi
8000       ;;
8001
8002     uts4*)
8003       lt_prog_compiler_pic='-pic'
8004       lt_prog_compiler_static='-Bstatic'
8005       ;;
8006
8007     *)
8008       lt_prog_compiler_can_build_shared=no
8009       ;;
8010     esac
8011   fi
8012
8013 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8014 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8015
8016 #
8017 # Check to make sure the PIC flag actually works.
8018 #
8019 if test -n "$lt_prog_compiler_pic"; then
8020
8021 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8022 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8023 if test "${lt_prog_compiler_pic_works+set}" = set; then
8024   echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026   lt_prog_compiler_pic_works=no
8027   ac_outfile=conftest.$ac_objext
8028    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8029    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8030    # Insert the option either (1) after the last *FLAGS variable, or
8031    # (2) before a word containing "conftest.", or (3) at the end.
8032    # Note that $ac_compile itself does not contain backslashes and begins
8033    # with a dollar sign (not a hyphen), so the echo should work correctly.
8034    # The option is referenced via a variable to avoid confusing sed.
8035    lt_compile=`echo "$ac_compile" | $SED \
8036    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8037    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8038    -e 's:$: $lt_compiler_flag:'`
8039    (eval echo "\"\$as_me:8039: $lt_compile\"" >&5)
8040    (eval "$lt_compile" 2>conftest.err)
8041    ac_status=$?
8042    cat conftest.err >&5
8043    echo "$as_me:8043: \$? = $ac_status" >&5
8044    if (exit $ac_status) && test -s "$ac_outfile"; then
8045      # The compiler can only warn and ignore the option if not recognized
8046      # So say no if there are warnings
8047      if test ! -s conftest.err; then
8048        lt_prog_compiler_pic_works=yes
8049      fi
8050    fi
8051    $rm conftest*
8052
8053 fi
8054 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8055 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8056
8057 if test x"$lt_prog_compiler_pic_works" = xyes; then
8058     case $lt_prog_compiler_pic in
8059      "" | " "*) ;;
8060      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8061      esac
8062 else
8063     lt_prog_compiler_pic=
8064      lt_prog_compiler_can_build_shared=no
8065 fi
8066
8067 fi
8068 case "$host_os" in
8069   # For platforms which do not support PIC, -DPIC is meaningless:
8070   *djgpp*)
8071     lt_prog_compiler_pic=
8072     ;;
8073   *)
8074     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8075     ;;
8076 esac
8077
8078 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8079 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8080 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8081   echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083   lt_cv_prog_compiler_c_o=no
8084    $rm -r conftest 2>/dev/null
8085    mkdir conftest
8086    cd conftest
8087    mkdir out
8088    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8089
8090    lt_compiler_flag="-o out/conftest2.$ac_objext"
8091    # Insert the option either (1) after the last *FLAGS variable, or
8092    # (2) before a word containing "conftest.", or (3) at the end.
8093    # Note that $ac_compile itself does not contain backslashes and begins
8094    # with a dollar sign (not a hyphen), so the echo should work correctly.
8095    lt_compile=`echo "$ac_compile" | $SED \
8096    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8097    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8098    -e 's:$: $lt_compiler_flag:'`
8099    (eval echo "\"\$as_me:8099: $lt_compile\"" >&5)
8100    (eval "$lt_compile" 2>out/conftest.err)
8101    ac_status=$?
8102    cat out/conftest.err >&5
8103    echo "$as_me:8103: \$? = $ac_status" >&5
8104    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8105    then
8106      # The compiler can only warn and ignore the option if not recognized
8107      # So say no if there are warnings
8108      if test ! -s out/conftest.err; then
8109        lt_cv_prog_compiler_c_o=yes
8110      fi
8111    fi
8112    chmod u+w .
8113    $rm conftest*
8114    # SGI C++ compiler will create directory out/ii_files/ for
8115    # template instantiation
8116    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8117    $rm out/* && rmdir out
8118    cd ..
8119    rmdir conftest
8120    $rm conftest*
8121
8122 fi
8123 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8124 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8125
8126
8127 hard_links="nottested"
8128 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8129   # do not overwrite the value of need_locks provided by the user
8130   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8131 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8132   hard_links=yes
8133   $rm conftest*
8134   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8135   touch conftest.a
8136   ln conftest.a conftest.b 2>&5 || hard_links=no
8137   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8138   echo "$as_me:$LINENO: result: $hard_links" >&5
8139 echo "${ECHO_T}$hard_links" >&6
8140   if test "$hard_links" = no; then
8141     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8142 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8143     need_locks=warn
8144   fi
8145 else
8146   need_locks=no
8147 fi
8148
8149 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8150 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8151
8152   runpath_var=
8153   allow_undefined_flag=
8154   enable_shared_with_static_runtimes=no
8155   archive_cmds=
8156   archive_expsym_cmds=
8157   old_archive_From_new_cmds=
8158   old_archive_from_expsyms_cmds=
8159   export_dynamic_flag_spec=
8160   whole_archive_flag_spec=
8161   thread_safe_flag_spec=
8162   hardcode_libdir_flag_spec=
8163   hardcode_libdir_flag_spec_ld=
8164   hardcode_libdir_separator=
8165   hardcode_direct=no
8166   hardcode_minus_L=no
8167   hardcode_shlibpath_var=unsupported
8168   link_all_deplibs=unknown
8169   hardcode_automatic=no
8170   module_cmds=
8171   module_expsym_cmds=
8172   always_export_symbols=no
8173   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8174   # include_expsyms should be a list of space-separated symbols to be *always*
8175   # included in the symbol list
8176   include_expsyms=
8177   # exclude_expsyms can be an extended regexp of symbols to exclude
8178   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8179   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8180   # as well as any symbol that contains `d'.
8181   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8182   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8183   # platforms (ab)use it in PIC code, but their linkers get confused if
8184   # the symbol is explicitly referenced.  Since portable code cannot
8185   # rely on this symbol name, it's probably fine to never include it in
8186   # preloaded symbol tables.
8187   extract_expsyms_cmds=
8188
8189   case $host_os in
8190   cygwin* | mingw* | pw32*)
8191     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8192     # When not using gcc, we currently assume that we are using
8193     # Microsoft Visual C++.
8194     if test "$GCC" != yes; then
8195       with_gnu_ld=no
8196     fi
8197     ;;
8198   openbsd*)
8199     with_gnu_ld=no
8200     ;;
8201   esac
8202
8203   ld_shlibs=yes
8204   if test "$with_gnu_ld" = yes; then
8205     # If archive_cmds runs LD, not CC, wlarc should be empty
8206     wlarc='${wl}'
8207
8208     # See if GNU ld supports shared libraries.
8209     case $host_os in
8210     aix3* | aix4* | aix5*)
8211       # On AIX/PPC, the GNU linker is very broken
8212       if test "$host_cpu" != ia64; then
8213         ld_shlibs=no
8214         cat <<EOF 1>&2
8215
8216 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8217 *** to be unable to reliably create shared libraries on AIX.
8218 *** Therefore, libtool is disabling shared libraries support.  If you
8219 *** really care for shared libraries, you may want to modify your PATH
8220 *** so that a non-GNU linker is found, and then restart.
8221
8222 EOF
8223       fi
8224       ;;
8225
8226     amigaos*)
8227       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8228       hardcode_libdir_flag_spec='-L$libdir'
8229       hardcode_minus_L=yes
8230
8231       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8232       # that the semantics of dynamic libraries on AmigaOS, at least up
8233       # to version 4, is to share data among multiple programs linked
8234       # with the same dynamic library.  Since this doesn't match the
8235       # behavior of shared libraries on other platforms, we can't use
8236       # them.
8237       ld_shlibs=no
8238       ;;
8239
8240     beos*)
8241       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8242         allow_undefined_flag=unsupported
8243         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8244         # support --undefined.  This deserves some investigation.  FIXME
8245         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8246       else
8247         ld_shlibs=no
8248       fi
8249       ;;
8250
8251     cygwin* | mingw* | pw32*)
8252       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8253       # as there is no search path for DLLs.
8254       hardcode_libdir_flag_spec='-L$libdir'
8255       allow_undefined_flag=unsupported
8256       always_export_symbols=no
8257       enable_shared_with_static_runtimes=yes
8258       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8259
8260       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8261         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8262         # If the export-symbols file already is a .def file (1st line
8263         # is EXPORTS), use it as is; otherwise, prepend...
8264         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8265           cp $export_symbols $output_objdir/$soname.def;
8266         else
8267           echo EXPORTS > $output_objdir/$soname.def;
8268           cat $export_symbols >> $output_objdir/$soname.def;
8269         fi~
8270         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8271       else
8272         ld_shlibs=no
8273       fi
8274       ;;
8275
8276     netbsd*)
8277       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8278         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8279         wlarc=
8280       else
8281         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8282         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8283       fi
8284       ;;
8285
8286     solaris* | sysv5*)
8287       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8288         ld_shlibs=no
8289         cat <<EOF 1>&2
8290
8291 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8292 *** create shared libraries on Solaris systems.  Therefore, libtool
8293 *** is disabling shared libraries support.  We urge you to upgrade GNU
8294 *** binutils to release 2.9.1 or newer.  Another option is to modify
8295 *** your PATH or compiler configuration so that the native linker is
8296 *** used, and then restart.
8297
8298 EOF
8299       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8300         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8302       else
8303         ld_shlibs=no
8304       fi
8305       ;;
8306
8307     sunos4*)
8308       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8309       wlarc=
8310       hardcode_direct=yes
8311       hardcode_shlibpath_var=no
8312       ;;
8313
8314   linux*)
8315     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8316         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317         archive_cmds="$tmp_archive_cmds"
8318       supports_anon_versioning=no
8319       case `$LD -v 2>/dev/null` in
8320         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8321         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8322         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8323         *\ 2.11.*) ;; # other 2.11 versions
8324         *) supports_anon_versioning=yes ;;
8325       esac
8326       if test $supports_anon_versioning = yes; then
8327         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8328 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8329 $echo "local: *; };" >> $output_objdir/$libname.ver~
8330         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8331       else
8332         archive_expsym_cmds="$tmp_archive_cmds"
8333       fi
8334     else
8335       ld_shlibs=no
8336     fi
8337     ;;
8338
8339     *)
8340       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8341         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8342         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8343       else
8344         ld_shlibs=no
8345       fi
8346       ;;
8347     esac
8348
8349     if test "$ld_shlibs" = yes; then
8350       runpath_var=LD_RUN_PATH
8351       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8352       export_dynamic_flag_spec='${wl}--export-dynamic'
8353       # ancient GNU ld didn't support --whole-archive et. al.
8354       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8355         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8356       else
8357         whole_archive_flag_spec=
8358       fi
8359     fi
8360   else
8361     # PORTME fill in a description of your system's linker (not GNU ld)
8362     case $host_os in
8363     aix3*)
8364       allow_undefined_flag=unsupported
8365       always_export_symbols=yes
8366       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8367       # Note: this linker hardcodes the directories in LIBPATH if there
8368       # are no directories specified by -L.
8369       hardcode_minus_L=yes
8370       if test "$GCC" = yes && test -z "$link_static_flag"; then
8371         # Neither direct hardcoding nor static linking is supported with a
8372         # broken collect2.
8373         hardcode_direct=unsupported
8374       fi
8375       ;;
8376
8377     aix4* | aix5*)
8378       if test "$host_cpu" = ia64; then
8379         # On IA64, the linker does run time linking by default, so we don't
8380         # have to do anything special.
8381         aix_use_runtimelinking=no
8382         exp_sym_flag='-Bexport'
8383         no_entry_flag=""
8384       else
8385         # If we're using GNU nm, then we don't want the "-C" option.
8386         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8387         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8388           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'
8389         else
8390           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'
8391         fi
8392         aix_use_runtimelinking=no
8393
8394         # Test if we are trying to use run time linking or normal
8395         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8396         # need to do runtime linking.
8397         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8398           for ld_flag in $LDFLAGS; do
8399           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8400             aix_use_runtimelinking=yes
8401             break
8402           fi
8403           done
8404         esac
8405
8406         exp_sym_flag='-bexport'
8407         no_entry_flag='-bnoentry'
8408       fi
8409
8410       # When large executables or shared objects are built, AIX ld can
8411       # have problems creating the table of contents.  If linking a library
8412       # or program results in "error TOC overflow" add -mminimal-toc to
8413       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8414       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8415
8416       archive_cmds=''
8417       hardcode_direct=yes
8418       hardcode_libdir_separator=':'
8419       link_all_deplibs=yes
8420
8421       if test "$GCC" = yes; then
8422         case $host_os in aix4.012|aix4.012.*)
8423         # We only want to do this on AIX 4.2 and lower, the check
8424         # below for broken collect2 doesn't work under 4.3+
8425           collect2name=`${CC} -print-prog-name=collect2`
8426           if test -f "$collect2name" && \
8427            strings "$collect2name" | grep resolve_lib_name >/dev/null
8428           then
8429           # We have reworked collect2
8430           hardcode_direct=yes
8431           else
8432           # We have old collect2
8433           hardcode_direct=unsupported
8434           # It fails to find uninstalled libraries when the uninstalled
8435           # path is not listed in the libpath.  Setting hardcode_minus_L
8436           # to unsupported forces relinking
8437           hardcode_minus_L=yes
8438           hardcode_libdir_flag_spec='-L$libdir'
8439           hardcode_libdir_separator=
8440           fi
8441         esac
8442         shared_flag='-shared'
8443       else
8444         # not using gcc
8445         if test "$host_cpu" = ia64; then
8446         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8447         # chokes on -Wl,-G. The following line is correct:
8448           shared_flag='-G'
8449         else
8450         if test "$aix_use_runtimelinking" = yes; then
8451             shared_flag='${wl}-G'
8452           else
8453             shared_flag='${wl}-bM:SRE'
8454         fi
8455         fi
8456       fi
8457
8458       # It seems that -bexpall does not export symbols beginning with
8459       # underscore (_), so it is better to generate a list of symbols to export.
8460       always_export_symbols=yes
8461       if test "$aix_use_runtimelinking" = yes; then
8462         # Warning - without using the other runtime loading flags (-brtl),
8463         # -berok will link without error, but may produce a broken library.
8464         allow_undefined_flag='-berok'
8465        # Determine the default libpath from the value encoded in an empty executable.
8466        cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h.  */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h.  */
8472
8473 int
8474 main ()
8475 {
8476
8477   ;
8478   return 0;
8479 }
8480 _ACEOF
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483   (eval $ac_link) 2>conftest.er1
8484   ac_status=$?
8485   grep -v '^ *+' conftest.er1 >conftest.err
8486   rm -f conftest.er1
8487   cat conftest.err >&5
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); } &&
8490          { ac_try='test -z "$ac_c_werror_flag"
8491                          || test ! -s conftest.err'
8492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493   (eval $ac_try) 2>&5
8494   ac_status=$?
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); }; } &&
8497          { ac_try='test -s conftest$ac_exeext'
8498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499   (eval $ac_try) 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); }; }; then
8503
8504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8505 }'`
8506 # Check for a 64-bit object if we didn't find anything.
8507 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; }
8508 }'`; fi
8509 else
8510   echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8512
8513 fi
8514 rm -f conftest.err conftest.$ac_objext \
8515       conftest$ac_exeext conftest.$ac_ext
8516 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8517
8518        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8519         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"
8520        else
8521         if test "$host_cpu" = ia64; then
8522           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8523           allow_undefined_flag="-z nodefs"
8524           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"
8525         else
8526          # Determine the default libpath from the value encoded in an empty executable.
8527          cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h.  */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h.  */
8533
8534 int
8535 main ()
8536 {
8537
8538   ;
8539   return 0;
8540 }
8541 _ACEOF
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8544   (eval $ac_link) 2>conftest.er1
8545   ac_status=$?
8546   grep -v '^ *+' conftest.er1 >conftest.err
8547   rm -f conftest.er1
8548   cat conftest.err >&5
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); } &&
8551          { ac_try='test -z "$ac_c_werror_flag"
8552                          || test ! -s conftest.err'
8553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554   (eval $ac_try) 2>&5
8555   ac_status=$?
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); }; } &&
8558          { ac_try='test -s conftest$ac_exeext'
8559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560   (eval $ac_try) 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; }; then
8564
8565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8566 }'`
8567 # Check for a 64-bit object if we didn't find anything.
8568 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; }
8569 }'`; fi
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8573
8574 fi
8575 rm -f conftest.err conftest.$ac_objext \
8576       conftest$ac_exeext conftest.$ac_ext
8577 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8578
8579          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8580           # Warning - without using the other run time loading flags,
8581           # -berok will link without error, but may produce a broken library.
8582           no_undefined_flag=' ${wl}-bernotok'
8583           allow_undefined_flag=' ${wl}-berok'
8584           # -bexpall does not export symbols beginning with underscore (_)
8585           always_export_symbols=yes
8586           # Exported symbols can be pulled into shared objects from archives
8587           whole_archive_flag_spec=' '
8588           archive_cmds_need_lc=yes
8589           # This is similar to how AIX traditionally builds it's shared libraries.
8590           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8591         fi
8592       fi
8593       ;;
8594
8595     amigaos*)
8596       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8597       hardcode_libdir_flag_spec='-L$libdir'
8598       hardcode_minus_L=yes
8599       # see comment about different semantics on the GNU ld section
8600       ld_shlibs=no
8601       ;;
8602
8603     bsdi[45]*)
8604       export_dynamic_flag_spec=-rdynamic
8605       ;;
8606
8607     cygwin* | mingw* | pw32*)
8608       # When not using gcc, we currently assume that we are using
8609       # Microsoft Visual C++.
8610       # hardcode_libdir_flag_spec is actually meaningless, as there is
8611       # no search path for DLLs.
8612       hardcode_libdir_flag_spec=' '
8613       allow_undefined_flag=unsupported
8614       # Tell ltmain to make .lib files, not .a files.
8615       libext=lib
8616       # Tell ltmain to make .dll files, not .so files.
8617       shrext_cmds=".dll"
8618       # FIXME: Setting linknames here is a bad hack.
8619       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8620       # The linker will automatically build a .lib file if we build a DLL.
8621       old_archive_From_new_cmds='true'
8622       # FIXME: Should let the user specify the lib program.
8623       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8624       fix_srcfile_path='`cygpath -w "$srcfile"`'
8625       enable_shared_with_static_runtimes=yes
8626       ;;
8627
8628     darwin* | rhapsody*)
8629       case "$host_os" in
8630         rhapsody* | darwin1.[012])
8631          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8632          ;;
8633        *) # Darwin 1.3 on
8634          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8635            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8636          else
8637            case ${MACOSX_DEPLOYMENT_TARGET} in
8638              10.[012])
8639                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8640                ;;
8641              10.*)
8642                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8643                ;;
8644            esac
8645          fi
8646          ;;
8647       esac
8648       archive_cmds_need_lc=no
8649       hardcode_direct=no
8650       hardcode_automatic=yes
8651       hardcode_shlibpath_var=unsupported
8652       whole_archive_flag_spec=''
8653       link_all_deplibs=yes
8654     if test "$GCC" = yes ; then
8655         output_verbose_link_cmd='echo'
8656         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8657       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8658       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8659       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8660       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8661     else
8662       case "$cc_basename" in
8663         xlc*)
8664          output_verbose_link_cmd='echo'
8665          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8666          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8667           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8668          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8669           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8670           ;;
8671        *)
8672          ld_shlibs=no
8673           ;;
8674       esac
8675     fi
8676       ;;
8677
8678     dgux*)
8679       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8680       hardcode_libdir_flag_spec='-L$libdir'
8681       hardcode_shlibpath_var=no
8682       ;;
8683
8684     freebsd1*)
8685       ld_shlibs=no
8686       ;;
8687
8688     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8689     # support.  Future versions do this automatically, but an explicit c++rt0.o
8690     # does not break anything, and helps significantly (at the cost of a little
8691     # extra space).
8692     freebsd2.2*)
8693       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8694       hardcode_libdir_flag_spec='-R$libdir'
8695       hardcode_direct=yes
8696       hardcode_shlibpath_var=no
8697       ;;
8698
8699     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8700     freebsd2*)
8701       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8702       hardcode_direct=yes
8703       hardcode_minus_L=yes
8704       hardcode_shlibpath_var=no
8705       ;;
8706
8707     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8708     freebsd* | kfreebsd*-gnu)
8709       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8710       hardcode_libdir_flag_spec='-R$libdir'
8711       hardcode_direct=yes
8712       hardcode_shlibpath_var=no
8713       ;;
8714
8715     hpux9*)
8716       if test "$GCC" = yes; then
8717         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8718       else
8719         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8720       fi
8721       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8722       hardcode_libdir_separator=:
8723       hardcode_direct=yes
8724
8725       # hardcode_minus_L: Not really in the search PATH,
8726       # but as the default location of the library.
8727       hardcode_minus_L=yes
8728       export_dynamic_flag_spec='${wl}-E'
8729       ;;
8730
8731     hpux10* | hpux11*)
8732       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8733         case "$host_cpu" in
8734         hppa*64*|ia64*)
8735           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8736           ;;
8737         *)
8738           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8739           ;;
8740         esac
8741       else
8742         case "$host_cpu" in
8743         hppa*64*|ia64*)
8744           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8745           ;;
8746         *)
8747           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8748           ;;
8749         esac
8750       fi
8751       if test "$with_gnu_ld" = no; then
8752         case "$host_cpu" in
8753         hppa*64*)
8754           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8755           hardcode_libdir_flag_spec_ld='+b $libdir'
8756           hardcode_libdir_separator=:
8757           hardcode_direct=no
8758           hardcode_shlibpath_var=no
8759           ;;
8760         ia64*)
8761           hardcode_libdir_flag_spec='-L$libdir'
8762           hardcode_direct=no
8763           hardcode_shlibpath_var=no
8764
8765           # hardcode_minus_L: Not really in the search PATH,
8766           # but as the default location of the library.
8767           hardcode_minus_L=yes
8768           ;;
8769         *)
8770           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8771           hardcode_libdir_separator=:
8772           hardcode_direct=yes
8773           export_dynamic_flag_spec='${wl}-E'
8774
8775           # hardcode_minus_L: Not really in the search PATH,
8776           # but as the default location of the library.
8777           hardcode_minus_L=yes
8778           ;;
8779         esac
8780       fi
8781       ;;
8782
8783     irix5* | irix6* | nonstopux*)
8784       if test "$GCC" = yes; then
8785         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'
8786       else
8787         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'
8788         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8789       fi
8790       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8791       hardcode_libdir_separator=:
8792       link_all_deplibs=yes
8793       ;;
8794
8795     netbsd*)
8796       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8797         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8798       else
8799         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8800       fi
8801       hardcode_libdir_flag_spec='-R$libdir'
8802       hardcode_direct=yes
8803       hardcode_shlibpath_var=no
8804       ;;
8805
8806     newsos6)
8807       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808       hardcode_direct=yes
8809       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8810       hardcode_libdir_separator=:
8811       hardcode_shlibpath_var=no
8812       ;;
8813
8814     openbsd*)
8815       hardcode_direct=yes
8816       hardcode_shlibpath_var=no
8817       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8818         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8819         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8820         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8821         export_dynamic_flag_spec='${wl}-E'
8822       else
8823        case $host_os in
8824          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8825            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8826            hardcode_libdir_flag_spec='-R$libdir'
8827            ;;
8828          *)
8829            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8830            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8831            ;;
8832        esac
8833       fi
8834       ;;
8835
8836     os2*)
8837       hardcode_libdir_flag_spec='-L$libdir'
8838       hardcode_minus_L=yes
8839       allow_undefined_flag=unsupported
8840       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8841       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8842       ;;
8843
8844     osf3*)
8845       if test "$GCC" = yes; then
8846         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8847         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'
8848       else
8849         allow_undefined_flag=' -expect_unresolved \*'
8850         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'
8851       fi
8852       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8853       hardcode_libdir_separator=:
8854       ;;
8855
8856     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8857       if test "$GCC" = yes; then
8858         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8859         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'
8860         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8861       else
8862         allow_undefined_flag=' -expect_unresolved \*'
8863         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'
8864         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8865         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8866
8867         # Both c and cxx compiler support -rpath directly
8868         hardcode_libdir_flag_spec='-rpath $libdir'
8869       fi
8870       hardcode_libdir_separator=:
8871       ;;
8872
8873     sco3.2v5*)
8874       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875       hardcode_shlibpath_var=no
8876       export_dynamic_flag_spec='${wl}-Bexport'
8877       runpath_var=LD_RUN_PATH
8878       hardcode_runpath_var=yes
8879       ;;
8880
8881     solaris*)
8882       no_undefined_flag=' -z text'
8883       if test "$GCC" = yes; then
8884         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8885         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8886           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8887       else
8888         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8890         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8891       fi
8892       hardcode_libdir_flag_spec='-R$libdir'
8893       hardcode_shlibpath_var=no
8894       case $host_os in
8895       solaris2.[0-5] | solaris2.[0-5].*) ;;
8896       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8897         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8898       esac
8899       link_all_deplibs=yes
8900       ;;
8901
8902     sunos4*)
8903       if test "x$host_vendor" = xsequent; then
8904         # Use $CC to link under sequent, because it throws in some extra .o
8905         # files that make .init and .fini sections work.
8906         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8907       else
8908         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8909       fi
8910       hardcode_libdir_flag_spec='-L$libdir'
8911       hardcode_direct=yes
8912       hardcode_minus_L=yes
8913       hardcode_shlibpath_var=no
8914       ;;
8915
8916     sysv4)
8917       case $host_vendor in
8918         sni)
8919           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8920           hardcode_direct=yes # is this really true???
8921         ;;
8922         siemens)
8923           ## LD is ld it makes a PLAMLIB
8924           ## CC just makes a GrossModule.
8925           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8926           reload_cmds='$CC -r -o $output$reload_objs'
8927           hardcode_direct=no
8928         ;;
8929         motorola)
8930           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8932         ;;
8933       esac
8934       runpath_var='LD_RUN_PATH'
8935       hardcode_shlibpath_var=no
8936       ;;
8937
8938     sysv4.3*)
8939       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940       hardcode_shlibpath_var=no
8941       export_dynamic_flag_spec='-Bexport'
8942       ;;
8943
8944     sysv4*MP*)
8945       if test -d /usr/nec; then
8946         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8947         hardcode_shlibpath_var=no
8948         runpath_var=LD_RUN_PATH
8949         hardcode_runpath_var=yes
8950         ld_shlibs=yes
8951       fi
8952       ;;
8953
8954     sysv4.2uw2*)
8955       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8956       hardcode_direct=yes
8957       hardcode_minus_L=no
8958       hardcode_shlibpath_var=no
8959       hardcode_runpath_var=yes
8960       runpath_var=LD_RUN_PATH
8961       ;;
8962
8963    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8964       no_undefined_flag='${wl}-z ${wl}text'
8965       if test "$GCC" = yes; then
8966         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8967       else
8968         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8969       fi
8970       runpath_var='LD_RUN_PATH'
8971       hardcode_shlibpath_var=no
8972       ;;
8973
8974     sysv5*)
8975       no_undefined_flag=' -z text'
8976       # $CC -shared without GNU ld will not create a library from C++
8977       # object files and a static libstdc++, better avoid it by now
8978       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8979       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8980                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8981       hardcode_libdir_flag_spec=
8982       hardcode_shlibpath_var=no
8983       runpath_var='LD_RUN_PATH'
8984       ;;
8985
8986     uts4*)
8987       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988       hardcode_libdir_flag_spec='-L$libdir'
8989       hardcode_shlibpath_var=no
8990       ;;
8991
8992     *)
8993       ld_shlibs=no
8994       ;;
8995     esac
8996   fi
8997
8998 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8999 echo "${ECHO_T}$ld_shlibs" >&6
9000 test "$ld_shlibs" = no && can_build_shared=no
9001
9002 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9003 if test "$GCC" = yes; then
9004   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9005 fi
9006
9007 #
9008 # Do we need to explicitly link libc?
9009 #
9010 case "x$archive_cmds_need_lc" in
9011 x|xyes)
9012   # Assume -lc should be added
9013   archive_cmds_need_lc=yes
9014
9015   if test "$enable_shared" = yes && test "$GCC" = yes; then
9016     case $archive_cmds in
9017     *'~'*)
9018       # FIXME: we may have to deal with multi-command sequences.
9019       ;;
9020     '$CC '*)
9021       # Test whether the compiler implicitly links with -lc since on some
9022       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9023       # to ld, don't add -lc before -lgcc.
9024       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9025 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9026       $rm conftest*
9027       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9028
9029       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9030   (eval $ac_compile) 2>&5
9031   ac_status=$?
9032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033   (exit $ac_status); } 2>conftest.err; then
9034         soname=conftest
9035         lib=conftest
9036         libobjs=conftest.$ac_objext
9037         deplibs=
9038         wl=$lt_prog_compiler_wl
9039         compiler_flags=-v
9040         linker_flags=-v
9041         verstring=
9042         output_objdir=.
9043         libname=conftest
9044         lt_save_allow_undefined_flag=$allow_undefined_flag
9045         allow_undefined_flag=
9046         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9047   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9048   ac_status=$?
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); }
9051         then
9052           archive_cmds_need_lc=no
9053         else
9054           archive_cmds_need_lc=yes
9055         fi
9056         allow_undefined_flag=$lt_save_allow_undefined_flag
9057       else
9058         cat conftest.err 1>&5
9059       fi
9060       $rm conftest*
9061       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9062 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9063       ;;
9064     esac
9065   fi
9066   ;;
9067 esac
9068
9069 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9070 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9071 library_names_spec=
9072 libname_spec='lib$name'
9073 soname_spec=
9074 shrext_cmds=".so"
9075 postinstall_cmds=
9076 postuninstall_cmds=
9077 finish_cmds=
9078 finish_eval=
9079 shlibpath_var=
9080 shlibpath_overrides_runpath=unknown
9081 version_type=none
9082 dynamic_linker="$host_os ld.so"
9083 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9084 if test "$GCC" = yes; then
9085   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9086   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9087     # if the path contains ";" then we assume it to be the separator
9088     # otherwise default to the standard path separator (i.e. ":") - it is
9089     # assumed that no part of a normal pathname contains ";" but that should
9090     # okay in the real world where ";" in dirpaths is itself problematic.
9091     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9092   else
9093     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9094   fi
9095 else
9096   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9097 fi
9098 need_lib_prefix=unknown
9099 hardcode_into_libs=no
9100
9101 # when you set need_version to no, make sure it does not cause -set_version
9102 # flags to be left without arguments
9103 need_version=unknown
9104
9105 case $host_os in
9106 aix3*)
9107   version_type=linux
9108   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9109   shlibpath_var=LIBPATH
9110
9111   # AIX 3 has no versioning support, so we append a major version to the name.
9112   soname_spec='${libname}${release}${shared_ext}$major'
9113   ;;
9114
9115 aix4* | aix5*)
9116   version_type=linux
9117   need_lib_prefix=no
9118   need_version=no
9119   hardcode_into_libs=yes
9120   if test "$host_cpu" = ia64; then
9121     # AIX 5 supports IA64
9122     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9123     shlibpath_var=LD_LIBRARY_PATH
9124   else
9125     # With GCC up to 2.95.x, collect2 would create an import file
9126     # for dependence libraries.  The import file would start with
9127     # the line `#! .'.  This would cause the generated library to
9128     # depend on `.', always an invalid library.  This was fixed in
9129     # development snapshots of GCC prior to 3.0.
9130     case $host_os in
9131       aix4 | aix4.[01] | aix4.[01].*)
9132       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9133            echo ' yes '
9134            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9135         :
9136       else
9137         can_build_shared=no
9138       fi
9139       ;;
9140     esac
9141     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9142     # soname into executable. Probably we can add versioning support to
9143     # collect2, so additional links can be useful in future.
9144     if test "$aix_use_runtimelinking" = yes; then
9145       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9146       # instead of lib<name>.a to let people know that these are not
9147       # typical AIX shared libraries.
9148       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9149     else
9150       # We preserve .a as extension for shared libraries through AIX4.2
9151       # and later when we are not doing run time linking.
9152       library_names_spec='${libname}${release}.a $libname.a'
9153       soname_spec='${libname}${release}${shared_ext}$major'
9154     fi
9155     shlibpath_var=LIBPATH
9156   fi
9157   ;;
9158
9159 amigaos*)
9160   library_names_spec='$libname.ixlibrary $libname.a'
9161   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9162   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'
9163   ;;
9164
9165 beos*)
9166   library_names_spec='${libname}${shared_ext}'
9167   dynamic_linker="$host_os ld.so"
9168   shlibpath_var=LIBRARY_PATH
9169   ;;
9170
9171 bsdi[45]*)
9172   version_type=linux
9173   need_version=no
9174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175   soname_spec='${libname}${release}${shared_ext}$major'
9176   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9177   shlibpath_var=LD_LIBRARY_PATH
9178   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9179   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9180   # the default ld.so.conf also contains /usr/contrib/lib and
9181   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9182   # libtool to hard-code these into programs
9183   ;;
9184
9185 cygwin* | mingw* | pw32*)
9186   version_type=windows
9187   shrext_cmds=".dll"
9188   need_version=no
9189   need_lib_prefix=no
9190
9191   case $GCC,$host_os in
9192   yes,cygwin* | yes,mingw* | yes,pw32*)
9193     library_names_spec='$libname.dll.a'
9194     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9195     postinstall_cmds='base_file=`basename \${file}`~
9196       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9197       dldir=$destdir/`dirname \$dlpath`~
9198       test -d \$dldir || mkdir -p \$dldir~
9199       $install_prog $dir/$dlname \$dldir/$dlname'
9200     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9201       dlpath=$dir/\$dldll~
9202        $rm \$dlpath'
9203     shlibpath_overrides_runpath=yes
9204
9205     case $host_os in
9206     cygwin*)
9207       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9208       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9209       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9210       ;;
9211     mingw*)
9212       # MinGW DLLs use traditional 'lib' prefix
9213       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9214       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9215       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9216         # It is most probably a Windows format PATH printed by
9217         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9218         # path with ; separators, and with drive letters. We can handle the
9219         # drive letters (cygwin fileutils understands them), so leave them,
9220         # especially as we might pass files found there to a mingw objdump,
9221         # which wouldn't understand a cygwinified path. Ahh.
9222         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9223       else
9224         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9225       fi
9226       ;;
9227     pw32*)
9228       # pw32 DLLs use 'pw' prefix rather than 'lib'
9229       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9230       ;;
9231     esac
9232     ;;
9233
9234   *)
9235     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9236     ;;
9237   esac
9238   dynamic_linker='Win32 ld.exe'
9239   # FIXME: first we should search . and the directory the executable is in
9240   shlibpath_var=PATH
9241   ;;
9242
9243 darwin* | rhapsody*)
9244   dynamic_linker="$host_os dyld"
9245   version_type=darwin
9246   need_lib_prefix=no
9247   need_version=no
9248   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9249   soname_spec='${libname}${release}${major}$shared_ext'
9250   shlibpath_overrides_runpath=yes
9251   shlibpath_var=DYLD_LIBRARY_PATH
9252   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9253   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9254   if test "$GCC" = yes; then
9255     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"`
9256   else
9257     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9258   fi
9259   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9260   ;;
9261
9262 dgux*)
9263   version_type=linux
9264   need_lib_prefix=no
9265   need_version=no
9266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9267   soname_spec='${libname}${release}${shared_ext}$major'
9268   shlibpath_var=LD_LIBRARY_PATH
9269   ;;
9270
9271 freebsd1*)
9272   dynamic_linker=no
9273   ;;
9274
9275 kfreebsd*-gnu)
9276   version_type=linux
9277   need_lib_prefix=no
9278   need_version=no
9279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9280   soname_spec='${libname}${release}${shared_ext}$major'
9281   shlibpath_var=LD_LIBRARY_PATH
9282   shlibpath_overrides_runpath=no
9283   hardcode_into_libs=yes
9284   dynamic_linker='GNU ld.so'
9285   ;;
9286
9287 freebsd*)
9288   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9289   version_type=freebsd-$objformat
9290   case $version_type in
9291     freebsd-elf*)
9292       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9293       need_version=no
9294       need_lib_prefix=no
9295       ;;
9296     freebsd-*)
9297       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9298       need_version=yes
9299       ;;
9300   esac
9301   shlibpath_var=LD_LIBRARY_PATH
9302   case $host_os in
9303   freebsd2*)
9304     shlibpath_overrides_runpath=yes
9305     ;;
9306   freebsd3.01* | freebsdelf3.01*)
9307     shlibpath_overrides_runpath=yes
9308     hardcode_into_libs=yes
9309     ;;
9310   *) # from 3.2 on
9311     shlibpath_overrides_runpath=no
9312     hardcode_into_libs=yes
9313     ;;
9314   esac
9315   ;;
9316
9317 gnu*)
9318   version_type=linux
9319   need_lib_prefix=no
9320   need_version=no
9321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9322   soname_spec='${libname}${release}${shared_ext}$major'
9323   shlibpath_var=LD_LIBRARY_PATH
9324   hardcode_into_libs=yes
9325   ;;
9326
9327 hpux9* | hpux10* | hpux11*)
9328   # Give a soname corresponding to the major version so that dld.sl refuses to
9329   # link against other versions.
9330   version_type=sunos
9331   need_lib_prefix=no
9332   need_version=no
9333   case "$host_cpu" in
9334   ia64*)
9335     shrext_cmds='.so'
9336     hardcode_into_libs=yes
9337     dynamic_linker="$host_os dld.so"
9338     shlibpath_var=LD_LIBRARY_PATH
9339     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9341     soname_spec='${libname}${release}${shared_ext}$major'
9342     if test "X$HPUX_IA64_MODE" = X32; then
9343       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9344     else
9345       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9346     fi
9347     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9348     ;;
9349    hppa*64*)
9350      shrext_cmds='.sl'
9351      hardcode_into_libs=yes
9352      dynamic_linker="$host_os dld.sl"
9353      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9354      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9355      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9356      soname_spec='${libname}${release}${shared_ext}$major'
9357      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9358      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9359      ;;
9360    *)
9361     shrext_cmds='.sl'
9362     dynamic_linker="$host_os dld.sl"
9363     shlibpath_var=SHLIB_PATH
9364     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366     soname_spec='${libname}${release}${shared_ext}$major'
9367     ;;
9368   esac
9369   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9370   postinstall_cmds='chmod 555 $lib'
9371   ;;
9372
9373 irix5* | irix6* | nonstopux*)
9374   case $host_os in
9375     nonstopux*) version_type=nonstopux ;;
9376     *)
9377         if test "$lt_cv_prog_gnu_ld" = yes; then
9378                 version_type=linux
9379         else
9380                 version_type=irix
9381         fi ;;
9382   esac
9383   need_lib_prefix=no
9384   need_version=no
9385   soname_spec='${libname}${release}${shared_ext}$major'
9386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9387   case $host_os in
9388   irix5* | nonstopux*)
9389     libsuff= shlibsuff=
9390     ;;
9391   *)
9392     case $LD in # libtool.m4 will add one of these switches to LD
9393     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9394       libsuff= shlibsuff= libmagic=32-bit;;
9395     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9396       libsuff=32 shlibsuff=N32 libmagic=N32;;
9397     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9398       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9399     *) libsuff= shlibsuff= libmagic=never-match;;
9400     esac
9401     ;;
9402   esac
9403   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9404   shlibpath_overrides_runpath=no
9405   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9406   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9407   hardcode_into_libs=yes
9408   ;;
9409
9410 # No shared lib support for Linux oldld, aout, or coff.
9411 linux*oldld* | linux*aout* | linux*coff*)
9412   dynamic_linker=no
9413   ;;
9414
9415 # This must be Linux ELF.
9416 linux*)
9417   version_type=linux
9418   need_lib_prefix=no
9419   need_version=no
9420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421   soname_spec='${libname}${release}${shared_ext}$major'
9422   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9423   shlibpath_var=LD_LIBRARY_PATH
9424   shlibpath_overrides_runpath=no
9425   # This implies no fast_install, which is unacceptable.
9426   # Some rework will be needed to allow for fast_install
9427   # before this can be enabled.
9428   hardcode_into_libs=yes
9429
9430   # Append ld.so.conf contents to the search path
9431   if test -f /etc/ld.so.conf; then
9432     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9433     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9434   fi
9435
9436   # We used to test for /lib/ld.so.1 and disable shared libraries on
9437   # powerpc, because MkLinux only supported shared libraries with the
9438   # GNU dynamic linker.  Since this was broken with cross compilers,
9439   # most powerpc-linux boxes support dynamic linking these days and
9440   # people can always --disable-shared, the test was removed, and we
9441   # assume the GNU/Linux dynamic linker is in use.
9442   dynamic_linker='GNU/Linux ld.so'
9443   ;;
9444
9445 knetbsd*-gnu)
9446   version_type=linux
9447   need_lib_prefix=no
9448   need_version=no
9449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9450   soname_spec='${libname}${release}${shared_ext}$major'
9451   shlibpath_var=LD_LIBRARY_PATH
9452   shlibpath_overrides_runpath=no
9453   hardcode_into_libs=yes
9454   dynamic_linker='GNU ld.so'
9455   ;;
9456
9457 netbsd*)
9458   version_type=sunos
9459   need_lib_prefix=no
9460   need_version=no
9461   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9463     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9464     dynamic_linker='NetBSD (a.out) ld.so'
9465   else
9466     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9467     soname_spec='${libname}${release}${shared_ext}$major'
9468     dynamic_linker='NetBSD ld.elf_so'
9469   fi
9470   shlibpath_var=LD_LIBRARY_PATH
9471   shlibpath_overrides_runpath=yes
9472   hardcode_into_libs=yes
9473   ;;
9474
9475 newsos6)
9476   version_type=linux
9477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478   shlibpath_var=LD_LIBRARY_PATH
9479   shlibpath_overrides_runpath=yes
9480   ;;
9481
9482 nto-qnx*)
9483   version_type=linux
9484   need_lib_prefix=no
9485   need_version=no
9486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487   soname_spec='${libname}${release}${shared_ext}$major'
9488   shlibpath_var=LD_LIBRARY_PATH
9489   shlibpath_overrides_runpath=yes
9490   ;;
9491
9492 openbsd*)
9493   version_type=sunos
9494   need_lib_prefix=no
9495   need_version=no
9496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9497   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9498   shlibpath_var=LD_LIBRARY_PATH
9499   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9500     case $host_os in
9501       openbsd2.[89] | openbsd2.[89].*)
9502         shlibpath_overrides_runpath=no
9503         ;;
9504       *)
9505         shlibpath_overrides_runpath=yes
9506         ;;
9507       esac
9508   else
9509     shlibpath_overrides_runpath=yes
9510   fi
9511   ;;
9512
9513 os2*)
9514   libname_spec='$name'
9515   shrext_cmds=".dll"
9516   need_lib_prefix=no
9517   library_names_spec='$libname${shared_ext} $libname.a'
9518   dynamic_linker='OS/2 ld.exe'
9519   shlibpath_var=LIBPATH
9520   ;;
9521
9522 osf3* | osf4* | osf5*)
9523   version_type=osf
9524   need_lib_prefix=no
9525   need_version=no
9526   soname_spec='${libname}${release}${shared_ext}$major'
9527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528   shlibpath_var=LD_LIBRARY_PATH
9529   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9530   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9531   ;;
9532
9533 sco3.2v5*)
9534   version_type=osf
9535   soname_spec='${libname}${release}${shared_ext}$major'
9536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537   shlibpath_var=LD_LIBRARY_PATH
9538   ;;
9539
9540 solaris*)
9541   version_type=linux
9542   need_lib_prefix=no
9543   need_version=no
9544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545   soname_spec='${libname}${release}${shared_ext}$major'
9546   shlibpath_var=LD_LIBRARY_PATH
9547   shlibpath_overrides_runpath=yes
9548   hardcode_into_libs=yes
9549   # ldd complains unless libraries are executable
9550   postinstall_cmds='chmod +x $lib'
9551   ;;
9552
9553 sunos4*)
9554   version_type=sunos
9555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9556   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9557   shlibpath_var=LD_LIBRARY_PATH
9558   shlibpath_overrides_runpath=yes
9559   if test "$with_gnu_ld" = yes; then
9560     need_lib_prefix=no
9561   fi
9562   need_version=yes
9563   ;;
9564
9565 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9566   version_type=linux
9567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568   soname_spec='${libname}${release}${shared_ext}$major'
9569   shlibpath_var=LD_LIBRARY_PATH
9570   case $host_vendor in
9571     sni)
9572       shlibpath_overrides_runpath=no
9573       need_lib_prefix=no
9574       export_dynamic_flag_spec='${wl}-Blargedynsym'
9575       runpath_var=LD_RUN_PATH
9576       ;;
9577     siemens)
9578       need_lib_prefix=no
9579       ;;
9580     motorola)
9581       need_lib_prefix=no
9582       need_version=no
9583       shlibpath_overrides_runpath=no
9584       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9585       ;;
9586   esac
9587   ;;
9588
9589 sysv4*MP*)
9590   if test -d /usr/nec ;then
9591     version_type=linux
9592     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9593     soname_spec='$libname${shared_ext}.$major'
9594     shlibpath_var=LD_LIBRARY_PATH
9595   fi
9596   ;;
9597
9598 uts4*)
9599   version_type=linux
9600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601   soname_spec='${libname}${release}${shared_ext}$major'
9602   shlibpath_var=LD_LIBRARY_PATH
9603   ;;
9604
9605 *)
9606   dynamic_linker=no
9607   ;;
9608 esac
9609 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9610 echo "${ECHO_T}$dynamic_linker" >&6
9611 test "$dynamic_linker" = no && can_build_shared=no
9612
9613 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9614 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9615 hardcode_action=
9616 if test -n "$hardcode_libdir_flag_spec" || \
9617    test -n "$runpath_var" || \
9618    test "X$hardcode_automatic" = "Xyes" ; then
9619
9620   # We can hardcode non-existant directories.
9621   if test "$hardcode_direct" != no &&
9622      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9623      # have to relink, otherwise we might link with an installed library
9624      # when we should be linking with a yet-to-be-installed one
9625      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9626      test "$hardcode_minus_L" != no; then
9627     # Linking always hardcodes the temporary library directory.
9628     hardcode_action=relink
9629   else
9630     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9631     hardcode_action=immediate
9632   fi
9633 else
9634   # We cannot hardcode anything, or else we can only hardcode existing
9635   # directories.
9636   hardcode_action=unsupported
9637 fi
9638 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9639 echo "${ECHO_T}$hardcode_action" >&6
9640
9641 if test "$hardcode_action" = relink; then
9642   # Fast installation is not supported
9643   enable_fast_install=no
9644 elif test "$shlibpath_overrides_runpath" = yes ||
9645      test "$enable_shared" = no; then
9646   # Fast installation is not necessary
9647   enable_fast_install=needless
9648 fi
9649
9650 striplib=
9651 old_striplib=
9652 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9653 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9654 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9655   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9656   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9657   echo "$as_me:$LINENO: result: yes" >&5
9658 echo "${ECHO_T}yes" >&6
9659 else
9660 # FIXME - insert some real tests, host_os isn't really good enough
9661   case $host_os in
9662    darwin*)
9663        if test -n "$STRIP" ; then
9664          striplib="$STRIP -x"
9665          echo "$as_me:$LINENO: result: yes" >&5
9666 echo "${ECHO_T}yes" >&6
9667        else
9668   echo "$as_me:$LINENO: result: no" >&5
9669 echo "${ECHO_T}no" >&6
9670 fi
9671        ;;
9672    *)
9673   echo "$as_me:$LINENO: result: no" >&5
9674 echo "${ECHO_T}no" >&6
9675     ;;
9676   esac
9677 fi
9678
9679 if test "x$enable_dlopen" != xyes; then
9680   enable_dlopen=unknown
9681   enable_dlopen_self=unknown
9682   enable_dlopen_self_static=unknown
9683 else
9684   lt_cv_dlopen=no
9685   lt_cv_dlopen_libs=
9686
9687   case $host_os in
9688   beos*)
9689     lt_cv_dlopen="load_add_on"
9690     lt_cv_dlopen_libs=
9691     lt_cv_dlopen_self=yes
9692     ;;
9693
9694   mingw* | pw32*)
9695     lt_cv_dlopen="LoadLibrary"
9696     lt_cv_dlopen_libs=
9697    ;;
9698
9699   cygwin*)
9700     lt_cv_dlopen="dlopen"
9701     lt_cv_dlopen_libs=
9702    ;;
9703
9704   darwin*)
9705   # if libdl is installed we need to link against it
9706     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9707 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9708 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9709   echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711   ac_check_lib_save_LIBS=$LIBS
9712 LIBS="-ldl  $LIBS"
9713 cat >conftest.$ac_ext <<_ACEOF
9714 /* confdefs.h.  */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h.  */
9719
9720 /* Override any gcc2 internal prototype to avoid an error.  */
9721 #ifdef __cplusplus
9722 extern "C"
9723 #endif
9724 /* We use char because int might match the return type of a gcc2
9725    builtin and then its argument prototype would still apply.  */
9726 char dlopen ();
9727 int
9728 main ()
9729 {
9730 dlopen ();
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737   (eval $ac_link) 2>conftest.er1
9738   ac_status=$?
9739   grep -v '^ *+' conftest.er1 >conftest.err
9740   rm -f conftest.er1
9741   cat conftest.err >&5
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); } &&
9744          { ac_try='test -z "$ac_c_werror_flag"
9745                          || test ! -s conftest.err'
9746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747   (eval $ac_try) 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); }; } &&
9751          { ac_try='test -s conftest$ac_exeext'
9752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753   (eval $ac_try) 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); }; }; then
9757   ac_cv_lib_dl_dlopen=yes
9758 else
9759   echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9761
9762 ac_cv_lib_dl_dlopen=no
9763 fi
9764 rm -f conftest.err conftest.$ac_objext \
9765       conftest$ac_exeext conftest.$ac_ext
9766 LIBS=$ac_check_lib_save_LIBS
9767 fi
9768 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9770 if test $ac_cv_lib_dl_dlopen = yes; then
9771   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9772 else
9773
9774     lt_cv_dlopen="dyld"
9775     lt_cv_dlopen_libs=
9776     lt_cv_dlopen_self=yes
9777
9778 fi
9779
9780    ;;
9781
9782   *)
9783     echo "$as_me:$LINENO: checking for shl_load" >&5
9784 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9785 if test "${ac_cv_func_shl_load+set}" = set; then
9786   echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788   cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h.  */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h.  */
9794 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9796 #define shl_load innocuous_shl_load
9797
9798 /* System header to define __stub macros and hopefully few prototypes,
9799     which can conflict with char shl_load (); below.
9800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801     <limits.h> exists even on freestanding compilers.  */
9802
9803 #ifdef __STDC__
9804 # include <limits.h>
9805 #else
9806 # include <assert.h>
9807 #endif
9808
9809 #undef shl_load
9810
9811 /* Override any gcc2 internal prototype to avoid an error.  */
9812 #ifdef __cplusplus
9813 extern "C"
9814 {
9815 #endif
9816 /* We use char because int might match the return type of a gcc2
9817    builtin and then its argument prototype would still apply.  */
9818 char shl_load ();
9819 /* The GNU C library defines this for functions which it implements
9820     to always fail with ENOSYS.  Some functions are actually named
9821     something starting with __ and the normal name is an alias.  */
9822 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9823 choke me
9824 #else
9825 char (*f) () = shl_load;
9826 #endif
9827 #ifdef __cplusplus
9828 }
9829 #endif
9830
9831 int
9832 main ()
9833 {
9834 return f != shl_load;
9835   ;
9836   return 0;
9837 }
9838 _ACEOF
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841   (eval $ac_link) 2>conftest.er1
9842   ac_status=$?
9843   grep -v '^ *+' conftest.er1 >conftest.err
9844   rm -f conftest.er1
9845   cat conftest.err >&5
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); } &&
9848          { ac_try='test -z "$ac_c_werror_flag"
9849                          || test ! -s conftest.err'
9850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851   (eval $ac_try) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }; } &&
9855          { ac_try='test -s conftest$ac_exeext'
9856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857   (eval $ac_try) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; }; then
9861   ac_cv_func_shl_load=yes
9862 else
9863   echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 ac_cv_func_shl_load=no
9867 fi
9868 rm -f conftest.err conftest.$ac_objext \
9869       conftest$ac_exeext conftest.$ac_ext
9870 fi
9871 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9872 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9873 if test $ac_cv_func_shl_load = yes; then
9874   lt_cv_dlopen="shl_load"
9875 else
9876   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9877 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9878 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9879   echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881   ac_check_lib_save_LIBS=$LIBS
9882 LIBS="-ldld  $LIBS"
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h.  */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h.  */
9889
9890 /* Override any gcc2 internal prototype to avoid an error.  */
9891 #ifdef __cplusplus
9892 extern "C"
9893 #endif
9894 /* We use char because int might match the return type of a gcc2
9895    builtin and then its argument prototype would still apply.  */
9896 char shl_load ();
9897 int
9898 main ()
9899 {
9900 shl_load ();
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907   (eval $ac_link) 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -z "$ac_c_werror_flag"
9915                          || test ! -s conftest.err'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; } &&
9921          { ac_try='test -s conftest$ac_exeext'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_cv_lib_dld_shl_load=yes
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932 ac_cv_lib_dld_shl_load=no
9933 fi
9934 rm -f conftest.err conftest.$ac_objext \
9935       conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9937 fi
9938 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9939 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9940 if test $ac_cv_lib_dld_shl_load = yes; then
9941   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9942 else
9943   echo "$as_me:$LINENO: checking for dlopen" >&5
9944 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9945 if test "${ac_cv_func_dlopen+set}" = set; then
9946   echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948   cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9956 #define dlopen innocuous_dlopen
9957
9958 /* System header to define __stub macros and hopefully few prototypes,
9959     which can conflict with char dlopen (); below.
9960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9961     <limits.h> exists even on freestanding compilers.  */
9962
9963 #ifdef __STDC__
9964 # include <limits.h>
9965 #else
9966 # include <assert.h>
9967 #endif
9968
9969 #undef dlopen
9970
9971 /* Override any gcc2 internal prototype to avoid an error.  */
9972 #ifdef __cplusplus
9973 extern "C"
9974 {
9975 #endif
9976 /* We use char because int might match the return type of a gcc2
9977    builtin and then its argument prototype would still apply.  */
9978 char dlopen ();
9979 /* The GNU C library defines this for functions which it implements
9980     to always fail with ENOSYS.  Some functions are actually named
9981     something starting with __ and the normal name is an alias.  */
9982 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9983 choke me
9984 #else
9985 char (*f) () = dlopen;
9986 #endif
9987 #ifdef __cplusplus
9988 }
9989 #endif
9990
9991 int
9992 main ()
9993 {
9994 return f != dlopen;
9995   ;
9996   return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001   (eval $ac_link) 2>conftest.er1
10002   ac_status=$?
10003   grep -v '^ *+' conftest.er1 >conftest.err
10004   rm -f conftest.er1
10005   cat conftest.err >&5
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); } &&
10008          { ac_try='test -z "$ac_c_werror_flag"
10009                          || test ! -s conftest.err'
10010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011   (eval $ac_try) 2>&5
10012   ac_status=$?
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); }; } &&
10015          { ac_try='test -s conftest$ac_exeext'
10016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017   (eval $ac_try) 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; }; then
10021   ac_cv_func_dlopen=yes
10022 else
10023   echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 ac_cv_func_dlopen=no
10027 fi
10028 rm -f conftest.err conftest.$ac_objext \
10029       conftest$ac_exeext conftest.$ac_ext
10030 fi
10031 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10032 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10033 if test $ac_cv_func_dlopen = yes; then
10034   lt_cv_dlopen="dlopen"
10035 else
10036   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10037 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10039   echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041   ac_check_lib_save_LIBS=$LIBS
10042 LIBS="-ldl  $LIBS"
10043 cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h.  */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h.  */
10049
10050 /* Override any gcc2 internal prototype to avoid an error.  */
10051 #ifdef __cplusplus
10052 extern "C"
10053 #endif
10054 /* We use char because int might match the return type of a gcc2
10055    builtin and then its argument prototype would still apply.  */
10056 char dlopen ();
10057 int
10058 main ()
10059 {
10060 dlopen ();
10061   ;
10062   return 0;
10063 }
10064 _ACEOF
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067   (eval $ac_link) 2>conftest.er1
10068   ac_status=$?
10069   grep -v '^ *+' conftest.er1 >conftest.err
10070   rm -f conftest.er1
10071   cat conftest.err >&5
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); } &&
10074          { ac_try='test -z "$ac_c_werror_flag"
10075                          || test ! -s conftest.err'
10076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077   (eval $ac_try) 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; } &&
10081          { ac_try='test -s conftest$ac_exeext'
10082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083   (eval $ac_try) 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; }; then
10087   ac_cv_lib_dl_dlopen=yes
10088 else
10089   echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 ac_cv_lib_dl_dlopen=no
10093 fi
10094 rm -f conftest.err conftest.$ac_objext \
10095       conftest$ac_exeext conftest.$ac_ext
10096 LIBS=$ac_check_lib_save_LIBS
10097 fi
10098 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10099 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10100 if test $ac_cv_lib_dl_dlopen = yes; then
10101   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10102 else
10103   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10104 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10105 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108   ac_check_lib_save_LIBS=$LIBS
10109 LIBS="-lsvld  $LIBS"
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h.  */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h.  */
10116
10117 /* Override any gcc2 internal prototype to avoid an error.  */
10118 #ifdef __cplusplus
10119 extern "C"
10120 #endif
10121 /* We use char because int might match the return type of a gcc2
10122    builtin and then its argument prototype would still apply.  */
10123 char dlopen ();
10124 int
10125 main ()
10126 {
10127 dlopen ();
10128   ;
10129   return 0;
10130 }
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134   (eval $ac_link) 2>conftest.er1
10135   ac_status=$?
10136   grep -v '^ *+' conftest.er1 >conftest.err
10137   rm -f conftest.er1
10138   cat conftest.err >&5
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); } &&
10141          { ac_try='test -z "$ac_c_werror_flag"
10142                          || test ! -s conftest.err'
10143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144   (eval $ac_try) 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); }; } &&
10148          { ac_try='test -s conftest$ac_exeext'
10149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150   (eval $ac_try) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); }; }; then
10154   ac_cv_lib_svld_dlopen=yes
10155 else
10156   echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 ac_cv_lib_svld_dlopen=no
10160 fi
10161 rm -f conftest.err conftest.$ac_objext \
10162       conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10164 fi
10165 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10166 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10167 if test $ac_cv_lib_svld_dlopen = yes; then
10168   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10169 else
10170   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10171 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10172 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10173   echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175   ac_check_lib_save_LIBS=$LIBS
10176 LIBS="-ldld  $LIBS"
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h.  */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h.  */
10183
10184 /* Override any gcc2 internal prototype to avoid an error.  */
10185 #ifdef __cplusplus
10186 extern "C"
10187 #endif
10188 /* We use char because int might match the return type of a gcc2
10189    builtin and then its argument prototype would still apply.  */
10190 char dld_link ();
10191 int
10192 main ()
10193 {
10194 dld_link ();
10195   ;
10196   return 0;
10197 }
10198 _ACEOF
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201   (eval $ac_link) 2>conftest.er1
10202   ac_status=$?
10203   grep -v '^ *+' conftest.er1 >conftest.err
10204   rm -f conftest.er1
10205   cat conftest.err >&5
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); } &&
10208          { ac_try='test -z "$ac_c_werror_flag"
10209                          || test ! -s conftest.err'
10210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211   (eval $ac_try) 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); }; } &&
10215          { ac_try='test -s conftest$ac_exeext'
10216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217   (eval $ac_try) 2>&5
10218   ac_status=$?
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); }; }; then
10221   ac_cv_lib_dld_dld_link=yes
10222 else
10223   echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 ac_cv_lib_dld_dld_link=no
10227 fi
10228 rm -f conftest.err conftest.$ac_objext \
10229       conftest$ac_exeext conftest.$ac_ext
10230 LIBS=$ac_check_lib_save_LIBS
10231 fi
10232 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10233 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10234 if test $ac_cv_lib_dld_dld_link = yes; then
10235   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10236 fi
10237
10238
10239 fi
10240
10241
10242 fi
10243
10244
10245 fi
10246
10247
10248 fi
10249
10250
10251 fi
10252
10253     ;;
10254   esac
10255
10256   if test "x$lt_cv_dlopen" != xno; then
10257     enable_dlopen=yes
10258   else
10259     enable_dlopen=no
10260   fi
10261
10262   case $lt_cv_dlopen in
10263   dlopen)
10264     save_CPPFLAGS="$CPPFLAGS"
10265     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10266
10267     save_LDFLAGS="$LDFLAGS"
10268     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10269
10270     save_LIBS="$LIBS"
10271     LIBS="$lt_cv_dlopen_libs $LIBS"
10272
10273     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10274 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10275 if test "${lt_cv_dlopen_self+set}" = set; then
10276   echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278           if test "$cross_compiling" = yes; then :
10279   lt_cv_dlopen_self=cross
10280 else
10281   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10282   lt_status=$lt_dlunknown
10283   cat > conftest.$ac_ext <<EOF
10284 #line 10284 "configure"
10285 #include "confdefs.h"
10286
10287 #if HAVE_DLFCN_H
10288 #include <dlfcn.h>
10289 #endif
10290
10291 #include <stdio.h>
10292
10293 #ifdef RTLD_GLOBAL
10294 #  define LT_DLGLOBAL           RTLD_GLOBAL
10295 #else
10296 #  ifdef DL_GLOBAL
10297 #    define LT_DLGLOBAL         DL_GLOBAL
10298 #  else
10299 #    define LT_DLGLOBAL         0
10300 #  endif
10301 #endif
10302
10303 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10304    find out it does not work in some platform. */
10305 #ifndef LT_DLLAZY_OR_NOW
10306 #  ifdef RTLD_LAZY
10307 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10308 #  else
10309 #    ifdef DL_LAZY
10310 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10311 #    else
10312 #      ifdef RTLD_NOW
10313 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10314 #      else
10315 #        ifdef DL_NOW
10316 #          define LT_DLLAZY_OR_NOW      DL_NOW
10317 #        else
10318 #          define LT_DLLAZY_OR_NOW      0
10319 #        endif
10320 #      endif
10321 #    endif
10322 #  endif
10323 #endif
10324
10325 #ifdef __cplusplus
10326 extern "C" void exit (int);
10327 #endif
10328
10329 void fnord() { int i=42;}
10330 int main ()
10331 {
10332   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10333   int status = $lt_dlunknown;
10334
10335   if (self)
10336     {
10337       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10338       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10339       /* dlclose (self); */
10340     }
10341
10342     exit (status);
10343 }
10344 EOF
10345   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10346   (eval $ac_link) 2>&5
10347   ac_status=$?
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10350     (./conftest; exit; ) 2>/dev/null
10351     lt_status=$?
10352     case x$lt_status in
10353       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10354       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10355       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10356     esac
10357   else :
10358     # compilation failed
10359     lt_cv_dlopen_self=no
10360   fi
10361 fi
10362 rm -fr conftest*
10363
10364
10365 fi
10366 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10367 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10368
10369     if test "x$lt_cv_dlopen_self" = xyes; then
10370       LDFLAGS="$LDFLAGS $link_static_flag"
10371       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10372 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10373 if test "${lt_cv_dlopen_self_static+set}" = set; then
10374   echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376           if test "$cross_compiling" = yes; then :
10377   lt_cv_dlopen_self_static=cross
10378 else
10379   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10380   lt_status=$lt_dlunknown
10381   cat > conftest.$ac_ext <<EOF
10382 #line 10382 "configure"
10383 #include "confdefs.h"
10384
10385 #if HAVE_DLFCN_H
10386 #include <dlfcn.h>
10387 #endif
10388
10389 #include <stdio.h>
10390
10391 #ifdef RTLD_GLOBAL
10392 #  define LT_DLGLOBAL           RTLD_GLOBAL
10393 #else
10394 #  ifdef DL_GLOBAL
10395 #    define LT_DLGLOBAL         DL_GLOBAL
10396 #  else
10397 #    define LT_DLGLOBAL         0
10398 #  endif
10399 #endif
10400
10401 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10402    find out it does not work in some platform. */
10403 #ifndef LT_DLLAZY_OR_NOW
10404 #  ifdef RTLD_LAZY
10405 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10406 #  else
10407 #    ifdef DL_LAZY
10408 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10409 #    else
10410 #      ifdef RTLD_NOW
10411 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10412 #      else
10413 #        ifdef DL_NOW
10414 #          define LT_DLLAZY_OR_NOW      DL_NOW
10415 #        else
10416 #          define LT_DLLAZY_OR_NOW      0
10417 #        endif
10418 #      endif
10419 #    endif
10420 #  endif
10421 #endif
10422
10423 #ifdef __cplusplus
10424 extern "C" void exit (int);
10425 #endif
10426
10427 void fnord() { int i=42;}
10428 int main ()
10429 {
10430   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10431   int status = $lt_dlunknown;
10432
10433   if (self)
10434     {
10435       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10436       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10437       /* dlclose (self); */
10438     }
10439
10440     exit (status);
10441 }
10442 EOF
10443   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444   (eval $ac_link) 2>&5
10445   ac_status=$?
10446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10448     (./conftest; exit; ) 2>/dev/null
10449     lt_status=$?
10450     case x$lt_status in
10451       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10452       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10453       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10454     esac
10455   else :
10456     # compilation failed
10457     lt_cv_dlopen_self_static=no
10458   fi
10459 fi
10460 rm -fr conftest*
10461
10462
10463 fi
10464 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10465 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10466     fi
10467
10468     CPPFLAGS="$save_CPPFLAGS"
10469     LDFLAGS="$save_LDFLAGS"
10470     LIBS="$save_LIBS"
10471     ;;
10472   esac
10473
10474   case $lt_cv_dlopen_self in
10475   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10476   *) enable_dlopen_self=unknown ;;
10477   esac
10478
10479   case $lt_cv_dlopen_self_static in
10480   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10481   *) enable_dlopen_self_static=unknown ;;
10482   esac
10483 fi
10484
10485
10486 # Report which librarie types wil actually be built
10487 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10488 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10489 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10490 echo "${ECHO_T}$can_build_shared" >&6
10491
10492 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10493 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10494 test "$can_build_shared" = "no" && enable_shared=no
10495
10496 # On AIX, shared libraries and static libraries use the same namespace, and
10497 # are all built from PIC.
10498 case "$host_os" in
10499 aix3*)
10500   test "$enable_shared" = yes && enable_static=no
10501   if test -n "$RANLIB"; then
10502     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10503     postinstall_cmds='$RANLIB $lib'
10504   fi
10505   ;;
10506
10507 aix4* | aix5*)
10508   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10509     test "$enable_shared" = yes && enable_static=no
10510   fi
10511     ;;
10512 esac
10513 echo "$as_me:$LINENO: result: $enable_shared" >&5
10514 echo "${ECHO_T}$enable_shared" >&6
10515
10516 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10517 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10518 # Make sure either enable_shared or enable_static is yes.
10519 test "$enable_shared" = yes || enable_static=yes
10520 echo "$as_me:$LINENO: result: $enable_static" >&5
10521 echo "${ECHO_T}$enable_static" >&6
10522
10523 # The else clause should only fire when bootstrapping the
10524 # libtool distribution, otherwise you forgot to ship ltmain.sh
10525 # with your package, and you will get complaints that there are
10526 # no rules to generate ltmain.sh.
10527 if test -f "$ltmain"; then
10528   # See if we are running on zsh, and set the options which allow our commands through
10529   # without removal of \ escapes.
10530   if test -n "${ZSH_VERSION+set}" ; then
10531     setopt NO_GLOB_SUBST
10532   fi
10533   # Now quote all the things that may contain metacharacters while being
10534   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10535   # variables and quote the copies for generation of the libtool script.
10536   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10537     SED SHELL STRIP \
10538     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10539     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10540     deplibs_check_method reload_flag reload_cmds need_locks \
10541     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10542     lt_cv_sys_global_symbol_to_c_name_address \
10543     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10544     old_postinstall_cmds old_postuninstall_cmds \
10545     compiler \
10546     CC \
10547     LD \
10548     lt_prog_compiler_wl \
10549     lt_prog_compiler_pic \
10550     lt_prog_compiler_static \
10551     lt_prog_compiler_no_builtin_flag \
10552     export_dynamic_flag_spec \
10553     thread_safe_flag_spec \
10554     whole_archive_flag_spec \
10555     enable_shared_with_static_runtimes \
10556     old_archive_cmds \
10557     old_archive_from_new_cmds \
10558     predep_objects \
10559     postdep_objects \
10560     predeps \
10561     postdeps \
10562     compiler_lib_search_path \
10563     archive_cmds \
10564     archive_expsym_cmds \
10565     postinstall_cmds \
10566     postuninstall_cmds \
10567     old_archive_from_expsyms_cmds \
10568     allow_undefined_flag \
10569     no_undefined_flag \
10570     export_symbols_cmds \
10571     hardcode_libdir_flag_spec \
10572     hardcode_libdir_flag_spec_ld \
10573     hardcode_libdir_separator \
10574     hardcode_automatic \
10575     module_cmds \
10576     module_expsym_cmds \
10577     lt_cv_prog_compiler_c_o \
10578     exclude_expsyms \
10579     include_expsyms; do
10580
10581     case $var in
10582     old_archive_cmds | \
10583     old_archive_from_new_cmds | \
10584     archive_cmds | \
10585     archive_expsym_cmds | \
10586     module_cmds | \
10587     module_expsym_cmds | \
10588     old_archive_from_expsyms_cmds | \
10589     export_symbols_cmds | \
10590     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10591     postinstall_cmds | postuninstall_cmds | \
10592     old_postinstall_cmds | old_postuninstall_cmds | \
10593     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10594       # Double-quote double-evaled strings.
10595       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10596       ;;
10597     *)
10598       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10599       ;;
10600     esac
10601   done
10602
10603   case $lt_echo in
10604   *'\$0 --fallback-echo"')
10605     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10606     ;;
10607   esac
10608
10609 cfgfile="${ofile}T"
10610   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10611   $rm -f "$cfgfile"
10612   { echo "$as_me:$LINENO: creating $ofile" >&5
10613 echo "$as_me: creating $ofile" >&6;}
10614
10615   cat <<__EOF__ >> "$cfgfile"
10616 #! $SHELL
10617
10618 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10619 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10620 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10621 #
10622 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10623 # Free Software Foundation, Inc.
10624 #
10625 # This file is part of GNU Libtool:
10626 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10627 #
10628 # This program is free software; you can redistribute it and/or modify
10629 # it under the terms of the GNU General Public License as published by
10630 # the Free Software Foundation; either version 2 of the License, or
10631 # (at your option) any later version.
10632 #
10633 # This program is distributed in the hope that it will be useful, but
10634 # WITHOUT ANY WARRANTY; without even the implied warranty of
10635 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10636 # General Public License for more details.
10637 #
10638 # You should have received a copy of the GNU General Public License
10639 # along with this program; if not, write to the Free Software
10640 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10641 #
10642 # As a special exception to the GNU General Public License, if you
10643 # distribute this file as part of a program that contains a
10644 # configuration script generated by Autoconf, you may include it under
10645 # the same distribution terms that you use for the rest of that program.
10646
10647 # A sed program that does not truncate output.
10648 SED=$lt_SED
10649
10650 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10651 Xsed="$SED -e s/^X//"
10652
10653 # The HP-UX ksh and POSIX shell print the target directory to stdout
10654 # if CDPATH is set.
10655 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10656
10657 # The names of the tagged configurations supported by this script.
10658 available_tags=
10659
10660 # ### BEGIN LIBTOOL CONFIG
10661
10662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10663
10664 # Shell to use when invoking shell scripts.
10665 SHELL=$lt_SHELL
10666
10667 # Whether or not to build shared libraries.
10668 build_libtool_libs=$enable_shared
10669
10670 # Whether or not to build static libraries.
10671 build_old_libs=$enable_static
10672
10673 # Whether or not to add -lc for building shared libraries.
10674 build_libtool_need_lc=$archive_cmds_need_lc
10675
10676 # Whether or not to disallow shared libs when runtime libs are static
10677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10678
10679 # Whether or not to optimize for fast installation.
10680 fast_install=$enable_fast_install
10681
10682 # The host system.
10683 host_alias=$host_alias
10684 host=$host
10685
10686 # An echo program that does not interpret backslashes.
10687 echo=$lt_echo
10688
10689 # The archiver.
10690 AR=$lt_AR
10691 AR_FLAGS=$lt_AR_FLAGS
10692
10693 # A C compiler.
10694 LTCC=$lt_LTCC
10695
10696 # A language-specific compiler.
10697 CC=$lt_compiler
10698
10699 # Is the compiler the GNU C compiler?
10700 with_gcc=$GCC
10701
10702 # An ERE matcher.
10703 EGREP=$lt_EGREP
10704
10705 # The linker used to build libraries.
10706 LD=$lt_LD
10707
10708 # Whether we need hard or soft links.
10709 LN_S=$lt_LN_S
10710
10711 # A BSD-compatible nm program.
10712 NM=$lt_NM
10713
10714 # A symbol stripping program
10715 STRIP=$lt_STRIP
10716
10717 # Used to examine libraries when file_magic_cmd begins "file"
10718 MAGIC_CMD=$MAGIC_CMD
10719
10720 # Used on cygwin: DLL creation program.
10721 DLLTOOL="$DLLTOOL"
10722
10723 # Used on cygwin: object dumper.
10724 OBJDUMP="$OBJDUMP"
10725
10726 # Used on cygwin: assembler.
10727 AS="$AS"
10728
10729 # The name of the directory that contains temporary libtool files.
10730 objdir=$objdir
10731
10732 # How to create reloadable object files.
10733 reload_flag=$lt_reload_flag
10734 reload_cmds=$lt_reload_cmds
10735
10736 # How to pass a linker flag through the compiler.
10737 wl=$lt_lt_prog_compiler_wl
10738
10739 # Object file suffix (normally "o").
10740 objext="$ac_objext"
10741
10742 # Old archive suffix (normally "a").
10743 libext="$libext"
10744
10745 # Shared library suffix (normally ".so").
10746 shrext_cmds='$shrext_cmds'
10747
10748 # Executable file suffix (normally "").
10749 exeext="$exeext"
10750
10751 # Additional compiler flags for building library objects.
10752 pic_flag=$lt_lt_prog_compiler_pic
10753 pic_mode=$pic_mode
10754
10755 # What is the maximum length of a command?
10756 max_cmd_len=$lt_cv_sys_max_cmd_len
10757
10758 # Does compiler simultaneously support -c and -o options?
10759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10760
10761 # Must we lock files when doing compilation ?
10762 need_locks=$lt_need_locks
10763
10764 # Do we need the lib prefix for modules?
10765 need_lib_prefix=$need_lib_prefix
10766
10767 # Do we need a version for libraries?
10768 need_version=$need_version
10769
10770 # Whether dlopen is supported.
10771 dlopen_support=$enable_dlopen
10772
10773 # Whether dlopen of programs is supported.
10774 dlopen_self=$enable_dlopen_self
10775
10776 # Whether dlopen of statically linked programs is supported.
10777 dlopen_self_static=$enable_dlopen_self_static
10778
10779 # Compiler flag to prevent dynamic linking.
10780 link_static_flag=$lt_lt_prog_compiler_static
10781
10782 # Compiler flag to turn off builtin functions.
10783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10784
10785 # Compiler flag to allow reflexive dlopens.
10786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10787
10788 # Compiler flag to generate shared objects directly from archives.
10789 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10790
10791 # Compiler flag to generate thread-safe objects.
10792 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10793
10794 # Library versioning type.
10795 version_type=$version_type
10796
10797 # Format of library name prefix.
10798 libname_spec=$lt_libname_spec
10799
10800 # List of archive names.  First name is the real one, the rest are links.
10801 # The last name is the one that the linker finds with -lNAME.
10802 library_names_spec=$lt_library_names_spec
10803
10804 # The coded name of the library, if different from the real name.
10805 soname_spec=$lt_soname_spec
10806
10807 # Commands used to build and install an old-style archive.
10808 RANLIB=$lt_RANLIB
10809 old_archive_cmds=$lt_old_archive_cmds
10810 old_postinstall_cmds=$lt_old_postinstall_cmds
10811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10812
10813 # Create an old-style archive from a shared archive.
10814 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10815
10816 # Create a temporary old-style archive to link instead of a shared archive.
10817 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10818
10819 # Commands used to build and install a shared archive.
10820 archive_cmds=$lt_archive_cmds
10821 archive_expsym_cmds=$lt_archive_expsym_cmds
10822 postinstall_cmds=$lt_postinstall_cmds
10823 postuninstall_cmds=$lt_postuninstall_cmds
10824
10825 # Commands used to build a loadable module (assumed same as above if empty)
10826 module_cmds=$lt_module_cmds
10827 module_expsym_cmds=$lt_module_expsym_cmds
10828
10829 # Commands to strip libraries.
10830 old_striplib=$lt_old_striplib
10831 striplib=$lt_striplib
10832
10833 # Dependencies to place before the objects being linked to create a
10834 # shared library.
10835 predep_objects=$lt_predep_objects
10836
10837 # Dependencies to place after the objects being linked to create a
10838 # shared library.
10839 postdep_objects=$lt_postdep_objects
10840
10841 # Dependencies to place before the objects being linked to create a
10842 # shared library.
10843 predeps=$lt_predeps
10844
10845 # Dependencies to place after the objects being linked to create a
10846 # shared library.
10847 postdeps=$lt_postdeps
10848
10849 # The library search path used internally by the compiler when linking
10850 # a shared library.
10851 compiler_lib_search_path=$lt_compiler_lib_search_path
10852
10853 # Method to check whether dependent libraries are shared objects.
10854 deplibs_check_method=$lt_deplibs_check_method
10855
10856 # Command to use when deplibs_check_method == file_magic.
10857 file_magic_cmd=$lt_file_magic_cmd
10858
10859 # Flag that allows shared libraries with undefined symbols to be built.
10860 allow_undefined_flag=$lt_allow_undefined_flag
10861
10862 # Flag that forces no undefined symbols.
10863 no_undefined_flag=$lt_no_undefined_flag
10864
10865 # Commands used to finish a libtool library installation in a directory.
10866 finish_cmds=$lt_finish_cmds
10867
10868 # Same as above, but a single script fragment to be evaled but not shown.
10869 finish_eval=$lt_finish_eval
10870
10871 # Take the output of nm and produce a listing of raw symbols and C names.
10872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10873
10874 # Transform the output of nm in a proper C declaration
10875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10876
10877 # Transform the output of nm in a C name address pair
10878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10879
10880 # This is the shared library runtime path variable.
10881 runpath_var=$runpath_var
10882
10883 # This is the shared library path variable.
10884 shlibpath_var=$shlibpath_var
10885
10886 # Is shlibpath searched before the hard-coded library search path?
10887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10888
10889 # How to hardcode a shared library path into an executable.
10890 hardcode_action=$hardcode_action
10891
10892 # Whether we should hardcode library paths into libraries.
10893 hardcode_into_libs=$hardcode_into_libs
10894
10895 # Flag to hardcode \$libdir into a binary during linking.
10896 # This must work even if \$libdir does not exist.
10897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10898
10899 # If ld is used when linking, flag to hardcode \$libdir into
10900 # a binary during linking. This must work even if \$libdir does
10901 # not exist.
10902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10903
10904 # Whether we need a single -rpath flag with a separated argument.
10905 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10906
10907 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10908 # resulting binary.
10909 hardcode_direct=$hardcode_direct
10910
10911 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10912 # resulting binary.
10913 hardcode_minus_L=$hardcode_minus_L
10914
10915 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10916 # the resulting binary.
10917 hardcode_shlibpath_var=$hardcode_shlibpath_var
10918
10919 # Set to yes if building a shared library automatically hardcodes DIR into the library
10920 # and all subsequent libraries and executables linked against it.
10921 hardcode_automatic=$hardcode_automatic
10922
10923 # Variables whose values should be saved in libtool wrapper scripts and
10924 # restored at relink time.
10925 variables_saved_for_relink="$variables_saved_for_relink"
10926
10927 # Whether libtool must link a program against all its dependency libraries.
10928 link_all_deplibs=$link_all_deplibs
10929
10930 # Compile-time system search path for libraries
10931 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10932
10933 # Run-time system search path for libraries
10934 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10935
10936 # Fix the shell variable \$srcfile for the compiler.
10937 fix_srcfile_path="$fix_srcfile_path"
10938
10939 # Set to yes if exported symbols are required.
10940 always_export_symbols=$always_export_symbols
10941
10942 # The commands to list exported symbols.
10943 export_symbols_cmds=$lt_export_symbols_cmds
10944
10945 # The commands to extract the exported symbol list from a shared archive.
10946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10947
10948 # Symbols that should not be listed in the preloaded symbols.
10949 exclude_expsyms=$lt_exclude_expsyms
10950
10951 # Symbols that must always be exported.
10952 include_expsyms=$lt_include_expsyms
10953
10954 # ### END LIBTOOL CONFIG
10955
10956 __EOF__
10957
10958
10959   case $host_os in
10960   aix3*)
10961     cat <<\EOF >> "$cfgfile"
10962
10963 # AIX sometimes has problems with the GCC collect2 program.  For some
10964 # reason, if we set the COLLECT_NAMES environment variable, the problems
10965 # vanish in a puff of smoke.
10966 if test "X${COLLECT_NAMES+set}" != Xset; then
10967   COLLECT_NAMES=
10968   export COLLECT_NAMES
10969 fi
10970 EOF
10971     ;;
10972   esac
10973
10974   # We use sed instead of cat because bash on DJGPP gets confused if
10975   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10976   # text mode, it properly converts lines to CR/LF.  This bash problem
10977   # is reportedly fixed, but why not run on old versions too?
10978   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10979
10980   mv -f "$cfgfile" "$ofile" || \
10981     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10982   chmod +x "$ofile"
10983
10984 else
10985   # If there is no Makefile yet, we rely on a make rule to execute
10986   # `config.status --recheck' to rerun these tests and create the
10987   # libtool script then.
10988   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10989   if test -f "$ltmain_in"; then
10990     test -f Makefile && make "$ltmain"
10991   fi
10992 fi
10993
10994
10995 ac_ext=c
10996 ac_cpp='$CPP $CPPFLAGS'
10997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11000
11001 CC="$lt_save_CC"
11002
11003
11004 # Check whether --with-tags or --without-tags was given.
11005 if test "${with_tags+set}" = set; then
11006   withval="$with_tags"
11007   tagnames="$withval"
11008 fi;
11009
11010 if test -f "$ltmain" && test -n "$tagnames"; then
11011   if test ! -f "${ofile}"; then
11012     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11013 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11014   fi
11015
11016   if test -z "$LTCC"; then
11017     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11018     if test -z "$LTCC"; then
11019       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11020 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11021     else
11022       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11023 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11024     fi
11025   fi
11026
11027   # Extract list of available tagged configurations in $ofile.
11028   # Note that this assumes the entire list is on one line.
11029   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11030
11031   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11032   for tagname in $tagnames; do
11033     IFS="$lt_save_ifs"
11034     # Check whether tagname contains only valid characters
11035     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11036     "") ;;
11037     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11038 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11039    { (exit 1); exit 1; }; }
11040         ;;
11041     esac
11042
11043     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11044     then
11045       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11046 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11047    { (exit 1); exit 1; }; }
11048     fi
11049
11050     # Update the list of available tags.
11051     if test -n "$tagname"; then
11052       echo appending configuration tag "$tagname" to $ofile
11053
11054       case $tagname in
11055       CXX)
11056         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11057             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11058             (test "X$CXX" != "Xg++"))) ; then
11059           ac_ext=cc
11060 ac_cpp='$CXXCPP $CPPFLAGS'
11061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11064
11065
11066
11067
11068 archive_cmds_need_lc_CXX=no
11069 allow_undefined_flag_CXX=
11070 always_export_symbols_CXX=no
11071 archive_expsym_cmds_CXX=
11072 export_dynamic_flag_spec_CXX=
11073 hardcode_direct_CXX=no
11074 hardcode_libdir_flag_spec_CXX=
11075 hardcode_libdir_flag_spec_ld_CXX=
11076 hardcode_libdir_separator_CXX=
11077 hardcode_minus_L_CXX=no
11078 hardcode_automatic_CXX=no
11079 module_cmds_CXX=
11080 module_expsym_cmds_CXX=
11081 link_all_deplibs_CXX=unknown
11082 old_archive_cmds_CXX=$old_archive_cmds
11083 no_undefined_flag_CXX=
11084 whole_archive_flag_spec_CXX=
11085 enable_shared_with_static_runtimes_CXX=no
11086
11087 # Dependencies to place before and after the object being linked:
11088 predep_objects_CXX=
11089 postdep_objects_CXX=
11090 predeps_CXX=
11091 postdeps_CXX=
11092 compiler_lib_search_path_CXX=
11093
11094 # Source file extension for C++ test sources.
11095 ac_ext=cc
11096
11097 # Object file extension for compiled C++ test sources.
11098 objext=o
11099 objext_CXX=$objext
11100
11101 # Code to be used in simple compile tests
11102 lt_simple_compile_test_code="int some_variable = 0;\n"
11103
11104 # Code to be used in simple link tests
11105 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11106
11107 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11108
11109 # If no C compiler was specified, use CC.
11110 LTCC=${LTCC-"$CC"}
11111
11112 # Allow CC to be a program name with arguments.
11113 compiler=$CC
11114
11115
11116 # Allow CC to be a program name with arguments.
11117 lt_save_CC=$CC
11118 lt_save_LD=$LD
11119 lt_save_GCC=$GCC
11120 GCC=$GXX
11121 lt_save_with_gnu_ld=$with_gnu_ld
11122 lt_save_path_LD=$lt_cv_path_LD
11123 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11124   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11125 else
11126   unset lt_cv_prog_gnu_ld
11127 fi
11128 if test -n "${lt_cv_path_LDCXX+set}"; then
11129   lt_cv_path_LD=$lt_cv_path_LDCXX
11130 else
11131   unset lt_cv_path_LD
11132 fi
11133 test -z "${LDCXX+set}" || LD=$LDCXX
11134 CC=${CXX-"c++"}
11135 compiler=$CC
11136 compiler_CXX=$CC
11137 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11138
11139 # We don't want -fno-exception wen compiling C++ code, so set the
11140 # no_builtin_flag separately
11141 if test "$GXX" = yes; then
11142   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11143 else
11144   lt_prog_compiler_no_builtin_flag_CXX=
11145 fi
11146
11147 if test "$GXX" = yes; then
11148   # Set up default GNU C++ configuration
11149
11150
11151 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11152 if test "${with_gnu_ld+set}" = set; then
11153   withval="$with_gnu_ld"
11154   test "$withval" = no || with_gnu_ld=yes
11155 else
11156   with_gnu_ld=no
11157 fi;
11158 ac_prog=ld
11159 if test "$GCC" = yes; then
11160   # Check if gcc -print-prog-name=ld gives a path.
11161   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11162 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11163   case $host in
11164   *-*-mingw*)
11165     # gcc leaves a trailing carriage return which upsets mingw
11166     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11167   *)
11168     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11169   esac
11170   case $ac_prog in
11171     # Accept absolute paths.
11172     [\\/]* | ?:[\\/]*)
11173       re_direlt='/[^/][^/]*/\.\./'
11174       # Canonicalize the pathname of ld
11175       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11176       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11177         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11178       done
11179       test -z "$LD" && LD="$ac_prog"
11180       ;;
11181   "")
11182     # If it fails, then pretend we aren't using GCC.
11183     ac_prog=ld
11184     ;;
11185   *)
11186     # If it is relative, then search for the first ld in PATH.
11187     with_gnu_ld=unknown
11188     ;;
11189   esac
11190 elif test "$with_gnu_ld" = yes; then
11191   echo "$as_me:$LINENO: checking for GNU ld" >&5
11192 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11193 else
11194   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11195 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11196 fi
11197 if test "${lt_cv_path_LD+set}" = set; then
11198   echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200   if test -z "$LD"; then
11201   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11202   for ac_dir in $PATH; do
11203     IFS="$lt_save_ifs"
11204     test -z "$ac_dir" && ac_dir=.
11205     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11206       lt_cv_path_LD="$ac_dir/$ac_prog"
11207       # Check to see if the program is GNU ld.  I'd rather use --version,
11208       # but apparently some GNU ld's only accept -v.
11209       # Break only if it was the GNU/non-GNU ld that we prefer.
11210       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11211       *GNU* | *'with BFD'*)
11212         test "$with_gnu_ld" != no && break
11213         ;;
11214       *)
11215         test "$with_gnu_ld" != yes && break
11216         ;;
11217       esac
11218     fi
11219   done
11220   IFS="$lt_save_ifs"
11221 else
11222   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11223 fi
11224 fi
11225
11226 LD="$lt_cv_path_LD"
11227 if test -n "$LD"; then
11228   echo "$as_me:$LINENO: result: $LD" >&5
11229 echo "${ECHO_T}$LD" >&6
11230 else
11231   echo "$as_me:$LINENO: result: no" >&5
11232 echo "${ECHO_T}no" >&6
11233 fi
11234 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11235 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11236    { (exit 1); exit 1; }; }
11237 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11238 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11239 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11240   echo $ECHO_N "(cached) $ECHO_C" >&6
11241 else
11242   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11243 case `$LD -v 2>&1 </dev/null` in
11244 *GNU* | *'with BFD'*)
11245   lt_cv_prog_gnu_ld=yes
11246   ;;
11247 *)
11248   lt_cv_prog_gnu_ld=no
11249   ;;
11250 esac
11251 fi
11252 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11253 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11254 with_gnu_ld=$lt_cv_prog_gnu_ld
11255
11256
11257
11258   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11259   # archiving commands below assume that GNU ld is being used.
11260   if test "$with_gnu_ld" = yes; then
11261     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11262     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'
11263
11264     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11265     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11266
11267     # If archive_cmds runs LD, not CC, wlarc should be empty
11268     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11269     #     investigate it a little bit more. (MM)
11270     wlarc='${wl}'
11271
11272     # ancient GNU ld didn't support --whole-archive et. al.
11273     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11274         grep 'no-whole-archive' > /dev/null; then
11275       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11276     else
11277       whole_archive_flag_spec_CXX=
11278     fi
11279   else
11280     with_gnu_ld=no
11281     wlarc=
11282
11283     # A generic and very simple default shared library creation
11284     # command for GNU C++ for the case where it uses the native
11285     # linker, instead of GNU ld.  If possible, this setting should
11286     # overridden to take advantage of the native linker features on
11287     # the platform it is being used on.
11288     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11289   fi
11290
11291   # Commands to make compiler produce verbose output that lists
11292   # what "hidden" libraries, object files and flags are used when
11293   # linking a shared library.
11294   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11295
11296 else
11297   GXX=no
11298   with_gnu_ld=no
11299   wlarc=
11300 fi
11301
11302 # PORTME: fill in a description of your system's C++ link characteristics
11303 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11304 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11305 ld_shlibs_CXX=yes
11306 case $host_os in
11307   aix3*)
11308     # FIXME: insert proper C++ library support
11309     ld_shlibs_CXX=no
11310     ;;
11311   aix4* | aix5*)
11312     if test "$host_cpu" = ia64; then
11313       # On IA64, the linker does run time linking by default, so we don't
11314       # have to do anything special.
11315       aix_use_runtimelinking=no
11316       exp_sym_flag='-Bexport'
11317       no_entry_flag=""
11318     else
11319       aix_use_runtimelinking=no
11320
11321       # Test if we are trying to use run time linking or normal
11322       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11323       # need to do runtime linking.
11324       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11325         for ld_flag in $LDFLAGS; do
11326           case $ld_flag in
11327           *-brtl*)
11328             aix_use_runtimelinking=yes
11329             break
11330             ;;
11331           esac
11332         done
11333       esac
11334
11335       exp_sym_flag='-bexport'
11336       no_entry_flag='-bnoentry'
11337     fi
11338
11339     # When large executables or shared objects are built, AIX ld can
11340     # have problems creating the table of contents.  If linking a library
11341     # or program results in "error TOC overflow" add -mminimal-toc to
11342     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11343     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11344
11345     archive_cmds_CXX=''
11346     hardcode_direct_CXX=yes
11347     hardcode_libdir_separator_CXX=':'
11348     link_all_deplibs_CXX=yes
11349
11350     if test "$GXX" = yes; then
11351       case $host_os in aix4.012|aix4.012.*)
11352       # We only want to do this on AIX 4.2 and lower, the check
11353       # below for broken collect2 doesn't work under 4.3+
11354         collect2name=`${CC} -print-prog-name=collect2`
11355         if test -f "$collect2name" && \
11356            strings "$collect2name" | grep resolve_lib_name >/dev/null
11357         then
11358           # We have reworked collect2
11359           hardcode_direct_CXX=yes
11360         else
11361           # We have old collect2
11362           hardcode_direct_CXX=unsupported
11363           # It fails to find uninstalled libraries when the uninstalled
11364           # path is not listed in the libpath.  Setting hardcode_minus_L
11365           # to unsupported forces relinking
11366           hardcode_minus_L_CXX=yes
11367           hardcode_libdir_flag_spec_CXX='-L$libdir'
11368           hardcode_libdir_separator_CXX=
11369         fi
11370       esac
11371       shared_flag='-shared'
11372     else
11373       # not using gcc
11374       if test "$host_cpu" = ia64; then
11375         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11376         # chokes on -Wl,-G. The following line is correct:
11377         shared_flag='-G'
11378       else
11379         if test "$aix_use_runtimelinking" = yes; then
11380           shared_flag='${wl}-G'
11381         else
11382           shared_flag='${wl}-bM:SRE'
11383         fi
11384       fi
11385     fi
11386
11387     # It seems that -bexpall does not export symbols beginning with
11388     # underscore (_), so it is better to generate a list of symbols to export.
11389     always_export_symbols_CXX=yes
11390     if test "$aix_use_runtimelinking" = yes; then
11391       # Warning - without using the other runtime loading flags (-brtl),
11392       # -berok will link without error, but may produce a broken library.
11393       allow_undefined_flag_CXX='-berok'
11394       # Determine the default libpath from the value encoded in an empty executable.
11395       cat >conftest.$ac_ext <<_ACEOF
11396 /* confdefs.h.  */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h.  */
11401
11402 int
11403 main ()
11404 {
11405
11406   ;
11407   return 0;
11408 }
11409 _ACEOF
11410 rm -f conftest.$ac_objext conftest$ac_exeext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11412   (eval $ac_link) 2>conftest.er1
11413   ac_status=$?
11414   grep -v '^ *+' conftest.er1 >conftest.err
11415   rm -f conftest.er1
11416   cat conftest.err >&5
11417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418   (exit $ac_status); } &&
11419          { ac_try='test -z "$ac_cxx_werror_flag"
11420                          || test ! -s conftest.err'
11421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422   (eval $ac_try) 2>&5
11423   ac_status=$?
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); }; } &&
11426          { ac_try='test -s conftest$ac_exeext'
11427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428   (eval $ac_try) 2>&5
11429   ac_status=$?
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); }; }; then
11432
11433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11434 }'`
11435 # Check for a 64-bit object if we didn't find anything.
11436 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; }
11437 }'`; fi
11438 else
11439   echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11441
11442 fi
11443 rm -f conftest.err conftest.$ac_objext \
11444       conftest$ac_exeext conftest.$ac_ext
11445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11446
11447       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11448
11449       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"
11450      else
11451       if test "$host_cpu" = ia64; then
11452         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11453         allow_undefined_flag_CXX="-z nodefs"
11454         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"
11455       else
11456         # Determine the default libpath from the value encoded in an empty executable.
11457         cat >conftest.$ac_ext <<_ACEOF
11458 /* confdefs.h.  */
11459 _ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h.  */
11463
11464 int
11465 main ()
11466 {
11467
11468   ;
11469   return 0;
11470 }
11471 _ACEOF
11472 rm -f conftest.$ac_objext conftest$ac_exeext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11474   (eval $ac_link) 2>conftest.er1
11475   ac_status=$?
11476   grep -v '^ *+' conftest.er1 >conftest.err
11477   rm -f conftest.er1
11478   cat conftest.err >&5
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); } &&
11481          { ac_try='test -z "$ac_cxx_werror_flag"
11482                          || test ! -s conftest.err'
11483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484   (eval $ac_try) 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); }; } &&
11488          { ac_try='test -s conftest$ac_exeext'
11489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490   (eval $ac_try) 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); }; }; then
11494
11495 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11496 }'`
11497 # Check for a 64-bit object if we didn't find anything.
11498 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; }
11499 }'`; fi
11500 else
11501   echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504 fi
11505 rm -f conftest.err conftest.$ac_objext \
11506       conftest$ac_exeext conftest.$ac_ext
11507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11508
11509         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11510         # Warning - without using the other run time loading flags,
11511         # -berok will link without error, but may produce a broken library.
11512         no_undefined_flag_CXX=' ${wl}-bernotok'
11513         allow_undefined_flag_CXX=' ${wl}-berok'
11514         # -bexpall does not export symbols beginning with underscore (_)
11515         always_export_symbols_CXX=yes
11516         # Exported symbols can be pulled into shared objects from archives
11517         whole_archive_flag_spec_CXX=' '
11518         archive_cmds_need_lc_CXX=yes
11519         # This is similar to how AIX traditionally builds it's shared libraries.
11520         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11521       fi
11522     fi
11523     ;;
11524   chorus*)
11525     case $cc_basename in
11526       *)
11527         # FIXME: insert proper C++ library support
11528         ld_shlibs_CXX=no
11529         ;;
11530     esac
11531     ;;
11532
11533
11534   cygwin* | mingw* | pw32*)
11535     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11536     # as there is no search path for DLLs.
11537     hardcode_libdir_flag_spec_CXX='-L$libdir'
11538     allow_undefined_flag_CXX=unsupported
11539     always_export_symbols_CXX=no
11540     enable_shared_with_static_runtimes_CXX=yes
11541
11542     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11543       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'
11544       # If the export-symbols file already is a .def file (1st line
11545       # is EXPORTS), use it as is; otherwise, prepend...
11546       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11547         cp $export_symbols $output_objdir/$soname.def;
11548       else
11549         echo EXPORTS > $output_objdir/$soname.def;
11550         cat $export_symbols >> $output_objdir/$soname.def;
11551       fi~
11552       $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'
11553     else
11554       ld_shlibs_CXX=no
11555     fi
11556   ;;
11557       darwin* | rhapsody*)
11558         case "$host_os" in
11559         rhapsody* | darwin1.[012])
11560          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11561          ;;
11562        *) # Darwin 1.3 on
11563          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11564            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11565          else
11566            case ${MACOSX_DEPLOYMENT_TARGET} in
11567              10.[012])
11568                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11569                ;;
11570              10.*)
11571                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11572                ;;
11573            esac
11574          fi
11575          ;;
11576         esac
11577       archive_cmds_need_lc_CXX=no
11578       hardcode_direct_CXX=no
11579       hardcode_automatic_CXX=yes
11580       hardcode_shlibpath_var_CXX=unsupported
11581       whole_archive_flag_spec_CXX=''
11582       link_all_deplibs_CXX=yes
11583
11584     if test "$GXX" = yes ; then
11585       lt_int_apple_cc_single_mod=no
11586       output_verbose_link_cmd='echo'
11587       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11588        lt_int_apple_cc_single_mod=yes
11589       fi
11590       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11591        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11592       else
11593           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11594         fi
11595         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11596         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11597           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11598             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11599           else
11600             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11601           fi
11602             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11603       else
11604       case "$cc_basename" in
11605         xlc*)
11606          output_verbose_link_cmd='echo'
11607           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11608           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11609           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11610           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11611           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11612           ;;
11613        *)
11614          ld_shlibs_CXX=no
11615           ;;
11616       esac
11617       fi
11618         ;;
11619
11620   dgux*)
11621     case $cc_basename in
11622       ec++)
11623         # FIXME: insert proper C++ library support
11624         ld_shlibs_CXX=no
11625         ;;
11626       ghcx)
11627         # Green Hills C++ Compiler
11628         # FIXME: insert proper C++ library support
11629         ld_shlibs_CXX=no
11630         ;;
11631       *)
11632         # FIXME: insert proper C++ library support
11633         ld_shlibs_CXX=no
11634         ;;
11635     esac
11636     ;;
11637   freebsd12*)
11638     # C++ shared libraries reported to be fairly broken before switch to ELF
11639     ld_shlibs_CXX=no
11640     ;;
11641   freebsd-elf*)
11642     archive_cmds_need_lc_CXX=no
11643     ;;
11644   freebsd* | kfreebsd*-gnu)
11645     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11646     # conventions
11647     ld_shlibs_CXX=yes
11648     ;;
11649   gnu*)
11650     ;;
11651   hpux9*)
11652     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11653     hardcode_libdir_separator_CXX=:
11654     export_dynamic_flag_spec_CXX='${wl}-E'
11655     hardcode_direct_CXX=yes
11656     hardcode_minus_L_CXX=yes # Not in the search PATH,
11657                                 # but as the default
11658                                 # location of the library.
11659
11660     case $cc_basename in
11661     CC)
11662       # FIXME: insert proper C++ library support
11663       ld_shlibs_CXX=no
11664       ;;
11665     aCC)
11666       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11667       # Commands to make compiler produce verbose output that lists
11668       # what "hidden" libraries, object files and flags are used when
11669       # linking a shared library.
11670       #
11671       # There doesn't appear to be a way to prevent this compiler from
11672       # explicitly linking system object files so we need to strip them
11673       # from the output so that they don't get included in the library
11674       # dependencies.
11675       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'
11676       ;;
11677     *)
11678       if test "$GXX" = yes; then
11679         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11680       else
11681         # FIXME: insert proper C++ library support
11682         ld_shlibs_CXX=no
11683       fi
11684       ;;
11685     esac
11686     ;;
11687   hpux10*|hpux11*)
11688     if test $with_gnu_ld = no; then
11689       case "$host_cpu" in
11690       hppa*64*)
11691         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11692         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11693         hardcode_libdir_separator_CXX=:
11694         ;;
11695       ia64*)
11696         hardcode_libdir_flag_spec_CXX='-L$libdir'
11697         ;;
11698       *)
11699         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11700         hardcode_libdir_separator_CXX=:
11701         export_dynamic_flag_spec_CXX='${wl}-E'
11702         ;;
11703       esac
11704     fi
11705     case "$host_cpu" in
11706     hppa*64*)
11707       hardcode_direct_CXX=no
11708       hardcode_shlibpath_var_CXX=no
11709       ;;
11710     ia64*)
11711       hardcode_direct_CXX=no
11712       hardcode_shlibpath_var_CXX=no
11713       hardcode_minus_L_CXX=yes # Not in the search PATH,
11714                                               # but as the default
11715                                               # location of the library.
11716       ;;
11717     *)
11718       hardcode_direct_CXX=yes
11719       hardcode_minus_L_CXX=yes # Not in the search PATH,
11720                                               # but as the default
11721                                               # location of the library.
11722       ;;
11723     esac
11724
11725     case $cc_basename in
11726       CC)
11727         # FIXME: insert proper C++ library support
11728         ld_shlibs_CXX=no
11729         ;;
11730       aCC)
11731         case "$host_cpu" in
11732         hppa*64*|ia64*)
11733           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11734           ;;
11735         *)
11736           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11737           ;;
11738         esac
11739         # Commands to make compiler produce verbose output that lists
11740         # what "hidden" libraries, object files and flags are used when
11741         # linking a shared library.
11742         #
11743         # There doesn't appear to be a way to prevent this compiler from
11744         # explicitly linking system object files so we need to strip them
11745         # from the output so that they don't get included in the library
11746         # dependencies.
11747         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'
11748         ;;
11749       *)
11750         if test "$GXX" = yes; then
11751           if test $with_gnu_ld = no; then
11752             case "$host_cpu" in
11753             ia64*|hppa*64*)
11754               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11755               ;;
11756             *)
11757               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'
11758               ;;
11759             esac
11760           fi
11761         else
11762           # FIXME: insert proper C++ library support
11763           ld_shlibs_CXX=no
11764         fi
11765         ;;
11766     esac
11767     ;;
11768   irix5* | irix6*)
11769     case $cc_basename in
11770       CC)
11771         # SGI C++
11772         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'
11773
11774         # Archives containing C++ object files must be created using
11775         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11776         # necessary to make sure instantiated templates are included
11777         # in the archive.
11778         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11779         ;;
11780       *)
11781         if test "$GXX" = yes; then
11782           if test "$with_gnu_ld" = no; then
11783             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'
11784           else
11785             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'
11786           fi
11787         fi
11788         link_all_deplibs_CXX=yes
11789         ;;
11790     esac
11791     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11792     hardcode_libdir_separator_CXX=:
11793     ;;
11794   linux*)
11795     case $cc_basename in
11796       KCC)
11797         # Kuck and Associates, Inc. (KAI) C++ Compiler
11798
11799         # KCC will only create a shared library if the output file
11800         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11801         # to its proper name (with version) after linking.
11802         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'
11803         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'
11804         # Commands to make compiler produce verbose output that lists
11805         # what "hidden" libraries, object files and flags are used when
11806         # linking a shared library.
11807         #
11808         # There doesn't appear to be a way to prevent this compiler from
11809         # explicitly linking system object files so we need to strip them
11810         # from the output so that they don't get included in the library
11811         # dependencies.
11812         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'
11813
11814         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11815         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11816
11817         # Archives containing C++ object files must be created using
11818         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11819         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11820         ;;
11821       icpc)
11822         # Intel C++
11823         with_gnu_ld=yes
11824         # version 8.0 and above of icpc choke on multiply defined symbols
11825         # if we add $predep_objects and $postdep_objects, however 7.1 and
11826         # earlier do not add the objects themselves.
11827         case `$CC -V 2>&1` in
11828         *"Version 7."*)
11829           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11830           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'
11831           ;;
11832         *)  # Version 8.0 or newer
11833           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11834         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11835           ;;
11836         esac
11837         archive_cmds_need_lc_CXX=no
11838         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11839         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11840         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11841         ;;
11842       cxx)
11843         # Compaq C++
11844         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11845         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'
11846
11847         runpath_var=LD_RUN_PATH
11848         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11849         hardcode_libdir_separator_CXX=:
11850
11851         # Commands to make compiler produce verbose output that lists
11852         # what "hidden" libraries, object files and flags are used when
11853         # linking a shared library.
11854         #
11855         # There doesn't appear to be a way to prevent this compiler from
11856         # explicitly linking system object files so we need to strip them
11857         # from the output so that they don't get included in the library
11858         # dependencies.
11859         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'
11860         ;;
11861     esac
11862     ;;
11863   lynxos*)
11864     # FIXME: insert proper C++ library support
11865     ld_shlibs_CXX=no
11866     ;;
11867   m88k*)
11868     # FIXME: insert proper C++ library support
11869     ld_shlibs_CXX=no
11870     ;;
11871   mvs*)
11872     case $cc_basename in
11873       cxx)
11874         # FIXME: insert proper C++ library support
11875         ld_shlibs_CXX=no
11876         ;;
11877       *)
11878         # FIXME: insert proper C++ library support
11879         ld_shlibs_CXX=no
11880         ;;
11881     esac
11882     ;;
11883   netbsd*)
11884     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11885       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11886       wlarc=
11887       hardcode_libdir_flag_spec_CXX='-R$libdir'
11888       hardcode_direct_CXX=yes
11889       hardcode_shlibpath_var_CXX=no
11890     fi
11891     # Workaround some broken pre-1.5 toolchains
11892     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11893     ;;
11894   openbsd2*)
11895     # C++ shared libraries are fairly broken
11896     ld_shlibs_CXX=no
11897     ;;
11898   openbsd*)
11899     hardcode_direct_CXX=yes
11900     hardcode_shlibpath_var_CXX=no
11901     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11902     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11903     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11904       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11905       export_dynamic_flag_spec_CXX='${wl}-E'
11906       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11907     fi
11908     output_verbose_link_cmd='echo'
11909     ;;
11910   osf3*)
11911     case $cc_basename in
11912       KCC)
11913         # Kuck and Associates, Inc. (KAI) C++ Compiler
11914
11915         # KCC will only create a shared library if the output file
11916         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11917         # to its proper name (with version) after linking.
11918         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'
11919
11920         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11921         hardcode_libdir_separator_CXX=:
11922
11923         # Archives containing C++ object files must be created using
11924         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11925         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11926
11927         ;;
11928       RCC)
11929         # Rational C++ 2.4.1
11930         # FIXME: insert proper C++ library support
11931         ld_shlibs_CXX=no
11932         ;;
11933       cxx)
11934         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11935         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'
11936
11937         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11938         hardcode_libdir_separator_CXX=:
11939
11940         # Commands to make compiler produce verbose output that lists
11941         # what "hidden" libraries, object files and flags are used when
11942         # linking a shared library.
11943         #
11944         # There doesn't appear to be a way to prevent this compiler from
11945         # explicitly linking system object files so we need to strip them
11946         # from the output so that they don't get included in the library
11947         # dependencies.
11948         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'
11949         ;;
11950       *)
11951         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11952           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11953           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'
11954
11955           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11956           hardcode_libdir_separator_CXX=:
11957
11958           # Commands to make compiler produce verbose output that lists
11959           # what "hidden" libraries, object files and flags are used when
11960           # linking a shared library.
11961           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11962
11963         else
11964           # FIXME: insert proper C++ library support
11965           ld_shlibs_CXX=no
11966         fi
11967         ;;
11968     esac
11969     ;;
11970   osf4* | osf5*)
11971     case $cc_basename in
11972       KCC)
11973         # Kuck and Associates, Inc. (KAI) C++ Compiler
11974
11975         # KCC will only create a shared library if the output file
11976         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11977         # to its proper name (with version) after linking.
11978         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'
11979
11980         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11981         hardcode_libdir_separator_CXX=:
11982
11983         # Archives containing C++ object files must be created using
11984         # the KAI C++ compiler.
11985         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11986         ;;
11987       RCC)
11988         # Rational C++ 2.4.1
11989         # FIXME: insert proper C++ library support
11990         ld_shlibs_CXX=no
11991         ;;
11992       cxx)
11993         allow_undefined_flag_CXX=' -expect_unresolved \*'
11994         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'
11995         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11996           echo "-hidden">> $lib.exp~
11997           $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~
11998           $rm $lib.exp'
11999
12000         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12001         hardcode_libdir_separator_CXX=:
12002
12003         # Commands to make compiler produce verbose output that lists
12004         # what "hidden" libraries, object files and flags are used when
12005         # linking a shared library.
12006         #
12007         # There doesn't appear to be a way to prevent this compiler from
12008         # explicitly linking system object files so we need to strip them
12009         # from the output so that they don't get included in the library
12010         # dependencies.
12011         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'
12012         ;;
12013       *)
12014         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12015           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12016          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'
12017
12018           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12019           hardcode_libdir_separator_CXX=:
12020
12021           # Commands to make compiler produce verbose output that lists
12022           # what "hidden" libraries, object files and flags are used when
12023           # linking a shared library.
12024           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12025
12026         else
12027           # FIXME: insert proper C++ library support
12028           ld_shlibs_CXX=no
12029         fi
12030         ;;
12031     esac
12032     ;;
12033   psos*)
12034     # FIXME: insert proper C++ library support
12035     ld_shlibs_CXX=no
12036     ;;
12037   sco*)
12038     archive_cmds_need_lc_CXX=no
12039     case $cc_basename in
12040       CC)
12041         # FIXME: insert proper C++ library support
12042         ld_shlibs_CXX=no
12043         ;;
12044       *)
12045         # FIXME: insert proper C++ library support
12046         ld_shlibs_CXX=no
12047         ;;
12048     esac
12049     ;;
12050   sunos4*)
12051     case $cc_basename in
12052       CC)
12053         # Sun C++ 4.x
12054         # FIXME: insert proper C++ library support
12055         ld_shlibs_CXX=no
12056         ;;
12057       lcc)
12058         # Lucid
12059         # FIXME: insert proper C++ library support
12060         ld_shlibs_CXX=no
12061         ;;
12062       *)
12063         # FIXME: insert proper C++ library support
12064         ld_shlibs_CXX=no
12065         ;;
12066     esac
12067     ;;
12068   solaris*)
12069     case $cc_basename in
12070       CC)
12071         # Sun C++ 4.2, 5.x and Centerline C++
12072         no_undefined_flag_CXX=' -zdefs'
12073         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12074         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12075         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12076
12077         hardcode_libdir_flag_spec_CXX='-R$libdir'
12078         hardcode_shlibpath_var_CXX=no
12079         case $host_os in
12080           solaris2.0-5 | solaris2.0-5.*) ;;
12081           *)
12082             # The C++ compiler is used as linker so we must use $wl
12083             # flag to pass the commands to the underlying system
12084             # linker.
12085             # Supported since Solaris 2.6 (maybe 2.5.1?)
12086             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12087             ;;
12088         esac
12089         link_all_deplibs_CXX=yes
12090
12091         # Commands to make compiler produce verbose output that lists
12092         # what "hidden" libraries, object files and flags are used when
12093         # linking a shared library.
12094         #
12095         # There doesn't appear to be a way to prevent this compiler from
12096         # explicitly linking system object files so we need to strip them
12097         # from the output so that they don't get included in the library
12098         # dependencies.
12099         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'
12100
12101         # Archives containing C++ object files must be created using
12102         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12103         # necessary to make sure instantiated templates are included
12104         # in the archive.
12105         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12106         ;;
12107       gcx)
12108         # Green Hills C++ Compiler
12109         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12110
12111         # The C++ compiler must be used to create the archive.
12112         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12113         ;;
12114       *)
12115         # GNU C++ compiler with Solaris linker
12116         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12117           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12118           if $CC --version | grep -v '^2\.7' > /dev/null; then
12119             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12120             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12121                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12122
12123             # Commands to make compiler produce verbose output that lists
12124             # what "hidden" libraries, object files and flags are used when
12125             # linking a shared library.
12126             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12127           else
12128             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12129             # platform.
12130             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12131             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12132                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12133
12134             # Commands to make compiler produce verbose output that lists
12135             # what "hidden" libraries, object files and flags are used when
12136             # linking a shared library.
12137             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12138           fi
12139
12140           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12141         fi
12142         ;;
12143     esac
12144     ;;
12145   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12146     archive_cmds_need_lc_CXX=no
12147     ;;
12148   tandem*)
12149     case $cc_basename in
12150       NCC)
12151         # NonStop-UX NCC 3.20
12152         # FIXME: insert proper C++ library support
12153         ld_shlibs_CXX=no
12154         ;;
12155       *)
12156         # FIXME: insert proper C++ library support
12157         ld_shlibs_CXX=no
12158         ;;
12159     esac
12160     ;;
12161   vxworks*)
12162     # FIXME: insert proper C++ library support
12163     ld_shlibs_CXX=no
12164     ;;
12165   *)
12166     # FIXME: insert proper C++ library support
12167     ld_shlibs_CXX=no
12168     ;;
12169 esac
12170 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12171 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12172 test "$ld_shlibs_CXX" = no && can_build_shared=no
12173
12174 GCC_CXX="$GXX"
12175 LD_CXX="$LD"
12176
12177
12178 cat > conftest.$ac_ext <<EOF
12179 class Foo
12180 {
12181 public:
12182   Foo (void) { a = 0; }
12183 private:
12184   int a;
12185 };
12186 EOF
12187
12188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12189   (eval $ac_compile) 2>&5
12190   ac_status=$?
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); }; then
12193   # Parse the compiler output and extract the necessary
12194   # objects, libraries and library flags.
12195
12196   # Sentinel used to keep track of whether or not we are before
12197   # the conftest object file.
12198   pre_test_object_deps_done=no
12199
12200   # The `*' in the case matches for architectures that use `case' in
12201   # $output_verbose_cmd can trigger glob expansion during the loop
12202   # eval without this substitution.
12203   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12204
12205   for p in `eval $output_verbose_link_cmd`; do
12206     case $p in
12207
12208     -L* | -R* | -l*)
12209        # Some compilers place space between "-{L,R}" and the path.
12210        # Remove the space.
12211        if test $p = "-L" \
12212           || test $p = "-R"; then
12213          prev=$p
12214          continue
12215        else
12216          prev=
12217        fi
12218
12219        if test "$pre_test_object_deps_done" = no; then
12220          case $p in
12221          -L* | -R*)
12222            # Internal compiler library paths should come after those
12223            # provided the user.  The postdeps already come after the
12224            # user supplied libs so there is no need to process them.
12225            if test -z "$compiler_lib_search_path_CXX"; then
12226              compiler_lib_search_path_CXX="${prev}${p}"
12227            else
12228              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12229            fi
12230            ;;
12231          # The "-l" case would never come before the object being
12232          # linked, so don't bother handling this case.
12233          esac
12234        else
12235          if test -z "$postdeps_CXX"; then
12236            postdeps_CXX="${prev}${p}"
12237          else
12238            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12239          fi
12240        fi
12241        ;;
12242
12243     *.$objext)
12244        # This assumes that the test object file only shows up
12245        # once in the compiler output.
12246        if test "$p" = "conftest.$objext"; then
12247          pre_test_object_deps_done=yes
12248          continue
12249        fi
12250
12251        if test "$pre_test_object_deps_done" = no; then
12252          if test -z "$predep_objects_CXX"; then
12253            predep_objects_CXX="$p"
12254          else
12255            predep_objects_CXX="$predep_objects_CXX $p"
12256          fi
12257        else
12258          if test -z "$postdep_objects_CXX"; then
12259            postdep_objects_CXX="$p"
12260          else
12261            postdep_objects_CXX="$postdep_objects_CXX $p"
12262          fi
12263        fi
12264        ;;
12265
12266     *) ;; # Ignore the rest.
12267
12268     esac
12269   done
12270
12271   # Clean up.
12272   rm -f a.out a.exe
12273 else
12274   echo "libtool.m4: error: problem compiling CXX test program"
12275 fi
12276
12277 $rm -f confest.$objext
12278
12279 case " $postdeps_CXX " in
12280 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12281 esac
12282
12283 lt_prog_compiler_wl_CXX=
12284 lt_prog_compiler_pic_CXX=
12285 lt_prog_compiler_static_CXX=
12286
12287 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12288 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12289
12290   # C++ specific cases for pic, static, wl, etc.
12291   if test "$GXX" = yes; then
12292     lt_prog_compiler_wl_CXX='-Wl,'
12293     lt_prog_compiler_static_CXX='-static'
12294
12295     case $host_os in
12296     aix*)
12297       # All AIX code is PIC.
12298       if test "$host_cpu" = ia64; then
12299         # AIX 5 now supports IA64 processor
12300         lt_prog_compiler_static_CXX='-Bstatic'
12301       fi
12302       ;;
12303     amigaos*)
12304       # FIXME: we need at least 68020 code to build shared libraries, but
12305       # adding the `-m68020' flag to GCC prevents building anything better,
12306       # like `-m68040'.
12307       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12308       ;;
12309     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12310       # PIC is the default for these OSes.
12311       ;;
12312     mingw* | os2* | pw32*)
12313       # This hack is so that the source file can tell whether it is being
12314       # built for inclusion in a dll (and should export symbols for example).
12315       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12316       ;;
12317     darwin* | rhapsody*)
12318       # PIC is the default on this platform
12319       # Common symbols not allowed in MH_DYLIB files
12320       lt_prog_compiler_pic_CXX='-fno-common'
12321       ;;
12322     *djgpp*)
12323       # DJGPP does not support shared libraries at all
12324       lt_prog_compiler_pic_CXX=
12325       ;;
12326     sysv4*MP*)
12327       if test -d /usr/nec; then
12328         lt_prog_compiler_pic_CXX=-Kconform_pic
12329       fi
12330       ;;
12331     hpux*)
12332       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12333       # not for PA HP-UX.
12334       case "$host_cpu" in
12335       hppa*64*|ia64*)
12336         ;;
12337       *)
12338         lt_prog_compiler_pic_CXX='-fPIC'
12339         ;;
12340       esac
12341       ;;
12342     *)
12343       lt_prog_compiler_pic_CXX='-fPIC'
12344       ;;
12345     esac
12346   else
12347     case $host_os in
12348       aix4* | aix5*)
12349         # All AIX code is PIC.
12350         if test "$host_cpu" = ia64; then
12351           # AIX 5 now supports IA64 processor
12352           lt_prog_compiler_static_CXX='-Bstatic'
12353         else
12354           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12355         fi
12356         ;;
12357       chorus*)
12358         case $cc_basename in
12359         cxch68)
12360           # Green Hills C++ Compiler
12361           # _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"
12362           ;;
12363         esac
12364         ;;
12365        darwin*)
12366          # PIC is the default on this platform
12367          # Common symbols not allowed in MH_DYLIB files
12368          case "$cc_basename" in
12369            xlc*)
12370            lt_prog_compiler_pic_CXX='-qnocommon'
12371            lt_prog_compiler_wl_CXX='-Wl,'
12372            ;;
12373          esac
12374        ;;
12375       dgux*)
12376         case $cc_basename in
12377           ec++)
12378             lt_prog_compiler_pic_CXX='-KPIC'
12379             ;;
12380           ghcx)
12381             # Green Hills C++ Compiler
12382             lt_prog_compiler_pic_CXX='-pic'
12383             ;;
12384           *)
12385             ;;
12386         esac
12387         ;;
12388       freebsd* | kfreebsd*-gnu)
12389         # FreeBSD uses GNU C++
12390         ;;
12391       hpux9* | hpux10* | hpux11*)
12392         case $cc_basename in
12393           CC)
12394             lt_prog_compiler_wl_CXX='-Wl,'
12395             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12396             if test "$host_cpu" != ia64; then
12397               lt_prog_compiler_pic_CXX='+Z'
12398             fi
12399             ;;
12400           aCC)
12401             lt_prog_compiler_wl_CXX='-Wl,'
12402             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12403             case "$host_cpu" in
12404             hppa*64*|ia64*)
12405               # +Z the default
12406               ;;
12407             *)
12408               lt_prog_compiler_pic_CXX='+Z'
12409               ;;
12410             esac
12411             ;;
12412           *)
12413             ;;
12414         esac
12415         ;;
12416       irix5* | irix6* | nonstopux*)
12417         case $cc_basename in
12418           CC)
12419             lt_prog_compiler_wl_CXX='-Wl,'
12420             lt_prog_compiler_static_CXX='-non_shared'
12421             # CC pic flag -KPIC is the default.
12422             ;;
12423           *)
12424             ;;
12425         esac
12426         ;;
12427       linux*)
12428         case $cc_basename in
12429           KCC)
12430             # KAI C++ Compiler
12431             lt_prog_compiler_wl_CXX='--backend -Wl,'
12432             lt_prog_compiler_pic_CXX='-fPIC'
12433             ;;
12434           icpc)
12435             # Intel C++
12436             lt_prog_compiler_wl_CXX='-Wl,'
12437             lt_prog_compiler_pic_CXX='-KPIC'
12438             lt_prog_compiler_static_CXX='-static'
12439             ;;
12440           cxx)
12441             # Compaq C++
12442             # Make sure the PIC flag is empty.  It appears that all Alpha
12443             # Linux and Compaq Tru64 Unix objects are PIC.
12444             lt_prog_compiler_pic_CXX=
12445             lt_prog_compiler_static_CXX='-non_shared'
12446             ;;
12447           *)
12448             ;;
12449         esac
12450         ;;
12451       lynxos*)
12452         ;;
12453       m88k*)
12454         ;;
12455       mvs*)
12456         case $cc_basename in
12457           cxx)
12458             lt_prog_compiler_pic_CXX='-W c,exportall'
12459             ;;
12460           *)
12461             ;;
12462         esac
12463         ;;
12464       netbsd*)
12465         ;;
12466       osf3* | osf4* | osf5*)
12467         case $cc_basename in
12468           KCC)
12469             lt_prog_compiler_wl_CXX='--backend -Wl,'
12470             ;;
12471           RCC)
12472             # Rational C++ 2.4.1
12473             lt_prog_compiler_pic_CXX='-pic'
12474             ;;
12475           cxx)
12476             # Digital/Compaq C++
12477             lt_prog_compiler_wl_CXX='-Wl,'
12478             # Make sure the PIC flag is empty.  It appears that all Alpha
12479             # Linux and Compaq Tru64 Unix objects are PIC.
12480             lt_prog_compiler_pic_CXX=
12481             lt_prog_compiler_static_CXX='-non_shared'
12482             ;;
12483           *)
12484             ;;
12485         esac
12486         ;;
12487       psos*)
12488         ;;
12489       sco*)
12490         case $cc_basename in
12491           CC)
12492             lt_prog_compiler_pic_CXX='-fPIC'
12493             ;;
12494           *)
12495             ;;
12496         esac
12497         ;;
12498       solaris*)
12499         case $cc_basename in
12500           CC)
12501             # Sun C++ 4.2, 5.x and Centerline C++
12502             lt_prog_compiler_pic_CXX='-KPIC'
12503             lt_prog_compiler_static_CXX='-Bstatic'
12504             lt_prog_compiler_wl_CXX='-Qoption ld '
12505             ;;
12506           gcx)
12507             # Green Hills C++ Compiler
12508             lt_prog_compiler_pic_CXX='-PIC'
12509             ;;
12510           *)
12511             ;;
12512         esac
12513         ;;
12514       sunos4*)
12515         case $cc_basename in
12516           CC)
12517             # Sun C++ 4.x
12518             lt_prog_compiler_pic_CXX='-pic'
12519             lt_prog_compiler_static_CXX='-Bstatic'
12520             ;;
12521           lcc)
12522             # Lucid
12523             lt_prog_compiler_pic_CXX='-pic'
12524             ;;
12525           *)
12526             ;;
12527         esac
12528         ;;
12529       tandem*)
12530         case $cc_basename in
12531           NCC)
12532             # NonStop-UX NCC 3.20
12533             lt_prog_compiler_pic_CXX='-KPIC'
12534             ;;
12535           *)
12536             ;;
12537         esac
12538         ;;
12539       unixware*)
12540         ;;
12541       vxworks*)
12542         ;;
12543       *)
12544         lt_prog_compiler_can_build_shared_CXX=no
12545         ;;
12546     esac
12547   fi
12548
12549 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12550 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12551
12552 #
12553 # Check to make sure the PIC flag actually works.
12554 #
12555 if test -n "$lt_prog_compiler_pic_CXX"; then
12556
12557 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12558 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12559 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12560   echo $ECHO_N "(cached) $ECHO_C" >&6
12561 else
12562   lt_prog_compiler_pic_works_CXX=no
12563   ac_outfile=conftest.$ac_objext
12564    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12565    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12566    # Insert the option either (1) after the last *FLAGS variable, or
12567    # (2) before a word containing "conftest.", or (3) at the end.
12568    # Note that $ac_compile itself does not contain backslashes and begins
12569    # with a dollar sign (not a hyphen), so the echo should work correctly.
12570    # The option is referenced via a variable to avoid confusing sed.
12571    lt_compile=`echo "$ac_compile" | $SED \
12572    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12573    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12574    -e 's:$: $lt_compiler_flag:'`
12575    (eval echo "\"\$as_me:12575: $lt_compile\"" >&5)
12576    (eval "$lt_compile" 2>conftest.err)
12577    ac_status=$?
12578    cat conftest.err >&5
12579    echo "$as_me:12579: \$? = $ac_status" >&5
12580    if (exit $ac_status) && test -s "$ac_outfile"; then
12581      # The compiler can only warn and ignore the option if not recognized
12582      # So say no if there are warnings
12583      if test ! -s conftest.err; then
12584        lt_prog_compiler_pic_works_CXX=yes
12585      fi
12586    fi
12587    $rm conftest*
12588
12589 fi
12590 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12591 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12592
12593 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12594     case $lt_prog_compiler_pic_CXX in
12595      "" | " "*) ;;
12596      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12597      esac
12598 else
12599     lt_prog_compiler_pic_CXX=
12600      lt_prog_compiler_can_build_shared_CXX=no
12601 fi
12602
12603 fi
12604 case "$host_os" in
12605   # For platforms which do not support PIC, -DPIC is meaningless:
12606   *djgpp*)
12607     lt_prog_compiler_pic_CXX=
12608     ;;
12609   *)
12610     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12611     ;;
12612 esac
12613
12614 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12615 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12616 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12617   echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619   lt_cv_prog_compiler_c_o_CXX=no
12620    $rm -r conftest 2>/dev/null
12621    mkdir conftest
12622    cd conftest
12623    mkdir out
12624    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12625
12626    lt_compiler_flag="-o out/conftest2.$ac_objext"
12627    # Insert the option either (1) after the last *FLAGS variable, or
12628    # (2) before a word containing "conftest.", or (3) at the end.
12629    # Note that $ac_compile itself does not contain backslashes and begins
12630    # with a dollar sign (not a hyphen), so the echo should work correctly.
12631    lt_compile=`echo "$ac_compile" | $SED \
12632    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12633    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12634    -e 's:$: $lt_compiler_flag:'`
12635    (eval echo "\"\$as_me:12635: $lt_compile\"" >&5)
12636    (eval "$lt_compile" 2>out/conftest.err)
12637    ac_status=$?
12638    cat out/conftest.err >&5
12639    echo "$as_me:12639: \$? = $ac_status" >&5
12640    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12641    then
12642      # The compiler can only warn and ignore the option if not recognized
12643      # So say no if there are warnings
12644      if test ! -s out/conftest.err; then
12645        lt_cv_prog_compiler_c_o_CXX=yes
12646      fi
12647    fi
12648    chmod u+w .
12649    $rm conftest*
12650    # SGI C++ compiler will create directory out/ii_files/ for
12651    # template instantiation
12652    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12653    $rm out/* && rmdir out
12654    cd ..
12655    rmdir conftest
12656    $rm conftest*
12657
12658 fi
12659 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12660 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12661
12662
12663 hard_links="nottested"
12664 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12665   # do not overwrite the value of need_locks provided by the user
12666   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12667 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12668   hard_links=yes
12669   $rm conftest*
12670   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12671   touch conftest.a
12672   ln conftest.a conftest.b 2>&5 || hard_links=no
12673   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12674   echo "$as_me:$LINENO: result: $hard_links" >&5
12675 echo "${ECHO_T}$hard_links" >&6
12676   if test "$hard_links" = no; then
12677     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12678 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12679     need_locks=warn
12680   fi
12681 else
12682   need_locks=no
12683 fi
12684
12685 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12686 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12687
12688   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12689   case $host_os in
12690   aix4* | aix5*)
12691     # If we're using GNU nm, then we don't want the "-C" option.
12692     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12693     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12694       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'
12695     else
12696       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'
12697     fi
12698     ;;
12699   pw32*)
12700     export_symbols_cmds_CXX="$ltdll_cmds"
12701   ;;
12702   cygwin* | mingw*)
12703     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12704   ;;
12705   *)
12706     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12707   ;;
12708   esac
12709
12710 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12711 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12712 test "$ld_shlibs_CXX" = no && can_build_shared=no
12713
12714 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12715 if test "$GCC" = yes; then
12716   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12717 fi
12718
12719 #
12720 # Do we need to explicitly link libc?
12721 #
12722 case "x$archive_cmds_need_lc_CXX" in
12723 x|xyes)
12724   # Assume -lc should be added
12725   archive_cmds_need_lc_CXX=yes
12726
12727   if test "$enable_shared" = yes && test "$GCC" = yes; then
12728     case $archive_cmds_CXX in
12729     *'~'*)
12730       # FIXME: we may have to deal with multi-command sequences.
12731       ;;
12732     '$CC '*)
12733       # Test whether the compiler implicitly links with -lc since on some
12734       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12735       # to ld, don't add -lc before -lgcc.
12736       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12737 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12738       $rm conftest*
12739       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12740
12741       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12742   (eval $ac_compile) 2>&5
12743   ac_status=$?
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); } 2>conftest.err; then
12746         soname=conftest
12747         lib=conftest
12748         libobjs=conftest.$ac_objext
12749         deplibs=
12750         wl=$lt_prog_compiler_wl_CXX
12751         compiler_flags=-v
12752         linker_flags=-v
12753         verstring=
12754         output_objdir=.
12755         libname=conftest
12756         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12757         allow_undefined_flag_CXX=
12758         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12759   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12760   ac_status=$?
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); }
12763         then
12764           archive_cmds_need_lc_CXX=no
12765         else
12766           archive_cmds_need_lc_CXX=yes
12767         fi
12768         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12769       else
12770         cat conftest.err 1>&5
12771       fi
12772       $rm conftest*
12773       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12774 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12775       ;;
12776     esac
12777   fi
12778   ;;
12779 esac
12780
12781 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12782 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12783 library_names_spec=
12784 libname_spec='lib$name'
12785 soname_spec=
12786 shrext_cmds=".so"
12787 postinstall_cmds=
12788 postuninstall_cmds=
12789 finish_cmds=
12790 finish_eval=
12791 shlibpath_var=
12792 shlibpath_overrides_runpath=unknown
12793 version_type=none
12794 dynamic_linker="$host_os ld.so"
12795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12796 if test "$GCC" = yes; then
12797   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12798   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12799     # if the path contains ";" then we assume it to be the separator
12800     # otherwise default to the standard path separator (i.e. ":") - it is
12801     # assumed that no part of a normal pathname contains ";" but that should
12802     # okay in the real world where ";" in dirpaths is itself problematic.
12803     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12804   else
12805     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12806   fi
12807 else
12808   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12809 fi
12810 need_lib_prefix=unknown
12811 hardcode_into_libs=no
12812
12813 # when you set need_version to no, make sure it does not cause -set_version
12814 # flags to be left without arguments
12815 need_version=unknown
12816
12817 case $host_os in
12818 aix3*)
12819   version_type=linux
12820   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12821   shlibpath_var=LIBPATH
12822
12823   # AIX 3 has no versioning support, so we append a major version to the name.
12824   soname_spec='${libname}${release}${shared_ext}$major'
12825   ;;
12826
12827 aix4* | aix5*)
12828   version_type=linux
12829   need_lib_prefix=no
12830   need_version=no
12831   hardcode_into_libs=yes
12832   if test "$host_cpu" = ia64; then
12833     # AIX 5 supports IA64
12834     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12835     shlibpath_var=LD_LIBRARY_PATH
12836   else
12837     # With GCC up to 2.95.x, collect2 would create an import file
12838     # for dependence libraries.  The import file would start with
12839     # the line `#! .'.  This would cause the generated library to
12840     # depend on `.', always an invalid library.  This was fixed in
12841     # development snapshots of GCC prior to 3.0.
12842     case $host_os in
12843       aix4 | aix4.[01] | aix4.[01].*)
12844       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12845            echo ' yes '
12846            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12847         :
12848       else
12849         can_build_shared=no
12850       fi
12851       ;;
12852     esac
12853     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12854     # soname into executable. Probably we can add versioning support to
12855     # collect2, so additional links can be useful in future.
12856     if test "$aix_use_runtimelinking" = yes; then
12857       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12858       # instead of lib<name>.a to let people know that these are not
12859       # typical AIX shared libraries.
12860       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12861     else
12862       # We preserve .a as extension for shared libraries through AIX4.2
12863       # and later when we are not doing run time linking.
12864       library_names_spec='${libname}${release}.a $libname.a'
12865       soname_spec='${libname}${release}${shared_ext}$major'
12866     fi
12867     shlibpath_var=LIBPATH
12868   fi
12869   ;;
12870
12871 amigaos*)
12872   library_names_spec='$libname.ixlibrary $libname.a'
12873   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12874   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'
12875   ;;
12876
12877 beos*)
12878   library_names_spec='${libname}${shared_ext}'
12879   dynamic_linker="$host_os ld.so"
12880   shlibpath_var=LIBRARY_PATH
12881   ;;
12882
12883 bsdi[45]*)
12884   version_type=linux
12885   need_version=no
12886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12887   soname_spec='${libname}${release}${shared_ext}$major'
12888   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12889   shlibpath_var=LD_LIBRARY_PATH
12890   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12891   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12892   # the default ld.so.conf also contains /usr/contrib/lib and
12893   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12894   # libtool to hard-code these into programs
12895   ;;
12896
12897 cygwin* | mingw* | pw32*)
12898   version_type=windows
12899   shrext_cmds=".dll"
12900   need_version=no
12901   need_lib_prefix=no
12902
12903   case $GCC,$host_os in
12904   yes,cygwin* | yes,mingw* | yes,pw32*)
12905     library_names_spec='$libname.dll.a'
12906     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12907     postinstall_cmds='base_file=`basename \${file}`~
12908       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12909       dldir=$destdir/`dirname \$dlpath`~
12910       test -d \$dldir || mkdir -p \$dldir~
12911       $install_prog $dir/$dlname \$dldir/$dlname'
12912     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12913       dlpath=$dir/\$dldll~
12914        $rm \$dlpath'
12915     shlibpath_overrides_runpath=yes
12916
12917     case $host_os in
12918     cygwin*)
12919       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12920       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12921       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12922       ;;
12923     mingw*)
12924       # MinGW DLLs use traditional 'lib' prefix
12925       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12926       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12927       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12928         # It is most probably a Windows format PATH printed by
12929         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12930         # path with ; separators, and with drive letters. We can handle the
12931         # drive letters (cygwin fileutils understands them), so leave them,
12932         # especially as we might pass files found there to a mingw objdump,
12933         # which wouldn't understand a cygwinified path. Ahh.
12934         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12935       else
12936         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12937       fi
12938       ;;
12939     pw32*)
12940       # pw32 DLLs use 'pw' prefix rather than 'lib'
12941       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12942       ;;
12943     esac
12944     ;;
12945
12946   *)
12947     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12948     ;;
12949   esac
12950   dynamic_linker='Win32 ld.exe'
12951   # FIXME: first we should search . and the directory the executable is in
12952   shlibpath_var=PATH
12953   ;;
12954
12955 darwin* | rhapsody*)
12956   dynamic_linker="$host_os dyld"
12957   version_type=darwin
12958   need_lib_prefix=no
12959   need_version=no
12960   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12961   soname_spec='${libname}${release}${major}$shared_ext'
12962   shlibpath_overrides_runpath=yes
12963   shlibpath_var=DYLD_LIBRARY_PATH
12964   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12965   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12966   if test "$GCC" = yes; then
12967     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"`
12968   else
12969     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12970   fi
12971   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12972   ;;
12973
12974 dgux*)
12975   version_type=linux
12976   need_lib_prefix=no
12977   need_version=no
12978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12979   soname_spec='${libname}${release}${shared_ext}$major'
12980   shlibpath_var=LD_LIBRARY_PATH
12981   ;;
12982
12983 freebsd1*)
12984   dynamic_linker=no
12985   ;;
12986
12987 kfreebsd*-gnu)
12988   version_type=linux
12989   need_lib_prefix=no
12990   need_version=no
12991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12992   soname_spec='${libname}${release}${shared_ext}$major'
12993   shlibpath_var=LD_LIBRARY_PATH
12994   shlibpath_overrides_runpath=no
12995   hardcode_into_libs=yes
12996   dynamic_linker='GNU ld.so'
12997   ;;
12998
12999 freebsd*)
13000   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13001   version_type=freebsd-$objformat
13002   case $version_type in
13003     freebsd-elf*)
13004       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13005       need_version=no
13006       need_lib_prefix=no
13007       ;;
13008     freebsd-*)
13009       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13010       need_version=yes
13011       ;;
13012   esac
13013   shlibpath_var=LD_LIBRARY_PATH
13014   case $host_os in
13015   freebsd2*)
13016     shlibpath_overrides_runpath=yes
13017     ;;
13018   freebsd3.01* | freebsdelf3.01*)
13019     shlibpath_overrides_runpath=yes
13020     hardcode_into_libs=yes
13021     ;;
13022   *) # from 3.2 on
13023     shlibpath_overrides_runpath=no
13024     hardcode_into_libs=yes
13025     ;;
13026   esac
13027   ;;
13028
13029 gnu*)
13030   version_type=linux
13031   need_lib_prefix=no
13032   need_version=no
13033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13034   soname_spec='${libname}${release}${shared_ext}$major'
13035   shlibpath_var=LD_LIBRARY_PATH
13036   hardcode_into_libs=yes
13037   ;;
13038
13039 hpux9* | hpux10* | hpux11*)
13040   # Give a soname corresponding to the major version so that dld.sl refuses to
13041   # link against other versions.
13042   version_type=sunos
13043   need_lib_prefix=no
13044   need_version=no
13045   case "$host_cpu" in
13046   ia64*)
13047     shrext_cmds='.so'
13048     hardcode_into_libs=yes
13049     dynamic_linker="$host_os dld.so"
13050     shlibpath_var=LD_LIBRARY_PATH
13051     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13053     soname_spec='${libname}${release}${shared_ext}$major'
13054     if test "X$HPUX_IA64_MODE" = X32; then
13055       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13056     else
13057       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13058     fi
13059     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13060     ;;
13061    hppa*64*)
13062      shrext_cmds='.sl'
13063      hardcode_into_libs=yes
13064      dynamic_linker="$host_os dld.sl"
13065      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13066      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13067      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13068      soname_spec='${libname}${release}${shared_ext}$major'
13069      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13070      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13071      ;;
13072    *)
13073     shrext_cmds='.sl'
13074     dynamic_linker="$host_os dld.sl"
13075     shlibpath_var=SHLIB_PATH
13076     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13077     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078     soname_spec='${libname}${release}${shared_ext}$major'
13079     ;;
13080   esac
13081   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13082   postinstall_cmds='chmod 555 $lib'
13083   ;;
13084
13085 irix5* | irix6* | nonstopux*)
13086   case $host_os in
13087     nonstopux*) version_type=nonstopux ;;
13088     *)
13089         if test "$lt_cv_prog_gnu_ld" = yes; then
13090                 version_type=linux
13091         else
13092                 version_type=irix
13093         fi ;;
13094   esac
13095   need_lib_prefix=no
13096   need_version=no
13097   soname_spec='${libname}${release}${shared_ext}$major'
13098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13099   case $host_os in
13100   irix5* | nonstopux*)
13101     libsuff= shlibsuff=
13102     ;;
13103   *)
13104     case $LD in # libtool.m4 will add one of these switches to LD
13105     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13106       libsuff= shlibsuff= libmagic=32-bit;;
13107     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13108       libsuff=32 shlibsuff=N32 libmagic=N32;;
13109     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13110       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13111     *) libsuff= shlibsuff= libmagic=never-match;;
13112     esac
13113     ;;
13114   esac
13115   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13116   shlibpath_overrides_runpath=no
13117   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13118   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13119   hardcode_into_libs=yes
13120   ;;
13121
13122 # No shared lib support for Linux oldld, aout, or coff.
13123 linux*oldld* | linux*aout* | linux*coff*)
13124   dynamic_linker=no
13125   ;;
13126
13127 # This must be Linux ELF.
13128 linux*)
13129   version_type=linux
13130   need_lib_prefix=no
13131   need_version=no
13132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13133   soname_spec='${libname}${release}${shared_ext}$major'
13134   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13135   shlibpath_var=LD_LIBRARY_PATH
13136   shlibpath_overrides_runpath=no
13137   # This implies no fast_install, which is unacceptable.
13138   # Some rework will be needed to allow for fast_install
13139   # before this can be enabled.
13140   hardcode_into_libs=yes
13141
13142   # Append ld.so.conf contents to the search path
13143   if test -f /etc/ld.so.conf; then
13144     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13145     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13146   fi
13147
13148   # We used to test for /lib/ld.so.1 and disable shared libraries on
13149   # powerpc, because MkLinux only supported shared libraries with the
13150   # GNU dynamic linker.  Since this was broken with cross compilers,
13151   # most powerpc-linux boxes support dynamic linking these days and
13152   # people can always --disable-shared, the test was removed, and we
13153   # assume the GNU/Linux dynamic linker is in use.
13154   dynamic_linker='GNU/Linux ld.so'
13155   ;;
13156
13157 knetbsd*-gnu)
13158   version_type=linux
13159   need_lib_prefix=no
13160   need_version=no
13161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13162   soname_spec='${libname}${release}${shared_ext}$major'
13163   shlibpath_var=LD_LIBRARY_PATH
13164   shlibpath_overrides_runpath=no
13165   hardcode_into_libs=yes
13166   dynamic_linker='GNU ld.so'
13167   ;;
13168
13169 netbsd*)
13170   version_type=sunos
13171   need_lib_prefix=no
13172   need_version=no
13173   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13175     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13176     dynamic_linker='NetBSD (a.out) ld.so'
13177   else
13178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13179     soname_spec='${libname}${release}${shared_ext}$major'
13180     dynamic_linker='NetBSD ld.elf_so'
13181   fi
13182   shlibpath_var=LD_LIBRARY_PATH
13183   shlibpath_overrides_runpath=yes
13184   hardcode_into_libs=yes
13185   ;;
13186
13187 newsos6)
13188   version_type=linux
13189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13190   shlibpath_var=LD_LIBRARY_PATH
13191   shlibpath_overrides_runpath=yes
13192   ;;
13193
13194 nto-qnx*)
13195   version_type=linux
13196   need_lib_prefix=no
13197   need_version=no
13198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13199   soname_spec='${libname}${release}${shared_ext}$major'
13200   shlibpath_var=LD_LIBRARY_PATH
13201   shlibpath_overrides_runpath=yes
13202   ;;
13203
13204 openbsd*)
13205   version_type=sunos
13206   need_lib_prefix=no
13207   need_version=no
13208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13209   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13210   shlibpath_var=LD_LIBRARY_PATH
13211   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13212     case $host_os in
13213       openbsd2.[89] | openbsd2.[89].*)
13214         shlibpath_overrides_runpath=no
13215         ;;
13216       *)
13217         shlibpath_overrides_runpath=yes
13218         ;;
13219       esac
13220   else
13221     shlibpath_overrides_runpath=yes
13222   fi
13223   ;;
13224
13225 os2*)
13226   libname_spec='$name'
13227   shrext_cmds=".dll"
13228   need_lib_prefix=no
13229   library_names_spec='$libname${shared_ext} $libname.a'
13230   dynamic_linker='OS/2 ld.exe'
13231   shlibpath_var=LIBPATH
13232   ;;
13233
13234 osf3* | osf4* | osf5*)
13235   version_type=osf
13236   need_lib_prefix=no
13237   need_version=no
13238   soname_spec='${libname}${release}${shared_ext}$major'
13239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13240   shlibpath_var=LD_LIBRARY_PATH
13241   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13242   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13243   ;;
13244
13245 sco3.2v5*)
13246   version_type=osf
13247   soname_spec='${libname}${release}${shared_ext}$major'
13248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13249   shlibpath_var=LD_LIBRARY_PATH
13250   ;;
13251
13252 solaris*)
13253   version_type=linux
13254   need_lib_prefix=no
13255   need_version=no
13256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13257   soname_spec='${libname}${release}${shared_ext}$major'
13258   shlibpath_var=LD_LIBRARY_PATH
13259   shlibpath_overrides_runpath=yes
13260   hardcode_into_libs=yes
13261   # ldd complains unless libraries are executable
13262   postinstall_cmds='chmod +x $lib'
13263   ;;
13264
13265 sunos4*)
13266   version_type=sunos
13267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13268   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13269   shlibpath_var=LD_LIBRARY_PATH
13270   shlibpath_overrides_runpath=yes
13271   if test "$with_gnu_ld" = yes; then
13272     need_lib_prefix=no
13273   fi
13274   need_version=yes
13275   ;;
13276
13277 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13278   version_type=linux
13279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13280   soname_spec='${libname}${release}${shared_ext}$major'
13281   shlibpath_var=LD_LIBRARY_PATH
13282   case $host_vendor in
13283     sni)
13284       shlibpath_overrides_runpath=no
13285       need_lib_prefix=no
13286       export_dynamic_flag_spec='${wl}-Blargedynsym'
13287       runpath_var=LD_RUN_PATH
13288       ;;
13289     siemens)
13290       need_lib_prefix=no
13291       ;;
13292     motorola)
13293       need_lib_prefix=no
13294       need_version=no
13295       shlibpath_overrides_runpath=no
13296       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13297       ;;
13298   esac
13299   ;;
13300
13301 sysv4*MP*)
13302   if test -d /usr/nec ;then
13303     version_type=linux
13304     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13305     soname_spec='$libname${shared_ext}.$major'
13306     shlibpath_var=LD_LIBRARY_PATH
13307   fi
13308   ;;
13309
13310 uts4*)
13311   version_type=linux
13312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13313   soname_spec='${libname}${release}${shared_ext}$major'
13314   shlibpath_var=LD_LIBRARY_PATH
13315   ;;
13316
13317 *)
13318   dynamic_linker=no
13319   ;;
13320 esac
13321 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13322 echo "${ECHO_T}$dynamic_linker" >&6
13323 test "$dynamic_linker" = no && can_build_shared=no
13324
13325 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13326 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13327 hardcode_action_CXX=
13328 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13329    test -n "$runpath_var_CXX" || \
13330    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13331
13332   # We can hardcode non-existant directories.
13333   if test "$hardcode_direct_CXX" != no &&
13334      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13335      # have to relink, otherwise we might link with an installed library
13336      # when we should be linking with a yet-to-be-installed one
13337      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13338      test "$hardcode_minus_L_CXX" != no; then
13339     # Linking always hardcodes the temporary library directory.
13340     hardcode_action_CXX=relink
13341   else
13342     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13343     hardcode_action_CXX=immediate
13344   fi
13345 else
13346   # We cannot hardcode anything, or else we can only hardcode existing
13347   # directories.
13348   hardcode_action_CXX=unsupported
13349 fi
13350 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13351 echo "${ECHO_T}$hardcode_action_CXX" >&6
13352
13353 if test "$hardcode_action_CXX" = relink; then
13354   # Fast installation is not supported
13355   enable_fast_install=no
13356 elif test "$shlibpath_overrides_runpath" = yes ||
13357      test "$enable_shared" = no; then
13358   # Fast installation is not necessary
13359   enable_fast_install=needless
13360 fi
13361
13362 striplib=
13363 old_striplib=
13364 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13365 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13366 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13367   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13368   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13369   echo "$as_me:$LINENO: result: yes" >&5
13370 echo "${ECHO_T}yes" >&6
13371 else
13372 # FIXME - insert some real tests, host_os isn't really good enough
13373   case $host_os in
13374    darwin*)
13375        if test -n "$STRIP" ; then
13376          striplib="$STRIP -x"
13377          echo "$as_me:$LINENO: result: yes" >&5
13378 echo "${ECHO_T}yes" >&6
13379        else
13380   echo "$as_me:$LINENO: result: no" >&5
13381 echo "${ECHO_T}no" >&6
13382 fi
13383        ;;
13384    *)
13385   echo "$as_me:$LINENO: result: no" >&5
13386 echo "${ECHO_T}no" >&6
13387     ;;
13388   esac
13389 fi
13390
13391 if test "x$enable_dlopen" != xyes; then
13392   enable_dlopen=unknown
13393   enable_dlopen_self=unknown
13394   enable_dlopen_self_static=unknown
13395 else
13396   lt_cv_dlopen=no
13397   lt_cv_dlopen_libs=
13398
13399   case $host_os in
13400   beos*)
13401     lt_cv_dlopen="load_add_on"
13402     lt_cv_dlopen_libs=
13403     lt_cv_dlopen_self=yes
13404     ;;
13405
13406   mingw* | pw32*)
13407     lt_cv_dlopen="LoadLibrary"
13408     lt_cv_dlopen_libs=
13409    ;;
13410
13411   cygwin*)
13412     lt_cv_dlopen="dlopen"
13413     lt_cv_dlopen_libs=
13414    ;;
13415
13416   darwin*)
13417   # if libdl is installed we need to link against it
13418     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13419 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13420 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13421   echo $ECHO_N "(cached) $ECHO_C" >&6
13422 else
13423   ac_check_lib_save_LIBS=$LIBS
13424 LIBS="-ldl  $LIBS"
13425 cat >conftest.$ac_ext <<_ACEOF
13426 /* confdefs.h.  */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h.  */
13431
13432 /* Override any gcc2 internal prototype to avoid an error.  */
13433 #ifdef __cplusplus
13434 extern "C"
13435 #endif
13436 /* We use char because int might match the return type of a gcc2
13437    builtin and then its argument prototype would still apply.  */
13438 char dlopen ();
13439 int
13440 main ()
13441 {
13442 dlopen ();
13443   ;
13444   return 0;
13445 }
13446 _ACEOF
13447 rm -f conftest.$ac_objext conftest$ac_exeext
13448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13449   (eval $ac_link) 2>conftest.er1
13450   ac_status=$?
13451   grep -v '^ *+' conftest.er1 >conftest.err
13452   rm -f conftest.er1
13453   cat conftest.err >&5
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); } &&
13456          { ac_try='test -z "$ac_cxx_werror_flag"
13457                          || test ! -s conftest.err'
13458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459   (eval $ac_try) 2>&5
13460   ac_status=$?
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); }; } &&
13463          { ac_try='test -s conftest$ac_exeext'
13464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465   (eval $ac_try) 2>&5
13466   ac_status=$?
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); }; }; then
13469   ac_cv_lib_dl_dlopen=yes
13470 else
13471   echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13473
13474 ac_cv_lib_dl_dlopen=no
13475 fi
13476 rm -f conftest.err conftest.$ac_objext \
13477       conftest$ac_exeext conftest.$ac_ext
13478 LIBS=$ac_check_lib_save_LIBS
13479 fi
13480 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13481 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13482 if test $ac_cv_lib_dl_dlopen = yes; then
13483   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13484 else
13485
13486     lt_cv_dlopen="dyld"
13487     lt_cv_dlopen_libs=
13488     lt_cv_dlopen_self=yes
13489
13490 fi
13491
13492    ;;
13493
13494   *)
13495     echo "$as_me:$LINENO: checking for shl_load" >&5
13496 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13497 if test "${ac_cv_func_shl_load+set}" = set; then
13498   echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500   cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h.  */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h.  */
13506 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13508 #define shl_load innocuous_shl_load
13509
13510 /* System header to define __stub macros and hopefully few prototypes,
13511     which can conflict with char shl_load (); below.
13512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13513     <limits.h> exists even on freestanding compilers.  */
13514
13515 #ifdef __STDC__
13516 # include <limits.h>
13517 #else
13518 # include <assert.h>
13519 #endif
13520
13521 #undef shl_load
13522
13523 /* Override any gcc2 internal prototype to avoid an error.  */
13524 #ifdef __cplusplus
13525 extern "C"
13526 {
13527 #endif
13528 /* We use char because int might match the return type of a gcc2
13529    builtin and then its argument prototype would still apply.  */
13530 char shl_load ();
13531 /* The GNU C library defines this for functions which it implements
13532     to always fail with ENOSYS.  Some functions are actually named
13533     something starting with __ and the normal name is an alias.  */
13534 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13535 choke me
13536 #else
13537 char (*f) () = shl_load;
13538 #endif
13539 #ifdef __cplusplus
13540 }
13541 #endif
13542
13543 int
13544 main ()
13545 {
13546 return f != shl_load;
13547   ;
13548   return 0;
13549 }
13550 _ACEOF
13551 rm -f conftest.$ac_objext conftest$ac_exeext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553   (eval $ac_link) 2>conftest.er1
13554   ac_status=$?
13555   grep -v '^ *+' conftest.er1 >conftest.err
13556   rm -f conftest.er1
13557   cat conftest.err >&5
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } &&
13560          { ac_try='test -z "$ac_cxx_werror_flag"
13561                          || test ! -s conftest.err'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; } &&
13567          { ac_try='test -s conftest$ac_exeext'
13568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569   (eval $ac_try) 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }; }; then
13573   ac_cv_func_shl_load=yes
13574 else
13575   echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13577
13578 ac_cv_func_shl_load=no
13579 fi
13580 rm -f conftest.err conftest.$ac_objext \
13581       conftest$ac_exeext conftest.$ac_ext
13582 fi
13583 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13584 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13585 if test $ac_cv_func_shl_load = yes; then
13586   lt_cv_dlopen="shl_load"
13587 else
13588   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13589 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13590 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13591   echo $ECHO_N "(cached) $ECHO_C" >&6
13592 else
13593   ac_check_lib_save_LIBS=$LIBS
13594 LIBS="-ldld  $LIBS"
13595 cat >conftest.$ac_ext <<_ACEOF
13596 /* confdefs.h.  */
13597 _ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h.  */
13601
13602 /* Override any gcc2 internal prototype to avoid an error.  */
13603 #ifdef __cplusplus
13604 extern "C"
13605 #endif
13606 /* We use char because int might match the return type of a gcc2
13607    builtin and then its argument prototype would still apply.  */
13608 char shl_load ();
13609 int
13610 main ()
13611 {
13612 shl_load ();
13613   ;
13614   return 0;
13615 }
13616 _ACEOF
13617 rm -f conftest.$ac_objext conftest$ac_exeext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13619   (eval $ac_link) 2>conftest.er1
13620   ac_status=$?
13621   grep -v '^ *+' conftest.er1 >conftest.err
13622   rm -f conftest.er1
13623   cat conftest.err >&5
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); } &&
13626          { ac_try='test -z "$ac_cxx_werror_flag"
13627                          || test ! -s conftest.err'
13628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629   (eval $ac_try) 2>&5
13630   ac_status=$?
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }; } &&
13633          { ac_try='test -s conftest$ac_exeext'
13634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635   (eval $ac_try) 2>&5
13636   ac_status=$?
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); }; }; then
13639   ac_cv_lib_dld_shl_load=yes
13640 else
13641   echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13643
13644 ac_cv_lib_dld_shl_load=no
13645 fi
13646 rm -f conftest.err conftest.$ac_objext \
13647       conftest$ac_exeext conftest.$ac_ext
13648 LIBS=$ac_check_lib_save_LIBS
13649 fi
13650 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13651 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13652 if test $ac_cv_lib_dld_shl_load = yes; then
13653   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13654 else
13655   echo "$as_me:$LINENO: checking for dlopen" >&5
13656 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13657 if test "${ac_cv_func_dlopen+set}" = set; then
13658   echo $ECHO_N "(cached) $ECHO_C" >&6
13659 else
13660   cat >conftest.$ac_ext <<_ACEOF
13661 /* confdefs.h.  */
13662 _ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h.  */
13666 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13668 #define dlopen innocuous_dlopen
13669
13670 /* System header to define __stub macros and hopefully few prototypes,
13671     which can conflict with char dlopen (); below.
13672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13673     <limits.h> exists even on freestanding compilers.  */
13674
13675 #ifdef __STDC__
13676 # include <limits.h>
13677 #else
13678 # include <assert.h>
13679 #endif
13680
13681 #undef dlopen
13682
13683 /* Override any gcc2 internal prototype to avoid an error.  */
13684 #ifdef __cplusplus
13685 extern "C"
13686 {
13687 #endif
13688 /* We use char because int might match the return type of a gcc2
13689    builtin and then its argument prototype would still apply.  */
13690 char dlopen ();
13691 /* The GNU C library defines this for functions which it implements
13692     to always fail with ENOSYS.  Some functions are actually named
13693     something starting with __ and the normal name is an alias.  */
13694 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13695 choke me
13696 #else
13697 char (*f) () = dlopen;
13698 #endif
13699 #ifdef __cplusplus
13700 }
13701 #endif
13702
13703 int
13704 main ()
13705 {
13706 return f != dlopen;
13707   ;
13708   return 0;
13709 }
13710 _ACEOF
13711 rm -f conftest.$ac_objext conftest$ac_exeext
13712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13713   (eval $ac_link) 2>conftest.er1
13714   ac_status=$?
13715   grep -v '^ *+' conftest.er1 >conftest.err
13716   rm -f conftest.er1
13717   cat conftest.err >&5
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); } &&
13720          { ac_try='test -z "$ac_cxx_werror_flag"
13721                          || test ! -s conftest.err'
13722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723   (eval $ac_try) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); }; } &&
13727          { ac_try='test -s conftest$ac_exeext'
13728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729   (eval $ac_try) 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; }; then
13733   ac_cv_func_dlopen=yes
13734 else
13735   echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738 ac_cv_func_dlopen=no
13739 fi
13740 rm -f conftest.err conftest.$ac_objext \
13741       conftest$ac_exeext conftest.$ac_ext
13742 fi
13743 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13744 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13745 if test $ac_cv_func_dlopen = yes; then
13746   lt_cv_dlopen="dlopen"
13747 else
13748   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13749 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13750 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13751   echo $ECHO_N "(cached) $ECHO_C" >&6
13752 else
13753   ac_check_lib_save_LIBS=$LIBS
13754 LIBS="-ldl  $LIBS"
13755 cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h.  */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h.  */
13761
13762 /* Override any gcc2 internal prototype to avoid an error.  */
13763 #ifdef __cplusplus
13764 extern "C"
13765 #endif
13766 /* We use char because int might match the return type of a gcc2
13767    builtin and then its argument prototype would still apply.  */
13768 char dlopen ();
13769 int
13770 main ()
13771 {
13772 dlopen ();
13773   ;
13774   return 0;
13775 }
13776 _ACEOF
13777 rm -f conftest.$ac_objext conftest$ac_exeext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13779   (eval $ac_link) 2>conftest.er1
13780   ac_status=$?
13781   grep -v '^ *+' conftest.er1 >conftest.err
13782   rm -f conftest.er1
13783   cat conftest.err >&5
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); } &&
13786          { ac_try='test -z "$ac_cxx_werror_flag"
13787                          || test ! -s conftest.err'
13788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789   (eval $ac_try) 2>&5
13790   ac_status=$?
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); }; } &&
13793          { ac_try='test -s conftest$ac_exeext'
13794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795   (eval $ac_try) 2>&5
13796   ac_status=$?
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); }; }; then
13799   ac_cv_lib_dl_dlopen=yes
13800 else
13801   echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13803
13804 ac_cv_lib_dl_dlopen=no
13805 fi
13806 rm -f conftest.err conftest.$ac_objext \
13807       conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13809 fi
13810 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13811 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13812 if test $ac_cv_lib_dl_dlopen = yes; then
13813   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13814 else
13815   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13816 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13817 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13818   echo $ECHO_N "(cached) $ECHO_C" >&6
13819 else
13820   ac_check_lib_save_LIBS=$LIBS
13821 LIBS="-lsvld  $LIBS"
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h.  */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h.  */
13828
13829 /* Override any gcc2 internal prototype to avoid an error.  */
13830 #ifdef __cplusplus
13831 extern "C"
13832 #endif
13833 /* We use char because int might match the return type of a gcc2
13834    builtin and then its argument prototype would still apply.  */
13835 char dlopen ();
13836 int
13837 main ()
13838 {
13839 dlopen ();
13840   ;
13841   return 0;
13842 }
13843 _ACEOF
13844 rm -f conftest.$ac_objext conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846   (eval $ac_link) 2>conftest.er1
13847   ac_status=$?
13848   grep -v '^ *+' conftest.er1 >conftest.err
13849   rm -f conftest.er1
13850   cat conftest.err >&5
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); } &&
13853          { ac_try='test -z "$ac_cxx_werror_flag"
13854                          || test ! -s conftest.err'
13855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856   (eval $ac_try) 2>&5
13857   ac_status=$?
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); }; } &&
13860          { ac_try='test -s conftest$ac_exeext'
13861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862   (eval $ac_try) 2>&5
13863   ac_status=$?
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); }; }; then
13866   ac_cv_lib_svld_dlopen=yes
13867 else
13868   echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13870
13871 ac_cv_lib_svld_dlopen=no
13872 fi
13873 rm -f conftest.err conftest.$ac_objext \
13874       conftest$ac_exeext conftest.$ac_ext
13875 LIBS=$ac_check_lib_save_LIBS
13876 fi
13877 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13878 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13879 if test $ac_cv_lib_svld_dlopen = yes; then
13880   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13881 else
13882   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13883 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13884 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13885   echo $ECHO_N "(cached) $ECHO_C" >&6
13886 else
13887   ac_check_lib_save_LIBS=$LIBS
13888 LIBS="-ldld  $LIBS"
13889 cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h.  */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h.  */
13895
13896 /* Override any gcc2 internal prototype to avoid an error.  */
13897 #ifdef __cplusplus
13898 extern "C"
13899 #endif
13900 /* We use char because int might match the return type of a gcc2
13901    builtin and then its argument prototype would still apply.  */
13902 char dld_link ();
13903 int
13904 main ()
13905 {
13906 dld_link ();
13907   ;
13908   return 0;
13909 }
13910 _ACEOF
13911 rm -f conftest.$ac_objext conftest$ac_exeext
13912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13913   (eval $ac_link) 2>conftest.er1
13914   ac_status=$?
13915   grep -v '^ *+' conftest.er1 >conftest.err
13916   rm -f conftest.er1
13917   cat conftest.err >&5
13918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919   (exit $ac_status); } &&
13920          { ac_try='test -z "$ac_cxx_werror_flag"
13921                          || test ! -s conftest.err'
13922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923   (eval $ac_try) 2>&5
13924   ac_status=$?
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); }; } &&
13927          { ac_try='test -s conftest$ac_exeext'
13928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929   (eval $ac_try) 2>&5
13930   ac_status=$?
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); }; }; then
13933   ac_cv_lib_dld_dld_link=yes
13934 else
13935   echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13937
13938 ac_cv_lib_dld_dld_link=no
13939 fi
13940 rm -f conftest.err conftest.$ac_objext \
13941       conftest$ac_exeext conftest.$ac_ext
13942 LIBS=$ac_check_lib_save_LIBS
13943 fi
13944 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13945 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13946 if test $ac_cv_lib_dld_dld_link = yes; then
13947   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13948 fi
13949
13950
13951 fi
13952
13953
13954 fi
13955
13956
13957 fi
13958
13959
13960 fi
13961
13962
13963 fi
13964
13965     ;;
13966   esac
13967
13968   if test "x$lt_cv_dlopen" != xno; then
13969     enable_dlopen=yes
13970   else
13971     enable_dlopen=no
13972   fi
13973
13974   case $lt_cv_dlopen in
13975   dlopen)
13976     save_CPPFLAGS="$CPPFLAGS"
13977     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13978
13979     save_LDFLAGS="$LDFLAGS"
13980     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13981
13982     save_LIBS="$LIBS"
13983     LIBS="$lt_cv_dlopen_libs $LIBS"
13984
13985     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13986 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13987 if test "${lt_cv_dlopen_self+set}" = set; then
13988   echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990           if test "$cross_compiling" = yes; then :
13991   lt_cv_dlopen_self=cross
13992 else
13993   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13994   lt_status=$lt_dlunknown
13995   cat > conftest.$ac_ext <<EOF
13996 #line 13996 "configure"
13997 #include "confdefs.h"
13998
13999 #if HAVE_DLFCN_H
14000 #include <dlfcn.h>
14001 #endif
14002
14003 #include <stdio.h>
14004
14005 #ifdef RTLD_GLOBAL
14006 #  define LT_DLGLOBAL           RTLD_GLOBAL
14007 #else
14008 #  ifdef DL_GLOBAL
14009 #    define LT_DLGLOBAL         DL_GLOBAL
14010 #  else
14011 #    define LT_DLGLOBAL         0
14012 #  endif
14013 #endif
14014
14015 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14016    find out it does not work in some platform. */
14017 #ifndef LT_DLLAZY_OR_NOW
14018 #  ifdef RTLD_LAZY
14019 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14020 #  else
14021 #    ifdef DL_LAZY
14022 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14023 #    else
14024 #      ifdef RTLD_NOW
14025 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14026 #      else
14027 #        ifdef DL_NOW
14028 #          define LT_DLLAZY_OR_NOW      DL_NOW
14029 #        else
14030 #          define LT_DLLAZY_OR_NOW      0
14031 #        endif
14032 #      endif
14033 #    endif
14034 #  endif
14035 #endif
14036
14037 #ifdef __cplusplus
14038 extern "C" void exit (int);
14039 #endif
14040
14041 void fnord() { int i=42;}
14042 int main ()
14043 {
14044   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14045   int status = $lt_dlunknown;
14046
14047   if (self)
14048     {
14049       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14050       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14051       /* dlclose (self); */
14052     }
14053
14054     exit (status);
14055 }
14056 EOF
14057   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14058   (eval $ac_link) 2>&5
14059   ac_status=$?
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14062     (./conftest; exit; ) 2>/dev/null
14063     lt_status=$?
14064     case x$lt_status in
14065       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14066       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14067       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14068     esac
14069   else :
14070     # compilation failed
14071     lt_cv_dlopen_self=no
14072   fi
14073 fi
14074 rm -fr conftest*
14075
14076
14077 fi
14078 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14079 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14080
14081     if test "x$lt_cv_dlopen_self" = xyes; then
14082       LDFLAGS="$LDFLAGS $link_static_flag"
14083       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14084 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14085 if test "${lt_cv_dlopen_self_static+set}" = set; then
14086   echo $ECHO_N "(cached) $ECHO_C" >&6
14087 else
14088           if test "$cross_compiling" = yes; then :
14089   lt_cv_dlopen_self_static=cross
14090 else
14091   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14092   lt_status=$lt_dlunknown
14093   cat > conftest.$ac_ext <<EOF
14094 #line 14094 "configure"
14095 #include "confdefs.h"
14096
14097 #if HAVE_DLFCN_H
14098 #include <dlfcn.h>
14099 #endif
14100
14101 #include <stdio.h>
14102
14103 #ifdef RTLD_GLOBAL
14104 #  define LT_DLGLOBAL           RTLD_GLOBAL
14105 #else
14106 #  ifdef DL_GLOBAL
14107 #    define LT_DLGLOBAL         DL_GLOBAL
14108 #  else
14109 #    define LT_DLGLOBAL         0
14110 #  endif
14111 #endif
14112
14113 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14114    find out it does not work in some platform. */
14115 #ifndef LT_DLLAZY_OR_NOW
14116 #  ifdef RTLD_LAZY
14117 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14118 #  else
14119 #    ifdef DL_LAZY
14120 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14121 #    else
14122 #      ifdef RTLD_NOW
14123 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14124 #      else
14125 #        ifdef DL_NOW
14126 #          define LT_DLLAZY_OR_NOW      DL_NOW
14127 #        else
14128 #          define LT_DLLAZY_OR_NOW      0
14129 #        endif
14130 #      endif
14131 #    endif
14132 #  endif
14133 #endif
14134
14135 #ifdef __cplusplus
14136 extern "C" void exit (int);
14137 #endif
14138
14139 void fnord() { int i=42;}
14140 int main ()
14141 {
14142   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14143   int status = $lt_dlunknown;
14144
14145   if (self)
14146     {
14147       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14148       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14149       /* dlclose (self); */
14150     }
14151
14152     exit (status);
14153 }
14154 EOF
14155   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14156   (eval $ac_link) 2>&5
14157   ac_status=$?
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14160     (./conftest; exit; ) 2>/dev/null
14161     lt_status=$?
14162     case x$lt_status in
14163       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14164       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14165       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14166     esac
14167   else :
14168     # compilation failed
14169     lt_cv_dlopen_self_static=no
14170   fi
14171 fi
14172 rm -fr conftest*
14173
14174
14175 fi
14176 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14177 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14178     fi
14179
14180     CPPFLAGS="$save_CPPFLAGS"
14181     LDFLAGS="$save_LDFLAGS"
14182     LIBS="$save_LIBS"
14183     ;;
14184   esac
14185
14186   case $lt_cv_dlopen_self in
14187   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14188   *) enable_dlopen_self=unknown ;;
14189   esac
14190
14191   case $lt_cv_dlopen_self_static in
14192   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14193   *) enable_dlopen_self_static=unknown ;;
14194   esac
14195 fi
14196
14197
14198 # The else clause should only fire when bootstrapping the
14199 # libtool distribution, otherwise you forgot to ship ltmain.sh
14200 # with your package, and you will get complaints that there are
14201 # no rules to generate ltmain.sh.
14202 if test -f "$ltmain"; then
14203   # See if we are running on zsh, and set the options which allow our commands through
14204   # without removal of \ escapes.
14205   if test -n "${ZSH_VERSION+set}" ; then
14206     setopt NO_GLOB_SUBST
14207   fi
14208   # Now quote all the things that may contain metacharacters while being
14209   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14210   # variables and quote the copies for generation of the libtool script.
14211   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14212     SED SHELL STRIP \
14213     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14214     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14215     deplibs_check_method reload_flag reload_cmds need_locks \
14216     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14217     lt_cv_sys_global_symbol_to_c_name_address \
14218     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14219     old_postinstall_cmds old_postuninstall_cmds \
14220     compiler_CXX \
14221     CC_CXX \
14222     LD_CXX \
14223     lt_prog_compiler_wl_CXX \
14224     lt_prog_compiler_pic_CXX \
14225     lt_prog_compiler_static_CXX \
14226     lt_prog_compiler_no_builtin_flag_CXX \
14227     export_dynamic_flag_spec_CXX \
14228     thread_safe_flag_spec_CXX \
14229     whole_archive_flag_spec_CXX \
14230     enable_shared_with_static_runtimes_CXX \
14231     old_archive_cmds_CXX \
14232     old_archive_from_new_cmds_CXX \
14233     predep_objects_CXX \
14234     postdep_objects_CXX \
14235     predeps_CXX \
14236     postdeps_CXX \
14237     compiler_lib_search_path_CXX \
14238     archive_cmds_CXX \
14239     archive_expsym_cmds_CXX \
14240     postinstall_cmds_CXX \
14241     postuninstall_cmds_CXX \
14242     old_archive_from_expsyms_cmds_CXX \
14243     allow_undefined_flag_CXX \
14244     no_undefined_flag_CXX \
14245     export_symbols_cmds_CXX \
14246     hardcode_libdir_flag_spec_CXX \
14247     hardcode_libdir_flag_spec_ld_CXX \
14248     hardcode_libdir_separator_CXX \
14249     hardcode_automatic_CXX \
14250     module_cmds_CXX \
14251     module_expsym_cmds_CXX \
14252     lt_cv_prog_compiler_c_o_CXX \
14253     exclude_expsyms_CXX \
14254     include_expsyms_CXX; do
14255
14256     case $var in
14257     old_archive_cmds_CXX | \
14258     old_archive_from_new_cmds_CXX | \
14259     archive_cmds_CXX | \
14260     archive_expsym_cmds_CXX | \
14261     module_cmds_CXX | \
14262     module_expsym_cmds_CXX | \
14263     old_archive_from_expsyms_cmds_CXX | \
14264     export_symbols_cmds_CXX | \
14265     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14266     postinstall_cmds | postuninstall_cmds | \
14267     old_postinstall_cmds | old_postuninstall_cmds | \
14268     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14269       # Double-quote double-evaled strings.
14270       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14271       ;;
14272     *)
14273       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14274       ;;
14275     esac
14276   done
14277
14278   case $lt_echo in
14279   *'\$0 --fallback-echo"')
14280     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14281     ;;
14282   esac
14283
14284 cfgfile="$ofile"
14285
14286   cat <<__EOF__ >> "$cfgfile"
14287 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14288
14289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14290
14291 # Shell to use when invoking shell scripts.
14292 SHELL=$lt_SHELL
14293
14294 # Whether or not to build shared libraries.
14295 build_libtool_libs=$enable_shared
14296
14297 # Whether or not to build static libraries.
14298 build_old_libs=$enable_static
14299
14300 # Whether or not to add -lc for building shared libraries.
14301 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14302
14303 # Whether or not to disallow shared libs when runtime libs are static
14304 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14305
14306 # Whether or not to optimize for fast installation.
14307 fast_install=$enable_fast_install
14308
14309 # The host system.
14310 host_alias=$host_alias
14311 host=$host
14312
14313 # An echo program that does not interpret backslashes.
14314 echo=$lt_echo
14315
14316 # The archiver.
14317 AR=$lt_AR
14318 AR_FLAGS=$lt_AR_FLAGS
14319
14320 # A C compiler.
14321 LTCC=$lt_LTCC
14322
14323 # A language-specific compiler.
14324 CC=$lt_compiler_CXX
14325
14326 # Is the compiler the GNU C compiler?
14327 with_gcc=$GCC_CXX
14328
14329 # An ERE matcher.
14330 EGREP=$lt_EGREP
14331
14332 # The linker used to build libraries.
14333 LD=$lt_LD_CXX
14334
14335 # Whether we need hard or soft links.
14336 LN_S=$lt_LN_S
14337
14338 # A BSD-compatible nm program.
14339 NM=$lt_NM
14340
14341 # A symbol stripping program
14342 STRIP=$lt_STRIP
14343
14344 # Used to examine libraries when file_magic_cmd begins "file"
14345 MAGIC_CMD=$MAGIC_CMD
14346
14347 # Used on cygwin: DLL creation program.
14348 DLLTOOL="$DLLTOOL"
14349
14350 # Used on cygwin: object dumper.
14351 OBJDUMP="$OBJDUMP"
14352
14353 # Used on cygwin: assembler.
14354 AS="$AS"
14355
14356 # The name of the directory that contains temporary libtool files.
14357 objdir=$objdir
14358
14359 # How to create reloadable object files.
14360 reload_flag=$lt_reload_flag
14361 reload_cmds=$lt_reload_cmds
14362
14363 # How to pass a linker flag through the compiler.
14364 wl=$lt_lt_prog_compiler_wl_CXX
14365
14366 # Object file suffix (normally "o").
14367 objext="$ac_objext"
14368
14369 # Old archive suffix (normally "a").
14370 libext="$libext"
14371
14372 # Shared library suffix (normally ".so").
14373 shrext_cmds='$shrext_cmds'
14374
14375 # Executable file suffix (normally "").
14376 exeext="$exeext"
14377
14378 # Additional compiler flags for building library objects.
14379 pic_flag=$lt_lt_prog_compiler_pic_CXX
14380 pic_mode=$pic_mode
14381
14382 # What is the maximum length of a command?
14383 max_cmd_len=$lt_cv_sys_max_cmd_len
14384
14385 # Does compiler simultaneously support -c and -o options?
14386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14387
14388 # Must we lock files when doing compilation ?
14389 need_locks=$lt_need_locks
14390
14391 # Do we need the lib prefix for modules?
14392 need_lib_prefix=$need_lib_prefix
14393
14394 # Do we need a version for libraries?
14395 need_version=$need_version
14396
14397 # Whether dlopen is supported.
14398 dlopen_support=$enable_dlopen
14399
14400 # Whether dlopen of programs is supported.
14401 dlopen_self=$enable_dlopen_self
14402
14403 # Whether dlopen of statically linked programs is supported.
14404 dlopen_self_static=$enable_dlopen_self_static
14405
14406 # Compiler flag to prevent dynamic linking.
14407 link_static_flag=$lt_lt_prog_compiler_static_CXX
14408
14409 # Compiler flag to turn off builtin functions.
14410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14411
14412 # Compiler flag to allow reflexive dlopens.
14413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14414
14415 # Compiler flag to generate shared objects directly from archives.
14416 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14417
14418 # Compiler flag to generate thread-safe objects.
14419 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14420
14421 # Library versioning type.
14422 version_type=$version_type
14423
14424 # Format of library name prefix.
14425 libname_spec=$lt_libname_spec
14426
14427 # List of archive names.  First name is the real one, the rest are links.
14428 # The last name is the one that the linker finds with -lNAME.
14429 library_names_spec=$lt_library_names_spec
14430
14431 # The coded name of the library, if different from the real name.
14432 soname_spec=$lt_soname_spec
14433
14434 # Commands used to build and install an old-style archive.
14435 RANLIB=$lt_RANLIB
14436 old_archive_cmds=$lt_old_archive_cmds_CXX
14437 old_postinstall_cmds=$lt_old_postinstall_cmds
14438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14439
14440 # Create an old-style archive from a shared archive.
14441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14442
14443 # Create a temporary old-style archive to link instead of a shared archive.
14444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14445
14446 # Commands used to build and install a shared archive.
14447 archive_cmds=$lt_archive_cmds_CXX
14448 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14449 postinstall_cmds=$lt_postinstall_cmds
14450 postuninstall_cmds=$lt_postuninstall_cmds
14451
14452 # Commands used to build a loadable module (assumed same as above if empty)
14453 module_cmds=$lt_module_cmds_CXX
14454 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14455
14456 # Commands to strip libraries.
14457 old_striplib=$lt_old_striplib
14458 striplib=$lt_striplib
14459
14460 # Dependencies to place before the objects being linked to create a
14461 # shared library.
14462 predep_objects=$lt_predep_objects_CXX
14463
14464 # Dependencies to place after the objects being linked to create a
14465 # shared library.
14466 postdep_objects=$lt_postdep_objects_CXX
14467
14468 # Dependencies to place before the objects being linked to create a
14469 # shared library.
14470 predeps=$lt_predeps_CXX
14471
14472 # Dependencies to place after the objects being linked to create a
14473 # shared library.
14474 postdeps=$lt_postdeps_CXX
14475
14476 # The library search path used internally by the compiler when linking
14477 # a shared library.
14478 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14479
14480 # Method to check whether dependent libraries are shared objects.
14481 deplibs_check_method=$lt_deplibs_check_method
14482
14483 # Command to use when deplibs_check_method == file_magic.
14484 file_magic_cmd=$lt_file_magic_cmd
14485
14486 # Flag that allows shared libraries with undefined symbols to be built.
14487 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14488
14489 # Flag that forces no undefined symbols.
14490 no_undefined_flag=$lt_no_undefined_flag_CXX
14491
14492 # Commands used to finish a libtool library installation in a directory.
14493 finish_cmds=$lt_finish_cmds
14494
14495 # Same as above, but a single script fragment to be evaled but not shown.
14496 finish_eval=$lt_finish_eval
14497
14498 # Take the output of nm and produce a listing of raw symbols and C names.
14499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14500
14501 # Transform the output of nm in a proper C declaration
14502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14503
14504 # Transform the output of nm in a C name address pair
14505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14506
14507 # This is the shared library runtime path variable.
14508 runpath_var=$runpath_var
14509
14510 # This is the shared library path variable.
14511 shlibpath_var=$shlibpath_var
14512
14513 # Is shlibpath searched before the hard-coded library search path?
14514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14515
14516 # How to hardcode a shared library path into an executable.
14517 hardcode_action=$hardcode_action_CXX
14518
14519 # Whether we should hardcode library paths into libraries.
14520 hardcode_into_libs=$hardcode_into_libs
14521
14522 # Flag to hardcode \$libdir into a binary during linking.
14523 # This must work even if \$libdir does not exist.
14524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14525
14526 # If ld is used when linking, flag to hardcode \$libdir into
14527 # a binary during linking. This must work even if \$libdir does
14528 # not exist.
14529 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14530
14531 # Whether we need a single -rpath flag with a separated argument.
14532 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14533
14534 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14535 # resulting binary.
14536 hardcode_direct=$hardcode_direct_CXX
14537
14538 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14539 # resulting binary.
14540 hardcode_minus_L=$hardcode_minus_L_CXX
14541
14542 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14543 # the resulting binary.
14544 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14545
14546 # Set to yes if building a shared library automatically hardcodes DIR into the library
14547 # and all subsequent libraries and executables linked against it.
14548 hardcode_automatic=$hardcode_automatic_CXX
14549
14550 # Variables whose values should be saved in libtool wrapper scripts and
14551 # restored at relink time.
14552 variables_saved_for_relink="$variables_saved_for_relink"
14553
14554 # Whether libtool must link a program against all its dependency libraries.
14555 link_all_deplibs=$link_all_deplibs_CXX
14556
14557 # Compile-time system search path for libraries
14558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14559
14560 # Run-time system search path for libraries
14561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14562
14563 # Fix the shell variable \$srcfile for the compiler.
14564 fix_srcfile_path="$fix_srcfile_path_CXX"
14565
14566 # Set to yes if exported symbols are required.
14567 always_export_symbols=$always_export_symbols_CXX
14568
14569 # The commands to list exported symbols.
14570 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14571
14572 # The commands to extract the exported symbol list from a shared archive.
14573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14574
14575 # Symbols that should not be listed in the preloaded symbols.
14576 exclude_expsyms=$lt_exclude_expsyms_CXX
14577
14578 # Symbols that must always be exported.
14579 include_expsyms=$lt_include_expsyms_CXX
14580
14581 # ### END LIBTOOL TAG CONFIG: $tagname
14582
14583 __EOF__
14584
14585
14586 else
14587   # If there is no Makefile yet, we rely on a make rule to execute
14588   # `config.status --recheck' to rerun these tests and create the
14589   # libtool script then.
14590   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14591   if test -f "$ltmain_in"; then
14592     test -f Makefile && make "$ltmain"
14593   fi
14594 fi
14595
14596
14597 ac_ext=c
14598 ac_cpp='$CPP $CPPFLAGS'
14599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14602
14603 CC=$lt_save_CC
14604 LDCXX=$LD
14605 LD=$lt_save_LD
14606 GCC=$lt_save_GCC
14607 with_gnu_ldcxx=$with_gnu_ld
14608 with_gnu_ld=$lt_save_with_gnu_ld
14609 lt_cv_path_LDCXX=$lt_cv_path_LD
14610 lt_cv_path_LD=$lt_save_path_LD
14611 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14612 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14613
14614         else
14615           tagname=""
14616         fi
14617         ;;
14618
14619       F77)
14620         if test -n "$F77" && test "X$F77" != "Xno"; then
14621
14622 ac_ext=f
14623 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14624 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14625 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14626
14627
14628 archive_cmds_need_lc_F77=no
14629 allow_undefined_flag_F77=
14630 always_export_symbols_F77=no
14631 archive_expsym_cmds_F77=
14632 export_dynamic_flag_spec_F77=
14633 hardcode_direct_F77=no
14634 hardcode_libdir_flag_spec_F77=
14635 hardcode_libdir_flag_spec_ld_F77=
14636 hardcode_libdir_separator_F77=
14637 hardcode_minus_L_F77=no
14638 hardcode_automatic_F77=no
14639 module_cmds_F77=
14640 module_expsym_cmds_F77=
14641 link_all_deplibs_F77=unknown
14642 old_archive_cmds_F77=$old_archive_cmds
14643 no_undefined_flag_F77=
14644 whole_archive_flag_spec_F77=
14645 enable_shared_with_static_runtimes_F77=no
14646
14647 # Source file extension for f77 test sources.
14648 ac_ext=f
14649
14650 # Object file extension for compiled f77 test sources.
14651 objext=o
14652 objext_F77=$objext
14653
14654 # Code to be used in simple compile tests
14655 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14656
14657 # Code to be used in simple link tests
14658 lt_simple_link_test_code="      program t\n      end\n"
14659
14660 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14661
14662 # If no C compiler was specified, use CC.
14663 LTCC=${LTCC-"$CC"}
14664
14665 # Allow CC to be a program name with arguments.
14666 compiler=$CC
14667
14668
14669 # Allow CC to be a program name with arguments.
14670 lt_save_CC="$CC"
14671 CC=${F77-"f77"}
14672 compiler=$CC
14673 compiler_F77=$CC
14674 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14675
14676 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14677 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14678 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14679 echo "${ECHO_T}$can_build_shared" >&6
14680
14681 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14682 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14683 test "$can_build_shared" = "no" && enable_shared=no
14684
14685 # On AIX, shared libraries and static libraries use the same namespace, and
14686 # are all built from PIC.
14687 case "$host_os" in
14688 aix3*)
14689   test "$enable_shared" = yes && enable_static=no
14690   if test -n "$RANLIB"; then
14691     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14692     postinstall_cmds='$RANLIB $lib'
14693   fi
14694   ;;
14695 aix4* | aix5*)
14696   test "$enable_shared" = yes && enable_static=no
14697   ;;
14698 esac
14699 echo "$as_me:$LINENO: result: $enable_shared" >&5
14700 echo "${ECHO_T}$enable_shared" >&6
14701
14702 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14703 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14704 # Make sure either enable_shared or enable_static is yes.
14705 test "$enable_shared" = yes || enable_static=yes
14706 echo "$as_me:$LINENO: result: $enable_static" >&5
14707 echo "${ECHO_T}$enable_static" >&6
14708
14709 test "$ld_shlibs_F77" = no && can_build_shared=no
14710
14711 GCC_F77="$G77"
14712 LD_F77="$LD"
14713
14714 lt_prog_compiler_wl_F77=
14715 lt_prog_compiler_pic_F77=
14716 lt_prog_compiler_static_F77=
14717
14718 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14719 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14720
14721   if test "$GCC" = yes; then
14722     lt_prog_compiler_wl_F77='-Wl,'
14723     lt_prog_compiler_static_F77='-static'
14724
14725     case $host_os in
14726       aix*)
14727       # All AIX code is PIC.
14728       if test "$host_cpu" = ia64; then
14729         # AIX 5 now supports IA64 processor
14730         lt_prog_compiler_static_F77='-Bstatic'
14731       fi
14732       ;;
14733
14734     amigaos*)
14735       # FIXME: we need at least 68020 code to build shared libraries, but
14736       # adding the `-m68020' flag to GCC prevents building anything better,
14737       # like `-m68040'.
14738       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14739       ;;
14740
14741     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14742       # PIC is the default for these OSes.
14743       ;;
14744
14745     mingw* | pw32* | os2*)
14746       # This hack is so that the source file can tell whether it is being
14747       # built for inclusion in a dll (and should export symbols for example).
14748       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14749       ;;
14750
14751     darwin* | rhapsody*)
14752       # PIC is the default on this platform
14753       # Common symbols not allowed in MH_DYLIB files
14754       lt_prog_compiler_pic_F77='-fno-common'
14755       ;;
14756
14757     msdosdjgpp*)
14758       # Just because we use GCC doesn't mean we suddenly get shared libraries
14759       # on systems that don't support them.
14760       lt_prog_compiler_can_build_shared_F77=no
14761       enable_shared=no
14762       ;;
14763
14764     sysv4*MP*)
14765       if test -d /usr/nec; then
14766         lt_prog_compiler_pic_F77=-Kconform_pic
14767       fi
14768       ;;
14769
14770     hpux*)
14771       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14772       # not for PA HP-UX.
14773       case "$host_cpu" in
14774       hppa*64*|ia64*)
14775         # +Z the default
14776         ;;
14777       *)
14778         lt_prog_compiler_pic_F77='-fPIC'
14779         ;;
14780       esac
14781       ;;
14782
14783     *)
14784       lt_prog_compiler_pic_F77='-fPIC'
14785       ;;
14786     esac
14787   else
14788     # PORTME Check for flag to pass linker flags through the system compiler.
14789     case $host_os in
14790     aix*)
14791       lt_prog_compiler_wl_F77='-Wl,'
14792       if test "$host_cpu" = ia64; then
14793         # AIX 5 now supports IA64 processor
14794         lt_prog_compiler_static_F77='-Bstatic'
14795       else
14796         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14797       fi
14798       ;;
14799       darwin*)
14800         # PIC is the default on this platform
14801         # Common symbols not allowed in MH_DYLIB files
14802        case "$cc_basename" in
14803          xlc*)
14804          lt_prog_compiler_pic_F77='-qnocommon'
14805          lt_prog_compiler_wl_F77='-Wl,'
14806          ;;
14807        esac
14808        ;;
14809
14810     mingw* | pw32* | os2*)
14811       # This hack is so that the source file can tell whether it is being
14812       # built for inclusion in a dll (and should export symbols for example).
14813       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14814       ;;
14815
14816     hpux9* | hpux10* | hpux11*)
14817       lt_prog_compiler_wl_F77='-Wl,'
14818       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14819       # not for PA HP-UX.
14820       case "$host_cpu" in
14821       hppa*64*|ia64*)
14822         # +Z the default
14823         ;;
14824       *)
14825         lt_prog_compiler_pic_F77='+Z'
14826         ;;
14827       esac
14828       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14829       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14830       ;;
14831
14832     irix5* | irix6* | nonstopux*)
14833       lt_prog_compiler_wl_F77='-Wl,'
14834       # PIC (with -KPIC) is the default.
14835       lt_prog_compiler_static_F77='-non_shared'
14836       ;;
14837
14838     newsos6)
14839       lt_prog_compiler_pic_F77='-KPIC'
14840       lt_prog_compiler_static_F77='-Bstatic'
14841       ;;
14842
14843     linux*)
14844       case $CC in
14845       icc* | ecc*)
14846         lt_prog_compiler_wl_F77='-Wl,'
14847         lt_prog_compiler_pic_F77='-KPIC'
14848         lt_prog_compiler_static_F77='-static'
14849         ;;
14850       ccc*)
14851         lt_prog_compiler_wl_F77='-Wl,'
14852         # All Alpha code is PIC.
14853         lt_prog_compiler_static_F77='-non_shared'
14854         ;;
14855       esac
14856       ;;
14857
14858     osf3* | osf4* | osf5*)
14859       lt_prog_compiler_wl_F77='-Wl,'
14860       # All OSF/1 code is PIC.
14861       lt_prog_compiler_static_F77='-non_shared'
14862       ;;
14863
14864     sco3.2v5*)
14865       lt_prog_compiler_pic_F77='-Kpic'
14866       lt_prog_compiler_static_F77='-dn'
14867       ;;
14868
14869     solaris*)
14870       lt_prog_compiler_wl_F77='-Wl,'
14871       lt_prog_compiler_pic_F77='-KPIC'
14872       lt_prog_compiler_static_F77='-Bstatic'
14873       ;;
14874
14875     sunos4*)
14876       lt_prog_compiler_wl_F77='-Qoption ld '
14877       lt_prog_compiler_pic_F77='-PIC'
14878       lt_prog_compiler_static_F77='-Bstatic'
14879       ;;
14880
14881     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14882       lt_prog_compiler_wl_F77='-Wl,'
14883       lt_prog_compiler_pic_F77='-KPIC'
14884       lt_prog_compiler_static_F77='-Bstatic'
14885       ;;
14886
14887     sysv4*MP*)
14888       if test -d /usr/nec ;then
14889         lt_prog_compiler_pic_F77='-Kconform_pic'
14890         lt_prog_compiler_static_F77='-Bstatic'
14891       fi
14892       ;;
14893
14894     uts4*)
14895       lt_prog_compiler_pic_F77='-pic'
14896       lt_prog_compiler_static_F77='-Bstatic'
14897       ;;
14898
14899     *)
14900       lt_prog_compiler_can_build_shared_F77=no
14901       ;;
14902     esac
14903   fi
14904
14905 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14906 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14907
14908 #
14909 # Check to make sure the PIC flag actually works.
14910 #
14911 if test -n "$lt_prog_compiler_pic_F77"; then
14912
14913 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14914 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14915 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14916   echo $ECHO_N "(cached) $ECHO_C" >&6
14917 else
14918   lt_prog_compiler_pic_works_F77=no
14919   ac_outfile=conftest.$ac_objext
14920    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14921    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14922    # Insert the option either (1) after the last *FLAGS variable, or
14923    # (2) before a word containing "conftest.", or (3) at the end.
14924    # Note that $ac_compile itself does not contain backslashes and begins
14925    # with a dollar sign (not a hyphen), so the echo should work correctly.
14926    # The option is referenced via a variable to avoid confusing sed.
14927    lt_compile=`echo "$ac_compile" | $SED \
14928    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14929    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14930    -e 's:$: $lt_compiler_flag:'`
14931    (eval echo "\"\$as_me:14931: $lt_compile\"" >&5)
14932    (eval "$lt_compile" 2>conftest.err)
14933    ac_status=$?
14934    cat conftest.err >&5
14935    echo "$as_me:14935: \$? = $ac_status" >&5
14936    if (exit $ac_status) && test -s "$ac_outfile"; then
14937      # The compiler can only warn and ignore the option if not recognized
14938      # So say no if there are warnings
14939      if test ! -s conftest.err; then
14940        lt_prog_compiler_pic_works_F77=yes
14941      fi
14942    fi
14943    $rm conftest*
14944
14945 fi
14946 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14947 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14948
14949 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14950     case $lt_prog_compiler_pic_F77 in
14951      "" | " "*) ;;
14952      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14953      esac
14954 else
14955     lt_prog_compiler_pic_F77=
14956      lt_prog_compiler_can_build_shared_F77=no
14957 fi
14958
14959 fi
14960 case "$host_os" in
14961   # For platforms which do not support PIC, -DPIC is meaningless:
14962   *djgpp*)
14963     lt_prog_compiler_pic_F77=
14964     ;;
14965   *)
14966     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14967     ;;
14968 esac
14969
14970 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14971 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14972 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14973   echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975   lt_cv_prog_compiler_c_o_F77=no
14976    $rm -r conftest 2>/dev/null
14977    mkdir conftest
14978    cd conftest
14979    mkdir out
14980    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14981
14982    lt_compiler_flag="-o out/conftest2.$ac_objext"
14983    # Insert the option either (1) after the last *FLAGS variable, or
14984    # (2) before a word containing "conftest.", or (3) at the end.
14985    # Note that $ac_compile itself does not contain backslashes and begins
14986    # with a dollar sign (not a hyphen), so the echo should work correctly.
14987    lt_compile=`echo "$ac_compile" | $SED \
14988    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14989    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14990    -e 's:$: $lt_compiler_flag:'`
14991    (eval echo "\"\$as_me:14991: $lt_compile\"" >&5)
14992    (eval "$lt_compile" 2>out/conftest.err)
14993    ac_status=$?
14994    cat out/conftest.err >&5
14995    echo "$as_me:14995: \$? = $ac_status" >&5
14996    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14997    then
14998      # The compiler can only warn and ignore the option if not recognized
14999      # So say no if there are warnings
15000      if test ! -s out/conftest.err; then
15001        lt_cv_prog_compiler_c_o_F77=yes
15002      fi
15003    fi
15004    chmod u+w .
15005    $rm conftest*
15006    # SGI C++ compiler will create directory out/ii_files/ for
15007    # template instantiation
15008    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15009    $rm out/* && rmdir out
15010    cd ..
15011    rmdir conftest
15012    $rm conftest*
15013
15014 fi
15015 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15016 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15017
15018
15019 hard_links="nottested"
15020 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15021   # do not overwrite the value of need_locks provided by the user
15022   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15023 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15024   hard_links=yes
15025   $rm conftest*
15026   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15027   touch conftest.a
15028   ln conftest.a conftest.b 2>&5 || hard_links=no
15029   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15030   echo "$as_me:$LINENO: result: $hard_links" >&5
15031 echo "${ECHO_T}$hard_links" >&6
15032   if test "$hard_links" = no; then
15033     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15034 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15035     need_locks=warn
15036   fi
15037 else
15038   need_locks=no
15039 fi
15040
15041 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15042 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15043
15044   runpath_var=
15045   allow_undefined_flag_F77=
15046   enable_shared_with_static_runtimes_F77=no
15047   archive_cmds_F77=
15048   archive_expsym_cmds_F77=
15049   old_archive_From_new_cmds_F77=
15050   old_archive_from_expsyms_cmds_F77=
15051   export_dynamic_flag_spec_F77=
15052   whole_archive_flag_spec_F77=
15053   thread_safe_flag_spec_F77=
15054   hardcode_libdir_flag_spec_F77=
15055   hardcode_libdir_flag_spec_ld_F77=
15056   hardcode_libdir_separator_F77=
15057   hardcode_direct_F77=no
15058   hardcode_minus_L_F77=no
15059   hardcode_shlibpath_var_F77=unsupported
15060   link_all_deplibs_F77=unknown
15061   hardcode_automatic_F77=no
15062   module_cmds_F77=
15063   module_expsym_cmds_F77=
15064   always_export_symbols_F77=no
15065   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15066   # include_expsyms should be a list of space-separated symbols to be *always*
15067   # included in the symbol list
15068   include_expsyms_F77=
15069   # exclude_expsyms can be an extended regexp of symbols to exclude
15070   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15071   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15072   # as well as any symbol that contains `d'.
15073   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15074   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15075   # platforms (ab)use it in PIC code, but their linkers get confused if
15076   # the symbol is explicitly referenced.  Since portable code cannot
15077   # rely on this symbol name, it's probably fine to never include it in
15078   # preloaded symbol tables.
15079   extract_expsyms_cmds=
15080
15081   case $host_os in
15082   cygwin* | mingw* | pw32*)
15083     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15084     # When not using gcc, we currently assume that we are using
15085     # Microsoft Visual C++.
15086     if test "$GCC" != yes; then
15087       with_gnu_ld=no
15088     fi
15089     ;;
15090   openbsd*)
15091     with_gnu_ld=no
15092     ;;
15093   esac
15094
15095   ld_shlibs_F77=yes
15096   if test "$with_gnu_ld" = yes; then
15097     # If archive_cmds runs LD, not CC, wlarc should be empty
15098     wlarc='${wl}'
15099
15100     # See if GNU ld supports shared libraries.
15101     case $host_os in
15102     aix3* | aix4* | aix5*)
15103       # On AIX/PPC, the GNU linker is very broken
15104       if test "$host_cpu" != ia64; then
15105         ld_shlibs_F77=no
15106         cat <<EOF 1>&2
15107
15108 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15109 *** to be unable to reliably create shared libraries on AIX.
15110 *** Therefore, libtool is disabling shared libraries support.  If you
15111 *** really care for shared libraries, you may want to modify your PATH
15112 *** so that a non-GNU linker is found, and then restart.
15113
15114 EOF
15115       fi
15116       ;;
15117
15118     amigaos*)
15119       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15120       hardcode_libdir_flag_spec_F77='-L$libdir'
15121       hardcode_minus_L_F77=yes
15122
15123       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15124       # that the semantics of dynamic libraries on AmigaOS, at least up
15125       # to version 4, is to share data among multiple programs linked
15126       # with the same dynamic library.  Since this doesn't match the
15127       # behavior of shared libraries on other platforms, we can't use
15128       # them.
15129       ld_shlibs_F77=no
15130       ;;
15131
15132     beos*)
15133       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15134         allow_undefined_flag_F77=unsupported
15135         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15136         # support --undefined.  This deserves some investigation.  FIXME
15137         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15138       else
15139         ld_shlibs_F77=no
15140       fi
15141       ;;
15142
15143     cygwin* | mingw* | pw32*)
15144       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15145       # as there is no search path for DLLs.
15146       hardcode_libdir_flag_spec_F77='-L$libdir'
15147       allow_undefined_flag_F77=unsupported
15148       always_export_symbols_F77=no
15149       enable_shared_with_static_runtimes_F77=yes
15150       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15151
15152       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15153         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15154         # If the export-symbols file already is a .def file (1st line
15155         # is EXPORTS), use it as is; otherwise, prepend...
15156         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15157           cp $export_symbols $output_objdir/$soname.def;
15158         else
15159           echo EXPORTS > $output_objdir/$soname.def;
15160           cat $export_symbols >> $output_objdir/$soname.def;
15161         fi~
15162         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15163       else
15164         ld_shlibs=no
15165       fi
15166       ;;
15167
15168     netbsd*)
15169       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15170         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15171         wlarc=
15172       else
15173         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15174         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15175       fi
15176       ;;
15177
15178     solaris* | sysv5*)
15179       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15180         ld_shlibs_F77=no
15181         cat <<EOF 1>&2
15182
15183 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15184 *** create shared libraries on Solaris systems.  Therefore, libtool
15185 *** is disabling shared libraries support.  We urge you to upgrade GNU
15186 *** binutils to release 2.9.1 or newer.  Another option is to modify
15187 *** your PATH or compiler configuration so that the native linker is
15188 *** used, and then restart.
15189
15190 EOF
15191       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15192         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15193         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15194       else
15195         ld_shlibs_F77=no
15196       fi
15197       ;;
15198
15199     sunos4*)
15200       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15201       wlarc=
15202       hardcode_direct_F77=yes
15203       hardcode_shlibpath_var_F77=no
15204       ;;
15205
15206   linux*)
15207     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15208         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15209         archive_cmds_F77="$tmp_archive_cmds"
15210       supports_anon_versioning=no
15211       case `$LD -v 2>/dev/null` in
15212         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15213         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15214         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15215         *\ 2.11.*) ;; # other 2.11 versions
15216         *) supports_anon_versioning=yes ;;
15217       esac
15218       if test $supports_anon_versioning = yes; then
15219         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15220 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15221 $echo "local: *; };" >> $output_objdir/$libname.ver~
15222         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15223       else
15224         archive_expsym_cmds_F77="$tmp_archive_cmds"
15225       fi
15226     else
15227       ld_shlibs_F77=no
15228     fi
15229     ;;
15230
15231     *)
15232       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15233         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15234         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15235       else
15236         ld_shlibs_F77=no
15237       fi
15238       ;;
15239     esac
15240
15241     if test "$ld_shlibs_F77" = yes; then
15242       runpath_var=LD_RUN_PATH
15243       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15244       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15245       # ancient GNU ld didn't support --whole-archive et. al.
15246       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15247         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15248       else
15249         whole_archive_flag_spec_F77=
15250       fi
15251     fi
15252   else
15253     # PORTME fill in a description of your system's linker (not GNU ld)
15254     case $host_os in
15255     aix3*)
15256       allow_undefined_flag_F77=unsupported
15257       always_export_symbols_F77=yes
15258       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15259       # Note: this linker hardcodes the directories in LIBPATH if there
15260       # are no directories specified by -L.
15261       hardcode_minus_L_F77=yes
15262       if test "$GCC" = yes && test -z "$link_static_flag"; then
15263         # Neither direct hardcoding nor static linking is supported with a
15264         # broken collect2.
15265         hardcode_direct_F77=unsupported
15266       fi
15267       ;;
15268
15269     aix4* | aix5*)
15270       if test "$host_cpu" = ia64; then
15271         # On IA64, the linker does run time linking by default, so we don't
15272         # have to do anything special.
15273         aix_use_runtimelinking=no
15274         exp_sym_flag='-Bexport'
15275         no_entry_flag=""
15276       else
15277         # If we're using GNU nm, then we don't want the "-C" option.
15278         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15279         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15280           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'
15281         else
15282           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'
15283         fi
15284         aix_use_runtimelinking=no
15285
15286         # Test if we are trying to use run time linking or normal
15287         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15288         # need to do runtime linking.
15289         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15290           for ld_flag in $LDFLAGS; do
15291           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15292             aix_use_runtimelinking=yes
15293             break
15294           fi
15295           done
15296         esac
15297
15298         exp_sym_flag='-bexport'
15299         no_entry_flag='-bnoentry'
15300       fi
15301
15302       # When large executables or shared objects are built, AIX ld can
15303       # have problems creating the table of contents.  If linking a library
15304       # or program results in "error TOC overflow" add -mminimal-toc to
15305       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15306       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15307
15308       archive_cmds_F77=''
15309       hardcode_direct_F77=yes
15310       hardcode_libdir_separator_F77=':'
15311       link_all_deplibs_F77=yes
15312
15313       if test "$GCC" = yes; then
15314         case $host_os in aix4.012|aix4.012.*)
15315         # We only want to do this on AIX 4.2 and lower, the check
15316         # below for broken collect2 doesn't work under 4.3+
15317           collect2name=`${CC} -print-prog-name=collect2`
15318           if test -f "$collect2name" && \
15319            strings "$collect2name" | grep resolve_lib_name >/dev/null
15320           then
15321           # We have reworked collect2
15322           hardcode_direct_F77=yes
15323           else
15324           # We have old collect2
15325           hardcode_direct_F77=unsupported
15326           # It fails to find uninstalled libraries when the uninstalled
15327           # path is not listed in the libpath.  Setting hardcode_minus_L
15328           # to unsupported forces relinking
15329           hardcode_minus_L_F77=yes
15330           hardcode_libdir_flag_spec_F77='-L$libdir'
15331           hardcode_libdir_separator_F77=
15332           fi
15333         esac
15334         shared_flag='-shared'
15335       else
15336         # not using gcc
15337         if test "$host_cpu" = ia64; then
15338         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15339         # chokes on -Wl,-G. The following line is correct:
15340           shared_flag='-G'
15341         else
15342         if test "$aix_use_runtimelinking" = yes; then
15343             shared_flag='${wl}-G'
15344           else
15345             shared_flag='${wl}-bM:SRE'
15346         fi
15347         fi
15348       fi
15349
15350       # It seems that -bexpall does not export symbols beginning with
15351       # underscore (_), so it is better to generate a list of symbols to export.
15352       always_export_symbols_F77=yes
15353       if test "$aix_use_runtimelinking" = yes; then
15354         # Warning - without using the other runtime loading flags (-brtl),
15355         # -berok will link without error, but may produce a broken library.
15356         allow_undefined_flag_F77='-berok'
15357        # Determine the default libpath from the value encoded in an empty executable.
15358        cat >conftest.$ac_ext <<_ACEOF
15359       program main
15360
15361       end
15362 _ACEOF
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15365   (eval $ac_link) 2>conftest.er1
15366   ac_status=$?
15367   grep -v '^ *+' conftest.er1 >conftest.err
15368   rm -f conftest.er1
15369   cat conftest.err >&5
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); } &&
15372          { ac_try='test -z "$ac_f77_werror_flag"
15373                          || test ! -s conftest.err'
15374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375   (eval $ac_try) 2>&5
15376   ac_status=$?
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); }; } &&
15379          { ac_try='test -s conftest$ac_exeext'
15380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381   (eval $ac_try) 2>&5
15382   ac_status=$?
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); }; }; then
15385
15386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15387 }'`
15388 # Check for a 64-bit object if we didn't find anything.
15389 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; }
15390 }'`; fi
15391 else
15392   echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15394
15395 fi
15396 rm -f conftest.err conftest.$ac_objext \
15397       conftest$ac_exeext conftest.$ac_ext
15398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15399
15400        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15401         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"
15402        else
15403         if test "$host_cpu" = ia64; then
15404           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15405           allow_undefined_flag_F77="-z nodefs"
15406           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"
15407         else
15408          # Determine the default libpath from the value encoded in an empty executable.
15409          cat >conftest.$ac_ext <<_ACEOF
15410       program main
15411
15412       end
15413 _ACEOF
15414 rm -f conftest.$ac_objext conftest$ac_exeext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15416   (eval $ac_link) 2>conftest.er1
15417   ac_status=$?
15418   grep -v '^ *+' conftest.er1 >conftest.err
15419   rm -f conftest.er1
15420   cat conftest.err >&5
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); } &&
15423          { ac_try='test -z "$ac_f77_werror_flag"
15424                          || test ! -s conftest.err'
15425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426   (eval $ac_try) 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; } &&
15430          { ac_try='test -s conftest$ac_exeext'
15431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432   (eval $ac_try) 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); }; }; then
15436
15437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15438 }'`
15439 # Check for a 64-bit object if we didn't find anything.
15440 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; }
15441 }'`; fi
15442 else
15443   echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15445
15446 fi
15447 rm -f conftest.err conftest.$ac_objext \
15448       conftest$ac_exeext conftest.$ac_ext
15449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15450
15451          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15452           # Warning - without using the other run time loading flags,
15453           # -berok will link without error, but may produce a broken library.
15454           no_undefined_flag_F77=' ${wl}-bernotok'
15455           allow_undefined_flag_F77=' ${wl}-berok'
15456           # -bexpall does not export symbols beginning with underscore (_)
15457           always_export_symbols_F77=yes
15458           # Exported symbols can be pulled into shared objects from archives
15459           whole_archive_flag_spec_F77=' '
15460           archive_cmds_need_lc_F77=yes
15461           # This is similar to how AIX traditionally builds it's shared libraries.
15462           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15463         fi
15464       fi
15465       ;;
15466
15467     amigaos*)
15468       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15469       hardcode_libdir_flag_spec_F77='-L$libdir'
15470       hardcode_minus_L_F77=yes
15471       # see comment about different semantics on the GNU ld section
15472       ld_shlibs_F77=no
15473       ;;
15474
15475     bsdi[45]*)
15476       export_dynamic_flag_spec_F77=-rdynamic
15477       ;;
15478
15479     cygwin* | mingw* | pw32*)
15480       # When not using gcc, we currently assume that we are using
15481       # Microsoft Visual C++.
15482       # hardcode_libdir_flag_spec is actually meaningless, as there is
15483       # no search path for DLLs.
15484       hardcode_libdir_flag_spec_F77=' '
15485       allow_undefined_flag_F77=unsupported
15486       # Tell ltmain to make .lib files, not .a files.
15487       libext=lib
15488       # Tell ltmain to make .dll files, not .so files.
15489       shrext_cmds=".dll"
15490       # FIXME: Setting linknames here is a bad hack.
15491       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15492       # The linker will automatically build a .lib file if we build a DLL.
15493       old_archive_From_new_cmds_F77='true'
15494       # FIXME: Should let the user specify the lib program.
15495       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15496       fix_srcfile_path='`cygpath -w "$srcfile"`'
15497       enable_shared_with_static_runtimes_F77=yes
15498       ;;
15499
15500     darwin* | rhapsody*)
15501       case "$host_os" in
15502         rhapsody* | darwin1.[012])
15503          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15504          ;;
15505        *) # Darwin 1.3 on
15506          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15507            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15508          else
15509            case ${MACOSX_DEPLOYMENT_TARGET} in
15510              10.[012])
15511                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15512                ;;
15513              10.*)
15514                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15515                ;;
15516            esac
15517          fi
15518          ;;
15519       esac
15520       archive_cmds_need_lc_F77=no
15521       hardcode_direct_F77=no
15522       hardcode_automatic_F77=yes
15523       hardcode_shlibpath_var_F77=unsupported
15524       whole_archive_flag_spec_F77=''
15525       link_all_deplibs_F77=yes
15526     if test "$GCC" = yes ; then
15527         output_verbose_link_cmd='echo'
15528         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15529       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15530       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15531       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15532       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15533     else
15534       case "$cc_basename" in
15535         xlc*)
15536          output_verbose_link_cmd='echo'
15537          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15538          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15539           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15540          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15541           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15542           ;;
15543        *)
15544          ld_shlibs_F77=no
15545           ;;
15546       esac
15547     fi
15548       ;;
15549
15550     dgux*)
15551       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552       hardcode_libdir_flag_spec_F77='-L$libdir'
15553       hardcode_shlibpath_var_F77=no
15554       ;;
15555
15556     freebsd1*)
15557       ld_shlibs_F77=no
15558       ;;
15559
15560     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15561     # support.  Future versions do this automatically, but an explicit c++rt0.o
15562     # does not break anything, and helps significantly (at the cost of a little
15563     # extra space).
15564     freebsd2.2*)
15565       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15566       hardcode_libdir_flag_spec_F77='-R$libdir'
15567       hardcode_direct_F77=yes
15568       hardcode_shlibpath_var_F77=no
15569       ;;
15570
15571     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15572     freebsd2*)
15573       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15574       hardcode_direct_F77=yes
15575       hardcode_minus_L_F77=yes
15576       hardcode_shlibpath_var_F77=no
15577       ;;
15578
15579     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15580     freebsd* | kfreebsd*-gnu)
15581       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15582       hardcode_libdir_flag_spec_F77='-R$libdir'
15583       hardcode_direct_F77=yes
15584       hardcode_shlibpath_var_F77=no
15585       ;;
15586
15587     hpux9*)
15588       if test "$GCC" = yes; then
15589         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15590       else
15591         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15592       fi
15593       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15594       hardcode_libdir_separator_F77=:
15595       hardcode_direct_F77=yes
15596
15597       # hardcode_minus_L: Not really in the search PATH,
15598       # but as the default location of the library.
15599       hardcode_minus_L_F77=yes
15600       export_dynamic_flag_spec_F77='${wl}-E'
15601       ;;
15602
15603     hpux10* | hpux11*)
15604       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15605         case "$host_cpu" in
15606         hppa*64*|ia64*)
15607           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15608           ;;
15609         *)
15610           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15611           ;;
15612         esac
15613       else
15614         case "$host_cpu" in
15615         hppa*64*|ia64*)
15616           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15617           ;;
15618         *)
15619           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15620           ;;
15621         esac
15622       fi
15623       if test "$with_gnu_ld" = no; then
15624         case "$host_cpu" in
15625         hppa*64*)
15626           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15627           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15628           hardcode_libdir_separator_F77=:
15629           hardcode_direct_F77=no
15630           hardcode_shlibpath_var_F77=no
15631           ;;
15632         ia64*)
15633           hardcode_libdir_flag_spec_F77='-L$libdir'
15634           hardcode_direct_F77=no
15635           hardcode_shlibpath_var_F77=no
15636
15637           # hardcode_minus_L: Not really in the search PATH,
15638           # but as the default location of the library.
15639           hardcode_minus_L_F77=yes
15640           ;;
15641         *)
15642           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15643           hardcode_libdir_separator_F77=:
15644           hardcode_direct_F77=yes
15645           export_dynamic_flag_spec_F77='${wl}-E'
15646
15647           # hardcode_minus_L: Not really in the search PATH,
15648           # but as the default location of the library.
15649           hardcode_minus_L_F77=yes
15650           ;;
15651         esac
15652       fi
15653       ;;
15654
15655     irix5* | irix6* | nonstopux*)
15656       if test "$GCC" = yes; then
15657         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'
15658       else
15659         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'
15660         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15661       fi
15662       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15663       hardcode_libdir_separator_F77=:
15664       link_all_deplibs_F77=yes
15665       ;;
15666
15667     netbsd*)
15668       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15669         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15670       else
15671         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15672       fi
15673       hardcode_libdir_flag_spec_F77='-R$libdir'
15674       hardcode_direct_F77=yes
15675       hardcode_shlibpath_var_F77=no
15676       ;;
15677
15678     newsos6)
15679       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680       hardcode_direct_F77=yes
15681       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15682       hardcode_libdir_separator_F77=:
15683       hardcode_shlibpath_var_F77=no
15684       ;;
15685
15686     openbsd*)
15687       hardcode_direct_F77=yes
15688       hardcode_shlibpath_var_F77=no
15689       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15690         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15691         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15692         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15693         export_dynamic_flag_spec_F77='${wl}-E'
15694       else
15695        case $host_os in
15696          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15697            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15698            hardcode_libdir_flag_spec_F77='-R$libdir'
15699            ;;
15700          *)
15701            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15702            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15703            ;;
15704        esac
15705       fi
15706       ;;
15707
15708     os2*)
15709       hardcode_libdir_flag_spec_F77='-L$libdir'
15710       hardcode_minus_L_F77=yes
15711       allow_undefined_flag_F77=unsupported
15712       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15713       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15714       ;;
15715
15716     osf3*)
15717       if test "$GCC" = yes; then
15718         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15719         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'
15720       else
15721         allow_undefined_flag_F77=' -expect_unresolved \*'
15722         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'
15723       fi
15724       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15725       hardcode_libdir_separator_F77=:
15726       ;;
15727
15728     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15729       if test "$GCC" = yes; then
15730         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15731         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'
15732         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15733       else
15734         allow_undefined_flag_F77=' -expect_unresolved \*'
15735         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'
15736         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~
15737         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15738
15739         # Both c and cxx compiler support -rpath directly
15740         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15741       fi
15742       hardcode_libdir_separator_F77=:
15743       ;;
15744
15745     sco3.2v5*)
15746       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15747       hardcode_shlibpath_var_F77=no
15748       export_dynamic_flag_spec_F77='${wl}-Bexport'
15749       runpath_var=LD_RUN_PATH
15750       hardcode_runpath_var=yes
15751       ;;
15752
15753     solaris*)
15754       no_undefined_flag_F77=' -z text'
15755       if test "$GCC" = yes; then
15756         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15757         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15758           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15759       else
15760         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15762         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15763       fi
15764       hardcode_libdir_flag_spec_F77='-R$libdir'
15765       hardcode_shlibpath_var_F77=no
15766       case $host_os in
15767       solaris2.[0-5] | solaris2.[0-5].*) ;;
15768       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15769         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15770       esac
15771       link_all_deplibs_F77=yes
15772       ;;
15773
15774     sunos4*)
15775       if test "x$host_vendor" = xsequent; then
15776         # Use $CC to link under sequent, because it throws in some extra .o
15777         # files that make .init and .fini sections work.
15778         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15779       else
15780         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15781       fi
15782       hardcode_libdir_flag_spec_F77='-L$libdir'
15783       hardcode_direct_F77=yes
15784       hardcode_minus_L_F77=yes
15785       hardcode_shlibpath_var_F77=no
15786       ;;
15787
15788     sysv4)
15789       case $host_vendor in
15790         sni)
15791           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15792           hardcode_direct_F77=yes # is this really true???
15793         ;;
15794         siemens)
15795           ## LD is ld it makes a PLAMLIB
15796           ## CC just makes a GrossModule.
15797           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15798           reload_cmds_F77='$CC -r -o $output$reload_objs'
15799           hardcode_direct_F77=no
15800         ;;
15801         motorola)
15802           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15803           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15804         ;;
15805       esac
15806       runpath_var='LD_RUN_PATH'
15807       hardcode_shlibpath_var_F77=no
15808       ;;
15809
15810     sysv4.3*)
15811       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15812       hardcode_shlibpath_var_F77=no
15813       export_dynamic_flag_spec_F77='-Bexport'
15814       ;;
15815
15816     sysv4*MP*)
15817       if test -d /usr/nec; then
15818         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15819         hardcode_shlibpath_var_F77=no
15820         runpath_var=LD_RUN_PATH
15821         hardcode_runpath_var=yes
15822         ld_shlibs_F77=yes
15823       fi
15824       ;;
15825
15826     sysv4.2uw2*)
15827       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15828       hardcode_direct_F77=yes
15829       hardcode_minus_L_F77=no
15830       hardcode_shlibpath_var_F77=no
15831       hardcode_runpath_var=yes
15832       runpath_var=LD_RUN_PATH
15833       ;;
15834
15835    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15836       no_undefined_flag_F77='${wl}-z ${wl}text'
15837       if test "$GCC" = yes; then
15838         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15839       else
15840         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15841       fi
15842       runpath_var='LD_RUN_PATH'
15843       hardcode_shlibpath_var_F77=no
15844       ;;
15845
15846     sysv5*)
15847       no_undefined_flag_F77=' -z text'
15848       # $CC -shared without GNU ld will not create a library from C++
15849       # object files and a static libstdc++, better avoid it by now
15850       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15851       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15852                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15853       hardcode_libdir_flag_spec_F77=
15854       hardcode_shlibpath_var_F77=no
15855       runpath_var='LD_RUN_PATH'
15856       ;;
15857
15858     uts4*)
15859       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15860       hardcode_libdir_flag_spec_F77='-L$libdir'
15861       hardcode_shlibpath_var_F77=no
15862       ;;
15863
15864     *)
15865       ld_shlibs_F77=no
15866       ;;
15867     esac
15868   fi
15869
15870 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15871 echo "${ECHO_T}$ld_shlibs_F77" >&6
15872 test "$ld_shlibs_F77" = no && can_build_shared=no
15873
15874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15875 if test "$GCC" = yes; then
15876   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15877 fi
15878
15879 #
15880 # Do we need to explicitly link libc?
15881 #
15882 case "x$archive_cmds_need_lc_F77" in
15883 x|xyes)
15884   # Assume -lc should be added
15885   archive_cmds_need_lc_F77=yes
15886
15887   if test "$enable_shared" = yes && test "$GCC" = yes; then
15888     case $archive_cmds_F77 in
15889     *'~'*)
15890       # FIXME: we may have to deal with multi-command sequences.
15891       ;;
15892     '$CC '*)
15893       # Test whether the compiler implicitly links with -lc since on some
15894       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15895       # to ld, don't add -lc before -lgcc.
15896       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15897 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15898       $rm conftest*
15899       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15900
15901       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15902   (eval $ac_compile) 2>&5
15903   ac_status=$?
15904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905   (exit $ac_status); } 2>conftest.err; then
15906         soname=conftest
15907         lib=conftest
15908         libobjs=conftest.$ac_objext
15909         deplibs=
15910         wl=$lt_prog_compiler_wl_F77
15911         compiler_flags=-v
15912         linker_flags=-v
15913         verstring=
15914         output_objdir=.
15915         libname=conftest
15916         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15917         allow_undefined_flag_F77=
15918         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15919   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15920   ac_status=$?
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); }
15923         then
15924           archive_cmds_need_lc_F77=no
15925         else
15926           archive_cmds_need_lc_F77=yes
15927         fi
15928         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15929       else
15930         cat conftest.err 1>&5
15931       fi
15932       $rm conftest*
15933       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15934 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15935       ;;
15936     esac
15937   fi
15938   ;;
15939 esac
15940
15941 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15942 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15943 library_names_spec=
15944 libname_spec='lib$name'
15945 soname_spec=
15946 shrext_cmds=".so"
15947 postinstall_cmds=
15948 postuninstall_cmds=
15949 finish_cmds=
15950 finish_eval=
15951 shlibpath_var=
15952 shlibpath_overrides_runpath=unknown
15953 version_type=none
15954 dynamic_linker="$host_os ld.so"
15955 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15956 if test "$GCC" = yes; then
15957   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15958   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15959     # if the path contains ";" then we assume it to be the separator
15960     # otherwise default to the standard path separator (i.e. ":") - it is
15961     # assumed that no part of a normal pathname contains ";" but that should
15962     # okay in the real world where ";" in dirpaths is itself problematic.
15963     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15964   else
15965     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15966   fi
15967 else
15968   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15969 fi
15970 need_lib_prefix=unknown
15971 hardcode_into_libs=no
15972
15973 # when you set need_version to no, make sure it does not cause -set_version
15974 # flags to be left without arguments
15975 need_version=unknown
15976
15977 case $host_os in
15978 aix3*)
15979   version_type=linux
15980   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15981   shlibpath_var=LIBPATH
15982
15983   # AIX 3 has no versioning support, so we append a major version to the name.
15984   soname_spec='${libname}${release}${shared_ext}$major'
15985   ;;
15986
15987 aix4* | aix5*)
15988   version_type=linux
15989   need_lib_prefix=no
15990   need_version=no
15991   hardcode_into_libs=yes
15992   if test "$host_cpu" = ia64; then
15993     # AIX 5 supports IA64
15994     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15995     shlibpath_var=LD_LIBRARY_PATH
15996   else
15997     # With GCC up to 2.95.x, collect2 would create an import file
15998     # for dependence libraries.  The import file would start with
15999     # the line `#! .'.  This would cause the generated library to
16000     # depend on `.', always an invalid library.  This was fixed in
16001     # development snapshots of GCC prior to 3.0.
16002     case $host_os in
16003       aix4 | aix4.[01] | aix4.[01].*)
16004       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16005            echo ' yes '
16006            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16007         :
16008       else
16009         can_build_shared=no
16010       fi
16011       ;;
16012     esac
16013     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16014     # soname into executable. Probably we can add versioning support to
16015     # collect2, so additional links can be useful in future.
16016     if test "$aix_use_runtimelinking" = yes; then
16017       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16018       # instead of lib<name>.a to let people know that these are not
16019       # typical AIX shared libraries.
16020       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16021     else
16022       # We preserve .a as extension for shared libraries through AIX4.2
16023       # and later when we are not doing run time linking.
16024       library_names_spec='${libname}${release}.a $libname.a'
16025       soname_spec='${libname}${release}${shared_ext}$major'
16026     fi
16027     shlibpath_var=LIBPATH
16028   fi
16029   ;;
16030
16031 amigaos*)
16032   library_names_spec='$libname.ixlibrary $libname.a'
16033   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16034   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'
16035   ;;
16036
16037 beos*)
16038   library_names_spec='${libname}${shared_ext}'
16039   dynamic_linker="$host_os ld.so"
16040   shlibpath_var=LIBRARY_PATH
16041   ;;
16042
16043 bsdi[45]*)
16044   version_type=linux
16045   need_version=no
16046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047   soname_spec='${libname}${release}${shared_ext}$major'
16048   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16049   shlibpath_var=LD_LIBRARY_PATH
16050   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16051   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16052   # the default ld.so.conf also contains /usr/contrib/lib and
16053   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16054   # libtool to hard-code these into programs
16055   ;;
16056
16057 cygwin* | mingw* | pw32*)
16058   version_type=windows
16059   shrext_cmds=".dll"
16060   need_version=no
16061   need_lib_prefix=no
16062
16063   case $GCC,$host_os in
16064   yes,cygwin* | yes,mingw* | yes,pw32*)
16065     library_names_spec='$libname.dll.a'
16066     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16067     postinstall_cmds='base_file=`basename \${file}`~
16068       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16069       dldir=$destdir/`dirname \$dlpath`~
16070       test -d \$dldir || mkdir -p \$dldir~
16071       $install_prog $dir/$dlname \$dldir/$dlname'
16072     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16073       dlpath=$dir/\$dldll~
16074        $rm \$dlpath'
16075     shlibpath_overrides_runpath=yes
16076
16077     case $host_os in
16078     cygwin*)
16079       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16080       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16081       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16082       ;;
16083     mingw*)
16084       # MinGW DLLs use traditional 'lib' prefix
16085       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16086       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16087       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16088         # It is most probably a Windows format PATH printed by
16089         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16090         # path with ; separators, and with drive letters. We can handle the
16091         # drive letters (cygwin fileutils understands them), so leave them,
16092         # especially as we might pass files found there to a mingw objdump,
16093         # which wouldn't understand a cygwinified path. Ahh.
16094         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16095       else
16096         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16097       fi
16098       ;;
16099     pw32*)
16100       # pw32 DLLs use 'pw' prefix rather than 'lib'
16101       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16102       ;;
16103     esac
16104     ;;
16105
16106   *)
16107     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16108     ;;
16109   esac
16110   dynamic_linker='Win32 ld.exe'
16111   # FIXME: first we should search . and the directory the executable is in
16112   shlibpath_var=PATH
16113   ;;
16114
16115 darwin* | rhapsody*)
16116   dynamic_linker="$host_os dyld"
16117   version_type=darwin
16118   need_lib_prefix=no
16119   need_version=no
16120   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16121   soname_spec='${libname}${release}${major}$shared_ext'
16122   shlibpath_overrides_runpath=yes
16123   shlibpath_var=DYLD_LIBRARY_PATH
16124   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16125   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16126   if test "$GCC" = yes; then
16127     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"`
16128   else
16129     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16130   fi
16131   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16132   ;;
16133
16134 dgux*)
16135   version_type=linux
16136   need_lib_prefix=no
16137   need_version=no
16138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16139   soname_spec='${libname}${release}${shared_ext}$major'
16140   shlibpath_var=LD_LIBRARY_PATH
16141   ;;
16142
16143 freebsd1*)
16144   dynamic_linker=no
16145   ;;
16146
16147 kfreebsd*-gnu)
16148   version_type=linux
16149   need_lib_prefix=no
16150   need_version=no
16151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16152   soname_spec='${libname}${release}${shared_ext}$major'
16153   shlibpath_var=LD_LIBRARY_PATH
16154   shlibpath_overrides_runpath=no
16155   hardcode_into_libs=yes
16156   dynamic_linker='GNU ld.so'
16157   ;;
16158
16159 freebsd*)
16160   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16161   version_type=freebsd-$objformat
16162   case $version_type in
16163     freebsd-elf*)
16164       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16165       need_version=no
16166       need_lib_prefix=no
16167       ;;
16168     freebsd-*)
16169       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16170       need_version=yes
16171       ;;
16172   esac
16173   shlibpath_var=LD_LIBRARY_PATH
16174   case $host_os in
16175   freebsd2*)
16176     shlibpath_overrides_runpath=yes
16177     ;;
16178   freebsd3.01* | freebsdelf3.01*)
16179     shlibpath_overrides_runpath=yes
16180     hardcode_into_libs=yes
16181     ;;
16182   *) # from 3.2 on
16183     shlibpath_overrides_runpath=no
16184     hardcode_into_libs=yes
16185     ;;
16186   esac
16187   ;;
16188
16189 gnu*)
16190   version_type=linux
16191   need_lib_prefix=no
16192   need_version=no
16193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16194   soname_spec='${libname}${release}${shared_ext}$major'
16195   shlibpath_var=LD_LIBRARY_PATH
16196   hardcode_into_libs=yes
16197   ;;
16198
16199 hpux9* | hpux10* | hpux11*)
16200   # Give a soname corresponding to the major version so that dld.sl refuses to
16201   # link against other versions.
16202   version_type=sunos
16203   need_lib_prefix=no
16204   need_version=no
16205   case "$host_cpu" in
16206   ia64*)
16207     shrext_cmds='.so'
16208     hardcode_into_libs=yes
16209     dynamic_linker="$host_os dld.so"
16210     shlibpath_var=LD_LIBRARY_PATH
16211     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213     soname_spec='${libname}${release}${shared_ext}$major'
16214     if test "X$HPUX_IA64_MODE" = X32; then
16215       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16216     else
16217       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16218     fi
16219     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16220     ;;
16221    hppa*64*)
16222      shrext_cmds='.sl'
16223      hardcode_into_libs=yes
16224      dynamic_linker="$host_os dld.sl"
16225      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16226      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16227      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228      soname_spec='${libname}${release}${shared_ext}$major'
16229      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16230      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16231      ;;
16232    *)
16233     shrext_cmds='.sl'
16234     dynamic_linker="$host_os dld.sl"
16235     shlibpath_var=SHLIB_PATH
16236     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16237     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238     soname_spec='${libname}${release}${shared_ext}$major'
16239     ;;
16240   esac
16241   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16242   postinstall_cmds='chmod 555 $lib'
16243   ;;
16244
16245 irix5* | irix6* | nonstopux*)
16246   case $host_os in
16247     nonstopux*) version_type=nonstopux ;;
16248     *)
16249         if test "$lt_cv_prog_gnu_ld" = yes; then
16250                 version_type=linux
16251         else
16252                 version_type=irix
16253         fi ;;
16254   esac
16255   need_lib_prefix=no
16256   need_version=no
16257   soname_spec='${libname}${release}${shared_ext}$major'
16258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16259   case $host_os in
16260   irix5* | nonstopux*)
16261     libsuff= shlibsuff=
16262     ;;
16263   *)
16264     case $LD in # libtool.m4 will add one of these switches to LD
16265     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16266       libsuff= shlibsuff= libmagic=32-bit;;
16267     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16268       libsuff=32 shlibsuff=N32 libmagic=N32;;
16269     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16270       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16271     *) libsuff= shlibsuff= libmagic=never-match;;
16272     esac
16273     ;;
16274   esac
16275   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16276   shlibpath_overrides_runpath=no
16277   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16278   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16279   hardcode_into_libs=yes
16280   ;;
16281
16282 # No shared lib support for Linux oldld, aout, or coff.
16283 linux*oldld* | linux*aout* | linux*coff*)
16284   dynamic_linker=no
16285   ;;
16286
16287 # This must be Linux ELF.
16288 linux*)
16289   version_type=linux
16290   need_lib_prefix=no
16291   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16295   shlibpath_var=LD_LIBRARY_PATH
16296   shlibpath_overrides_runpath=no
16297   # This implies no fast_install, which is unacceptable.
16298   # Some rework will be needed to allow for fast_install
16299   # before this can be enabled.
16300   hardcode_into_libs=yes
16301
16302   # Append ld.so.conf contents to the search path
16303   if test -f /etc/ld.so.conf; then
16304     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16305     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16306   fi
16307
16308   # We used to test for /lib/ld.so.1 and disable shared libraries on
16309   # powerpc, because MkLinux only supported shared libraries with the
16310   # GNU dynamic linker.  Since this was broken with cross compilers,
16311   # most powerpc-linux boxes support dynamic linking these days and
16312   # people can always --disable-shared, the test was removed, and we
16313   # assume the GNU/Linux dynamic linker is in use.
16314   dynamic_linker='GNU/Linux ld.so'
16315   ;;
16316
16317 knetbsd*-gnu)
16318   version_type=linux
16319   need_lib_prefix=no
16320   need_version=no
16321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16322   soname_spec='${libname}${release}${shared_ext}$major'
16323   shlibpath_var=LD_LIBRARY_PATH
16324   shlibpath_overrides_runpath=no
16325   hardcode_into_libs=yes
16326   dynamic_linker='GNU ld.so'
16327   ;;
16328
16329 netbsd*)
16330   version_type=sunos
16331   need_lib_prefix=no
16332   need_version=no
16333   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16335     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16336     dynamic_linker='NetBSD (a.out) ld.so'
16337   else
16338     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16339     soname_spec='${libname}${release}${shared_ext}$major'
16340     dynamic_linker='NetBSD ld.elf_so'
16341   fi
16342   shlibpath_var=LD_LIBRARY_PATH
16343   shlibpath_overrides_runpath=yes
16344   hardcode_into_libs=yes
16345   ;;
16346
16347 newsos6)
16348   version_type=linux
16349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350   shlibpath_var=LD_LIBRARY_PATH
16351   shlibpath_overrides_runpath=yes
16352   ;;
16353
16354 nto-qnx*)
16355   version_type=linux
16356   need_lib_prefix=no
16357   need_version=no
16358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16359   soname_spec='${libname}${release}${shared_ext}$major'
16360   shlibpath_var=LD_LIBRARY_PATH
16361   shlibpath_overrides_runpath=yes
16362   ;;
16363
16364 openbsd*)
16365   version_type=sunos
16366   need_lib_prefix=no
16367   need_version=no
16368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16369   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16370   shlibpath_var=LD_LIBRARY_PATH
16371   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16372     case $host_os in
16373       openbsd2.[89] | openbsd2.[89].*)
16374         shlibpath_overrides_runpath=no
16375         ;;
16376       *)
16377         shlibpath_overrides_runpath=yes
16378         ;;
16379       esac
16380   else
16381     shlibpath_overrides_runpath=yes
16382   fi
16383   ;;
16384
16385 os2*)
16386   libname_spec='$name'
16387   shrext_cmds=".dll"
16388   need_lib_prefix=no
16389   library_names_spec='$libname${shared_ext} $libname.a'
16390   dynamic_linker='OS/2 ld.exe'
16391   shlibpath_var=LIBPATH
16392   ;;
16393
16394 osf3* | osf4* | osf5*)
16395   version_type=osf
16396   need_lib_prefix=no
16397   need_version=no
16398   soname_spec='${libname}${release}${shared_ext}$major'
16399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16400   shlibpath_var=LD_LIBRARY_PATH
16401   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16402   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16403   ;;
16404
16405 sco3.2v5*)
16406   version_type=osf
16407   soname_spec='${libname}${release}${shared_ext}$major'
16408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409   shlibpath_var=LD_LIBRARY_PATH
16410   ;;
16411
16412 solaris*)
16413   version_type=linux
16414   need_lib_prefix=no
16415   need_version=no
16416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417   soname_spec='${libname}${release}${shared_ext}$major'
16418   shlibpath_var=LD_LIBRARY_PATH
16419   shlibpath_overrides_runpath=yes
16420   hardcode_into_libs=yes
16421   # ldd complains unless libraries are executable
16422   postinstall_cmds='chmod +x $lib'
16423   ;;
16424
16425 sunos4*)
16426   version_type=sunos
16427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16428   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16429   shlibpath_var=LD_LIBRARY_PATH
16430   shlibpath_overrides_runpath=yes
16431   if test "$with_gnu_ld" = yes; then
16432     need_lib_prefix=no
16433   fi
16434   need_version=yes
16435   ;;
16436
16437 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16438   version_type=linux
16439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16440   soname_spec='${libname}${release}${shared_ext}$major'
16441   shlibpath_var=LD_LIBRARY_PATH
16442   case $host_vendor in
16443     sni)
16444       shlibpath_overrides_runpath=no
16445       need_lib_prefix=no
16446       export_dynamic_flag_spec='${wl}-Blargedynsym'
16447       runpath_var=LD_RUN_PATH
16448       ;;
16449     siemens)
16450       need_lib_prefix=no
16451       ;;
16452     motorola)
16453       need_lib_prefix=no
16454       need_version=no
16455       shlibpath_overrides_runpath=no
16456       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16457       ;;
16458   esac
16459   ;;
16460
16461 sysv4*MP*)
16462   if test -d /usr/nec ;then
16463     version_type=linux
16464     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16465     soname_spec='$libname${shared_ext}.$major'
16466     shlibpath_var=LD_LIBRARY_PATH
16467   fi
16468   ;;
16469
16470 uts4*)
16471   version_type=linux
16472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16473   soname_spec='${libname}${release}${shared_ext}$major'
16474   shlibpath_var=LD_LIBRARY_PATH
16475   ;;
16476
16477 *)
16478   dynamic_linker=no
16479   ;;
16480 esac
16481 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16482 echo "${ECHO_T}$dynamic_linker" >&6
16483 test "$dynamic_linker" = no && can_build_shared=no
16484
16485 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16486 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16487 hardcode_action_F77=
16488 if test -n "$hardcode_libdir_flag_spec_F77" || \
16489    test -n "$runpath_var_F77" || \
16490    test "X$hardcode_automatic_F77" = "Xyes" ; then
16491
16492   # We can hardcode non-existant directories.
16493   if test "$hardcode_direct_F77" != no &&
16494      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16495      # have to relink, otherwise we might link with an installed library
16496      # when we should be linking with a yet-to-be-installed one
16497      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16498      test "$hardcode_minus_L_F77" != no; then
16499     # Linking always hardcodes the temporary library directory.
16500     hardcode_action_F77=relink
16501   else
16502     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16503     hardcode_action_F77=immediate
16504   fi
16505 else
16506   # We cannot hardcode anything, or else we can only hardcode existing
16507   # directories.
16508   hardcode_action_F77=unsupported
16509 fi
16510 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16511 echo "${ECHO_T}$hardcode_action_F77" >&6
16512
16513 if test "$hardcode_action_F77" = relink; then
16514   # Fast installation is not supported
16515   enable_fast_install=no
16516 elif test "$shlibpath_overrides_runpath" = yes ||
16517      test "$enable_shared" = no; then
16518   # Fast installation is not necessary
16519   enable_fast_install=needless
16520 fi
16521
16522 striplib=
16523 old_striplib=
16524 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16525 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16526 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16527   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16528   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16529   echo "$as_me:$LINENO: result: yes" >&5
16530 echo "${ECHO_T}yes" >&6
16531 else
16532 # FIXME - insert some real tests, host_os isn't really good enough
16533   case $host_os in
16534    darwin*)
16535        if test -n "$STRIP" ; then
16536          striplib="$STRIP -x"
16537          echo "$as_me:$LINENO: result: yes" >&5
16538 echo "${ECHO_T}yes" >&6
16539        else
16540   echo "$as_me:$LINENO: result: no" >&5
16541 echo "${ECHO_T}no" >&6
16542 fi
16543        ;;
16544    *)
16545   echo "$as_me:$LINENO: result: no" >&5
16546 echo "${ECHO_T}no" >&6
16547     ;;
16548   esac
16549 fi
16550
16551
16552
16553 # The else clause should only fire when bootstrapping the
16554 # libtool distribution, otherwise you forgot to ship ltmain.sh
16555 # with your package, and you will get complaints that there are
16556 # no rules to generate ltmain.sh.
16557 if test -f "$ltmain"; then
16558   # See if we are running on zsh, and set the options which allow our commands through
16559   # without removal of \ escapes.
16560   if test -n "${ZSH_VERSION+set}" ; then
16561     setopt NO_GLOB_SUBST
16562   fi
16563   # Now quote all the things that may contain metacharacters while being
16564   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16565   # variables and quote the copies for generation of the libtool script.
16566   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16567     SED SHELL STRIP \
16568     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16569     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16570     deplibs_check_method reload_flag reload_cmds need_locks \
16571     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16572     lt_cv_sys_global_symbol_to_c_name_address \
16573     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16574     old_postinstall_cmds old_postuninstall_cmds \
16575     compiler_F77 \
16576     CC_F77 \
16577     LD_F77 \
16578     lt_prog_compiler_wl_F77 \
16579     lt_prog_compiler_pic_F77 \
16580     lt_prog_compiler_static_F77 \
16581     lt_prog_compiler_no_builtin_flag_F77 \
16582     export_dynamic_flag_spec_F77 \
16583     thread_safe_flag_spec_F77 \
16584     whole_archive_flag_spec_F77 \
16585     enable_shared_with_static_runtimes_F77 \
16586     old_archive_cmds_F77 \
16587     old_archive_from_new_cmds_F77 \
16588     predep_objects_F77 \
16589     postdep_objects_F77 \
16590     predeps_F77 \
16591     postdeps_F77 \
16592     compiler_lib_search_path_F77 \
16593     archive_cmds_F77 \
16594     archive_expsym_cmds_F77 \
16595     postinstall_cmds_F77 \
16596     postuninstall_cmds_F77 \
16597     old_archive_from_expsyms_cmds_F77 \
16598     allow_undefined_flag_F77 \
16599     no_undefined_flag_F77 \
16600     export_symbols_cmds_F77 \
16601     hardcode_libdir_flag_spec_F77 \
16602     hardcode_libdir_flag_spec_ld_F77 \
16603     hardcode_libdir_separator_F77 \
16604     hardcode_automatic_F77 \
16605     module_cmds_F77 \
16606     module_expsym_cmds_F77 \
16607     lt_cv_prog_compiler_c_o_F77 \
16608     exclude_expsyms_F77 \
16609     include_expsyms_F77; do
16610
16611     case $var in
16612     old_archive_cmds_F77 | \
16613     old_archive_from_new_cmds_F77 | \
16614     archive_cmds_F77 | \
16615     archive_expsym_cmds_F77 | \
16616     module_cmds_F77 | \
16617     module_expsym_cmds_F77 | \
16618     old_archive_from_expsyms_cmds_F77 | \
16619     export_symbols_cmds_F77 | \
16620     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16621     postinstall_cmds | postuninstall_cmds | \
16622     old_postinstall_cmds | old_postuninstall_cmds | \
16623     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16624       # Double-quote double-evaled strings.
16625       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16626       ;;
16627     *)
16628       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16629       ;;
16630     esac
16631   done
16632
16633   case $lt_echo in
16634   *'\$0 --fallback-echo"')
16635     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16636     ;;
16637   esac
16638
16639 cfgfile="$ofile"
16640
16641   cat <<__EOF__ >> "$cfgfile"
16642 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16643
16644 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16645
16646 # Shell to use when invoking shell scripts.
16647 SHELL=$lt_SHELL
16648
16649 # Whether or not to build shared libraries.
16650 build_libtool_libs=$enable_shared
16651
16652 # Whether or not to build static libraries.
16653 build_old_libs=$enable_static
16654
16655 # Whether or not to add -lc for building shared libraries.
16656 build_libtool_need_lc=$archive_cmds_need_lc_F77
16657
16658 # Whether or not to disallow shared libs when runtime libs are static
16659 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16660
16661 # Whether or not to optimize for fast installation.
16662 fast_install=$enable_fast_install
16663
16664 # The host system.
16665 host_alias=$host_alias
16666 host=$host
16667
16668 # An echo program that does not interpret backslashes.
16669 echo=$lt_echo
16670
16671 # The archiver.
16672 AR=$lt_AR
16673 AR_FLAGS=$lt_AR_FLAGS
16674
16675 # A C compiler.
16676 LTCC=$lt_LTCC
16677
16678 # A language-specific compiler.
16679 CC=$lt_compiler_F77
16680
16681 # Is the compiler the GNU C compiler?
16682 with_gcc=$GCC_F77
16683
16684 # An ERE matcher.
16685 EGREP=$lt_EGREP
16686
16687 # The linker used to build libraries.
16688 LD=$lt_LD_F77
16689
16690 # Whether we need hard or soft links.
16691 LN_S=$lt_LN_S
16692
16693 # A BSD-compatible nm program.
16694 NM=$lt_NM
16695
16696 # A symbol stripping program
16697 STRIP=$lt_STRIP
16698
16699 # Used to examine libraries when file_magic_cmd begins "file"
16700 MAGIC_CMD=$MAGIC_CMD
16701
16702 # Used on cygwin: DLL creation program.
16703 DLLTOOL="$DLLTOOL"
16704
16705 # Used on cygwin: object dumper.
16706 OBJDUMP="$OBJDUMP"
16707
16708 # Used on cygwin: assembler.
16709 AS="$AS"
16710
16711 # The name of the directory that contains temporary libtool files.
16712 objdir=$objdir
16713
16714 # How to create reloadable object files.
16715 reload_flag=$lt_reload_flag
16716 reload_cmds=$lt_reload_cmds
16717
16718 # How to pass a linker flag through the compiler.
16719 wl=$lt_lt_prog_compiler_wl_F77
16720
16721 # Object file suffix (normally "o").
16722 objext="$ac_objext"
16723
16724 # Old archive suffix (normally "a").
16725 libext="$libext"
16726
16727 # Shared library suffix (normally ".so").
16728 shrext_cmds='$shrext_cmds'
16729
16730 # Executable file suffix (normally "").
16731 exeext="$exeext"
16732
16733 # Additional compiler flags for building library objects.
16734 pic_flag=$lt_lt_prog_compiler_pic_F77
16735 pic_mode=$pic_mode
16736
16737 # What is the maximum length of a command?
16738 max_cmd_len=$lt_cv_sys_max_cmd_len
16739
16740 # Does compiler simultaneously support -c and -o options?
16741 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16742
16743 # Must we lock files when doing compilation ?
16744 need_locks=$lt_need_locks
16745
16746 # Do we need the lib prefix for modules?
16747 need_lib_prefix=$need_lib_prefix
16748
16749 # Do we need a version for libraries?
16750 need_version=$need_version
16751
16752 # Whether dlopen is supported.
16753 dlopen_support=$enable_dlopen
16754
16755 # Whether dlopen of programs is supported.
16756 dlopen_self=$enable_dlopen_self
16757
16758 # Whether dlopen of statically linked programs is supported.
16759 dlopen_self_static=$enable_dlopen_self_static
16760
16761 # Compiler flag to prevent dynamic linking.
16762 link_static_flag=$lt_lt_prog_compiler_static_F77
16763
16764 # Compiler flag to turn off builtin functions.
16765 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16766
16767 # Compiler flag to allow reflexive dlopens.
16768 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16769
16770 # Compiler flag to generate shared objects directly from archives.
16771 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16772
16773 # Compiler flag to generate thread-safe objects.
16774 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16775
16776 # Library versioning type.
16777 version_type=$version_type
16778
16779 # Format of library name prefix.
16780 libname_spec=$lt_libname_spec
16781
16782 # List of archive names.  First name is the real one, the rest are links.
16783 # The last name is the one that the linker finds with -lNAME.
16784 library_names_spec=$lt_library_names_spec
16785
16786 # The coded name of the library, if different from the real name.
16787 soname_spec=$lt_soname_spec
16788
16789 # Commands used to build and install an old-style archive.
16790 RANLIB=$lt_RANLIB
16791 old_archive_cmds=$lt_old_archive_cmds_F77
16792 old_postinstall_cmds=$lt_old_postinstall_cmds
16793 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16794
16795 # Create an old-style archive from a shared archive.
16796 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16797
16798 # Create a temporary old-style archive to link instead of a shared archive.
16799 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16800
16801 # Commands used to build and install a shared archive.
16802 archive_cmds=$lt_archive_cmds_F77
16803 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16804 postinstall_cmds=$lt_postinstall_cmds
16805 postuninstall_cmds=$lt_postuninstall_cmds
16806
16807 # Commands used to build a loadable module (assumed same as above if empty)
16808 module_cmds=$lt_module_cmds_F77
16809 module_expsym_cmds=$lt_module_expsym_cmds_F77
16810
16811 # Commands to strip libraries.
16812 old_striplib=$lt_old_striplib
16813 striplib=$lt_striplib
16814
16815 # Dependencies to place before the objects being linked to create a
16816 # shared library.
16817 predep_objects=$lt_predep_objects_F77
16818
16819 # Dependencies to place after the objects being linked to create a
16820 # shared library.
16821 postdep_objects=$lt_postdep_objects_F77
16822
16823 # Dependencies to place before the objects being linked to create a
16824 # shared library.
16825 predeps=$lt_predeps_F77
16826
16827 # Dependencies to place after the objects being linked to create a
16828 # shared library.
16829 postdeps=$lt_postdeps_F77
16830
16831 # The library search path used internally by the compiler when linking
16832 # a shared library.
16833 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16834
16835 # Method to check whether dependent libraries are shared objects.
16836 deplibs_check_method=$lt_deplibs_check_method
16837
16838 # Command to use when deplibs_check_method == file_magic.
16839 file_magic_cmd=$lt_file_magic_cmd
16840
16841 # Flag that allows shared libraries with undefined symbols to be built.
16842 allow_undefined_flag=$lt_allow_undefined_flag_F77
16843
16844 # Flag that forces no undefined symbols.
16845 no_undefined_flag=$lt_no_undefined_flag_F77
16846
16847 # Commands used to finish a libtool library installation in a directory.
16848 finish_cmds=$lt_finish_cmds
16849
16850 # Same as above, but a single script fragment to be evaled but not shown.
16851 finish_eval=$lt_finish_eval
16852
16853 # Take the output of nm and produce a listing of raw symbols and C names.
16854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16855
16856 # Transform the output of nm in a proper C declaration
16857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16858
16859 # Transform the output of nm in a C name address pair
16860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16861
16862 # This is the shared library runtime path variable.
16863 runpath_var=$runpath_var
16864
16865 # This is the shared library path variable.
16866 shlibpath_var=$shlibpath_var
16867
16868 # Is shlibpath searched before the hard-coded library search path?
16869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16870
16871 # How to hardcode a shared library path into an executable.
16872 hardcode_action=$hardcode_action_F77
16873
16874 # Whether we should hardcode library paths into libraries.
16875 hardcode_into_libs=$hardcode_into_libs
16876
16877 # Flag to hardcode \$libdir into a binary during linking.
16878 # This must work even if \$libdir does not exist.
16879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16880
16881 # If ld is used when linking, flag to hardcode \$libdir into
16882 # a binary during linking. This must work even if \$libdir does
16883 # not exist.
16884 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16885
16886 # Whether we need a single -rpath flag with a separated argument.
16887 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16888
16889 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16890 # resulting binary.
16891 hardcode_direct=$hardcode_direct_F77
16892
16893 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16894 # resulting binary.
16895 hardcode_minus_L=$hardcode_minus_L_F77
16896
16897 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16898 # the resulting binary.
16899 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16900
16901 # Set to yes if building a shared library automatically hardcodes DIR into the library
16902 # and all subsequent libraries and executables linked against it.
16903 hardcode_automatic=$hardcode_automatic_F77
16904
16905 # Variables whose values should be saved in libtool wrapper scripts and
16906 # restored at relink time.
16907 variables_saved_for_relink="$variables_saved_for_relink"
16908
16909 # Whether libtool must link a program against all its dependency libraries.
16910 link_all_deplibs=$link_all_deplibs_F77
16911
16912 # Compile-time system search path for libraries
16913 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16914
16915 # Run-time system search path for libraries
16916 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16917
16918 # Fix the shell variable \$srcfile for the compiler.
16919 fix_srcfile_path="$fix_srcfile_path_F77"
16920
16921 # Set to yes if exported symbols are required.
16922 always_export_symbols=$always_export_symbols_F77
16923
16924 # The commands to list exported symbols.
16925 export_symbols_cmds=$lt_export_symbols_cmds_F77
16926
16927 # The commands to extract the exported symbol list from a shared archive.
16928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16929
16930 # Symbols that should not be listed in the preloaded symbols.
16931 exclude_expsyms=$lt_exclude_expsyms_F77
16932
16933 # Symbols that must always be exported.
16934 include_expsyms=$lt_include_expsyms_F77
16935
16936 # ### END LIBTOOL TAG CONFIG: $tagname
16937
16938 __EOF__
16939
16940
16941 else
16942   # If there is no Makefile yet, we rely on a make rule to execute
16943   # `config.status --recheck' to rerun these tests and create the
16944   # libtool script then.
16945   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16946   if test -f "$ltmain_in"; then
16947     test -f Makefile && make "$ltmain"
16948   fi
16949 fi
16950
16951
16952 ac_ext=c
16953 ac_cpp='$CPP $CPPFLAGS'
16954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16957
16958 CC="$lt_save_CC"
16959
16960         else
16961           tagname=""
16962         fi
16963         ;;
16964
16965       GCJ)
16966         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16967           ac_ext=c
16968 ac_cpp='$CPP $CPPFLAGS'
16969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16972
16973
16974 # Source file extension for Java test sources.
16975 ac_ext=java
16976
16977 # Object file extension for compiled Java test sources.
16978 objext=o
16979 objext_GCJ=$objext
16980
16981 # Code to be used in simple compile tests
16982 lt_simple_compile_test_code="class foo {}\n"
16983
16984 # Code to be used in simple link tests
16985 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16986
16987 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16988
16989 # If no C compiler was specified, use CC.
16990 LTCC=${LTCC-"$CC"}
16991
16992 # Allow CC to be a program name with arguments.
16993 compiler=$CC
16994
16995
16996 # Allow CC to be a program name with arguments.
16997 lt_save_CC="$CC"
16998 CC=${GCJ-"gcj"}
16999 compiler=$CC
17000 compiler_GCJ=$CC
17001
17002 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17003 archive_cmds_need_lc_GCJ=no
17004
17005
17006 lt_prog_compiler_no_builtin_flag_GCJ=
17007
17008 if test "$GCC" = yes; then
17009   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17010
17011
17012 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17013 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17014 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17015   echo $ECHO_N "(cached) $ECHO_C" >&6
17016 else
17017   lt_cv_prog_compiler_rtti_exceptions=no
17018   ac_outfile=conftest.$ac_objext
17019    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17020    lt_compiler_flag="-fno-rtti -fno-exceptions"
17021    # Insert the option either (1) after the last *FLAGS variable, or
17022    # (2) before a word containing "conftest.", or (3) at the end.
17023    # Note that $ac_compile itself does not contain backslashes and begins
17024    # with a dollar sign (not a hyphen), so the echo should work correctly.
17025    # The option is referenced via a variable to avoid confusing sed.
17026    lt_compile=`echo "$ac_compile" | $SED \
17027    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17028    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17029    -e 's:$: $lt_compiler_flag:'`
17030    (eval echo "\"\$as_me:17030: $lt_compile\"" >&5)
17031    (eval "$lt_compile" 2>conftest.err)
17032    ac_status=$?
17033    cat conftest.err >&5
17034    echo "$as_me:17034: \$? = $ac_status" >&5
17035    if (exit $ac_status) && test -s "$ac_outfile"; then
17036      # The compiler can only warn and ignore the option if not recognized
17037      # So say no if there are warnings
17038      if test ! -s conftest.err; then
17039        lt_cv_prog_compiler_rtti_exceptions=yes
17040      fi
17041    fi
17042    $rm conftest*
17043
17044 fi
17045 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17046 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17047
17048 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17049     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17050 else
17051     :
17052 fi
17053
17054 fi
17055
17056 lt_prog_compiler_wl_GCJ=
17057 lt_prog_compiler_pic_GCJ=
17058 lt_prog_compiler_static_GCJ=
17059
17060 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17061 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17062
17063   if test "$GCC" = yes; then
17064     lt_prog_compiler_wl_GCJ='-Wl,'
17065     lt_prog_compiler_static_GCJ='-static'
17066
17067     case $host_os in
17068       aix*)
17069       # All AIX code is PIC.
17070       if test "$host_cpu" = ia64; then
17071         # AIX 5 now supports IA64 processor
17072         lt_prog_compiler_static_GCJ='-Bstatic'
17073       fi
17074       ;;
17075
17076     amigaos*)
17077       # FIXME: we need at least 68020 code to build shared libraries, but
17078       # adding the `-m68020' flag to GCC prevents building anything better,
17079       # like `-m68040'.
17080       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17081       ;;
17082
17083     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17084       # PIC is the default for these OSes.
17085       ;;
17086
17087     mingw* | pw32* | os2*)
17088       # This hack is so that the source file can tell whether it is being
17089       # built for inclusion in a dll (and should export symbols for example).
17090       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17091       ;;
17092
17093     darwin* | rhapsody*)
17094       # PIC is the default on this platform
17095       # Common symbols not allowed in MH_DYLIB files
17096       lt_prog_compiler_pic_GCJ='-fno-common'
17097       ;;
17098
17099     msdosdjgpp*)
17100       # Just because we use GCC doesn't mean we suddenly get shared libraries
17101       # on systems that don't support them.
17102       lt_prog_compiler_can_build_shared_GCJ=no
17103       enable_shared=no
17104       ;;
17105
17106     sysv4*MP*)
17107       if test -d /usr/nec; then
17108         lt_prog_compiler_pic_GCJ=-Kconform_pic
17109       fi
17110       ;;
17111
17112     hpux*)
17113       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17114       # not for PA HP-UX.
17115       case "$host_cpu" in
17116       hppa*64*|ia64*)
17117         # +Z the default
17118         ;;
17119       *)
17120         lt_prog_compiler_pic_GCJ='-fPIC'
17121         ;;
17122       esac
17123       ;;
17124
17125     *)
17126       lt_prog_compiler_pic_GCJ='-fPIC'
17127       ;;
17128     esac
17129   else
17130     # PORTME Check for flag to pass linker flags through the system compiler.
17131     case $host_os in
17132     aix*)
17133       lt_prog_compiler_wl_GCJ='-Wl,'
17134       if test "$host_cpu" = ia64; then
17135         # AIX 5 now supports IA64 processor
17136         lt_prog_compiler_static_GCJ='-Bstatic'
17137       else
17138         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17139       fi
17140       ;;
17141       darwin*)
17142         # PIC is the default on this platform
17143         # Common symbols not allowed in MH_DYLIB files
17144        case "$cc_basename" in
17145          xlc*)
17146          lt_prog_compiler_pic_GCJ='-qnocommon'
17147          lt_prog_compiler_wl_GCJ='-Wl,'
17148          ;;
17149        esac
17150        ;;
17151
17152     mingw* | pw32* | os2*)
17153       # This hack is so that the source file can tell whether it is being
17154       # built for inclusion in a dll (and should export symbols for example).
17155       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17156       ;;
17157
17158     hpux9* | hpux10* | hpux11*)
17159       lt_prog_compiler_wl_GCJ='-Wl,'
17160       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17161       # not for PA HP-UX.
17162       case "$host_cpu" in
17163       hppa*64*|ia64*)
17164         # +Z the default
17165         ;;
17166       *)
17167         lt_prog_compiler_pic_GCJ='+Z'
17168         ;;
17169       esac
17170       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17171       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17172       ;;
17173
17174     irix5* | irix6* | nonstopux*)
17175       lt_prog_compiler_wl_GCJ='-Wl,'
17176       # PIC (with -KPIC) is the default.
17177       lt_prog_compiler_static_GCJ='-non_shared'
17178       ;;
17179
17180     newsos6)
17181       lt_prog_compiler_pic_GCJ='-KPIC'
17182       lt_prog_compiler_static_GCJ='-Bstatic'
17183       ;;
17184
17185     linux*)
17186       case $CC in
17187       icc* | ecc*)
17188         lt_prog_compiler_wl_GCJ='-Wl,'
17189         lt_prog_compiler_pic_GCJ='-KPIC'
17190         lt_prog_compiler_static_GCJ='-static'
17191         ;;
17192       ccc*)
17193         lt_prog_compiler_wl_GCJ='-Wl,'
17194         # All Alpha code is PIC.
17195         lt_prog_compiler_static_GCJ='-non_shared'
17196         ;;
17197       esac
17198       ;;
17199
17200     osf3* | osf4* | osf5*)
17201       lt_prog_compiler_wl_GCJ='-Wl,'
17202       # All OSF/1 code is PIC.
17203       lt_prog_compiler_static_GCJ='-non_shared'
17204       ;;
17205
17206     sco3.2v5*)
17207       lt_prog_compiler_pic_GCJ='-Kpic'
17208       lt_prog_compiler_static_GCJ='-dn'
17209       ;;
17210
17211     solaris*)
17212       lt_prog_compiler_wl_GCJ='-Wl,'
17213       lt_prog_compiler_pic_GCJ='-KPIC'
17214       lt_prog_compiler_static_GCJ='-Bstatic'
17215       ;;
17216
17217     sunos4*)
17218       lt_prog_compiler_wl_GCJ='-Qoption ld '
17219       lt_prog_compiler_pic_GCJ='-PIC'
17220       lt_prog_compiler_static_GCJ='-Bstatic'
17221       ;;
17222
17223     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17224       lt_prog_compiler_wl_GCJ='-Wl,'
17225       lt_prog_compiler_pic_GCJ='-KPIC'
17226       lt_prog_compiler_static_GCJ='-Bstatic'
17227       ;;
17228
17229     sysv4*MP*)
17230       if test -d /usr/nec ;then
17231         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17232         lt_prog_compiler_static_GCJ='-Bstatic'
17233       fi
17234       ;;
17235
17236     uts4*)
17237       lt_prog_compiler_pic_GCJ='-pic'
17238       lt_prog_compiler_static_GCJ='-Bstatic'
17239       ;;
17240
17241     *)
17242       lt_prog_compiler_can_build_shared_GCJ=no
17243       ;;
17244     esac
17245   fi
17246
17247 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17248 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17249
17250 #
17251 # Check to make sure the PIC flag actually works.
17252 #
17253 if test -n "$lt_prog_compiler_pic_GCJ"; then
17254
17255 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17256 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17257 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17258   echo $ECHO_N "(cached) $ECHO_C" >&6
17259 else
17260   lt_prog_compiler_pic_works_GCJ=no
17261   ac_outfile=conftest.$ac_objext
17262    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17263    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17264    # Insert the option either (1) after the last *FLAGS variable, or
17265    # (2) before a word containing "conftest.", or (3) at the end.
17266    # Note that $ac_compile itself does not contain backslashes and begins
17267    # with a dollar sign (not a hyphen), so the echo should work correctly.
17268    # The option is referenced via a variable to avoid confusing sed.
17269    lt_compile=`echo "$ac_compile" | $SED \
17270    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17271    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17272    -e 's:$: $lt_compiler_flag:'`
17273    (eval echo "\"\$as_me:17273: $lt_compile\"" >&5)
17274    (eval "$lt_compile" 2>conftest.err)
17275    ac_status=$?
17276    cat conftest.err >&5
17277    echo "$as_me:17277: \$? = $ac_status" >&5
17278    if (exit $ac_status) && test -s "$ac_outfile"; then
17279      # The compiler can only warn and ignore the option if not recognized
17280      # So say no if there are warnings
17281      if test ! -s conftest.err; then
17282        lt_prog_compiler_pic_works_GCJ=yes
17283      fi
17284    fi
17285    $rm conftest*
17286
17287 fi
17288 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17289 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17290
17291 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17292     case $lt_prog_compiler_pic_GCJ in
17293      "" | " "*) ;;
17294      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17295      esac
17296 else
17297     lt_prog_compiler_pic_GCJ=
17298      lt_prog_compiler_can_build_shared_GCJ=no
17299 fi
17300
17301 fi
17302 case "$host_os" in
17303   # For platforms which do not support PIC, -DPIC is meaningless:
17304   *djgpp*)
17305     lt_prog_compiler_pic_GCJ=
17306     ;;
17307   *)
17308     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17309     ;;
17310 esac
17311
17312 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17313 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17314 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17315   echo $ECHO_N "(cached) $ECHO_C" >&6
17316 else
17317   lt_cv_prog_compiler_c_o_GCJ=no
17318    $rm -r conftest 2>/dev/null
17319    mkdir conftest
17320    cd conftest
17321    mkdir out
17322    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17323
17324    lt_compiler_flag="-o out/conftest2.$ac_objext"
17325    # Insert the option either (1) after the last *FLAGS variable, or
17326    # (2) before a word containing "conftest.", or (3) at the end.
17327    # Note that $ac_compile itself does not contain backslashes and begins
17328    # with a dollar sign (not a hyphen), so the echo should work correctly.
17329    lt_compile=`echo "$ac_compile" | $SED \
17330    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17331    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17332    -e 's:$: $lt_compiler_flag:'`
17333    (eval echo "\"\$as_me:17333: $lt_compile\"" >&5)
17334    (eval "$lt_compile" 2>out/conftest.err)
17335    ac_status=$?
17336    cat out/conftest.err >&5
17337    echo "$as_me:17337: \$? = $ac_status" >&5
17338    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17339    then
17340      # The compiler can only warn and ignore the option if not recognized
17341      # So say no if there are warnings
17342      if test ! -s out/conftest.err; then
17343        lt_cv_prog_compiler_c_o_GCJ=yes
17344      fi
17345    fi
17346    chmod u+w .
17347    $rm conftest*
17348    # SGI C++ compiler will create directory out/ii_files/ for
17349    # template instantiation
17350    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17351    $rm out/* && rmdir out
17352    cd ..
17353    rmdir conftest
17354    $rm conftest*
17355
17356 fi
17357 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17358 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17359
17360
17361 hard_links="nottested"
17362 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17363   # do not overwrite the value of need_locks provided by the user
17364   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17365 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17366   hard_links=yes
17367   $rm conftest*
17368   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17369   touch conftest.a
17370   ln conftest.a conftest.b 2>&5 || hard_links=no
17371   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17372   echo "$as_me:$LINENO: result: $hard_links" >&5
17373 echo "${ECHO_T}$hard_links" >&6
17374   if test "$hard_links" = no; then
17375     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17376 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17377     need_locks=warn
17378   fi
17379 else
17380   need_locks=no
17381 fi
17382
17383 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17384 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17385
17386   runpath_var=
17387   allow_undefined_flag_GCJ=
17388   enable_shared_with_static_runtimes_GCJ=no
17389   archive_cmds_GCJ=
17390   archive_expsym_cmds_GCJ=
17391   old_archive_From_new_cmds_GCJ=
17392   old_archive_from_expsyms_cmds_GCJ=
17393   export_dynamic_flag_spec_GCJ=
17394   whole_archive_flag_spec_GCJ=
17395   thread_safe_flag_spec_GCJ=
17396   hardcode_libdir_flag_spec_GCJ=
17397   hardcode_libdir_flag_spec_ld_GCJ=
17398   hardcode_libdir_separator_GCJ=
17399   hardcode_direct_GCJ=no
17400   hardcode_minus_L_GCJ=no
17401   hardcode_shlibpath_var_GCJ=unsupported
17402   link_all_deplibs_GCJ=unknown
17403   hardcode_automatic_GCJ=no
17404   module_cmds_GCJ=
17405   module_expsym_cmds_GCJ=
17406   always_export_symbols_GCJ=no
17407   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17408   # include_expsyms should be a list of space-separated symbols to be *always*
17409   # included in the symbol list
17410   include_expsyms_GCJ=
17411   # exclude_expsyms can be an extended regexp of symbols to exclude
17412   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17413   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17414   # as well as any symbol that contains `d'.
17415   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17416   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17417   # platforms (ab)use it in PIC code, but their linkers get confused if
17418   # the symbol is explicitly referenced.  Since portable code cannot
17419   # rely on this symbol name, it's probably fine to never include it in
17420   # preloaded symbol tables.
17421   extract_expsyms_cmds=
17422
17423   case $host_os in
17424   cygwin* | mingw* | pw32*)
17425     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17426     # When not using gcc, we currently assume that we are using
17427     # Microsoft Visual C++.
17428     if test "$GCC" != yes; then
17429       with_gnu_ld=no
17430     fi
17431     ;;
17432   openbsd*)
17433     with_gnu_ld=no
17434     ;;
17435   esac
17436
17437   ld_shlibs_GCJ=yes
17438   if test "$with_gnu_ld" = yes; then
17439     # If archive_cmds runs LD, not CC, wlarc should be empty
17440     wlarc='${wl}'
17441
17442     # See if GNU ld supports shared libraries.
17443     case $host_os in
17444     aix3* | aix4* | aix5*)
17445       # On AIX/PPC, the GNU linker is very broken
17446       if test "$host_cpu" != ia64; then
17447         ld_shlibs_GCJ=no
17448         cat <<EOF 1>&2
17449
17450 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17451 *** to be unable to reliably create shared libraries on AIX.
17452 *** Therefore, libtool is disabling shared libraries support.  If you
17453 *** really care for shared libraries, you may want to modify your PATH
17454 *** so that a non-GNU linker is found, and then restart.
17455
17456 EOF
17457       fi
17458       ;;
17459
17460     amigaos*)
17461       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17462       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17463       hardcode_minus_L_GCJ=yes
17464
17465       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17466       # that the semantics of dynamic libraries on AmigaOS, at least up
17467       # to version 4, is to share data among multiple programs linked
17468       # with the same dynamic library.  Since this doesn't match the
17469       # behavior of shared libraries on other platforms, we can't use
17470       # them.
17471       ld_shlibs_GCJ=no
17472       ;;
17473
17474     beos*)
17475       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17476         allow_undefined_flag_GCJ=unsupported
17477         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17478         # support --undefined.  This deserves some investigation.  FIXME
17479         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17480       else
17481         ld_shlibs_GCJ=no
17482       fi
17483       ;;
17484
17485     cygwin* | mingw* | pw32*)
17486       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17487       # as there is no search path for DLLs.
17488       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17489       allow_undefined_flag_GCJ=unsupported
17490       always_export_symbols_GCJ=no
17491       enable_shared_with_static_runtimes_GCJ=yes
17492       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17493
17494       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17495         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17496         # If the export-symbols file already is a .def file (1st line
17497         # is EXPORTS), use it as is; otherwise, prepend...
17498         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17499           cp $export_symbols $output_objdir/$soname.def;
17500         else
17501           echo EXPORTS > $output_objdir/$soname.def;
17502           cat $export_symbols >> $output_objdir/$soname.def;
17503         fi~
17504         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17505       else
17506         ld_shlibs=no
17507       fi
17508       ;;
17509
17510     netbsd*)
17511       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17512         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17513         wlarc=
17514       else
17515         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17516         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17517       fi
17518       ;;
17519
17520     solaris* | sysv5*)
17521       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17522         ld_shlibs_GCJ=no
17523         cat <<EOF 1>&2
17524
17525 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17526 *** create shared libraries on Solaris systems.  Therefore, libtool
17527 *** is disabling shared libraries support.  We urge you to upgrade GNU
17528 *** binutils to release 2.9.1 or newer.  Another option is to modify
17529 *** your PATH or compiler configuration so that the native linker is
17530 *** used, and then restart.
17531
17532 EOF
17533       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17534         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17535         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17536       else
17537         ld_shlibs_GCJ=no
17538       fi
17539       ;;
17540
17541     sunos4*)
17542       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17543       wlarc=
17544       hardcode_direct_GCJ=yes
17545       hardcode_shlibpath_var_GCJ=no
17546       ;;
17547
17548   linux*)
17549     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17550         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17551         archive_cmds_GCJ="$tmp_archive_cmds"
17552       supports_anon_versioning=no
17553       case `$LD -v 2>/dev/null` in
17554         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17555         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17556         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17557         *\ 2.11.*) ;; # other 2.11 versions
17558         *) supports_anon_versioning=yes ;;
17559       esac
17560       if test $supports_anon_versioning = yes; then
17561         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17562 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17563 $echo "local: *; };" >> $output_objdir/$libname.ver~
17564         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17565       else
17566         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17567       fi
17568     else
17569       ld_shlibs_GCJ=no
17570     fi
17571     ;;
17572
17573     *)
17574       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17575         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17576         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17577       else
17578         ld_shlibs_GCJ=no
17579       fi
17580       ;;
17581     esac
17582
17583     if test "$ld_shlibs_GCJ" = yes; then
17584       runpath_var=LD_RUN_PATH
17585       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17586       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17587       # ancient GNU ld didn't support --whole-archive et. al.
17588       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17589         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17590       else
17591         whole_archive_flag_spec_GCJ=
17592       fi
17593     fi
17594   else
17595     # PORTME fill in a description of your system's linker (not GNU ld)
17596     case $host_os in
17597     aix3*)
17598       allow_undefined_flag_GCJ=unsupported
17599       always_export_symbols_GCJ=yes
17600       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17601       # Note: this linker hardcodes the directories in LIBPATH if there
17602       # are no directories specified by -L.
17603       hardcode_minus_L_GCJ=yes
17604       if test "$GCC" = yes && test -z "$link_static_flag"; then
17605         # Neither direct hardcoding nor static linking is supported with a
17606         # broken collect2.
17607         hardcode_direct_GCJ=unsupported
17608       fi
17609       ;;
17610
17611     aix4* | aix5*)
17612       if test "$host_cpu" = ia64; then
17613         # On IA64, the linker does run time linking by default, so we don't
17614         # have to do anything special.
17615         aix_use_runtimelinking=no
17616         exp_sym_flag='-Bexport'
17617         no_entry_flag=""
17618       else
17619         # If we're using GNU nm, then we don't want the "-C" option.
17620         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17621         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17622           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'
17623         else
17624           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'
17625         fi
17626         aix_use_runtimelinking=no
17627
17628         # Test if we are trying to use run time linking or normal
17629         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17630         # need to do runtime linking.
17631         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17632           for ld_flag in $LDFLAGS; do
17633           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17634             aix_use_runtimelinking=yes
17635             break
17636           fi
17637           done
17638         esac
17639
17640         exp_sym_flag='-bexport'
17641         no_entry_flag='-bnoentry'
17642       fi
17643
17644       # When large executables or shared objects are built, AIX ld can
17645       # have problems creating the table of contents.  If linking a library
17646       # or program results in "error TOC overflow" add -mminimal-toc to
17647       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17648       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17649
17650       archive_cmds_GCJ=''
17651       hardcode_direct_GCJ=yes
17652       hardcode_libdir_separator_GCJ=':'
17653       link_all_deplibs_GCJ=yes
17654
17655       if test "$GCC" = yes; then
17656         case $host_os in aix4.012|aix4.012.*)
17657         # We only want to do this on AIX 4.2 and lower, the check
17658         # below for broken collect2 doesn't work under 4.3+
17659           collect2name=`${CC} -print-prog-name=collect2`
17660           if test -f "$collect2name" && \
17661            strings "$collect2name" | grep resolve_lib_name >/dev/null
17662           then
17663           # We have reworked collect2
17664           hardcode_direct_GCJ=yes
17665           else
17666           # We have old collect2
17667           hardcode_direct_GCJ=unsupported
17668           # It fails to find uninstalled libraries when the uninstalled
17669           # path is not listed in the libpath.  Setting hardcode_minus_L
17670           # to unsupported forces relinking
17671           hardcode_minus_L_GCJ=yes
17672           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17673           hardcode_libdir_separator_GCJ=
17674           fi
17675         esac
17676         shared_flag='-shared'
17677       else
17678         # not using gcc
17679         if test "$host_cpu" = ia64; then
17680         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17681         # chokes on -Wl,-G. The following line is correct:
17682           shared_flag='-G'
17683         else
17684         if test "$aix_use_runtimelinking" = yes; then
17685             shared_flag='${wl}-G'
17686           else
17687             shared_flag='${wl}-bM:SRE'
17688         fi
17689         fi
17690       fi
17691
17692       # It seems that -bexpall does not export symbols beginning with
17693       # underscore (_), so it is better to generate a list of symbols to export.
17694       always_export_symbols_GCJ=yes
17695       if test "$aix_use_runtimelinking" = yes; then
17696         # Warning - without using the other runtime loading flags (-brtl),
17697         # -berok will link without error, but may produce a broken library.
17698         allow_undefined_flag_GCJ='-berok'
17699        # Determine the default libpath from the value encoded in an empty executable.
17700        cat >conftest.$ac_ext <<_ACEOF
17701 /* confdefs.h.  */
17702 _ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h.  */
17706
17707 int
17708 main ()
17709 {
17710
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717   (eval $ac_link) 2>conftest.er1
17718   ac_status=$?
17719   grep -v '^ *+' conftest.er1 >conftest.err
17720   rm -f conftest.er1
17721   cat conftest.err >&5
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); } &&
17724          { ac_try='test -z "$ac_c_werror_flag"
17725                          || test ! -s conftest.err'
17726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727   (eval $ac_try) 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); }; } &&
17731          { ac_try='test -s conftest$ac_exeext'
17732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733   (eval $ac_try) 2>&5
17734   ac_status=$?
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); }; }; then
17737
17738 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17739 }'`
17740 # Check for a 64-bit object if we didn't find anything.
17741 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; }
17742 }'`; fi
17743 else
17744   echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17746
17747 fi
17748 rm -f conftest.err conftest.$ac_objext \
17749       conftest$ac_exeext conftest.$ac_ext
17750 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17751
17752        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17753         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"
17754        else
17755         if test "$host_cpu" = ia64; then
17756           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17757           allow_undefined_flag_GCJ="-z nodefs"
17758           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"
17759         else
17760          # Determine the default libpath from the value encoded in an empty executable.
17761          cat >conftest.$ac_ext <<_ACEOF
17762 /* confdefs.h.  */
17763 _ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h.  */
17767
17768 int
17769 main ()
17770 {
17771
17772   ;
17773   return 0;
17774 }
17775 _ACEOF
17776 rm -f conftest.$ac_objext conftest$ac_exeext
17777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17778   (eval $ac_link) 2>conftest.er1
17779   ac_status=$?
17780   grep -v '^ *+' conftest.er1 >conftest.err
17781   rm -f conftest.er1
17782   cat conftest.err >&5
17783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784   (exit $ac_status); } &&
17785          { ac_try='test -z "$ac_c_werror_flag"
17786                          || test ! -s conftest.err'
17787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788   (eval $ac_try) 2>&5
17789   ac_status=$?
17790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791   (exit $ac_status); }; } &&
17792          { ac_try='test -s conftest$ac_exeext'
17793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794   (eval $ac_try) 2>&5
17795   ac_status=$?
17796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); }; }; then
17798
17799 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17800 }'`
17801 # Check for a 64-bit object if we didn't find anything.
17802 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; }
17803 }'`; fi
17804 else
17805   echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17807
17808 fi
17809 rm -f conftest.err conftest.$ac_objext \
17810       conftest$ac_exeext conftest.$ac_ext
17811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17812
17813          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17814           # Warning - without using the other run time loading flags,
17815           # -berok will link without error, but may produce a broken library.
17816           no_undefined_flag_GCJ=' ${wl}-bernotok'
17817           allow_undefined_flag_GCJ=' ${wl}-berok'
17818           # -bexpall does not export symbols beginning with underscore (_)
17819           always_export_symbols_GCJ=yes
17820           # Exported symbols can be pulled into shared objects from archives
17821           whole_archive_flag_spec_GCJ=' '
17822           archive_cmds_need_lc_GCJ=yes
17823           # This is similar to how AIX traditionally builds it's shared libraries.
17824           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17825         fi
17826       fi
17827       ;;
17828
17829     amigaos*)
17830       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17831       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17832       hardcode_minus_L_GCJ=yes
17833       # see comment about different semantics on the GNU ld section
17834       ld_shlibs_GCJ=no
17835       ;;
17836
17837     bsdi[45]*)
17838       export_dynamic_flag_spec_GCJ=-rdynamic
17839       ;;
17840
17841     cygwin* | mingw* | pw32*)
17842       # When not using gcc, we currently assume that we are using
17843       # Microsoft Visual C++.
17844       # hardcode_libdir_flag_spec is actually meaningless, as there is
17845       # no search path for DLLs.
17846       hardcode_libdir_flag_spec_GCJ=' '
17847       allow_undefined_flag_GCJ=unsupported
17848       # Tell ltmain to make .lib files, not .a files.
17849       libext=lib
17850       # Tell ltmain to make .dll files, not .so files.
17851       shrext_cmds=".dll"
17852       # FIXME: Setting linknames here is a bad hack.
17853       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17854       # The linker will automatically build a .lib file if we build a DLL.
17855       old_archive_From_new_cmds_GCJ='true'
17856       # FIXME: Should let the user specify the lib program.
17857       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17858       fix_srcfile_path='`cygpath -w "$srcfile"`'
17859       enable_shared_with_static_runtimes_GCJ=yes
17860       ;;
17861
17862     darwin* | rhapsody*)
17863       case "$host_os" in
17864         rhapsody* | darwin1.[012])
17865          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17866          ;;
17867        *) # Darwin 1.3 on
17868          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17869            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17870          else
17871            case ${MACOSX_DEPLOYMENT_TARGET} in
17872              10.[012])
17873                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17874                ;;
17875              10.*)
17876                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17877                ;;
17878            esac
17879          fi
17880          ;;
17881       esac
17882       archive_cmds_need_lc_GCJ=no
17883       hardcode_direct_GCJ=no
17884       hardcode_automatic_GCJ=yes
17885       hardcode_shlibpath_var_GCJ=unsupported
17886       whole_archive_flag_spec_GCJ=''
17887       link_all_deplibs_GCJ=yes
17888     if test "$GCC" = yes ; then
17889         output_verbose_link_cmd='echo'
17890         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17891       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17892       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17893       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17894       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17895     else
17896       case "$cc_basename" in
17897         xlc*)
17898          output_verbose_link_cmd='echo'
17899          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17900          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17901           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17902          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17903           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17904           ;;
17905        *)
17906          ld_shlibs_GCJ=no
17907           ;;
17908       esac
17909     fi
17910       ;;
17911
17912     dgux*)
17913       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17914       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17915       hardcode_shlibpath_var_GCJ=no
17916       ;;
17917
17918     freebsd1*)
17919       ld_shlibs_GCJ=no
17920       ;;
17921
17922     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17923     # support.  Future versions do this automatically, but an explicit c++rt0.o
17924     # does not break anything, and helps significantly (at the cost of a little
17925     # extra space).
17926     freebsd2.2*)
17927       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17928       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17929       hardcode_direct_GCJ=yes
17930       hardcode_shlibpath_var_GCJ=no
17931       ;;
17932
17933     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17934     freebsd2*)
17935       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17936       hardcode_direct_GCJ=yes
17937       hardcode_minus_L_GCJ=yes
17938       hardcode_shlibpath_var_GCJ=no
17939       ;;
17940
17941     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17942     freebsd* | kfreebsd*-gnu)
17943       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17944       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17945       hardcode_direct_GCJ=yes
17946       hardcode_shlibpath_var_GCJ=no
17947       ;;
17948
17949     hpux9*)
17950       if test "$GCC" = yes; then
17951         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17952       else
17953         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17954       fi
17955       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17956       hardcode_libdir_separator_GCJ=:
17957       hardcode_direct_GCJ=yes
17958
17959       # hardcode_minus_L: Not really in the search PATH,
17960       # but as the default location of the library.
17961       hardcode_minus_L_GCJ=yes
17962       export_dynamic_flag_spec_GCJ='${wl}-E'
17963       ;;
17964
17965     hpux10* | hpux11*)
17966       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17967         case "$host_cpu" in
17968         hppa*64*|ia64*)
17969           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17970           ;;
17971         *)
17972           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17973           ;;
17974         esac
17975       else
17976         case "$host_cpu" in
17977         hppa*64*|ia64*)
17978           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17979           ;;
17980         *)
17981           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17982           ;;
17983         esac
17984       fi
17985       if test "$with_gnu_ld" = no; then
17986         case "$host_cpu" in
17987         hppa*64*)
17988           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17989           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17990           hardcode_libdir_separator_GCJ=:
17991           hardcode_direct_GCJ=no
17992           hardcode_shlibpath_var_GCJ=no
17993           ;;
17994         ia64*)
17995           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17996           hardcode_direct_GCJ=no
17997           hardcode_shlibpath_var_GCJ=no
17998
17999           # hardcode_minus_L: Not really in the search PATH,
18000           # but as the default location of the library.
18001           hardcode_minus_L_GCJ=yes
18002           ;;
18003         *)
18004           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18005           hardcode_libdir_separator_GCJ=:
18006           hardcode_direct_GCJ=yes
18007           export_dynamic_flag_spec_GCJ='${wl}-E'
18008
18009           # hardcode_minus_L: Not really in the search PATH,
18010           # but as the default location of the library.
18011           hardcode_minus_L_GCJ=yes
18012           ;;
18013         esac
18014       fi
18015       ;;
18016
18017     irix5* | irix6* | nonstopux*)
18018       if test "$GCC" = yes; then
18019         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'
18020       else
18021         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'
18022         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18023       fi
18024       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18025       hardcode_libdir_separator_GCJ=:
18026       link_all_deplibs_GCJ=yes
18027       ;;
18028
18029     netbsd*)
18030       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18031         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18032       else
18033         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18034       fi
18035       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18036       hardcode_direct_GCJ=yes
18037       hardcode_shlibpath_var_GCJ=no
18038       ;;
18039
18040     newsos6)
18041       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18042       hardcode_direct_GCJ=yes
18043       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18044       hardcode_libdir_separator_GCJ=:
18045       hardcode_shlibpath_var_GCJ=no
18046       ;;
18047
18048     openbsd*)
18049       hardcode_direct_GCJ=yes
18050       hardcode_shlibpath_var_GCJ=no
18051       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18052         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18053         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18054         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18055         export_dynamic_flag_spec_GCJ='${wl}-E'
18056       else
18057        case $host_os in
18058          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18059            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18060            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18061            ;;
18062          *)
18063            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18064            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18065            ;;
18066        esac
18067       fi
18068       ;;
18069
18070     os2*)
18071       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18072       hardcode_minus_L_GCJ=yes
18073       allow_undefined_flag_GCJ=unsupported
18074       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18075       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18076       ;;
18077
18078     osf3*)
18079       if test "$GCC" = yes; then
18080         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18081         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'
18082       else
18083         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18084         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'
18085       fi
18086       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18087       hardcode_libdir_separator_GCJ=:
18088       ;;
18089
18090     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18091       if test "$GCC" = yes; then
18092         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18093         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'
18094         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18095       else
18096         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18097         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'
18098         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~
18099         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18100
18101         # Both c and cxx compiler support -rpath directly
18102         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18103       fi
18104       hardcode_libdir_separator_GCJ=:
18105       ;;
18106
18107     sco3.2v5*)
18108       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18109       hardcode_shlibpath_var_GCJ=no
18110       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18111       runpath_var=LD_RUN_PATH
18112       hardcode_runpath_var=yes
18113       ;;
18114
18115     solaris*)
18116       no_undefined_flag_GCJ=' -z text'
18117       if test "$GCC" = yes; then
18118         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18119         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18120           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18121       else
18122         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18123         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18124         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18125       fi
18126       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18127       hardcode_shlibpath_var_GCJ=no
18128       case $host_os in
18129       solaris2.[0-5] | solaris2.[0-5].*) ;;
18130       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18131         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18132       esac
18133       link_all_deplibs_GCJ=yes
18134       ;;
18135
18136     sunos4*)
18137       if test "x$host_vendor" = xsequent; then
18138         # Use $CC to link under sequent, because it throws in some extra .o
18139         # files that make .init and .fini sections work.
18140         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18141       else
18142         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18143       fi
18144       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18145       hardcode_direct_GCJ=yes
18146       hardcode_minus_L_GCJ=yes
18147       hardcode_shlibpath_var_GCJ=no
18148       ;;
18149
18150     sysv4)
18151       case $host_vendor in
18152         sni)
18153           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18154           hardcode_direct_GCJ=yes # is this really true???
18155         ;;
18156         siemens)
18157           ## LD is ld it makes a PLAMLIB
18158           ## CC just makes a GrossModule.
18159           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18160           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18161           hardcode_direct_GCJ=no
18162         ;;
18163         motorola)
18164           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18165           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18166         ;;
18167       esac
18168       runpath_var='LD_RUN_PATH'
18169       hardcode_shlibpath_var_GCJ=no
18170       ;;
18171
18172     sysv4.3*)
18173       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18174       hardcode_shlibpath_var_GCJ=no
18175       export_dynamic_flag_spec_GCJ='-Bexport'
18176       ;;
18177
18178     sysv4*MP*)
18179       if test -d /usr/nec; then
18180         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18181         hardcode_shlibpath_var_GCJ=no
18182         runpath_var=LD_RUN_PATH
18183         hardcode_runpath_var=yes
18184         ld_shlibs_GCJ=yes
18185       fi
18186       ;;
18187
18188     sysv4.2uw2*)
18189       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18190       hardcode_direct_GCJ=yes
18191       hardcode_minus_L_GCJ=no
18192       hardcode_shlibpath_var_GCJ=no
18193       hardcode_runpath_var=yes
18194       runpath_var=LD_RUN_PATH
18195       ;;
18196
18197    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18198       no_undefined_flag_GCJ='${wl}-z ${wl}text'
18199       if test "$GCC" = yes; then
18200         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18201       else
18202         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18203       fi
18204       runpath_var='LD_RUN_PATH'
18205       hardcode_shlibpath_var_GCJ=no
18206       ;;
18207
18208     sysv5*)
18209       no_undefined_flag_GCJ=' -z text'
18210       # $CC -shared without GNU ld will not create a library from C++
18211       # object files and a static libstdc++, better avoid it by now
18212       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18213       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18214                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18215       hardcode_libdir_flag_spec_GCJ=
18216       hardcode_shlibpath_var_GCJ=no
18217       runpath_var='LD_RUN_PATH'
18218       ;;
18219
18220     uts4*)
18221       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18222       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18223       hardcode_shlibpath_var_GCJ=no
18224       ;;
18225
18226     *)
18227       ld_shlibs_GCJ=no
18228       ;;
18229     esac
18230   fi
18231
18232 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18233 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18234 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18235
18236 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18237 if test "$GCC" = yes; then
18238   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18239 fi
18240
18241 #
18242 # Do we need to explicitly link libc?
18243 #
18244 case "x$archive_cmds_need_lc_GCJ" in
18245 x|xyes)
18246   # Assume -lc should be added
18247   archive_cmds_need_lc_GCJ=yes
18248
18249   if test "$enable_shared" = yes && test "$GCC" = yes; then
18250     case $archive_cmds_GCJ in
18251     *'~'*)
18252       # FIXME: we may have to deal with multi-command sequences.
18253       ;;
18254     '$CC '*)
18255       # Test whether the compiler implicitly links with -lc since on some
18256       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18257       # to ld, don't add -lc before -lgcc.
18258       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18259 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18260       $rm conftest*
18261       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18262
18263       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18264   (eval $ac_compile) 2>&5
18265   ac_status=$?
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); } 2>conftest.err; then
18268         soname=conftest
18269         lib=conftest
18270         libobjs=conftest.$ac_objext
18271         deplibs=
18272         wl=$lt_prog_compiler_wl_GCJ
18273         compiler_flags=-v
18274         linker_flags=-v
18275         verstring=
18276         output_objdir=.
18277         libname=conftest
18278         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18279         allow_undefined_flag_GCJ=
18280         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18281   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18282   ac_status=$?
18283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284   (exit $ac_status); }
18285         then
18286           archive_cmds_need_lc_GCJ=no
18287         else
18288           archive_cmds_need_lc_GCJ=yes
18289         fi
18290         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18291       else
18292         cat conftest.err 1>&5
18293       fi
18294       $rm conftest*
18295       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18296 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18297       ;;
18298     esac
18299   fi
18300   ;;
18301 esac
18302
18303 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18304 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18305 library_names_spec=
18306 libname_spec='lib$name'
18307 soname_spec=
18308 shrext_cmds=".so"
18309 postinstall_cmds=
18310 postuninstall_cmds=
18311 finish_cmds=
18312 finish_eval=
18313 shlibpath_var=
18314 shlibpath_overrides_runpath=unknown
18315 version_type=none
18316 dynamic_linker="$host_os ld.so"
18317 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18318 if test "$GCC" = yes; then
18319   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18320   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18321     # if the path contains ";" then we assume it to be the separator
18322     # otherwise default to the standard path separator (i.e. ":") - it is
18323     # assumed that no part of a normal pathname contains ";" but that should
18324     # okay in the real world where ";" in dirpaths is itself problematic.
18325     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18326   else
18327     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18328   fi
18329 else
18330   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18331 fi
18332 need_lib_prefix=unknown
18333 hardcode_into_libs=no
18334
18335 # when you set need_version to no, make sure it does not cause -set_version
18336 # flags to be left without arguments
18337 need_version=unknown
18338
18339 case $host_os in
18340 aix3*)
18341   version_type=linux
18342   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18343   shlibpath_var=LIBPATH
18344
18345   # AIX 3 has no versioning support, so we append a major version to the name.
18346   soname_spec='${libname}${release}${shared_ext}$major'
18347   ;;
18348
18349 aix4* | aix5*)
18350   version_type=linux
18351   need_lib_prefix=no
18352   need_version=no
18353   hardcode_into_libs=yes
18354   if test "$host_cpu" = ia64; then
18355     # AIX 5 supports IA64
18356     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18357     shlibpath_var=LD_LIBRARY_PATH
18358   else
18359     # With GCC up to 2.95.x, collect2 would create an import file
18360     # for dependence libraries.  The import file would start with
18361     # the line `#! .'.  This would cause the generated library to
18362     # depend on `.', always an invalid library.  This was fixed in
18363     # development snapshots of GCC prior to 3.0.
18364     case $host_os in
18365       aix4 | aix4.[01] | aix4.[01].*)
18366       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18367            echo ' yes '
18368            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18369         :
18370       else
18371         can_build_shared=no
18372       fi
18373       ;;
18374     esac
18375     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18376     # soname into executable. Probably we can add versioning support to
18377     # collect2, so additional links can be useful in future.
18378     if test "$aix_use_runtimelinking" = yes; then
18379       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18380       # instead of lib<name>.a to let people know that these are not
18381       # typical AIX shared libraries.
18382       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18383     else
18384       # We preserve .a as extension for shared libraries through AIX4.2
18385       # and later when we are not doing run time linking.
18386       library_names_spec='${libname}${release}.a $libname.a'
18387       soname_spec='${libname}${release}${shared_ext}$major'
18388     fi
18389     shlibpath_var=LIBPATH
18390   fi
18391   ;;
18392
18393 amigaos*)
18394   library_names_spec='$libname.ixlibrary $libname.a'
18395   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18396   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'
18397   ;;
18398
18399 beos*)
18400   library_names_spec='${libname}${shared_ext}'
18401   dynamic_linker="$host_os ld.so"
18402   shlibpath_var=LIBRARY_PATH
18403   ;;
18404
18405 bsdi[45]*)
18406   version_type=linux
18407   need_version=no
18408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18409   soname_spec='${libname}${release}${shared_ext}$major'
18410   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18411   shlibpath_var=LD_LIBRARY_PATH
18412   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18413   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18414   # the default ld.so.conf also contains /usr/contrib/lib and
18415   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18416   # libtool to hard-code these into programs
18417   ;;
18418
18419 cygwin* | mingw* | pw32*)
18420   version_type=windows
18421   shrext_cmds=".dll"
18422   need_version=no
18423   need_lib_prefix=no
18424
18425   case $GCC,$host_os in
18426   yes,cygwin* | yes,mingw* | yes,pw32*)
18427     library_names_spec='$libname.dll.a'
18428     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18429     postinstall_cmds='base_file=`basename \${file}`~
18430       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18431       dldir=$destdir/`dirname \$dlpath`~
18432       test -d \$dldir || mkdir -p \$dldir~
18433       $install_prog $dir/$dlname \$dldir/$dlname'
18434     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18435       dlpath=$dir/\$dldll~
18436        $rm \$dlpath'
18437     shlibpath_overrides_runpath=yes
18438
18439     case $host_os in
18440     cygwin*)
18441       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18442       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18443       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18444       ;;
18445     mingw*)
18446       # MinGW DLLs use traditional 'lib' prefix
18447       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18448       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18449       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18450         # It is most probably a Windows format PATH printed by
18451         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18452         # path with ; separators, and with drive letters. We can handle the
18453         # drive letters (cygwin fileutils understands them), so leave them,
18454         # especially as we might pass files found there to a mingw objdump,
18455         # which wouldn't understand a cygwinified path. Ahh.
18456         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18457       else
18458         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18459       fi
18460       ;;
18461     pw32*)
18462       # pw32 DLLs use 'pw' prefix rather than 'lib'
18463       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18464       ;;
18465     esac
18466     ;;
18467
18468   *)
18469     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18470     ;;
18471   esac
18472   dynamic_linker='Win32 ld.exe'
18473   # FIXME: first we should search . and the directory the executable is in
18474   shlibpath_var=PATH
18475   ;;
18476
18477 darwin* | rhapsody*)
18478   dynamic_linker="$host_os dyld"
18479   version_type=darwin
18480   need_lib_prefix=no
18481   need_version=no
18482   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18483   soname_spec='${libname}${release}${major}$shared_ext'
18484   shlibpath_overrides_runpath=yes
18485   shlibpath_var=DYLD_LIBRARY_PATH
18486   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18487   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18488   if test "$GCC" = yes; then
18489     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"`
18490   else
18491     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18492   fi
18493   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18494   ;;
18495
18496 dgux*)
18497   version_type=linux
18498   need_lib_prefix=no
18499   need_version=no
18500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18501   soname_spec='${libname}${release}${shared_ext}$major'
18502   shlibpath_var=LD_LIBRARY_PATH
18503   ;;
18504
18505 freebsd1*)
18506   dynamic_linker=no
18507   ;;
18508
18509 kfreebsd*-gnu)
18510   version_type=linux
18511   need_lib_prefix=no
18512   need_version=no
18513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18514   soname_spec='${libname}${release}${shared_ext}$major'
18515   shlibpath_var=LD_LIBRARY_PATH
18516   shlibpath_overrides_runpath=no
18517   hardcode_into_libs=yes
18518   dynamic_linker='GNU ld.so'
18519   ;;
18520
18521 freebsd*)
18522   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18523   version_type=freebsd-$objformat
18524   case $version_type in
18525     freebsd-elf*)
18526       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18527       need_version=no
18528       need_lib_prefix=no
18529       ;;
18530     freebsd-*)
18531       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18532       need_version=yes
18533       ;;
18534   esac
18535   shlibpath_var=LD_LIBRARY_PATH
18536   case $host_os in
18537   freebsd2*)
18538     shlibpath_overrides_runpath=yes
18539     ;;
18540   freebsd3.01* | freebsdelf3.01*)
18541     shlibpath_overrides_runpath=yes
18542     hardcode_into_libs=yes
18543     ;;
18544   *) # from 3.2 on
18545     shlibpath_overrides_runpath=no
18546     hardcode_into_libs=yes
18547     ;;
18548   esac
18549   ;;
18550
18551 gnu*)
18552   version_type=linux
18553   need_lib_prefix=no
18554   need_version=no
18555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18556   soname_spec='${libname}${release}${shared_ext}$major'
18557   shlibpath_var=LD_LIBRARY_PATH
18558   hardcode_into_libs=yes
18559   ;;
18560
18561 hpux9* | hpux10* | hpux11*)
18562   # Give a soname corresponding to the major version so that dld.sl refuses to
18563   # link against other versions.
18564   version_type=sunos
18565   need_lib_prefix=no
18566   need_version=no
18567   case "$host_cpu" in
18568   ia64*)
18569     shrext_cmds='.so'
18570     hardcode_into_libs=yes
18571     dynamic_linker="$host_os dld.so"
18572     shlibpath_var=LD_LIBRARY_PATH
18573     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18575     soname_spec='${libname}${release}${shared_ext}$major'
18576     if test "X$HPUX_IA64_MODE" = X32; then
18577       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18578     else
18579       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18580     fi
18581     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18582     ;;
18583    hppa*64*)
18584      shrext_cmds='.sl'
18585      hardcode_into_libs=yes
18586      dynamic_linker="$host_os dld.sl"
18587      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18588      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18589      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18590      soname_spec='${libname}${release}${shared_ext}$major'
18591      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18592      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18593      ;;
18594    *)
18595     shrext_cmds='.sl'
18596     dynamic_linker="$host_os dld.sl"
18597     shlibpath_var=SHLIB_PATH
18598     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18600     soname_spec='${libname}${release}${shared_ext}$major'
18601     ;;
18602   esac
18603   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18604   postinstall_cmds='chmod 555 $lib'
18605   ;;
18606
18607 irix5* | irix6* | nonstopux*)
18608   case $host_os in
18609     nonstopux*) version_type=nonstopux ;;
18610     *)
18611         if test "$lt_cv_prog_gnu_ld" = yes; then
18612                 version_type=linux
18613         else
18614                 version_type=irix
18615         fi ;;
18616   esac
18617   need_lib_prefix=no
18618   need_version=no
18619   soname_spec='${libname}${release}${shared_ext}$major'
18620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18621   case $host_os in
18622   irix5* | nonstopux*)
18623     libsuff= shlibsuff=
18624     ;;
18625   *)
18626     case $LD in # libtool.m4 will add one of these switches to LD
18627     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18628       libsuff= shlibsuff= libmagic=32-bit;;
18629     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18630       libsuff=32 shlibsuff=N32 libmagic=N32;;
18631     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18632       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18633     *) libsuff= shlibsuff= libmagic=never-match;;
18634     esac
18635     ;;
18636   esac
18637   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18638   shlibpath_overrides_runpath=no
18639   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18640   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18641   hardcode_into_libs=yes
18642   ;;
18643
18644 # No shared lib support for Linux oldld, aout, or coff.
18645 linux*oldld* | linux*aout* | linux*coff*)
18646   dynamic_linker=no
18647   ;;
18648
18649 # This must be Linux ELF.
18650 linux*)
18651   version_type=linux
18652   need_lib_prefix=no
18653   need_version=no
18654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655   soname_spec='${libname}${release}${shared_ext}$major'
18656   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18657   shlibpath_var=LD_LIBRARY_PATH
18658   shlibpath_overrides_runpath=no
18659   # This implies no fast_install, which is unacceptable.
18660   # Some rework will be needed to allow for fast_install
18661   # before this can be enabled.
18662   hardcode_into_libs=yes
18663
18664   # Append ld.so.conf contents to the search path
18665   if test -f /etc/ld.so.conf; then
18666     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18667     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18668   fi
18669
18670   # We used to test for /lib/ld.so.1 and disable shared libraries on
18671   # powerpc, because MkLinux only supported shared libraries with the
18672   # GNU dynamic linker.  Since this was broken with cross compilers,
18673   # most powerpc-linux boxes support dynamic linking these days and
18674   # people can always --disable-shared, the test was removed, and we
18675   # assume the GNU/Linux dynamic linker is in use.
18676   dynamic_linker='GNU/Linux ld.so'
18677   ;;
18678
18679 knetbsd*-gnu)
18680   version_type=linux
18681   need_lib_prefix=no
18682   need_version=no
18683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18684   soname_spec='${libname}${release}${shared_ext}$major'
18685   shlibpath_var=LD_LIBRARY_PATH
18686   shlibpath_overrides_runpath=no
18687   hardcode_into_libs=yes
18688   dynamic_linker='GNU ld.so'
18689   ;;
18690
18691 netbsd*)
18692   version_type=sunos
18693   need_lib_prefix=no
18694   need_version=no
18695   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18697     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18698     dynamic_linker='NetBSD (a.out) ld.so'
18699   else
18700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18701     soname_spec='${libname}${release}${shared_ext}$major'
18702     dynamic_linker='NetBSD ld.elf_so'
18703   fi
18704   shlibpath_var=LD_LIBRARY_PATH
18705   shlibpath_overrides_runpath=yes
18706   hardcode_into_libs=yes
18707   ;;
18708
18709 newsos6)
18710   version_type=linux
18711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18712   shlibpath_var=LD_LIBRARY_PATH
18713   shlibpath_overrides_runpath=yes
18714   ;;
18715
18716 nto-qnx*)
18717   version_type=linux
18718   need_lib_prefix=no
18719   need_version=no
18720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18721   soname_spec='${libname}${release}${shared_ext}$major'
18722   shlibpath_var=LD_LIBRARY_PATH
18723   shlibpath_overrides_runpath=yes
18724   ;;
18725
18726 openbsd*)
18727   version_type=sunos
18728   need_lib_prefix=no
18729   need_version=no
18730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18731   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18732   shlibpath_var=LD_LIBRARY_PATH
18733   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18734     case $host_os in
18735       openbsd2.[89] | openbsd2.[89].*)
18736         shlibpath_overrides_runpath=no
18737         ;;
18738       *)
18739         shlibpath_overrides_runpath=yes
18740         ;;
18741       esac
18742   else
18743     shlibpath_overrides_runpath=yes
18744   fi
18745   ;;
18746
18747 os2*)
18748   libname_spec='$name'
18749   shrext_cmds=".dll"
18750   need_lib_prefix=no
18751   library_names_spec='$libname${shared_ext} $libname.a'
18752   dynamic_linker='OS/2 ld.exe'
18753   shlibpath_var=LIBPATH
18754   ;;
18755
18756 osf3* | osf4* | osf5*)
18757   version_type=osf
18758   need_lib_prefix=no
18759   need_version=no
18760   soname_spec='${libname}${release}${shared_ext}$major'
18761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18762   shlibpath_var=LD_LIBRARY_PATH
18763   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18764   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18765   ;;
18766
18767 sco3.2v5*)
18768   version_type=osf
18769   soname_spec='${libname}${release}${shared_ext}$major'
18770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18771   shlibpath_var=LD_LIBRARY_PATH
18772   ;;
18773
18774 solaris*)
18775   version_type=linux
18776   need_lib_prefix=no
18777   need_version=no
18778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18779   soname_spec='${libname}${release}${shared_ext}$major'
18780   shlibpath_var=LD_LIBRARY_PATH
18781   shlibpath_overrides_runpath=yes
18782   hardcode_into_libs=yes
18783   # ldd complains unless libraries are executable
18784   postinstall_cmds='chmod +x $lib'
18785   ;;
18786
18787 sunos4*)
18788   version_type=sunos
18789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18790   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18791   shlibpath_var=LD_LIBRARY_PATH
18792   shlibpath_overrides_runpath=yes
18793   if test "$with_gnu_ld" = yes; then
18794     need_lib_prefix=no
18795   fi
18796   need_version=yes
18797   ;;
18798
18799 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18800   version_type=linux
18801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18802   soname_spec='${libname}${release}${shared_ext}$major'
18803   shlibpath_var=LD_LIBRARY_PATH
18804   case $host_vendor in
18805     sni)
18806       shlibpath_overrides_runpath=no
18807       need_lib_prefix=no
18808       export_dynamic_flag_spec='${wl}-Blargedynsym'
18809       runpath_var=LD_RUN_PATH
18810       ;;
18811     siemens)
18812       need_lib_prefix=no
18813       ;;
18814     motorola)
18815       need_lib_prefix=no
18816       need_version=no
18817       shlibpath_overrides_runpath=no
18818       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18819       ;;
18820   esac
18821   ;;
18822
18823 sysv4*MP*)
18824   if test -d /usr/nec ;then
18825     version_type=linux
18826     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18827     soname_spec='$libname${shared_ext}.$major'
18828     shlibpath_var=LD_LIBRARY_PATH
18829   fi
18830   ;;
18831
18832 uts4*)
18833   version_type=linux
18834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18835   soname_spec='${libname}${release}${shared_ext}$major'
18836   shlibpath_var=LD_LIBRARY_PATH
18837   ;;
18838
18839 *)
18840   dynamic_linker=no
18841   ;;
18842 esac
18843 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18844 echo "${ECHO_T}$dynamic_linker" >&6
18845 test "$dynamic_linker" = no && can_build_shared=no
18846
18847 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18849 hardcode_action_GCJ=
18850 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18851    test -n "$runpath_var_GCJ" || \
18852    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18853
18854   # We can hardcode non-existant directories.
18855   if test "$hardcode_direct_GCJ" != no &&
18856      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18857      # have to relink, otherwise we might link with an installed library
18858      # when we should be linking with a yet-to-be-installed one
18859      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18860      test "$hardcode_minus_L_GCJ" != no; then
18861     # Linking always hardcodes the temporary library directory.
18862     hardcode_action_GCJ=relink
18863   else
18864     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18865     hardcode_action_GCJ=immediate
18866   fi
18867 else
18868   # We cannot hardcode anything, or else we can only hardcode existing
18869   # directories.
18870   hardcode_action_GCJ=unsupported
18871 fi
18872 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18873 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18874
18875 if test "$hardcode_action_GCJ" = relink; then
18876   # Fast installation is not supported
18877   enable_fast_install=no
18878 elif test "$shlibpath_overrides_runpath" = yes ||
18879      test "$enable_shared" = no; then
18880   # Fast installation is not necessary
18881   enable_fast_install=needless
18882 fi
18883
18884 striplib=
18885 old_striplib=
18886 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18887 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18888 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18889   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18890   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18891   echo "$as_me:$LINENO: result: yes" >&5
18892 echo "${ECHO_T}yes" >&6
18893 else
18894 # FIXME - insert some real tests, host_os isn't really good enough
18895   case $host_os in
18896    darwin*)
18897        if test -n "$STRIP" ; then
18898          striplib="$STRIP -x"
18899          echo "$as_me:$LINENO: result: yes" >&5
18900 echo "${ECHO_T}yes" >&6
18901        else
18902   echo "$as_me:$LINENO: result: no" >&5
18903 echo "${ECHO_T}no" >&6
18904 fi
18905        ;;
18906    *)
18907   echo "$as_me:$LINENO: result: no" >&5
18908 echo "${ECHO_T}no" >&6
18909     ;;
18910   esac
18911 fi
18912
18913 if test "x$enable_dlopen" != xyes; then
18914   enable_dlopen=unknown
18915   enable_dlopen_self=unknown
18916   enable_dlopen_self_static=unknown
18917 else
18918   lt_cv_dlopen=no
18919   lt_cv_dlopen_libs=
18920
18921   case $host_os in
18922   beos*)
18923     lt_cv_dlopen="load_add_on"
18924     lt_cv_dlopen_libs=
18925     lt_cv_dlopen_self=yes
18926     ;;
18927
18928   mingw* | pw32*)
18929     lt_cv_dlopen="LoadLibrary"
18930     lt_cv_dlopen_libs=
18931    ;;
18932
18933   cygwin*)
18934     lt_cv_dlopen="dlopen"
18935     lt_cv_dlopen_libs=
18936    ;;
18937
18938   darwin*)
18939   # if libdl is installed we need to link against it
18940     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18941 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18943   echo $ECHO_N "(cached) $ECHO_C" >&6
18944 else
18945   ac_check_lib_save_LIBS=$LIBS
18946 LIBS="-ldl  $LIBS"
18947 cat >conftest.$ac_ext <<_ACEOF
18948 /* confdefs.h.  */
18949 _ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h.  */
18953
18954 /* Override any gcc2 internal prototype to avoid an error.  */
18955 #ifdef __cplusplus
18956 extern "C"
18957 #endif
18958 /* We use char because int might match the return type of a gcc2
18959    builtin and then its argument prototype would still apply.  */
18960 char dlopen ();
18961 int
18962 main ()
18963 {
18964 dlopen ();
18965   ;
18966   return 0;
18967 }
18968 _ACEOF
18969 rm -f conftest.$ac_objext conftest$ac_exeext
18970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18971   (eval $ac_link) 2>conftest.er1
18972   ac_status=$?
18973   grep -v '^ *+' conftest.er1 >conftest.err
18974   rm -f conftest.er1
18975   cat conftest.err >&5
18976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977   (exit $ac_status); } &&
18978          { ac_try='test -z "$ac_c_werror_flag"
18979                          || test ! -s conftest.err'
18980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981   (eval $ac_try) 2>&5
18982   ac_status=$?
18983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984   (exit $ac_status); }; } &&
18985          { ac_try='test -s conftest$ac_exeext'
18986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987   (eval $ac_try) 2>&5
18988   ac_status=$?
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); }; }; then
18991   ac_cv_lib_dl_dlopen=yes
18992 else
18993   echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18995
18996 ac_cv_lib_dl_dlopen=no
18997 fi
18998 rm -f conftest.err conftest.$ac_objext \
18999       conftest$ac_exeext conftest.$ac_ext
19000 LIBS=$ac_check_lib_save_LIBS
19001 fi
19002 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19003 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19004 if test $ac_cv_lib_dl_dlopen = yes; then
19005   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19006 else
19007
19008     lt_cv_dlopen="dyld"
19009     lt_cv_dlopen_libs=
19010     lt_cv_dlopen_self=yes
19011
19012 fi
19013
19014    ;;
19015
19016   *)
19017     echo "$as_me:$LINENO: checking for shl_load" >&5
19018 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19019 if test "${ac_cv_func_shl_load+set}" = set; then
19020   echo $ECHO_N "(cached) $ECHO_C" >&6
19021 else
19022   cat >conftest.$ac_ext <<_ACEOF
19023 /* confdefs.h.  */
19024 _ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h.  */
19028 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19030 #define shl_load innocuous_shl_load
19031
19032 /* System header to define __stub macros and hopefully few prototypes,
19033     which can conflict with char shl_load (); below.
19034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19035     <limits.h> exists even on freestanding compilers.  */
19036
19037 #ifdef __STDC__
19038 # include <limits.h>
19039 #else
19040 # include <assert.h>
19041 #endif
19042
19043 #undef shl_load
19044
19045 /* Override any gcc2 internal prototype to avoid an error.  */
19046 #ifdef __cplusplus
19047 extern "C"
19048 {
19049 #endif
19050 /* We use char because int might match the return type of a gcc2
19051    builtin and then its argument prototype would still apply.  */
19052 char shl_load ();
19053 /* The GNU C library defines this for functions which it implements
19054     to always fail with ENOSYS.  Some functions are actually named
19055     something starting with __ and the normal name is an alias.  */
19056 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19057 choke me
19058 #else
19059 char (*f) () = shl_load;
19060 #endif
19061 #ifdef __cplusplus
19062 }
19063 #endif
19064
19065 int
19066 main ()
19067 {
19068 return f != shl_load;
19069   ;
19070   return 0;
19071 }
19072 _ACEOF
19073 rm -f conftest.$ac_objext conftest$ac_exeext
19074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19075   (eval $ac_link) 2>conftest.er1
19076   ac_status=$?
19077   grep -v '^ *+' conftest.er1 >conftest.err
19078   rm -f conftest.er1
19079   cat conftest.err >&5
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); } &&
19082          { ac_try='test -z "$ac_c_werror_flag"
19083                          || test ! -s conftest.err'
19084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085   (eval $ac_try) 2>&5
19086   ac_status=$?
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); }; } &&
19089          { ac_try='test -s conftest$ac_exeext'
19090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091   (eval $ac_try) 2>&5
19092   ac_status=$?
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); }; }; then
19095   ac_cv_func_shl_load=yes
19096 else
19097   echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100 ac_cv_func_shl_load=no
19101 fi
19102 rm -f conftest.err conftest.$ac_objext \
19103       conftest$ac_exeext conftest.$ac_ext
19104 fi
19105 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19106 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19107 if test $ac_cv_func_shl_load = yes; then
19108   lt_cv_dlopen="shl_load"
19109 else
19110   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19111 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19112 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19113   echo $ECHO_N "(cached) $ECHO_C" >&6
19114 else
19115   ac_check_lib_save_LIBS=$LIBS
19116 LIBS="-ldld  $LIBS"
19117 cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h.  */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h.  */
19123
19124 /* Override any gcc2 internal prototype to avoid an error.  */
19125 #ifdef __cplusplus
19126 extern "C"
19127 #endif
19128 /* We use char because int might match the return type of a gcc2
19129    builtin and then its argument prototype would still apply.  */
19130 char shl_load ();
19131 int
19132 main ()
19133 {
19134 shl_load ();
19135   ;
19136   return 0;
19137 }
19138 _ACEOF
19139 rm -f conftest.$ac_objext conftest$ac_exeext
19140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19141   (eval $ac_link) 2>conftest.er1
19142   ac_status=$?
19143   grep -v '^ *+' conftest.er1 >conftest.err
19144   rm -f conftest.er1
19145   cat conftest.err >&5
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); } &&
19148          { ac_try='test -z "$ac_c_werror_flag"
19149                          || test ! -s conftest.err'
19150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151   (eval $ac_try) 2>&5
19152   ac_status=$?
19153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154   (exit $ac_status); }; } &&
19155          { ac_try='test -s conftest$ac_exeext'
19156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157   (eval $ac_try) 2>&5
19158   ac_status=$?
19159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160   (exit $ac_status); }; }; then
19161   ac_cv_lib_dld_shl_load=yes
19162 else
19163   echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19165
19166 ac_cv_lib_dld_shl_load=no
19167 fi
19168 rm -f conftest.err conftest.$ac_objext \
19169       conftest$ac_exeext conftest.$ac_ext
19170 LIBS=$ac_check_lib_save_LIBS
19171 fi
19172 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19173 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19174 if test $ac_cv_lib_dld_shl_load = yes; then
19175   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19176 else
19177   echo "$as_me:$LINENO: checking for dlopen" >&5
19178 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19179 if test "${ac_cv_func_dlopen+set}" = set; then
19180   echo $ECHO_N "(cached) $ECHO_C" >&6
19181 else
19182   cat >conftest.$ac_ext <<_ACEOF
19183 /* confdefs.h.  */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h.  */
19188 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19190 #define dlopen innocuous_dlopen
19191
19192 /* System header to define __stub macros and hopefully few prototypes,
19193     which can conflict with char dlopen (); below.
19194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19195     <limits.h> exists even on freestanding compilers.  */
19196
19197 #ifdef __STDC__
19198 # include <limits.h>
19199 #else
19200 # include <assert.h>
19201 #endif
19202
19203 #undef dlopen
19204
19205 /* Override any gcc2 internal prototype to avoid an error.  */
19206 #ifdef __cplusplus
19207 extern "C"
19208 {
19209 #endif
19210 /* We use char because int might match the return type of a gcc2
19211    builtin and then its argument prototype would still apply.  */
19212 char dlopen ();
19213 /* The GNU C library defines this for functions which it implements
19214     to always fail with ENOSYS.  Some functions are actually named
19215     something starting with __ and the normal name is an alias.  */
19216 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19217 choke me
19218 #else
19219 char (*f) () = dlopen;
19220 #endif
19221 #ifdef __cplusplus
19222 }
19223 #endif
19224
19225 int
19226 main ()
19227 {
19228 return f != dlopen;
19229   ;
19230   return 0;
19231 }
19232 _ACEOF
19233 rm -f conftest.$ac_objext conftest$ac_exeext
19234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19235   (eval $ac_link) 2>conftest.er1
19236   ac_status=$?
19237   grep -v '^ *+' conftest.er1 >conftest.err
19238   rm -f conftest.er1
19239   cat conftest.err >&5
19240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241   (exit $ac_status); } &&
19242          { ac_try='test -z "$ac_c_werror_flag"
19243                          || test ! -s conftest.err'
19244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245   (eval $ac_try) 2>&5
19246   ac_status=$?
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); }; } &&
19249          { ac_try='test -s conftest$ac_exeext'
19250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251   (eval $ac_try) 2>&5
19252   ac_status=$?
19253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254   (exit $ac_status); }; }; then
19255   ac_cv_func_dlopen=yes
19256 else
19257   echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.$ac_ext >&5
19259
19260 ac_cv_func_dlopen=no
19261 fi
19262 rm -f conftest.err conftest.$ac_objext \
19263       conftest$ac_exeext conftest.$ac_ext
19264 fi
19265 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19266 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19267 if test $ac_cv_func_dlopen = yes; then
19268   lt_cv_dlopen="dlopen"
19269 else
19270   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19271 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19272 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19273   echo $ECHO_N "(cached) $ECHO_C" >&6
19274 else
19275   ac_check_lib_save_LIBS=$LIBS
19276 LIBS="-ldl  $LIBS"
19277 cat >conftest.$ac_ext <<_ACEOF
19278 /* confdefs.h.  */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h.  */
19283
19284 /* Override any gcc2 internal prototype to avoid an error.  */
19285 #ifdef __cplusplus
19286 extern "C"
19287 #endif
19288 /* We use char because int might match the return type of a gcc2
19289    builtin and then its argument prototype would still apply.  */
19290 char dlopen ();
19291 int
19292 main ()
19293 {
19294 dlopen ();
19295   ;
19296   return 0;
19297 }
19298 _ACEOF
19299 rm -f conftest.$ac_objext conftest$ac_exeext
19300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19301   (eval $ac_link) 2>conftest.er1
19302   ac_status=$?
19303   grep -v '^ *+' conftest.er1 >conftest.err
19304   rm -f conftest.er1
19305   cat conftest.err >&5
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); } &&
19308          { ac_try='test -z "$ac_c_werror_flag"
19309                          || test ! -s conftest.err'
19310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311   (eval $ac_try) 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); }; } &&
19315          { ac_try='test -s conftest$ac_exeext'
19316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317   (eval $ac_try) 2>&5
19318   ac_status=$?
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); }; }; then
19321   ac_cv_lib_dl_dlopen=yes
19322 else
19323   echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19325
19326 ac_cv_lib_dl_dlopen=no
19327 fi
19328 rm -f conftest.err conftest.$ac_objext \
19329       conftest$ac_exeext conftest.$ac_ext
19330 LIBS=$ac_check_lib_save_LIBS
19331 fi
19332 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19333 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19334 if test $ac_cv_lib_dl_dlopen = yes; then
19335   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19336 else
19337   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19338 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19339 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19340   echo $ECHO_N "(cached) $ECHO_C" >&6
19341 else
19342   ac_check_lib_save_LIBS=$LIBS
19343 LIBS="-lsvld  $LIBS"
19344 cat >conftest.$ac_ext <<_ACEOF
19345 /* confdefs.h.  */
19346 _ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h.  */
19350
19351 /* Override any gcc2 internal prototype to avoid an error.  */
19352 #ifdef __cplusplus
19353 extern "C"
19354 #endif
19355 /* We use char because int might match the return type of a gcc2
19356    builtin and then its argument prototype would still apply.  */
19357 char dlopen ();
19358 int
19359 main ()
19360 {
19361 dlopen ();
19362   ;
19363   return 0;
19364 }
19365 _ACEOF
19366 rm -f conftest.$ac_objext conftest$ac_exeext
19367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19368   (eval $ac_link) 2>conftest.er1
19369   ac_status=$?
19370   grep -v '^ *+' conftest.er1 >conftest.err
19371   rm -f conftest.er1
19372   cat conftest.err >&5
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); } &&
19375          { ac_try='test -z "$ac_c_werror_flag"
19376                          || test ! -s conftest.err'
19377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378   (eval $ac_try) 2>&5
19379   ac_status=$?
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); }; } &&
19382          { ac_try='test -s conftest$ac_exeext'
19383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384   (eval $ac_try) 2>&5
19385   ac_status=$?
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); }; }; then
19388   ac_cv_lib_svld_dlopen=yes
19389 else
19390   echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19392
19393 ac_cv_lib_svld_dlopen=no
19394 fi
19395 rm -f conftest.err conftest.$ac_objext \
19396       conftest$ac_exeext conftest.$ac_ext
19397 LIBS=$ac_check_lib_save_LIBS
19398 fi
19399 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19400 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19401 if test $ac_cv_lib_svld_dlopen = yes; then
19402   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19403 else
19404   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19405 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19406 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19407   echo $ECHO_N "(cached) $ECHO_C" >&6
19408 else
19409   ac_check_lib_save_LIBS=$LIBS
19410 LIBS="-ldld  $LIBS"
19411 cat >conftest.$ac_ext <<_ACEOF
19412 /* confdefs.h.  */
19413 _ACEOF
19414 cat confdefs.h >>conftest.$ac_ext
19415 cat >>conftest.$ac_ext <<_ACEOF
19416 /* end confdefs.h.  */
19417
19418 /* Override any gcc2 internal prototype to avoid an error.  */
19419 #ifdef __cplusplus
19420 extern "C"
19421 #endif
19422 /* We use char because int might match the return type of a gcc2
19423    builtin and then its argument prototype would still apply.  */
19424 char dld_link ();
19425 int
19426 main ()
19427 {
19428 dld_link ();
19429   ;
19430   return 0;
19431 }
19432 _ACEOF
19433 rm -f conftest.$ac_objext conftest$ac_exeext
19434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19435   (eval $ac_link) 2>conftest.er1
19436   ac_status=$?
19437   grep -v '^ *+' conftest.er1 >conftest.err
19438   rm -f conftest.er1
19439   cat conftest.err >&5
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); } &&
19442          { ac_try='test -z "$ac_c_werror_flag"
19443                          || test ! -s conftest.err'
19444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445   (eval $ac_try) 2>&5
19446   ac_status=$?
19447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448   (exit $ac_status); }; } &&
19449          { ac_try='test -s conftest$ac_exeext'
19450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451   (eval $ac_try) 2>&5
19452   ac_status=$?
19453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454   (exit $ac_status); }; }; then
19455   ac_cv_lib_dld_dld_link=yes
19456 else
19457   echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19459
19460 ac_cv_lib_dld_dld_link=no
19461 fi
19462 rm -f conftest.err conftest.$ac_objext \
19463       conftest$ac_exeext conftest.$ac_ext
19464 LIBS=$ac_check_lib_save_LIBS
19465 fi
19466 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19467 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19468 if test $ac_cv_lib_dld_dld_link = yes; then
19469   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19470 fi
19471
19472
19473 fi
19474
19475
19476 fi
19477
19478
19479 fi
19480
19481
19482 fi
19483
19484
19485 fi
19486
19487     ;;
19488   esac
19489
19490   if test "x$lt_cv_dlopen" != xno; then
19491     enable_dlopen=yes
19492   else
19493     enable_dlopen=no
19494   fi
19495
19496   case $lt_cv_dlopen in
19497   dlopen)
19498     save_CPPFLAGS="$CPPFLAGS"
19499     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19500
19501     save_LDFLAGS="$LDFLAGS"
19502     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19503
19504     save_LIBS="$LIBS"
19505     LIBS="$lt_cv_dlopen_libs $LIBS"
19506
19507     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19508 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19509 if test "${lt_cv_dlopen_self+set}" = set; then
19510   echo $ECHO_N "(cached) $ECHO_C" >&6
19511 else
19512           if test "$cross_compiling" = yes; then :
19513   lt_cv_dlopen_self=cross
19514 else
19515   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19516   lt_status=$lt_dlunknown
19517   cat > conftest.$ac_ext <<EOF
19518 #line 19518 "configure"
19519 #include "confdefs.h"
19520
19521 #if HAVE_DLFCN_H
19522 #include <dlfcn.h>
19523 #endif
19524
19525 #include <stdio.h>
19526
19527 #ifdef RTLD_GLOBAL
19528 #  define LT_DLGLOBAL           RTLD_GLOBAL
19529 #else
19530 #  ifdef DL_GLOBAL
19531 #    define LT_DLGLOBAL         DL_GLOBAL
19532 #  else
19533 #    define LT_DLGLOBAL         0
19534 #  endif
19535 #endif
19536
19537 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19538    find out it does not work in some platform. */
19539 #ifndef LT_DLLAZY_OR_NOW
19540 #  ifdef RTLD_LAZY
19541 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19542 #  else
19543 #    ifdef DL_LAZY
19544 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19545 #    else
19546 #      ifdef RTLD_NOW
19547 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19548 #      else
19549 #        ifdef DL_NOW
19550 #          define LT_DLLAZY_OR_NOW      DL_NOW
19551 #        else
19552 #          define LT_DLLAZY_OR_NOW      0
19553 #        endif
19554 #      endif
19555 #    endif
19556 #  endif
19557 #endif
19558
19559 #ifdef __cplusplus
19560 extern "C" void exit (int);
19561 #endif
19562
19563 void fnord() { int i=42;}
19564 int main ()
19565 {
19566   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19567   int status = $lt_dlunknown;
19568
19569   if (self)
19570     {
19571       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19572       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19573       /* dlclose (self); */
19574     }
19575
19576     exit (status);
19577 }
19578 EOF
19579   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19580   (eval $ac_link) 2>&5
19581   ac_status=$?
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19584     (./conftest; exit; ) 2>/dev/null
19585     lt_status=$?
19586     case x$lt_status in
19587       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19588       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19589       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19590     esac
19591   else :
19592     # compilation failed
19593     lt_cv_dlopen_self=no
19594   fi
19595 fi
19596 rm -fr conftest*
19597
19598
19599 fi
19600 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19601 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19602
19603     if test "x$lt_cv_dlopen_self" = xyes; then
19604       LDFLAGS="$LDFLAGS $link_static_flag"
19605       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19606 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19607 if test "${lt_cv_dlopen_self_static+set}" = set; then
19608   echo $ECHO_N "(cached) $ECHO_C" >&6
19609 else
19610           if test "$cross_compiling" = yes; then :
19611   lt_cv_dlopen_self_static=cross
19612 else
19613   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19614   lt_status=$lt_dlunknown
19615   cat > conftest.$ac_ext <<EOF
19616 #line 19616 "configure"
19617 #include "confdefs.h"
19618
19619 #if HAVE_DLFCN_H
19620 #include <dlfcn.h>
19621 #endif
19622
19623 #include <stdio.h>
19624
19625 #ifdef RTLD_GLOBAL
19626 #  define LT_DLGLOBAL           RTLD_GLOBAL
19627 #else
19628 #  ifdef DL_GLOBAL
19629 #    define LT_DLGLOBAL         DL_GLOBAL
19630 #  else
19631 #    define LT_DLGLOBAL         0
19632 #  endif
19633 #endif
19634
19635 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19636    find out it does not work in some platform. */
19637 #ifndef LT_DLLAZY_OR_NOW
19638 #  ifdef RTLD_LAZY
19639 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19640 #  else
19641 #    ifdef DL_LAZY
19642 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19643 #    else
19644 #      ifdef RTLD_NOW
19645 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19646 #      else
19647 #        ifdef DL_NOW
19648 #          define LT_DLLAZY_OR_NOW      DL_NOW
19649 #        else
19650 #          define LT_DLLAZY_OR_NOW      0
19651 #        endif
19652 #      endif
19653 #    endif
19654 #  endif
19655 #endif
19656
19657 #ifdef __cplusplus
19658 extern "C" void exit (int);
19659 #endif
19660
19661 void fnord() { int i=42;}
19662 int main ()
19663 {
19664   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19665   int status = $lt_dlunknown;
19666
19667   if (self)
19668     {
19669       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19670       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19671       /* dlclose (self); */
19672     }
19673
19674     exit (status);
19675 }
19676 EOF
19677   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19678   (eval $ac_link) 2>&5
19679   ac_status=$?
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19682     (./conftest; exit; ) 2>/dev/null
19683     lt_status=$?
19684     case x$lt_status in
19685       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19686       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19687       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19688     esac
19689   else :
19690     # compilation failed
19691     lt_cv_dlopen_self_static=no
19692   fi
19693 fi
19694 rm -fr conftest*
19695
19696
19697 fi
19698 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19699 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19700     fi
19701
19702     CPPFLAGS="$save_CPPFLAGS"
19703     LDFLAGS="$save_LDFLAGS"
19704     LIBS="$save_LIBS"
19705     ;;
19706   esac
19707
19708   case $lt_cv_dlopen_self in
19709   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19710   *) enable_dlopen_self=unknown ;;
19711   esac
19712
19713   case $lt_cv_dlopen_self_static in
19714   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19715   *) enable_dlopen_self_static=unknown ;;
19716   esac
19717 fi
19718
19719
19720 # The else clause should only fire when bootstrapping the
19721 # libtool distribution, otherwise you forgot to ship ltmain.sh
19722 # with your package, and you will get complaints that there are
19723 # no rules to generate ltmain.sh.
19724 if test -f "$ltmain"; then
19725   # See if we are running on zsh, and set the options which allow our commands through
19726   # without removal of \ escapes.
19727   if test -n "${ZSH_VERSION+set}" ; then
19728     setopt NO_GLOB_SUBST
19729   fi
19730   # Now quote all the things that may contain metacharacters while being
19731   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19732   # variables and quote the copies for generation of the libtool script.
19733   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19734     SED SHELL STRIP \
19735     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19736     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19737     deplibs_check_method reload_flag reload_cmds need_locks \
19738     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19739     lt_cv_sys_global_symbol_to_c_name_address \
19740     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19741     old_postinstall_cmds old_postuninstall_cmds \
19742     compiler_GCJ \
19743     CC_GCJ \
19744     LD_GCJ \
19745     lt_prog_compiler_wl_GCJ \
19746     lt_prog_compiler_pic_GCJ \
19747     lt_prog_compiler_static_GCJ \
19748     lt_prog_compiler_no_builtin_flag_GCJ \
19749     export_dynamic_flag_spec_GCJ \
19750     thread_safe_flag_spec_GCJ \
19751     whole_archive_flag_spec_GCJ \
19752     enable_shared_with_static_runtimes_GCJ \
19753     old_archive_cmds_GCJ \
19754     old_archive_from_new_cmds_GCJ \
19755     predep_objects_GCJ \
19756     postdep_objects_GCJ \
19757     predeps_GCJ \
19758     postdeps_GCJ \
19759     compiler_lib_search_path_GCJ \
19760     archive_cmds_GCJ \
19761     archive_expsym_cmds_GCJ \
19762     postinstall_cmds_GCJ \
19763     postuninstall_cmds_GCJ \
19764     old_archive_from_expsyms_cmds_GCJ \
19765     allow_undefined_flag_GCJ \
19766     no_undefined_flag_GCJ \
19767     export_symbols_cmds_GCJ \
19768     hardcode_libdir_flag_spec_GCJ \
19769     hardcode_libdir_flag_spec_ld_GCJ \
19770     hardcode_libdir_separator_GCJ \
19771     hardcode_automatic_GCJ \
19772     module_cmds_GCJ \
19773     module_expsym_cmds_GCJ \
19774     lt_cv_prog_compiler_c_o_GCJ \
19775     exclude_expsyms_GCJ \
19776     include_expsyms_GCJ; do
19777
19778     case $var in
19779     old_archive_cmds_GCJ | \
19780     old_archive_from_new_cmds_GCJ | \
19781     archive_cmds_GCJ | \
19782     archive_expsym_cmds_GCJ | \
19783     module_cmds_GCJ | \
19784     module_expsym_cmds_GCJ | \
19785     old_archive_from_expsyms_cmds_GCJ | \
19786     export_symbols_cmds_GCJ | \
19787     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19788     postinstall_cmds | postuninstall_cmds | \
19789     old_postinstall_cmds | old_postuninstall_cmds | \
19790     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19791       # Double-quote double-evaled strings.
19792       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19793       ;;
19794     *)
19795       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19796       ;;
19797     esac
19798   done
19799
19800   case $lt_echo in
19801   *'\$0 --fallback-echo"')
19802     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19803     ;;
19804   esac
19805
19806 cfgfile="$ofile"
19807
19808   cat <<__EOF__ >> "$cfgfile"
19809 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19810
19811 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19812
19813 # Shell to use when invoking shell scripts.
19814 SHELL=$lt_SHELL
19815
19816 # Whether or not to build shared libraries.
19817 build_libtool_libs=$enable_shared
19818
19819 # Whether or not to build static libraries.
19820 build_old_libs=$enable_static
19821
19822 # Whether or not to add -lc for building shared libraries.
19823 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19824
19825 # Whether or not to disallow shared libs when runtime libs are static
19826 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19827
19828 # Whether or not to optimize for fast installation.
19829 fast_install=$enable_fast_install
19830
19831 # The host system.
19832 host_alias=$host_alias
19833 host=$host
19834
19835 # An echo program that does not interpret backslashes.
19836 echo=$lt_echo
19837
19838 # The archiver.
19839 AR=$lt_AR
19840 AR_FLAGS=$lt_AR_FLAGS
19841
19842 # A C compiler.
19843 LTCC=$lt_LTCC
19844
19845 # A language-specific compiler.
19846 CC=$lt_compiler_GCJ
19847
19848 # Is the compiler the GNU C compiler?
19849 with_gcc=$GCC_GCJ
19850
19851 # An ERE matcher.
19852 EGREP=$lt_EGREP
19853
19854 # The linker used to build libraries.
19855 LD=$lt_LD_GCJ
19856
19857 # Whether we need hard or soft links.
19858 LN_S=$lt_LN_S
19859
19860 # A BSD-compatible nm program.
19861 NM=$lt_NM
19862
19863 # A symbol stripping program
19864 STRIP=$lt_STRIP
19865
19866 # Used to examine libraries when file_magic_cmd begins "file"
19867 MAGIC_CMD=$MAGIC_CMD
19868
19869 # Used on cygwin: DLL creation program.
19870 DLLTOOL="$DLLTOOL"
19871
19872 # Used on cygwin: object dumper.
19873 OBJDUMP="$OBJDUMP"
19874
19875 # Used on cygwin: assembler.
19876 AS="$AS"
19877
19878 # The name of the directory that contains temporary libtool files.
19879 objdir=$objdir
19880
19881 # How to create reloadable object files.
19882 reload_flag=$lt_reload_flag
19883 reload_cmds=$lt_reload_cmds
19884
19885 # How to pass a linker flag through the compiler.
19886 wl=$lt_lt_prog_compiler_wl_GCJ
19887
19888 # Object file suffix (normally "o").
19889 objext="$ac_objext"
19890
19891 # Old archive suffix (normally "a").
19892 libext="$libext"
19893
19894 # Shared library suffix (normally ".so").
19895 shrext_cmds='$shrext_cmds'
19896
19897 # Executable file suffix (normally "").
19898 exeext="$exeext"
19899
19900 # Additional compiler flags for building library objects.
19901 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19902 pic_mode=$pic_mode
19903
19904 # What is the maximum length of a command?
19905 max_cmd_len=$lt_cv_sys_max_cmd_len
19906
19907 # Does compiler simultaneously support -c and -o options?
19908 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19909
19910 # Must we lock files when doing compilation ?
19911 need_locks=$lt_need_locks
19912
19913 # Do we need the lib prefix for modules?
19914 need_lib_prefix=$need_lib_prefix
19915
19916 # Do we need a version for libraries?
19917 need_version=$need_version
19918
19919 # Whether dlopen is supported.
19920 dlopen_support=$enable_dlopen
19921
19922 # Whether dlopen of programs is supported.
19923 dlopen_self=$enable_dlopen_self
19924
19925 # Whether dlopen of statically linked programs is supported.
19926 dlopen_self_static=$enable_dlopen_self_static
19927
19928 # Compiler flag to prevent dynamic linking.
19929 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19930
19931 # Compiler flag to turn off builtin functions.
19932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19933
19934 # Compiler flag to allow reflexive dlopens.
19935 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19936
19937 # Compiler flag to generate shared objects directly from archives.
19938 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19939
19940 # Compiler flag to generate thread-safe objects.
19941 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19942
19943 # Library versioning type.
19944 version_type=$version_type
19945
19946 # Format of library name prefix.
19947 libname_spec=$lt_libname_spec
19948
19949 # List of archive names.  First name is the real one, the rest are links.
19950 # The last name is the one that the linker finds with -lNAME.
19951 library_names_spec=$lt_library_names_spec
19952
19953 # The coded name of the library, if different from the real name.
19954 soname_spec=$lt_soname_spec
19955
19956 # Commands used to build and install an old-style archive.
19957 RANLIB=$lt_RANLIB
19958 old_archive_cmds=$lt_old_archive_cmds_GCJ
19959 old_postinstall_cmds=$lt_old_postinstall_cmds
19960 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19961
19962 # Create an old-style archive from a shared archive.
19963 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19964
19965 # Create a temporary old-style archive to link instead of a shared archive.
19966 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19967
19968 # Commands used to build and install a shared archive.
19969 archive_cmds=$lt_archive_cmds_GCJ
19970 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19971 postinstall_cmds=$lt_postinstall_cmds
19972 postuninstall_cmds=$lt_postuninstall_cmds
19973
19974 # Commands used to build a loadable module (assumed same as above if empty)
19975 module_cmds=$lt_module_cmds_GCJ
19976 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19977
19978 # Commands to strip libraries.
19979 old_striplib=$lt_old_striplib
19980 striplib=$lt_striplib
19981
19982 # Dependencies to place before the objects being linked to create a
19983 # shared library.
19984 predep_objects=$lt_predep_objects_GCJ
19985
19986 # Dependencies to place after the objects being linked to create a
19987 # shared library.
19988 postdep_objects=$lt_postdep_objects_GCJ
19989
19990 # Dependencies to place before the objects being linked to create a
19991 # shared library.
19992 predeps=$lt_predeps_GCJ
19993
19994 # Dependencies to place after the objects being linked to create a
19995 # shared library.
19996 postdeps=$lt_postdeps_GCJ
19997
19998 # The library search path used internally by the compiler when linking
19999 # a shared library.
20000 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20001
20002 # Method to check whether dependent libraries are shared objects.
20003 deplibs_check_method=$lt_deplibs_check_method
20004
20005 # Command to use when deplibs_check_method == file_magic.
20006 file_magic_cmd=$lt_file_magic_cmd
20007
20008 # Flag that allows shared libraries with undefined symbols to be built.
20009 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20010
20011 # Flag that forces no undefined symbols.
20012 no_undefined_flag=$lt_no_undefined_flag_GCJ
20013
20014 # Commands used to finish a libtool library installation in a directory.
20015 finish_cmds=$lt_finish_cmds
20016
20017 # Same as above, but a single script fragment to be evaled but not shown.
20018 finish_eval=$lt_finish_eval
20019
20020 # Take the output of nm and produce a listing of raw symbols and C names.
20021 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20022
20023 # Transform the output of nm in a proper C declaration
20024 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20025
20026 # Transform the output of nm in a C name address pair
20027 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20028
20029 # This is the shared library runtime path variable.
20030 runpath_var=$runpath_var
20031
20032 # This is the shared library path variable.
20033 shlibpath_var=$shlibpath_var
20034
20035 # Is shlibpath searched before the hard-coded library search path?
20036 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20037
20038 # How to hardcode a shared library path into an executable.
20039 hardcode_action=$hardcode_action_GCJ
20040
20041 # Whether we should hardcode library paths into libraries.
20042 hardcode_into_libs=$hardcode_into_libs
20043
20044 # Flag to hardcode \$libdir into a binary during linking.
20045 # This must work even if \$libdir does not exist.
20046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20047
20048 # If ld is used when linking, flag to hardcode \$libdir into
20049 # a binary during linking. This must work even if \$libdir does
20050 # not exist.
20051 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20052
20053 # Whether we need a single -rpath flag with a separated argument.
20054 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20055
20056 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20057 # resulting binary.
20058 hardcode_direct=$hardcode_direct_GCJ
20059
20060 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20061 # resulting binary.
20062 hardcode_minus_L=$hardcode_minus_L_GCJ
20063
20064 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20065 # the resulting binary.
20066 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20067
20068 # Set to yes if building a shared library automatically hardcodes DIR into the library
20069 # and all subsequent libraries and executables linked against it.
20070 hardcode_automatic=$hardcode_automatic_GCJ
20071
20072 # Variables whose values should be saved in libtool wrapper scripts and
20073 # restored at relink time.
20074 variables_saved_for_relink="$variables_saved_for_relink"
20075
20076 # Whether libtool must link a program against all its dependency libraries.
20077 link_all_deplibs=$link_all_deplibs_GCJ
20078
20079 # Compile-time system search path for libraries
20080 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20081
20082 # Run-time system search path for libraries
20083 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20084
20085 # Fix the shell variable \$srcfile for the compiler.
20086 fix_srcfile_path="$fix_srcfile_path_GCJ"
20087
20088 # Set to yes if exported symbols are required.
20089 always_export_symbols=$always_export_symbols_GCJ
20090
20091 # The commands to list exported symbols.
20092 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20093
20094 # The commands to extract the exported symbol list from a shared archive.
20095 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20096
20097 # Symbols that should not be listed in the preloaded symbols.
20098 exclude_expsyms=$lt_exclude_expsyms_GCJ
20099
20100 # Symbols that must always be exported.
20101 include_expsyms=$lt_include_expsyms_GCJ
20102
20103 # ### END LIBTOOL TAG CONFIG: $tagname
20104
20105 __EOF__
20106
20107
20108 else
20109   # If there is no Makefile yet, we rely on a make rule to execute
20110   # `config.status --recheck' to rerun these tests and create the
20111   # libtool script then.
20112   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20113   if test -f "$ltmain_in"; then
20114     test -f Makefile && make "$ltmain"
20115   fi
20116 fi
20117
20118
20119 ac_ext=c
20120 ac_cpp='$CPP $CPPFLAGS'
20121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20124
20125 CC="$lt_save_CC"
20126
20127         else
20128           tagname=""
20129         fi
20130         ;;
20131
20132       RC)
20133         ac_ext=c
20134 ac_cpp='$CPP $CPPFLAGS'
20135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20138
20139
20140 # Source file extension for RC test sources.
20141 ac_ext=rc
20142
20143 # Object file extension for compiled RC test sources.
20144 objext=o
20145 objext_RC=$objext
20146
20147 # Code to be used in simple compile tests
20148 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20149
20150 # Code to be used in simple link tests
20151 lt_simple_link_test_code="$lt_simple_compile_test_code"
20152
20153 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20154
20155 # If no C compiler was specified, use CC.
20156 LTCC=${LTCC-"$CC"}
20157
20158 # Allow CC to be a program name with arguments.
20159 compiler=$CC
20160
20161
20162 # Allow CC to be a program name with arguments.
20163 lt_save_CC="$CC"
20164 CC=${RC-"windres"}
20165 compiler=$CC
20166 compiler_RC=$CC
20167 lt_cv_prog_compiler_c_o_RC=yes
20168
20169 # The else clause should only fire when bootstrapping the
20170 # libtool distribution, otherwise you forgot to ship ltmain.sh
20171 # with your package, and you will get complaints that there are
20172 # no rules to generate ltmain.sh.
20173 if test -f "$ltmain"; then
20174   # See if we are running on zsh, and set the options which allow our commands through
20175   # without removal of \ escapes.
20176   if test -n "${ZSH_VERSION+set}" ; then
20177     setopt NO_GLOB_SUBST
20178   fi
20179   # Now quote all the things that may contain metacharacters while being
20180   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20181   # variables and quote the copies for generation of the libtool script.
20182   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20183     SED SHELL STRIP \
20184     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20185     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20186     deplibs_check_method reload_flag reload_cmds need_locks \
20187     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20188     lt_cv_sys_global_symbol_to_c_name_address \
20189     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20190     old_postinstall_cmds old_postuninstall_cmds \
20191     compiler_RC \
20192     CC_RC \
20193     LD_RC \
20194     lt_prog_compiler_wl_RC \
20195     lt_prog_compiler_pic_RC \
20196     lt_prog_compiler_static_RC \
20197     lt_prog_compiler_no_builtin_flag_RC \
20198     export_dynamic_flag_spec_RC \
20199     thread_safe_flag_spec_RC \
20200     whole_archive_flag_spec_RC \
20201     enable_shared_with_static_runtimes_RC \
20202     old_archive_cmds_RC \
20203     old_archive_from_new_cmds_RC \
20204     predep_objects_RC \
20205     postdep_objects_RC \
20206     predeps_RC \
20207     postdeps_RC \
20208     compiler_lib_search_path_RC \
20209     archive_cmds_RC \
20210     archive_expsym_cmds_RC \
20211     postinstall_cmds_RC \
20212     postuninstall_cmds_RC \
20213     old_archive_from_expsyms_cmds_RC \
20214     allow_undefined_flag_RC \
20215     no_undefined_flag_RC \
20216     export_symbols_cmds_RC \
20217     hardcode_libdir_flag_spec_RC \
20218     hardcode_libdir_flag_spec_ld_RC \
20219     hardcode_libdir_separator_RC \
20220     hardcode_automatic_RC \
20221     module_cmds_RC \
20222     module_expsym_cmds_RC \
20223     lt_cv_prog_compiler_c_o_RC \
20224     exclude_expsyms_RC \
20225     include_expsyms_RC; do
20226
20227     case $var in
20228     old_archive_cmds_RC | \
20229     old_archive_from_new_cmds_RC | \
20230     archive_cmds_RC | \
20231     archive_expsym_cmds_RC | \
20232     module_cmds_RC | \
20233     module_expsym_cmds_RC | \
20234     old_archive_from_expsyms_cmds_RC | \
20235     export_symbols_cmds_RC | \
20236     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20237     postinstall_cmds | postuninstall_cmds | \
20238     old_postinstall_cmds | old_postuninstall_cmds | \
20239     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20240       # Double-quote double-evaled strings.
20241       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20242       ;;
20243     *)
20244       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20245       ;;
20246     esac
20247   done
20248
20249   case $lt_echo in
20250   *'\$0 --fallback-echo"')
20251     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20252     ;;
20253   esac
20254
20255 cfgfile="$ofile"
20256
20257   cat <<__EOF__ >> "$cfgfile"
20258 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20259
20260 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20261
20262 # Shell to use when invoking shell scripts.
20263 SHELL=$lt_SHELL
20264
20265 # Whether or not to build shared libraries.
20266 build_libtool_libs=$enable_shared
20267
20268 # Whether or not to build static libraries.
20269 build_old_libs=$enable_static
20270
20271 # Whether or not to add -lc for building shared libraries.
20272 build_libtool_need_lc=$archive_cmds_need_lc_RC
20273
20274 # Whether or not to disallow shared libs when runtime libs are static
20275 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20276
20277 # Whether or not to optimize for fast installation.
20278 fast_install=$enable_fast_install
20279
20280 # The host system.
20281 host_alias=$host_alias
20282 host=$host
20283
20284 # An echo program that does not interpret backslashes.
20285 echo=$lt_echo
20286
20287 # The archiver.
20288 AR=$lt_AR
20289 AR_FLAGS=$lt_AR_FLAGS
20290
20291 # A C compiler.
20292 LTCC=$lt_LTCC
20293
20294 # A language-specific compiler.
20295 CC=$lt_compiler_RC
20296
20297 # Is the compiler the GNU C compiler?
20298 with_gcc=$GCC_RC
20299
20300 # An ERE matcher.
20301 EGREP=$lt_EGREP
20302
20303 # The linker used to build libraries.
20304 LD=$lt_LD_RC
20305
20306 # Whether we need hard or soft links.
20307 LN_S=$lt_LN_S
20308
20309 # A BSD-compatible nm program.
20310 NM=$lt_NM
20311
20312 # A symbol stripping program
20313 STRIP=$lt_STRIP
20314
20315 # Used to examine libraries when file_magic_cmd begins "file"
20316 MAGIC_CMD=$MAGIC_CMD
20317
20318 # Used on cygwin: DLL creation program.
20319 DLLTOOL="$DLLTOOL"
20320
20321 # Used on cygwin: object dumper.
20322 OBJDUMP="$OBJDUMP"
20323
20324 # Used on cygwin: assembler.
20325 AS="$AS"
20326
20327 # The name of the directory that contains temporary libtool files.
20328 objdir=$objdir
20329
20330 # How to create reloadable object files.
20331 reload_flag=$lt_reload_flag
20332 reload_cmds=$lt_reload_cmds
20333
20334 # How to pass a linker flag through the compiler.
20335 wl=$lt_lt_prog_compiler_wl_RC
20336
20337 # Object file suffix (normally "o").
20338 objext="$ac_objext"
20339
20340 # Old archive suffix (normally "a").
20341 libext="$libext"
20342
20343 # Shared library suffix (normally ".so").
20344 shrext_cmds='$shrext_cmds'
20345
20346 # Executable file suffix (normally "").
20347 exeext="$exeext"
20348
20349 # Additional compiler flags for building library objects.
20350 pic_flag=$lt_lt_prog_compiler_pic_RC
20351 pic_mode=$pic_mode
20352
20353 # What is the maximum length of a command?
20354 max_cmd_len=$lt_cv_sys_max_cmd_len
20355
20356 # Does compiler simultaneously support -c and -o options?
20357 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20358
20359 # Must we lock files when doing compilation ?
20360 need_locks=$lt_need_locks
20361
20362 # Do we need the lib prefix for modules?
20363 need_lib_prefix=$need_lib_prefix
20364
20365 # Do we need a version for libraries?
20366 need_version=$need_version
20367
20368 # Whether dlopen is supported.
20369 dlopen_support=$enable_dlopen
20370
20371 # Whether dlopen of programs is supported.
20372 dlopen_self=$enable_dlopen_self
20373
20374 # Whether dlopen of statically linked programs is supported.
20375 dlopen_self_static=$enable_dlopen_self_static
20376
20377 # Compiler flag to prevent dynamic linking.
20378 link_static_flag=$lt_lt_prog_compiler_static_RC
20379
20380 # Compiler flag to turn off builtin functions.
20381 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20382
20383 # Compiler flag to allow reflexive dlopens.
20384 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20385
20386 # Compiler flag to generate shared objects directly from archives.
20387 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20388
20389 # Compiler flag to generate thread-safe objects.
20390 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20391
20392 # Library versioning type.
20393 version_type=$version_type
20394
20395 # Format of library name prefix.
20396 libname_spec=$lt_libname_spec
20397
20398 # List of archive names.  First name is the real one, the rest are links.
20399 # The last name is the one that the linker finds with -lNAME.
20400 library_names_spec=$lt_library_names_spec
20401
20402 # The coded name of the library, if different from the real name.
20403 soname_spec=$lt_soname_spec
20404
20405 # Commands used to build and install an old-style archive.
20406 RANLIB=$lt_RANLIB
20407 old_archive_cmds=$lt_old_archive_cmds_RC
20408 old_postinstall_cmds=$lt_old_postinstall_cmds
20409 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20410
20411 # Create an old-style archive from a shared archive.
20412 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20413
20414 # Create a temporary old-style archive to link instead of a shared archive.
20415 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20416
20417 # Commands used to build and install a shared archive.
20418 archive_cmds=$lt_archive_cmds_RC
20419 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20420 postinstall_cmds=$lt_postinstall_cmds
20421 postuninstall_cmds=$lt_postuninstall_cmds
20422
20423 # Commands used to build a loadable module (assumed same as above if empty)
20424 module_cmds=$lt_module_cmds_RC
20425 module_expsym_cmds=$lt_module_expsym_cmds_RC
20426
20427 # Commands to strip libraries.
20428 old_striplib=$lt_old_striplib
20429 striplib=$lt_striplib
20430
20431 # Dependencies to place before the objects being linked to create a
20432 # shared library.
20433 predep_objects=$lt_predep_objects_RC
20434
20435 # Dependencies to place after the objects being linked to create a
20436 # shared library.
20437 postdep_objects=$lt_postdep_objects_RC
20438
20439 # Dependencies to place before the objects being linked to create a
20440 # shared library.
20441 predeps=$lt_predeps_RC
20442
20443 # Dependencies to place after the objects being linked to create a
20444 # shared library.
20445 postdeps=$lt_postdeps_RC
20446
20447 # The library search path used internally by the compiler when linking
20448 # a shared library.
20449 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20450
20451 # Method to check whether dependent libraries are shared objects.
20452 deplibs_check_method=$lt_deplibs_check_method
20453
20454 # Command to use when deplibs_check_method == file_magic.
20455 file_magic_cmd=$lt_file_magic_cmd
20456
20457 # Flag that allows shared libraries with undefined symbols to be built.
20458 allow_undefined_flag=$lt_allow_undefined_flag_RC
20459
20460 # Flag that forces no undefined symbols.
20461 no_undefined_flag=$lt_no_undefined_flag_RC
20462
20463 # Commands used to finish a libtool library installation in a directory.
20464 finish_cmds=$lt_finish_cmds
20465
20466 # Same as above, but a single script fragment to be evaled but not shown.
20467 finish_eval=$lt_finish_eval
20468
20469 # Take the output of nm and produce a listing of raw symbols and C names.
20470 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20471
20472 # Transform the output of nm in a proper C declaration
20473 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20474
20475 # Transform the output of nm in a C name address pair
20476 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20477
20478 # This is the shared library runtime path variable.
20479 runpath_var=$runpath_var
20480
20481 # This is the shared library path variable.
20482 shlibpath_var=$shlibpath_var
20483
20484 # Is shlibpath searched before the hard-coded library search path?
20485 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20486
20487 # How to hardcode a shared library path into an executable.
20488 hardcode_action=$hardcode_action_RC
20489
20490 # Whether we should hardcode library paths into libraries.
20491 hardcode_into_libs=$hardcode_into_libs
20492
20493 # Flag to hardcode \$libdir into a binary during linking.
20494 # This must work even if \$libdir does not exist.
20495 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20496
20497 # If ld is used when linking, flag to hardcode \$libdir into
20498 # a binary during linking. This must work even if \$libdir does
20499 # not exist.
20500 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20501
20502 # Whether we need a single -rpath flag with a separated argument.
20503 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20504
20505 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20506 # resulting binary.
20507 hardcode_direct=$hardcode_direct_RC
20508
20509 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20510 # resulting binary.
20511 hardcode_minus_L=$hardcode_minus_L_RC
20512
20513 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20514 # the resulting binary.
20515 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20516
20517 # Set to yes if building a shared library automatically hardcodes DIR into the library
20518 # and all subsequent libraries and executables linked against it.
20519 hardcode_automatic=$hardcode_automatic_RC
20520
20521 # Variables whose values should be saved in libtool wrapper scripts and
20522 # restored at relink time.
20523 variables_saved_for_relink="$variables_saved_for_relink"
20524
20525 # Whether libtool must link a program against all its dependency libraries.
20526 link_all_deplibs=$link_all_deplibs_RC
20527
20528 # Compile-time system search path for libraries
20529 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20530
20531 # Run-time system search path for libraries
20532 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20533
20534 # Fix the shell variable \$srcfile for the compiler.
20535 fix_srcfile_path="$fix_srcfile_path_RC"
20536
20537 # Set to yes if exported symbols are required.
20538 always_export_symbols=$always_export_symbols_RC
20539
20540 # The commands to list exported symbols.
20541 export_symbols_cmds=$lt_export_symbols_cmds_RC
20542
20543 # The commands to extract the exported symbol list from a shared archive.
20544 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20545
20546 # Symbols that should not be listed in the preloaded symbols.
20547 exclude_expsyms=$lt_exclude_expsyms_RC
20548
20549 # Symbols that must always be exported.
20550 include_expsyms=$lt_include_expsyms_RC
20551
20552 # ### END LIBTOOL TAG CONFIG: $tagname
20553
20554 __EOF__
20555
20556
20557 else
20558   # If there is no Makefile yet, we rely on a make rule to execute
20559   # `config.status --recheck' to rerun these tests and create the
20560   # libtool script then.
20561   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20562   if test -f "$ltmain_in"; then
20563     test -f Makefile && make "$ltmain"
20564   fi
20565 fi
20566
20567
20568 ac_ext=c
20569 ac_cpp='$CPP $CPPFLAGS'
20570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20573
20574 CC="$lt_save_CC"
20575
20576         ;;
20577
20578       *)
20579         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20580 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20581    { (exit 1); exit 1; }; }
20582         ;;
20583       esac
20584
20585       # Append the new tag name to the list of available tags.
20586       if test -n "$tagname" ; then
20587       available_tags="$available_tags $tagname"
20588     fi
20589     fi
20590   done
20591   IFS="$lt_save_ifs"
20592
20593   # Now substitute the updated list of available tags.
20594   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20595     mv "${ofile}T" "$ofile"
20596     chmod +x "$ofile"
20597   else
20598     rm -f "${ofile}T"
20599     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20600 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20601    { (exit 1); exit 1; }; }
20602   fi
20603 fi
20604
20605
20606
20607 # This can be used to rebuild libtool when needed
20608 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20609
20610 # Always use our own libtool.
20611 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
20612
20613 # Prevent multiple expansion
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635 # Extract the first word of "dot", so it can be a program name with args.
20636 set dummy dot; ac_word=$2
20637 echo "$as_me:$LINENO: checking for $ac_word" >&5
20638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20639 if test "${ac_cv_path_DOT+set}" = set; then
20640   echo $ECHO_N "(cached) $ECHO_C" >&6
20641 else
20642   case $DOT in
20643   [\\/]* | ?:[\\/]*)
20644   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20645   ;;
20646   *)
20647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20648 for as_dir in $PATH
20649 do
20650   IFS=$as_save_IFS
20651   test -z "$as_dir" && as_dir=.
20652   for ac_exec_ext in '' $ac_executable_extensions; do
20653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20654     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
20655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20656     break 2
20657   fi
20658 done
20659 done
20660
20661   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
20662   ;;
20663 esac
20664 fi
20665 DOT=$ac_cv_path_DOT
20666
20667 if test -n "$DOT"; then
20668   echo "$as_me:$LINENO: result: $DOT" >&5
20669 echo "${ECHO_T}$DOT" >&6
20670 else
20671   echo "$as_me:$LINENO: result: no" >&5
20672 echo "${ECHO_T}no" >&6
20673 fi
20674
20675 # Extract the first word of "etags", so it can be a program name with args.
20676 set dummy etags; ac_word=$2
20677 echo "$as_me:$LINENO: checking for $ac_word" >&5
20678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20679 if test "${ac_cv_path_ETAGS+set}" = set; then
20680   echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682   case $ETAGS in
20683   [\\/]* | ?:[\\/]*)
20684   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
20685   ;;
20686   *)
20687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20688 for as_dir in $PATH
20689 do
20690   IFS=$as_save_IFS
20691   test -z "$as_dir" && as_dir=.
20692   for ac_exec_ext in '' $ac_executable_extensions; do
20693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20694     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
20695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20696     break 2
20697   fi
20698 done
20699 done
20700
20701   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
20702   ;;
20703 esac
20704 fi
20705 ETAGS=$ac_cv_path_ETAGS
20706
20707 if test -n "$ETAGS"; then
20708   echo "$as_me:$LINENO: result: $ETAGS" >&5
20709 echo "${ECHO_T}$ETAGS" >&6
20710 else
20711   echo "$as_me:$LINENO: result: no" >&5
20712 echo "${ECHO_T}no" >&6
20713 fi
20714
20715 # Extract the first word of "python", so it can be a program name with args.
20716 set dummy python; ac_word=$2
20717 echo "$as_me:$LINENO: checking for $ac_word" >&5
20718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20719 if test "${ac_cv_path_PYTHON+set}" = set; then
20720   echo $ECHO_N "(cached) $ECHO_C" >&6
20721 else
20722   case $PYTHON in
20723   [\\/]* | ?:[\\/]*)
20724   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20725   ;;
20726   *)
20727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20728 for as_dir in $PATH
20729 do
20730   IFS=$as_save_IFS
20731   test -z "$as_dir" && as_dir=.
20732   for ac_exec_ext in '' $ac_executable_extensions; do
20733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20734     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20736     break 2
20737   fi
20738 done
20739 done
20740
20741   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
20742   ;;
20743 esac
20744 fi
20745 PYTHON=$ac_cv_path_PYTHON
20746
20747 if test -n "$PYTHON"; then
20748   echo "$as_me:$LINENO: result: $PYTHON" >&5
20749 echo "${ECHO_T}$PYTHON" >&6
20750 else
20751   echo "$as_me:$LINENO: result: no" >&5
20752 echo "${ECHO_T}no" >&6
20753 fi
20754
20755 # Extract the first word of "qmtest", so it can be a program name with args.
20756 set dummy qmtest; ac_word=$2
20757 echo "$as_me:$LINENO: checking for $ac_word" >&5
20758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20759 if test "${ac_cv_path_QMTEST+set}" = set; then
20760   echo $ECHO_N "(cached) $ECHO_C" >&6
20761 else
20762   case $QMTEST in
20763   [\\/]* | ?:[\\/]*)
20764   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
20765   ;;
20766   *)
20767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20768 for as_dir in $PATH
20769 do
20770   IFS=$as_save_IFS
20771   test -z "$as_dir" && as_dir=.
20772   for ac_exec_ext in '' $ac_executable_extensions; do
20773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20774     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
20775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20776     break 2
20777   fi
20778 done
20779 done
20780
20781   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
20782   ;;
20783 esac
20784 fi
20785 QMTEST=$ac_cv_path_QMTEST
20786
20787 if test -n "$QMTEST"; then
20788   echo "$as_me:$LINENO: result: $QMTEST" >&5
20789 echo "${ECHO_T}$QMTEST" >&6
20790 else
20791   echo "$as_me:$LINENO: result: no" >&5
20792 echo "${ECHO_T}no" >&6
20793 fi
20794
20795
20796
20797 if test "$GCC" != "yes"
20798 then
20799   { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
20800 echo "$as_me: error: gcc required but not found" >&2;}
20801    { (exit 1); exit 1; }; }
20802 fi
20803
20804 if test "$GXX" != "yes"
20805 then
20806   { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
20807 echo "$as_me: error: g++ required but not found" >&2;}
20808    { (exit 1); exit 1; }; }
20809 fi
20810
20811 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
20812 if test "$gccmajor" -lt "3"
20813 then
20814   { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
20815 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
20816    { (exit 1); exit 1; }; }
20817 fi
20818
20819  echo "$as_me:$LINENO: checking for GNU make" >&5
20820 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
20821 if test "${_cv_gnu_make_command+set}" = set; then
20822   echo $ECHO_N "(cached) $ECHO_C" >&6
20823 else
20824   _cv_gnu_make_command='' ;
20825                 for a in "$MAKE" make gmake gnumake ; do
20826                         if test -z "$a" ; then continue ; fi ;
20827                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
20828                                 _cv_gnu_make_command=$a ;
20829                                 break;
20830                         fi
20831                 done ;
20832
20833 fi
20834 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
20835 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
20836         if test  "x$_cv_gnu_make_command" != "x"  ; then
20837                 ifGNUmake='' ;
20838         else
20839                 ifGNUmake='#' ;
20840                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
20841 echo "${ECHO_T}\"Not found\"" >&6;
20842         fi
20843
20844
20845 if test -z "$_cv_gnu_make_command"
20846 then
20847   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
20848 echo "$as_me: error: GNU Make required but not found" >&2;}
20849    { (exit 1); exit 1; }; }
20850 fi
20851
20852 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
20853 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
20854 LLVM_GCC_CHECK=no
20855 if test -d "$LLVMGCCDIR"
20856 then
20857   if test -x "$LLVMGCCDIR/bin/gcc"
20858   then
20859     LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
20860   fi
20861 fi
20862 llvmgccwarn=no
20863 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
20864 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
20865 if test "$LLVM_GCC_CHECK" = "no"
20866 then
20867     llvmgccwarn=yes
20868 fi
20869
20870 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20871 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
20872 LLVM_GCC_SANE=no
20873 if test -x "$LLVM_GCC_CHECK"
20874 then
20875   cp /dev/null conftest.c
20876   "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
20877   if test $? -eq 0
20878   then
20879     LLVM_GCC_SANE=yes
20880   fi
20881   rm conftest.c
20882   llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
20883   LLVMCC1=$llvmcc1path
20884
20885   llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
20886   LLVMCC1PLUS=$llvmcc1pluspath
20887
20888 fi
20889 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
20890 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
20891 if test "$LLVM_GCC_SANE" = "no"
20892 then
20893   llvmgccwarn=yes
20894 fi
20895
20896 etags_version=`$ETAGS --version 2>&1`
20897 case "$etags_version" in
20898   *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
20899   *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
20900   *) ETAGSFLAGS="" ;;
20901 esac
20902 ETAGSFLAGS=$ETAGSFLAGS
20903
20904
20905 if test "$PYTHON" = "false"
20906 then
20907   { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
20908 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
20909 fi
20910 if test "$QMTEST" = "false"
20911 then
20912   { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
20913 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
20914 fi
20915
20916 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
20917 pymajor=`echo $pyversion | cut -d. -f1`
20918 pyminor=`echo $pyversion | cut -d. -f2`
20919
20920 if test "$pymajor" -ge "2"
20921 then
20922   if test "$pymajor" -eq "2"
20923   then
20924     if test "$pyminor" -lt "2"
20925     then
20926       { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20927 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20928     fi
20929   fi
20930 else
20931   { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20932 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20933 fi
20934
20935
20936
20937 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
20938 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
20939 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
20940   echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942   ac_check_lib_save_LIBS=$LIBS
20943 LIBS="-lelf  $LIBS"
20944 cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h.  */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h.  */
20950
20951 /* Override any gcc2 internal prototype to avoid an error.  */
20952 #ifdef __cplusplus
20953 extern "C"
20954 #endif
20955 /* We use char because int might match the return type of a gcc2
20956    builtin and then its argument prototype would still apply.  */
20957 char elf_begin ();
20958 int
20959 main ()
20960 {
20961 elf_begin ();
20962   ;
20963   return 0;
20964 }
20965 _ACEOF
20966 rm -f conftest.$ac_objext conftest$ac_exeext
20967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20968   (eval $ac_link) 2>conftest.er1
20969   ac_status=$?
20970   grep -v '^ *+' conftest.er1 >conftest.err
20971   rm -f conftest.er1
20972   cat conftest.err >&5
20973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974   (exit $ac_status); } &&
20975          { ac_try='test -z "$ac_c_werror_flag"
20976                          || test ! -s conftest.err'
20977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20978   (eval $ac_try) 2>&5
20979   ac_status=$?
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); }; } &&
20982          { ac_try='test -s conftest$ac_exeext'
20983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984   (eval $ac_try) 2>&5
20985   ac_status=$?
20986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987   (exit $ac_status); }; }; then
20988   ac_cv_lib_elf_elf_begin=yes
20989 else
20990   echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.$ac_ext >&5
20992
20993 ac_cv_lib_elf_elf_begin=no
20994 fi
20995 rm -f conftest.err conftest.$ac_objext \
20996       conftest$ac_exeext conftest.$ac_ext
20997 LIBS=$ac_check_lib_save_LIBS
20998 fi
20999 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
21000 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
21001 if test $ac_cv_lib_elf_elf_begin = yes; then
21002   cat >>confdefs.h <<_ACEOF
21003 #define HAVE_LIBELF 1
21004 _ACEOF
21005
21006   LIBS="-lelf $LIBS"
21007
21008 fi
21009
21010
21011 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
21012 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
21013 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
21014   echo $ECHO_N "(cached) $ECHO_C" >&6
21015 else
21016   ac_check_lib_save_LIBS=$LIBS
21017 LIBS="-lbz2  $LIBS"
21018 cat >conftest.$ac_ext <<_ACEOF
21019 /* confdefs.h.  */
21020 _ACEOF
21021 cat confdefs.h >>conftest.$ac_ext
21022 cat >>conftest.$ac_ext <<_ACEOF
21023 /* end confdefs.h.  */
21024
21025 /* Override any gcc2 internal prototype to avoid an error.  */
21026 #ifdef __cplusplus
21027 extern "C"
21028 #endif
21029 /* We use char because int might match the return type of a gcc2
21030    builtin and then its argument prototype would still apply.  */
21031 char BZ2_bzCompressInit ();
21032 int
21033 main ()
21034 {
21035 BZ2_bzCompressInit ();
21036   ;
21037   return 0;
21038 }
21039 _ACEOF
21040 rm -f conftest.$ac_objext conftest$ac_exeext
21041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21042   (eval $ac_link) 2>conftest.er1
21043   ac_status=$?
21044   grep -v '^ *+' conftest.er1 >conftest.err
21045   rm -f conftest.er1
21046   cat conftest.err >&5
21047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048   (exit $ac_status); } &&
21049          { ac_try='test -z "$ac_c_werror_flag"
21050                          || test ! -s conftest.err'
21051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21052   (eval $ac_try) 2>&5
21053   ac_status=$?
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); }; } &&
21056          { ac_try='test -s conftest$ac_exeext'
21057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058   (eval $ac_try) 2>&5
21059   ac_status=$?
21060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061   (exit $ac_status); }; }; then
21062   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
21063 else
21064   echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067 ac_cv_lib_bz2_BZ2_bzCompressInit=no
21068 fi
21069 rm -f conftest.err conftest.$ac_objext \
21070       conftest$ac_exeext conftest.$ac_ext
21071 LIBS=$ac_check_lib_save_LIBS
21072 fi
21073 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
21074 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
21075 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
21076   bzip2_found=1
21077 else
21078   bzip2_found=0
21079 fi
21080
21081 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
21082 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
21083 if test "${ac_cv_lib_z_gzopen+set}" = set; then
21084   echo $ECHO_N "(cached) $ECHO_C" >&6
21085 else
21086   ac_check_lib_save_LIBS=$LIBS
21087 LIBS="-lz  $LIBS"
21088 cat >conftest.$ac_ext <<_ACEOF
21089 /* confdefs.h.  */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h.  */
21094
21095 /* Override any gcc2 internal prototype to avoid an error.  */
21096 #ifdef __cplusplus
21097 extern "C"
21098 #endif
21099 /* We use char because int might match the return type of a gcc2
21100    builtin and then its argument prototype would still apply.  */
21101 char gzopen ();
21102 int
21103 main ()
21104 {
21105 gzopen ();
21106   ;
21107   return 0;
21108 }
21109 _ACEOF
21110 rm -f conftest.$ac_objext conftest$ac_exeext
21111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21112   (eval $ac_link) 2>conftest.er1
21113   ac_status=$?
21114   grep -v '^ *+' conftest.er1 >conftest.err
21115   rm -f conftest.er1
21116   cat conftest.err >&5
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); } &&
21119          { ac_try='test -z "$ac_c_werror_flag"
21120                          || test ! -s conftest.err'
21121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122   (eval $ac_try) 2>&5
21123   ac_status=$?
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); }; } &&
21126          { ac_try='test -s conftest$ac_exeext'
21127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128   (eval $ac_try) 2>&5
21129   ac_status=$?
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); }; }; then
21132   ac_cv_lib_z_gzopen=yes
21133 else
21134   echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21136
21137 ac_cv_lib_z_gzopen=no
21138 fi
21139 rm -f conftest.err conftest.$ac_objext \
21140       conftest$ac_exeext conftest.$ac_ext
21141 LIBS=$ac_check_lib_save_LIBS
21142 fi
21143 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
21144 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
21145 if test $ac_cv_lib_z_gzopen = yes; then
21146   zlib_found=1
21147 else
21148   zlib_found=0
21149 fi
21150
21151
21152 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21153 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
21154 if test "${ac_cv_search_dlopen+set}" = set; then
21155   echo $ECHO_N "(cached) $ECHO_C" >&6
21156 else
21157   ac_func_search_save_LIBS=$LIBS
21158 ac_cv_search_dlopen=no
21159 cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h.  */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h.  */
21165
21166 /* Override any gcc2 internal prototype to avoid an error.  */
21167 #ifdef __cplusplus
21168 extern "C"
21169 #endif
21170 /* We use char because int might match the return type of a gcc2
21171    builtin and then its argument prototype would still apply.  */
21172 char dlopen ();
21173 int
21174 main ()
21175 {
21176 dlopen ();
21177   ;
21178   return 0;
21179 }
21180 _ACEOF
21181 rm -f conftest.$ac_objext conftest$ac_exeext
21182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21183   (eval $ac_link) 2>conftest.er1
21184   ac_status=$?
21185   grep -v '^ *+' conftest.er1 >conftest.err
21186   rm -f conftest.er1
21187   cat conftest.err >&5
21188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189   (exit $ac_status); } &&
21190          { ac_try='test -z "$ac_c_werror_flag"
21191                          || test ! -s conftest.err'
21192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193   (eval $ac_try) 2>&5
21194   ac_status=$?
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); }; } &&
21197          { ac_try='test -s conftest$ac_exeext'
21198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199   (eval $ac_try) 2>&5
21200   ac_status=$?
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); }; }; then
21203   ac_cv_search_dlopen="none required"
21204 else
21205   echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21207
21208 fi
21209 rm -f conftest.err conftest.$ac_objext \
21210       conftest$ac_exeext conftest.$ac_ext
21211 if test "$ac_cv_search_dlopen" = no; then
21212   for ac_lib in dl; do
21213     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21214     cat >conftest.$ac_ext <<_ACEOF
21215 /* confdefs.h.  */
21216 _ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h.  */
21220
21221 /* Override any gcc2 internal prototype to avoid an error.  */
21222 #ifdef __cplusplus
21223 extern "C"
21224 #endif
21225 /* We use char because int might match the return type of a gcc2
21226    builtin and then its argument prototype would still apply.  */
21227 char dlopen ();
21228 int
21229 main ()
21230 {
21231 dlopen ();
21232   ;
21233   return 0;
21234 }
21235 _ACEOF
21236 rm -f conftest.$ac_objext conftest$ac_exeext
21237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21238   (eval $ac_link) 2>conftest.er1
21239   ac_status=$?
21240   grep -v '^ *+' conftest.er1 >conftest.err
21241   rm -f conftest.er1
21242   cat conftest.err >&5
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); } &&
21245          { ac_try='test -z "$ac_c_werror_flag"
21246                          || test ! -s conftest.err'
21247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248   (eval $ac_try) 2>&5
21249   ac_status=$?
21250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251   (exit $ac_status); }; } &&
21252          { ac_try='test -s conftest$ac_exeext'
21253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254   (eval $ac_try) 2>&5
21255   ac_status=$?
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); }; }; then
21258   ac_cv_search_dlopen="-l$ac_lib"
21259 break
21260 else
21261   echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264 fi
21265 rm -f conftest.err conftest.$ac_objext \
21266       conftest$ac_exeext conftest.$ac_ext
21267   done
21268 fi
21269 LIBS=$ac_func_search_save_LIBS
21270 fi
21271 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21272 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
21273 if test "$ac_cv_search_dlopen" != no; then
21274   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
21275
21276 cat >>confdefs.h <<\_ACEOF
21277 #define HAVE_DLOPEN 1
21278 _ACEOF
21279
21280 else
21281   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
21282 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
21283 fi
21284
21285
21286 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
21287 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
21288 if test "${ac_cv_search_mallinfo+set}" = set; then
21289   echo $ECHO_N "(cached) $ECHO_C" >&6
21290 else
21291   ac_func_search_save_LIBS=$LIBS
21292 ac_cv_search_mallinfo=no
21293 cat >conftest.$ac_ext <<_ACEOF
21294 /* confdefs.h.  */
21295 _ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h.  */
21299
21300 /* Override any gcc2 internal prototype to avoid an error.  */
21301 #ifdef __cplusplus
21302 extern "C"
21303 #endif
21304 /* We use char because int might match the return type of a gcc2
21305    builtin and then its argument prototype would still apply.  */
21306 char mallinfo ();
21307 int
21308 main ()
21309 {
21310 mallinfo ();
21311   ;
21312   return 0;
21313 }
21314 _ACEOF
21315 rm -f conftest.$ac_objext conftest$ac_exeext
21316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21317   (eval $ac_link) 2>conftest.er1
21318   ac_status=$?
21319   grep -v '^ *+' conftest.er1 >conftest.err
21320   rm -f conftest.er1
21321   cat conftest.err >&5
21322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323   (exit $ac_status); } &&
21324          { ac_try='test -z "$ac_c_werror_flag"
21325                          || test ! -s conftest.err'
21326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327   (eval $ac_try) 2>&5
21328   ac_status=$?
21329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330   (exit $ac_status); }; } &&
21331          { ac_try='test -s conftest$ac_exeext'
21332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333   (eval $ac_try) 2>&5
21334   ac_status=$?
21335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336   (exit $ac_status); }; }; then
21337   ac_cv_search_mallinfo="none required"
21338 else
21339   echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21341
21342 fi
21343 rm -f conftest.err conftest.$ac_objext \
21344       conftest$ac_exeext conftest.$ac_ext
21345 if test "$ac_cv_search_mallinfo" = no; then
21346   for ac_lib in malloc; do
21347     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21348     cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h.  */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h.  */
21354
21355 /* Override any gcc2 internal prototype to avoid an error.  */
21356 #ifdef __cplusplus
21357 extern "C"
21358 #endif
21359 /* We use char because int might match the return type of a gcc2
21360    builtin and then its argument prototype would still apply.  */
21361 char mallinfo ();
21362 int
21363 main ()
21364 {
21365 mallinfo ();
21366   ;
21367   return 0;
21368 }
21369 _ACEOF
21370 rm -f conftest.$ac_objext conftest$ac_exeext
21371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21372   (eval $ac_link) 2>conftest.er1
21373   ac_status=$?
21374   grep -v '^ *+' conftest.er1 >conftest.err
21375   rm -f conftest.er1
21376   cat conftest.err >&5
21377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378   (exit $ac_status); } &&
21379          { ac_try='test -z "$ac_c_werror_flag"
21380                          || test ! -s conftest.err'
21381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382   (eval $ac_try) 2>&5
21383   ac_status=$?
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); }; } &&
21386          { ac_try='test -s conftest$ac_exeext'
21387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21388   (eval $ac_try) 2>&5
21389   ac_status=$?
21390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391   (exit $ac_status); }; }; then
21392   ac_cv_search_mallinfo="-l$ac_lib"
21393 break
21394 else
21395   echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21397
21398 fi
21399 rm -f conftest.err conftest.$ac_objext \
21400       conftest$ac_exeext conftest.$ac_ext
21401   done
21402 fi
21403 LIBS=$ac_func_search_save_LIBS
21404 fi
21405 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
21406 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
21407 if test "$ac_cv_search_mallinfo" != no; then
21408   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
21409
21410 cat >>confdefs.h <<\_ACEOF
21411 #define HAVE_MALLINFO 1
21412 _ACEOF
21413
21414 fi
21415
21416
21417 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
21418 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
21419 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21420   echo $ECHO_N "(cached) $ECHO_C" >&6
21421 else
21422   ac_func_search_save_LIBS=$LIBS
21423 ac_cv_search_pthread_mutex_lock=no
21424 cat >conftest.$ac_ext <<_ACEOF
21425 /* confdefs.h.  */
21426 _ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h.  */
21430
21431 /* Override any gcc2 internal prototype to avoid an error.  */
21432 #ifdef __cplusplus
21433 extern "C"
21434 #endif
21435 /* We use char because int might match the return type of a gcc2
21436    builtin and then its argument prototype would still apply.  */
21437 char pthread_mutex_lock ();
21438 int
21439 main ()
21440 {
21441 pthread_mutex_lock ();
21442   ;
21443   return 0;
21444 }
21445 _ACEOF
21446 rm -f conftest.$ac_objext conftest$ac_exeext
21447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21448   (eval $ac_link) 2>conftest.er1
21449   ac_status=$?
21450   grep -v '^ *+' conftest.er1 >conftest.err
21451   rm -f conftest.er1
21452   cat conftest.err >&5
21453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454   (exit $ac_status); } &&
21455          { ac_try='test -z "$ac_c_werror_flag"
21456                          || test ! -s conftest.err'
21457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21458   (eval $ac_try) 2>&5
21459   ac_status=$?
21460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461   (exit $ac_status); }; } &&
21462          { ac_try='test -s conftest$ac_exeext'
21463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464   (eval $ac_try) 2>&5
21465   ac_status=$?
21466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); }; }; then
21468   ac_cv_search_pthread_mutex_lock="none required"
21469 else
21470   echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21472
21473 fi
21474 rm -f conftest.err conftest.$ac_objext \
21475       conftest$ac_exeext conftest.$ac_ext
21476 if test "$ac_cv_search_pthread_mutex_lock" = no; then
21477   for ac_lib in pthread; do
21478     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21479     cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h.  */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h.  */
21485
21486 /* Override any gcc2 internal prototype to avoid an error.  */
21487 #ifdef __cplusplus
21488 extern "C"
21489 #endif
21490 /* We use char because int might match the return type of a gcc2
21491    builtin and then its argument prototype would still apply.  */
21492 char pthread_mutex_lock ();
21493 int
21494 main ()
21495 {
21496 pthread_mutex_lock ();
21497   ;
21498   return 0;
21499 }
21500 _ACEOF
21501 rm -f conftest.$ac_objext conftest$ac_exeext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21503   (eval $ac_link) 2>conftest.er1
21504   ac_status=$?
21505   grep -v '^ *+' conftest.er1 >conftest.err
21506   rm -f conftest.er1
21507   cat conftest.err >&5
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); } &&
21510          { ac_try='test -z "$ac_c_werror_flag"
21511                          || test ! -s conftest.err'
21512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513   (eval $ac_try) 2>&5
21514   ac_status=$?
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); }; } &&
21517          { ac_try='test -s conftest$ac_exeext'
21518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519   (eval $ac_try) 2>&5
21520   ac_status=$?
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); }; }; then
21523   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
21524 break
21525 else
21526   echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21528
21529 fi
21530 rm -f conftest.err conftest.$ac_objext \
21531       conftest$ac_exeext conftest.$ac_ext
21532   done
21533 fi
21534 LIBS=$ac_func_search_save_LIBS
21535 fi
21536 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
21537 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
21538 if test "$ac_cv_search_pthread_mutex_lock" != no; then
21539   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
21540
21541 cat >>confdefs.h <<\_ACEOF
21542 #define HAVE_PTHREAD_MUTEX_LOCK 1
21543 _ACEOF
21544
21545 fi
21546
21547
21548
21549
21550 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21551 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21552 if test "${ac_cv_header_stdc+set}" = set; then
21553   echo $ECHO_N "(cached) $ECHO_C" >&6
21554 else
21555   cat >conftest.$ac_ext <<_ACEOF
21556 /* confdefs.h.  */
21557 _ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h.  */
21561 #include <stdlib.h>
21562 #include <stdarg.h>
21563 #include <string.h>
21564 #include <float.h>
21565
21566 int
21567 main ()
21568 {
21569
21570   ;
21571   return 0;
21572 }
21573 _ACEOF
21574 rm -f conftest.$ac_objext
21575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21576   (eval $ac_compile) 2>conftest.er1
21577   ac_status=$?
21578   grep -v '^ *+' conftest.er1 >conftest.err
21579   rm -f conftest.er1
21580   cat conftest.err >&5
21581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582   (exit $ac_status); } &&
21583          { ac_try='test -z "$ac_c_werror_flag"
21584                          || test ! -s conftest.err'
21585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586   (eval $ac_try) 2>&5
21587   ac_status=$?
21588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589   (exit $ac_status); }; } &&
21590          { ac_try='test -s conftest.$ac_objext'
21591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592   (eval $ac_try) 2>&5
21593   ac_status=$?
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); }; }; then
21596   ac_cv_header_stdc=yes
21597 else
21598   echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21600
21601 ac_cv_header_stdc=no
21602 fi
21603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21604
21605 if test $ac_cv_header_stdc = yes; then
21606   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21607   cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h.  */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h.  */
21613 #include <string.h>
21614
21615 _ACEOF
21616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21617   $EGREP "memchr" >/dev/null 2>&1; then
21618   :
21619 else
21620   ac_cv_header_stdc=no
21621 fi
21622 rm -f conftest*
21623
21624 fi
21625
21626 if test $ac_cv_header_stdc = yes; then
21627   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21628   cat >conftest.$ac_ext <<_ACEOF
21629 /* confdefs.h.  */
21630 _ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h.  */
21634 #include <stdlib.h>
21635
21636 _ACEOF
21637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21638   $EGREP "free" >/dev/null 2>&1; then
21639   :
21640 else
21641   ac_cv_header_stdc=no
21642 fi
21643 rm -f conftest*
21644
21645 fi
21646
21647 if test $ac_cv_header_stdc = yes; then
21648   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21649   if test "$cross_compiling" = yes; then
21650   :
21651 else
21652   cat >conftest.$ac_ext <<_ACEOF
21653 /* confdefs.h.  */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h.  */
21658 #include <ctype.h>
21659 #if ((' ' & 0x0FF) == 0x020)
21660 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21661 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21662 #else
21663 # define ISLOWER(c) \
21664                    (('a' <= (c) && (c) <= 'i') \
21665                      || ('j' <= (c) && (c) <= 'r') \
21666                      || ('s' <= (c) && (c) <= 'z'))
21667 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21668 #endif
21669
21670 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21671 int
21672 main ()
21673 {
21674   int i;
21675   for (i = 0; i < 256; i++)
21676     if (XOR (islower (i), ISLOWER (i))
21677         || toupper (i) != TOUPPER (i))
21678       exit(2);
21679   exit (0);
21680 }
21681 _ACEOF
21682 rm -f conftest$ac_exeext
21683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21684   (eval $ac_link) 2>&5
21685   ac_status=$?
21686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689   (eval $ac_try) 2>&5
21690   ac_status=$?
21691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692   (exit $ac_status); }; }; then
21693   :
21694 else
21695   echo "$as_me: program exited with status $ac_status" >&5
21696 echo "$as_me: failed program was:" >&5
21697 sed 's/^/| /' conftest.$ac_ext >&5
21698
21699 ( exit $ac_status )
21700 ac_cv_header_stdc=no
21701 fi
21702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21703 fi
21704 fi
21705 fi
21706 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21707 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21708 if test $ac_cv_header_stdc = yes; then
21709
21710 cat >>confdefs.h <<\_ACEOF
21711 #define STDC_HEADERS 1
21712 _ACEOF
21713
21714 fi
21715
21716 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21717 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21718 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21719   echo $ECHO_N "(cached) $ECHO_C" >&6
21720 else
21721   cat >conftest.$ac_ext <<_ACEOF
21722 /* confdefs.h.  */
21723 _ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h.  */
21727 #include <sys/types.h>
21728 #include <sys/wait.h>
21729 #ifndef WEXITSTATUS
21730 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21731 #endif
21732 #ifndef WIFEXITED
21733 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21734 #endif
21735
21736 int
21737 main ()
21738 {
21739   int s;
21740   wait (&s);
21741   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21742   ;
21743   return 0;
21744 }
21745 _ACEOF
21746 rm -f conftest.$ac_objext
21747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21748   (eval $ac_compile) 2>conftest.er1
21749   ac_status=$?
21750   grep -v '^ *+' conftest.er1 >conftest.err
21751   rm -f conftest.er1
21752   cat conftest.err >&5
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); } &&
21755          { ac_try='test -z "$ac_c_werror_flag"
21756                          || test ! -s conftest.err'
21757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21758   (eval $ac_try) 2>&5
21759   ac_status=$?
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); }; } &&
21762          { ac_try='test -s conftest.$ac_objext'
21763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21764   (eval $ac_try) 2>&5
21765   ac_status=$?
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); }; }; then
21768   ac_cv_header_sys_wait_h=yes
21769 else
21770   echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21772
21773 ac_cv_header_sys_wait_h=no
21774 fi
21775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21776 fi
21777 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21778 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21779 if test $ac_cv_header_sys_wait_h = yes; then
21780
21781 cat >>confdefs.h <<\_ACEOF
21782 #define HAVE_SYS_WAIT_H 1
21783 _ACEOF
21784
21785 fi
21786
21787 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21788 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21789 if test "${ac_cv_header_time+set}" = set; then
21790   echo $ECHO_N "(cached) $ECHO_C" >&6
21791 else
21792   cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h.  */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h.  */
21798 #include <sys/types.h>
21799 #include <sys/time.h>
21800 #include <time.h>
21801
21802 int
21803 main ()
21804 {
21805 if ((struct tm *) 0)
21806 return 0;
21807   ;
21808   return 0;
21809 }
21810 _ACEOF
21811 rm -f conftest.$ac_objext
21812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21813   (eval $ac_compile) 2>conftest.er1
21814   ac_status=$?
21815   grep -v '^ *+' conftest.er1 >conftest.err
21816   rm -f conftest.er1
21817   cat conftest.err >&5
21818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819   (exit $ac_status); } &&
21820          { ac_try='test -z "$ac_c_werror_flag"
21821                          || test ! -s conftest.err'
21822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823   (eval $ac_try) 2>&5
21824   ac_status=$?
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); }; } &&
21827          { ac_try='test -s conftest.$ac_objext'
21828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829   (eval $ac_try) 2>&5
21830   ac_status=$?
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); }; }; then
21833   ac_cv_header_time=yes
21834 else
21835   echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21837
21838 ac_cv_header_time=no
21839 fi
21840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21841 fi
21842 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21843 echo "${ECHO_T}$ac_cv_header_time" >&6
21844 if test $ac_cv_header_time = yes; then
21845
21846 cat >>confdefs.h <<\_ACEOF
21847 #define TIME_WITH_SYS_TIME 1
21848 _ACEOF
21849
21850 fi
21851
21852 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21853 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21854 if test "${ac_cv_header_mmap_anon+set}" = set; then
21855   echo $ECHO_N "(cached) $ECHO_C" >&6
21856 else
21857    ac_ext=c
21858 ac_cpp='$CPP $CPPFLAGS'
21859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21862
21863   cat >conftest.$ac_ext <<_ACEOF
21864 /* confdefs.h.  */
21865 _ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h.  */
21869 #include <sys/mman.h>
21870 #include <unistd.h>
21871 #include <fcntl.h>
21872 int
21873 main ()
21874 {
21875 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21876   ;
21877   return 0;
21878 }
21879 _ACEOF
21880 rm -f conftest.$ac_objext
21881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21882   (eval $ac_compile) 2>conftest.er1
21883   ac_status=$?
21884   grep -v '^ *+' conftest.er1 >conftest.err
21885   rm -f conftest.er1
21886   cat conftest.err >&5
21887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888   (exit $ac_status); } &&
21889          { ac_try='test -z "$ac_c_werror_flag"
21890                          || test ! -s conftest.err'
21891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892   (eval $ac_try) 2>&5
21893   ac_status=$?
21894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895   (exit $ac_status); }; } &&
21896          { ac_try='test -s conftest.$ac_objext'
21897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21898   (eval $ac_try) 2>&5
21899   ac_status=$?
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); }; }; then
21902   ac_cv_header_mmap_anon=yes
21903 else
21904   echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21906
21907 ac_cv_header_mmap_anon=no
21908 fi
21909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21910   ac_ext=c
21911 ac_cpp='$CPP $CPPFLAGS'
21912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21915
21916
21917 fi
21918 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21919 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21920 if test "$ac_cv_header_mmap_anon" = yes; then
21921
21922 cat >>confdefs.h <<\_ACEOF
21923 #define HAVE_MMAP_ANONYMOUS
21924 _ACEOF
21925
21926 fi
21927
21928
21929
21930
21931
21932
21933
21934
21935 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h
21936 do
21937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21939   echo "$as_me:$LINENO: checking for $ac_header" >&5
21940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21942   echo $ECHO_N "(cached) $ECHO_C" >&6
21943 fi
21944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21946 else
21947   # Is the header compilable?
21948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21950 cat >conftest.$ac_ext <<_ACEOF
21951 /* confdefs.h.  */
21952 _ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h.  */
21956 $ac_includes_default
21957 #include <$ac_header>
21958 _ACEOF
21959 rm -f conftest.$ac_objext
21960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21961   (eval $ac_compile) 2>conftest.er1
21962   ac_status=$?
21963   grep -v '^ *+' conftest.er1 >conftest.err
21964   rm -f conftest.er1
21965   cat conftest.err >&5
21966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967   (exit $ac_status); } &&
21968          { ac_try='test -z "$ac_c_werror_flag"
21969                          || test ! -s conftest.err'
21970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21971   (eval $ac_try) 2>&5
21972   ac_status=$?
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); }; } &&
21975          { ac_try='test -s conftest.$ac_objext'
21976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21977   (eval $ac_try) 2>&5
21978   ac_status=$?
21979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980   (exit $ac_status); }; }; then
21981   ac_header_compiler=yes
21982 else
21983   echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21985
21986 ac_header_compiler=no
21987 fi
21988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21990 echo "${ECHO_T}$ac_header_compiler" >&6
21991
21992 # Is the header present?
21993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h.  */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h.  */
22001 #include <$ac_header>
22002 _ACEOF
22003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22005   ac_status=$?
22006   grep -v '^ *+' conftest.er1 >conftest.err
22007   rm -f conftest.er1
22008   cat conftest.err >&5
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); } >/dev/null; then
22011   if test -s conftest.err; then
22012     ac_cpp_err=$ac_c_preproc_warn_flag
22013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22014   else
22015     ac_cpp_err=
22016   fi
22017 else
22018   ac_cpp_err=yes
22019 fi
22020 if test -z "$ac_cpp_err"; then
22021   ac_header_preproc=yes
22022 else
22023   echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22025
22026   ac_header_preproc=no
22027 fi
22028 rm -f conftest.err conftest.$ac_ext
22029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22030 echo "${ECHO_T}$ac_header_preproc" >&6
22031
22032 # So?  What about this header?
22033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22034   yes:no: )
22035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22039     ac_header_preproc=yes
22040     ;;
22041   no:yes:* )
22042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22054     (
22055       cat <<\_ASBOX
22056 ## ----------------------------------- ##
22057 ## Report this to llvmbugs@cs.uiuc.edu ##
22058 ## ----------------------------------- ##
22059 _ASBOX
22060     ) |
22061       sed "s/^/$as_me: WARNING:     /" >&2
22062     ;;
22063 esac
22064 echo "$as_me:$LINENO: checking for $ac_header" >&5
22065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22067   echo $ECHO_N "(cached) $ECHO_C" >&6
22068 else
22069   eval "$as_ac_Header=\$ac_header_preproc"
22070 fi
22071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22073
22074 fi
22075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22076   cat >>confdefs.h <<_ACEOF
22077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22078 _ACEOF
22079
22080 fi
22081
22082 done
22083
22084
22085
22086
22087
22088
22089 for ac_header in sys/resource.h dlfcn.h link.h execinfo.h windows.h
22090 do
22091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22093   echo "$as_me:$LINENO: checking for $ac_header" >&5
22094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22096   echo $ECHO_N "(cached) $ECHO_C" >&6
22097 fi
22098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22100 else
22101   # Is the header compilable?
22102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22104 cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h.  */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h.  */
22110 $ac_includes_default
22111 #include <$ac_header>
22112 _ACEOF
22113 rm -f conftest.$ac_objext
22114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22115   (eval $ac_compile) 2>conftest.er1
22116   ac_status=$?
22117   grep -v '^ *+' conftest.er1 >conftest.err
22118   rm -f conftest.er1
22119   cat conftest.err >&5
22120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121   (exit $ac_status); } &&
22122          { ac_try='test -z "$ac_c_werror_flag"
22123                          || test ! -s conftest.err'
22124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125   (eval $ac_try) 2>&5
22126   ac_status=$?
22127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128   (exit $ac_status); }; } &&
22129          { ac_try='test -s conftest.$ac_objext'
22130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131   (eval $ac_try) 2>&5
22132   ac_status=$?
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); }; }; then
22135   ac_header_compiler=yes
22136 else
22137   echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22139
22140 ac_header_compiler=no
22141 fi
22142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22144 echo "${ECHO_T}$ac_header_compiler" >&6
22145
22146 # Is the header present?
22147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22149 cat >conftest.$ac_ext <<_ACEOF
22150 /* confdefs.h.  */
22151 _ACEOF
22152 cat confdefs.h >>conftest.$ac_ext
22153 cat >>conftest.$ac_ext <<_ACEOF
22154 /* end confdefs.h.  */
22155 #include <$ac_header>
22156 _ACEOF
22157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22158   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22159   ac_status=$?
22160   grep -v '^ *+' conftest.er1 >conftest.err
22161   rm -f conftest.er1
22162   cat conftest.err >&5
22163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164   (exit $ac_status); } >/dev/null; then
22165   if test -s conftest.err; then
22166     ac_cpp_err=$ac_c_preproc_warn_flag
22167     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22168   else
22169     ac_cpp_err=
22170   fi
22171 else
22172   ac_cpp_err=yes
22173 fi
22174 if test -z "$ac_cpp_err"; then
22175   ac_header_preproc=yes
22176 else
22177   echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22179
22180   ac_header_preproc=no
22181 fi
22182 rm -f conftest.err conftest.$ac_ext
22183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22184 echo "${ECHO_T}$ac_header_preproc" >&6
22185
22186 # So?  What about this header?
22187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22188   yes:no: )
22189     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22193     ac_header_preproc=yes
22194     ;;
22195   no:yes:* )
22196     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22198     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22199 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22200     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22202     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22203 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22206     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22208     (
22209       cat <<\_ASBOX
22210 ## ----------------------------------- ##
22211 ## Report this to llvmbugs@cs.uiuc.edu ##
22212 ## ----------------------------------- ##
22213 _ASBOX
22214     ) |
22215       sed "s/^/$as_me: WARNING:     /" >&2
22216     ;;
22217 esac
22218 echo "$as_me:$LINENO: checking for $ac_header" >&5
22219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22221   echo $ECHO_N "(cached) $ECHO_C" >&6
22222 else
22223   eval "$as_ac_Header=\$ac_header_preproc"
22224 fi
22225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22227
22228 fi
22229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22230   cat >>confdefs.h <<_ACEOF
22231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22232 _ACEOF
22233
22234 fi
22235
22236 done
22237
22238
22239 if test "${ac_cv_header_sys_types_h+set}" = set; then
22240   echo "$as_me:$LINENO: checking for sys/types.h" >&5
22241 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
22242 if test "${ac_cv_header_sys_types_h+set}" = set; then
22243   echo $ECHO_N "(cached) $ECHO_C" >&6
22244 fi
22245 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
22246 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
22247 else
22248   # Is the header compilable?
22249 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
22250 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
22251 cat >conftest.$ac_ext <<_ACEOF
22252 /* confdefs.h.  */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h.  */
22257 $ac_includes_default
22258 #include <sys/types.h>
22259 _ACEOF
22260 rm -f conftest.$ac_objext
22261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22262   (eval $ac_compile) 2>conftest.er1
22263   ac_status=$?
22264   grep -v '^ *+' conftest.er1 >conftest.err
22265   rm -f conftest.er1
22266   cat conftest.err >&5
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); } &&
22269          { ac_try='test -z "$ac_c_werror_flag"
22270                          || test ! -s conftest.err'
22271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272   (eval $ac_try) 2>&5
22273   ac_status=$?
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); }; } &&
22276          { ac_try='test -s conftest.$ac_objext'
22277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278   (eval $ac_try) 2>&5
22279   ac_status=$?
22280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281   (exit $ac_status); }; }; then
22282   ac_header_compiler=yes
22283 else
22284   echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22286
22287 ac_header_compiler=no
22288 fi
22289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22291 echo "${ECHO_T}$ac_header_compiler" >&6
22292
22293 # Is the header present?
22294 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
22295 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
22296 cat >conftest.$ac_ext <<_ACEOF
22297 /* confdefs.h.  */
22298 _ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h.  */
22302 #include <sys/types.h>
22303 _ACEOF
22304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22306   ac_status=$?
22307   grep -v '^ *+' conftest.er1 >conftest.err
22308   rm -f conftest.er1
22309   cat conftest.err >&5
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); } >/dev/null; then
22312   if test -s conftest.err; then
22313     ac_cpp_err=$ac_c_preproc_warn_flag
22314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22315   else
22316     ac_cpp_err=
22317   fi
22318 else
22319   ac_cpp_err=yes
22320 fi
22321 if test -z "$ac_cpp_err"; then
22322   ac_header_preproc=yes
22323 else
22324   echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22326
22327   ac_header_preproc=no
22328 fi
22329 rm -f conftest.err conftest.$ac_ext
22330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22331 echo "${ECHO_T}$ac_header_preproc" >&6
22332
22333 # So?  What about this header?
22334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22335   yes:no: )
22336     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
22337 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22338     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
22339 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
22340     ac_header_preproc=yes
22341     ;;
22342   no:yes:* )
22343     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
22344 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
22345     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
22346 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
22347     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
22348 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
22349     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
22350 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22351     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
22352 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
22353     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
22354 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
22355     (
22356       cat <<\_ASBOX
22357 ## ----------------------------------- ##
22358 ## Report this to llvmbugs@cs.uiuc.edu ##
22359 ## ----------------------------------- ##
22360 _ASBOX
22361     ) |
22362       sed "s/^/$as_me: WARNING:     /" >&2
22363     ;;
22364 esac
22365 echo "$as_me:$LINENO: checking for sys/types.h" >&5
22366 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
22367 if test "${ac_cv_header_sys_types_h+set}" = set; then
22368   echo $ECHO_N "(cached) $ECHO_C" >&6
22369 else
22370   ac_cv_header_sys_types_h=$ac_header_preproc
22371 fi
22372 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
22373 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
22374
22375 fi
22376
22377
22378 if test "${ac_cv_header_inttypes_h+set}" = set; then
22379   echo "$as_me:$LINENO: checking for inttypes.h" >&5
22380 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22381 if test "${ac_cv_header_inttypes_h+set}" = set; then
22382   echo $ECHO_N "(cached) $ECHO_C" >&6
22383 fi
22384 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22385 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
22386 else
22387   # Is the header compilable?
22388 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
22389 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
22390 cat >conftest.$ac_ext <<_ACEOF
22391 /* confdefs.h.  */
22392 _ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h.  */
22396 $ac_includes_default
22397 #include <inttypes.h>
22398 _ACEOF
22399 rm -f conftest.$ac_objext
22400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22401   (eval $ac_compile) 2>conftest.er1
22402   ac_status=$?
22403   grep -v '^ *+' conftest.er1 >conftest.err
22404   rm -f conftest.er1
22405   cat conftest.err >&5
22406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407   (exit $ac_status); } &&
22408          { ac_try='test -z "$ac_c_werror_flag"
22409                          || test ! -s conftest.err'
22410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22411   (eval $ac_try) 2>&5
22412   ac_status=$?
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); }; } &&
22415          { ac_try='test -s conftest.$ac_objext'
22416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417   (eval $ac_try) 2>&5
22418   ac_status=$?
22419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420   (exit $ac_status); }; }; then
22421   ac_header_compiler=yes
22422 else
22423   echo "$as_me: failed program was:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22425
22426 ac_header_compiler=no
22427 fi
22428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22430 echo "${ECHO_T}$ac_header_compiler" >&6
22431
22432 # Is the header present?
22433 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
22434 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
22435 cat >conftest.$ac_ext <<_ACEOF
22436 /* confdefs.h.  */
22437 _ACEOF
22438 cat confdefs.h >>conftest.$ac_ext
22439 cat >>conftest.$ac_ext <<_ACEOF
22440 /* end confdefs.h.  */
22441 #include <inttypes.h>
22442 _ACEOF
22443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22444   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22445   ac_status=$?
22446   grep -v '^ *+' conftest.er1 >conftest.err
22447   rm -f conftest.er1
22448   cat conftest.err >&5
22449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450   (exit $ac_status); } >/dev/null; then
22451   if test -s conftest.err; then
22452     ac_cpp_err=$ac_c_preproc_warn_flag
22453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22454   else
22455     ac_cpp_err=
22456   fi
22457 else
22458   ac_cpp_err=yes
22459 fi
22460 if test -z "$ac_cpp_err"; then
22461   ac_header_preproc=yes
22462 else
22463   echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22465
22466   ac_header_preproc=no
22467 fi
22468 rm -f conftest.err conftest.$ac_ext
22469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22470 echo "${ECHO_T}$ac_header_preproc" >&6
22471
22472 # So?  What about this header?
22473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22474   yes:no: )
22475     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
22476 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22477     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
22478 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
22479     ac_header_preproc=yes
22480     ;;
22481   no:yes:* )
22482     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
22483 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
22484     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
22485 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
22486     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
22487 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
22488     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
22489 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22490     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
22491 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
22492     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
22493 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
22494     (
22495       cat <<\_ASBOX
22496 ## ----------------------------------- ##
22497 ## Report this to llvmbugs@cs.uiuc.edu ##
22498 ## ----------------------------------- ##
22499 _ASBOX
22500     ) |
22501       sed "s/^/$as_me: WARNING:     /" >&2
22502     ;;
22503 esac
22504 echo "$as_me:$LINENO: checking for inttypes.h" >&5
22505 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22506 if test "${ac_cv_header_inttypes_h+set}" = set; then
22507   echo $ECHO_N "(cached) $ECHO_C" >&6
22508 else
22509   ac_cv_header_inttypes_h=$ac_header_preproc
22510 fi
22511 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22512 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
22513
22514 fi
22515
22516
22517 if test "${ac_cv_header_stdint_h+set}" = set; then
22518   echo "$as_me:$LINENO: checking for stdint.h" >&5
22519 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22520 if test "${ac_cv_header_stdint_h+set}" = set; then
22521   echo $ECHO_N "(cached) $ECHO_C" >&6
22522 fi
22523 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
22524 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
22525 else
22526   # Is the header compilable?
22527 echo "$as_me:$LINENO: checking stdint.h usability" >&5
22528 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
22529 cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h.  */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h.  */
22535 $ac_includes_default
22536 #include <stdint.h>
22537 _ACEOF
22538 rm -f conftest.$ac_objext
22539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22540   (eval $ac_compile) 2>conftest.er1
22541   ac_status=$?
22542   grep -v '^ *+' conftest.er1 >conftest.err
22543   rm -f conftest.er1
22544   cat conftest.err >&5
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); } &&
22547          { ac_try='test -z "$ac_c_werror_flag"
22548                          || test ! -s conftest.err'
22549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22550   (eval $ac_try) 2>&5
22551   ac_status=$?
22552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553   (exit $ac_status); }; } &&
22554          { ac_try='test -s conftest.$ac_objext'
22555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22556   (eval $ac_try) 2>&5
22557   ac_status=$?
22558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); }; }; then
22560   ac_header_compiler=yes
22561 else
22562   echo "$as_me: failed program was:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22564
22565 ac_header_compiler=no
22566 fi
22567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22569 echo "${ECHO_T}$ac_header_compiler" >&6
22570
22571 # Is the header present?
22572 echo "$as_me:$LINENO: checking stdint.h presence" >&5
22573 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
22574 cat >conftest.$ac_ext <<_ACEOF
22575 /* confdefs.h.  */
22576 _ACEOF
22577 cat confdefs.h >>conftest.$ac_ext
22578 cat >>conftest.$ac_ext <<_ACEOF
22579 /* end confdefs.h.  */
22580 #include <stdint.h>
22581 _ACEOF
22582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22583   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22584   ac_status=$?
22585   grep -v '^ *+' conftest.er1 >conftest.err
22586   rm -f conftest.er1
22587   cat conftest.err >&5
22588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589   (exit $ac_status); } >/dev/null; then
22590   if test -s conftest.err; then
22591     ac_cpp_err=$ac_c_preproc_warn_flag
22592     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22593   else
22594     ac_cpp_err=
22595   fi
22596 else
22597   ac_cpp_err=yes
22598 fi
22599 if test -z "$ac_cpp_err"; then
22600   ac_header_preproc=yes
22601 else
22602   echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22604
22605   ac_header_preproc=no
22606 fi
22607 rm -f conftest.err conftest.$ac_ext
22608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22609 echo "${ECHO_T}$ac_header_preproc" >&6
22610
22611 # So?  What about this header?
22612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22613   yes:no: )
22614     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
22615 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22616     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
22617 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
22618     ac_header_preproc=yes
22619     ;;
22620   no:yes:* )
22621     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
22622 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
22623     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
22624 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
22625     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
22626 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
22627     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
22628 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22629     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
22630 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
22631     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
22632 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
22633     (
22634       cat <<\_ASBOX
22635 ## ----------------------------------- ##
22636 ## Report this to llvmbugs@cs.uiuc.edu ##
22637 ## ----------------------------------- ##
22638 _ASBOX
22639     ) |
22640       sed "s/^/$as_me: WARNING:     /" >&2
22641     ;;
22642 esac
22643 echo "$as_me:$LINENO: checking for stdint.h" >&5
22644 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22645 if test "${ac_cv_header_stdint_h+set}" = set; then
22646   echo $ECHO_N "(cached) $ECHO_C" >&6
22647 else
22648   ac_cv_header_stdint_h=$ac_header_preproc
22649 fi
22650 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
22651 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
22652
22653 fi
22654
22655
22656
22657
22658 for ac_header in bzlib.h
22659 do
22660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22662   echo "$as_me:$LINENO: checking for $ac_header" >&5
22663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22665   echo $ECHO_N "(cached) $ECHO_C" >&6
22666 fi
22667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22669 else
22670   # Is the header compilable?
22671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22673 cat >conftest.$ac_ext <<_ACEOF
22674 /* confdefs.h.  */
22675 _ACEOF
22676 cat confdefs.h >>conftest.$ac_ext
22677 cat >>conftest.$ac_ext <<_ACEOF
22678 /* end confdefs.h.  */
22679 $ac_includes_default
22680 #include <$ac_header>
22681 _ACEOF
22682 rm -f conftest.$ac_objext
22683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22684   (eval $ac_compile) 2>conftest.er1
22685   ac_status=$?
22686   grep -v '^ *+' conftest.er1 >conftest.err
22687   rm -f conftest.er1
22688   cat conftest.err >&5
22689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690   (exit $ac_status); } &&
22691          { ac_try='test -z "$ac_c_werror_flag"
22692                          || test ! -s conftest.err'
22693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694   (eval $ac_try) 2>&5
22695   ac_status=$?
22696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697   (exit $ac_status); }; } &&
22698          { ac_try='test -s conftest.$ac_objext'
22699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22700   (eval $ac_try) 2>&5
22701   ac_status=$?
22702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703   (exit $ac_status); }; }; then
22704   ac_header_compiler=yes
22705 else
22706   echo "$as_me: failed program was:" >&5
22707 sed 's/^/| /' conftest.$ac_ext >&5
22708
22709 ac_header_compiler=no
22710 fi
22711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22713 echo "${ECHO_T}$ac_header_compiler" >&6
22714
22715 # Is the header present?
22716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22718 cat >conftest.$ac_ext <<_ACEOF
22719 /* confdefs.h.  */
22720 _ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h.  */
22724 #include <$ac_header>
22725 _ACEOF
22726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22728   ac_status=$?
22729   grep -v '^ *+' conftest.er1 >conftest.err
22730   rm -f conftest.er1
22731   cat conftest.err >&5
22732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733   (exit $ac_status); } >/dev/null; then
22734   if test -s conftest.err; then
22735     ac_cpp_err=$ac_c_preproc_warn_flag
22736     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22737   else
22738     ac_cpp_err=
22739   fi
22740 else
22741   ac_cpp_err=yes
22742 fi
22743 if test -z "$ac_cpp_err"; then
22744   ac_header_preproc=yes
22745 else
22746   echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22748
22749   ac_header_preproc=no
22750 fi
22751 rm -f conftest.err conftest.$ac_ext
22752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22753 echo "${ECHO_T}$ac_header_preproc" >&6
22754
22755 # So?  What about this header?
22756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22757   yes:no: )
22758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22762     ac_header_preproc=yes
22763     ;;
22764   no:yes:* )
22765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22777     (
22778       cat <<\_ASBOX
22779 ## ----------------------------------- ##
22780 ## Report this to llvmbugs@cs.uiuc.edu ##
22781 ## ----------------------------------- ##
22782 _ASBOX
22783     ) |
22784       sed "s/^/$as_me: WARNING:     /" >&2
22785     ;;
22786 esac
22787 echo "$as_me:$LINENO: checking for $ac_header" >&5
22788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22790   echo $ECHO_N "(cached) $ECHO_C" >&6
22791 else
22792   eval "$as_ac_Header=\$ac_header_preproc"
22793 fi
22794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22796
22797 fi
22798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22799   cat >>confdefs.h <<_ACEOF
22800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22801 _ACEOF
22802  bzlib_h_found=1
22803 else
22804   bzlib_h_found=0
22805 fi
22806
22807 done
22808
22809
22810 for ac_header in zlib.h
22811 do
22812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22814   echo "$as_me:$LINENO: checking for $ac_header" >&5
22815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22817   echo $ECHO_N "(cached) $ECHO_C" >&6
22818 fi
22819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22821 else
22822   # Is the header compilable?
22823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22825 cat >conftest.$ac_ext <<_ACEOF
22826 /* confdefs.h.  */
22827 _ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h.  */
22831 $ac_includes_default
22832 #include <$ac_header>
22833 _ACEOF
22834 rm -f conftest.$ac_objext
22835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22836   (eval $ac_compile) 2>conftest.er1
22837   ac_status=$?
22838   grep -v '^ *+' conftest.er1 >conftest.err
22839   rm -f conftest.er1
22840   cat conftest.err >&5
22841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842   (exit $ac_status); } &&
22843          { ac_try='test -z "$ac_c_werror_flag"
22844                          || test ! -s conftest.err'
22845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846   (eval $ac_try) 2>&5
22847   ac_status=$?
22848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849   (exit $ac_status); }; } &&
22850          { ac_try='test -s conftest.$ac_objext'
22851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852   (eval $ac_try) 2>&5
22853   ac_status=$?
22854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855   (exit $ac_status); }; }; then
22856   ac_header_compiler=yes
22857 else
22858   echo "$as_me: failed program was:" >&5
22859 sed 's/^/| /' conftest.$ac_ext >&5
22860
22861 ac_header_compiler=no
22862 fi
22863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22865 echo "${ECHO_T}$ac_header_compiler" >&6
22866
22867 # Is the header present?
22868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22870 cat >conftest.$ac_ext <<_ACEOF
22871 /* confdefs.h.  */
22872 _ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h.  */
22876 #include <$ac_header>
22877 _ACEOF
22878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22879   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22880   ac_status=$?
22881   grep -v '^ *+' conftest.er1 >conftest.err
22882   rm -f conftest.er1
22883   cat conftest.err >&5
22884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885   (exit $ac_status); } >/dev/null; then
22886   if test -s conftest.err; then
22887     ac_cpp_err=$ac_c_preproc_warn_flag
22888     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22889   else
22890     ac_cpp_err=
22891   fi
22892 else
22893   ac_cpp_err=yes
22894 fi
22895 if test -z "$ac_cpp_err"; then
22896   ac_header_preproc=yes
22897 else
22898   echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22900
22901   ac_header_preproc=no
22902 fi
22903 rm -f conftest.err conftest.$ac_ext
22904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22905 echo "${ECHO_T}$ac_header_preproc" >&6
22906
22907 # So?  What about this header?
22908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22909   yes:no: )
22910     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22914     ac_header_preproc=yes
22915     ;;
22916   no:yes:* )
22917     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22919     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22920 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22921     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22923     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22924 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22927     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22929     (
22930       cat <<\_ASBOX
22931 ## ----------------------------------- ##
22932 ## Report this to llvmbugs@cs.uiuc.edu ##
22933 ## ----------------------------------- ##
22934 _ASBOX
22935     ) |
22936       sed "s/^/$as_me: WARNING:     /" >&2
22937     ;;
22938 esac
22939 echo "$as_me:$LINENO: checking for $ac_header" >&5
22940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22942   echo $ECHO_N "(cached) $ECHO_C" >&6
22943 else
22944   eval "$as_ac_Header=\$ac_header_preproc"
22945 fi
22946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22948
22949 fi
22950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22951   cat >>confdefs.h <<_ACEOF
22952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22953 _ACEOF
22954  zlib_h_found=1
22955 else
22956   zlib_h_found=0
22957 fi
22958
22959 done
22960
22961
22962
22963 echo "$as_me:$LINENO: checking for pid_t" >&5
22964 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22965 if test "${ac_cv_type_pid_t+set}" = set; then
22966   echo $ECHO_N "(cached) $ECHO_C" >&6
22967 else
22968   cat >conftest.$ac_ext <<_ACEOF
22969 /* confdefs.h.  */
22970 _ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h.  */
22974 $ac_includes_default
22975 int
22976 main ()
22977 {
22978 if ((pid_t *) 0)
22979   return 0;
22980 if (sizeof (pid_t))
22981   return 0;
22982   ;
22983   return 0;
22984 }
22985 _ACEOF
22986 rm -f conftest.$ac_objext
22987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22988   (eval $ac_compile) 2>conftest.er1
22989   ac_status=$?
22990   grep -v '^ *+' conftest.er1 >conftest.err
22991   rm -f conftest.er1
22992   cat conftest.err >&5
22993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994   (exit $ac_status); } &&
22995          { ac_try='test -z "$ac_c_werror_flag"
22996                          || test ! -s conftest.err'
22997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22998   (eval $ac_try) 2>&5
22999   ac_status=$?
23000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001   (exit $ac_status); }; } &&
23002          { ac_try='test -s conftest.$ac_objext'
23003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004   (eval $ac_try) 2>&5
23005   ac_status=$?
23006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007   (exit $ac_status); }; }; then
23008   ac_cv_type_pid_t=yes
23009 else
23010   echo "$as_me: failed program was:" >&5
23011 sed 's/^/| /' conftest.$ac_ext >&5
23012
23013 ac_cv_type_pid_t=no
23014 fi
23015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23016 fi
23017 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23018 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23019 if test $ac_cv_type_pid_t = yes; then
23020   :
23021 else
23022
23023 cat >>confdefs.h <<_ACEOF
23024 #define pid_t int
23025 _ACEOF
23026
23027 fi
23028
23029 echo "$as_me:$LINENO: checking for size_t" >&5
23030 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23031 if test "${ac_cv_type_size_t+set}" = set; then
23032   echo $ECHO_N "(cached) $ECHO_C" >&6
23033 else
23034   cat >conftest.$ac_ext <<_ACEOF
23035 /* confdefs.h.  */
23036 _ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h.  */
23040 $ac_includes_default
23041 int
23042 main ()
23043 {
23044 if ((size_t *) 0)
23045   return 0;
23046 if (sizeof (size_t))
23047   return 0;
23048   ;
23049   return 0;
23050 }
23051 _ACEOF
23052 rm -f conftest.$ac_objext
23053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23054   (eval $ac_compile) 2>conftest.er1
23055   ac_status=$?
23056   grep -v '^ *+' conftest.er1 >conftest.err
23057   rm -f conftest.er1
23058   cat conftest.err >&5
23059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060   (exit $ac_status); } &&
23061          { ac_try='test -z "$ac_c_werror_flag"
23062                          || test ! -s conftest.err'
23063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23064   (eval $ac_try) 2>&5
23065   ac_status=$?
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); }; } &&
23068          { ac_try='test -s conftest.$ac_objext'
23069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070   (eval $ac_try) 2>&5
23071   ac_status=$?
23072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073   (exit $ac_status); }; }; then
23074   ac_cv_type_size_t=yes
23075 else
23076   echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23078
23079 ac_cv_type_size_t=no
23080 fi
23081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23082 fi
23083 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23084 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23085 if test $ac_cv_type_size_t = yes; then
23086   :
23087 else
23088
23089 cat >>confdefs.h <<_ACEOF
23090 #define size_t unsigned
23091 _ACEOF
23092
23093 fi
23094
23095 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23096 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23097 if test "${ac_cv_type_signal+set}" = set; then
23098   echo $ECHO_N "(cached) $ECHO_C" >&6
23099 else
23100   cat >conftest.$ac_ext <<_ACEOF
23101 /* confdefs.h.  */
23102 _ACEOF
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h.  */
23106 #include <sys/types.h>
23107 #include <signal.h>
23108 #ifdef signal
23109 # undef signal
23110 #endif
23111 #ifdef __cplusplus
23112 extern "C" void (*signal (int, void (*)(int)))(int);
23113 #else
23114 void (*signal ()) ();
23115 #endif
23116
23117 int
23118 main ()
23119 {
23120 int i;
23121   ;
23122   return 0;
23123 }
23124 _ACEOF
23125 rm -f conftest.$ac_objext
23126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23127   (eval $ac_compile) 2>conftest.er1
23128   ac_status=$?
23129   grep -v '^ *+' conftest.er1 >conftest.err
23130   rm -f conftest.er1
23131   cat conftest.err >&5
23132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133   (exit $ac_status); } &&
23134          { ac_try='test -z "$ac_c_werror_flag"
23135                          || test ! -s conftest.err'
23136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137   (eval $ac_try) 2>&5
23138   ac_status=$?
23139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140   (exit $ac_status); }; } &&
23141          { ac_try='test -s conftest.$ac_objext'
23142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23143   (eval $ac_try) 2>&5
23144   ac_status=$?
23145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146   (exit $ac_status); }; }; then
23147   ac_cv_type_signal=void
23148 else
23149   echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23151
23152 ac_cv_type_signal=int
23153 fi
23154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23155 fi
23156 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23157 echo "${ECHO_T}$ac_cv_type_signal" >&6
23158
23159 cat >>confdefs.h <<_ACEOF
23160 #define RETSIGTYPE $ac_cv_type_signal
23161 _ACEOF
23162
23163
23164 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23165 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
23166 if test "${ac_cv_struct_tm+set}" = set; then
23167   echo $ECHO_N "(cached) $ECHO_C" >&6
23168 else
23169   cat >conftest.$ac_ext <<_ACEOF
23170 /* confdefs.h.  */
23171 _ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h.  */
23175 #include <sys/types.h>
23176 #include <time.h>
23177
23178 int
23179 main ()
23180 {
23181 struct tm *tp; tp->tm_sec;
23182   ;
23183   return 0;
23184 }
23185 _ACEOF
23186 rm -f conftest.$ac_objext
23187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23188   (eval $ac_compile) 2>conftest.er1
23189   ac_status=$?
23190   grep -v '^ *+' conftest.er1 >conftest.err
23191   rm -f conftest.er1
23192   cat conftest.err >&5
23193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194   (exit $ac_status); } &&
23195          { ac_try='test -z "$ac_c_werror_flag"
23196                          || test ! -s conftest.err'
23197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198   (eval $ac_try) 2>&5
23199   ac_status=$?
23200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201   (exit $ac_status); }; } &&
23202          { ac_try='test -s conftest.$ac_objext'
23203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23204   (eval $ac_try) 2>&5
23205   ac_status=$?
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); }; }; then
23208   ac_cv_struct_tm=time.h
23209 else
23210   echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23212
23213 ac_cv_struct_tm=sys/time.h
23214 fi
23215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23216 fi
23217 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23218 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23219 if test $ac_cv_struct_tm = sys/time.h; then
23220
23221 cat >>confdefs.h <<\_ACEOF
23222 #define TM_IN_SYS_TIME 1
23223 _ACEOF
23224
23225 fi
23226
23227 echo "$as_me:$LINENO: checking for int64_t" >&5
23228 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
23229 if test "${ac_cv_type_int64_t+set}" = set; then
23230   echo $ECHO_N "(cached) $ECHO_C" >&6
23231 else
23232   cat >conftest.$ac_ext <<_ACEOF
23233 /* confdefs.h.  */
23234 _ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h.  */
23238 $ac_includes_default
23239 int
23240 main ()
23241 {
23242 if ((int64_t *) 0)
23243   return 0;
23244 if (sizeof (int64_t))
23245   return 0;
23246   ;
23247   return 0;
23248 }
23249 _ACEOF
23250 rm -f conftest.$ac_objext
23251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23252   (eval $ac_compile) 2>conftest.er1
23253   ac_status=$?
23254   grep -v '^ *+' conftest.er1 >conftest.err
23255   rm -f conftest.er1
23256   cat conftest.err >&5
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); } &&
23259          { ac_try='test -z "$ac_c_werror_flag"
23260                          || test ! -s conftest.err'
23261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262   (eval $ac_try) 2>&5
23263   ac_status=$?
23264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265   (exit $ac_status); }; } &&
23266          { ac_try='test -s conftest.$ac_objext'
23267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268   (eval $ac_try) 2>&5
23269   ac_status=$?
23270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271   (exit $ac_status); }; }; then
23272   ac_cv_type_int64_t=yes
23273 else
23274   echo "$as_me: failed program was:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23276
23277 ac_cv_type_int64_t=no
23278 fi
23279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23280 fi
23281 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
23282 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
23283 if test $ac_cv_type_int64_t = yes; then
23284
23285 cat >>confdefs.h <<_ACEOF
23286 #define HAVE_INT64_T 1
23287 _ACEOF
23288
23289
23290 else
23291   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
23292 echo "$as_me: error: Type int64_t required but not found" >&2;}
23293    { (exit 1); exit 1; }; }
23294 fi
23295
23296 echo "$as_me:$LINENO: checking for uint64_t" >&5
23297 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
23298 if test "${ac_cv_type_uint64_t+set}" = set; then
23299   echo $ECHO_N "(cached) $ECHO_C" >&6
23300 else
23301   cat >conftest.$ac_ext <<_ACEOF
23302 /* confdefs.h.  */
23303 _ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h.  */
23307 $ac_includes_default
23308 int
23309 main ()
23310 {
23311 if ((uint64_t *) 0)
23312   return 0;
23313 if (sizeof (uint64_t))
23314   return 0;
23315   ;
23316   return 0;
23317 }
23318 _ACEOF
23319 rm -f conftest.$ac_objext
23320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23321   (eval $ac_compile) 2>conftest.er1
23322   ac_status=$?
23323   grep -v '^ *+' conftest.er1 >conftest.err
23324   rm -f conftest.er1
23325   cat conftest.err >&5
23326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327   (exit $ac_status); } &&
23328          { ac_try='test -z "$ac_c_werror_flag"
23329                          || test ! -s conftest.err'
23330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23331   (eval $ac_try) 2>&5
23332   ac_status=$?
23333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334   (exit $ac_status); }; } &&
23335          { ac_try='test -s conftest.$ac_objext'
23336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337   (eval $ac_try) 2>&5
23338   ac_status=$?
23339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340   (exit $ac_status); }; }; then
23341   ac_cv_type_uint64_t=yes
23342 else
23343   echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23345
23346 ac_cv_type_uint64_t=no
23347 fi
23348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23349 fi
23350 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
23351 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
23352 if test $ac_cv_type_uint64_t = yes; then
23353
23354 cat >>confdefs.h <<_ACEOF
23355 #define HAVE_UINT64_T 1
23356 _ACEOF
23357
23358
23359 else
23360   echo "$as_me:$LINENO: checking for u_int64_t" >&5
23361 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
23362 if test "${ac_cv_type_u_int64_t+set}" = set; then
23363   echo $ECHO_N "(cached) $ECHO_C" >&6
23364 else
23365   cat >conftest.$ac_ext <<_ACEOF
23366 /* confdefs.h.  */
23367 _ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h.  */
23371 $ac_includes_default
23372 int
23373 main ()
23374 {
23375 if ((u_int64_t *) 0)
23376   return 0;
23377 if (sizeof (u_int64_t))
23378   return 0;
23379   ;
23380   return 0;
23381 }
23382 _ACEOF
23383 rm -f conftest.$ac_objext
23384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23385   (eval $ac_compile) 2>conftest.er1
23386   ac_status=$?
23387   grep -v '^ *+' conftest.er1 >conftest.err
23388   rm -f conftest.er1
23389   cat conftest.err >&5
23390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391   (exit $ac_status); } &&
23392          { ac_try='test -z "$ac_c_werror_flag"
23393                          || test ! -s conftest.err'
23394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395   (eval $ac_try) 2>&5
23396   ac_status=$?
23397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398   (exit $ac_status); }; } &&
23399          { ac_try='test -s conftest.$ac_objext'
23400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401   (eval $ac_try) 2>&5
23402   ac_status=$?
23403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404   (exit $ac_status); }; }; then
23405   ac_cv_type_u_int64_t=yes
23406 else
23407   echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23409
23410 ac_cv_type_u_int64_t=no
23411 fi
23412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23413 fi
23414 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
23415 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
23416 if test $ac_cv_type_u_int64_t = yes; then
23417
23418 cat >>confdefs.h <<_ACEOF
23419 #define HAVE_U_INT64_T 1
23420 _ACEOF
23421
23422
23423 else
23424   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
23425 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
23426    { (exit 1); exit 1; }; }
23427 fi
23428
23429 fi
23430
23431
23432
23433   echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
23434 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
23435   ac_ext=c
23436 ac_cpp='$CPP $CPPFLAGS'
23437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23440
23441   if test "$cross_compiling" = yes; then
23442   ac_c_printf_a=no
23443 else
23444   cat >conftest.$ac_ext <<_ACEOF
23445
23446     /* confdefs.h.  */
23447 _ACEOF
23448 cat confdefs.h >>conftest.$ac_ext
23449 cat >>conftest.$ac_ext <<_ACEOF
23450 /* end confdefs.h.  */
23451
23452 #include <stdio.h>
23453 #include <stdlib.h>
23454
23455 int
23456 main ()
23457 {
23458
23459 volatile double A, B;
23460 char Buffer[100];
23461 A = 1;
23462 A /= 10.0;
23463 sprintf(Buffer, "%a", A);
23464 B = atof(Buffer);
23465 if (A != B)
23466   return (1);
23467 if (A != 0x1.999999999999ap-4)
23468   return (1);
23469 return (0);
23470   ;
23471   return 0;
23472 }
23473 _ACEOF
23474 rm -f conftest$ac_exeext
23475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23476   (eval $ac_link) 2>&5
23477   ac_status=$?
23478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23481   (eval $ac_try) 2>&5
23482   ac_status=$?
23483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484   (exit $ac_status); }; }; then
23485   ac_c_printf_a=yes
23486 else
23487   echo "$as_me: program exited with status $ac_status" >&5
23488 echo "$as_me: failed program was:" >&5
23489 sed 's/^/| /' conftest.$ac_ext >&5
23490
23491 ( exit $ac_status )
23492 ac_c_printf_a=no
23493 fi
23494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23495 fi
23496  ac_ext=c
23497 ac_cpp='$CPP $CPPFLAGS'
23498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23501
23502  echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
23503 echo "${ECHO_T}$ac_c_printf_a" >&6
23504  if test "$ac_c_printf_a" = "yes"; then
23505
23506 cat >>confdefs.h <<\_ACEOF
23507 #define HAVE_PRINTF_A 1
23508 _ACEOF
23509
23510  fi
23511
23512
23513 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
23514 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
23515 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
23516   echo $ECHO_N "(cached) $ECHO_C" >&6
23517 else
23518   ac_ext=cc
23519 ac_cpp='$CXXCPP $CPPFLAGS'
23520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23523
23524   cat >conftest.$ac_ext <<_ACEOF
23525 /* confdefs.h.  */
23526 _ACEOF
23527 cat confdefs.h >>conftest.$ac_ext
23528 cat >>conftest.$ac_ext <<_ACEOF
23529 /* end confdefs.h.  */
23530 #include <math.h>
23531                      int foo(float f) {return isnan(f);}
23532 _ACEOF
23533 rm -f conftest.$ac_objext
23534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23535   (eval $ac_compile) 2>conftest.er1
23536   ac_status=$?
23537   grep -v '^ *+' conftest.er1 >conftest.err
23538   rm -f conftest.er1
23539   cat conftest.err >&5
23540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541   (exit $ac_status); } &&
23542          { ac_try='test -z "$ac_cxx_werror_flag"
23543                          || test ! -s conftest.err'
23544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23545   (eval $ac_try) 2>&5
23546   ac_status=$?
23547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548   (exit $ac_status); }; } &&
23549          { ac_try='test -s conftest.$ac_objext'
23550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23551   (eval $ac_try) 2>&5
23552   ac_status=$?
23553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554   (exit $ac_status); }; }; then
23555   ac_cv_func_isnan_in_math_h=yes
23556 else
23557   echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23559
23560 ac_cv_func_isnan_in_math_h=no
23561 fi
23562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23563  ac_ext=c
23564 ac_cpp='$CPP $CPPFLAGS'
23565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23568
23569 fi
23570 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
23571 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
23572  if test "$ac_cv_func_isnan_in_math_h" = "yes"
23573  then
23574
23575 cat >>confdefs.h <<\_ACEOF
23576 #define HAVE_ISNAN_IN_MATH_H 1
23577 _ACEOF
23578
23579  fi
23580 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
23581 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
23582 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
23583   echo $ECHO_N "(cached) $ECHO_C" >&6
23584 else
23585   ac_ext=cc
23586 ac_cpp='$CXXCPP $CPPFLAGS'
23587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23590
23591   cat >conftest.$ac_ext <<_ACEOF
23592 /* confdefs.h.  */
23593 _ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h.  */
23597 #include <cmath>
23598                      int foo(float f) {return isnan(f);}
23599 _ACEOF
23600 rm -f conftest.$ac_objext
23601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23602   (eval $ac_compile) 2>conftest.er1
23603   ac_status=$?
23604   grep -v '^ *+' conftest.er1 >conftest.err
23605   rm -f conftest.er1
23606   cat conftest.err >&5
23607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608   (exit $ac_status); } &&
23609          { ac_try='test -z "$ac_cxx_werror_flag"
23610                          || test ! -s conftest.err'
23611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612   (eval $ac_try) 2>&5
23613   ac_status=$?
23614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615   (exit $ac_status); }; } &&
23616          { ac_try='test -s conftest.$ac_objext'
23617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618   (eval $ac_try) 2>&5
23619   ac_status=$?
23620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621   (exit $ac_status); }; }; then
23622   ac_cv_func_isnan_in_cmath=yes
23623 else
23624   echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23626
23627 ac_cv_func_isnan_in_cmath=no
23628 fi
23629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23630  ac_ext=c
23631 ac_cpp='$CPP $CPPFLAGS'
23632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23635
23636 fi
23637 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
23638 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
23639  if test "$ac_cv_func_isnan_in_cmath" = "yes"
23640  then
23641
23642 cat >>confdefs.h <<\_ACEOF
23643 #define HAVE_ISNAN_IN_CMATH 1
23644 _ACEOF
23645
23646  fi
23647 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
23648 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
23649 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
23650   echo $ECHO_N "(cached) $ECHO_C" >&6
23651 else
23652   ac_ext=cc
23653 ac_cpp='$CXXCPP $CPPFLAGS'
23654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23657
23658   cat >conftest.$ac_ext <<_ACEOF
23659 /* confdefs.h.  */
23660 _ACEOF
23661 cat confdefs.h >>conftest.$ac_ext
23662 cat >>conftest.$ac_ext <<_ACEOF
23663 /* end confdefs.h.  */
23664 #include <cmath>
23665                      using std::isnan; int foo(float f) {return isnan(f);}
23666 _ACEOF
23667 rm -f conftest.$ac_objext
23668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23669   (eval $ac_compile) 2>conftest.er1
23670   ac_status=$?
23671   grep -v '^ *+' conftest.er1 >conftest.err
23672   rm -f conftest.er1
23673   cat conftest.err >&5
23674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675   (exit $ac_status); } &&
23676          { ac_try='test -z "$ac_cxx_werror_flag"
23677                          || test ! -s conftest.err'
23678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679   (eval $ac_try) 2>&5
23680   ac_status=$?
23681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682   (exit $ac_status); }; } &&
23683          { ac_try='test -s conftest.$ac_objext'
23684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685   (eval $ac_try) 2>&5
23686   ac_status=$?
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); }; }; then
23689   ac_cv_func_std_isnan_in_cmath=yes
23690 else
23691   echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23693
23694 ac_cv_func_std_isnan_in_cmath=no
23695 fi
23696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23697  ac_ext=c
23698 ac_cpp='$CPP $CPPFLAGS'
23699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23702
23703 fi
23704 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
23705 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
23706  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
23707  then
23708
23709 cat >>confdefs.h <<\_ACEOF
23710 #define HAVE_STD_ISNAN_IN_CMATH 1
23711 _ACEOF
23712
23713  fi
23714
23715
23716 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
23717 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
23718 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
23719   echo $ECHO_N "(cached) $ECHO_C" >&6
23720 else
23721   ac_ext=cc
23722 ac_cpp='$CXXCPP $CPPFLAGS'
23723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23726
23727   cat >conftest.$ac_ext <<_ACEOF
23728 /* confdefs.h.  */
23729 _ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h.  */
23733 #include <math.h>
23734                      int foo(float f) {return isinf(f);}
23735 _ACEOF
23736 rm -f conftest.$ac_objext
23737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23738   (eval $ac_compile) 2>conftest.er1
23739   ac_status=$?
23740   grep -v '^ *+' conftest.er1 >conftest.err
23741   rm -f conftest.er1
23742   cat conftest.err >&5
23743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744   (exit $ac_status); } &&
23745          { ac_try='test -z "$ac_cxx_werror_flag"
23746                          || test ! -s conftest.err'
23747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748   (eval $ac_try) 2>&5
23749   ac_status=$?
23750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751   (exit $ac_status); }; } &&
23752          { ac_try='test -s conftest.$ac_objext'
23753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754   (eval $ac_try) 2>&5
23755   ac_status=$?
23756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757   (exit $ac_status); }; }; then
23758   ac_cv_func_isinf_in_math_h=yes
23759 else
23760   echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23762
23763 ac_cv_func_isinf_in_math_h=no
23764 fi
23765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23766  ac_ext=c
23767 ac_cpp='$CPP $CPPFLAGS'
23768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23771
23772 fi
23773 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
23774 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
23775  if test "$ac_cv_func_isinf_in_math_h" = "yes"
23776  then
23777
23778 cat >>confdefs.h <<\_ACEOF
23779 #define HAVE_ISINF_IN_MATH_H 1
23780 _ACEOF
23781
23782  fi
23783 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
23784 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
23785 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
23786   echo $ECHO_N "(cached) $ECHO_C" >&6
23787 else
23788   ac_ext=cc
23789 ac_cpp='$CXXCPP $CPPFLAGS'
23790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23793
23794   cat >conftest.$ac_ext <<_ACEOF
23795 /* confdefs.h.  */
23796 _ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h.  */
23800 #include <cmath>
23801                      int foo(float f) {return isinf(f);}
23802 _ACEOF
23803 rm -f conftest.$ac_objext
23804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23805   (eval $ac_compile) 2>conftest.er1
23806   ac_status=$?
23807   grep -v '^ *+' conftest.er1 >conftest.err
23808   rm -f conftest.er1
23809   cat conftest.err >&5
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); } &&
23812          { ac_try='test -z "$ac_cxx_werror_flag"
23813                          || test ! -s conftest.err'
23814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23815   (eval $ac_try) 2>&5
23816   ac_status=$?
23817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818   (exit $ac_status); }; } &&
23819          { ac_try='test -s conftest.$ac_objext'
23820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23821   (eval $ac_try) 2>&5
23822   ac_status=$?
23823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824   (exit $ac_status); }; }; then
23825   ac_cv_func_isinf_in_cmath=yes
23826 else
23827   echo "$as_me: failed program was:" >&5
23828 sed 's/^/| /' conftest.$ac_ext >&5
23829
23830 ac_cv_func_isinf_in_cmath=no
23831 fi
23832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23833  ac_ext=c
23834 ac_cpp='$CPP $CPPFLAGS'
23835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23838
23839 fi
23840 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
23841 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
23842  if test "$ac_cv_func_isinf_in_cmath" = "yes"
23843  then
23844
23845 cat >>confdefs.h <<\_ACEOF
23846 #define HAVE_ISINF_IN_CMATH 1
23847 _ACEOF
23848
23849  fi
23850 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
23851 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
23852 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
23853   echo $ECHO_N "(cached) $ECHO_C" >&6
23854 else
23855   ac_ext=cc
23856 ac_cpp='$CXXCPP $CPPFLAGS'
23857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23860
23861   cat >conftest.$ac_ext <<_ACEOF
23862 /* confdefs.h.  */
23863 _ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h.  */
23867 #include <cmath>
23868                      using std::isinf; int foo(float f) {return isinf(f);}
23869 _ACEOF
23870 rm -f conftest.$ac_objext
23871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23872   (eval $ac_compile) 2>conftest.er1
23873   ac_status=$?
23874   grep -v '^ *+' conftest.er1 >conftest.err
23875   rm -f conftest.er1
23876   cat conftest.err >&5
23877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878   (exit $ac_status); } &&
23879          { ac_try='test -z "$ac_cxx_werror_flag"
23880                          || test ! -s conftest.err'
23881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882   (eval $ac_try) 2>&5
23883   ac_status=$?
23884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885   (exit $ac_status); }; } &&
23886          { ac_try='test -s conftest.$ac_objext'
23887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888   (eval $ac_try) 2>&5
23889   ac_status=$?
23890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891   (exit $ac_status); }; }; then
23892   ac_cv_func_std_isinf_in_cmath=yes
23893 else
23894   echo "$as_me: failed program was:" >&5
23895 sed 's/^/| /' conftest.$ac_ext >&5
23896
23897 ac_cv_func_std_isinf_in_cmath=no
23898 fi
23899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23900  ac_ext=c
23901 ac_cpp='$CPP $CPPFLAGS'
23902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23905
23906 fi
23907 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
23908 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
23909  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
23910  then
23911
23912 cat >>confdefs.h <<\_ACEOF
23913 #define HAVE_STD_ISINF_IN_CMATH 1
23914 _ACEOF
23915
23916  fi
23917 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
23918 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
23919 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
23920   echo $ECHO_N "(cached) $ECHO_C" >&6
23921 else
23922   ac_ext=cc
23923 ac_cpp='$CXXCPP $CPPFLAGS'
23924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23927
23928   cat >conftest.$ac_ext <<_ACEOF
23929 /* confdefs.h.  */
23930 _ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h.  */
23934 #include <ieeefp.h>
23935                      int foo(float f) {return finite(f);}
23936 _ACEOF
23937 rm -f conftest.$ac_objext
23938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23939   (eval $ac_compile) 2>conftest.er1
23940   ac_status=$?
23941   grep -v '^ *+' conftest.er1 >conftest.err
23942   rm -f conftest.er1
23943   cat conftest.err >&5
23944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945   (exit $ac_status); } &&
23946          { ac_try='test -z "$ac_cxx_werror_flag"
23947                          || test ! -s conftest.err'
23948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23949   (eval $ac_try) 2>&5
23950   ac_status=$?
23951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952   (exit $ac_status); }; } &&
23953          { ac_try='test -s conftest.$ac_objext'
23954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955   (eval $ac_try) 2>&5
23956   ac_status=$?
23957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958   (exit $ac_status); }; }; then
23959   ac_cv_func_finite_in_ieeefp_h=yes
23960 else
23961   echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23963
23964 ac_cv_func_finite_in_ieeefp_h=no
23965 fi
23966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23967  ac_ext=c
23968 ac_cpp='$CPP $CPPFLAGS'
23969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23972
23973 fi
23974 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
23975 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
23976  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
23977  then
23978
23979 cat >>confdefs.h <<\_ACEOF
23980 #define HAVE_FINITE_IN_IEEEFP_H 1
23981 _ACEOF
23982
23983  fi
23984
23985 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23986 # for constant arguments.  Useless!
23987 echo "$as_me:$LINENO: checking for working alloca.h" >&5
23988 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23989 if test "${ac_cv_working_alloca_h+set}" = set; then
23990   echo $ECHO_N "(cached) $ECHO_C" >&6
23991 else
23992   cat >conftest.$ac_ext <<_ACEOF
23993 /* confdefs.h.  */
23994 _ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h.  */
23998 #include <alloca.h>
23999 int
24000 main ()
24001 {
24002 char *p = (char *) alloca (2 * sizeof (int));
24003   ;
24004   return 0;
24005 }
24006 _ACEOF
24007 rm -f conftest.$ac_objext conftest$ac_exeext
24008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24009   (eval $ac_link) 2>conftest.er1
24010   ac_status=$?
24011   grep -v '^ *+' conftest.er1 >conftest.err
24012   rm -f conftest.er1
24013   cat conftest.err >&5
24014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015   (exit $ac_status); } &&
24016          { ac_try='test -z "$ac_c_werror_flag"
24017                          || test ! -s conftest.err'
24018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019   (eval $ac_try) 2>&5
24020   ac_status=$?
24021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022   (exit $ac_status); }; } &&
24023          { ac_try='test -s conftest$ac_exeext'
24024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24025   (eval $ac_try) 2>&5
24026   ac_status=$?
24027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028   (exit $ac_status); }; }; then
24029   ac_cv_working_alloca_h=yes
24030 else
24031   echo "$as_me: failed program was:" >&5
24032 sed 's/^/| /' conftest.$ac_ext >&5
24033
24034 ac_cv_working_alloca_h=no
24035 fi
24036 rm -f conftest.err conftest.$ac_objext \
24037       conftest$ac_exeext conftest.$ac_ext
24038 fi
24039 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24040 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
24041 if test $ac_cv_working_alloca_h = yes; then
24042
24043 cat >>confdefs.h <<\_ACEOF
24044 #define HAVE_ALLOCA_H 1
24045 _ACEOF
24046
24047 fi
24048
24049 echo "$as_me:$LINENO: checking for alloca" >&5
24050 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
24051 if test "${ac_cv_func_alloca_works+set}" = set; then
24052   echo $ECHO_N "(cached) $ECHO_C" >&6
24053 else
24054   cat >conftest.$ac_ext <<_ACEOF
24055 /* confdefs.h.  */
24056 _ACEOF
24057 cat confdefs.h >>conftest.$ac_ext
24058 cat >>conftest.$ac_ext <<_ACEOF
24059 /* end confdefs.h.  */
24060 #ifdef __GNUC__
24061 # define alloca __builtin_alloca
24062 #else
24063 # ifdef _MSC_VER
24064 #  include <malloc.h>
24065 #  define alloca _alloca
24066 # else
24067 #  if HAVE_ALLOCA_H
24068 #   include <alloca.h>
24069 #  else
24070 #   ifdef _AIX
24071  #pragma alloca
24072 #   else
24073 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24074 char *alloca ();
24075 #    endif
24076 #   endif
24077 #  endif
24078 # endif
24079 #endif
24080
24081 int
24082 main ()
24083 {
24084 char *p = (char *) alloca (1);
24085   ;
24086   return 0;
24087 }
24088 _ACEOF
24089 rm -f conftest.$ac_objext conftest$ac_exeext
24090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24091   (eval $ac_link) 2>conftest.er1
24092   ac_status=$?
24093   grep -v '^ *+' conftest.er1 >conftest.err
24094   rm -f conftest.er1
24095   cat conftest.err >&5
24096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097   (exit $ac_status); } &&
24098          { ac_try='test -z "$ac_c_werror_flag"
24099                          || test ! -s conftest.err'
24100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24101   (eval $ac_try) 2>&5
24102   ac_status=$?
24103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104   (exit $ac_status); }; } &&
24105          { ac_try='test -s conftest$ac_exeext'
24106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24107   (eval $ac_try) 2>&5
24108   ac_status=$?
24109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110   (exit $ac_status); }; }; then
24111   ac_cv_func_alloca_works=yes
24112 else
24113   echo "$as_me: failed program was:" >&5
24114 sed 's/^/| /' conftest.$ac_ext >&5
24115
24116 ac_cv_func_alloca_works=no
24117 fi
24118 rm -f conftest.err conftest.$ac_objext \
24119       conftest$ac_exeext conftest.$ac_ext
24120 fi
24121 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24122 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
24123
24124 if test $ac_cv_func_alloca_works = yes; then
24125
24126 cat >>confdefs.h <<\_ACEOF
24127 #define HAVE_ALLOCA 1
24128 _ACEOF
24129
24130 else
24131   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24132 # that cause trouble.  Some versions do not even contain alloca or
24133 # contain a buggy version.  If you still want to use their alloca,
24134 # use ar to extract alloca.o from them instead of compiling alloca.c.
24135
24136 ALLOCA=alloca.$ac_objext
24137
24138 cat >>confdefs.h <<\_ACEOF
24139 #define C_ALLOCA 1
24140 _ACEOF
24141
24142
24143 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24144 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
24145 if test "${ac_cv_os_cray+set}" = set; then
24146   echo $ECHO_N "(cached) $ECHO_C" >&6
24147 else
24148   cat >conftest.$ac_ext <<_ACEOF
24149 /* confdefs.h.  */
24150 _ACEOF
24151 cat confdefs.h >>conftest.$ac_ext
24152 cat >>conftest.$ac_ext <<_ACEOF
24153 /* end confdefs.h.  */
24154 #if defined(CRAY) && ! defined(CRAY2)
24155 webecray
24156 #else
24157 wenotbecray
24158 #endif
24159
24160 _ACEOF
24161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24162   $EGREP "webecray" >/dev/null 2>&1; then
24163   ac_cv_os_cray=yes
24164 else
24165   ac_cv_os_cray=no
24166 fi
24167 rm -f conftest*
24168
24169 fi
24170 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24171 echo "${ECHO_T}$ac_cv_os_cray" >&6
24172 if test $ac_cv_os_cray = yes; then
24173   for ac_func in _getb67 GETB67 getb67; do
24174     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24175 echo "$as_me:$LINENO: checking for $ac_func" >&5
24176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24177 if eval "test \"\${$as_ac_var+set}\" = set"; then
24178   echo $ECHO_N "(cached) $ECHO_C" >&6
24179 else
24180   cat >conftest.$ac_ext <<_ACEOF
24181 /* confdefs.h.  */
24182 _ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h.  */
24186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24188 #define $ac_func innocuous_$ac_func
24189
24190 /* System header to define __stub macros and hopefully few prototypes,
24191     which can conflict with char $ac_func (); below.
24192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24193     <limits.h> exists even on freestanding compilers.  */
24194
24195 #ifdef __STDC__
24196 # include <limits.h>
24197 #else
24198 # include <assert.h>
24199 #endif
24200
24201 #undef $ac_func
24202
24203 /* Override any gcc2 internal prototype to avoid an error.  */
24204 #ifdef __cplusplus
24205 extern "C"
24206 {
24207 #endif
24208 /* We use char because int might match the return type of a gcc2
24209    builtin and then its argument prototype would still apply.  */
24210 char $ac_func ();
24211 /* The GNU C library defines this for functions which it implements
24212     to always fail with ENOSYS.  Some functions are actually named
24213     something starting with __ and the normal name is an alias.  */
24214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24215 choke me
24216 #else
24217 char (*f) () = $ac_func;
24218 #endif
24219 #ifdef __cplusplus
24220 }
24221 #endif
24222
24223 int
24224 main ()
24225 {
24226 return f != $ac_func;
24227   ;
24228   return 0;
24229 }
24230 _ACEOF
24231 rm -f conftest.$ac_objext conftest$ac_exeext
24232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24233   (eval $ac_link) 2>conftest.er1
24234   ac_status=$?
24235   grep -v '^ *+' conftest.er1 >conftest.err
24236   rm -f conftest.er1
24237   cat conftest.err >&5
24238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239   (exit $ac_status); } &&
24240          { ac_try='test -z "$ac_c_werror_flag"
24241                          || test ! -s conftest.err'
24242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243   (eval $ac_try) 2>&5
24244   ac_status=$?
24245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246   (exit $ac_status); }; } &&
24247          { ac_try='test -s conftest$ac_exeext'
24248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249   (eval $ac_try) 2>&5
24250   ac_status=$?
24251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252   (exit $ac_status); }; }; then
24253   eval "$as_ac_var=yes"
24254 else
24255   echo "$as_me: failed program was:" >&5
24256 sed 's/^/| /' conftest.$ac_ext >&5
24257
24258 eval "$as_ac_var=no"
24259 fi
24260 rm -f conftest.err conftest.$ac_objext \
24261       conftest$ac_exeext conftest.$ac_ext
24262 fi
24263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24265 if test `eval echo '${'$as_ac_var'}'` = yes; then
24266
24267 cat >>confdefs.h <<_ACEOF
24268 #define CRAY_STACKSEG_END $ac_func
24269 _ACEOF
24270
24271     break
24272 fi
24273
24274   done
24275 fi
24276
24277 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24278 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
24279 if test "${ac_cv_c_stack_direction+set}" = set; then
24280   echo $ECHO_N "(cached) $ECHO_C" >&6
24281 else
24282   if test "$cross_compiling" = yes; then
24283   ac_cv_c_stack_direction=0
24284 else
24285   cat >conftest.$ac_ext <<_ACEOF
24286 /* confdefs.h.  */
24287 _ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h.  */
24291 int
24292 find_stack_direction ()
24293 {
24294   static char *addr = 0;
24295   auto char dummy;
24296   if (addr == 0)
24297     {
24298       addr = &dummy;
24299       return find_stack_direction ();
24300     }
24301   else
24302     return (&dummy > addr) ? 1 : -1;
24303 }
24304
24305 int
24306 main ()
24307 {
24308   exit (find_stack_direction () < 0);
24309 }
24310 _ACEOF
24311 rm -f conftest$ac_exeext
24312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24313   (eval $ac_link) 2>&5
24314   ac_status=$?
24315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318   (eval $ac_try) 2>&5
24319   ac_status=$?
24320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321   (exit $ac_status); }; }; then
24322   ac_cv_c_stack_direction=1
24323 else
24324   echo "$as_me: program exited with status $ac_status" >&5
24325 echo "$as_me: failed program was:" >&5
24326 sed 's/^/| /' conftest.$ac_ext >&5
24327
24328 ( exit $ac_status )
24329 ac_cv_c_stack_direction=-1
24330 fi
24331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24332 fi
24333 fi
24334 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24335 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
24336
24337 cat >>confdefs.h <<_ACEOF
24338 #define STACK_DIRECTION $ac_cv_c_stack_direction
24339 _ACEOF
24340
24341
24342 fi
24343
24344
24345
24346 for ac_header in stdlib.h unistd.h
24347 do
24348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24350   echo "$as_me:$LINENO: checking for $ac_header" >&5
24351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24353   echo $ECHO_N "(cached) $ECHO_C" >&6
24354 fi
24355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24357 else
24358   # Is the header compilable?
24359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24361 cat >conftest.$ac_ext <<_ACEOF
24362 /* confdefs.h.  */
24363 _ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h.  */
24367 $ac_includes_default
24368 #include <$ac_header>
24369 _ACEOF
24370 rm -f conftest.$ac_objext
24371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24372   (eval $ac_compile) 2>conftest.er1
24373   ac_status=$?
24374   grep -v '^ *+' conftest.er1 >conftest.err
24375   rm -f conftest.er1
24376   cat conftest.err >&5
24377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378   (exit $ac_status); } &&
24379          { ac_try='test -z "$ac_c_werror_flag"
24380                          || test ! -s conftest.err'
24381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24382   (eval $ac_try) 2>&5
24383   ac_status=$?
24384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385   (exit $ac_status); }; } &&
24386          { ac_try='test -s conftest.$ac_objext'
24387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24388   (eval $ac_try) 2>&5
24389   ac_status=$?
24390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391   (exit $ac_status); }; }; then
24392   ac_header_compiler=yes
24393 else
24394   echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24396
24397 ac_header_compiler=no
24398 fi
24399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24401 echo "${ECHO_T}$ac_header_compiler" >&6
24402
24403 # Is the header present?
24404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24406 cat >conftest.$ac_ext <<_ACEOF
24407 /* confdefs.h.  */
24408 _ACEOF
24409 cat confdefs.h >>conftest.$ac_ext
24410 cat >>conftest.$ac_ext <<_ACEOF
24411 /* end confdefs.h.  */
24412 #include <$ac_header>
24413 _ACEOF
24414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24416   ac_status=$?
24417   grep -v '^ *+' conftest.er1 >conftest.err
24418   rm -f conftest.er1
24419   cat conftest.err >&5
24420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421   (exit $ac_status); } >/dev/null; then
24422   if test -s conftest.err; then
24423     ac_cpp_err=$ac_c_preproc_warn_flag
24424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24425   else
24426     ac_cpp_err=
24427   fi
24428 else
24429   ac_cpp_err=yes
24430 fi
24431 if test -z "$ac_cpp_err"; then
24432   ac_header_preproc=yes
24433 else
24434   echo "$as_me: failed program was:" >&5
24435 sed 's/^/| /' conftest.$ac_ext >&5
24436
24437   ac_header_preproc=no
24438 fi
24439 rm -f conftest.err conftest.$ac_ext
24440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24441 echo "${ECHO_T}$ac_header_preproc" >&6
24442
24443 # So?  What about this header?
24444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24445   yes:no: )
24446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24450     ac_header_preproc=yes
24451     ;;
24452   no:yes:* )
24453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24465     (
24466       cat <<\_ASBOX
24467 ## ----------------------------------- ##
24468 ## Report this to llvmbugs@cs.uiuc.edu ##
24469 ## ----------------------------------- ##
24470 _ASBOX
24471     ) |
24472       sed "s/^/$as_me: WARNING:     /" >&2
24473     ;;
24474 esac
24475 echo "$as_me:$LINENO: checking for $ac_header" >&5
24476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24478   echo $ECHO_N "(cached) $ECHO_C" >&6
24479 else
24480   eval "$as_ac_Header=\$ac_header_preproc"
24481 fi
24482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24484
24485 fi
24486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24487   cat >>confdefs.h <<_ACEOF
24488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24489 _ACEOF
24490
24491 fi
24492
24493 done
24494
24495
24496 for ac_func in getpagesize
24497 do
24498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24499 echo "$as_me:$LINENO: checking for $ac_func" >&5
24500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24501 if eval "test \"\${$as_ac_var+set}\" = set"; then
24502   echo $ECHO_N "(cached) $ECHO_C" >&6
24503 else
24504   cat >conftest.$ac_ext <<_ACEOF
24505 /* confdefs.h.  */
24506 _ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h.  */
24510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24512 #define $ac_func innocuous_$ac_func
24513
24514 /* System header to define __stub macros and hopefully few prototypes,
24515     which can conflict with char $ac_func (); below.
24516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24517     <limits.h> exists even on freestanding compilers.  */
24518
24519 #ifdef __STDC__
24520 # include <limits.h>
24521 #else
24522 # include <assert.h>
24523 #endif
24524
24525 #undef $ac_func
24526
24527 /* Override any gcc2 internal prototype to avoid an error.  */
24528 #ifdef __cplusplus
24529 extern "C"
24530 {
24531 #endif
24532 /* We use char because int might match the return type of a gcc2
24533    builtin and then its argument prototype would still apply.  */
24534 char $ac_func ();
24535 /* The GNU C library defines this for functions which it implements
24536     to always fail with ENOSYS.  Some functions are actually named
24537     something starting with __ and the normal name is an alias.  */
24538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24539 choke me
24540 #else
24541 char (*f) () = $ac_func;
24542 #endif
24543 #ifdef __cplusplus
24544 }
24545 #endif
24546
24547 int
24548 main ()
24549 {
24550 return f != $ac_func;
24551   ;
24552   return 0;
24553 }
24554 _ACEOF
24555 rm -f conftest.$ac_objext conftest$ac_exeext
24556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24557   (eval $ac_link) 2>conftest.er1
24558   ac_status=$?
24559   grep -v '^ *+' conftest.er1 >conftest.err
24560   rm -f conftest.er1
24561   cat conftest.err >&5
24562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563   (exit $ac_status); } &&
24564          { ac_try='test -z "$ac_c_werror_flag"
24565                          || test ! -s conftest.err'
24566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567   (eval $ac_try) 2>&5
24568   ac_status=$?
24569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570   (exit $ac_status); }; } &&
24571          { ac_try='test -s conftest$ac_exeext'
24572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24573   (eval $ac_try) 2>&5
24574   ac_status=$?
24575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576   (exit $ac_status); }; }; then
24577   eval "$as_ac_var=yes"
24578 else
24579   echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24581
24582 eval "$as_ac_var=no"
24583 fi
24584 rm -f conftest.err conftest.$ac_objext \
24585       conftest$ac_exeext conftest.$ac_ext
24586 fi
24587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24589 if test `eval echo '${'$as_ac_var'}'` = yes; then
24590   cat >>confdefs.h <<_ACEOF
24591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24592 _ACEOF
24593
24594 fi
24595 done
24596
24597 echo "$as_me:$LINENO: checking for working mmap" >&5
24598 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
24599 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24600   echo $ECHO_N "(cached) $ECHO_C" >&6
24601 else
24602   if test "$cross_compiling" = yes; then
24603   ac_cv_func_mmap_fixed_mapped=no
24604 else
24605   cat >conftest.$ac_ext <<_ACEOF
24606 /* confdefs.h.  */
24607 _ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h.  */
24611 $ac_includes_default
24612 /* malloc might have been renamed as rpl_malloc. */
24613 #undef malloc
24614
24615 /* Thanks to Mike Haertel and Jim Avera for this test.
24616    Here is a matrix of mmap possibilities:
24617         mmap private not fixed
24618         mmap private fixed at somewhere currently unmapped
24619         mmap private fixed at somewhere already mapped
24620         mmap shared not fixed
24621         mmap shared fixed at somewhere currently unmapped
24622         mmap shared fixed at somewhere already mapped
24623    For private mappings, we should verify that changes cannot be read()
24624    back from the file, nor mmap's back from the file at a different
24625    address.  (There have been systems where private was not correctly
24626    implemented like the infamous i386 svr4.0, and systems where the
24627    VM page cache was not coherent with the file system buffer cache
24628    like early versions of FreeBSD and possibly contemporary NetBSD.)
24629    For shared mappings, we should conversely verify that changes get
24630    propagated back to all the places they're supposed to be.
24631
24632    Grep wants private fixed already mapped.
24633    The main things grep needs to know about mmap are:
24634    * does it exist and is it safe to write into the mmap'd area
24635    * how to use it (BSD variants)  */
24636
24637 #include <fcntl.h>
24638 #include <sys/mman.h>
24639
24640 #if !STDC_HEADERS && !HAVE_STDLIB_H
24641 char *malloc ();
24642 #endif
24643
24644 /* This mess was copied from the GNU getpagesize.h.  */
24645 #if !HAVE_GETPAGESIZE
24646 /* Assume that all systems that can run configure have sys/param.h.  */
24647 # if !HAVE_SYS_PARAM_H
24648 #  define HAVE_SYS_PARAM_H 1
24649 # endif
24650
24651 # ifdef _SC_PAGESIZE
24652 #  define getpagesize() sysconf(_SC_PAGESIZE)
24653 # else /* no _SC_PAGESIZE */
24654 #  if HAVE_SYS_PARAM_H
24655 #   include <sys/param.h>
24656 #   ifdef EXEC_PAGESIZE
24657 #    define getpagesize() EXEC_PAGESIZE
24658 #   else /* no EXEC_PAGESIZE */
24659 #    ifdef NBPG
24660 #     define getpagesize() NBPG * CLSIZE
24661 #     ifndef CLSIZE
24662 #      define CLSIZE 1
24663 #     endif /* no CLSIZE */
24664 #    else /* no NBPG */
24665 #     ifdef NBPC
24666 #      define getpagesize() NBPC
24667 #     else /* no NBPC */
24668 #      ifdef PAGESIZE
24669 #       define getpagesize() PAGESIZE
24670 #      endif /* PAGESIZE */
24671 #     endif /* no NBPC */
24672 #    endif /* no NBPG */
24673 #   endif /* no EXEC_PAGESIZE */
24674 #  else /* no HAVE_SYS_PARAM_H */
24675 #   define getpagesize() 8192   /* punt totally */
24676 #  endif /* no HAVE_SYS_PARAM_H */
24677 # endif /* no _SC_PAGESIZE */
24678
24679 #endif /* no HAVE_GETPAGESIZE */
24680
24681 int
24682 main ()
24683 {
24684   char *data, *data2, *data3;
24685   int i, pagesize;
24686   int fd;
24687
24688   pagesize = getpagesize ();
24689
24690   /* First, make a file with some known garbage in it. */
24691   data = (char *) malloc (pagesize);
24692   if (!data)
24693     exit (1);
24694   for (i = 0; i < pagesize; ++i)
24695     *(data + i) = rand ();
24696   umask (0);
24697   fd = creat ("conftest.mmap", 0600);
24698   if (fd < 0)
24699     exit (1);
24700   if (write (fd, data, pagesize) != pagesize)
24701     exit (1);
24702   close (fd);
24703
24704   /* Next, try to mmap the file at a fixed address which already has
24705      something else allocated at it.  If we can, also make sure that
24706      we see the same garbage.  */
24707   fd = open ("conftest.mmap", O_RDWR);
24708   if (fd < 0)
24709     exit (1);
24710   data2 = (char *) malloc (2 * pagesize);
24711   if (!data2)
24712     exit (1);
24713   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
24714   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24715                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
24716     exit (1);
24717   for (i = 0; i < pagesize; ++i)
24718     if (*(data + i) != *(data2 + i))
24719       exit (1);
24720
24721   /* Finally, make sure that changes to the mapped area do not
24722      percolate back to the file as seen by read().  (This is a bug on
24723      some variants of i386 svr4.0.)  */
24724   for (i = 0; i < pagesize; ++i)
24725     *(data2 + i) = *(data2 + i) + 1;
24726   data3 = (char *) malloc (pagesize);
24727   if (!data3)
24728     exit (1);
24729   if (read (fd, data3, pagesize) != pagesize)
24730     exit (1);
24731   for (i = 0; i < pagesize; ++i)
24732     if (*(data + i) != *(data3 + i))
24733       exit (1);
24734   close (fd);
24735   exit (0);
24736 }
24737 _ACEOF
24738 rm -f conftest$ac_exeext
24739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24740   (eval $ac_link) 2>&5
24741   ac_status=$?
24742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24745   (eval $ac_try) 2>&5
24746   ac_status=$?
24747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748   (exit $ac_status); }; }; then
24749   ac_cv_func_mmap_fixed_mapped=yes
24750 else
24751   echo "$as_me: program exited with status $ac_status" >&5
24752 echo "$as_me: failed program was:" >&5
24753 sed 's/^/| /' conftest.$ac_ext >&5
24754
24755 ( exit $ac_status )
24756 ac_cv_func_mmap_fixed_mapped=no
24757 fi
24758 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24759 fi
24760 fi
24761 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24762 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
24763 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24764
24765 cat >>confdefs.h <<\_ACEOF
24766 #define HAVE_MMAP 1
24767 _ACEOF
24768
24769 fi
24770 rm -f conftest.mmap
24771
24772 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
24773 then
24774   { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
24775 echo "$as_me: WARNING: mmap() required but not found" >&2;}
24776 fi
24777 echo "$as_me:$LINENO: checking for mmap of files" >&5
24778 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
24779 if test "${ac_cv_func_mmap_file+set}" = set; then
24780   echo $ECHO_N "(cached) $ECHO_C" >&6
24781 else
24782    ac_ext=c
24783 ac_cpp='$CPP $CPPFLAGS'
24784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24787
24788   if test "$cross_compiling" = yes; then
24789   ac_cv_func_mmap_file=no
24790 else
24791   cat >conftest.$ac_ext <<_ACEOF
24792
24793     /* confdefs.h.  */
24794 _ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h.  */
24798
24799 #include <sys/types.h>
24800 #include <sys/mman.h>
24801 #include <fcntl.h>
24802
24803 int
24804 main ()
24805 {
24806
24807   int fd;
24808   fd = creat ("foo",0777);
24809   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
24810   unlink ("foo");
24811   return (fd != (int) MAP_FAILED);
24812   ;
24813   return 0;
24814 }
24815 _ACEOF
24816 rm -f conftest$ac_exeext
24817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24818   (eval $ac_link) 2>&5
24819   ac_status=$?
24820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24823   (eval $ac_try) 2>&5
24824   ac_status=$?
24825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826   (exit $ac_status); }; }; then
24827   ac_cv_func_mmap_file=yes
24828 else
24829   echo "$as_me: program exited with status $ac_status" >&5
24830 echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24832
24833 ( exit $ac_status )
24834 ac_cv_func_mmap_file=no
24835 fi
24836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24837 fi
24838   ac_ext=c
24839 ac_cpp='$CPP $CPPFLAGS'
24840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24843
24844
24845 fi
24846 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
24847 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
24848 if test "$ac_cv_func_mmap_file" = yes; then
24849
24850 cat >>confdefs.h <<\_ACEOF
24851 #define HAVE_MMAP_FILE
24852 _ACEOF
24853
24854    MMAP_FILE=yes
24855
24856 fi
24857
24858 if test "$ac_cv_func_mmap_file" = "no"
24859 then
24860   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
24861 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
24862 fi
24863
24864
24865
24866
24867
24868
24869
24870 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty
24871 do
24872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24873 echo "$as_me:$LINENO: checking for $ac_func" >&5
24874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24875 if eval "test \"\${$as_ac_var+set}\" = set"; then
24876   echo $ECHO_N "(cached) $ECHO_C" >&6
24877 else
24878   cat >conftest.$ac_ext <<_ACEOF
24879 /* confdefs.h.  */
24880 _ACEOF
24881 cat confdefs.h >>conftest.$ac_ext
24882 cat >>conftest.$ac_ext <<_ACEOF
24883 /* end confdefs.h.  */
24884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24886 #define $ac_func innocuous_$ac_func
24887
24888 /* System header to define __stub macros and hopefully few prototypes,
24889     which can conflict with char $ac_func (); below.
24890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24891     <limits.h> exists even on freestanding compilers.  */
24892
24893 #ifdef __STDC__
24894 # include <limits.h>
24895 #else
24896 # include <assert.h>
24897 #endif
24898
24899 #undef $ac_func
24900
24901 /* Override any gcc2 internal prototype to avoid an error.  */
24902 #ifdef __cplusplus
24903 extern "C"
24904 {
24905 #endif
24906 /* We use char because int might match the return type of a gcc2
24907    builtin and then its argument prototype would still apply.  */
24908 char $ac_func ();
24909 /* The GNU C library defines this for functions which it implements
24910     to always fail with ENOSYS.  Some functions are actually named
24911     something starting with __ and the normal name is an alias.  */
24912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24913 choke me
24914 #else
24915 char (*f) () = $ac_func;
24916 #endif
24917 #ifdef __cplusplus
24918 }
24919 #endif
24920
24921 int
24922 main ()
24923 {
24924 return f != $ac_func;
24925   ;
24926   return 0;
24927 }
24928 _ACEOF
24929 rm -f conftest.$ac_objext conftest$ac_exeext
24930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24931   (eval $ac_link) 2>conftest.er1
24932   ac_status=$?
24933   grep -v '^ *+' conftest.er1 >conftest.err
24934   rm -f conftest.er1
24935   cat conftest.err >&5
24936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937   (exit $ac_status); } &&
24938          { ac_try='test -z "$ac_c_werror_flag"
24939                          || test ! -s conftest.err'
24940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941   (eval $ac_try) 2>&5
24942   ac_status=$?
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); }; } &&
24945          { ac_try='test -s conftest$ac_exeext'
24946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947   (eval $ac_try) 2>&5
24948   ac_status=$?
24949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950   (exit $ac_status); }; }; then
24951   eval "$as_ac_var=yes"
24952 else
24953   echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24955
24956 eval "$as_ac_var=no"
24957 fi
24958 rm -f conftest.err conftest.$ac_objext \
24959       conftest$ac_exeext conftest.$ac_ext
24960 fi
24961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24963 if test `eval echo '${'$as_ac_var'}'` = yes; then
24964   cat >>confdefs.h <<_ACEOF
24965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24966 _ACEOF
24967
24968 fi
24969 done
24970
24971
24972
24973 for ac_func in mkstemp getrusage
24974 do
24975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24976 echo "$as_me:$LINENO: checking for $ac_func" >&5
24977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24978 if eval "test \"\${$as_ac_var+set}\" = set"; then
24979   echo $ECHO_N "(cached) $ECHO_C" >&6
24980 else
24981   cat >conftest.$ac_ext <<_ACEOF
24982 /* confdefs.h.  */
24983 _ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h.  */
24987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24989 #define $ac_func innocuous_$ac_func
24990
24991 /* System header to define __stub macros and hopefully few prototypes,
24992     which can conflict with char $ac_func (); below.
24993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24994     <limits.h> exists even on freestanding compilers.  */
24995
24996 #ifdef __STDC__
24997 # include <limits.h>
24998 #else
24999 # include <assert.h>
25000 #endif
25001
25002 #undef $ac_func
25003
25004 /* Override any gcc2 internal prototype to avoid an error.  */
25005 #ifdef __cplusplus
25006 extern "C"
25007 {
25008 #endif
25009 /* We use char because int might match the return type of a gcc2
25010    builtin and then its argument prototype would still apply.  */
25011 char $ac_func ();
25012 /* The GNU C library defines this for functions which it implements
25013     to always fail with ENOSYS.  Some functions are actually named
25014     something starting with __ and the normal name is an alias.  */
25015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25016 choke me
25017 #else
25018 char (*f) () = $ac_func;
25019 #endif
25020 #ifdef __cplusplus
25021 }
25022 #endif
25023
25024 int
25025 main ()
25026 {
25027 return f != $ac_func;
25028   ;
25029   return 0;
25030 }
25031 _ACEOF
25032 rm -f conftest.$ac_objext conftest$ac_exeext
25033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25034   (eval $ac_link) 2>conftest.er1
25035   ac_status=$?
25036   grep -v '^ *+' conftest.er1 >conftest.err
25037   rm -f conftest.er1
25038   cat conftest.err >&5
25039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040   (exit $ac_status); } &&
25041          { ac_try='test -z "$ac_c_werror_flag"
25042                          || test ! -s conftest.err'
25043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25044   (eval $ac_try) 2>&5
25045   ac_status=$?
25046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047   (exit $ac_status); }; } &&
25048          { ac_try='test -s conftest$ac_exeext'
25049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25050   (eval $ac_try) 2>&5
25051   ac_status=$?
25052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053   (exit $ac_status); }; }; then
25054   eval "$as_ac_var=yes"
25055 else
25056   echo "$as_me: failed program was:" >&5
25057 sed 's/^/| /' conftest.$ac_ext >&5
25058
25059 eval "$as_ac_var=no"
25060 fi
25061 rm -f conftest.err conftest.$ac_objext \
25062       conftest$ac_exeext conftest.$ac_ext
25063 fi
25064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25066 if test `eval echo '${'$as_ac_var'}'` = yes; then
25067   cat >>confdefs.h <<_ACEOF
25068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25069 _ACEOF
25070
25071 fi
25072 done
25073
25074 echo "$as_me:$LINENO: checking for mprotect" >&5
25075 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
25076 if test "${ac_cv_func_mprotect+set}" = set; then
25077   echo $ECHO_N "(cached) $ECHO_C" >&6
25078 else
25079   cat >conftest.$ac_ext <<_ACEOF
25080 /* confdefs.h.  */
25081 _ACEOF
25082 cat confdefs.h >>conftest.$ac_ext
25083 cat >>conftest.$ac_ext <<_ACEOF
25084 /* end confdefs.h.  */
25085 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
25086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25087 #define mprotect innocuous_mprotect
25088
25089 /* System header to define __stub macros and hopefully few prototypes,
25090     which can conflict with char mprotect (); below.
25091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25092     <limits.h> exists even on freestanding compilers.  */
25093
25094 #ifdef __STDC__
25095 # include <limits.h>
25096 #else
25097 # include <assert.h>
25098 #endif
25099
25100 #undef mprotect
25101
25102 /* Override any gcc2 internal prototype to avoid an error.  */
25103 #ifdef __cplusplus
25104 extern "C"
25105 {
25106 #endif
25107 /* We use char because int might match the return type of a gcc2
25108    builtin and then its argument prototype would still apply.  */
25109 char mprotect ();
25110 /* The GNU C library defines this for functions which it implements
25111     to always fail with ENOSYS.  Some functions are actually named
25112     something starting with __ and the normal name is an alias.  */
25113 #if defined (__stub_mprotect) || defined (__stub___mprotect)
25114 choke me
25115 #else
25116 char (*f) () = mprotect;
25117 #endif
25118 #ifdef __cplusplus
25119 }
25120 #endif
25121
25122 int
25123 main ()
25124 {
25125 return f != mprotect;
25126   ;
25127   return 0;
25128 }
25129 _ACEOF
25130 rm -f conftest.$ac_objext conftest$ac_exeext
25131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25132   (eval $ac_link) 2>conftest.er1
25133   ac_status=$?
25134   grep -v '^ *+' conftest.er1 >conftest.err
25135   rm -f conftest.er1
25136   cat conftest.err >&5
25137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138   (exit $ac_status); } &&
25139          { ac_try='test -z "$ac_c_werror_flag"
25140                          || test ! -s conftest.err'
25141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142   (eval $ac_try) 2>&5
25143   ac_status=$?
25144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145   (exit $ac_status); }; } &&
25146          { ac_try='test -s conftest$ac_exeext'
25147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148   (eval $ac_try) 2>&5
25149   ac_status=$?
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); }; }; then
25152   ac_cv_func_mprotect=yes
25153 else
25154   echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25156
25157 ac_cv_func_mprotect=no
25158 fi
25159 rm -f conftest.err conftest.$ac_objext \
25160       conftest$ac_exeext conftest.$ac_ext
25161 fi
25162 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
25163 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
25164 if test $ac_cv_func_mprotect = yes; then
25165   :
25166 else
25167   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
25168 echo "$as_me: error: Function mprotect() required but not found" >&2;}
25169    { (exit 1); exit 1; }; }
25170 fi
25171
25172
25173 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
25174 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
25175 if test "${ac_cv_cxx_namespaces+set}" = set; then
25176   echo $ECHO_N "(cached) $ECHO_C" >&6
25177 else
25178   ac_ext=cc
25179 ac_cpp='$CXXCPP $CPPFLAGS'
25180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25183
25184  cat >conftest.$ac_ext <<_ACEOF
25185 /* confdefs.h.  */
25186 _ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h.  */
25190 namespace Outer { namespace Inner { int i = 0; }}
25191 int
25192 main ()
25193 {
25194 using namespace Outer::Inner; return i;
25195   ;
25196   return 0;
25197 }
25198 _ACEOF
25199 rm -f conftest.$ac_objext
25200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25201   (eval $ac_compile) 2>conftest.er1
25202   ac_status=$?
25203   grep -v '^ *+' conftest.er1 >conftest.err
25204   rm -f conftest.er1
25205   cat conftest.err >&5
25206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207   (exit $ac_status); } &&
25208          { ac_try='test -z "$ac_cxx_werror_flag"
25209                          || test ! -s conftest.err'
25210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211   (eval $ac_try) 2>&5
25212   ac_status=$?
25213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214   (exit $ac_status); }; } &&
25215          { ac_try='test -s conftest.$ac_objext'
25216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217   (eval $ac_try) 2>&5
25218   ac_status=$?
25219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220   (exit $ac_status); }; }; then
25221   ac_cv_cxx_namespaces=yes
25222 else
25223   echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25225
25226 ac_cv_cxx_namespaces=no
25227 fi
25228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25229  ac_ext=c
25230 ac_cpp='$CPP $CPPFLAGS'
25231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25234
25235
25236 fi
25237 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
25238 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
25239 if test "$ac_cv_cxx_namespaces" = yes; then
25240
25241 cat >>confdefs.h <<\_ACEOF
25242 #define HAVE_NAMESPACES
25243 _ACEOF
25244
25245 fi
25246
25247 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
25248 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
25249 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
25250   echo $ECHO_N "(cached) $ECHO_C" >&6
25251 else
25252
25253   ac_ext=cc
25254 ac_cpp='$CXXCPP $CPPFLAGS'
25255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25258
25259   cat >conftest.$ac_ext <<_ACEOF
25260 /* confdefs.h.  */
25261 _ACEOF
25262 cat confdefs.h >>conftest.$ac_ext
25263 cat >>conftest.$ac_ext <<_ACEOF
25264 /* end confdefs.h.  */
25265 #include <ext/hash_map>
25266 #ifdef HAVE_NAMESPACES
25267 using namespace std;
25268 #endif
25269 int
25270 main ()
25271 {
25272 hash_map<int, int> t;
25273   ;
25274   return 0;
25275 }
25276 _ACEOF
25277 rm -f conftest.$ac_objext
25278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25279   (eval $ac_compile) 2>conftest.er1
25280   ac_status=$?
25281   grep -v '^ *+' conftest.er1 >conftest.err
25282   rm -f conftest.er1
25283   cat conftest.err >&5
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); } &&
25286          { ac_try='test -z "$ac_cxx_werror_flag"
25287                          || test ! -s conftest.err'
25288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289   (eval $ac_try) 2>&5
25290   ac_status=$?
25291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292   (exit $ac_status); }; } &&
25293          { ac_try='test -s conftest.$ac_objext'
25294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25295   (eval $ac_try) 2>&5
25296   ac_status=$?
25297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298   (exit $ac_status); }; }; then
25299   ac_cv_cxx_have_std_ext_hash_map=yes
25300 else
25301   echo "$as_me: failed program was:" >&5
25302 sed 's/^/| /' conftest.$ac_ext >&5
25303
25304 ac_cv_cxx_have_std_ext_hash_map=no
25305 fi
25306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25307   ac_ext=c
25308 ac_cpp='$CPP $CPPFLAGS'
25309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25312
25313 fi
25314 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
25315 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
25316  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
25317  then
25318
25319 cat >>confdefs.h <<\_ACEOF
25320 #define HAVE_STD_EXT_HASH_MAP 1
25321 _ACEOF
25322
25323  else
25324
25325 cat >>confdefs.h <<\_ACEOF
25326 #define HAVE_STD_EXT_HASH_MAP 0
25327 _ACEOF
25328
25329  fi
25330
25331  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
25332 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
25333 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
25334   echo $ECHO_N "(cached) $ECHO_C" >&6
25335 else
25336
25337   ac_ext=cc
25338 ac_cpp='$CXXCPP $CPPFLAGS'
25339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25342
25343   cat >conftest.$ac_ext <<_ACEOF
25344 /* confdefs.h.  */
25345 _ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h.  */
25349 #include <ext/hash_map>
25350 #ifdef HAVE_NAMESPACES
25351 using namespace __gnu_cxx;
25352 #endif
25353 int
25354 main ()
25355 {
25356 hash_map<int,int> t;
25357   ;
25358   return 0;
25359 }
25360 _ACEOF
25361 rm -f conftest.$ac_objext
25362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25363   (eval $ac_compile) 2>conftest.er1
25364   ac_status=$?
25365   grep -v '^ *+' conftest.er1 >conftest.err
25366   rm -f conftest.er1
25367   cat conftest.err >&5
25368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369   (exit $ac_status); } &&
25370          { ac_try='test -z "$ac_cxx_werror_flag"
25371                          || test ! -s conftest.err'
25372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25373   (eval $ac_try) 2>&5
25374   ac_status=$?
25375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376   (exit $ac_status); }; } &&
25377          { ac_try='test -s conftest.$ac_objext'
25378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25379   (eval $ac_try) 2>&5
25380   ac_status=$?
25381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382   (exit $ac_status); }; }; then
25383   ac_cv_cxx_have_gnu_ext_hash_map=yes
25384 else
25385   echo "$as_me: failed program was:" >&5
25386 sed 's/^/| /' conftest.$ac_ext >&5
25387
25388 ac_cv_cxx_have_gnu_ext_hash_map=no
25389 fi
25390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25391   ac_ext=c
25392 ac_cpp='$CPP $CPPFLAGS'
25393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25396
25397 fi
25398 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
25399 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
25400  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
25401  then
25402
25403 cat >>confdefs.h <<\_ACEOF
25404 #define HAVE_GNU_EXT_HASH_MAP 1
25405 _ACEOF
25406
25407  else
25408
25409 cat >>confdefs.h <<\_ACEOF
25410 #define HAVE_GNU_EXT_HASH_MAP 0
25411 _ACEOF
25412
25413  fi
25414
25415  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
25416 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
25417 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
25418   echo $ECHO_N "(cached) $ECHO_C" >&6
25419 else
25420
25421   ac_ext=cc
25422 ac_cpp='$CXXCPP $CPPFLAGS'
25423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25426
25427   cat >conftest.$ac_ext <<_ACEOF
25428 /* confdefs.h.  */
25429 _ACEOF
25430 cat confdefs.h >>conftest.$ac_ext
25431 cat >>conftest.$ac_ext <<_ACEOF
25432 /* end confdefs.h.  */
25433 #include <hash_map>
25434 int
25435 main ()
25436 {
25437 hash_map<int,int> t;
25438   ;
25439   return 0;
25440 }
25441 _ACEOF
25442 rm -f conftest.$ac_objext
25443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25444   (eval $ac_compile) 2>conftest.er1
25445   ac_status=$?
25446   grep -v '^ *+' conftest.er1 >conftest.err
25447   rm -f conftest.er1
25448   cat conftest.err >&5
25449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450   (exit $ac_status); } &&
25451          { ac_try='test -z "$ac_cxx_werror_flag"
25452                          || test ! -s conftest.err'
25453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25454   (eval $ac_try) 2>&5
25455   ac_status=$?
25456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457   (exit $ac_status); }; } &&
25458          { ac_try='test -s conftest.$ac_objext'
25459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460   (eval $ac_try) 2>&5
25461   ac_status=$?
25462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463   (exit $ac_status); }; }; then
25464   ac_cv_cxx_have_global_hash_map=yes
25465 else
25466   echo "$as_me: failed program was:" >&5
25467 sed 's/^/| /' conftest.$ac_ext >&5
25468
25469 ac_cv_cxx_have_global_hash_map=no
25470 fi
25471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25472   ac_ext=c
25473 ac_cpp='$CPP $CPPFLAGS'
25474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25477
25478 fi
25479 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
25480 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
25481  if test "$ac_cv_cxx_have_global_hash_map" = yes
25482  then
25483
25484 cat >>confdefs.h <<\_ACEOF
25485 #define HAVE_GLOBAL_HASH_MAP 1
25486 _ACEOF
25487
25488  else
25489
25490 cat >>confdefs.h <<\_ACEOF
25491 #define HAVE_GLOBAL_HASH_MAP 0
25492 _ACEOF
25493
25494  fi
25495
25496 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
25497 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
25498 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
25499   echo $ECHO_N "(cached) $ECHO_C" >&6
25500 else
25501
25502   ac_ext=cc
25503 ac_cpp='$CXXCPP $CPPFLAGS'
25504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25507
25508   cat >conftest.$ac_ext <<_ACEOF
25509 /* confdefs.h.  */
25510 _ACEOF
25511 cat confdefs.h >>conftest.$ac_ext
25512 cat >>conftest.$ac_ext <<_ACEOF
25513 /* end confdefs.h.  */
25514 #include <ext/hash_set>
25515 #ifdef HAVE_NAMESPACES
25516 using namespace std;
25517 #endif
25518 int
25519 main ()
25520 {
25521 hash_set<int> t;
25522   ;
25523   return 0;
25524 }
25525 _ACEOF
25526 rm -f conftest.$ac_objext
25527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25528   (eval $ac_compile) 2>conftest.er1
25529   ac_status=$?
25530   grep -v '^ *+' conftest.er1 >conftest.err
25531   rm -f conftest.er1
25532   cat conftest.err >&5
25533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534   (exit $ac_status); } &&
25535          { ac_try='test -z "$ac_cxx_werror_flag"
25536                          || test ! -s conftest.err'
25537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25538   (eval $ac_try) 2>&5
25539   ac_status=$?
25540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541   (exit $ac_status); }; } &&
25542          { ac_try='test -s conftest.$ac_objext'
25543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25544   (eval $ac_try) 2>&5
25545   ac_status=$?
25546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547   (exit $ac_status); }; }; then
25548   ac_cv_cxx_have_std_ext_hash_set=yes
25549 else
25550   echo "$as_me: failed program was:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25552
25553 ac_cv_cxx_have_std_ext_hash_set=no
25554 fi
25555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25556   ac_ext=c
25557 ac_cpp='$CPP $CPPFLAGS'
25558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25561
25562 fi
25563 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
25564 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
25565  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
25566  then
25567
25568 cat >>confdefs.h <<\_ACEOF
25569 #define HAVE_STD_EXT_HASH_SET 1
25570 _ACEOF
25571
25572  else
25573
25574 cat >>confdefs.h <<\_ACEOF
25575 #define HAVE_STD_EXT_HASH_SET 0
25576 _ACEOF
25577
25578  fi
25579
25580  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
25581 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
25582 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
25583   echo $ECHO_N "(cached) $ECHO_C" >&6
25584 else
25585
25586   ac_ext=cc
25587 ac_cpp='$CXXCPP $CPPFLAGS'
25588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25591
25592   cat >conftest.$ac_ext <<_ACEOF
25593 /* confdefs.h.  */
25594 _ACEOF
25595 cat confdefs.h >>conftest.$ac_ext
25596 cat >>conftest.$ac_ext <<_ACEOF
25597 /* end confdefs.h.  */
25598 #include <ext/hash_set>
25599 #ifdef HAVE_NAMESPACES
25600 using namespace __gnu_cxx;
25601 #endif
25602 int
25603 main ()
25604 {
25605 hash_set<int> t;
25606   ;
25607   return 0;
25608 }
25609 _ACEOF
25610 rm -f conftest.$ac_objext
25611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25612   (eval $ac_compile) 2>conftest.er1
25613   ac_status=$?
25614   grep -v '^ *+' conftest.er1 >conftest.err
25615   rm -f conftest.er1
25616   cat conftest.err >&5
25617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618   (exit $ac_status); } &&
25619          { ac_try='test -z "$ac_cxx_werror_flag"
25620                          || test ! -s conftest.err'
25621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622   (eval $ac_try) 2>&5
25623   ac_status=$?
25624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625   (exit $ac_status); }; } &&
25626          { ac_try='test -s conftest.$ac_objext'
25627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25628   (eval $ac_try) 2>&5
25629   ac_status=$?
25630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631   (exit $ac_status); }; }; then
25632   ac_cv_cxx_have_gnu_ext_hash_set=yes
25633 else
25634   echo "$as_me: failed program was:" >&5
25635 sed 's/^/| /' conftest.$ac_ext >&5
25636
25637 ac_cv_cxx_have_gnu_ext_hash_set=no
25638 fi
25639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25640   ac_ext=c
25641 ac_cpp='$CPP $CPPFLAGS'
25642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25645
25646 fi
25647 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
25648 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
25649  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
25650  then
25651
25652 cat >>confdefs.h <<\_ACEOF
25653 #define HAVE_GNU_EXT_HASH_SET 1
25654 _ACEOF
25655
25656  else
25657
25658 cat >>confdefs.h <<\_ACEOF
25659 #define HAVE_GNU_EXT_HASH_SET 0
25660 _ACEOF
25661
25662  fi
25663
25664  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
25665 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
25666 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
25667   echo $ECHO_N "(cached) $ECHO_C" >&6
25668 else
25669
25670   ac_ext=cc
25671 ac_cpp='$CXXCPP $CPPFLAGS'
25672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25675
25676   cat >conftest.$ac_ext <<_ACEOF
25677 /* confdefs.h.  */
25678 _ACEOF
25679 cat confdefs.h >>conftest.$ac_ext
25680 cat >>conftest.$ac_ext <<_ACEOF
25681 /* end confdefs.h.  */
25682 #include <hash_set>
25683 int
25684 main ()
25685 {
25686 hash_set<int> t; return 0;
25687   ;
25688   return 0;
25689 }
25690 _ACEOF
25691 rm -f conftest.$ac_objext
25692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25693   (eval $ac_compile) 2>conftest.er1
25694   ac_status=$?
25695   grep -v '^ *+' conftest.er1 >conftest.err
25696   rm -f conftest.er1
25697   cat conftest.err >&5
25698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699   (exit $ac_status); } &&
25700          { ac_try='test -z "$ac_cxx_werror_flag"
25701                          || test ! -s conftest.err'
25702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703   (eval $ac_try) 2>&5
25704   ac_status=$?
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); }; } &&
25707          { ac_try='test -s conftest.$ac_objext'
25708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709   (eval $ac_try) 2>&5
25710   ac_status=$?
25711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712   (exit $ac_status); }; }; then
25713   ac_cv_cxx_have_global_hash_set=yes
25714 else
25715   echo "$as_me: failed program was:" >&5
25716 sed 's/^/| /' conftest.$ac_ext >&5
25717
25718 ac_cv_cxx_have_global_hash_set=no
25719 fi
25720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25721   ac_ext=c
25722 ac_cpp='$CPP $CPPFLAGS'
25723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25726
25727 fi
25728 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
25729 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
25730  if test "$ac_cv_cxx_have_global_hash_set" = yes
25731  then
25732
25733 cat >>confdefs.h <<\_ACEOF
25734 #define HAVE_GLOBAL_HASH_SET 1
25735 _ACEOF
25736
25737  else
25738
25739 cat >>confdefs.h <<\_ACEOF
25740 #define HAVE_GLOBAL_HASH_SET 0
25741 _ACEOF
25742
25743  fi
25744
25745 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
25746 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
25747 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
25748   echo $ECHO_N "(cached) $ECHO_C" >&6
25749 else
25750
25751   ac_ext=cc
25752 ac_cpp='$CXXCPP $CPPFLAGS'
25753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25756
25757   cat >conftest.$ac_ext <<_ACEOF
25758 /* confdefs.h.  */
25759 _ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h.  */
25763 #include <iterator>
25764 #ifdef HAVE_NAMESPACES
25765 using namespace std;
25766 #endif
25767 int
25768 main ()
25769 {
25770 iterator<int,int,int> t; return 0;
25771   ;
25772   return 0;
25773 }
25774 _ACEOF
25775 rm -f conftest.$ac_objext
25776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25777   (eval $ac_compile) 2>conftest.er1
25778   ac_status=$?
25779   grep -v '^ *+' conftest.er1 >conftest.err
25780   rm -f conftest.er1
25781   cat conftest.err >&5
25782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783   (exit $ac_status); } &&
25784          { ac_try='test -z "$ac_cxx_werror_flag"
25785                          || test ! -s conftest.err'
25786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787   (eval $ac_try) 2>&5
25788   ac_status=$?
25789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790   (exit $ac_status); }; } &&
25791          { ac_try='test -s conftest.$ac_objext'
25792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25793   (eval $ac_try) 2>&5
25794   ac_status=$?
25795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796   (exit $ac_status); }; }; then
25797   ac_cv_cxx_have_std_iterator=yes
25798 else
25799   echo "$as_me: failed program was:" >&5
25800 sed 's/^/| /' conftest.$ac_ext >&5
25801
25802 ac_cv_cxx_have_std_iterator=no
25803 fi
25804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25805   ac_ext=c
25806 ac_cpp='$CPP $CPPFLAGS'
25807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25810
25811
25812 fi
25813 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
25814 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
25815 if test "$ac_cv_cxx_have_std_iterator" = yes
25816 then
25817
25818 cat >>confdefs.h <<\_ACEOF
25819 #define HAVE_STD_ITERATOR 1
25820 _ACEOF
25821
25822 else
25823
25824 cat >>confdefs.h <<\_ACEOF
25825 #define HAVE_STD_ITERATOR 0
25826 _ACEOF
25827
25828 fi
25829
25830 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
25831 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
25832 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
25833   echo $ECHO_N "(cached) $ECHO_C" >&6
25834 else
25835
25836   ac_ext=cc
25837 ac_cpp='$CXXCPP $CPPFLAGS'
25838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25841
25842   cat >conftest.$ac_ext <<_ACEOF
25843 /* confdefs.h.  */
25844 _ACEOF
25845 cat confdefs.h >>conftest.$ac_ext
25846 cat >>conftest.$ac_ext <<_ACEOF
25847 /* end confdefs.h.  */
25848 #include <iterator>
25849 #ifdef HAVE_NAMESPACES
25850 using namespace std;
25851 #endif
25852 int
25853 main ()
25854 {
25855 bidirectional_iterator<int,int> t; return 0;
25856   ;
25857   return 0;
25858 }
25859 _ACEOF
25860 rm -f conftest.$ac_objext
25861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25862   (eval $ac_compile) 2>conftest.er1
25863   ac_status=$?
25864   grep -v '^ *+' conftest.er1 >conftest.err
25865   rm -f conftest.er1
25866   cat conftest.err >&5
25867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868   (exit $ac_status); } &&
25869          { ac_try='test -z "$ac_cxx_werror_flag"
25870                          || test ! -s conftest.err'
25871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872   (eval $ac_try) 2>&5
25873   ac_status=$?
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); }; } &&
25876          { ac_try='test -s conftest.$ac_objext'
25877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25878   (eval $ac_try) 2>&5
25879   ac_status=$?
25880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881   (exit $ac_status); }; }; then
25882   ac_cv_cxx_have_bi_iterator=yes
25883 else
25884   echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25886
25887 ac_cv_cxx_have_bi_iterator=no
25888 fi
25889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25890   ac_ext=c
25891 ac_cpp='$CPP $CPPFLAGS'
25892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25895
25896
25897 fi
25898 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
25899 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
25900 if test "$ac_cv_cxx_have_bi_iterator" = yes
25901 then
25902
25903 cat >>confdefs.h <<\_ACEOF
25904 #define HAVE_BI_ITERATOR 1
25905 _ACEOF
25906
25907 else
25908
25909 cat >>confdefs.h <<\_ACEOF
25910 #define HAVE_BI_ITERATOR 0
25911 _ACEOF
25912
25913 fi
25914
25915 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
25916 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
25917 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
25918   echo $ECHO_N "(cached) $ECHO_C" >&6
25919 else
25920
25921   ac_ext=cc
25922 ac_cpp='$CXXCPP $CPPFLAGS'
25923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25926
25927   cat >conftest.$ac_ext <<_ACEOF
25928 /* confdefs.h.  */
25929 _ACEOF
25930 cat confdefs.h >>conftest.$ac_ext
25931 cat >>conftest.$ac_ext <<_ACEOF
25932 /* end confdefs.h.  */
25933 #include <iterator>
25934 #ifdef HAVE_NAMESPACES
25935 using namespace std;
25936 #endif
25937 int
25938 main ()
25939 {
25940 forward_iterator<int,int> t; return 0;
25941   ;
25942   return 0;
25943 }
25944 _ACEOF
25945 rm -f conftest.$ac_objext
25946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25947   (eval $ac_compile) 2>conftest.er1
25948   ac_status=$?
25949   grep -v '^ *+' conftest.er1 >conftest.err
25950   rm -f conftest.er1
25951   cat conftest.err >&5
25952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953   (exit $ac_status); } &&
25954          { ac_try='test -z "$ac_cxx_werror_flag"
25955                          || test ! -s conftest.err'
25956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25957   (eval $ac_try) 2>&5
25958   ac_status=$?
25959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960   (exit $ac_status); }; } &&
25961          { ac_try='test -s conftest.$ac_objext'
25962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25963   (eval $ac_try) 2>&5
25964   ac_status=$?
25965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966   (exit $ac_status); }; }; then
25967   ac_cv_cxx_have_fwd_iterator=yes
25968 else
25969   echo "$as_me: failed program was:" >&5
25970 sed 's/^/| /' conftest.$ac_ext >&5
25971
25972 ac_cv_cxx_have_fwd_iterator=no
25973 fi
25974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25975   ac_ext=c
25976 ac_cpp='$CPP $CPPFLAGS'
25977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25980
25981
25982 fi
25983 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
25984 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
25985 if test "$ac_cv_cxx_have_fwd_iterator" = yes
25986 then
25987
25988 cat >>confdefs.h <<\_ACEOF
25989 #define HAVE_FWD_ITERATOR 1
25990 _ACEOF
25991
25992 else
25993
25994 cat >>confdefs.h <<\_ACEOF
25995 #define HAVE_FWD_ITERATOR 0
25996 _ACEOF
25997
25998 fi
25999
26000
26001
26002   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
26003 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
26004   ac_ext=c
26005 ac_cpp='$CPP $CPPFLAGS'
26006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26009
26010   oldcflags="$CFLAGS"
26011   CFLAGS="$CFLAGS -Wl,-R."
26012   cat >conftest.$ac_ext <<_ACEOF
26013 /* confdefs.h.  */
26014 _ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h.  */
26018
26019 int
26020 main ()
26021 {
26022 int main() { return 0; }
26023   ;
26024   return 0;
26025 }
26026 _ACEOF
26027 rm -f conftest.$ac_objext conftest$ac_exeext
26028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26029   (eval $ac_link) 2>conftest.er1
26030   ac_status=$?
26031   grep -v '^ *+' conftest.er1 >conftest.err
26032   rm -f conftest.er1
26033   cat conftest.err >&5
26034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035   (exit $ac_status); } &&
26036          { ac_try='test -z "$ac_c_werror_flag"
26037                          || test ! -s conftest.err'
26038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26039   (eval $ac_try) 2>&5
26040   ac_status=$?
26041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042   (exit $ac_status); }; } &&
26043          { ac_try='test -s conftest$ac_exeext'
26044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045   (eval $ac_try) 2>&5
26046   ac_status=$?
26047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048   (exit $ac_status); }; }; then
26049   ac_cv_link_use_r=yes
26050 else
26051   echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26053
26054 ac_cv_link_use_r=no
26055 fi
26056 rm -f conftest.err conftest.$ac_objext \
26057       conftest$ac_exeext conftest.$ac_ext
26058   CFLAGS="$oldcflags"
26059   ac_ext=c
26060 ac_cpp='$CPP $CPPFLAGS'
26061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26064
26065   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
26066 echo "${ECHO_T}$ac_cv_link_use_r" >&6
26067   if test "$ac_cv_link_use_r" = yes
26068   then
26069
26070 cat >>confdefs.h <<\_ACEOF
26071 #define HAVE_LINK_R 1
26072 _ACEOF
26073
26074   fi
26075
26076
26077
26078 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
26079
26080 cat >>confdefs.h <<\_ACEOF
26081 #define HAVE_ZLIB 1
26082 _ACEOF
26083
26084   HAVE_ZLIB=1
26085
26086 else
26087   HAVE_ZLIB=0
26088
26089 fi
26090 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
26091
26092 cat >>confdefs.h <<\_ACEOF
26093 #define HAVE_BZIP2 1
26094 _ACEOF
26095
26096   HAVE_BZIP2=1
26097
26098 else
26099   HAVE_BZIP2=0
26100
26101 fi
26102
26103 echo "$as_me:$LINENO: checking for shared library suffix" >&5
26104 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
26105 eval "SHLIBEXT=$shrext_cmds"
26106 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
26107 echo "${ECHO_T}$SHLIBEXT" >&6
26108
26109 SHLIBEXT=$SHLIBEXT
26110
26111
26112 cat >>confdefs.h <<_ACEOF
26113 #define SHLIBEXT "$SHLIBEXT"
26114 _ACEOF
26115
26116
26117 # Translate the various configuration directories and other basic
26118 # information into substitutions that will end up in config.h.in so
26119 # that these configured values can be hard-wired into a program.
26120 eval LLVM_PREFIX="${prefix}";
26121 eval LLVM_BINDIR="${prefix}/bin";
26122 eval LLVM_LIBDIR="${prefix}/lib";
26123 eval LLVM_DATADIR="${prefix}/data";
26124 eval LLVM_DOCSDIR="${prefix}/docs";
26125 eval LLVM_ETCDIR="${prefix}/etc";
26126 eval LLVM_INCLUDEDIR="${prefix}/include";
26127 eval LLVM_INFODIR="${prefix}/info";
26128 eval LLVM_MANDIR="${prefix}/man";
26129 LLVM_CONFIGTIME=`date`
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143 cat >>confdefs.h <<_ACEOF
26144 #define LLVM_PREFIX "$LLVM_PREFIX"
26145 _ACEOF
26146
26147
26148 cat >>confdefs.h <<_ACEOF
26149 #define LLVM_BINDIR "$LLVM_BINDIR"
26150 _ACEOF
26151
26152
26153 cat >>confdefs.h <<_ACEOF
26154 #define LLVM_LIBDIR "$LLVM_LIBDIR"
26155 _ACEOF
26156
26157
26158 cat >>confdefs.h <<_ACEOF
26159 #define LLVM_DATADIR "$LLVM_DATADIR"
26160 _ACEOF
26161
26162
26163 cat >>confdefs.h <<_ACEOF
26164 #define LLVM_DATADIR "$LLVM_DOCSDIR"
26165 _ACEOF
26166
26167
26168 cat >>confdefs.h <<_ACEOF
26169 #define LLVM_ETCDIR "$LLVM_ETCDIR"
26170 _ACEOF
26171
26172
26173 cat >>confdefs.h <<_ACEOF
26174 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
26175 _ACEOF
26176
26177
26178 cat >>confdefs.h <<_ACEOF
26179 #define LLVM_INFODIR "$LLVM_INFODIR"
26180 _ACEOF
26181
26182
26183 cat >>confdefs.h <<_ACEOF
26184 #define LLVM_MANDIR "$LLVM_MANDIR"
26185 _ACEOF
26186
26187
26188 cat >>confdefs.h <<_ACEOF
26189 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
26190 _ACEOF
26191
26192
26193
26194           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
26195
26196           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
26197
26198           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
26199
26200           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
26201
26202           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
26203
26204           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
26205
26206
26207           ac_config_files="$ac_config_files Makefile"
26208
26209           ac_config_files="$ac_config_files lib/Makefile"
26210
26211           ac_config_files="$ac_config_files lib/Analysis/IPA/Makefile"
26212
26213           ac_config_files="$ac_config_files lib/Analysis/Makefile"
26214
26215           ac_config_files="$ac_config_files lib/Analysis/DataStructure/Makefile"
26216
26217           ac_config_files="$ac_config_files lib/AsmParser/Makefile"
26218
26219           ac_config_files="$ac_config_files lib/System/Makefile"
26220
26221           ac_config_files="$ac_config_files lib/Bytecode/Reader/Makefile"
26222
26223           ac_config_files="$ac_config_files lib/Bytecode/Makefile"
26224
26225           ac_config_files="$ac_config_files lib/Bytecode/Writer/Makefile"
26226
26227           ac_config_files="$ac_config_files lib/Bytecode/Archive/Makefile"
26228
26229           ac_config_files="$ac_config_files lib/CodeGen/Makefile"
26230
26231           ac_config_files="$ac_config_files lib/CodeGen/ModuloScheduling/Makefile"
26232
26233           ac_config_files="$ac_config_files lib/CodeGen/SelectionDAG/Makefile"
26234
26235           ac_config_files="$ac_config_files lib/Debugger/Makefile"
26236
26237           ac_config_files="$ac_config_files lib/ExecutionEngine/Interpreter/Makefile"
26238
26239           ac_config_files="$ac_config_files lib/ExecutionEngine/Makefile"
26240
26241           ac_config_files="$ac_config_files lib/ExecutionEngine/JIT/Makefile"
26242
26243           ac_config_files="$ac_config_files lib/Support/Makefile"
26244
26245           ac_config_files="$ac_config_files lib/Target/CBackend/Makefile"
26246
26247           ac_config_files="$ac_config_files lib/Target/Makefile"
26248
26249           ac_config_files="$ac_config_files lib/Target/Skeleton/Makefile"
26250
26251           ac_config_files="$ac_config_files lib/Target/PowerPC/Makefile"
26252
26253           ac_config_files="$ac_config_files lib/Target/SparcV9/Makefile"
26254
26255           ac_config_files="$ac_config_files lib/Target/SparcV9/InstrSched/Makefile"
26256
26257           ac_config_files="$ac_config_files lib/Target/SparcV9/LiveVar/Makefile"
26258
26259           ac_config_files="$ac_config_files lib/Target/SparcV9/RegAlloc/Makefile"
26260
26261           ac_config_files="$ac_config_files lib/Target/X86/Makefile"
26262
26263           ac_config_files="$ac_config_files lib/Transforms/Hello/Makefile"
26264
26265           ac_config_files="$ac_config_files lib/Transforms/Makefile"
26266
26267           ac_config_files="$ac_config_files lib/Transforms/IPO/Makefile"
26268
26269           ac_config_files="$ac_config_files lib/Transforms/Instrumentation/ProfilePaths/Makefile"
26270
26271           ac_config_files="$ac_config_files lib/Transforms/Instrumentation/Makefile"
26272
26273           ac_config_files="$ac_config_files lib/Transforms/Scalar/Makefile"
26274
26275           ac_config_files="$ac_config_files lib/Transforms/Utils/Makefile"
26276
26277           ac_config_files="$ac_config_files lib/VMCore/Makefile"
26278
26279           ac_config_files="$ac_config_files utils/Makefile"
26280
26281           ac_config_files="$ac_config_files utils/Burg/Makefile"
26282
26283           ac_config_files="$ac_config_files utils/fpcmp/Makefile"
26284
26285           ac_config_files="$ac_config_files utils/TableGen/Makefile"
26286
26287           ac_config_files="$ac_config_files tools/Makefile"
26288
26289           ac_config_files="$ac_config_files tools/analyze/Makefile"
26290
26291           ac_config_files="$ac_config_files tools/llvmc/Makefile"
26292
26293           ac_config_files="$ac_config_files tools/bugpoint/Makefile"
26294
26295           ac_config_files="$ac_config_files tools/extract/Makefile"
26296
26297           ac_config_files="$ac_config_files tools/gccas/Makefile"
26298
26299           ac_config_files="$ac_config_files tools/gccld/Makefile"
26300
26301           ac_config_files="$ac_config_files tools/llvm-bcanalyzer/Makefile"
26302
26303           ac_config_files="$ac_config_files tools/llc/Makefile"
26304
26305           ac_config_files="$ac_config_files tools/llee/Makefile"
26306
26307           ac_config_files="$ac_config_files tools/lli/Makefile"
26308
26309           ac_config_files="$ac_config_files tools/llvm-ar/Makefile"
26310
26311           ac_config_files="$ac_config_files tools/llvm-as/Makefile"
26312
26313           ac_config_files="$ac_config_files tools/llvm-db/Makefile"
26314
26315           ac_config_files="$ac_config_files tools/llvm-dis/Makefile"
26316
26317           ac_config_files="$ac_config_files tools/llvm-link/Makefile"
26318
26319           ac_config_files="$ac_config_files tools/llvm-nm/Makefile"
26320
26321           ac_config_files="$ac_config_files tools/llvm-prof/Makefile"
26322
26323           ac_config_files="$ac_config_files tools/opt/Makefile"
26324
26325           ac_config_files="$ac_config_files tools/llvm-ld/Makefile"
26326
26327           ac_config_files="$ac_config_files tools/llvm-stub/Makefile"
26328
26329
26330           ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_platform_type"
26331
26332
26333 for i in `ls ${srcdir}/projects`
26334 do
26335   if test -d ${srcdir}/projects/${i} ; then
26336     case ${i} in
26337       "CVS") ;;
26338       "sample")
26339
26340 subdirs="$subdirs projects/sample"
26341     ;;
26342       "Stacker")
26343
26344 subdirs="$subdirs projects/Stacker"
26345    ;;
26346       "llvm-test")
26347
26348 subdirs="$subdirs projects/llvm-test"
26349  ;;
26350       "llvm-reopt")
26351
26352 subdirs="$subdirs projects/llvm-reopt"
26353 ;;
26354       "llvm-gcc")
26355
26356 subdirs="$subdirs projects/llvm-gcc"
26357   ;;
26358       "Java")
26359
26360 subdirs="$subdirs projects/Java"
26361       ;;
26362       "llvm-tv")
26363
26364 subdirs="$subdirs projects/llvm-tv"
26365    ;;
26366       "llvm-fefw")
26367
26368 subdirs="$subdirs projects/llvm-fefw"
26369  ;;
26370       *)
26371         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
26372 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
26373         ;;
26374     esac
26375   fi
26376 done
26377 cat >confcache <<\_ACEOF
26378 # This file is a shell script that caches the results of configure
26379 # tests run on this system so they can be shared between configure
26380 # scripts and configure runs, see configure's option --config-cache.
26381 # It is not useful on other systems.  If it contains results you don't
26382 # want to keep, you may remove or edit it.
26383 #
26384 # config.status only pays attention to the cache file if you give it
26385 # the --recheck option to rerun configure.
26386 #
26387 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26388 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26389 # following values.
26390
26391 _ACEOF
26392
26393 # The following way of writing the cache mishandles newlines in values,
26394 # but we know of no workaround that is simple, portable, and efficient.
26395 # So, don't put newlines in cache variables' values.
26396 # Ultrix sh set writes to stderr and can't be redirected directly,
26397 # and sets the high bit in the cache file unless we assign to the vars.
26398 {
26399   (set) 2>&1 |
26400     case `(ac_space=' '; set | grep ac_space) 2>&1` in
26401     *ac_space=\ *)
26402       # `set' does not quote correctly, so add quotes (double-quote
26403       # substitution turns \\\\ into \\, and sed turns \\ into \).
26404       sed -n \
26405         "s/'/'\\\\''/g;
26406           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26407       ;;
26408     *)
26409       # `set' quotes correctly as required by POSIX, so do not add quotes.
26410       sed -n \
26411         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26412       ;;
26413     esac;
26414 } |
26415   sed '
26416      t clear
26417      : clear
26418      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26419      t end
26420      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26421      : end' >>confcache
26422 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26423   if test -w $cache_file; then
26424     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26425     cat confcache >$cache_file
26426   else
26427     echo "not updating unwritable cache $cache_file"
26428   fi
26429 fi
26430 rm -f confcache
26431
26432 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26433 # Let make expand exec_prefix.
26434 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26435
26436 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26437 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26438 # trailing colons and then remove the whole line if VPATH becomes empty
26439 # (actually we leave an empty line to preserve line numbers).
26440 if test "x$srcdir" = x.; then
26441   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26442 s/:*\$(srcdir):*/:/;
26443 s/:*\${srcdir}:*/:/;
26444 s/:*@srcdir@:*/:/;
26445 s/^\([^=]*=[     ]*\):*/\1/;
26446 s/:*$//;
26447 s/^[^=]*=[       ]*$//;
26448 }'
26449 fi
26450
26451 DEFS=-DHAVE_CONFIG_H
26452
26453 ac_libobjs=
26454 ac_ltlibobjs=
26455 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26456   # 1. Remove the extension, and $U if already installed.
26457   ac_i=`echo "$ac_i" |
26458          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26459   # 2. Add them.
26460   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26461   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26462 done
26463 LIBOBJS=$ac_libobjs
26464
26465 LTLIBOBJS=$ac_ltlibobjs
26466
26467
26468 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
26469   { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
26470 Usually this means the macro was only invoked conditionally." >&5
26471 echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
26472 Usually this means the macro was only invoked conditionally." >&2;}
26473    { (exit 1); exit 1; }; }
26474 fi
26475 if test -z "${ARCH_SPARC_TRUE}" && test -z "${ARCH_SPARC_FALSE}"; then
26476   { { echo "$as_me:$LINENO: error: conditional \"ARCH_SPARC\" was never defined.
26477 Usually this means the macro was only invoked conditionally." >&5
26478 echo "$as_me: error: conditional \"ARCH_SPARC\" was never defined.
26479 Usually this means the macro was only invoked conditionally." >&2;}
26480    { (exit 1); exit 1; }; }
26481 fi
26482 if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
26483   { { echo "$as_me:$LINENO: error: conditional \"ARCH_PPC\" was never defined.
26484 Usually this means the macro was only invoked conditionally." >&5
26485 echo "$as_me: error: conditional \"ARCH_PPC\" was never defined.
26486 Usually this means the macro was only invoked conditionally." >&2;}
26487    { (exit 1); exit 1; }; }
26488 fi
26489 if test -z "${ARCH_UNKNOWN_TRUE}" && test -z "${ARCH_UNKNOWN_FALSE}"; then
26490   { { echo "$as_me:$LINENO: error: conditional \"ARCH_UNKNOWN\" was never defined.
26491 Usually this means the macro was only invoked conditionally." >&5
26492 echo "$as_me: error: conditional \"ARCH_UNKNOWN\" was never defined.
26493 Usually this means the macro was only invoked conditionally." >&2;}
26494    { (exit 1); exit 1; }; }
26495 fi
26496 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26497   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26498 Usually this means the macro was only invoked conditionally." >&5
26499 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26500 Usually this means the macro was only invoked conditionally." >&2;}
26501    { (exit 1); exit 1; }; }
26502 fi
26503 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26504   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26505 Usually this means the macro was only invoked conditionally." >&5
26506 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26507 Usually this means the macro was only invoked conditionally." >&2;}
26508    { (exit 1); exit 1; }; }
26509 fi
26510 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26511   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26512 Usually this means the macro was only invoked conditionally." >&5
26513 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26514 Usually this means the macro was only invoked conditionally." >&2;}
26515    { (exit 1); exit 1; }; }
26516 fi
26517 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26518   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26519 Usually this means the macro was only invoked conditionally." >&5
26520 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26521 Usually this means the macro was only invoked conditionally." >&2;}
26522    { (exit 1); exit 1; }; }
26523 fi
26524
26525 : ${CONFIG_STATUS=./config.status}
26526 ac_clean_files_save=$ac_clean_files
26527 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26528 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26529 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26530 cat >$CONFIG_STATUS <<_ACEOF
26531 #! $SHELL
26532 # Generated by $as_me.
26533 # Run this file to recreate the current configuration.
26534 # Compiler output produced by configure, useful for debugging
26535 # configure, is in config.log if it exists.
26536
26537 debug=false
26538 ac_cs_recheck=false
26539 ac_cs_silent=false
26540 SHELL=\${CONFIG_SHELL-$SHELL}
26541 _ACEOF
26542
26543 cat >>$CONFIG_STATUS <<\_ACEOF
26544 ## --------------------- ##
26545 ## M4sh Initialization.  ##
26546 ## --------------------- ##
26547
26548 # Be Bourne compatible
26549 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26550   emulate sh
26551   NULLCMD=:
26552   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26553   # is contrary to our usage.  Disable this feature.
26554   alias -g '${1+"$@"}'='"$@"'
26555 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26556   set -o posix
26557 fi
26558 DUALCASE=1; export DUALCASE # for MKS sh
26559
26560 # Support unset when possible.
26561 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26562   as_unset=unset
26563 else
26564   as_unset=false
26565 fi
26566
26567
26568 # Work around bugs in pre-3.0 UWIN ksh.
26569 $as_unset ENV MAIL MAILPATH
26570 PS1='$ '
26571 PS2='> '
26572 PS4='+ '
26573
26574 # NLS nuisances.
26575 for as_var in \
26576   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26577   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26578   LC_TELEPHONE LC_TIME
26579 do
26580   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26581     eval $as_var=C; export $as_var
26582   else
26583     $as_unset $as_var
26584   fi
26585 done
26586
26587 # Required to use basename.
26588 if expr a : '\(a\)' >/dev/null 2>&1; then
26589   as_expr=expr
26590 else
26591   as_expr=false
26592 fi
26593
26594 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26595   as_basename=basename
26596 else
26597   as_basename=false
26598 fi
26599
26600
26601 # Name of the executable.
26602 as_me=`$as_basename "$0" ||
26603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26604          X"$0" : 'X\(//\)$' \| \
26605          X"$0" : 'X\(/\)$' \| \
26606          .     : '\(.\)' 2>/dev/null ||
26607 echo X/"$0" |
26608     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26609           /^X\/\(\/\/\)$/{ s//\1/; q; }
26610           /^X\/\(\/\).*/{ s//\1/; q; }
26611           s/.*/./; q'`
26612
26613
26614 # PATH needs CR, and LINENO needs CR and PATH.
26615 # Avoid depending upon Character Ranges.
26616 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26617 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26618 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26619 as_cr_digits='0123456789'
26620 as_cr_alnum=$as_cr_Letters$as_cr_digits
26621
26622 # The user is always right.
26623 if test "${PATH_SEPARATOR+set}" != set; then
26624   echo "#! /bin/sh" >conf$$.sh
26625   echo  "exit 0"   >>conf$$.sh
26626   chmod +x conf$$.sh
26627   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26628     PATH_SEPARATOR=';'
26629   else
26630     PATH_SEPARATOR=:
26631   fi
26632   rm -f conf$$.sh
26633 fi
26634
26635
26636   as_lineno_1=$LINENO
26637   as_lineno_2=$LINENO
26638   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26639   test "x$as_lineno_1" != "x$as_lineno_2" &&
26640   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26641   # Find who we are.  Look in the path if we contain no path at all
26642   # relative or not.
26643   case $0 in
26644     *[\\/]* ) as_myself=$0 ;;
26645     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26646 for as_dir in $PATH
26647 do
26648   IFS=$as_save_IFS
26649   test -z "$as_dir" && as_dir=.
26650   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26651 done
26652
26653        ;;
26654   esac
26655   # We did not find ourselves, most probably we were run as `sh COMMAND'
26656   # in which case we are not to be found in the path.
26657   if test "x$as_myself" = x; then
26658     as_myself=$0
26659   fi
26660   if test ! -f "$as_myself"; then
26661     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26662 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26663    { (exit 1); exit 1; }; }
26664   fi
26665   case $CONFIG_SHELL in
26666   '')
26667     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26668 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26669 do
26670   IFS=$as_save_IFS
26671   test -z "$as_dir" && as_dir=.
26672   for as_base in sh bash ksh sh5; do
26673          case $as_dir in
26674          /*)
26675            if ("$as_dir/$as_base" -c '
26676   as_lineno_1=$LINENO
26677   as_lineno_2=$LINENO
26678   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26679   test "x$as_lineno_1" != "x$as_lineno_2" &&
26680   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26681              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26682              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26683              CONFIG_SHELL=$as_dir/$as_base
26684              export CONFIG_SHELL
26685              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26686            fi;;
26687          esac
26688        done
26689 done
26690 ;;
26691   esac
26692
26693   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26694   # uniformly replaced by the line number.  The first 'sed' inserts a
26695   # line-number line before each line; the second 'sed' does the real
26696   # work.  The second script uses 'N' to pair each line-number line
26697   # with the numbered line, and appends trailing '-' during
26698   # substitution so that $LINENO is not a special case at line end.
26699   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26700   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26701   sed '=' <$as_myself |
26702     sed '
26703       N
26704       s,$,-,
26705       : loop
26706       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26707       t loop
26708       s,-$,,
26709       s,^['$as_cr_digits']*\n,,
26710     ' >$as_me.lineno &&
26711   chmod +x $as_me.lineno ||
26712     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26713 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26714    { (exit 1); exit 1; }; }
26715
26716   # Don't try to exec as it changes $[0], causing all sort of problems
26717   # (the dirname of $[0] is not the place where we might find the
26718   # original and so on.  Autoconf is especially sensible to this).
26719   . ./$as_me.lineno
26720   # Exit status is that of the last command.
26721   exit
26722 }
26723
26724
26725 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26726   *c*,-n*) ECHO_N= ECHO_C='
26727 ' ECHO_T='      ' ;;
26728   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26729   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26730 esac
26731
26732 if expr a : '\(a\)' >/dev/null 2>&1; then
26733   as_expr=expr
26734 else
26735   as_expr=false
26736 fi
26737
26738 rm -f conf$$ conf$$.exe conf$$.file
26739 echo >conf$$.file
26740 if ln -s conf$$.file conf$$ 2>/dev/null; then
26741   # We could just check for DJGPP; but this test a) works b) is more generic
26742   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26743   if test -f conf$$.exe; then
26744     # Don't use ln at all; we don't have any links
26745     as_ln_s='cp -p'
26746   else
26747     as_ln_s='ln -s'
26748   fi
26749 elif ln conf$$.file conf$$ 2>/dev/null; then
26750   as_ln_s=ln
26751 else
26752   as_ln_s='cp -p'
26753 fi
26754 rm -f conf$$ conf$$.exe conf$$.file
26755
26756 if mkdir -p . 2>/dev/null; then
26757   as_mkdir_p=:
26758 else
26759   test -d ./-p && rmdir ./-p
26760   as_mkdir_p=false
26761 fi
26762
26763 as_executable_p="test -f"
26764
26765 # Sed expression to map a string onto a valid CPP name.
26766 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26767
26768 # Sed expression to map a string onto a valid variable name.
26769 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26770
26771
26772 # IFS
26773 # We need space, tab and new line, in precisely that order.
26774 as_nl='
26775 '
26776 IFS="   $as_nl"
26777
26778 # CDPATH.
26779 $as_unset CDPATH
26780
26781 exec 6>&1
26782
26783 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26784 # report actual input values of CONFIG_FILES etc. instead of their
26785 # values after options handling.  Logging --version etc. is OK.
26786 exec 5>>config.log
26787 {
26788   echo
26789   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26790 ## Running $as_me. ##
26791 _ASBOX
26792 } >&5
26793 cat >&5 <<_CSEOF
26794
26795 This file was extended by LLVM $as_me 1.4, which was
26796 generated by GNU Autoconf 2.59.  Invocation command line was
26797
26798   CONFIG_FILES    = $CONFIG_FILES
26799   CONFIG_HEADERS  = $CONFIG_HEADERS
26800   CONFIG_LINKS    = $CONFIG_LINKS
26801   CONFIG_COMMANDS = $CONFIG_COMMANDS
26802   $ $0 $@
26803
26804 _CSEOF
26805 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26806 echo >&5
26807 _ACEOF
26808
26809 # Files that config.status was made for.
26810 if test -n "$ac_config_files"; then
26811   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26812 fi
26813
26814 if test -n "$ac_config_headers"; then
26815   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26816 fi
26817
26818 if test -n "$ac_config_links"; then
26819   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26820 fi
26821
26822 if test -n "$ac_config_commands"; then
26823   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26824 fi
26825
26826 cat >>$CONFIG_STATUS <<\_ACEOF
26827
26828 ac_cs_usage="\
26829 \`$as_me' instantiates files from templates according to the
26830 current configuration.
26831
26832 Usage: $0 [OPTIONS] [FILE]...
26833
26834   -h, --help       print this help, then exit
26835   -V, --version    print version number, then exit
26836   -q, --quiet      do not print progress messages
26837   -d, --debug      don't remove temporary files
26838       --recheck    update $as_me by reconfiguring in the same conditions
26839   --file=FILE[:TEMPLATE]
26840                    instantiate the configuration file FILE
26841   --header=FILE[:TEMPLATE]
26842                    instantiate the configuration header FILE
26843
26844 Configuration files:
26845 $config_files
26846
26847 Configuration headers:
26848 $config_headers
26849
26850 Configuration links:
26851 $config_links
26852
26853 Configuration commands:
26854 $config_commands
26855
26856 Report bugs to <bug-autoconf@gnu.org>."
26857 _ACEOF
26858
26859 cat >>$CONFIG_STATUS <<_ACEOF
26860 ac_cs_version="\\
26861 LLVM config.status 1.4
26862 configured by $0, generated by GNU Autoconf 2.59,
26863   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26864
26865 Copyright (C) 2003 Free Software Foundation, Inc.
26866 This config.status script is free software; the Free Software Foundation
26867 gives unlimited permission to copy, distribute and modify it."
26868 srcdir=$srcdir
26869 INSTALL="$INSTALL"
26870 _ACEOF
26871
26872 cat >>$CONFIG_STATUS <<\_ACEOF
26873 # If no file are specified by the user, then we need to provide default
26874 # value.  By we need to know if files were specified by the user.
26875 ac_need_defaults=:
26876 while test $# != 0
26877 do
26878   case $1 in
26879   --*=*)
26880     ac_option=`expr "x$1" : 'x\([^=]*\)='`
26881     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26882     ac_shift=:
26883     ;;
26884   -*)
26885     ac_option=$1
26886     ac_optarg=$2
26887     ac_shift=shift
26888     ;;
26889   *) # This is not an option, so the user has probably given explicit
26890      # arguments.
26891      ac_option=$1
26892      ac_need_defaults=false;;
26893   esac
26894
26895   case $ac_option in
26896   # Handling of the options.
26897 _ACEOF
26898 cat >>$CONFIG_STATUS <<\_ACEOF
26899   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26900     ac_cs_recheck=: ;;
26901   --version | --vers* | -V )
26902     echo "$ac_cs_version"; exit 0 ;;
26903   --he | --h)
26904     # Conflict between --help and --header
26905     { { echo "$as_me:$LINENO: error: ambiguous option: $1
26906 Try \`$0 --help' for more information." >&5
26907 echo "$as_me: error: ambiguous option: $1
26908 Try \`$0 --help' for more information." >&2;}
26909    { (exit 1); exit 1; }; };;
26910   --help | --hel | -h )
26911     echo "$ac_cs_usage"; exit 0 ;;
26912   --debug | --d* | -d )
26913     debug=: ;;
26914   --file | --fil | --fi | --f )
26915     $ac_shift
26916     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26917     ac_need_defaults=false;;
26918   --header | --heade | --head | --hea )
26919     $ac_shift
26920     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26921     ac_need_defaults=false;;
26922   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26923   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26924     ac_cs_silent=: ;;
26925
26926   # This is an error.
26927   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26928 Try \`$0 --help' for more information." >&5
26929 echo "$as_me: error: unrecognized option: $1
26930 Try \`$0 --help' for more information." >&2;}
26931    { (exit 1); exit 1; }; } ;;
26932
26933   *) ac_config_targets="$ac_config_targets $1" ;;
26934
26935   esac
26936   shift
26937 done
26938
26939 ac_configure_extra_args=
26940
26941 if $ac_cs_silent; then
26942   exec 6>/dev/null
26943   ac_configure_extra_args="$ac_configure_extra_args --silent"
26944 fi
26945
26946 _ACEOF
26947 cat >>$CONFIG_STATUS <<_ACEOF
26948 if \$ac_cs_recheck; then
26949   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26950   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26951 fi
26952
26953 _ACEOF
26954
26955 cat >>$CONFIG_STATUS <<_ACEOF
26956 #
26957 # INIT-COMMANDS section.
26958 #
26959
26960 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26961
26962 _ACEOF
26963
26964
26965
26966 cat >>$CONFIG_STATUS <<\_ACEOF
26967 for ac_config_target in $ac_config_targets
26968 do
26969   case "$ac_config_target" in
26970   # Handling of arguments.
26971   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26972   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26973   "lib/Analysis/IPA/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/IPA/Makefile" ;;
26974   "lib/Analysis/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/Makefile" ;;
26975   "lib/Analysis/DataStructure/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/DataStructure/Makefile" ;;
26976   "lib/AsmParser/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/AsmParser/Makefile" ;;
26977   "lib/System/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/System/Makefile" ;;
26978   "lib/Bytecode/Reader/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Reader/Makefile" ;;
26979   "lib/Bytecode/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Makefile" ;;
26980   "lib/Bytecode/Writer/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Writer/Makefile" ;;
26981   "lib/Bytecode/Archive/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Archive/Makefile" ;;
26982   "lib/CodeGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/Makefile" ;;
26983   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/ModuloScheduling/Makefile" ;;
26984   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/SelectionDAG/Makefile" ;;
26985   "lib/Debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Debugger/Makefile" ;;
26986   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/Interpreter/Makefile" ;;
26987   "lib/ExecutionEngine/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/Makefile" ;;
26988   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/JIT/Makefile" ;;
26989   "lib/Support/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Support/Makefile" ;;
26990   "lib/Target/CBackend/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/CBackend/Makefile" ;;
26991   "lib/Target/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/Makefile" ;;
26992   "lib/Target/Skeleton/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/Skeleton/Makefile" ;;
26993   "lib/Target/PowerPC/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/PowerPC/Makefile" ;;
26994   "lib/Target/SparcV9/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/Makefile" ;;
26995   "lib/Target/SparcV9/InstrSched/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/InstrSched/Makefile" ;;
26996   "lib/Target/SparcV9/LiveVar/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/LiveVar/Makefile" ;;
26997   "lib/Target/SparcV9/RegAlloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/RegAlloc/Makefile" ;;
26998   "lib/Target/X86/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/X86/Makefile" ;;
26999   "lib/Transforms/Hello/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Hello/Makefile" ;;
27000   "lib/Transforms/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Makefile" ;;
27001   "lib/Transforms/IPO/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/IPO/Makefile" ;;
27002   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
27003   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Instrumentation/Makefile" ;;
27004   "lib/Transforms/Scalar/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Scalar/Makefile" ;;
27005   "lib/Transforms/Utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Utils/Makefile" ;;
27006   "lib/VMCore/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/VMCore/Makefile" ;;
27007   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27008   "utils/Burg/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Burg/Makefile" ;;
27009   "utils/fpcmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/fpcmp/Makefile" ;;
27010   "utils/TableGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/TableGen/Makefile" ;;
27011   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27012   "tools/analyze/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/analyze/Makefile" ;;
27013   "tools/llvmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/Makefile" ;;
27014   "tools/bugpoint/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/bugpoint/Makefile" ;;
27015   "tools/extract/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/extract/Makefile" ;;
27016   "tools/gccas/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gccas/Makefile" ;;
27017   "tools/gccld/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gccld/Makefile" ;;
27018   "tools/llvm-bcanalyzer/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-bcanalyzer/Makefile" ;;
27019   "tools/llc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llc/Makefile" ;;
27020   "tools/llee/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llee/Makefile" ;;
27021   "tools/lli/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/lli/Makefile" ;;
27022   "tools/llvm-ar/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-ar/Makefile" ;;
27023   "tools/llvm-as/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-as/Makefile" ;;
27024   "tools/llvm-db/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-db/Makefile" ;;
27025   "tools/llvm-dis/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-dis/Makefile" ;;
27026   "tools/llvm-link/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-link/Makefile" ;;
27027   "tools/llvm-nm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-nm/Makefile" ;;
27028   "tools/llvm-prof/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-prof/Makefile" ;;
27029   "tools/opt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/opt/Makefile" ;;
27030   "tools/llvm-ld/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-ld/Makefile" ;;
27031   "tools/llvm-stub/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-stub/Makefile" ;;
27032   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_platform_type" ;;
27033   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27034   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
27035   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
27036   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
27037   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
27038   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
27039   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
27040   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27041 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27042    { (exit 1); exit 1; }; };;
27043   esac
27044 done
27045
27046 # If the user did not use the arguments to specify the items to instantiate,
27047 # then the envvar interface is used.  Set only those that are not.
27048 # We use the long form for the default assignment because of an extremely
27049 # bizarre bug on SunOS 4.1.3.
27050 if $ac_need_defaults; then
27051   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27052   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27053   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27054   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27055 fi
27056
27057 # Have a temporary directory for convenience.  Make it in the build tree
27058 # simply because there is no reason to put it here, and in addition,
27059 # creating and moving files from /tmp can sometimes cause problems.
27060 # Create a temporary directory, and hook for its removal unless debugging.
27061 $debug ||
27062 {
27063   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27064   trap '{ (exit 1); exit 1; }' 1 2 13 15
27065 }
27066
27067 # Create a (secure) tmp directory for tmp files.
27068
27069 {
27070   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27071   test -n "$tmp" && test -d "$tmp"
27072 }  ||
27073 {
27074   tmp=./confstat$$-$RANDOM
27075   (umask 077 && mkdir $tmp)
27076 } ||
27077 {
27078    echo "$me: cannot create a temporary directory in ." >&2
27079    { (exit 1); exit 1; }
27080 }
27081
27082 _ACEOF
27083
27084 cat >>$CONFIG_STATUS <<_ACEOF
27085
27086 #
27087 # CONFIG_FILES section.
27088 #
27089
27090 # No need to generate the scripts if there are no CONFIG_FILES.
27091 # This happens for instance when ./config.status config.h
27092 if test -n "\$CONFIG_FILES"; then
27093   # Protect against being on the right side of a sed subst in config.status.
27094   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27095    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27096 s,@SHELL@,$SHELL,;t t
27097 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27098 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27099 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27100 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27101 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27102 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27103 s,@exec_prefix@,$exec_prefix,;t t
27104 s,@prefix@,$prefix,;t t
27105 s,@program_transform_name@,$program_transform_name,;t t
27106 s,@bindir@,$bindir,;t t
27107 s,@sbindir@,$sbindir,;t t
27108 s,@libexecdir@,$libexecdir,;t t
27109 s,@datadir@,$datadir,;t t
27110 s,@sysconfdir@,$sysconfdir,;t t
27111 s,@sharedstatedir@,$sharedstatedir,;t t
27112 s,@localstatedir@,$localstatedir,;t t
27113 s,@libdir@,$libdir,;t t
27114 s,@includedir@,$includedir,;t t
27115 s,@oldincludedir@,$oldincludedir,;t t
27116 s,@infodir@,$infodir,;t t
27117 s,@mandir@,$mandir,;t t
27118 s,@build_alias@,$build_alias,;t t
27119 s,@host_alias@,$host_alias,;t t
27120 s,@target_alias@,$target_alias,;t t
27121 s,@DEFS@,$DEFS,;t t
27122 s,@ECHO_C@,$ECHO_C,;t t
27123 s,@ECHO_N@,$ECHO_N,;t t
27124 s,@ECHO_T@,$ECHO_T,;t t
27125 s,@LIBS@,$LIBS,;t t
27126 s,@build@,$build,;t t
27127 s,@build_cpu@,$build_cpu,;t t
27128 s,@build_vendor@,$build_vendor,;t t
27129 s,@build_os@,$build_os,;t t
27130 s,@host@,$host,;t t
27131 s,@host_cpu@,$host_cpu,;t t
27132 s,@host_vendor@,$host_vendor,;t t
27133 s,@host_os@,$host_os,;t t
27134 s,@target@,$target,;t t
27135 s,@target_cpu@,$target_cpu,;t t
27136 s,@target_vendor@,$target_vendor,;t t
27137 s,@target_os@,$target_os,;t t
27138 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27139 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27140 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27141 s,@CYGPATH_W@,$CYGPATH_W,;t t
27142 s,@PACKAGE@,$PACKAGE,;t t
27143 s,@VERSION@,$VERSION,;t t
27144 s,@ACLOCAL@,$ACLOCAL,;t t
27145 s,@AUTOCONF@,$AUTOCONF,;t t
27146 s,@AUTOMAKE@,$AUTOMAKE,;t t
27147 s,@AUTOHEADER@,$AUTOHEADER,;t t
27148 s,@MAKEINFO@,$MAKEINFO,;t t
27149 s,@install_sh@,$install_sh,;t t
27150 s,@STRIP@,$STRIP,;t t
27151 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27152 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27153 s,@mkdir_p@,$mkdir_p,;t t
27154 s,@AWK@,$AWK,;t t
27155 s,@SET_MAKE@,$SET_MAKE,;t t
27156 s,@am__leading_dot@,$am__leading_dot,;t t
27157 s,@AMTAR@,$AMTAR,;t t
27158 s,@am__tar@,$am__tar,;t t
27159 s,@am__untar@,$am__untar,;t t
27160 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
27161 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
27162 s,@ENABLE_PROFILED@,$ENABLE_PROFILED,;t t
27163 s,@BUILDMODE@,$BUILDMODE,;t t
27164 s,@JIT@,$JIT,;t t
27165 s,@OS@,$OS,;t t
27166 s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
27167 s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
27168 s,@ARCH_SPARC_TRUE@,$ARCH_SPARC_TRUE,;t t
27169 s,@ARCH_SPARC_FALSE@,$ARCH_SPARC_FALSE,;t t
27170 s,@ARCH_PPC_TRUE@,$ARCH_PPC_TRUE,;t t
27171 s,@ARCH_PPC_FALSE@,$ARCH_PPC_FALSE,;t t
27172 s,@ARCH_UNKNOWN_TRUE@,$ARCH_UNKNOWN_TRUE,;t t
27173 s,@ARCH_UNKNOWN_FALSE@,$ARCH_UNKNOWN_FALSE,;t t
27174 s,@ARCH@,$ARCH,;t t
27175 s,@ENDIAN@,$ENDIAN,;t t
27176 s,@CC@,$CC,;t t
27177 s,@CFLAGS@,$CFLAGS,;t t
27178 s,@LDFLAGS@,$LDFLAGS,;t t
27179 s,@CPPFLAGS@,$CPPFLAGS,;t t
27180 s,@ac_ct_CC@,$ac_ct_CC,;t t
27181 s,@EXEEXT@,$EXEEXT,;t t
27182 s,@OBJEXT@,$OBJEXT,;t t
27183 s,@DEPDIR@,$DEPDIR,;t t
27184 s,@am__include@,$am__include,;t t
27185 s,@am__quote@,$am__quote,;t t
27186 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27187 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27188 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27189 s,@CCDEPMODE@,$CCDEPMODE,;t t
27190 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27191 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27192 s,@CXX@,$CXX,;t t
27193 s,@CXXFLAGS@,$CXXFLAGS,;t t
27194 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27195 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27196 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27197 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27198 s,@CPP@,$CPP,;t t
27199 s,@LEX@,$LEX,;t t
27200 s,@LEXLIB@,$LEXLIB,;t t
27201 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
27202 s,@FLEX@,$FLEX,;t t
27203 s,@YACC@,$YACC,;t t
27204 s,@BISON@,$BISON,;t t
27205 s,@EGREP@,$EGREP,;t t
27206 s,@LN_S@,$LN_S,;t t
27207 s,@ECHO@,$ECHO,;t t
27208 s,@AR@,$AR,;t t
27209 s,@ac_ct_AR@,$ac_ct_AR,;t t
27210 s,@RANLIB@,$RANLIB,;t t
27211 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27212 s,@CXXCPP@,$CXXCPP,;t t
27213 s,@F77@,$F77,;t t
27214 s,@FFLAGS@,$FFLAGS,;t t
27215 s,@ac_ct_F77@,$ac_ct_F77,;t t
27216 s,@LIBTOOL@,$LIBTOOL,;t t
27217 s,@DOT@,$DOT,;t t
27218 s,@ETAGS@,$ETAGS,;t t
27219 s,@PYTHON@,$PYTHON,;t t
27220 s,@QMTEST@,$QMTEST,;t t
27221 s,@ifGNUmake@,$ifGNUmake,;t t
27222 s,@LLVMCC1@,$LLVMCC1,;t t
27223 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
27224 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
27225 s,@ALLOCA@,$ALLOCA,;t t
27226 s,@MMAP_FILE@,$MMAP_FILE,;t t
27227 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
27228 s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
27229 s,@SHLIBEXT@,$SHLIBEXT,;t t
27230 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
27231 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
27232 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
27233 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
27234 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
27235 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
27236 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
27237 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
27238 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
27239 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
27240 s,@subdirs@,$subdirs,;t t
27241 s,@LIBOBJS@,$LIBOBJS,;t t
27242 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27243 CEOF
27244
27245 _ACEOF
27246
27247   cat >>$CONFIG_STATUS <<\_ACEOF
27248   # Split the substitutions into bite-sized pieces for seds with
27249   # small command number limits, like on Digital OSF/1 and HP-UX.
27250   ac_max_sed_lines=48
27251   ac_sed_frag=1 # Number of current file.
27252   ac_beg=1 # First line for current file.
27253   ac_end=$ac_max_sed_lines # Line after last line for current file.
27254   ac_more_lines=:
27255   ac_sed_cmds=
27256   while $ac_more_lines; do
27257     if test $ac_beg -gt 1; then
27258       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27259     else
27260       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27261     fi
27262     if test ! -s $tmp/subs.frag; then
27263       ac_more_lines=false
27264     else
27265       # The purpose of the label and of the branching condition is to
27266       # speed up the sed processing (if there are no `@' at all, there
27267       # is no need to browse any of the substitutions).
27268       # These are the two extra sed commands mentioned above.
27269       (echo ':t
27270   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27271       if test -z "$ac_sed_cmds"; then
27272         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27273       else
27274         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27275       fi
27276       ac_sed_frag=`expr $ac_sed_frag + 1`
27277       ac_beg=$ac_end
27278       ac_end=`expr $ac_end + $ac_max_sed_lines`
27279     fi
27280   done
27281   if test -z "$ac_sed_cmds"; then
27282     ac_sed_cmds=cat
27283   fi
27284 fi # test -n "$CONFIG_FILES"
27285
27286 _ACEOF
27287 cat >>$CONFIG_STATUS <<\_ACEOF
27288 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27289   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27290   case $ac_file in
27291   - | *:- | *:-:* ) # input from stdin
27292         cat >$tmp/stdin
27293         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27294         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27295   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27296         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27297   * )   ac_file_in=$ac_file.in ;;
27298   esac
27299
27300   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27301   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27302 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27303          X"$ac_file" : 'X\(//\)[^/]' \| \
27304          X"$ac_file" : 'X\(//\)$' \| \
27305          X"$ac_file" : 'X\(/\)' \| \
27306          .     : '\(.\)' 2>/dev/null ||
27307 echo X"$ac_file" |
27308     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27309           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27310           /^X\(\/\/\)$/{ s//\1/; q; }
27311           /^X\(\/\).*/{ s//\1/; q; }
27312           s/.*/./; q'`
27313   { if $as_mkdir_p; then
27314     mkdir -p "$ac_dir"
27315   else
27316     as_dir="$ac_dir"
27317     as_dirs=
27318     while test ! -d "$as_dir"; do
27319       as_dirs="$as_dir $as_dirs"
27320       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27322          X"$as_dir" : 'X\(//\)[^/]' \| \
27323          X"$as_dir" : 'X\(//\)$' \| \
27324          X"$as_dir" : 'X\(/\)' \| \
27325          .     : '\(.\)' 2>/dev/null ||
27326 echo X"$as_dir" |
27327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27328           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27329           /^X\(\/\/\)$/{ s//\1/; q; }
27330           /^X\(\/\).*/{ s//\1/; q; }
27331           s/.*/./; q'`
27332     done
27333     test ! -n "$as_dirs" || mkdir $as_dirs
27334   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27335 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27336    { (exit 1); exit 1; }; }; }
27337
27338   ac_builddir=.
27339
27340 if test "$ac_dir" != .; then
27341   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27342   # A "../" for each directory in $ac_dir_suffix.
27343   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27344 else
27345   ac_dir_suffix= ac_top_builddir=
27346 fi
27347
27348 case $srcdir in
27349   .)  # No --srcdir option.  We are building in place.
27350     ac_srcdir=.
27351     if test -z "$ac_top_builddir"; then
27352        ac_top_srcdir=.
27353     else
27354        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27355     fi ;;
27356   [\\/]* | ?:[\\/]* )  # Absolute path.
27357     ac_srcdir=$srcdir$ac_dir_suffix;
27358     ac_top_srcdir=$srcdir ;;
27359   *) # Relative path.
27360     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27361     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27362 esac
27363
27364 # Do not use `cd foo && pwd` to compute absolute paths, because
27365 # the directories may not exist.
27366 case `pwd` in
27367 .) ac_abs_builddir="$ac_dir";;
27368 *)
27369   case "$ac_dir" in
27370   .) ac_abs_builddir=`pwd`;;
27371   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27372   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27373   esac;;
27374 esac
27375 case $ac_abs_builddir in
27376 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27377 *)
27378   case ${ac_top_builddir}. in
27379   .) ac_abs_top_builddir=$ac_abs_builddir;;
27380   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27381   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27382   esac;;
27383 esac
27384 case $ac_abs_builddir in
27385 .) ac_abs_srcdir=$ac_srcdir;;
27386 *)
27387   case $ac_srcdir in
27388   .) ac_abs_srcdir=$ac_abs_builddir;;
27389   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27390   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27391   esac;;
27392 esac
27393 case $ac_abs_builddir in
27394 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27395 *)
27396   case $ac_top_srcdir in
27397   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27398   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27399   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27400   esac;;
27401 esac
27402
27403
27404   case $INSTALL in
27405   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27406   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27407   esac
27408
27409   if test x"$ac_file" != x-; then
27410     { echo "$as_me:$LINENO: creating $ac_file" >&5
27411 echo "$as_me: creating $ac_file" >&6;}
27412     rm -f "$ac_file"
27413   fi
27414   # Let's still pretend it is `configure' which instantiates (i.e., don't
27415   # use $as_me), people would be surprised to read:
27416   #    /* config.h.  Generated by config.status.  */
27417   if test x"$ac_file" = x-; then
27418     configure_input=
27419   else
27420     configure_input="$ac_file.  "
27421   fi
27422   configure_input=$configure_input"Generated from `echo $ac_file_in |
27423                                      sed 's,.*/,,'` by configure."
27424
27425   # First look for the input files in the build tree, otherwise in the
27426   # src tree.
27427   ac_file_inputs=`IFS=:
27428     for f in $ac_file_in; do
27429       case $f in
27430       -) echo $tmp/stdin ;;
27431       [\\/$]*)
27432          # Absolute (can't be DOS-style, as IFS=:)
27433          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27434 echo "$as_me: error: cannot find input file: $f" >&2;}
27435    { (exit 1); exit 1; }; }
27436          echo "$f";;
27437       *) # Relative
27438          if test -f "$f"; then
27439            # Build tree
27440            echo "$f"
27441          elif test -f "$srcdir/$f"; then
27442            # Source tree
27443            echo "$srcdir/$f"
27444          else
27445            # /dev/null tree
27446            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27447 echo "$as_me: error: cannot find input file: $f" >&2;}
27448    { (exit 1); exit 1; }; }
27449          fi;;
27450       esac
27451     done` || { (exit 1); exit 1; }
27452 _ACEOF
27453 cat >>$CONFIG_STATUS <<_ACEOF
27454   sed "$ac_vpsub
27455 $extrasub
27456 _ACEOF
27457 cat >>$CONFIG_STATUS <<\_ACEOF
27458 :t
27459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27460 s,@configure_input@,$configure_input,;t t
27461 s,@srcdir@,$ac_srcdir,;t t
27462 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27463 s,@top_srcdir@,$ac_top_srcdir,;t t
27464 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27465 s,@builddir@,$ac_builddir,;t t
27466 s,@abs_builddir@,$ac_abs_builddir,;t t
27467 s,@top_builddir@,$ac_top_builddir,;t t
27468 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27469 s,@INSTALL@,$ac_INSTALL,;t t
27470 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27471   rm -f $tmp/stdin
27472   if test x"$ac_file" != x-; then
27473     mv $tmp/out $ac_file
27474   else
27475     cat $tmp/out
27476     rm -f $tmp/out
27477   fi
27478
27479 done
27480 _ACEOF
27481 cat >>$CONFIG_STATUS <<\_ACEOF
27482
27483 #
27484 # CONFIG_HEADER section.
27485 #
27486
27487 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27488 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27489 #
27490 # ac_d sets the value in "#define NAME VALUE" lines.
27491 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27492 ac_dB='[         ].*$,\1#\2'
27493 ac_dC=' '
27494 ac_dD=',;t'
27495 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27496 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27497 ac_uB='$,\1#\2define\3'
27498 ac_uC=' '
27499 ac_uD=',;t'
27500
27501 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27502   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27503   case $ac_file in
27504   - | *:- | *:-:* ) # input from stdin
27505         cat >$tmp/stdin
27506         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27507         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27508   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27509         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27510   * )   ac_file_in=$ac_file.in ;;
27511   esac
27512
27513   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27514 echo "$as_me: creating $ac_file" >&6;}
27515
27516   # First look for the input files in the build tree, otherwise in the
27517   # src tree.
27518   ac_file_inputs=`IFS=:
27519     for f in $ac_file_in; do
27520       case $f in
27521       -) echo $tmp/stdin ;;
27522       [\\/$]*)
27523          # Absolute (can't be DOS-style, as IFS=:)
27524          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27525 echo "$as_me: error: cannot find input file: $f" >&2;}
27526    { (exit 1); exit 1; }; }
27527          # Do quote $f, to prevent DOS paths from being IFS'd.
27528          echo "$f";;
27529       *) # Relative
27530          if test -f "$f"; then
27531            # Build tree
27532            echo "$f"
27533          elif test -f "$srcdir/$f"; then
27534            # Source tree
27535            echo "$srcdir/$f"
27536          else
27537            # /dev/null tree
27538            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27539 echo "$as_me: error: cannot find input file: $f" >&2;}
27540    { (exit 1); exit 1; }; }
27541          fi;;
27542       esac
27543     done` || { (exit 1); exit 1; }
27544   # Remove the trailing spaces.
27545   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27546
27547 _ACEOF
27548
27549 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27550 # `conftest.undefs', that substitutes the proper values into
27551 # config.h.in to produce config.h.  The first handles `#define'
27552 # templates, and the second `#undef' templates.
27553 # And first: Protect against being on the right side of a sed subst in
27554 # config.status.  Protect against being in an unquoted here document
27555 # in config.status.
27556 rm -f conftest.defines conftest.undefs
27557 # Using a here document instead of a string reduces the quoting nightmare.
27558 # Putting comments in sed scripts is not portable.
27559 #
27560 # `end' is used to avoid that the second main sed command (meant for
27561 # 0-ary CPP macros) applies to n-ary macro definitions.
27562 # See the Autoconf documentation for `clear'.
27563 cat >confdef2sed.sed <<\_ACEOF
27564 s/[\\&,]/\\&/g
27565 s,[\\$`],\\&,g
27566 t clear
27567 : clear
27568 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27569 t end
27570 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27571 : end
27572 _ACEOF
27573 # If some macros were called several times there might be several times
27574 # the same #defines, which is useless.  Nevertheless, we may not want to
27575 # sort them, since we want the *last* AC-DEFINE to be honored.
27576 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27577 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27578 rm -f confdef2sed.sed
27579
27580 # This sed command replaces #undef with comments.  This is necessary, for
27581 # example, in the case of _POSIX_SOURCE, which is predefined and required
27582 # on some systems where configure will not decide to define it.
27583 cat >>conftest.undefs <<\_ACEOF
27584 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27585 _ACEOF
27586
27587 # Break up conftest.defines because some shells have a limit on the size
27588 # of here documents, and old seds have small limits too (100 cmds).
27589 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27590 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27591 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27592 echo '  :' >>$CONFIG_STATUS
27593 rm -f conftest.tail
27594 while grep . conftest.defines >/dev/null
27595 do
27596   # Write a limited-size here document to $tmp/defines.sed.
27597   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27598   # Speed up: don't consider the non `#define' lines.
27599   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27600   # Work around the forget-to-reset-the-flag bug.
27601   echo 't clr' >>$CONFIG_STATUS
27602   echo ': clr' >>$CONFIG_STATUS
27603   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27604   echo 'CEOF
27605   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27606   rm -f $tmp/in
27607   mv $tmp/out $tmp/in
27608 ' >>$CONFIG_STATUS
27609   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27610   rm -f conftest.defines
27611   mv conftest.tail conftest.defines
27612 done
27613 rm -f conftest.defines
27614 echo '  fi # grep' >>$CONFIG_STATUS
27615 echo >>$CONFIG_STATUS
27616
27617 # Break up conftest.undefs because some shells have a limit on the size
27618 # of here documents, and old seds have small limits too (100 cmds).
27619 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27620 rm -f conftest.tail
27621 while grep . conftest.undefs >/dev/null
27622 do
27623   # Write a limited-size here document to $tmp/undefs.sed.
27624   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27625   # Speed up: don't consider the non `#undef'
27626   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27627   # Work around the forget-to-reset-the-flag bug.
27628   echo 't clr' >>$CONFIG_STATUS
27629   echo ': clr' >>$CONFIG_STATUS
27630   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27631   echo 'CEOF
27632   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27633   rm -f $tmp/in
27634   mv $tmp/out $tmp/in
27635 ' >>$CONFIG_STATUS
27636   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27637   rm -f conftest.undefs
27638   mv conftest.tail conftest.undefs
27639 done
27640 rm -f conftest.undefs
27641
27642 cat >>$CONFIG_STATUS <<\_ACEOF
27643   # Let's still pretend it is `configure' which instantiates (i.e., don't
27644   # use $as_me), people would be surprised to read:
27645   #    /* config.h.  Generated by config.status.  */
27646   if test x"$ac_file" = x-; then
27647     echo "/* Generated by configure.  */" >$tmp/config.h
27648   else
27649     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27650   fi
27651   cat $tmp/in >>$tmp/config.h
27652   rm -f $tmp/in
27653   if test x"$ac_file" != x-; then
27654     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27655       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27656 echo "$as_me: $ac_file is unchanged" >&6;}
27657     else
27658       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27659 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27660          X"$ac_file" : 'X\(//\)[^/]' \| \
27661          X"$ac_file" : 'X\(//\)$' \| \
27662          X"$ac_file" : 'X\(/\)' \| \
27663          .     : '\(.\)' 2>/dev/null ||
27664 echo X"$ac_file" |
27665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27666           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27667           /^X\(\/\/\)$/{ s//\1/; q; }
27668           /^X\(\/\).*/{ s//\1/; q; }
27669           s/.*/./; q'`
27670       { if $as_mkdir_p; then
27671     mkdir -p "$ac_dir"
27672   else
27673     as_dir="$ac_dir"
27674     as_dirs=
27675     while test ! -d "$as_dir"; do
27676       as_dirs="$as_dir $as_dirs"
27677       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27679          X"$as_dir" : 'X\(//\)[^/]' \| \
27680          X"$as_dir" : 'X\(//\)$' \| \
27681          X"$as_dir" : 'X\(/\)' \| \
27682          .     : '\(.\)' 2>/dev/null ||
27683 echo X"$as_dir" |
27684     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27685           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27686           /^X\(\/\/\)$/{ s//\1/; q; }
27687           /^X\(\/\).*/{ s//\1/; q; }
27688           s/.*/./; q'`
27689     done
27690     test ! -n "$as_dirs" || mkdir $as_dirs
27691   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27692 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27693    { (exit 1); exit 1; }; }; }
27694
27695       rm -f $ac_file
27696       mv $tmp/config.h $ac_file
27697     fi
27698   else
27699     cat $tmp/config.h
27700     rm -f $tmp/config.h
27701   fi
27702 # Compute $ac_file's index in $config_headers.
27703 _am_stamp_count=1
27704 for _am_header in $config_headers :; do
27705   case $_am_header in
27706     $ac_file | $ac_file:* )
27707       break ;;
27708     * )
27709       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27710   esac
27711 done
27712 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27713 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27714          X$ac_file : 'X\(//\)[^/]' \| \
27715          X$ac_file : 'X\(//\)$' \| \
27716          X$ac_file : 'X\(/\)' \| \
27717          .     : '\(.\)' 2>/dev/null ||
27718 echo X$ac_file |
27719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27721           /^X\(\/\/\)$/{ s//\1/; q; }
27722           /^X\(\/\).*/{ s//\1/; q; }
27723           s/.*/./; q'`/stamp-h$_am_stamp_count
27724 done
27725 _ACEOF
27726 cat >>$CONFIG_STATUS <<\_ACEOF
27727
27728 #
27729 # CONFIG_LINKS section.
27730 #
27731
27732 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27733   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27734   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27735
27736   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27737 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27738
27739   if test ! -r $srcdir/$ac_source; then
27740     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27741 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27742    { (exit 1); exit 1; }; }
27743   fi
27744   rm -f $ac_dest
27745
27746   # Make relative symlinks.
27747   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27748 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27749          X"$ac_dest" : 'X\(//\)[^/]' \| \
27750          X"$ac_dest" : 'X\(//\)$' \| \
27751          X"$ac_dest" : 'X\(/\)' \| \
27752          .     : '\(.\)' 2>/dev/null ||
27753 echo X"$ac_dest" |
27754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27755           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27756           /^X\(\/\/\)$/{ s//\1/; q; }
27757           /^X\(\/\).*/{ s//\1/; q; }
27758           s/.*/./; q'`
27759   { if $as_mkdir_p; then
27760     mkdir -p "$ac_dest_dir"
27761   else
27762     as_dir="$ac_dest_dir"
27763     as_dirs=
27764     while test ! -d "$as_dir"; do
27765       as_dirs="$as_dir $as_dirs"
27766       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27768          X"$as_dir" : 'X\(//\)[^/]' \| \
27769          X"$as_dir" : 'X\(//\)$' \| \
27770          X"$as_dir" : 'X\(/\)' \| \
27771          .     : '\(.\)' 2>/dev/null ||
27772 echo X"$as_dir" |
27773     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27774           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27775           /^X\(\/\/\)$/{ s//\1/; q; }
27776           /^X\(\/\).*/{ s//\1/; q; }
27777           s/.*/./; q'`
27778     done
27779     test ! -n "$as_dirs" || mkdir $as_dirs
27780   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27781 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27782    { (exit 1); exit 1; }; }; }
27783
27784   ac_builddir=.
27785
27786 if test "$ac_dest_dir" != .; then
27787   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27788   # A "../" for each directory in $ac_dir_suffix.
27789   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27790 else
27791   ac_dir_suffix= ac_top_builddir=
27792 fi
27793
27794 case $srcdir in
27795   .)  # No --srcdir option.  We are building in place.
27796     ac_srcdir=.
27797     if test -z "$ac_top_builddir"; then
27798        ac_top_srcdir=.
27799     else
27800        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27801     fi ;;
27802   [\\/]* | ?:[\\/]* )  # Absolute path.
27803     ac_srcdir=$srcdir$ac_dir_suffix;
27804     ac_top_srcdir=$srcdir ;;
27805   *) # Relative path.
27806     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27807     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27808 esac
27809
27810 # Do not use `cd foo && pwd` to compute absolute paths, because
27811 # the directories may not exist.
27812 case `pwd` in
27813 .) ac_abs_builddir="$ac_dest_dir";;
27814 *)
27815   case "$ac_dest_dir" in
27816   .) ac_abs_builddir=`pwd`;;
27817   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27818   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27819   esac;;
27820 esac
27821 case $ac_abs_builddir in
27822 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27823 *)
27824   case ${ac_top_builddir}. in
27825   .) ac_abs_top_builddir=$ac_abs_builddir;;
27826   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27827   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27828   esac;;
27829 esac
27830 case $ac_abs_builddir in
27831 .) ac_abs_srcdir=$ac_srcdir;;
27832 *)
27833   case $ac_srcdir in
27834   .) ac_abs_srcdir=$ac_abs_builddir;;
27835   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27836   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27837   esac;;
27838 esac
27839 case $ac_abs_builddir in
27840 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27841 *)
27842   case $ac_top_srcdir in
27843   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27844   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27845   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27846   esac;;
27847 esac
27848
27849
27850   case $srcdir in
27851   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27852       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27853   esac
27854
27855   # Try a symlink, then a hard link, then a copy.
27856   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27857     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27858     cp -p $srcdir/$ac_source $ac_dest ||
27859     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27860 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27861    { (exit 1); exit 1; }; }
27862 done
27863 _ACEOF
27864 cat >>$CONFIG_STATUS <<\_ACEOF
27865
27866 #
27867 # CONFIG_COMMANDS section.
27868 #
27869 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27870   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27871   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27872   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27873 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27874          X"$ac_dest" : 'X\(//\)[^/]' \| \
27875          X"$ac_dest" : 'X\(//\)$' \| \
27876          X"$ac_dest" : 'X\(/\)' \| \
27877          .     : '\(.\)' 2>/dev/null ||
27878 echo X"$ac_dest" |
27879     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27880           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27881           /^X\(\/\/\)$/{ s//\1/; q; }
27882           /^X\(\/\).*/{ s//\1/; q; }
27883           s/.*/./; q'`
27884   { if $as_mkdir_p; then
27885     mkdir -p "$ac_dir"
27886   else
27887     as_dir="$ac_dir"
27888     as_dirs=
27889     while test ! -d "$as_dir"; do
27890       as_dirs="$as_dir $as_dirs"
27891       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27893          X"$as_dir" : 'X\(//\)[^/]' \| \
27894          X"$as_dir" : 'X\(//\)$' \| \
27895          X"$as_dir" : 'X\(/\)' \| \
27896          .     : '\(.\)' 2>/dev/null ||
27897 echo X"$as_dir" |
27898     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27899           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27900           /^X\(\/\/\)$/{ s//\1/; q; }
27901           /^X\(\/\).*/{ s//\1/; q; }
27902           s/.*/./; q'`
27903     done
27904     test ! -n "$as_dirs" || mkdir $as_dirs
27905   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27906 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27907    { (exit 1); exit 1; }; }; }
27908
27909   ac_builddir=.
27910
27911 if test "$ac_dir" != .; then
27912   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27913   # A "../" for each directory in $ac_dir_suffix.
27914   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27915 else
27916   ac_dir_suffix= ac_top_builddir=
27917 fi
27918
27919 case $srcdir in
27920   .)  # No --srcdir option.  We are building in place.
27921     ac_srcdir=.
27922     if test -z "$ac_top_builddir"; then
27923        ac_top_srcdir=.
27924     else
27925        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27926     fi ;;
27927   [\\/]* | ?:[\\/]* )  # Absolute path.
27928     ac_srcdir=$srcdir$ac_dir_suffix;
27929     ac_top_srcdir=$srcdir ;;
27930   *) # Relative path.
27931     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27932     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27933 esac
27934
27935 # Do not use `cd foo && pwd` to compute absolute paths, because
27936 # the directories may not exist.
27937 case `pwd` in
27938 .) ac_abs_builddir="$ac_dir";;
27939 *)
27940   case "$ac_dir" in
27941   .) ac_abs_builddir=`pwd`;;
27942   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27943   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27944   esac;;
27945 esac
27946 case $ac_abs_builddir in
27947 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27948 *)
27949   case ${ac_top_builddir}. in
27950   .) ac_abs_top_builddir=$ac_abs_builddir;;
27951   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27952   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27953   esac;;
27954 esac
27955 case $ac_abs_builddir in
27956 .) ac_abs_srcdir=$ac_srcdir;;
27957 *)
27958   case $ac_srcdir in
27959   .) ac_abs_srcdir=$ac_abs_builddir;;
27960   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27961   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27962   esac;;
27963 esac
27964 case $ac_abs_builddir in
27965 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27966 *)
27967   case $ac_top_srcdir in
27968   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27969   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27970   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27971   esac;;
27972 esac
27973
27974
27975   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27976 echo "$as_me: executing $ac_dest commands" >&6;}
27977   case $ac_dest in
27978     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27979   # Strip MF so we end up with the name of the file.
27980   mf=`echo "$mf" | sed -e 's/:.*$//'`
27981   # Check whether this is an Automake generated Makefile or not.
27982   # We used to match only the files named `Makefile.in', but
27983   # some people rename them; so instead we look at the file content.
27984   # Grep'ing the first line is not enough: some people post-process
27985   # each Makefile.in and add a new line on top of each file to say so.
27986   # So let's grep whole file.
27987   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27988     dirpart=`(dirname "$mf") 2>/dev/null ||
27989 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27990          X"$mf" : 'X\(//\)[^/]' \| \
27991          X"$mf" : 'X\(//\)$' \| \
27992          X"$mf" : 'X\(/\)' \| \
27993          .     : '\(.\)' 2>/dev/null ||
27994 echo X"$mf" |
27995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27996           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27997           /^X\(\/\/\)$/{ s//\1/; q; }
27998           /^X\(\/\).*/{ s//\1/; q; }
27999           s/.*/./; q'`
28000   else
28001     continue
28002   fi
28003   # Extract the definition of DEPDIR, am__include, and am__quote
28004   # from the Makefile without running `make'.
28005   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28006   test -z "$DEPDIR" && continue
28007   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28008   test -z "am__include" && continue
28009   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28010   # When using ansi2knr, U may be empty or an underscore; expand it
28011   U=`sed -n 's/^U = //p' < "$mf"`
28012   # Find all dependency output files, they are included files with
28013   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28014   # simplest approach to changing $(DEPDIR) to its actual value in the
28015   # expansion.
28016   for file in `sed -n "
28017     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28018        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28019     # Make sure the directory exists.
28020     test -f "$dirpart/$file" && continue
28021     fdir=`(dirname "$file") 2>/dev/null ||
28022 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28023          X"$file" : 'X\(//\)[^/]' \| \
28024          X"$file" : 'X\(//\)$' \| \
28025          X"$file" : 'X\(/\)' \| \
28026          .     : '\(.\)' 2>/dev/null ||
28027 echo X"$file" |
28028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28029           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28030           /^X\(\/\/\)$/{ s//\1/; q; }
28031           /^X\(\/\).*/{ s//\1/; q; }
28032           s/.*/./; q'`
28033     { if $as_mkdir_p; then
28034     mkdir -p $dirpart/$fdir
28035   else
28036     as_dir=$dirpart/$fdir
28037     as_dirs=
28038     while test ! -d "$as_dir"; do
28039       as_dirs="$as_dir $as_dirs"
28040       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28042          X"$as_dir" : 'X\(//\)[^/]' \| \
28043          X"$as_dir" : 'X\(//\)$' \| \
28044          X"$as_dir" : 'X\(/\)' \| \
28045          .     : '\(.\)' 2>/dev/null ||
28046 echo X"$as_dir" |
28047     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28048           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28049           /^X\(\/\/\)$/{ s//\1/; q; }
28050           /^X\(\/\).*/{ s//\1/; q; }
28051           s/.*/./; q'`
28052     done
28053     test ! -n "$as_dirs" || mkdir $as_dirs
28054   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28055 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28056    { (exit 1); exit 1; }; }; }
28057
28058     # echo "creating $dirpart/$file"
28059     echo '# dummy' > "$dirpart/$file"
28060   done
28061 done
28062  ;;
28063   esac
28064 done
28065 _ACEOF
28066
28067 cat >>$CONFIG_STATUS <<\_ACEOF
28068
28069 { (exit 0); exit 0; }
28070 _ACEOF
28071 chmod +x $CONFIG_STATUS
28072 ac_clean_files=$ac_clean_files_save
28073
28074
28075 # configure is writing to config.log, and then calls config.status.
28076 # config.status does its own redirection, appending to config.log.
28077 # Unfortunately, on DOS this fails, as config.log is still kept open
28078 # by configure, so config.status won't be able to write to it; its
28079 # output is simply discarded.  So we exec the FD to /dev/null,
28080 # effectively closing config.log, so it can be properly (re)opened and
28081 # appended to by config.status.  When coming back to configure, we
28082 # need to make the FD available again.
28083 if test "$no_create" != yes; then
28084   ac_cs_success=:
28085   ac_config_status_args=
28086   test "$silent" = yes &&
28087     ac_config_status_args="$ac_config_status_args --quiet"
28088   exec 5>/dev/null
28089   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28090   exec 5>>config.log
28091   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28092   # would make configure fail if this is the last instruction.
28093   $ac_cs_success || { (exit 1); exit 1; }
28094 fi
28095
28096 #
28097 # CONFIG_SUBDIRS section.
28098 #
28099 if test "$no_recursion" != yes; then
28100
28101   # Remove --cache-file and --srcdir arguments so they do not pile up.
28102   ac_sub_configure_args=
28103   ac_prev=
28104   for ac_arg in $ac_configure_args; do
28105     if test -n "$ac_prev"; then
28106       ac_prev=
28107       continue
28108     fi
28109     case $ac_arg in
28110     -cache-file | --cache-file | --cache-fil | --cache-fi \
28111     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28112       ac_prev=cache_file ;;
28113     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28114     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28115     | --c=*)
28116       ;;
28117     --config-cache | -C)
28118       ;;
28119     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28120       ac_prev=srcdir ;;
28121     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28122       ;;
28123     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28124       ac_prev=prefix ;;
28125     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28126       ;;
28127     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
28128     esac
28129   done
28130
28131   # Always prepend --prefix to ensure using the same prefix
28132   # in subdir configurations.
28133   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
28134
28135   ac_popdir=`pwd`
28136   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28137
28138     # Do not complain, so a configure script can configure whichever
28139     # parts of a large source tree are present.
28140     test -d $srcdir/$ac_dir || continue
28141
28142     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
28143 echo "$as_me: configuring in $ac_dir" >&6;}
28144     { if $as_mkdir_p; then
28145     mkdir -p "$ac_dir"
28146   else
28147     as_dir="$ac_dir"
28148     as_dirs=
28149     while test ! -d "$as_dir"; do
28150       as_dirs="$as_dir $as_dirs"
28151       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28152 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28153          X"$as_dir" : 'X\(//\)[^/]' \| \
28154          X"$as_dir" : 'X\(//\)$' \| \
28155          X"$as_dir" : 'X\(/\)' \| \
28156          .     : '\(.\)' 2>/dev/null ||
28157 echo X"$as_dir" |
28158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28159           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28160           /^X\(\/\/\)$/{ s//\1/; q; }
28161           /^X\(\/\).*/{ s//\1/; q; }
28162           s/.*/./; q'`
28163     done
28164     test ! -n "$as_dirs" || mkdir $as_dirs
28165   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28166 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28167    { (exit 1); exit 1; }; }; }
28168
28169     ac_builddir=.
28170
28171 if test "$ac_dir" != .; then
28172   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28173   # A "../" for each directory in $ac_dir_suffix.
28174   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28175 else
28176   ac_dir_suffix= ac_top_builddir=
28177 fi
28178
28179 case $srcdir in
28180   .)  # No --srcdir option.  We are building in place.
28181     ac_srcdir=.
28182     if test -z "$ac_top_builddir"; then
28183        ac_top_srcdir=.
28184     else
28185        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28186     fi ;;
28187   [\\/]* | ?:[\\/]* )  # Absolute path.
28188     ac_srcdir=$srcdir$ac_dir_suffix;
28189     ac_top_srcdir=$srcdir ;;
28190   *) # Relative path.
28191     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28192     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28193 esac
28194
28195 # Do not use `cd foo && pwd` to compute absolute paths, because
28196 # the directories may not exist.
28197 case `pwd` in
28198 .) ac_abs_builddir="$ac_dir";;
28199 *)
28200   case "$ac_dir" in
28201   .) ac_abs_builddir=`pwd`;;
28202   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28203   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28204   esac;;
28205 esac
28206 case $ac_abs_builddir in
28207 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28208 *)
28209   case ${ac_top_builddir}. in
28210   .) ac_abs_top_builddir=$ac_abs_builddir;;
28211   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28212   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28213   esac;;
28214 esac
28215 case $ac_abs_builddir in
28216 .) ac_abs_srcdir=$ac_srcdir;;
28217 *)
28218   case $ac_srcdir in
28219   .) ac_abs_srcdir=$ac_abs_builddir;;
28220   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28221   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28222   esac;;
28223 esac
28224 case $ac_abs_builddir in
28225 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28226 *)
28227   case $ac_top_srcdir in
28228   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28229   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28230   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28231   esac;;
28232 esac
28233
28234
28235     cd $ac_dir
28236
28237     # Check for guested configure; otherwise get Cygnus style configure.
28238     if test -f $ac_srcdir/configure.gnu; then
28239       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
28240     elif test -f $ac_srcdir/configure; then
28241       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
28242     elif test -f $ac_srcdir/configure.in; then
28243       ac_sub_configure=$ac_configure
28244     else
28245       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28246 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28247       ac_sub_configure=
28248     fi
28249
28250     # The recursion is here.
28251     if test -n "$ac_sub_configure"; then
28252       # Make the cache file name correct relative to the subdirectory.
28253       case $cache_file in
28254       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28255       *) # Relative path.
28256         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
28257       esac
28258
28259       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28260 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28261       # The eval makes quoting arguments work.
28262       eval $ac_sub_configure $ac_sub_configure_args \
28263            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
28264         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28265 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28266    { (exit 1); exit 1; }; }
28267     fi
28268
28269     cd $ac_popdir
28270   done
28271 fi
28272
28273
28274
28275 if test $bzip2_found -ne 1 ; then
28276   if test $zlib_found -ne 1 ; then
28277     { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
28278 echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
28279     { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
28280 echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
28281     { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and re-run configure." >&5
28282 echo "$as_me: WARNING: *** To correct, install the libraries and re-run configure." >&2;}
28283   fi
28284 fi
28285
28286 if test $llvmgccwarn = yes
28287 then
28288   { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
28289 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
28290   { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
28291 echo "$as_me: WARNING: ***** appear to be working." >&2;}
28292   { echo "$as_me:$LINENO: WARNING: ***** " >&5
28293 echo "$as_me: WARNING: ***** " >&2;}
28294   { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
28295 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
28296   { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
28297 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
28298   { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
28299 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
28300 fi