Add missing targets for install/clean
[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   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4114 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_prog_CC+set}" = set; then
4118   echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120   if test -n "$CC"; then
4121   ac_cv_prog_CC="$CC" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126   IFS=$as_save_IFS
4127   test -z "$as_dir" && as_dir=.
4128   for ac_exec_ext in '' $ac_executable_extensions; do
4129   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132     break 2
4133   fi
4134 done
4135 done
4136
4137 fi
4138 fi
4139 CC=$ac_cv_prog_CC
4140 if test -n "$CC"; then
4141   echo "$as_me:$LINENO: result: $CC" >&5
4142 echo "${ECHO_T}$CC" >&6
4143 else
4144   echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4146 fi
4147
4148 fi
4149 if test -z "$ac_cv_prog_CC"; then
4150   ac_ct_CC=$CC
4151   # Extract the first word of "gcc", so it can be a program name with args.
4152 set dummy gcc; ac_word=$2
4153 echo "$as_me:$LINENO: checking for $ac_word" >&5
4154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4155 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4156   echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158   if test -n "$ac_ct_CC"; then
4159   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164   IFS=$as_save_IFS
4165   test -z "$as_dir" && as_dir=.
4166   for ac_exec_ext in '' $ac_executable_extensions; do
4167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168     ac_cv_prog_ac_ct_CC="gcc"
4169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170     break 2
4171   fi
4172 done
4173 done
4174
4175 fi
4176 fi
4177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4178 if test -n "$ac_ct_CC"; then
4179   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4180 echo "${ECHO_T}$ac_ct_CC" >&6
4181 else
4182   echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4184 fi
4185
4186   CC=$ac_ct_CC
4187 else
4188   CC="$ac_cv_prog_CC"
4189 fi
4190
4191 if test -z "$CC"; then
4192   if test -n "$ac_tool_prefix"; then
4193   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4194 set dummy ${ac_tool_prefix}cc; ac_word=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_CC+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   if test -n "$CC"; then
4201   ac_cv_prog_CC="$CC" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206   IFS=$as_save_IFS
4207   test -z "$as_dir" && as_dir=.
4208   for ac_exec_ext in '' $ac_executable_extensions; do
4209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210     ac_cv_prog_CC="${ac_tool_prefix}cc"
4211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212     break 2
4213   fi
4214 done
4215 done
4216
4217 fi
4218 fi
4219 CC=$ac_cv_prog_CC
4220 if test -n "$CC"; then
4221   echo "$as_me:$LINENO: result: $CC" >&5
4222 echo "${ECHO_T}$CC" >&6
4223 else
4224   echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4226 fi
4227
4228 fi
4229 if test -z "$ac_cv_prog_CC"; then
4230   ac_ct_CC=$CC
4231   # Extract the first word of "cc", so it can be a program name with args.
4232 set dummy cc; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4236   echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238   if test -n "$ac_ct_CC"; then
4239   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244   IFS=$as_save_IFS
4245   test -z "$as_dir" && as_dir=.
4246   for ac_exec_ext in '' $ac_executable_extensions; do
4247   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248     ac_cv_prog_ac_ct_CC="cc"
4249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250     break 2
4251   fi
4252 done
4253 done
4254
4255 fi
4256 fi
4257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4258 if test -n "$ac_ct_CC"; then
4259   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4260 echo "${ECHO_T}$ac_ct_CC" >&6
4261 else
4262   echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6
4264 fi
4265
4266   CC=$ac_ct_CC
4267 else
4268   CC="$ac_cv_prog_CC"
4269 fi
4270
4271 fi
4272 if test -z "$CC"; then
4273   # Extract the first word of "cc", so it can be a program name with args.
4274 set dummy cc; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_CC+set}" = set; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   if test -n "$CC"; then
4281   ac_cv_prog_CC="$CC" # Let the user override the test.
4282 else
4283   ac_prog_rejected=no
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289   for ac_exec_ext in '' $ac_executable_extensions; do
4290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4292        ac_prog_rejected=yes
4293        continue
4294      fi
4295     ac_cv_prog_CC="cc"
4296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297     break 2
4298   fi
4299 done
4300 done
4301
4302 if test $ac_prog_rejected = yes; then
4303   # We found a bogon in the path, so make sure we never use it.
4304   set dummy $ac_cv_prog_CC
4305   shift
4306   if test $# != 0; then
4307     # We chose a different compiler from the bogus one.
4308     # However, it has the same basename, so the bogon will be chosen
4309     # first if we set CC to just the basename; use the full file name.
4310     shift
4311     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4312   fi
4313 fi
4314 fi
4315 fi
4316 CC=$ac_cv_prog_CC
4317 if test -n "$CC"; then
4318   echo "$as_me:$LINENO: result: $CC" >&5
4319 echo "${ECHO_T}$CC" >&6
4320 else
4321   echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4323 fi
4324
4325 fi
4326 if test -z "$CC"; then
4327   if test -n "$ac_tool_prefix"; then
4328   for ac_prog in cl
4329   do
4330     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4332 echo "$as_me:$LINENO: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4334 if test "${ac_cv_prog_CC+set}" = set; then
4335   echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337   if test -n "$CC"; then
4338   ac_cv_prog_CC="$CC" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343   IFS=$as_save_IFS
4344   test -z "$as_dir" && as_dir=.
4345   for ac_exec_ext in '' $ac_executable_extensions; do
4346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349     break 2
4350   fi
4351 done
4352 done
4353
4354 fi
4355 fi
4356 CC=$ac_cv_prog_CC
4357 if test -n "$CC"; then
4358   echo "$as_me:$LINENO: result: $CC" >&5
4359 echo "${ECHO_T}$CC" >&6
4360 else
4361   echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6
4363 fi
4364
4365     test -n "$CC" && break
4366   done
4367 fi
4368 if test -z "$CC"; then
4369   ac_ct_CC=$CC
4370   for ac_prog in cl
4371 do
4372   # Extract the first word of "$ac_prog", so it can be a program name with args.
4373 set dummy $ac_prog; ac_word=$2
4374 echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   if test -n "$ac_ct_CC"; then
4380   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4384 do
4385   IFS=$as_save_IFS
4386   test -z "$as_dir" && as_dir=.
4387   for ac_exec_ext in '' $ac_executable_extensions; do
4388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389     ac_cv_prog_ac_ct_CC="$ac_prog"
4390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391     break 2
4392   fi
4393 done
4394 done
4395
4396 fi
4397 fi
4398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4399 if test -n "$ac_ct_CC"; then
4400   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4401 echo "${ECHO_T}$ac_ct_CC" >&6
4402 else
4403   echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6
4405 fi
4406
4407   test -n "$ac_ct_CC" && break
4408 done
4409
4410   CC=$ac_ct_CC
4411 fi
4412
4413 fi
4414
4415
4416 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4417 See \`config.log' for more details." >&5
4418 echo "$as_me: error: no acceptable C compiler found in \$PATH
4419 See \`config.log' for more details." >&2;}
4420    { (exit 1); exit 1; }; }
4421
4422 # Provide some information about the compiler.
4423 echo "$as_me:$LINENO:" \
4424      "checking for C compiler version" >&5
4425 ac_compiler=`set X $ac_compile; echo $2`
4426 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4427   (eval $ac_compiler --version </dev/null >&5) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }
4431 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4432   (eval $ac_compiler -v </dev/null >&5) 2>&5
4433   ac_status=$?
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); }
4436 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4437   (eval $ac_compiler -V </dev/null >&5) 2>&5
4438   ac_status=$?
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); }
4441
4442 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4443 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4444 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4445   echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447   cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h.  */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h.  */
4453
4454 int
4455 main ()
4456 {
4457 #ifndef __GNUC__
4458        choke me
4459 #endif
4460
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 rm -f conftest.$ac_objext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467   (eval $ac_compile) 2>conftest.er1
4468   ac_status=$?
4469   grep -v '^ *+' conftest.er1 >conftest.err
4470   rm -f conftest.er1
4471   cat conftest.err >&5
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); } &&
4474          { ac_try='test -z "$ac_c_werror_flag"
4475                          || test ! -s conftest.err'
4476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477   (eval $ac_try) 2>&5
4478   ac_status=$?
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); }; } &&
4481          { ac_try='test -s conftest.$ac_objext'
4482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483   (eval $ac_try) 2>&5
4484   ac_status=$?
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); }; }; then
4487   ac_compiler_gnu=yes
4488 else
4489   echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4491
4492 ac_compiler_gnu=no
4493 fi
4494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4496
4497 fi
4498 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4499 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4500 GCC=`test $ac_compiler_gnu = yes && echo yes`
4501 ac_test_CFLAGS=${CFLAGS+set}
4502 ac_save_CFLAGS=$CFLAGS
4503 CFLAGS="-g"
4504 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4505 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4506 if test "${ac_cv_prog_cc_g+set}" = set; then
4507   echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
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
4516 int
4517 main ()
4518 {
4519
4520   ;
4521   return 0;
4522 }
4523 _ACEOF
4524 rm -f conftest.$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526   (eval $ac_compile) 2>conftest.er1
4527   ac_status=$?
4528   grep -v '^ *+' conftest.er1 >conftest.err
4529   rm -f conftest.er1
4530   cat conftest.err >&5
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); } &&
4533          { ac_try='test -z "$ac_c_werror_flag"
4534                          || test ! -s conftest.err'
4535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536   (eval $ac_try) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; } &&
4540          { ac_try='test -s conftest.$ac_objext'
4541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542   (eval $ac_try) 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); }; }; then
4546   ac_cv_prog_cc_g=yes
4547 else
4548   echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4550
4551 ac_cv_prog_cc_g=no
4552 fi
4553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4554 fi
4555 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4556 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4557 if test "$ac_test_CFLAGS" = set; then
4558   CFLAGS=$ac_save_CFLAGS
4559 elif test $ac_cv_prog_cc_g = yes; then
4560   if test "$GCC" = yes; then
4561     CFLAGS="-g -O2"
4562   else
4563     CFLAGS="-g"
4564   fi
4565 else
4566   if test "$GCC" = yes; then
4567     CFLAGS="-O2"
4568   else
4569     CFLAGS=
4570   fi
4571 fi
4572 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4573 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4574 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   ac_cv_prog_cc_stdc=no
4578 ac_save_CC=$CC
4579 cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h.  */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h.  */
4585 #include <stdarg.h>
4586 #include <stdio.h>
4587 #include <sys/types.h>
4588 #include <sys/stat.h>
4589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4590 struct buf { int x; };
4591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4592 static char *e (p, i)
4593      char **p;
4594      int i;
4595 {
4596   return p[i];
4597 }
4598 static char *f (char * (*g) (char **, int), char **p, ...)
4599 {
4600   char *s;
4601   va_list v;
4602   va_start (v,p);
4603   s = g (p, va_arg (v,int));
4604   va_end (v);
4605   return s;
4606 }
4607
4608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4609    function prototypes and stuff, but not '\xHH' hex character constants.
4610    These don't provoke an error unfortunately, instead are silently treated
4611    as 'x'.  The following induces an error, until -std1 is added to get
4612    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4613    array size at least.  It's necessary to write '\x00'==0 to get something
4614    that's true only with -std1.  */
4615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4616
4617 int test (int i, double x);
4618 struct s1 {int (*f) (int a);};
4619 struct s2 {int (*f) (double a);};
4620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4621 int argc;
4622 char **argv;
4623 int
4624 main ()
4625 {
4626 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4627   ;
4628   return 0;
4629 }
4630 _ACEOF
4631 # Don't try gcc -ansi; that turns off useful extensions and
4632 # breaks some systems' header files.
4633 # AIX                   -qlanglvl=ansi
4634 # Ultrix and OSF/1      -std1
4635 # HP-UX 10.20 and later -Ae
4636 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4637 # SVR4                  -Xc -D__EXTENSIONS__
4638 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4639 do
4640   CC="$ac_save_CC $ac_arg"
4641   rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643   (eval $ac_compile) 2>conftest.er1
4644   ac_status=$?
4645   grep -v '^ *+' conftest.er1 >conftest.err
4646   rm -f conftest.er1
4647   cat conftest.err >&5
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); } &&
4650          { ac_try='test -z "$ac_c_werror_flag"
4651                          || test ! -s conftest.err'
4652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653   (eval $ac_try) 2>&5
4654   ac_status=$?
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); }; } &&
4657          { ac_try='test -s conftest.$ac_objext'
4658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659   (eval $ac_try) 2>&5
4660   ac_status=$?
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); }; }; then
4663   ac_cv_prog_cc_stdc=$ac_arg
4664 break
4665 else
4666   echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669 fi
4670 rm -f conftest.err conftest.$ac_objext
4671 done
4672 rm -f conftest.$ac_ext conftest.$ac_objext
4673 CC=$ac_save_CC
4674
4675 fi
4676
4677 case "x$ac_cv_prog_cc_stdc" in
4678   x|xno)
4679     echo "$as_me:$LINENO: result: none needed" >&5
4680 echo "${ECHO_T}none needed" >&6 ;;
4681   *)
4682     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4683 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4684     CC="$CC $ac_cv_prog_cc_stdc" ;;
4685 esac
4686
4687 # Some people use a C++ compiler to compile C.  Since we use `exit',
4688 # in C++ we need to declare it.  In case someone uses the same compiler
4689 # for both compiling C and C++ we need to have the C++ compiler decide
4690 # the declaration of exit, since it's the most demanding environment.
4691 cat >conftest.$ac_ext <<_ACEOF
4692 #ifndef __cplusplus
4693   choke me
4694 #endif
4695 _ACEOF
4696 rm -f conftest.$ac_objext
4697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698   (eval $ac_compile) 2>conftest.er1
4699   ac_status=$?
4700   grep -v '^ *+' conftest.er1 >conftest.err
4701   rm -f conftest.er1
4702   cat conftest.err >&5
4703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704   (exit $ac_status); } &&
4705          { ac_try='test -z "$ac_c_werror_flag"
4706                          || test ! -s conftest.err'
4707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708   (eval $ac_try) 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); }; } &&
4712          { ac_try='test -s conftest.$ac_objext'
4713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714   (eval $ac_try) 2>&5
4715   ac_status=$?
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); }; }; then
4718   for ac_declaration in \
4719    '' \
4720    'extern "C" void std::exit (int) throw (); using std::exit;' \
4721    'extern "C" void std::exit (int); using std::exit;' \
4722    'extern "C" void exit (int) throw ();' \
4723    'extern "C" void exit (int);' \
4724    'void exit (int);'
4725 do
4726   cat >conftest.$ac_ext <<_ACEOF
4727 /* confdefs.h.  */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h.  */
4732 $ac_declaration
4733 #include <stdlib.h>
4734 int
4735 main ()
4736 {
4737 exit (42);
4738   ;
4739   return 0;
4740 }
4741 _ACEOF
4742 rm -f conftest.$ac_objext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744   (eval $ac_compile) 2>conftest.er1
4745   ac_status=$?
4746   grep -v '^ *+' conftest.er1 >conftest.err
4747   rm -f conftest.er1
4748   cat conftest.err >&5
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); } &&
4751          { ac_try='test -z "$ac_c_werror_flag"
4752                          || test ! -s conftest.err'
4753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754   (eval $ac_try) 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; } &&
4758          { ac_try='test -s conftest.$ac_objext'
4759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760   (eval $ac_try) 2>&5
4761   ac_status=$?
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); }; }; then
4764   :
4765 else
4766   echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769 continue
4770 fi
4771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4772   cat >conftest.$ac_ext <<_ACEOF
4773 /* confdefs.h.  */
4774 _ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h.  */
4778 $ac_declaration
4779 int
4780 main ()
4781 {
4782 exit (42);
4783   ;
4784   return 0;
4785 }
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789   (eval $ac_compile) 2>conftest.er1
4790   ac_status=$?
4791   grep -v '^ *+' conftest.er1 >conftest.err
4792   rm -f conftest.er1
4793   cat conftest.err >&5
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); } &&
4796          { ac_try='test -z "$ac_c_werror_flag"
4797                          || test ! -s conftest.err'
4798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799   (eval $ac_try) 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); }; } &&
4803          { ac_try='test -s conftest.$ac_objext'
4804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805   (eval $ac_try) 2>&5
4806   ac_status=$?
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); }; }; then
4809   break
4810 else
4811   echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4813
4814 fi
4815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4816 done
4817 rm -f conftest*
4818 if test -n "$ac_declaration"; then
4819   echo '#ifdef __cplusplus' >>confdefs.h
4820   echo $ac_declaration      >>confdefs.h
4821   echo '#endif'             >>confdefs.h
4822 fi
4823
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 fi
4829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830 ac_ext=c
4831 ac_cpp='$CPP $CPPFLAGS'
4832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835
4836 depcc="$CC"   am_compiler_list=
4837
4838 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4839 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4840 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4841   echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4844   # We make a subdir and do the tests there.  Otherwise we can end up
4845   # making bogus files that we don't know about and never remove.  For
4846   # instance it was reported that on HP-UX the gcc test will end up
4847   # making a dummy file named `D' -- because `-MD' means `put the output
4848   # in D'.
4849   mkdir conftest.dir
4850   # Copy depcomp to subdir because otherwise we won't find it if we're
4851   # using a relative directory.
4852   cp "$am_depcomp" conftest.dir
4853   cd conftest.dir
4854   # We will build objects and dependencies in a subdirectory because
4855   # it helps to detect inapplicable dependency modes.  For instance
4856   # both Tru64's cc and ICC support -MD to output dependencies as a
4857   # side effect of compilation, but ICC will put the dependencies in
4858   # the current directory while Tru64 will put them in the object
4859   # directory.
4860   mkdir sub
4861
4862   am_cv_CC_dependencies_compiler_type=none
4863   if test "$am_compiler_list" = ""; then
4864      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4865   fi
4866   for depmode in $am_compiler_list; do
4867     # Setup a source with many dependencies, because some compilers
4868     # like to wrap large dependency lists on column 80 (with \), and
4869     # we should not choose a depcomp mode which is confused by this.
4870     #
4871     # We need to recreate these files for each test, as the compiler may
4872     # overwrite some of them when testing with obscure command lines.
4873     # This happens at least with the AIX C compiler.
4874     : > sub/conftest.c
4875     for i in 1 2 3 4 5 6; do
4876       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4877       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4878       # Solaris 8's {/usr,}/bin/sh.
4879       touch sub/conftst$i.h
4880     done
4881     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4882
4883     case $depmode in
4884     nosideeffect)
4885       # after this tag, mechanisms are not by side-effect, so they'll
4886       # only be used when explicitly requested
4887       if test "x$enable_dependency_tracking" = xyes; then
4888         continue
4889       else
4890         break
4891       fi
4892       ;;
4893     none) break ;;
4894     esac
4895     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4896     # mode.  It turns out that the SunPro C++ compiler does not properly
4897     # handle `-M -o', and we need to detect this.
4898     if depmode=$depmode \
4899        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4900        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4901        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4902          >/dev/null 2>conftest.err &&
4903        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4904        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4905        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4906       # icc doesn't choke on unknown options, it will just issue warnings
4907       # or remarks (even with -Werror).  So we grep stderr for any message
4908       # that says an option was ignored or not supported.
4909       # When given -MP, icc 7.0 and 7.1 complain thusly:
4910       #   icc: Command line warning: ignoring option '-M'; no argument required
4911       # The diagnosis changed in icc 8.0:
4912       #   icc: Command line remark: option '-MP' not supported
4913       if (grep 'ignoring option' conftest.err ||
4914           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4915         am_cv_CC_dependencies_compiler_type=$depmode
4916         break
4917       fi
4918     fi
4919   done
4920
4921   cd ..
4922   rm -rf conftest.dir
4923 else
4924   am_cv_CC_dependencies_compiler_type=none
4925 fi
4926
4927 fi
4928 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4929 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4930 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4931
4932
4933
4934 if
4935   test "x$enable_dependency_tracking" != xno \
4936   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4937   am__fastdepCC_TRUE=
4938   am__fastdepCC_FALSE='#'
4939 else
4940   am__fastdepCC_TRUE='#'
4941   am__fastdepCC_FALSE=
4942 fi
4943
4944
4945 ac_ext=c
4946 ac_cpp='$CPP $CPPFLAGS'
4947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4951 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4952 # On Suns, sometimes $CPP names a directory.
4953 if test -n "$CPP" && test -d "$CPP"; then
4954   CPP=
4955 fi
4956 if test -z "$CPP"; then
4957   if test "${ac_cv_prog_CPP+set}" = set; then
4958   echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960       # Double quotes because CPP needs to be expanded
4961     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4962     do
4963       ac_preproc_ok=false
4964 for ac_c_preproc_warn_flag in '' yes
4965 do
4966   # Use a header file that comes with gcc, so configuring glibc
4967   # with a fresh cross-compiler works.
4968   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4969   # <limits.h> exists even on freestanding compilers.
4970   # On the NeXT, cc -E runs the code through the compiler's parser,
4971   # not just through cpp. "Syntax error" is here to catch this case.
4972   cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h.  */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h.  */
4978 #ifdef __STDC__
4979 # include <limits.h>
4980 #else
4981 # include <assert.h>
4982 #endif
4983                      Syntax error
4984 _ACEOF
4985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4987   ac_status=$?
4988   grep -v '^ *+' conftest.er1 >conftest.err
4989   rm -f conftest.er1
4990   cat conftest.err >&5
4991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992   (exit $ac_status); } >/dev/null; then
4993   if test -s conftest.err; then
4994     ac_cpp_err=$ac_c_preproc_warn_flag
4995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4996   else
4997     ac_cpp_err=
4998   fi
4999 else
5000   ac_cpp_err=yes
5001 fi
5002 if test -z "$ac_cpp_err"; then
5003   :
5004 else
5005   echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5007
5008   # Broken: fails on valid input.
5009 continue
5010 fi
5011 rm -f conftest.err conftest.$ac_ext
5012
5013   # OK, works on sane cases.  Now check whether non-existent headers
5014   # can be detected and how.
5015   cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h.  */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h.  */
5021 #include <ac_nonexistent.h>
5022 _ACEOF
5023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5024   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5025   ac_status=$?
5026   grep -v '^ *+' conftest.er1 >conftest.err
5027   rm -f conftest.er1
5028   cat conftest.err >&5
5029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030   (exit $ac_status); } >/dev/null; then
5031   if test -s conftest.err; then
5032     ac_cpp_err=$ac_c_preproc_warn_flag
5033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5034   else
5035     ac_cpp_err=
5036   fi
5037 else
5038   ac_cpp_err=yes
5039 fi
5040 if test -z "$ac_cpp_err"; then
5041   # Broken: success on invalid input.
5042 continue
5043 else
5044   echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5046
5047   # Passes both tests.
5048 ac_preproc_ok=:
5049 break
5050 fi
5051 rm -f conftest.err conftest.$ac_ext
5052
5053 done
5054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5055 rm -f conftest.err conftest.$ac_ext
5056 if $ac_preproc_ok; then
5057   break
5058 fi
5059
5060     done
5061     ac_cv_prog_CPP=$CPP
5062
5063 fi
5064   CPP=$ac_cv_prog_CPP
5065 else
5066   ac_cv_prog_CPP=$CPP
5067 fi
5068 echo "$as_me:$LINENO: result: $CPP" >&5
5069 echo "${ECHO_T}$CPP" >&6
5070 ac_preproc_ok=false
5071 for ac_c_preproc_warn_flag in '' yes
5072 do
5073   # Use a header file that comes with gcc, so configuring glibc
5074   # with a fresh cross-compiler works.
5075   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5076   # <limits.h> exists even on freestanding compilers.
5077   # On the NeXT, cc -E runs the code through the compiler's parser,
5078   # not just through cpp. "Syntax error" is here to catch this case.
5079   cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h.  */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h.  */
5085 #ifdef __STDC__
5086 # include <limits.h>
5087 #else
5088 # include <assert.h>
5089 #endif
5090                      Syntax error
5091 _ACEOF
5092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5094   ac_status=$?
5095   grep -v '^ *+' conftest.er1 >conftest.err
5096   rm -f conftest.er1
5097   cat conftest.err >&5
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); } >/dev/null; then
5100   if test -s conftest.err; then
5101     ac_cpp_err=$ac_c_preproc_warn_flag
5102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5103   else
5104     ac_cpp_err=
5105   fi
5106 else
5107   ac_cpp_err=yes
5108 fi
5109 if test -z "$ac_cpp_err"; then
5110   :
5111 else
5112   echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115   # Broken: fails on valid input.
5116 continue
5117 fi
5118 rm -f conftest.err conftest.$ac_ext
5119
5120   # OK, works on sane cases.  Now check whether non-existent headers
5121   # can be detected and how.
5122   cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 #include <ac_nonexistent.h>
5129 _ACEOF
5130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5132   ac_status=$?
5133   grep -v '^ *+' conftest.er1 >conftest.err
5134   rm -f conftest.er1
5135   cat conftest.err >&5
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); } >/dev/null; then
5138   if test -s conftest.err; then
5139     ac_cpp_err=$ac_c_preproc_warn_flag
5140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5141   else
5142     ac_cpp_err=
5143   fi
5144 else
5145   ac_cpp_err=yes
5146 fi
5147 if test -z "$ac_cpp_err"; then
5148   # Broken: success on invalid input.
5149 continue
5150 else
5151   echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154   # Passes both tests.
5155 ac_preproc_ok=:
5156 break
5157 fi
5158 rm -f conftest.err conftest.$ac_ext
5159
5160 done
5161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5162 rm -f conftest.err conftest.$ac_ext
5163 if $ac_preproc_ok; then
5164   :
5165 else
5166   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5167 See \`config.log' for more details." >&5
5168 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5169 See \`config.log' for more details." >&2;}
5170    { (exit 1); exit 1; }; }
5171 fi
5172
5173 ac_ext=c
5174 ac_cpp='$CPP $CPPFLAGS'
5175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178
5179
5180 echo "$as_me:$LINENO: checking " >&5
5181 echo $ECHO_N "checking ... $ECHO_C" >&6
5182 if test "${ac_cv_has_flex+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   for ac_prog in flex lex
5186 do
5187   # Extract the first word of "$ac_prog", so it can be a program name with args.
5188 set dummy $ac_prog; ac_word=$2
5189 echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5191 if test "${ac_cv_prog_LEX+set}" = set; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   if test -n "$LEX"; then
5195   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200   IFS=$as_save_IFS
5201   test -z "$as_dir" && as_dir=.
5202   for ac_exec_ext in '' $ac_executable_extensions; do
5203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204     ac_cv_prog_LEX="$ac_prog"
5205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206     break 2
5207   fi
5208 done
5209 done
5210
5211 fi
5212 fi
5213 LEX=$ac_cv_prog_LEX
5214 if test -n "$LEX"; then
5215   echo "$as_me:$LINENO: result: $LEX" >&5
5216 echo "${ECHO_T}$LEX" >&6
5217 else
5218   echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6
5220 fi
5221
5222   test -n "$LEX" && break
5223 done
5224 test -n "$LEX" || LEX=":"
5225
5226 if test -z "$LEXLIB"
5227 then
5228   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5229 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5230 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5231   echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233   ac_check_lib_save_LIBS=$LIBS
5234 LIBS="-lfl  $LIBS"
5235 cat >conftest.$ac_ext <<_ACEOF
5236 /* confdefs.h.  */
5237 _ACEOF
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h.  */
5241
5242 /* Override any gcc2 internal prototype to avoid an error.  */
5243 #ifdef __cplusplus
5244 extern "C"
5245 #endif
5246 /* We use char because int might match the return type of a gcc2
5247    builtin and then its argument prototype would still apply.  */
5248 char yywrap ();
5249 int
5250 main ()
5251 {
5252 yywrap ();
5253   ;
5254   return 0;
5255 }
5256 _ACEOF
5257 rm -f conftest.$ac_objext conftest$ac_exeext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5259   (eval $ac_link) 2>conftest.er1
5260   ac_status=$?
5261   grep -v '^ *+' conftest.er1 >conftest.err
5262   rm -f conftest.er1
5263   cat conftest.err >&5
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); } &&
5266          { ac_try='test -z "$ac_c_werror_flag"
5267                          || test ! -s conftest.err'
5268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269   (eval $ac_try) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); }; } &&
5273          { ac_try='test -s conftest$ac_exeext'
5274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275   (eval $ac_try) 2>&5
5276   ac_status=$?
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); }; }; then
5279   ac_cv_lib_fl_yywrap=yes
5280 else
5281   echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284 ac_cv_lib_fl_yywrap=no
5285 fi
5286 rm -f conftest.err conftest.$ac_objext \
5287       conftest$ac_exeext conftest.$ac_ext
5288 LIBS=$ac_check_lib_save_LIBS
5289 fi
5290 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5291 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5292 if test $ac_cv_lib_fl_yywrap = yes; then
5293   LEXLIB="-lfl"
5294 else
5295   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5296 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5297 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5298   echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300   ac_check_lib_save_LIBS=$LIBS
5301 LIBS="-ll  $LIBS"
5302 cat >conftest.$ac_ext <<_ACEOF
5303 /* confdefs.h.  */
5304 _ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h.  */
5308
5309 /* Override any gcc2 internal prototype to avoid an error.  */
5310 #ifdef __cplusplus
5311 extern "C"
5312 #endif
5313 /* We use char because int might match the return type of a gcc2
5314    builtin and then its argument prototype would still apply.  */
5315 char yywrap ();
5316 int
5317 main ()
5318 {
5319 yywrap ();
5320   ;
5321   return 0;
5322 }
5323 _ACEOF
5324 rm -f conftest.$ac_objext conftest$ac_exeext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5326   (eval $ac_link) 2>conftest.er1
5327   ac_status=$?
5328   grep -v '^ *+' conftest.er1 >conftest.err
5329   rm -f conftest.er1
5330   cat conftest.err >&5
5331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332   (exit $ac_status); } &&
5333          { ac_try='test -z "$ac_c_werror_flag"
5334                          || test ! -s conftest.err'
5335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336   (eval $ac_try) 2>&5
5337   ac_status=$?
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); }; } &&
5340          { ac_try='test -s conftest$ac_exeext'
5341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342   (eval $ac_try) 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); }; }; then
5346   ac_cv_lib_l_yywrap=yes
5347 else
5348   echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ac_cv_lib_l_yywrap=no
5352 fi
5353 rm -f conftest.err conftest.$ac_objext \
5354       conftest$ac_exeext conftest.$ac_ext
5355 LIBS=$ac_check_lib_save_LIBS
5356 fi
5357 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5358 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5359 if test $ac_cv_lib_l_yywrap = yes; then
5360   LEXLIB="-ll"
5361 fi
5362
5363 fi
5364
5365 fi
5366
5367 if test "x$LEX" != "x:"; then
5368   echo "$as_me:$LINENO: checking lex output file root" >&5
5369 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5370 if test "${ac_cv_prog_lex_root+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   # The minimal lex program is just a single line: %%.  But some broken lexes
5374 # (Solaris, I think it was) want two %% lines, so accommodate them.
5375 cat >conftest.l <<_ACEOF
5376 %%
5377 %%
5378 _ACEOF
5379 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5380   (eval $LEX conftest.l) 2>&5
5381   ac_status=$?
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); }
5384 if test -f lex.yy.c; then
5385   ac_cv_prog_lex_root=lex.yy
5386 elif test -f lexyy.c; then
5387   ac_cv_prog_lex_root=lexyy
5388 else
5389   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5390 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5391    { (exit 1); exit 1; }; }
5392 fi
5393 fi
5394 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5395 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5396 rm -f conftest.l
5397 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5398
5399 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5400 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5401 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5402   echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404   # POSIX says lex can declare yytext either as a pointer or an array; the
5405 # default is implementation-dependent. Figure out which it is, since
5406 # not all implementations provide the %pointer and %array declarations.
5407 ac_cv_prog_lex_yytext_pointer=no
5408 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5409 ac_save_LIBS=$LIBS
5410 LIBS="$LIBS $LEXLIB"
5411 cat >conftest.$ac_ext <<_ACEOF
5412 `cat $LEX_OUTPUT_ROOT.c`
5413 _ACEOF
5414 rm -f conftest.$ac_objext conftest$ac_exeext
5415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5416   (eval $ac_link) 2>conftest.er1
5417   ac_status=$?
5418   grep -v '^ *+' conftest.er1 >conftest.err
5419   rm -f conftest.er1
5420   cat conftest.err >&5
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); } &&
5423          { ac_try='test -z "$ac_c_werror_flag"
5424                          || test ! -s conftest.err'
5425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426   (eval $ac_try) 2>&5
5427   ac_status=$?
5428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429   (exit $ac_status); }; } &&
5430          { ac_try='test -s conftest$ac_exeext'
5431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432   (eval $ac_try) 2>&5
5433   ac_status=$?
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); }; }; then
5436   ac_cv_prog_lex_yytext_pointer=yes
5437 else
5438   echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5440
5441 fi
5442 rm -f conftest.err conftest.$ac_objext \
5443       conftest$ac_exeext conftest.$ac_ext
5444 LIBS=$ac_save_LIBS
5445 rm -f "${LEX_OUTPUT_ROOT}.c"
5446
5447 fi
5448 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5449 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5450 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5451
5452 cat >>confdefs.h <<\_ACEOF
5453 #define YYTEXT_POINTER 1
5454 _ACEOF
5455
5456 fi
5457
5458 fi
5459
5460 fi
5461 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
5462 echo "${ECHO_T}$ac_cv_has_flex" >&6
5463 if test "$LEX" != "flex"; then
5464   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
5465 echo "$as_me: error: flex not found but required" >&2;}
5466    { (exit 1); exit 1; }; }
5467 else
5468   FLEX=flex
5469
5470 fi
5471
5472 echo "$as_me:$LINENO: checking " >&5
5473 echo $ECHO_N "checking ... $ECHO_C" >&6
5474 if test "${ac_cv_has_bison+set}" = set; then
5475   echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477   for ac_prog in 'bison -y' byacc
5478 do
5479   # Extract the first word of "$ac_prog", so it can be a program name with args.
5480 set dummy $ac_prog; ac_word=$2
5481 echo "$as_me:$LINENO: checking for $ac_word" >&5
5482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5483 if test "${ac_cv_prog_YACC+set}" = set; then
5484   echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486   if test -n "$YACC"; then
5487   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5488 else
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5491 do
5492   IFS=$as_save_IFS
5493   test -z "$as_dir" && as_dir=.
5494   for ac_exec_ext in '' $ac_executable_extensions; do
5495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496     ac_cv_prog_YACC="$ac_prog"
5497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498     break 2
5499   fi
5500 done
5501 done
5502
5503 fi
5504 fi
5505 YACC=$ac_cv_prog_YACC
5506 if test -n "$YACC"; then
5507   echo "$as_me:$LINENO: result: $YACC" >&5
5508 echo "${ECHO_T}$YACC" >&6
5509 else
5510   echo "$as_me:$LINENO: result: no" >&5
5511 echo "${ECHO_T}no" >&6
5512 fi
5513
5514   test -n "$YACC" && break
5515 done
5516 test -n "$YACC" || YACC="yacc"
5517
5518
5519 fi
5520 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
5521 echo "${ECHO_T}$ac_cv_has_bison" >&6
5522 if test "$YACC" != "bison -y"; then
5523   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
5524 echo "$as_me: error: bison not found but required" >&2;}
5525    { (exit 1); exit 1; }; }
5526 else
5527   BISON=bison
5528
5529 fi
5530
5531 # Check whether --enable-shared or --disable-shared was given.
5532 if test "${enable_shared+set}" = set; then
5533   enableval="$enable_shared"
5534   p=${PACKAGE-default}
5535     case $enableval in
5536     yes) enable_shared=yes ;;
5537     no) enable_shared=no ;;
5538     *)
5539       enable_shared=no
5540       # Look at the argument we got.  We use all the common list separators.
5541       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5542       for pkg in $enableval; do
5543         IFS="$lt_save_ifs"
5544         if test "X$pkg" = "X$p"; then
5545           enable_shared=yes
5546         fi
5547       done
5548       IFS="$lt_save_ifs"
5549       ;;
5550     esac
5551 else
5552   enable_shared=yes
5553 fi;
5554
5555 # Check whether --enable-static or --disable-static was given.
5556 if test "${enable_static+set}" = set; then
5557   enableval="$enable_static"
5558   p=${PACKAGE-default}
5559     case $enableval in
5560     yes) enable_static=yes ;;
5561     no) enable_static=no ;;
5562     *)
5563      enable_static=no
5564       # Look at the argument we got.  We use all the common list separators.
5565       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5566       for pkg in $enableval; do
5567         IFS="$lt_save_ifs"
5568         if test "X$pkg" = "X$p"; then
5569           enable_static=yes
5570         fi
5571       done
5572       IFS="$lt_save_ifs"
5573       ;;
5574     esac
5575 else
5576   enable_static=yes
5577 fi;
5578
5579 # Check whether --enable-fast-install or --disable-fast-install was given.
5580 if test "${enable_fast_install+set}" = set; then
5581   enableval="$enable_fast_install"
5582   p=${PACKAGE-default}
5583     case $enableval in
5584     yes) enable_fast_install=yes ;;
5585     no) enable_fast_install=no ;;
5586     *)
5587       enable_fast_install=no
5588       # Look at the argument we got.  We use all the common list separators.
5589       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5590       for pkg in $enableval; do
5591         IFS="$lt_save_ifs"
5592         if test "X$pkg" = "X$p"; then
5593           enable_fast_install=yes
5594         fi
5595       done
5596       IFS="$lt_save_ifs"
5597       ;;
5598     esac
5599 else
5600   enable_fast_install=yes
5601 fi;
5602
5603 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5604 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5605 if test "${lt_cv_path_SED+set}" = set; then
5606   echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608   # Loop through the user's path and test for sed and gsed.
5609 # Then use that list of sed's as ones to test for truncation.
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH
5612 do
5613   IFS=$as_save_IFS
5614   test -z "$as_dir" && as_dir=.
5615   for lt_ac_prog in sed gsed; do
5616     for ac_exec_ext in '' $ac_executable_extensions; do
5617       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5618         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5619       fi
5620     done
5621   done
5622 done
5623 lt_ac_max=0
5624 lt_ac_count=0
5625 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5626 # along with /bin/sed that truncates output.
5627 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5628   test ! -f $lt_ac_sed && break
5629   cat /dev/null > conftest.in
5630   lt_ac_count=0
5631   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5632   # Check for GNU sed and select it if it is found.
5633   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5634     lt_cv_path_SED=$lt_ac_sed
5635     break
5636   fi
5637   while true; do
5638     cat conftest.in conftest.in >conftest.tmp
5639     mv conftest.tmp conftest.in
5640     cp conftest.in conftest.nl
5641     echo >>conftest.nl
5642     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5643     cmp -s conftest.out conftest.nl || break
5644     # 10000 chars as input seems more than enough
5645     test $lt_ac_count -gt 10 && break
5646     lt_ac_count=`expr $lt_ac_count + 1`
5647     if test $lt_ac_count -gt $lt_ac_max; then
5648       lt_ac_max=$lt_ac_count
5649       lt_cv_path_SED=$lt_ac_sed
5650     fi
5651   done
5652 done
5653
5654 fi
5655
5656 SED=$lt_cv_path_SED
5657 echo "$as_me:$LINENO: result: $SED" >&5
5658 echo "${ECHO_T}$SED" >&6
5659
5660 echo "$as_me:$LINENO: checking for egrep" >&5
5661 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5662 if test "${ac_cv_prog_egrep+set}" = set; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5666     then ac_cv_prog_egrep='grep -E'
5667     else ac_cv_prog_egrep='egrep'
5668     fi
5669 fi
5670 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5671 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5672  EGREP=$ac_cv_prog_egrep
5673
5674
5675
5676 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5677 if test "${with_gnu_ld+set}" = set; then
5678   withval="$with_gnu_ld"
5679   test "$withval" = no || with_gnu_ld=yes
5680 else
5681   with_gnu_ld=no
5682 fi;
5683 ac_prog=ld
5684 if test "$GCC" = yes; then
5685   # Check if gcc -print-prog-name=ld gives a path.
5686   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5687 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5688   case $host in
5689   *-*-mingw*)
5690     # gcc leaves a trailing carriage return which upsets mingw
5691     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5692   *)
5693     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5694   esac
5695   case $ac_prog in
5696     # Accept absolute paths.
5697     [\\/]* | ?:[\\/]*)
5698       re_direlt='/[^/][^/]*/\.\./'
5699       # Canonicalize the pathname of ld
5700       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5701       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5702         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5703       done
5704       test -z "$LD" && LD="$ac_prog"
5705       ;;
5706   "")
5707     # If it fails, then pretend we aren't using GCC.
5708     ac_prog=ld
5709     ;;
5710   *)
5711     # If it is relative, then search for the first ld in PATH.
5712     with_gnu_ld=unknown
5713     ;;
5714   esac
5715 elif test "$with_gnu_ld" = yes; then
5716   echo "$as_me:$LINENO: checking for GNU ld" >&5
5717 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5718 else
5719   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5720 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5721 fi
5722 if test "${lt_cv_path_LD+set}" = set; then
5723   echo $ECHO_N "(cached) $ECHO_C" >&6
5724 else
5725   if test -z "$LD"; then
5726   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5727   for ac_dir in $PATH; do
5728     IFS="$lt_save_ifs"
5729     test -z "$ac_dir" && ac_dir=.
5730     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5731       lt_cv_path_LD="$ac_dir/$ac_prog"
5732       # Check to see if the program is GNU ld.  I'd rather use --version,
5733       # but apparently some GNU ld's only accept -v.
5734       # Break only if it was the GNU/non-GNU ld that we prefer.
5735       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5736       *GNU* | *'with BFD'*)
5737         test "$with_gnu_ld" != no && break
5738         ;;
5739       *)
5740         test "$with_gnu_ld" != yes && break
5741         ;;
5742       esac
5743     fi
5744   done
5745   IFS="$lt_save_ifs"
5746 else
5747   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5748 fi
5749 fi
5750
5751 LD="$lt_cv_path_LD"
5752 if test -n "$LD"; then
5753   echo "$as_me:$LINENO: result: $LD" >&5
5754 echo "${ECHO_T}$LD" >&6
5755 else
5756   echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6
5758 fi
5759 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5760 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5761    { (exit 1); exit 1; }; }
5762 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5763 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5764 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5765   echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5768 case `$LD -v 2>&1 </dev/null` in
5769 *GNU* | *'with BFD'*)
5770   lt_cv_prog_gnu_ld=yes
5771   ;;
5772 *)
5773   lt_cv_prog_gnu_ld=no
5774   ;;
5775 esac
5776 fi
5777 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5778 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5779 with_gnu_ld=$lt_cv_prog_gnu_ld
5780
5781
5782 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5783 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5784 if test "${lt_cv_ld_reload_flag+set}" = set; then
5785   echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787   lt_cv_ld_reload_flag='-r'
5788 fi
5789 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5790 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5791 reload_flag=$lt_cv_ld_reload_flag
5792 case $reload_flag in
5793 "" | " "*) ;;
5794 *) reload_flag=" $reload_flag" ;;
5795 esac
5796 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5797 case $host_os in
5798   darwin*)
5799     if test "$GCC" = yes; then
5800       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5801     else
5802       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5803     fi
5804     ;;
5805 esac
5806
5807 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5808 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5809 if test "${lt_cv_path_NM+set}" = set; then
5810   echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812   if test -n "$NM"; then
5813   # Let the user override the test.
5814   lt_cv_path_NM="$NM"
5815 else
5816   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5817   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5818     IFS="$lt_save_ifs"
5819     test -z "$ac_dir" && ac_dir=.
5820     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5821     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5822       # Check to see if the nm accepts a BSD-compat flag.
5823       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5824       #   nm: unknown option "B" ignored
5825       # Tru64's nm complains that /dev/null is an invalid object file
5826       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5827       */dev/null* | *'Invalid file or object type'*)
5828         lt_cv_path_NM="$tmp_nm -B"
5829         break
5830         ;;
5831       *)
5832         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5833         */dev/null*)
5834           lt_cv_path_NM="$tmp_nm -p"
5835           break
5836           ;;
5837         *)
5838           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5839           continue # so that we can try to find one that supports BSD flags
5840           ;;
5841         esac
5842       esac
5843     fi
5844   done
5845   IFS="$lt_save_ifs"
5846   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5847 fi
5848 fi
5849 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5850 echo "${ECHO_T}$lt_cv_path_NM" >&6
5851 NM="$lt_cv_path_NM"
5852
5853 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5854 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5855 LN_S=$as_ln_s
5856 if test "$LN_S" = "ln -s"; then
5857   echo "$as_me:$LINENO: result: yes" >&5
5858 echo "${ECHO_T}yes" >&6
5859 else
5860   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5861 echo "${ECHO_T}no, using $LN_S" >&6
5862 fi
5863
5864 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5865 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5866 if test "${lt_cv_deplibs_check_method+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   lt_cv_file_magic_cmd='$MAGIC_CMD'
5870 lt_cv_file_magic_test_file=
5871 lt_cv_deplibs_check_method='unknown'
5872 # Need to set the preceding variable on all platforms that support
5873 # interlibrary dependencies.
5874 # 'none' -- dependencies not supported.
5875 # `unknown' -- same as none, but documents that we really don't know.
5876 # 'pass_all' -- all dependencies passed with no checks.
5877 # 'test_compile' -- check by making test program.
5878 # 'file_magic [[regex]]' -- check by looking for files in library path
5879 # which responds to the $file_magic_cmd with a given extended regex.
5880 # If you have `file' or equivalent on your system and you're not sure
5881 # whether `pass_all' will *always* work, you probably want this one.
5882
5883 case $host_os in
5884 aix4* | aix5*)
5885   lt_cv_deplibs_check_method=pass_all
5886   ;;
5887
5888 beos*)
5889   lt_cv_deplibs_check_method=pass_all
5890   ;;
5891
5892 bsdi[45]*)
5893   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5894   lt_cv_file_magic_cmd='/usr/bin/file -L'
5895   lt_cv_file_magic_test_file=/shlib/libc.so
5896   ;;
5897
5898 cygwin*)
5899   # func_win32_libid is a shell function defined in ltmain.sh
5900   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5901   lt_cv_file_magic_cmd='func_win32_libid'
5902   ;;
5903
5904 mingw* | pw32*)
5905   # Base MSYS/MinGW do not provide the 'file' command needed by
5906   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5907   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5908   lt_cv_file_magic_cmd='$OBJDUMP -f'
5909   ;;
5910
5911 darwin* | rhapsody*)
5912   lt_cv_deplibs_check_method=pass_all
5913   ;;
5914
5915 freebsd* | kfreebsd*-gnu)
5916   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5917     case $host_cpu in
5918     i*86 )
5919       # Not sure whether the presence of OpenBSD here was a mistake.
5920       # Let's accept both of them until this is cleared up.
5921       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5922       lt_cv_file_magic_cmd=/usr/bin/file
5923       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5924       ;;
5925     esac
5926   else
5927     lt_cv_deplibs_check_method=pass_all
5928   fi
5929   ;;
5930
5931 gnu*)
5932   lt_cv_deplibs_check_method=pass_all
5933   ;;
5934
5935 hpux10.20* | hpux11*)
5936   lt_cv_file_magic_cmd=/usr/bin/file
5937   case "$host_cpu" in
5938   ia64*)
5939     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5940     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5941     ;;
5942   hppa*64*)
5943     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]'
5944     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5945     ;;
5946   *)
5947     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5948     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5949     ;;
5950   esac
5951   ;;
5952
5953 irix5* | irix6* | nonstopux*)
5954   case $LD in
5955   *-32|*"-32 ") libmagic=32-bit;;
5956   *-n32|*"-n32 ") libmagic=N32;;
5957   *-64|*"-64 ") libmagic=64-bit;;
5958   *) libmagic=never-match;;
5959   esac
5960   lt_cv_deplibs_check_method=pass_all
5961   ;;
5962
5963 # This must be Linux ELF.
5964 linux*)
5965   lt_cv_deplibs_check_method=pass_all
5966   ;;
5967
5968 netbsd*)
5969   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5970     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5971   else
5972     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5973   fi
5974   ;;
5975
5976 newos6*)
5977   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5978   lt_cv_file_magic_cmd=/usr/bin/file
5979   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5980   ;;
5981
5982 nto-qnx*)
5983   lt_cv_deplibs_check_method=unknown
5984   ;;
5985
5986 openbsd*)
5987   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5988     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5989   else
5990     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5991   fi
5992   ;;
5993
5994 osf3* | osf4* | osf5*)
5995   lt_cv_deplibs_check_method=pass_all
5996   ;;
5997
5998 sco3.2v5*)
5999   lt_cv_deplibs_check_method=pass_all
6000   ;;
6001
6002 solaris*)
6003   lt_cv_deplibs_check_method=pass_all
6004   ;;
6005
6006 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6007   case $host_vendor in
6008   motorola)
6009     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]'
6010     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6011     ;;
6012   ncr)
6013     lt_cv_deplibs_check_method=pass_all
6014     ;;
6015   sequent)
6016     lt_cv_file_magic_cmd='/bin/file'
6017     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6018     ;;
6019   sni)
6020     lt_cv_file_magic_cmd='/bin/file'
6021     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6022     lt_cv_file_magic_test_file=/lib/libc.so
6023     ;;
6024   siemens)
6025     lt_cv_deplibs_check_method=pass_all
6026     ;;
6027   esac
6028   ;;
6029
6030 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6031   lt_cv_deplibs_check_method=pass_all
6032   ;;
6033 esac
6034
6035 fi
6036 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6037 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6038 file_magic_cmd=$lt_cv_file_magic_cmd
6039 deplibs_check_method=$lt_cv_deplibs_check_method
6040 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6041
6042
6043
6044
6045 # If no C compiler was specified, use CC.
6046 LTCC=${LTCC-"$CC"}
6047
6048 # Allow CC to be a program name with arguments.
6049 compiler=$CC
6050
6051 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6052 if test "${enable_libtool_lock+set}" = set; then
6053   enableval="$enable_libtool_lock"
6054
6055 fi;
6056 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6057
6058 # Some flags need to be propagated to the compiler or linker for good
6059 # libtool support.
6060 case $host in
6061 ia64-*-hpux*)
6062   # Find out which ABI we are using.
6063   echo 'int i;' > conftest.$ac_ext
6064   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065   (eval $ac_compile) 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); }; then
6069     case `/usr/bin/file conftest.$ac_objext` in
6070     *ELF-32*)
6071       HPUX_IA64_MODE="32"
6072       ;;
6073     *ELF-64*)
6074       HPUX_IA64_MODE="64"
6075       ;;
6076     esac
6077   fi
6078   rm -rf conftest*
6079   ;;
6080 *-*-irix6*)
6081   # Find out which ABI we are using.
6082   echo '#line 6082 "configure"' > conftest.$ac_ext
6083   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084   (eval $ac_compile) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; then
6088    if test "$lt_cv_prog_gnu_ld" = yes; then
6089     case `/usr/bin/file conftest.$ac_objext` in
6090     *32-bit*)
6091       LD="${LD-ld} -melf32bsmip"
6092       ;;
6093     *N32*)
6094       LD="${LD-ld} -melf32bmipn32"
6095       ;;
6096     *64-bit*)
6097       LD="${LD-ld} -melf64bmip"
6098       ;;
6099     esac
6100    else
6101     case `/usr/bin/file conftest.$ac_objext` in
6102     *32-bit*)
6103       LD="${LD-ld} -32"
6104       ;;
6105     *N32*)
6106       LD="${LD-ld} -n32"
6107       ;;
6108     *64-bit*)
6109       LD="${LD-ld} -64"
6110       ;;
6111     esac
6112    fi
6113   fi
6114   rm -rf conftest*
6115   ;;
6116
6117 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6118   # Find out which ABI we are using.
6119   echo 'int i;' > conftest.$ac_ext
6120   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121   (eval $ac_compile) 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); }; then
6125     case "`/usr/bin/file conftest.o`" in
6126     *32-bit*)
6127       case $host in
6128         x86_64-*linux*)
6129           LD="${LD-ld} -m elf_i386"
6130           ;;
6131         ppc64-*linux*|powerpc64-*linux*)
6132           LD="${LD-ld} -m elf32ppclinux"
6133           ;;
6134         s390x-*linux*)
6135           LD="${LD-ld} -m elf_s390"
6136           ;;
6137         sparc64-*linux*)
6138           LD="${LD-ld} -m elf32_sparc"
6139           ;;
6140       esac
6141       ;;
6142     *64-bit*)
6143       case $host in
6144         x86_64-*linux*)
6145           LD="${LD-ld} -m elf_x86_64"
6146           ;;
6147         ppc*-*linux*|powerpc*-*linux*)
6148           LD="${LD-ld} -m elf64ppc"
6149           ;;
6150         s390*-*linux*)
6151           LD="${LD-ld} -m elf64_s390"
6152           ;;
6153         sparc*-*linux*)
6154           LD="${LD-ld} -m elf64_sparc"
6155           ;;
6156       esac
6157       ;;
6158     esac
6159   fi
6160   rm -rf conftest*
6161   ;;
6162
6163 *-*-sco3.2v5*)
6164   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6165   SAVE_CFLAGS="$CFLAGS"
6166   CFLAGS="$CFLAGS -belf"
6167   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6168 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6169 if test "${lt_cv_cc_needs_belf+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172   ac_ext=c
6173 ac_cpp='$CPP $CPPFLAGS'
6174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6177
6178      cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h.  */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h.  */
6184
6185 _ACEOF
6186 rm -f conftest.$ac_objext conftest$ac_exeext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6188   (eval $ac_link) 2>conftest.er1
6189   ac_status=$?
6190   grep -v '^ *+' conftest.er1 >conftest.err
6191   rm -f conftest.er1
6192   cat conftest.err >&5
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); } &&
6195          { ac_try='test -z "$ac_c_werror_flag"
6196                          || test ! -s conftest.err'
6197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198   (eval $ac_try) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; } &&
6202          { ac_try='test -s conftest$ac_exeext'
6203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204   (eval $ac_try) 2>&5
6205   ac_status=$?
6206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); }; }; then
6208   lt_cv_cc_needs_belf=yes
6209 else
6210   echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6212
6213 lt_cv_cc_needs_belf=no
6214 fi
6215 rm -f conftest.err conftest.$ac_objext \
6216       conftest$ac_exeext conftest.$ac_ext
6217      ac_ext=c
6218 ac_cpp='$CPP $CPPFLAGS'
6219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6222
6223 fi
6224 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6225 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6226   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6227     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6228     CFLAGS="$SAVE_CFLAGS"
6229   fi
6230   ;;
6231
6232 esac
6233
6234 need_locks="$enable_libtool_lock"
6235
6236
6237
6238 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6239 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6240 if test "${ac_cv_header_stdc+set}" = set; then
6241   echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243   cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h.  */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h.  */
6249 #include <stdlib.h>
6250 #include <stdarg.h>
6251 #include <string.h>
6252 #include <float.h>
6253
6254 int
6255 main ()
6256 {
6257
6258   ;
6259   return 0;
6260 }
6261 _ACEOF
6262 rm -f conftest.$ac_objext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6264   (eval $ac_compile) 2>conftest.er1
6265   ac_status=$?
6266   grep -v '^ *+' conftest.er1 >conftest.err
6267   rm -f conftest.er1
6268   cat conftest.err >&5
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); } &&
6271          { ac_try='test -z "$ac_c_werror_flag"
6272                          || test ! -s conftest.err'
6273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274   (eval $ac_try) 2>&5
6275   ac_status=$?
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); }; } &&
6278          { ac_try='test -s conftest.$ac_objext'
6279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280   (eval $ac_try) 2>&5
6281   ac_status=$?
6282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283   (exit $ac_status); }; }; then
6284   ac_cv_header_stdc=yes
6285 else
6286   echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6288
6289 ac_cv_header_stdc=no
6290 fi
6291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6292
6293 if test $ac_cv_header_stdc = yes; then
6294   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6295   cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h.  */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h.  */
6301 #include <string.h>
6302
6303 _ACEOF
6304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6305   $EGREP "memchr" >/dev/null 2>&1; then
6306   :
6307 else
6308   ac_cv_header_stdc=no
6309 fi
6310 rm -f conftest*
6311
6312 fi
6313
6314 if test $ac_cv_header_stdc = yes; then
6315   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6316   cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h.  */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h.  */
6322 #include <stdlib.h>
6323
6324 _ACEOF
6325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6326   $EGREP "free" >/dev/null 2>&1; then
6327   :
6328 else
6329   ac_cv_header_stdc=no
6330 fi
6331 rm -f conftest*
6332
6333 fi
6334
6335 if test $ac_cv_header_stdc = yes; then
6336   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6337   if test "$cross_compiling" = yes; then
6338   :
6339 else
6340   cat >conftest.$ac_ext <<_ACEOF
6341 /* confdefs.h.  */
6342 _ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h.  */
6346 #include <ctype.h>
6347 #if ((' ' & 0x0FF) == 0x020)
6348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6350 #else
6351 # define ISLOWER(c) \
6352                    (('a' <= (c) && (c) <= 'i') \
6353                      || ('j' <= (c) && (c) <= 'r') \
6354                      || ('s' <= (c) && (c) <= 'z'))
6355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6356 #endif
6357
6358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6359 int
6360 main ()
6361 {
6362   int i;
6363   for (i = 0; i < 256; i++)
6364     if (XOR (islower (i), ISLOWER (i))
6365         || toupper (i) != TOUPPER (i))
6366       exit(2);
6367   exit (0);
6368 }
6369 _ACEOF
6370 rm -f conftest$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372   (eval $ac_link) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377   (eval $ac_try) 2>&5
6378   ac_status=$?
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); }; }; then
6381   :
6382 else
6383   echo "$as_me: program exited with status $ac_status" >&5
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387 ( exit $ac_status )
6388 ac_cv_header_stdc=no
6389 fi
6390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6391 fi
6392 fi
6393 fi
6394 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6395 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6396 if test $ac_cv_header_stdc = yes; then
6397
6398 cat >>confdefs.h <<\_ACEOF
6399 #define STDC_HEADERS 1
6400 _ACEOF
6401
6402 fi
6403
6404 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6415                   inttypes.h stdint.h unistd.h
6416 do
6417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6418 echo "$as_me:$LINENO: checking for $ac_header" >&5
6419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6421   echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423   cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h.  */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h.  */
6429 $ac_includes_default
6430
6431 #include <$ac_header>
6432 _ACEOF
6433 rm -f conftest.$ac_objext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435   (eval $ac_compile) 2>conftest.er1
6436   ac_status=$?
6437   grep -v '^ *+' conftest.er1 >conftest.err
6438   rm -f conftest.er1
6439   cat conftest.err >&5
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); } &&
6442          { ac_try='test -z "$ac_c_werror_flag"
6443                          || test ! -s conftest.err'
6444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445   (eval $ac_try) 2>&5
6446   ac_status=$?
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); }; } &&
6449          { ac_try='test -s conftest.$ac_objext'
6450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451   (eval $ac_try) 2>&5
6452   ac_status=$?
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); }; }; then
6455   eval "$as_ac_Header=yes"
6456 else
6457   echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6459
6460 eval "$as_ac_Header=no"
6461 fi
6462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6463 fi
6464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6467   cat >>confdefs.h <<_ACEOF
6468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6469 _ACEOF
6470
6471 fi
6472
6473 done
6474
6475
6476
6477 for ac_header in dlfcn.h
6478 do
6479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6481   echo "$as_me:$LINENO: checking for $ac_header" >&5
6482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 fi
6486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6488 else
6489   # Is the header compilable?
6490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h.  */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h.  */
6498 $ac_includes_default
6499 #include <$ac_header>
6500 _ACEOF
6501 rm -f conftest.$ac_objext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6503   (eval $ac_compile) 2>conftest.er1
6504   ac_status=$?
6505   grep -v '^ *+' conftest.er1 >conftest.err
6506   rm -f conftest.er1
6507   cat conftest.err >&5
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); } &&
6510          { ac_try='test -z "$ac_c_werror_flag"
6511                          || test ! -s conftest.err'
6512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513   (eval $ac_try) 2>&5
6514   ac_status=$?
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); }; } &&
6517          { ac_try='test -s conftest.$ac_objext'
6518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519   (eval $ac_try) 2>&5
6520   ac_status=$?
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); }; }; then
6523   ac_header_compiler=yes
6524 else
6525   echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6527
6528 ac_header_compiler=no
6529 fi
6530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6532 echo "${ECHO_T}$ac_header_compiler" >&6
6533
6534 # Is the header present?
6535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6537 cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h.  */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h.  */
6543 #include <$ac_header>
6544 _ACEOF
6545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6546   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6547   ac_status=$?
6548   grep -v '^ *+' conftest.er1 >conftest.err
6549   rm -f conftest.er1
6550   cat conftest.err >&5
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); } >/dev/null; then
6553   if test -s conftest.err; then
6554     ac_cpp_err=$ac_c_preproc_warn_flag
6555     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6556   else
6557     ac_cpp_err=
6558   fi
6559 else
6560   ac_cpp_err=yes
6561 fi
6562 if test -z "$ac_cpp_err"; then
6563   ac_header_preproc=yes
6564 else
6565   echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6567
6568   ac_header_preproc=no
6569 fi
6570 rm -f conftest.err conftest.$ac_ext
6571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6572 echo "${ECHO_T}$ac_header_preproc" >&6
6573
6574 # So?  What about this header?
6575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6576   yes:no: )
6577     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6581     ac_header_preproc=yes
6582     ;;
6583   no:yes:* )
6584     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6586     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6587 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6588     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6590     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6591 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6594     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6596     (
6597       cat <<\_ASBOX
6598 ## ----------------------------------- ##
6599 ## Report this to llvmbugs@cs.uiuc.edu ##
6600 ## ----------------------------------- ##
6601 _ASBOX
6602     ) |
6603       sed "s/^/$as_me: WARNING:     /" >&2
6604     ;;
6605 esac
6606 echo "$as_me:$LINENO: checking for $ac_header" >&5
6607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   eval "$as_ac_Header=\$ac_header_preproc"
6612 fi
6613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6615
6616 fi
6617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6618   cat >>confdefs.h <<_ACEOF
6619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6620 _ACEOF
6621
6622 fi
6623
6624 done
6625
6626
6627
6628 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6629     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6630     (test "X$CXX" != "Xg++"))) ; then
6631   ac_ext=cc
6632 ac_cpp='$CXXCPP $CPPFLAGS'
6633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6636 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6637 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6638 if test -z "$CXXCPP"; then
6639   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6640   echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642       # Double quotes because CXXCPP needs to be expanded
6643     for CXXCPP in "$CXX -E" "/lib/cpp"
6644     do
6645       ac_preproc_ok=false
6646 for ac_cxx_preproc_warn_flag in '' yes
6647 do
6648   # Use a header file that comes with gcc, so configuring glibc
6649   # with a fresh cross-compiler works.
6650   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6651   # <limits.h> exists even on freestanding compilers.
6652   # On the NeXT, cc -E runs the code through the compiler's parser,
6653   # not just through cpp. "Syntax error" is here to catch this case.
6654   cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h.  */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h.  */
6660 #ifdef __STDC__
6661 # include <limits.h>
6662 #else
6663 # include <assert.h>
6664 #endif
6665                      Syntax error
6666 _ACEOF
6667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6669   ac_status=$?
6670   grep -v '^ *+' conftest.er1 >conftest.err
6671   rm -f conftest.er1
6672   cat conftest.err >&5
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); } >/dev/null; then
6675   if test -s conftest.err; then
6676     ac_cpp_err=$ac_cxx_preproc_warn_flag
6677     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6678   else
6679     ac_cpp_err=
6680   fi
6681 else
6682   ac_cpp_err=yes
6683 fi
6684 if test -z "$ac_cpp_err"; then
6685   :
6686 else
6687   echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6689
6690   # Broken: fails on valid input.
6691 continue
6692 fi
6693 rm -f conftest.err conftest.$ac_ext
6694
6695   # OK, works on sane cases.  Now check whether non-existent headers
6696   # can be detected and how.
6697   cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h.  */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h.  */
6703 #include <ac_nonexistent.h>
6704 _ACEOF
6705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6707   ac_status=$?
6708   grep -v '^ *+' conftest.er1 >conftest.err
6709   rm -f conftest.er1
6710   cat conftest.err >&5
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); } >/dev/null; then
6713   if test -s conftest.err; then
6714     ac_cpp_err=$ac_cxx_preproc_warn_flag
6715     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6716   else
6717     ac_cpp_err=
6718   fi
6719 else
6720   ac_cpp_err=yes
6721 fi
6722 if test -z "$ac_cpp_err"; then
6723   # Broken: success on invalid input.
6724 continue
6725 else
6726   echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729   # Passes both tests.
6730 ac_preproc_ok=:
6731 break
6732 fi
6733 rm -f conftest.err conftest.$ac_ext
6734
6735 done
6736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6737 rm -f conftest.err conftest.$ac_ext
6738 if $ac_preproc_ok; then
6739   break
6740 fi
6741
6742     done
6743     ac_cv_prog_CXXCPP=$CXXCPP
6744
6745 fi
6746   CXXCPP=$ac_cv_prog_CXXCPP
6747 else
6748   ac_cv_prog_CXXCPP=$CXXCPP
6749 fi
6750 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6751 echo "${ECHO_T}$CXXCPP" >&6
6752 ac_preproc_ok=false
6753 for ac_cxx_preproc_warn_flag in '' yes
6754 do
6755   # Use a header file that comes with gcc, so configuring glibc
6756   # with a fresh cross-compiler works.
6757   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6758   # <limits.h> exists even on freestanding compilers.
6759   # On the NeXT, cc -E runs the code through the compiler's parser,
6760   # not just through cpp. "Syntax error" is here to catch this case.
6761   cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h.  */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h.  */
6767 #ifdef __STDC__
6768 # include <limits.h>
6769 #else
6770 # include <assert.h>
6771 #endif
6772                      Syntax error
6773 _ACEOF
6774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6775   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6776   ac_status=$?
6777   grep -v '^ *+' conftest.er1 >conftest.err
6778   rm -f conftest.er1
6779   cat conftest.err >&5
6780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); } >/dev/null; then
6782   if test -s conftest.err; then
6783     ac_cpp_err=$ac_cxx_preproc_warn_flag
6784     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6785   else
6786     ac_cpp_err=
6787   fi
6788 else
6789   ac_cpp_err=yes
6790 fi
6791 if test -z "$ac_cpp_err"; then
6792   :
6793 else
6794   echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6796
6797   # Broken: fails on valid input.
6798 continue
6799 fi
6800 rm -f conftest.err conftest.$ac_ext
6801
6802   # OK, works on sane cases.  Now check whether non-existent headers
6803   # can be detected and how.
6804   cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h.  */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h.  */
6810 #include <ac_nonexistent.h>
6811 _ACEOF
6812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6814   ac_status=$?
6815   grep -v '^ *+' conftest.er1 >conftest.err
6816   rm -f conftest.er1
6817   cat conftest.err >&5
6818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819   (exit $ac_status); } >/dev/null; then
6820   if test -s conftest.err; then
6821     ac_cpp_err=$ac_cxx_preproc_warn_flag
6822     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6823   else
6824     ac_cpp_err=
6825   fi
6826 else
6827   ac_cpp_err=yes
6828 fi
6829 if test -z "$ac_cpp_err"; then
6830   # Broken: success on invalid input.
6831 continue
6832 else
6833   echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6835
6836   # Passes both tests.
6837 ac_preproc_ok=:
6838 break
6839 fi
6840 rm -f conftest.err conftest.$ac_ext
6841
6842 done
6843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6844 rm -f conftest.err conftest.$ac_ext
6845 if $ac_preproc_ok; then
6846   :
6847 else
6848   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6849 See \`config.log' for more details." >&5
6850 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6851 See \`config.log' for more details." >&2;}
6852    { (exit 1); exit 1; }; }
6853 fi
6854
6855 ac_ext=cc
6856 ac_cpp='$CXXCPP $CPPFLAGS'
6857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6860
6861 fi
6862
6863
6864 ac_ext=f
6865 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6866 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6868 if test -n "$ac_tool_prefix"; then
6869   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6870   do
6871     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6873 echo "$as_me:$LINENO: checking for $ac_word" >&5
6874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6875 if test "${ac_cv_prog_F77+set}" = set; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878   if test -n "$F77"; then
6879   ac_cv_prog_F77="$F77" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886   for ac_exec_ext in '' $ac_executable_extensions; do
6887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893 done
6894
6895 fi
6896 fi
6897 F77=$ac_cv_prog_F77
6898 if test -n "$F77"; then
6899   echo "$as_me:$LINENO: result: $F77" >&5
6900 echo "${ECHO_T}$F77" >&6
6901 else
6902   echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6
6904 fi
6905
6906     test -n "$F77" && break
6907   done
6908 fi
6909 if test -z "$F77"; then
6910   ac_ct_F77=$F77
6911   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6912 do
6913   # Extract the first word of "$ac_prog", so it can be a program name with args.
6914 set dummy $ac_prog; ac_word=$2
6915 echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6917 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6918   echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920   if test -n "$ac_ct_F77"; then
6921   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928   for ac_exec_ext in '' $ac_executable_extensions; do
6929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930     ac_cv_prog_ac_ct_F77="$ac_prog"
6931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935 done
6936
6937 fi
6938 fi
6939 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6940 if test -n "$ac_ct_F77"; then
6941   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6942 echo "${ECHO_T}$ac_ct_F77" >&6
6943 else
6944   echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6
6946 fi
6947
6948   test -n "$ac_ct_F77" && break
6949 done
6950
6951   F77=$ac_ct_F77
6952 fi
6953
6954
6955 # Provide some information about the compiler.
6956 echo "$as_me:6956:" \
6957      "checking for Fortran 77 compiler version" >&5
6958 ac_compiler=`set X $ac_compile; echo $2`
6959 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6960   (eval $ac_compiler --version </dev/null >&5) 2>&5
6961   ac_status=$?
6962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963   (exit $ac_status); }
6964 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6965   (eval $ac_compiler -v </dev/null >&5) 2>&5
6966   ac_status=$?
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); }
6969 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6970   (eval $ac_compiler -V </dev/null >&5) 2>&5
6971   ac_status=$?
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); }
6974 rm -f a.out
6975
6976 # If we don't use `.F' as extension, the preprocessor is not run on the
6977 # input file.  (Note that this only needs to work for GNU compilers.)
6978 ac_save_ext=$ac_ext
6979 ac_ext=F
6980 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6981 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6982 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985   cat >conftest.$ac_ext <<_ACEOF
6986       program main
6987 #ifndef __GNUC__
6988        choke me
6989 #endif
6990
6991       end
6992 _ACEOF
6993 rm -f conftest.$ac_objext
6994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6995   (eval $ac_compile) 2>conftest.er1
6996   ac_status=$?
6997   grep -v '^ *+' conftest.er1 >conftest.err
6998   rm -f conftest.er1
6999   cat conftest.err >&5
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); } &&
7002          { ac_try='test -z "$ac_f77_werror_flag"
7003                          || test ! -s conftest.err'
7004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005   (eval $ac_try) 2>&5
7006   ac_status=$?
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); }; } &&
7009          { ac_try='test -s conftest.$ac_objext'
7010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011   (eval $ac_try) 2>&5
7012   ac_status=$?
7013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014   (exit $ac_status); }; }; then
7015   ac_compiler_gnu=yes
7016 else
7017   echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7019
7020 ac_compiler_gnu=no
7021 fi
7022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7024
7025 fi
7026 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7027 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7028 ac_ext=$ac_save_ext
7029 ac_test_FFLAGS=${FFLAGS+set}
7030 ac_save_FFLAGS=$FFLAGS
7031 FFLAGS=
7032 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7033 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7034 if test "${ac_cv_prog_f77_g+set}" = set; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037   FFLAGS=-g
7038 cat >conftest.$ac_ext <<_ACEOF
7039       program main
7040
7041       end
7042 _ACEOF
7043 rm -f conftest.$ac_objext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7045   (eval $ac_compile) 2>conftest.er1
7046   ac_status=$?
7047   grep -v '^ *+' conftest.er1 >conftest.err
7048   rm -f conftest.er1
7049   cat conftest.err >&5
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); } &&
7052          { ac_try='test -z "$ac_f77_werror_flag"
7053                          || test ! -s conftest.err'
7054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055   (eval $ac_try) 2>&5
7056   ac_status=$?
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); }; } &&
7059          { ac_try='test -s conftest.$ac_objext'
7060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061   (eval $ac_try) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; }; then
7065   ac_cv_prog_f77_g=yes
7066 else
7067   echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7069
7070 ac_cv_prog_f77_g=no
7071 fi
7072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7073
7074 fi
7075 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7076 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7077 if test "$ac_test_FFLAGS" = set; then
7078   FFLAGS=$ac_save_FFLAGS
7079 elif test $ac_cv_prog_f77_g = yes; then
7080   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7081     FFLAGS="-g -O2"
7082   else
7083     FFLAGS="-g"
7084   fi
7085 else
7086   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7087     FFLAGS="-O2"
7088   else
7089     FFLAGS=
7090   fi
7091 fi
7092
7093 G77=`test $ac_compiler_gnu = yes && echo yes`
7094 ac_ext=c
7095 ac_cpp='$CPP $CPPFLAGS'
7096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7099
7100
7101
7102 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7103
7104 # find the maximum length of command line arguments
7105 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7106 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7107 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110     i=0
7111   teststring="ABCD"
7112
7113   case $build_os in
7114   msdosdjgpp*)
7115     # On DJGPP, this test can blow up pretty badly due to problems in libc
7116     # (any single argument exceeding 2000 bytes causes a buffer overrun
7117     # during glob expansion).  Even if it were fixed, the result of this
7118     # check would be larger than it should be.
7119     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7120     ;;
7121
7122   gnu*)
7123     # Under GNU Hurd, this test is not required because there is
7124     # no limit to the length of command line arguments.
7125     # Libtool will interpret -1 as no limit whatsoever
7126     lt_cv_sys_max_cmd_len=-1;
7127     ;;
7128
7129   cygwin* | mingw*)
7130     # On Win9x/ME, this test blows up -- it succeeds, but takes
7131     # about 5 minutes as the teststring grows exponentially.
7132     # Worse, since 9x/ME are not pre-emptively multitasking,
7133     # you end up with a "frozen" computer, even though with patience
7134     # the test eventually succeeds (with a max line length of 256k).
7135     # Instead, let's just punt: use the minimum linelength reported by
7136     # all of the supported platforms: 8192 (on NT/2K/XP).
7137     lt_cv_sys_max_cmd_len=8192;
7138     ;;
7139
7140   amigaos*)
7141     # On AmigaOS with pdksh, this test takes hours, literally.
7142     # So we just punt and use a minimum line length of 8192.
7143     lt_cv_sys_max_cmd_len=8192;
7144     ;;
7145
7146   netbsd* | freebsd* | openbsd* | darwin* )
7147     # This has been around since 386BSD, at least.  Likely further.
7148     if test -x /sbin/sysctl; then
7149       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7150     elif test -x /usr/sbin/sysctl; then
7151       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7152     else
7153       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7154     fi
7155     # And add a safety zone
7156     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7157     ;;
7158
7159  *)
7160     # If test is not a shell built-in, we'll probably end up computing a
7161     # maximum length that is only half of the actual maximum length, but
7162     # we can't tell.
7163     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7164     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7165                = "XX$teststring") >/dev/null 2>&1 &&
7166             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7167             lt_cv_sys_max_cmd_len=$new_result &&
7168             test $i != 17 # 1/2 MB should be enough
7169     do
7170       i=`expr $i + 1`
7171       teststring=$teststring$teststring
7172     done
7173     teststring=
7174     # Add a significant safety factor because C++ compilers can tack on massive
7175     # amounts of additional arguments before passing them to the linker.
7176     # It appears as though 1/2 is a usable value.
7177     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7178     ;;
7179   esac
7180
7181 fi
7182
7183 if test -n $lt_cv_sys_max_cmd_len ; then
7184   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7185 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7186 else
7187   echo "$as_me:$LINENO: result: none" >&5
7188 echo "${ECHO_T}none" >&6
7189 fi
7190
7191
7192
7193
7194 # Check for command to grab the raw symbol name followed by C symbol from nm.
7195 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7196 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7197 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7198   echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200
7201 # These are sane defaults that work on at least a few old systems.
7202 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7203
7204 # Character class describing NM global symbol codes.
7205 symcode='[BCDEGRST]'
7206
7207 # Regexp to match symbols that can be accessed directly from C.
7208 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7209
7210 # Transform the above into a raw symbol and a C symbol.
7211 symxfrm='\1 \2\3 \3'
7212
7213 # Transform an extracted symbol line into a proper C declaration
7214 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7215
7216 # Transform an extracted symbol line into symbol name and symbol address
7217 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'"
7218
7219 # Define system-specific variables.
7220 case $host_os in
7221 aix*)
7222   symcode='[BCDT]'
7223   ;;
7224 cygwin* | mingw* | pw32*)
7225   symcode='[ABCDGISTW]'
7226   ;;
7227 hpux*) # Its linker distinguishes data from code symbols
7228   if test "$host_cpu" = ia64; then
7229     symcode='[ABCDEGRST]'
7230   fi
7231   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7232   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'"
7233   ;;
7234 linux*)
7235   if test "$host_cpu" = ia64; then
7236     symcode='[ABCDGIRSTW]'
7237     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7238     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'"
7239   fi
7240   ;;
7241 irix* | nonstopux*)
7242   symcode='[BCDEGRST]'
7243   ;;
7244 osf*)
7245   symcode='[BCDEGQRST]'
7246   ;;
7247 solaris* | sysv5*)
7248   symcode='[BDRT]'
7249   ;;
7250 sysv4)
7251   symcode='[DFNSTU]'
7252   ;;
7253 esac
7254
7255 # Handle CRLF in mingw tool chain
7256 opt_cr=
7257 case $build_os in
7258 mingw*)
7259   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7260   ;;
7261 esac
7262
7263 # If we're using GNU nm, then use its standard symbol codes.
7264 case `$NM -V 2>&1` in
7265 *GNU* | *'with BFD'*)
7266   symcode='[ABCDGIRSTW]' ;;
7267 esac
7268
7269 # Try without a prefix undercore, then with it.
7270 for ac_symprfx in "" "_"; do
7271
7272   # Write the raw and C identifiers.
7273   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7274
7275   # Check to see that the pipe works correctly.
7276   pipe_works=no
7277
7278   rm -f conftest*
7279   cat > conftest.$ac_ext <<EOF
7280 #ifdef __cplusplus
7281 extern "C" {
7282 #endif
7283 char nm_test_var;
7284 void nm_test_func(){}
7285 #ifdef __cplusplus
7286 }
7287 #endif
7288 int main(){nm_test_var='a';nm_test_func();return(0);}
7289 EOF
7290
7291   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292   (eval $ac_compile) 2>&5
7293   ac_status=$?
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); }; then
7296     # Now try to grab the symbols.
7297     nlist=conftest.nm
7298     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7299   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7300   ac_status=$?
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); } && test -s "$nlist"; then
7303       # Try sorting and uniquifying the output.
7304       if sort "$nlist" | uniq > "$nlist"T; then
7305         mv -f "$nlist"T "$nlist"
7306       else
7307         rm -f "$nlist"T
7308       fi
7309
7310       # Make sure that we snagged all the symbols we need.
7311       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7312         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7313           cat <<EOF > conftest.$ac_ext
7314 #ifdef __cplusplus
7315 extern "C" {
7316 #endif
7317
7318 EOF
7319           # Now generate the symbol file.
7320           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7321
7322           cat <<EOF >> conftest.$ac_ext
7323 #if defined (__STDC__) && __STDC__
7324 # define lt_ptr_t void *
7325 #else
7326 # define lt_ptr_t char *
7327 # define const
7328 #endif
7329
7330 /* The mapping between symbol names and symbols. */
7331 const struct {
7332   const char *name;
7333   lt_ptr_t address;
7334 }
7335 lt_preloaded_symbols[] =
7336 {
7337 EOF
7338           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7339           cat <<\EOF >> conftest.$ac_ext
7340   {0, (lt_ptr_t) 0}
7341 };
7342
7343 #ifdef __cplusplus
7344 }
7345 #endif
7346 EOF
7347           # Now try linking the two files.
7348           mv conftest.$ac_objext conftstm.$ac_objext
7349           lt_save_LIBS="$LIBS"
7350           lt_save_CFLAGS="$CFLAGS"
7351           LIBS="conftstm.$ac_objext"
7352           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7353           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7354   (eval $ac_link) 2>&5
7355   ac_status=$?
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7358             pipe_works=yes
7359           fi
7360           LIBS="$lt_save_LIBS"
7361           CFLAGS="$lt_save_CFLAGS"
7362         else
7363           echo "cannot find nm_test_func in $nlist" >&5
7364         fi
7365       else
7366         echo "cannot find nm_test_var in $nlist" >&5
7367       fi
7368     else
7369       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7370     fi
7371   else
7372     echo "$progname: failed program was:" >&5
7373     cat conftest.$ac_ext >&5
7374   fi
7375   rm -f conftest* conftst*
7376
7377   # Do not use the global_symbol_pipe unless it works.
7378   if test "$pipe_works" = yes; then
7379     break
7380   else
7381     lt_cv_sys_global_symbol_pipe=
7382   fi
7383 done
7384
7385 fi
7386
7387 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7388   lt_cv_sys_global_symbol_to_cdecl=
7389 fi
7390 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7391   echo "$as_me:$LINENO: result: failed" >&5
7392 echo "${ECHO_T}failed" >&6
7393 else
7394   echo "$as_me:$LINENO: result: ok" >&5
7395 echo "${ECHO_T}ok" >&6
7396 fi
7397
7398 echo "$as_me:$LINENO: checking for objdir" >&5
7399 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7400 if test "${lt_cv_objdir+set}" = set; then
7401   echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403   rm -f .libs 2>/dev/null
7404 mkdir .libs 2>/dev/null
7405 if test -d .libs; then
7406   lt_cv_objdir=.libs
7407 else
7408   # MS-DOS does not allow filenames that begin with a dot.
7409   lt_cv_objdir=_libs
7410 fi
7411 rmdir .libs 2>/dev/null
7412 fi
7413 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7414 echo "${ECHO_T}$lt_cv_objdir" >&6
7415 objdir=$lt_cv_objdir
7416
7417
7418
7419
7420
7421 case $host_os in
7422 aix3*)
7423   # AIX sometimes has problems with the GCC collect2 program.  For some
7424   # reason, if we set the COLLECT_NAMES environment variable, the problems
7425   # vanish in a puff of smoke.
7426   if test "X${COLLECT_NAMES+set}" != Xset; then
7427     COLLECT_NAMES=
7428     export COLLECT_NAMES
7429   fi
7430   ;;
7431 esac
7432
7433 # Sed substitution that helps us do robust quoting.  It backslashifies
7434 # metacharacters that are still active within double-quoted strings.
7435 Xsed='sed -e s/^X//'
7436 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7437
7438 # Same as above, but do not quote variable references.
7439 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7440
7441 # Sed substitution to delay expansion of an escaped shell variable in a
7442 # double_quote_subst'ed string.
7443 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7444
7445 # Sed substitution to avoid accidental globbing in evaled expressions
7446 no_glob_subst='s/\*/\\\*/g'
7447
7448 # Constants:
7449 rm="rm -f"
7450
7451 # Global variables:
7452 default_ofile=mklib
7453 can_build_shared=yes
7454
7455 # All known linkers require a `.a' archive for static linking (except M$VC,
7456 # which needs '.lib').
7457 libext=a
7458 ltmain="$ac_aux_dir/ltmain.sh"
7459 ofile="$default_ofile"
7460 with_gnu_ld="$lt_cv_prog_gnu_ld"
7461
7462 if test -n "$ac_tool_prefix"; then
7463   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7464 set dummy ${ac_tool_prefix}ar; ac_word=$2
7465 echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7467 if test "${ac_cv_prog_AR+set}" = set; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   if test -n "$AR"; then
7471   ac_cv_prog_AR="$AR" # Let the user override the test.
7472 else
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476   IFS=$as_save_IFS
7477   test -z "$as_dir" && as_dir=.
7478   for ac_exec_ext in '' $ac_executable_extensions; do
7479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7480     ac_cv_prog_AR="${ac_tool_prefix}ar"
7481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482     break 2
7483   fi
7484 done
7485 done
7486
7487 fi
7488 fi
7489 AR=$ac_cv_prog_AR
7490 if test -n "$AR"; then
7491   echo "$as_me:$LINENO: result: $AR" >&5
7492 echo "${ECHO_T}$AR" >&6
7493 else
7494   echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7496 fi
7497
7498 fi
7499 if test -z "$ac_cv_prog_AR"; then
7500   ac_ct_AR=$AR
7501   # Extract the first word of "ar", so it can be a program name with args.
7502 set dummy ar; ac_word=$2
7503 echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7505 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   if test -n "$ac_ct_AR"; then
7509   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7510 else
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516   for ac_exec_ext in '' $ac_executable_extensions; do
7517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518     ac_cv_prog_ac_ct_AR="ar"
7519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523 done
7524
7525   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7526 fi
7527 fi
7528 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7529 if test -n "$ac_ct_AR"; then
7530   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7531 echo "${ECHO_T}$ac_ct_AR" >&6
7532 else
7533   echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6
7535 fi
7536
7537   AR=$ac_ct_AR
7538 else
7539   AR="$ac_cv_prog_AR"
7540 fi
7541
7542 if test -n "$ac_tool_prefix"; then
7543   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7544 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7545 echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7547 if test "${ac_cv_prog_RANLIB+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   if test -n "$RANLIB"; then
7551   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558   for ac_exec_ext in '' $ac_executable_extensions; do
7559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562     break 2
7563   fi
7564 done
7565 done
7566
7567 fi
7568 fi
7569 RANLIB=$ac_cv_prog_RANLIB
7570 if test -n "$RANLIB"; then
7571   echo "$as_me:$LINENO: result: $RANLIB" >&5
7572 echo "${ECHO_T}$RANLIB" >&6
7573 else
7574   echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7576 fi
7577
7578 fi
7579 if test -z "$ac_cv_prog_RANLIB"; then
7580   ac_ct_RANLIB=$RANLIB
7581   # Extract the first word of "ranlib", so it can be a program name with args.
7582 set dummy ranlib; ac_word=$2
7583 echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7585 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   if test -n "$ac_ct_RANLIB"; then
7589   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594   IFS=$as_save_IFS
7595   test -z "$as_dir" && as_dir=.
7596   for ac_exec_ext in '' $ac_executable_extensions; do
7597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598     ac_cv_prog_ac_ct_RANLIB="ranlib"
7599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600     break 2
7601   fi
7602 done
7603 done
7604
7605   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7606 fi
7607 fi
7608 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7609 if test -n "$ac_ct_RANLIB"; then
7610   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7611 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7612 else
7613   echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6
7615 fi
7616
7617   RANLIB=$ac_ct_RANLIB
7618 else
7619   RANLIB="$ac_cv_prog_RANLIB"
7620 fi
7621
7622 if test -n "$ac_tool_prefix"; then
7623   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7624 set dummy ${ac_tool_prefix}strip; ac_word=$2
7625 echo "$as_me:$LINENO: checking for $ac_word" >&5
7626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7627 if test "${ac_cv_prog_STRIP+set}" = set; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630   if test -n "$STRIP"; then
7631   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7632 else
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
7636   IFS=$as_save_IFS
7637   test -z "$as_dir" && as_dir=.
7638   for ac_exec_ext in '' $ac_executable_extensions; do
7639   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642     break 2
7643   fi
7644 done
7645 done
7646
7647 fi
7648 fi
7649 STRIP=$ac_cv_prog_STRIP
7650 if test -n "$STRIP"; then
7651   echo "$as_me:$LINENO: result: $STRIP" >&5
7652 echo "${ECHO_T}$STRIP" >&6
7653 else
7654   echo "$as_me:$LINENO: result: no" >&5
7655 echo "${ECHO_T}no" >&6
7656 fi
7657
7658 fi
7659 if test -z "$ac_cv_prog_STRIP"; then
7660   ac_ct_STRIP=$STRIP
7661   # Extract the first word of "strip", so it can be a program name with args.
7662 set dummy strip; ac_word=$2
7663 echo "$as_me:$LINENO: checking for $ac_word" >&5
7664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7665 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   if test -n "$ac_ct_STRIP"; then
7669   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7670 else
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676   for ac_exec_ext in '' $ac_executable_extensions; do
7677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678     ac_cv_prog_ac_ct_STRIP="strip"
7679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683 done
7684
7685   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7686 fi
7687 fi
7688 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7689 if test -n "$ac_ct_STRIP"; then
7690   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7691 echo "${ECHO_T}$ac_ct_STRIP" >&6
7692 else
7693   echo "$as_me:$LINENO: result: no" >&5
7694 echo "${ECHO_T}no" >&6
7695 fi
7696
7697   STRIP=$ac_ct_STRIP
7698 else
7699   STRIP="$ac_cv_prog_STRIP"
7700 fi
7701
7702
7703 old_CC="$CC"
7704 old_CFLAGS="$CFLAGS"
7705
7706 # Set sane defaults for various variables
7707 test -z "$AR" && AR=ar
7708 test -z "$AR_FLAGS" && AR_FLAGS=cru
7709 test -z "$AS" && AS=as
7710 test -z "$CC" && CC=cc
7711 test -z "$LTCC" && LTCC=$CC
7712 test -z "$DLLTOOL" && DLLTOOL=dlltool
7713 test -z "$LD" && LD=ld
7714 test -z "$LN_S" && LN_S="ln -s"
7715 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7716 test -z "$NM" && NM=nm
7717 test -z "$SED" && SED=sed
7718 test -z "$OBJDUMP" && OBJDUMP=objdump
7719 test -z "$RANLIB" && RANLIB=:
7720 test -z "$STRIP" && STRIP=:
7721 test -z "$ac_objext" && ac_objext=o
7722
7723 # Determine commands to create old-style static archives.
7724 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7725 old_postinstall_cmds='chmod 644 $oldlib'
7726 old_postuninstall_cmds=
7727
7728 if test -n "$RANLIB"; then
7729   case $host_os in
7730   openbsd*)
7731     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7732     ;;
7733   *)
7734     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7735     ;;
7736   esac
7737   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7738 fi
7739
7740 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7741
7742 # Only perform the check for file, if the check method requires it
7743 case $deplibs_check_method in
7744 file_magic*)
7745   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7746     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7747 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7748 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   case $MAGIC_CMD in
7752 [\\/*] |  ?:[\\/]*)
7753   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7754   ;;
7755 *)
7756   lt_save_MAGIC_CMD="$MAGIC_CMD"
7757   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7758   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7759   for ac_dir in $ac_dummy; do
7760     IFS="$lt_save_ifs"
7761     test -z "$ac_dir" && ac_dir=.
7762     if test -f $ac_dir/${ac_tool_prefix}file; then
7763       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7764       if test -n "$file_magic_test_file"; then
7765         case $deplibs_check_method in
7766         "file_magic "*)
7767           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7768           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7769           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7770             $EGREP "$file_magic_regex" > /dev/null; then
7771             :
7772           else
7773             cat <<EOF 1>&2
7774
7775 *** Warning: the command libtool uses to detect shared libraries,
7776 *** $file_magic_cmd, produces output that libtool cannot recognize.
7777 *** The result is that libtool may fail to recognize shared libraries
7778 *** as such.  This will affect the creation of libtool libraries that
7779 *** depend on shared libraries, but programs linked with such libtool
7780 *** libraries will work regardless of this problem.  Nevertheless, you
7781 *** may want to report the problem to your system manager and/or to
7782 *** bug-libtool@gnu.org
7783
7784 EOF
7785           fi ;;
7786         esac
7787       fi
7788       break
7789     fi
7790   done
7791   IFS="$lt_save_ifs"
7792   MAGIC_CMD="$lt_save_MAGIC_CMD"
7793   ;;
7794 esac
7795 fi
7796
7797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7798 if test -n "$MAGIC_CMD"; then
7799   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7800 echo "${ECHO_T}$MAGIC_CMD" >&6
7801 else
7802   echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6
7804 fi
7805
7806 if test -z "$lt_cv_path_MAGIC_CMD"; then
7807   if test -n "$ac_tool_prefix"; then
7808     echo "$as_me:$LINENO: checking for file" >&5
7809 echo $ECHO_N "checking for file... $ECHO_C" >&6
7810 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7811   echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813   case $MAGIC_CMD in
7814 [\\/*] |  ?:[\\/]*)
7815   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7816   ;;
7817 *)
7818   lt_save_MAGIC_CMD="$MAGIC_CMD"
7819   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7820   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7821   for ac_dir in $ac_dummy; do
7822     IFS="$lt_save_ifs"
7823     test -z "$ac_dir" && ac_dir=.
7824     if test -f $ac_dir/file; then
7825       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7826       if test -n "$file_magic_test_file"; then
7827         case $deplibs_check_method in
7828         "file_magic "*)
7829           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7830           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7831           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7832             $EGREP "$file_magic_regex" > /dev/null; then
7833             :
7834           else
7835             cat <<EOF 1>&2
7836
7837 *** Warning: the command libtool uses to detect shared libraries,
7838 *** $file_magic_cmd, produces output that libtool cannot recognize.
7839 *** The result is that libtool may fail to recognize shared libraries
7840 *** as such.  This will affect the creation of libtool libraries that
7841 *** depend on shared libraries, but programs linked with such libtool
7842 *** libraries will work regardless of this problem.  Nevertheless, you
7843 *** may want to report the problem to your system manager and/or to
7844 *** bug-libtool@gnu.org
7845
7846 EOF
7847           fi ;;
7848         esac
7849       fi
7850       break
7851     fi
7852   done
7853   IFS="$lt_save_ifs"
7854   MAGIC_CMD="$lt_save_MAGIC_CMD"
7855   ;;
7856 esac
7857 fi
7858
7859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7860 if test -n "$MAGIC_CMD"; then
7861   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7862 echo "${ECHO_T}$MAGIC_CMD" >&6
7863 else
7864   echo "$as_me:$LINENO: result: no" >&5
7865 echo "${ECHO_T}no" >&6
7866 fi
7867
7868   else
7869     MAGIC_CMD=:
7870   fi
7871 fi
7872
7873   fi
7874   ;;
7875 esac
7876
7877 enable_dlopen=no
7878 enable_win32_dll=no
7879
7880 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7881 if test "${enable_libtool_lock+set}" = set; then
7882   enableval="$enable_libtool_lock"
7883
7884 fi;
7885 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7886
7887
7888 # Check whether --with-pic or --without-pic was given.
7889 if test "${with_pic+set}" = set; then
7890   withval="$with_pic"
7891   pic_mode="$withval"
7892 else
7893   pic_mode=default
7894 fi;
7895 test -z "$pic_mode" && pic_mode=default
7896
7897 # Use C for the default configuration in the libtool script
7898 tagname=
7899 lt_save_CC="$CC"
7900 ac_ext=c
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906
7907 # Source file extension for C test sources.
7908 ac_ext=c
7909
7910 # Object file extension for compiled C test sources.
7911 objext=o
7912 objext=$objext
7913
7914 # Code to be used in simple compile tests
7915 lt_simple_compile_test_code="int some_variable = 0;\n"
7916
7917 # Code to be used in simple link tests
7918 lt_simple_link_test_code='int main(){return(0);}\n'
7919
7920
7921 # If no C compiler was specified, use CC.
7922 LTCC=${LTCC-"$CC"}
7923
7924 # Allow CC to be a program name with arguments.
7925 compiler=$CC
7926
7927
7928 #
7929 # Check for any special shared library compilation flags.
7930 #
7931 lt_prog_cc_shlib=
7932 if test "$GCC" = no; then
7933   case $host_os in
7934   sco3.2v5*)
7935     lt_prog_cc_shlib='-belf'
7936     ;;
7937   esac
7938 fi
7939 if test -n "$lt_prog_cc_shlib"; then
7940   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7941 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7942   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7943   else
7944     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7945 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7946     lt_cv_prog_cc_can_build_shared=no
7947   fi
7948 fi
7949
7950
7951 #
7952 # Check to make sure the static flag actually works.
7953 #
7954 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7955 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7956 if test "${lt_prog_compiler_static_works+set}" = set; then
7957   echo $ECHO_N "(cached) $ECHO_C" >&6
7958 else
7959   lt_prog_compiler_static_works=no
7960    save_LDFLAGS="$LDFLAGS"
7961    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7962    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7963    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7964      # The compiler can only warn and ignore the option if not recognized
7965      # So say no if there are warnings
7966      if test -s conftest.err; then
7967        # Append any errors to the config.log.
7968        cat conftest.err 1>&5
7969      else
7970        lt_prog_compiler_static_works=yes
7971      fi
7972    fi
7973    $rm conftest*
7974    LDFLAGS="$save_LDFLAGS"
7975
7976 fi
7977 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7978 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7979
7980 if test x"$lt_prog_compiler_static_works" = xyes; then
7981     :
7982 else
7983     lt_prog_compiler_static=
7984 fi
7985
7986
7987
7988
7989 lt_prog_compiler_no_builtin_flag=
7990
7991 if test "$GCC" = yes; then
7992   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7993
7994
7995 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7996 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7997 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7998   echo $ECHO_N "(cached) $ECHO_C" >&6
7999 else
8000   lt_cv_prog_compiler_rtti_exceptions=no
8001   ac_outfile=conftest.$ac_objext
8002    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8003    lt_compiler_flag="-fno-rtti -fno-exceptions"
8004    # Insert the option either (1) after the last *FLAGS variable, or
8005    # (2) before a word containing "conftest.", or (3) at the end.
8006    # Note that $ac_compile itself does not contain backslashes and begins
8007    # with a dollar sign (not a hyphen), so the echo should work correctly.
8008    # The option is referenced via a variable to avoid confusing sed.
8009    lt_compile=`echo "$ac_compile" | $SED \
8010    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8011    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8012    -e 's:$: $lt_compiler_flag:'`
8013    (eval echo "\"\$as_me:8013: $lt_compile\"" >&5)
8014    (eval "$lt_compile" 2>conftest.err)
8015    ac_status=$?
8016    cat conftest.err >&5
8017    echo "$as_me:8017: \$? = $ac_status" >&5
8018    if (exit $ac_status) && test -s "$ac_outfile"; then
8019      # The compiler can only warn and ignore the option if not recognized
8020      # So say no if there are warnings
8021      if test ! -s conftest.err; then
8022        lt_cv_prog_compiler_rtti_exceptions=yes
8023      fi
8024    fi
8025    $rm conftest*
8026
8027 fi
8028 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8029 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8030
8031 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8032     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8033 else
8034     :
8035 fi
8036
8037 fi
8038
8039 lt_prog_compiler_wl=
8040 lt_prog_compiler_pic=
8041 lt_prog_compiler_static=
8042
8043 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8044 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8045
8046   if test "$GCC" = yes; then
8047     lt_prog_compiler_wl='-Wl,'
8048     lt_prog_compiler_static='-static'
8049
8050     case $host_os in
8051       aix*)
8052       # All AIX code is PIC.
8053       if test "$host_cpu" = ia64; then
8054         # AIX 5 now supports IA64 processor
8055         lt_prog_compiler_static='-Bstatic'
8056       fi
8057       ;;
8058
8059     amigaos*)
8060       # FIXME: we need at least 68020 code to build shared libraries, but
8061       # adding the `-m68020' flag to GCC prevents building anything better,
8062       # like `-m68040'.
8063       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8064       ;;
8065
8066     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8067       # PIC is the default for these OSes.
8068       ;;
8069
8070     mingw* | pw32* | os2*)
8071       # This hack is so that the source file can tell whether it is being
8072       # built for inclusion in a dll (and should export symbols for example).
8073       lt_prog_compiler_pic='-DDLL_EXPORT'
8074       ;;
8075
8076     darwin* | rhapsody*)
8077       # PIC is the default on this platform
8078       # Common symbols not allowed in MH_DYLIB files
8079       lt_prog_compiler_pic='-fno-common'
8080       ;;
8081
8082     msdosdjgpp*)
8083       # Just because we use GCC doesn't mean we suddenly get shared libraries
8084       # on systems that don't support them.
8085       lt_prog_compiler_can_build_shared=no
8086       enable_shared=no
8087       ;;
8088
8089     sysv4*MP*)
8090       if test -d /usr/nec; then
8091         lt_prog_compiler_pic=-Kconform_pic
8092       fi
8093       ;;
8094
8095     hpux*)
8096       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8097       # not for PA HP-UX.
8098       case "$host_cpu" in
8099       hppa*64*|ia64*)
8100         # +Z the default
8101         ;;
8102       *)
8103         lt_prog_compiler_pic='-fPIC'
8104         ;;
8105       esac
8106       ;;
8107
8108     *)
8109       lt_prog_compiler_pic='-fPIC'
8110       ;;
8111     esac
8112   else
8113     # PORTME Check for flag to pass linker flags through the system compiler.
8114     case $host_os in
8115     aix*)
8116       lt_prog_compiler_wl='-Wl,'
8117       if test "$host_cpu" = ia64; then
8118         # AIX 5 now supports IA64 processor
8119         lt_prog_compiler_static='-Bstatic'
8120       else
8121         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8122       fi
8123       ;;
8124       darwin*)
8125         # PIC is the default on this platform
8126         # Common symbols not allowed in MH_DYLIB files
8127        case "$cc_basename" in
8128          xlc*)
8129          lt_prog_compiler_pic='-qnocommon'
8130          lt_prog_compiler_wl='-Wl,'
8131          ;;
8132        esac
8133        ;;
8134
8135     mingw* | pw32* | os2*)
8136       # This hack is so that the source file can tell whether it is being
8137       # built for inclusion in a dll (and should export symbols for example).
8138       lt_prog_compiler_pic='-DDLL_EXPORT'
8139       ;;
8140
8141     hpux9* | hpux10* | hpux11*)
8142       lt_prog_compiler_wl='-Wl,'
8143       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8144       # not for PA HP-UX.
8145       case "$host_cpu" in
8146       hppa*64*|ia64*)
8147         # +Z the default
8148         ;;
8149       *)
8150         lt_prog_compiler_pic='+Z'
8151         ;;
8152       esac
8153       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8154       lt_prog_compiler_static='${wl}-a ${wl}archive'
8155       ;;
8156
8157     irix5* | irix6* | nonstopux*)
8158       lt_prog_compiler_wl='-Wl,'
8159       # PIC (with -KPIC) is the default.
8160       lt_prog_compiler_static='-non_shared'
8161       ;;
8162
8163     newsos6)
8164       lt_prog_compiler_pic='-KPIC'
8165       lt_prog_compiler_static='-Bstatic'
8166       ;;
8167
8168     linux*)
8169       case $CC in
8170       icc* | ecc*)
8171         lt_prog_compiler_wl='-Wl,'
8172         lt_prog_compiler_pic='-KPIC'
8173         lt_prog_compiler_static='-static'
8174         ;;
8175       ccc*)
8176         lt_prog_compiler_wl='-Wl,'
8177         # All Alpha code is PIC.
8178         lt_prog_compiler_static='-non_shared'
8179         ;;
8180       esac
8181       ;;
8182
8183     osf3* | osf4* | osf5*)
8184       lt_prog_compiler_wl='-Wl,'
8185       # All OSF/1 code is PIC.
8186       lt_prog_compiler_static='-non_shared'
8187       ;;
8188
8189     sco3.2v5*)
8190       lt_prog_compiler_pic='-Kpic'
8191       lt_prog_compiler_static='-dn'
8192       ;;
8193
8194     solaris*)
8195       lt_prog_compiler_wl='-Wl,'
8196       lt_prog_compiler_pic='-KPIC'
8197       lt_prog_compiler_static='-Bstatic'
8198       ;;
8199
8200     sunos4*)
8201       lt_prog_compiler_wl='-Qoption ld '
8202       lt_prog_compiler_pic='-PIC'
8203       lt_prog_compiler_static='-Bstatic'
8204       ;;
8205
8206     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8207       lt_prog_compiler_wl='-Wl,'
8208       lt_prog_compiler_pic='-KPIC'
8209       lt_prog_compiler_static='-Bstatic'
8210       ;;
8211
8212     sysv4*MP*)
8213       if test -d /usr/nec ;then
8214         lt_prog_compiler_pic='-Kconform_pic'
8215         lt_prog_compiler_static='-Bstatic'
8216       fi
8217       ;;
8218
8219     uts4*)
8220       lt_prog_compiler_pic='-pic'
8221       lt_prog_compiler_static='-Bstatic'
8222       ;;
8223
8224     *)
8225       lt_prog_compiler_can_build_shared=no
8226       ;;
8227     esac
8228   fi
8229
8230 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8231 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8232
8233 #
8234 # Check to make sure the PIC flag actually works.
8235 #
8236 if test -n "$lt_prog_compiler_pic"; then
8237
8238 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8239 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8240 if test "${lt_prog_compiler_pic_works+set}" = set; then
8241   echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243   lt_prog_compiler_pic_works=no
8244   ac_outfile=conftest.$ac_objext
8245    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8246    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8247    # Insert the option either (1) after the last *FLAGS variable, or
8248    # (2) before a word containing "conftest.", or (3) at the end.
8249    # Note that $ac_compile itself does not contain backslashes and begins
8250    # with a dollar sign (not a hyphen), so the echo should work correctly.
8251    # The option is referenced via a variable to avoid confusing sed.
8252    lt_compile=`echo "$ac_compile" | $SED \
8253    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8254    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8255    -e 's:$: $lt_compiler_flag:'`
8256    (eval echo "\"\$as_me:8256: $lt_compile\"" >&5)
8257    (eval "$lt_compile" 2>conftest.err)
8258    ac_status=$?
8259    cat conftest.err >&5
8260    echo "$as_me:8260: \$? = $ac_status" >&5
8261    if (exit $ac_status) && test -s "$ac_outfile"; then
8262      # The compiler can only warn and ignore the option if not recognized
8263      # So say no if there are warnings
8264      if test ! -s conftest.err; then
8265        lt_prog_compiler_pic_works=yes
8266      fi
8267    fi
8268    $rm conftest*
8269
8270 fi
8271 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8272 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8273
8274 if test x"$lt_prog_compiler_pic_works" = xyes; then
8275     case $lt_prog_compiler_pic in
8276      "" | " "*) ;;
8277      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8278      esac
8279 else
8280     lt_prog_compiler_pic=
8281      lt_prog_compiler_can_build_shared=no
8282 fi
8283
8284 fi
8285 case "$host_os" in
8286   # For platforms which do not support PIC, -DPIC is meaningless:
8287   *djgpp*)
8288     lt_prog_compiler_pic=
8289     ;;
8290   *)
8291     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8292     ;;
8293 esac
8294
8295 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8296 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8297 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300   lt_cv_prog_compiler_c_o=no
8301    $rm -r conftest 2>/dev/null
8302    mkdir conftest
8303    cd conftest
8304    mkdir out
8305    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8306
8307    lt_compiler_flag="-o out/conftest2.$ac_objext"
8308    # Insert the option either (1) after the last *FLAGS variable, or
8309    # (2) before a word containing "conftest.", or (3) at the end.
8310    # Note that $ac_compile itself does not contain backslashes and begins
8311    # with a dollar sign (not a hyphen), so the echo should work correctly.
8312    lt_compile=`echo "$ac_compile" | $SED \
8313    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8314    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8315    -e 's:$: $lt_compiler_flag:'`
8316    (eval echo "\"\$as_me:8316: $lt_compile\"" >&5)
8317    (eval "$lt_compile" 2>out/conftest.err)
8318    ac_status=$?
8319    cat out/conftest.err >&5
8320    echo "$as_me:8320: \$? = $ac_status" >&5
8321    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8322    then
8323      # The compiler can only warn and ignore the option if not recognized
8324      # So say no if there are warnings
8325      if test ! -s out/conftest.err; then
8326        lt_cv_prog_compiler_c_o=yes
8327      fi
8328    fi
8329    chmod u+w .
8330    $rm conftest*
8331    # SGI C++ compiler will create directory out/ii_files/ for
8332    # template instantiation
8333    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8334    $rm out/* && rmdir out
8335    cd ..
8336    rmdir conftest
8337    $rm conftest*
8338
8339 fi
8340 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8341 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8342
8343
8344 hard_links="nottested"
8345 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8346   # do not overwrite the value of need_locks provided by the user
8347   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8348 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8349   hard_links=yes
8350   $rm conftest*
8351   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8352   touch conftest.a
8353   ln conftest.a conftest.b 2>&5 || hard_links=no
8354   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8355   echo "$as_me:$LINENO: result: $hard_links" >&5
8356 echo "${ECHO_T}$hard_links" >&6
8357   if test "$hard_links" = no; then
8358     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8359 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8360     need_locks=warn
8361   fi
8362 else
8363   need_locks=no
8364 fi
8365
8366 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8367 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8368
8369   runpath_var=
8370   allow_undefined_flag=
8371   enable_shared_with_static_runtimes=no
8372   archive_cmds=
8373   archive_expsym_cmds=
8374   old_archive_From_new_cmds=
8375   old_archive_from_expsyms_cmds=
8376   export_dynamic_flag_spec=
8377   whole_archive_flag_spec=
8378   thread_safe_flag_spec=
8379   hardcode_libdir_flag_spec=
8380   hardcode_libdir_flag_spec_ld=
8381   hardcode_libdir_separator=
8382   hardcode_direct=no
8383   hardcode_minus_L=no
8384   hardcode_shlibpath_var=unsupported
8385   link_all_deplibs=unknown
8386   hardcode_automatic=no
8387   module_cmds=
8388   module_expsym_cmds=
8389   always_export_symbols=no
8390   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8391   # include_expsyms should be a list of space-separated symbols to be *always*
8392   # included in the symbol list
8393   include_expsyms=
8394   # exclude_expsyms can be an extended regexp of symbols to exclude
8395   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8396   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8397   # as well as any symbol that contains `d'.
8398   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8399   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8400   # platforms (ab)use it in PIC code, but their linkers get confused if
8401   # the symbol is explicitly referenced.  Since portable code cannot
8402   # rely on this symbol name, it's probably fine to never include it in
8403   # preloaded symbol tables.
8404   extract_expsyms_cmds=
8405
8406   case $host_os in
8407   cygwin* | mingw* | pw32*)
8408     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8409     # When not using gcc, we currently assume that we are using
8410     # Microsoft Visual C++.
8411     if test "$GCC" != yes; then
8412       with_gnu_ld=no
8413     fi
8414     ;;
8415   openbsd*)
8416     with_gnu_ld=no
8417     ;;
8418   esac
8419
8420   ld_shlibs=yes
8421   if test "$with_gnu_ld" = yes; then
8422     # If archive_cmds runs LD, not CC, wlarc should be empty
8423     wlarc='${wl}'
8424
8425     # See if GNU ld supports shared libraries.
8426     case $host_os in
8427     aix3* | aix4* | aix5*)
8428       # On AIX/PPC, the GNU linker is very broken
8429       if test "$host_cpu" != ia64; then
8430         ld_shlibs=no
8431         cat <<EOF 1>&2
8432
8433 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8434 *** to be unable to reliably create shared libraries on AIX.
8435 *** Therefore, libtool is disabling shared libraries support.  If you
8436 *** really care for shared libraries, you may want to modify your PATH
8437 *** so that a non-GNU linker is found, and then restart.
8438
8439 EOF
8440       fi
8441       ;;
8442
8443     amigaos*)
8444       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)'
8445       hardcode_libdir_flag_spec='-L$libdir'
8446       hardcode_minus_L=yes
8447
8448       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8449       # that the semantics of dynamic libraries on AmigaOS, at least up
8450       # to version 4, is to share data among multiple programs linked
8451       # with the same dynamic library.  Since this doesn't match the
8452       # behavior of shared libraries on other platforms, we can't use
8453       # them.
8454       ld_shlibs=no
8455       ;;
8456
8457     beos*)
8458       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8459         allow_undefined_flag=unsupported
8460         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8461         # support --undefined.  This deserves some investigation.  FIXME
8462         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8463       else
8464         ld_shlibs=no
8465       fi
8466       ;;
8467
8468     cygwin* | mingw* | pw32*)
8469       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8470       # as there is no search path for DLLs.
8471       hardcode_libdir_flag_spec='-L$libdir'
8472       allow_undefined_flag=unsupported
8473       always_export_symbols=no
8474       enable_shared_with_static_runtimes=yes
8475       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8476
8477       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8478         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8479         # If the export-symbols file already is a .def file (1st line
8480         # is EXPORTS), use it as is; otherwise, prepend...
8481         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8482           cp $export_symbols $output_objdir/$soname.def;
8483         else
8484           echo EXPORTS > $output_objdir/$soname.def;
8485           cat $export_symbols >> $output_objdir/$soname.def;
8486         fi~
8487         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8488       else
8489         ld_shlibs=no
8490       fi
8491       ;;
8492
8493     netbsd*)
8494       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8495         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8496         wlarc=
8497       else
8498         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8499         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8500       fi
8501       ;;
8502
8503     solaris* | sysv5*)
8504       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8505         ld_shlibs=no
8506         cat <<EOF 1>&2
8507
8508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8509 *** create shared libraries on Solaris systems.  Therefore, libtool
8510 *** is disabling shared libraries support.  We urge you to upgrade GNU
8511 *** binutils to release 2.9.1 or newer.  Another option is to modify
8512 *** your PATH or compiler configuration so that the native linker is
8513 *** used, and then restart.
8514
8515 EOF
8516       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8517         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8518         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8519       else
8520         ld_shlibs=no
8521       fi
8522       ;;
8523
8524     sunos4*)
8525       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8526       wlarc=
8527       hardcode_direct=yes
8528       hardcode_shlibpath_var=no
8529       ;;
8530
8531   linux*)
8532     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8533         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8534         archive_cmds="$tmp_archive_cmds"
8535       supports_anon_versioning=no
8536       case `$LD -v 2>/dev/null` in
8537         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8538         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8539         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8540         *\ 2.11.*) ;; # other 2.11 versions
8541         *) supports_anon_versioning=yes ;;
8542       esac
8543       if test $supports_anon_versioning = yes; then
8544         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8545 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8546 $echo "local: *; };" >> $output_objdir/$libname.ver~
8547         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8548       else
8549         archive_expsym_cmds="$tmp_archive_cmds"
8550       fi
8551     else
8552       ld_shlibs=no
8553     fi
8554     ;;
8555
8556     *)
8557       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8558         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8559         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8560       else
8561         ld_shlibs=no
8562       fi
8563       ;;
8564     esac
8565
8566     if test "$ld_shlibs" = yes; then
8567       runpath_var=LD_RUN_PATH
8568       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8569       export_dynamic_flag_spec='${wl}--export-dynamic'
8570       # ancient GNU ld didn't support --whole-archive et. al.
8571       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8572         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8573       else
8574         whole_archive_flag_spec=
8575       fi
8576     fi
8577   else
8578     # PORTME fill in a description of your system's linker (not GNU ld)
8579     case $host_os in
8580     aix3*)
8581       allow_undefined_flag=unsupported
8582       always_export_symbols=yes
8583       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'
8584       # Note: this linker hardcodes the directories in LIBPATH if there
8585       # are no directories specified by -L.
8586       hardcode_minus_L=yes
8587       if test "$GCC" = yes && test -z "$link_static_flag"; then
8588         # Neither direct hardcoding nor static linking is supported with a
8589         # broken collect2.
8590         hardcode_direct=unsupported
8591       fi
8592       ;;
8593
8594     aix4* | aix5*)
8595       if test "$host_cpu" = ia64; then
8596         # On IA64, the linker does run time linking by default, so we don't
8597         # have to do anything special.
8598         aix_use_runtimelinking=no
8599         exp_sym_flag='-Bexport'
8600         no_entry_flag=""
8601       else
8602         # If we're using GNU nm, then we don't want the "-C" option.
8603         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8604         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8605           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'
8606         else
8607           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'
8608         fi
8609         aix_use_runtimelinking=no
8610
8611         # Test if we are trying to use run time linking or normal
8612         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8613         # need to do runtime linking.
8614         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8615           for ld_flag in $LDFLAGS; do
8616           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8617             aix_use_runtimelinking=yes
8618             break
8619           fi
8620           done
8621         esac
8622
8623         exp_sym_flag='-bexport'
8624         no_entry_flag='-bnoentry'
8625       fi
8626
8627       # When large executables or shared objects are built, AIX ld can
8628       # have problems creating the table of contents.  If linking a library
8629       # or program results in "error TOC overflow" add -mminimal-toc to
8630       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8631       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8632
8633       archive_cmds=''
8634       hardcode_direct=yes
8635       hardcode_libdir_separator=':'
8636       link_all_deplibs=yes
8637
8638       if test "$GCC" = yes; then
8639         case $host_os in aix4.012|aix4.012.*)
8640         # We only want to do this on AIX 4.2 and lower, the check
8641         # below for broken collect2 doesn't work under 4.3+
8642           collect2name=`${CC} -print-prog-name=collect2`
8643           if test -f "$collect2name" && \
8644            strings "$collect2name" | grep resolve_lib_name >/dev/null
8645           then
8646           # We have reworked collect2
8647           hardcode_direct=yes
8648           else
8649           # We have old collect2
8650           hardcode_direct=unsupported
8651           # It fails to find uninstalled libraries when the uninstalled
8652           # path is not listed in the libpath.  Setting hardcode_minus_L
8653           # to unsupported forces relinking
8654           hardcode_minus_L=yes
8655           hardcode_libdir_flag_spec='-L$libdir'
8656           hardcode_libdir_separator=
8657           fi
8658         esac
8659         shared_flag='-shared'
8660       else
8661         # not using gcc
8662         if test "$host_cpu" = ia64; then
8663         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8664         # chokes on -Wl,-G. The following line is correct:
8665           shared_flag='-G'
8666         else
8667         if test "$aix_use_runtimelinking" = yes; then
8668             shared_flag='${wl}-G'
8669           else
8670             shared_flag='${wl}-bM:SRE'
8671         fi
8672         fi
8673       fi
8674
8675       # It seems that -bexpall does not export symbols beginning with
8676       # underscore (_), so it is better to generate a list of symbols to export.
8677       always_export_symbols=yes
8678       if test "$aix_use_runtimelinking" = yes; then
8679         # Warning - without using the other runtime loading flags (-brtl),
8680         # -berok will link without error, but may produce a broken library.
8681         allow_undefined_flag='-berok'
8682        # Determine the default libpath from the value encoded in an empty executable.
8683        cat >conftest.$ac_ext <<_ACEOF
8684 /* confdefs.h.  */
8685 _ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h.  */
8689
8690 int
8691 main ()
8692 {
8693
8694   ;
8695   return 0;
8696 }
8697 _ACEOF
8698 rm -f conftest.$ac_objext conftest$ac_exeext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8700   (eval $ac_link) 2>conftest.er1
8701   ac_status=$?
8702   grep -v '^ *+' conftest.er1 >conftest.err
8703   rm -f conftest.er1
8704   cat conftest.err >&5
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); } &&
8707          { ac_try='test -z "$ac_c_werror_flag"
8708                          || test ! -s conftest.err'
8709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710   (eval $ac_try) 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); }; } &&
8714          { ac_try='test -s conftest$ac_exeext'
8715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716   (eval $ac_try) 2>&5
8717   ac_status=$?
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); }; }; then
8720
8721 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8722 }'`
8723 # Check for a 64-bit object if we didn't find anything.
8724 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; }
8725 }'`; fi
8726 else
8727   echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8729
8730 fi
8731 rm -f conftest.err conftest.$ac_objext \
8732       conftest$ac_exeext conftest.$ac_ext
8733 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8734
8735        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8736         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"
8737        else
8738         if test "$host_cpu" = ia64; then
8739           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8740           allow_undefined_flag="-z nodefs"
8741           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"
8742         else
8743          # Determine the default libpath from the value encoded in an empty executable.
8744          cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h.  */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h.  */
8750
8751 int
8752 main ()
8753 {
8754
8755   ;
8756   return 0;
8757 }
8758 _ACEOF
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761   (eval $ac_link) 2>conftest.er1
8762   ac_status=$?
8763   grep -v '^ *+' conftest.er1 >conftest.err
8764   rm -f conftest.er1
8765   cat conftest.err >&5
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); } &&
8768          { ac_try='test -z "$ac_c_werror_flag"
8769                          || test ! -s conftest.err'
8770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771   (eval $ac_try) 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); }; } &&
8775          { ac_try='test -s conftest$ac_exeext'
8776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777   (eval $ac_try) 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); }; }; then
8781
8782 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8783 }'`
8784 # Check for a 64-bit object if we didn't find anything.
8785 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; }
8786 }'`; fi
8787 else
8788   echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8790
8791 fi
8792 rm -f conftest.err conftest.$ac_objext \
8793       conftest$ac_exeext conftest.$ac_ext
8794 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8795
8796          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8797           # Warning - without using the other run time loading flags,
8798           # -berok will link without error, but may produce a broken library.
8799           no_undefined_flag=' ${wl}-bernotok'
8800           allow_undefined_flag=' ${wl}-berok'
8801           # -bexpall does not export symbols beginning with underscore (_)
8802           always_export_symbols=yes
8803           # Exported symbols can be pulled into shared objects from archives
8804           whole_archive_flag_spec=' '
8805           archive_cmds_need_lc=yes
8806           # This is similar to how AIX traditionally builds it's shared libraries.
8807           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'
8808         fi
8809       fi
8810       ;;
8811
8812     amigaos*)
8813       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)'
8814       hardcode_libdir_flag_spec='-L$libdir'
8815       hardcode_minus_L=yes
8816       # see comment about different semantics on the GNU ld section
8817       ld_shlibs=no
8818       ;;
8819
8820     bsdi[45]*)
8821       export_dynamic_flag_spec=-rdynamic
8822       ;;
8823
8824     cygwin* | mingw* | pw32*)
8825       # When not using gcc, we currently assume that we are using
8826       # Microsoft Visual C++.
8827       # hardcode_libdir_flag_spec is actually meaningless, as there is
8828       # no search path for DLLs.
8829       hardcode_libdir_flag_spec=' '
8830       allow_undefined_flag=unsupported
8831       # Tell ltmain to make .lib files, not .a files.
8832       libext=lib
8833       # Tell ltmain to make .dll files, not .so files.
8834       shrext_cmds=".dll"
8835       # FIXME: Setting linknames here is a bad hack.
8836       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8837       # The linker will automatically build a .lib file if we build a DLL.
8838       old_archive_From_new_cmds='true'
8839       # FIXME: Should let the user specify the lib program.
8840       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8841       fix_srcfile_path='`cygpath -w "$srcfile"`'
8842       enable_shared_with_static_runtimes=yes
8843       ;;
8844
8845     darwin* | rhapsody*)
8846       case "$host_os" in
8847         rhapsody* | darwin1.[012])
8848          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8849          ;;
8850        *) # Darwin 1.3 on
8851          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8852            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8853          else
8854            case ${MACOSX_DEPLOYMENT_TARGET} in
8855              10.[012])
8856                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8857                ;;
8858              10.*)
8859                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8860                ;;
8861            esac
8862          fi
8863          ;;
8864       esac
8865       archive_cmds_need_lc=no
8866       hardcode_direct=no
8867       hardcode_automatic=yes
8868       hardcode_shlibpath_var=unsupported
8869       whole_archive_flag_spec=''
8870       link_all_deplibs=yes
8871     if test "$GCC" = yes ; then
8872         output_verbose_link_cmd='echo'
8873         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8874       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8875       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8876       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}'
8877       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}'
8878     else
8879       case "$cc_basename" in
8880         xlc*)
8881          output_verbose_link_cmd='echo'
8882          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8883          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8884           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8885          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}'
8886           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}'
8887           ;;
8888        *)
8889          ld_shlibs=no
8890           ;;
8891       esac
8892     fi
8893       ;;
8894
8895     dgux*)
8896       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8897       hardcode_libdir_flag_spec='-L$libdir'
8898       hardcode_shlibpath_var=no
8899       ;;
8900
8901     freebsd1*)
8902       ld_shlibs=no
8903       ;;
8904
8905     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8906     # support.  Future versions do this automatically, but an explicit c++rt0.o
8907     # does not break anything, and helps significantly (at the cost of a little
8908     # extra space).
8909     freebsd2.2*)
8910       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8911       hardcode_libdir_flag_spec='-R$libdir'
8912       hardcode_direct=yes
8913       hardcode_shlibpath_var=no
8914       ;;
8915
8916     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8917     freebsd2*)
8918       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8919       hardcode_direct=yes
8920       hardcode_minus_L=yes
8921       hardcode_shlibpath_var=no
8922       ;;
8923
8924     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8925     freebsd* | kfreebsd*-gnu)
8926       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8927       hardcode_libdir_flag_spec='-R$libdir'
8928       hardcode_direct=yes
8929       hardcode_shlibpath_var=no
8930       ;;
8931
8932     hpux9*)
8933       if test "$GCC" = yes; then
8934         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'
8935       else
8936         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'
8937       fi
8938       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8939       hardcode_libdir_separator=:
8940       hardcode_direct=yes
8941
8942       # hardcode_minus_L: Not really in the search PATH,
8943       # but as the default location of the library.
8944       hardcode_minus_L=yes
8945       export_dynamic_flag_spec='${wl}-E'
8946       ;;
8947
8948     hpux10* | hpux11*)
8949       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8950         case "$host_cpu" in
8951         hppa*64*|ia64*)
8952           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8953           ;;
8954         *)
8955           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8956           ;;
8957         esac
8958       else
8959         case "$host_cpu" in
8960         hppa*64*|ia64*)
8961           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8962           ;;
8963         *)
8964           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8965           ;;
8966         esac
8967       fi
8968       if test "$with_gnu_ld" = no; then
8969         case "$host_cpu" in
8970         hppa*64*)
8971           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8972           hardcode_libdir_flag_spec_ld='+b $libdir'
8973           hardcode_libdir_separator=:
8974           hardcode_direct=no
8975           hardcode_shlibpath_var=no
8976           ;;
8977         ia64*)
8978           hardcode_libdir_flag_spec='-L$libdir'
8979           hardcode_direct=no
8980           hardcode_shlibpath_var=no
8981
8982           # hardcode_minus_L: Not really in the search PATH,
8983           # but as the default location of the library.
8984           hardcode_minus_L=yes
8985           ;;
8986         *)
8987           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8988           hardcode_libdir_separator=:
8989           hardcode_direct=yes
8990           export_dynamic_flag_spec='${wl}-E'
8991
8992           # hardcode_minus_L: Not really in the search PATH,
8993           # but as the default location of the library.
8994           hardcode_minus_L=yes
8995           ;;
8996         esac
8997       fi
8998       ;;
8999
9000     irix5* | irix6* | nonstopux*)
9001       if test "$GCC" = yes; then
9002         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'
9003       else
9004         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'
9005         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9006       fi
9007       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9008       hardcode_libdir_separator=:
9009       link_all_deplibs=yes
9010       ;;
9011
9012     netbsd*)
9013       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9014         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9015       else
9016         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9017       fi
9018       hardcode_libdir_flag_spec='-R$libdir'
9019       hardcode_direct=yes
9020       hardcode_shlibpath_var=no
9021       ;;
9022
9023     newsos6)
9024       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9025       hardcode_direct=yes
9026       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9027       hardcode_libdir_separator=:
9028       hardcode_shlibpath_var=no
9029       ;;
9030
9031     openbsd*)
9032       hardcode_direct=yes
9033       hardcode_shlibpath_var=no
9034       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9035         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9036         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9037         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9038         export_dynamic_flag_spec='${wl}-E'
9039       else
9040        case $host_os in
9041          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9042            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9043            hardcode_libdir_flag_spec='-R$libdir'
9044            ;;
9045          *)
9046            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9047            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9048            ;;
9049        esac
9050       fi
9051       ;;
9052
9053     os2*)
9054       hardcode_libdir_flag_spec='-L$libdir'
9055       hardcode_minus_L=yes
9056       allow_undefined_flag=unsupported
9057       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'
9058       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9059       ;;
9060
9061     osf3*)
9062       if test "$GCC" = yes; then
9063         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9064         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'
9065       else
9066         allow_undefined_flag=' -expect_unresolved \*'
9067         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'
9068       fi
9069       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9070       hardcode_libdir_separator=:
9071       ;;
9072
9073     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9074       if test "$GCC" = yes; then
9075         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9076         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'
9077         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9078       else
9079         allow_undefined_flag=' -expect_unresolved \*'
9080         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'
9081         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9082         $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'
9083
9084         # Both c and cxx compiler support -rpath directly
9085         hardcode_libdir_flag_spec='-rpath $libdir'
9086       fi
9087       hardcode_libdir_separator=:
9088       ;;
9089
9090     sco3.2v5*)
9091       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9092       hardcode_shlibpath_var=no
9093       export_dynamic_flag_spec='${wl}-Bexport'
9094       runpath_var=LD_RUN_PATH
9095       hardcode_runpath_var=yes
9096       ;;
9097
9098     solaris*)
9099       no_undefined_flag=' -z text'
9100       if test "$GCC" = yes; then
9101         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9102         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9103           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9104       else
9105         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9106         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9107         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9108       fi
9109       hardcode_libdir_flag_spec='-R$libdir'
9110       hardcode_shlibpath_var=no
9111       case $host_os in
9112       solaris2.[0-5] | solaris2.[0-5].*) ;;
9113       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9114         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9115       esac
9116       link_all_deplibs=yes
9117       ;;
9118
9119     sunos4*)
9120       if test "x$host_vendor" = xsequent; then
9121         # Use $CC to link under sequent, because it throws in some extra .o
9122         # files that make .init and .fini sections work.
9123         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9124       else
9125         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9126       fi
9127       hardcode_libdir_flag_spec='-L$libdir'
9128       hardcode_direct=yes
9129       hardcode_minus_L=yes
9130       hardcode_shlibpath_var=no
9131       ;;
9132
9133     sysv4)
9134       case $host_vendor in
9135         sni)
9136           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9137           hardcode_direct=yes # is this really true???
9138         ;;
9139         siemens)
9140           ## LD is ld it makes a PLAMLIB
9141           ## CC just makes a GrossModule.
9142           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9143           reload_cmds='$CC -r -o $output$reload_objs'
9144           hardcode_direct=no
9145         ;;
9146         motorola)
9147           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9148           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9149         ;;
9150       esac
9151       runpath_var='LD_RUN_PATH'
9152       hardcode_shlibpath_var=no
9153       ;;
9154
9155     sysv4.3*)
9156       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9157       hardcode_shlibpath_var=no
9158       export_dynamic_flag_spec='-Bexport'
9159       ;;
9160
9161     sysv4*MP*)
9162       if test -d /usr/nec; then
9163         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9164         hardcode_shlibpath_var=no
9165         runpath_var=LD_RUN_PATH
9166         hardcode_runpath_var=yes
9167         ld_shlibs=yes
9168       fi
9169       ;;
9170
9171     sysv4.2uw2*)
9172       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9173       hardcode_direct=yes
9174       hardcode_minus_L=no
9175       hardcode_shlibpath_var=no
9176       hardcode_runpath_var=yes
9177       runpath_var=LD_RUN_PATH
9178       ;;
9179
9180    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9181       no_undefined_flag='${wl}-z ${wl}text'
9182       if test "$GCC" = yes; then
9183         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9184       else
9185         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9186       fi
9187       runpath_var='LD_RUN_PATH'
9188       hardcode_shlibpath_var=no
9189       ;;
9190
9191     sysv5*)
9192       no_undefined_flag=' -z text'
9193       # $CC -shared without GNU ld will not create a library from C++
9194       # object files and a static libstdc++, better avoid it by now
9195       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9196       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9197                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9198       hardcode_libdir_flag_spec=
9199       hardcode_shlibpath_var=no
9200       runpath_var='LD_RUN_PATH'
9201       ;;
9202
9203     uts4*)
9204       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9205       hardcode_libdir_flag_spec='-L$libdir'
9206       hardcode_shlibpath_var=no
9207       ;;
9208
9209     *)
9210       ld_shlibs=no
9211       ;;
9212     esac
9213   fi
9214
9215 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9216 echo "${ECHO_T}$ld_shlibs" >&6
9217 test "$ld_shlibs" = no && can_build_shared=no
9218
9219 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9220 if test "$GCC" = yes; then
9221   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9222 fi
9223
9224 #
9225 # Do we need to explicitly link libc?
9226 #
9227 case "x$archive_cmds_need_lc" in
9228 x|xyes)
9229   # Assume -lc should be added
9230   archive_cmds_need_lc=yes
9231
9232   if test "$enable_shared" = yes && test "$GCC" = yes; then
9233     case $archive_cmds in
9234     *'~'*)
9235       # FIXME: we may have to deal with multi-command sequences.
9236       ;;
9237     '$CC '*)
9238       # Test whether the compiler implicitly links with -lc since on some
9239       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9240       # to ld, don't add -lc before -lgcc.
9241       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9242 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9243       $rm conftest*
9244       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9245
9246       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9247   (eval $ac_compile) 2>&5
9248   ac_status=$?
9249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); } 2>conftest.err; then
9251         soname=conftest
9252         lib=conftest
9253         libobjs=conftest.$ac_objext
9254         deplibs=
9255         wl=$lt_prog_compiler_wl
9256         compiler_flags=-v
9257         linker_flags=-v
9258         verstring=
9259         output_objdir=.
9260         libname=conftest
9261         lt_save_allow_undefined_flag=$allow_undefined_flag
9262         allow_undefined_flag=
9263         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9264   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9265   ac_status=$?
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); }
9268         then
9269           archive_cmds_need_lc=no
9270         else
9271           archive_cmds_need_lc=yes
9272         fi
9273         allow_undefined_flag=$lt_save_allow_undefined_flag
9274       else
9275         cat conftest.err 1>&5
9276       fi
9277       $rm conftest*
9278       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9279 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9280       ;;
9281     esac
9282   fi
9283   ;;
9284 esac
9285
9286 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9287 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9288 library_names_spec=
9289 libname_spec='lib$name'
9290 soname_spec=
9291 shrext_cmds=".so"
9292 postinstall_cmds=
9293 postuninstall_cmds=
9294 finish_cmds=
9295 finish_eval=
9296 shlibpath_var=
9297 shlibpath_overrides_runpath=unknown
9298 version_type=none
9299 dynamic_linker="$host_os ld.so"
9300 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9301 if test "$GCC" = yes; then
9302   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9303   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9304     # if the path contains ";" then we assume it to be the separator
9305     # otherwise default to the standard path separator (i.e. ":") - it is
9306     # assumed that no part of a normal pathname contains ";" but that should
9307     # okay in the real world where ";" in dirpaths is itself problematic.
9308     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9309   else
9310     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9311   fi
9312 else
9313   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9314 fi
9315 need_lib_prefix=unknown
9316 hardcode_into_libs=no
9317
9318 # when you set need_version to no, make sure it does not cause -set_version
9319 # flags to be left without arguments
9320 need_version=unknown
9321
9322 case $host_os in
9323 aix3*)
9324   version_type=linux
9325   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9326   shlibpath_var=LIBPATH
9327
9328   # AIX 3 has no versioning support, so we append a major version to the name.
9329   soname_spec='${libname}${release}${shared_ext}$major'
9330   ;;
9331
9332 aix4* | aix5*)
9333   version_type=linux
9334   need_lib_prefix=no
9335   need_version=no
9336   hardcode_into_libs=yes
9337   if test "$host_cpu" = ia64; then
9338     # AIX 5 supports IA64
9339     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9340     shlibpath_var=LD_LIBRARY_PATH
9341   else
9342     # With GCC up to 2.95.x, collect2 would create an import file
9343     # for dependence libraries.  The import file would start with
9344     # the line `#! .'.  This would cause the generated library to
9345     # depend on `.', always an invalid library.  This was fixed in
9346     # development snapshots of GCC prior to 3.0.
9347     case $host_os in
9348       aix4 | aix4.[01] | aix4.[01].*)
9349       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9350            echo ' yes '
9351            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9352         :
9353       else
9354         can_build_shared=no
9355       fi
9356       ;;
9357     esac
9358     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9359     # soname into executable. Probably we can add versioning support to
9360     # collect2, so additional links can be useful in future.
9361     if test "$aix_use_runtimelinking" = yes; then
9362       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9363       # instead of lib<name>.a to let people know that these are not
9364       # typical AIX shared libraries.
9365       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366     else
9367       # We preserve .a as extension for shared libraries through AIX4.2
9368       # and later when we are not doing run time linking.
9369       library_names_spec='${libname}${release}.a $libname.a'
9370       soname_spec='${libname}${release}${shared_ext}$major'
9371     fi
9372     shlibpath_var=LIBPATH
9373   fi
9374   ;;
9375
9376 amigaos*)
9377   library_names_spec='$libname.ixlibrary $libname.a'
9378   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9379   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'
9380   ;;
9381
9382 beos*)
9383   library_names_spec='${libname}${shared_ext}'
9384   dynamic_linker="$host_os ld.so"
9385   shlibpath_var=LIBRARY_PATH
9386   ;;
9387
9388 bsdi[45]*)
9389   version_type=linux
9390   need_version=no
9391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392   soname_spec='${libname}${release}${shared_ext}$major'
9393   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9394   shlibpath_var=LD_LIBRARY_PATH
9395   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9396   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9397   # the default ld.so.conf also contains /usr/contrib/lib and
9398   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9399   # libtool to hard-code these into programs
9400   ;;
9401
9402 cygwin* | mingw* | pw32*)
9403   version_type=windows
9404   shrext_cmds=".dll"
9405   need_version=no
9406   need_lib_prefix=no
9407
9408   case $GCC,$host_os in
9409   yes,cygwin* | yes,mingw* | yes,pw32*)
9410     library_names_spec='$libname.dll.a'
9411     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9412     postinstall_cmds='base_file=`basename \${file}`~
9413       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9414       dldir=$destdir/`dirname \$dlpath`~
9415       test -d \$dldir || mkdir -p \$dldir~
9416       $install_prog $dir/$dlname \$dldir/$dlname'
9417     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9418       dlpath=$dir/\$dldll~
9419        $rm \$dlpath'
9420     shlibpath_overrides_runpath=yes
9421
9422     case $host_os in
9423     cygwin*)
9424       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9425       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9426       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9427       ;;
9428     mingw*)
9429       # MinGW DLLs use traditional 'lib' prefix
9430       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9431       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9432       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9433         # It is most probably a Windows format PATH printed by
9434         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9435         # path with ; separators, and with drive letters. We can handle the
9436         # drive letters (cygwin fileutils understands them), so leave them,
9437         # especially as we might pass files found there to a mingw objdump,
9438         # which wouldn't understand a cygwinified path. Ahh.
9439         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9440       else
9441         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9442       fi
9443       ;;
9444     pw32*)
9445       # pw32 DLLs use 'pw' prefix rather than 'lib'
9446       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9447       ;;
9448     esac
9449     ;;
9450
9451   *)
9452     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9453     ;;
9454   esac
9455   dynamic_linker='Win32 ld.exe'
9456   # FIXME: first we should search . and the directory the executable is in
9457   shlibpath_var=PATH
9458   ;;
9459
9460 darwin* | rhapsody*)
9461   dynamic_linker="$host_os dyld"
9462   version_type=darwin
9463   need_lib_prefix=no
9464   need_version=no
9465   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9466   soname_spec='${libname}${release}${major}$shared_ext'
9467   shlibpath_overrides_runpath=yes
9468   shlibpath_var=DYLD_LIBRARY_PATH
9469   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9470   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9471   if test "$GCC" = yes; then
9472     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"`
9473   else
9474     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9475   fi
9476   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9477   ;;
9478
9479 dgux*)
9480   version_type=linux
9481   need_lib_prefix=no
9482   need_version=no
9483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9484   soname_spec='${libname}${release}${shared_ext}$major'
9485   shlibpath_var=LD_LIBRARY_PATH
9486   ;;
9487
9488 freebsd1*)
9489   dynamic_linker=no
9490   ;;
9491
9492 kfreebsd*-gnu)
9493   version_type=linux
9494   need_lib_prefix=no
9495   need_version=no
9496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9497   soname_spec='${libname}${release}${shared_ext}$major'
9498   shlibpath_var=LD_LIBRARY_PATH
9499   shlibpath_overrides_runpath=no
9500   hardcode_into_libs=yes
9501   dynamic_linker='GNU ld.so'
9502   ;;
9503
9504 freebsd*)
9505   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9506   version_type=freebsd-$objformat
9507   case $version_type in
9508     freebsd-elf*)
9509       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9510       need_version=no
9511       need_lib_prefix=no
9512       ;;
9513     freebsd-*)
9514       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9515       need_version=yes
9516       ;;
9517   esac
9518   shlibpath_var=LD_LIBRARY_PATH
9519   case $host_os in
9520   freebsd2*)
9521     shlibpath_overrides_runpath=yes
9522     ;;
9523   freebsd3.01* | freebsdelf3.01*)
9524     shlibpath_overrides_runpath=yes
9525     hardcode_into_libs=yes
9526     ;;
9527   *) # from 3.2 on
9528     shlibpath_overrides_runpath=no
9529     hardcode_into_libs=yes
9530     ;;
9531   esac
9532   ;;
9533
9534 gnu*)
9535   version_type=linux
9536   need_lib_prefix=no
9537   need_version=no
9538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9539   soname_spec='${libname}${release}${shared_ext}$major'
9540   shlibpath_var=LD_LIBRARY_PATH
9541   hardcode_into_libs=yes
9542   ;;
9543
9544 hpux9* | hpux10* | hpux11*)
9545   # Give a soname corresponding to the major version so that dld.sl refuses to
9546   # link against other versions.
9547   version_type=sunos
9548   need_lib_prefix=no
9549   need_version=no
9550   case "$host_cpu" in
9551   ia64*)
9552     shrext_cmds='.so'
9553     hardcode_into_libs=yes
9554     dynamic_linker="$host_os dld.so"
9555     shlibpath_var=LD_LIBRARY_PATH
9556     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558     soname_spec='${libname}${release}${shared_ext}$major'
9559     if test "X$HPUX_IA64_MODE" = X32; then
9560       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9561     else
9562       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9563     fi
9564     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9565     ;;
9566    hppa*64*)
9567      shrext_cmds='.sl'
9568      hardcode_into_libs=yes
9569      dynamic_linker="$host_os dld.sl"
9570      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9571      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9572      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573      soname_spec='${libname}${release}${shared_ext}$major'
9574      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9575      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9576      ;;
9577    *)
9578     shrext_cmds='.sl'
9579     dynamic_linker="$host_os dld.sl"
9580     shlibpath_var=SHLIB_PATH
9581     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583     soname_spec='${libname}${release}${shared_ext}$major'
9584     ;;
9585   esac
9586   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9587   postinstall_cmds='chmod 555 $lib'
9588   ;;
9589
9590 irix5* | irix6* | nonstopux*)
9591   case $host_os in
9592     nonstopux*) version_type=nonstopux ;;
9593     *)
9594         if test "$lt_cv_prog_gnu_ld" = yes; then
9595                 version_type=linux
9596         else
9597                 version_type=irix
9598         fi ;;
9599   esac
9600   need_lib_prefix=no
9601   need_version=no
9602   soname_spec='${libname}${release}${shared_ext}$major'
9603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9604   case $host_os in
9605   irix5* | nonstopux*)
9606     libsuff= shlibsuff=
9607     ;;
9608   *)
9609     case $LD in # libtool.m4 will add one of these switches to LD
9610     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9611       libsuff= shlibsuff= libmagic=32-bit;;
9612     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9613       libsuff=32 shlibsuff=N32 libmagic=N32;;
9614     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9615       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9616     *) libsuff= shlibsuff= libmagic=never-match;;
9617     esac
9618     ;;
9619   esac
9620   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9621   shlibpath_overrides_runpath=no
9622   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9623   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9624   hardcode_into_libs=yes
9625   ;;
9626
9627 # No shared lib support for Linux oldld, aout, or coff.
9628 linux*oldld* | linux*aout* | linux*coff*)
9629   dynamic_linker=no
9630   ;;
9631
9632 # This must be Linux ELF.
9633 linux*)
9634   version_type=linux
9635   need_lib_prefix=no
9636   need_version=no
9637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638   soname_spec='${libname}${release}${shared_ext}$major'
9639   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9640   shlibpath_var=LD_LIBRARY_PATH
9641   shlibpath_overrides_runpath=no
9642   # This implies no fast_install, which is unacceptable.
9643   # Some rework will be needed to allow for fast_install
9644   # before this can be enabled.
9645   hardcode_into_libs=yes
9646
9647   # Append ld.so.conf contents to the search path
9648   if test -f /etc/ld.so.conf; then
9649     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9650     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9651   fi
9652
9653   # We used to test for /lib/ld.so.1 and disable shared libraries on
9654   # powerpc, because MkLinux only supported shared libraries with the
9655   # GNU dynamic linker.  Since this was broken with cross compilers,
9656   # most powerpc-linux boxes support dynamic linking these days and
9657   # people can always --disable-shared, the test was removed, and we
9658   # assume the GNU/Linux dynamic linker is in use.
9659   dynamic_linker='GNU/Linux ld.so'
9660   ;;
9661
9662 knetbsd*-gnu)
9663   version_type=linux
9664   need_lib_prefix=no
9665   need_version=no
9666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9667   soname_spec='${libname}${release}${shared_ext}$major'
9668   shlibpath_var=LD_LIBRARY_PATH
9669   shlibpath_overrides_runpath=no
9670   hardcode_into_libs=yes
9671   dynamic_linker='GNU ld.so'
9672   ;;
9673
9674 netbsd*)
9675   version_type=sunos
9676   need_lib_prefix=no
9677   need_version=no
9678   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9679     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9680     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9681     dynamic_linker='NetBSD (a.out) ld.so'
9682   else
9683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9684     soname_spec='${libname}${release}${shared_ext}$major'
9685     dynamic_linker='NetBSD ld.elf_so'
9686   fi
9687   shlibpath_var=LD_LIBRARY_PATH
9688   shlibpath_overrides_runpath=yes
9689   hardcode_into_libs=yes
9690   ;;
9691
9692 newsos6)
9693   version_type=linux
9694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695   shlibpath_var=LD_LIBRARY_PATH
9696   shlibpath_overrides_runpath=yes
9697   ;;
9698
9699 nto-qnx*)
9700   version_type=linux
9701   need_lib_prefix=no
9702   need_version=no
9703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704   soname_spec='${libname}${release}${shared_ext}$major'
9705   shlibpath_var=LD_LIBRARY_PATH
9706   shlibpath_overrides_runpath=yes
9707   ;;
9708
9709 openbsd*)
9710   version_type=sunos
9711   need_lib_prefix=no
9712   need_version=no
9713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9714   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9715   shlibpath_var=LD_LIBRARY_PATH
9716   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9717     case $host_os in
9718       openbsd2.[89] | openbsd2.[89].*)
9719         shlibpath_overrides_runpath=no
9720         ;;
9721       *)
9722         shlibpath_overrides_runpath=yes
9723         ;;
9724       esac
9725   else
9726     shlibpath_overrides_runpath=yes
9727   fi
9728   ;;
9729
9730 os2*)
9731   libname_spec='$name'
9732   shrext_cmds=".dll"
9733   need_lib_prefix=no
9734   library_names_spec='$libname${shared_ext} $libname.a'
9735   dynamic_linker='OS/2 ld.exe'
9736   shlibpath_var=LIBPATH
9737   ;;
9738
9739 osf3* | osf4* | osf5*)
9740   version_type=osf
9741   need_lib_prefix=no
9742   need_version=no
9743   soname_spec='${libname}${release}${shared_ext}$major'
9744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745   shlibpath_var=LD_LIBRARY_PATH
9746   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9747   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9748   ;;
9749
9750 sco3.2v5*)
9751   version_type=osf
9752   soname_spec='${libname}${release}${shared_ext}$major'
9753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754   shlibpath_var=LD_LIBRARY_PATH
9755   ;;
9756
9757 solaris*)
9758   version_type=linux
9759   need_lib_prefix=no
9760   need_version=no
9761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762   soname_spec='${libname}${release}${shared_ext}$major'
9763   shlibpath_var=LD_LIBRARY_PATH
9764   shlibpath_overrides_runpath=yes
9765   hardcode_into_libs=yes
9766   # ldd complains unless libraries are executable
9767   postinstall_cmds='chmod +x $lib'
9768   ;;
9769
9770 sunos4*)
9771   version_type=sunos
9772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9773   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9774   shlibpath_var=LD_LIBRARY_PATH
9775   shlibpath_overrides_runpath=yes
9776   if test "$with_gnu_ld" = yes; then
9777     need_lib_prefix=no
9778   fi
9779   need_version=yes
9780   ;;
9781
9782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9783   version_type=linux
9784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785   soname_spec='${libname}${release}${shared_ext}$major'
9786   shlibpath_var=LD_LIBRARY_PATH
9787   case $host_vendor in
9788     sni)
9789       shlibpath_overrides_runpath=no
9790       need_lib_prefix=no
9791       export_dynamic_flag_spec='${wl}-Blargedynsym'
9792       runpath_var=LD_RUN_PATH
9793       ;;
9794     siemens)
9795       need_lib_prefix=no
9796       ;;
9797     motorola)
9798       need_lib_prefix=no
9799       need_version=no
9800       shlibpath_overrides_runpath=no
9801       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9802       ;;
9803   esac
9804   ;;
9805
9806 sysv4*MP*)
9807   if test -d /usr/nec ;then
9808     version_type=linux
9809     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9810     soname_spec='$libname${shared_ext}.$major'
9811     shlibpath_var=LD_LIBRARY_PATH
9812   fi
9813   ;;
9814
9815 uts4*)
9816   version_type=linux
9817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818   soname_spec='${libname}${release}${shared_ext}$major'
9819   shlibpath_var=LD_LIBRARY_PATH
9820   ;;
9821
9822 *)
9823   dynamic_linker=no
9824   ;;
9825 esac
9826 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9827 echo "${ECHO_T}$dynamic_linker" >&6
9828 test "$dynamic_linker" = no && can_build_shared=no
9829
9830 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9831 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9832 hardcode_action=
9833 if test -n "$hardcode_libdir_flag_spec" || \
9834    test -n "$runpath_var" || \
9835    test "X$hardcode_automatic" = "Xyes" ; then
9836
9837   # We can hardcode non-existant directories.
9838   if test "$hardcode_direct" != no &&
9839      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9840      # have to relink, otherwise we might link with an installed library
9841      # when we should be linking with a yet-to-be-installed one
9842      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9843      test "$hardcode_minus_L" != no; then
9844     # Linking always hardcodes the temporary library directory.
9845     hardcode_action=relink
9846   else
9847     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9848     hardcode_action=immediate
9849   fi
9850 else
9851   # We cannot hardcode anything, or else we can only hardcode existing
9852   # directories.
9853   hardcode_action=unsupported
9854 fi
9855 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9856 echo "${ECHO_T}$hardcode_action" >&6
9857
9858 if test "$hardcode_action" = relink; then
9859   # Fast installation is not supported
9860   enable_fast_install=no
9861 elif test "$shlibpath_overrides_runpath" = yes ||
9862      test "$enable_shared" = no; then
9863   # Fast installation is not necessary
9864   enable_fast_install=needless
9865 fi
9866
9867 striplib=
9868 old_striplib=
9869 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9870 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9871 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9872   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9873   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9874   echo "$as_me:$LINENO: result: yes" >&5
9875 echo "${ECHO_T}yes" >&6
9876 else
9877 # FIXME - insert some real tests, host_os isn't really good enough
9878   case $host_os in
9879    darwin*)
9880        if test -n "$STRIP" ; then
9881          striplib="$STRIP -x"
9882          echo "$as_me:$LINENO: result: yes" >&5
9883 echo "${ECHO_T}yes" >&6
9884        else
9885   echo "$as_me:$LINENO: result: no" >&5
9886 echo "${ECHO_T}no" >&6
9887 fi
9888        ;;
9889    *)
9890   echo "$as_me:$LINENO: result: no" >&5
9891 echo "${ECHO_T}no" >&6
9892     ;;
9893   esac
9894 fi
9895
9896 if test "x$enable_dlopen" != xyes; then
9897   enable_dlopen=unknown
9898   enable_dlopen_self=unknown
9899   enable_dlopen_self_static=unknown
9900 else
9901   lt_cv_dlopen=no
9902   lt_cv_dlopen_libs=
9903
9904   case $host_os in
9905   beos*)
9906     lt_cv_dlopen="load_add_on"
9907     lt_cv_dlopen_libs=
9908     lt_cv_dlopen_self=yes
9909     ;;
9910
9911   mingw* | pw32*)
9912     lt_cv_dlopen="LoadLibrary"
9913     lt_cv_dlopen_libs=
9914    ;;
9915
9916   cygwin*)
9917     lt_cv_dlopen="dlopen"
9918     lt_cv_dlopen_libs=
9919    ;;
9920
9921   darwin*)
9922   # if libdl is installed we need to link against it
9923     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9924 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9925 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9926   echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928   ac_check_lib_save_LIBS=$LIBS
9929 LIBS="-ldl  $LIBS"
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h.  */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h.  */
9936
9937 /* Override any gcc2 internal prototype to avoid an error.  */
9938 #ifdef __cplusplus
9939 extern "C"
9940 #endif
9941 /* We use char because int might match the return type of a gcc2
9942    builtin and then its argument prototype would still apply.  */
9943 char dlopen ();
9944 int
9945 main ()
9946 {
9947 dlopen ();
9948   ;
9949   return 0;
9950 }
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954   (eval $ac_link) 2>conftest.er1
9955   ac_status=$?
9956   grep -v '^ *+' conftest.er1 >conftest.err
9957   rm -f conftest.er1
9958   cat conftest.err >&5
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } &&
9961          { ac_try='test -z "$ac_c_werror_flag"
9962                          || test ! -s conftest.err'
9963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964   (eval $ac_try) 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); }; } &&
9968          { ac_try='test -s conftest$ac_exeext'
9969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970   (eval $ac_try) 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); }; }; then
9974   ac_cv_lib_dl_dlopen=yes
9975 else
9976   echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9978
9979 ac_cv_lib_dl_dlopen=no
9980 fi
9981 rm -f conftest.err conftest.$ac_objext \
9982       conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9984 fi
9985 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9986 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9987 if test $ac_cv_lib_dl_dlopen = yes; then
9988   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9989 else
9990
9991     lt_cv_dlopen="dyld"
9992     lt_cv_dlopen_libs=
9993     lt_cv_dlopen_self=yes
9994
9995 fi
9996
9997    ;;
9998
9999   *)
10000     echo "$as_me:$LINENO: checking for shl_load" >&5
10001 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10002 if test "${ac_cv_func_shl_load+set}" = set; then
10003   echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005   cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h.  */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h.  */
10011 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10013 #define shl_load innocuous_shl_load
10014
10015 /* System header to define __stub macros and hopefully few prototypes,
10016     which can conflict with char shl_load (); below.
10017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018     <limits.h> exists even on freestanding compilers.  */
10019
10020 #ifdef __STDC__
10021 # include <limits.h>
10022 #else
10023 # include <assert.h>
10024 #endif
10025
10026 #undef shl_load
10027
10028 /* Override any gcc2 internal prototype to avoid an error.  */
10029 #ifdef __cplusplus
10030 extern "C"
10031 {
10032 #endif
10033 /* We use char because int might match the return type of a gcc2
10034    builtin and then its argument prototype would still apply.  */
10035 char shl_load ();
10036 /* The GNU C library defines this for functions which it implements
10037     to always fail with ENOSYS.  Some functions are actually named
10038     something starting with __ and the normal name is an alias.  */
10039 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10040 choke me
10041 #else
10042 char (*f) () = shl_load;
10043 #endif
10044 #ifdef __cplusplus
10045 }
10046 #endif
10047
10048 int
10049 main ()
10050 {
10051 return f != shl_load;
10052   ;
10053   return 0;
10054 }
10055 _ACEOF
10056 rm -f conftest.$ac_objext conftest$ac_exeext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10058   (eval $ac_link) 2>conftest.er1
10059   ac_status=$?
10060   grep -v '^ *+' conftest.er1 >conftest.err
10061   rm -f conftest.er1
10062   cat conftest.err >&5
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); } &&
10065          { ac_try='test -z "$ac_c_werror_flag"
10066                          || test ! -s conftest.err'
10067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068   (eval $ac_try) 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); }; } &&
10072          { ac_try='test -s conftest$ac_exeext'
10073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074   (eval $ac_try) 2>&5
10075   ac_status=$?
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); }; }; then
10078   ac_cv_func_shl_load=yes
10079 else
10080   echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10082
10083 ac_cv_func_shl_load=no
10084 fi
10085 rm -f conftest.err conftest.$ac_objext \
10086       conftest$ac_exeext conftest.$ac_ext
10087 fi
10088 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10089 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10090 if test $ac_cv_func_shl_load = yes; then
10091   lt_cv_dlopen="shl_load"
10092 else
10093   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10094 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10095 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10096   echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098   ac_check_lib_save_LIBS=$LIBS
10099 LIBS="-ldld  $LIBS"
10100 cat >conftest.$ac_ext <<_ACEOF
10101 /* confdefs.h.  */
10102 _ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h.  */
10106
10107 /* Override any gcc2 internal prototype to avoid an error.  */
10108 #ifdef __cplusplus
10109 extern "C"
10110 #endif
10111 /* We use char because int might match the return type of a gcc2
10112    builtin and then its argument prototype would still apply.  */
10113 char shl_load ();
10114 int
10115 main ()
10116 {
10117 shl_load ();
10118   ;
10119   return 0;
10120 }
10121 _ACEOF
10122 rm -f conftest.$ac_objext conftest$ac_exeext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10124   (eval $ac_link) 2>conftest.er1
10125   ac_status=$?
10126   grep -v '^ *+' conftest.er1 >conftest.err
10127   rm -f conftest.er1
10128   cat conftest.err >&5
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); } &&
10131          { ac_try='test -z "$ac_c_werror_flag"
10132                          || test ! -s conftest.err'
10133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134   (eval $ac_try) 2>&5
10135   ac_status=$?
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); }; } &&
10138          { ac_try='test -s conftest$ac_exeext'
10139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140   (eval $ac_try) 2>&5
10141   ac_status=$?
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); }; }; then
10144   ac_cv_lib_dld_shl_load=yes
10145 else
10146   echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10148
10149 ac_cv_lib_dld_shl_load=no
10150 fi
10151 rm -f conftest.err conftest.$ac_objext \
10152       conftest$ac_exeext conftest.$ac_ext
10153 LIBS=$ac_check_lib_save_LIBS
10154 fi
10155 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10156 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10157 if test $ac_cv_lib_dld_shl_load = yes; then
10158   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10159 else
10160   echo "$as_me:$LINENO: checking for dlopen" >&5
10161 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10162 if test "${ac_cv_func_dlopen+set}" = set; then
10163   echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165   cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h.  */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h.  */
10171 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10173 #define dlopen innocuous_dlopen
10174
10175 /* System header to define __stub macros and hopefully few prototypes,
10176     which can conflict with char dlopen (); below.
10177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10178     <limits.h> exists even on freestanding compilers.  */
10179
10180 #ifdef __STDC__
10181 # include <limits.h>
10182 #else
10183 # include <assert.h>
10184 #endif
10185
10186 #undef dlopen
10187
10188 /* Override any gcc2 internal prototype to avoid an error.  */
10189 #ifdef __cplusplus
10190 extern "C"
10191 {
10192 #endif
10193 /* We use char because int might match the return type of a gcc2
10194    builtin and then its argument prototype would still apply.  */
10195 char dlopen ();
10196 /* The GNU C library defines this for functions which it implements
10197     to always fail with ENOSYS.  Some functions are actually named
10198     something starting with __ and the normal name is an alias.  */
10199 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10200 choke me
10201 #else
10202 char (*f) () = dlopen;
10203 #endif
10204 #ifdef __cplusplus
10205 }
10206 #endif
10207
10208 int
10209 main ()
10210 {
10211 return f != dlopen;
10212   ;
10213   return 0;
10214 }
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218   (eval $ac_link) 2>conftest.er1
10219   ac_status=$?
10220   grep -v '^ *+' conftest.er1 >conftest.err
10221   rm -f conftest.er1
10222   cat conftest.err >&5
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); } &&
10225          { ac_try='test -z "$ac_c_werror_flag"
10226                          || test ! -s conftest.err'
10227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228   (eval $ac_try) 2>&5
10229   ac_status=$?
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); }; } &&
10232          { ac_try='test -s conftest$ac_exeext'
10233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234   (eval $ac_try) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); }; }; then
10238   ac_cv_func_dlopen=yes
10239 else
10240   echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10242
10243 ac_cv_func_dlopen=no
10244 fi
10245 rm -f conftest.err conftest.$ac_objext \
10246       conftest$ac_exeext conftest.$ac_ext
10247 fi
10248 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10249 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10250 if test $ac_cv_func_dlopen = yes; then
10251   lt_cv_dlopen="dlopen"
10252 else
10253   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10254 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10255 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10256   echo $ECHO_N "(cached) $ECHO_C" >&6
10257 else
10258   ac_check_lib_save_LIBS=$LIBS
10259 LIBS="-ldl  $LIBS"
10260 cat >conftest.$ac_ext <<_ACEOF
10261 /* confdefs.h.  */
10262 _ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h.  */
10266
10267 /* Override any gcc2 internal prototype to avoid an error.  */
10268 #ifdef __cplusplus
10269 extern "C"
10270 #endif
10271 /* We use char because int might match the return type of a gcc2
10272    builtin and then its argument prototype would still apply.  */
10273 char dlopen ();
10274 int
10275 main ()
10276 {
10277 dlopen ();
10278   ;
10279   return 0;
10280 }
10281 _ACEOF
10282 rm -f conftest.$ac_objext conftest$ac_exeext
10283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10284   (eval $ac_link) 2>conftest.er1
10285   ac_status=$?
10286   grep -v '^ *+' conftest.er1 >conftest.err
10287   rm -f conftest.er1
10288   cat conftest.err >&5
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); } &&
10291          { ac_try='test -z "$ac_c_werror_flag"
10292                          || test ! -s conftest.err'
10293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294   (eval $ac_try) 2>&5
10295   ac_status=$?
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); }; } &&
10298          { ac_try='test -s conftest$ac_exeext'
10299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300   (eval $ac_try) 2>&5
10301   ac_status=$?
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); }; }; then
10304   ac_cv_lib_dl_dlopen=yes
10305 else
10306   echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10308
10309 ac_cv_lib_dl_dlopen=no
10310 fi
10311 rm -f conftest.err conftest.$ac_objext \
10312       conftest$ac_exeext conftest.$ac_ext
10313 LIBS=$ac_check_lib_save_LIBS
10314 fi
10315 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10316 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10317 if test $ac_cv_lib_dl_dlopen = yes; then
10318   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10319 else
10320   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10321 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10322 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10323   echo $ECHO_N "(cached) $ECHO_C" >&6
10324 else
10325   ac_check_lib_save_LIBS=$LIBS
10326 LIBS="-lsvld  $LIBS"
10327 cat >conftest.$ac_ext <<_ACEOF
10328 /* confdefs.h.  */
10329 _ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h.  */
10333
10334 /* Override any gcc2 internal prototype to avoid an error.  */
10335 #ifdef __cplusplus
10336 extern "C"
10337 #endif
10338 /* We use char because int might match the return type of a gcc2
10339    builtin and then its argument prototype would still apply.  */
10340 char dlopen ();
10341 int
10342 main ()
10343 {
10344 dlopen ();
10345   ;
10346   return 0;
10347 }
10348 _ACEOF
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351   (eval $ac_link) 2>conftest.er1
10352   ac_status=$?
10353   grep -v '^ *+' conftest.er1 >conftest.err
10354   rm -f conftest.er1
10355   cat conftest.err >&5
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); } &&
10358          { ac_try='test -z "$ac_c_werror_flag"
10359                          || test ! -s conftest.err'
10360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361   (eval $ac_try) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); }; } &&
10365          { ac_try='test -s conftest$ac_exeext'
10366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367   (eval $ac_try) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); }; }; then
10371   ac_cv_lib_svld_dlopen=yes
10372 else
10373   echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10375
10376 ac_cv_lib_svld_dlopen=no
10377 fi
10378 rm -f conftest.err conftest.$ac_objext \
10379       conftest$ac_exeext conftest.$ac_ext
10380 LIBS=$ac_check_lib_save_LIBS
10381 fi
10382 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10383 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10384 if test $ac_cv_lib_svld_dlopen = yes; then
10385   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10386 else
10387   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10388 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10389 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10390   echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392   ac_check_lib_save_LIBS=$LIBS
10393 LIBS="-ldld  $LIBS"
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h.  */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h.  */
10400
10401 /* Override any gcc2 internal prototype to avoid an error.  */
10402 #ifdef __cplusplus
10403 extern "C"
10404 #endif
10405 /* We use char because int might match the return type of a gcc2
10406    builtin and then its argument prototype would still apply.  */
10407 char dld_link ();
10408 int
10409 main ()
10410 {
10411 dld_link ();
10412   ;
10413   return 0;
10414 }
10415 _ACEOF
10416 rm -f conftest.$ac_objext conftest$ac_exeext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10418   (eval $ac_link) 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } &&
10425          { ac_try='test -z "$ac_c_werror_flag"
10426                          || test ! -s conftest.err'
10427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428   (eval $ac_try) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; } &&
10432          { ac_try='test -s conftest$ac_exeext'
10433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434   (eval $ac_try) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; }; then
10438   ac_cv_lib_dld_dld_link=yes
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443 ac_cv_lib_dld_dld_link=no
10444 fi
10445 rm -f conftest.err conftest.$ac_objext \
10446       conftest$ac_exeext conftest.$ac_ext
10447 LIBS=$ac_check_lib_save_LIBS
10448 fi
10449 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10450 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10451 if test $ac_cv_lib_dld_dld_link = yes; then
10452   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10453 fi
10454
10455
10456 fi
10457
10458
10459 fi
10460
10461
10462 fi
10463
10464
10465 fi
10466
10467
10468 fi
10469
10470     ;;
10471   esac
10472
10473   if test "x$lt_cv_dlopen" != xno; then
10474     enable_dlopen=yes
10475   else
10476     enable_dlopen=no
10477   fi
10478
10479   case $lt_cv_dlopen in
10480   dlopen)
10481     save_CPPFLAGS="$CPPFLAGS"
10482     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10483
10484     save_LDFLAGS="$LDFLAGS"
10485     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10486
10487     save_LIBS="$LIBS"
10488     LIBS="$lt_cv_dlopen_libs $LIBS"
10489
10490     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10491 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10492 if test "${lt_cv_dlopen_self+set}" = set; then
10493   echo $ECHO_N "(cached) $ECHO_C" >&6
10494 else
10495           if test "$cross_compiling" = yes; then :
10496   lt_cv_dlopen_self=cross
10497 else
10498   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10499   lt_status=$lt_dlunknown
10500   cat > conftest.$ac_ext <<EOF
10501 #line 10501 "configure"
10502 #include "confdefs.h"
10503
10504 #if HAVE_DLFCN_H
10505 #include <dlfcn.h>
10506 #endif
10507
10508 #include <stdio.h>
10509
10510 #ifdef RTLD_GLOBAL
10511 #  define LT_DLGLOBAL           RTLD_GLOBAL
10512 #else
10513 #  ifdef DL_GLOBAL
10514 #    define LT_DLGLOBAL         DL_GLOBAL
10515 #  else
10516 #    define LT_DLGLOBAL         0
10517 #  endif
10518 #endif
10519
10520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10521    find out it does not work in some platform. */
10522 #ifndef LT_DLLAZY_OR_NOW
10523 #  ifdef RTLD_LAZY
10524 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10525 #  else
10526 #    ifdef DL_LAZY
10527 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10528 #    else
10529 #      ifdef RTLD_NOW
10530 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10531 #      else
10532 #        ifdef DL_NOW
10533 #          define LT_DLLAZY_OR_NOW      DL_NOW
10534 #        else
10535 #          define LT_DLLAZY_OR_NOW      0
10536 #        endif
10537 #      endif
10538 #    endif
10539 #  endif
10540 #endif
10541
10542 #ifdef __cplusplus
10543 extern "C" void exit (int);
10544 #endif
10545
10546 void fnord() { int i=42;}
10547 int main ()
10548 {
10549   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10550   int status = $lt_dlunknown;
10551
10552   if (self)
10553     {
10554       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10555       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10556       /* dlclose (self); */
10557     }
10558
10559     exit (status);
10560 }
10561 EOF
10562   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563   (eval $ac_link) 2>&5
10564   ac_status=$?
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10567     (./conftest; exit; ) 2>/dev/null
10568     lt_status=$?
10569     case x$lt_status in
10570       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10571       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10572       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10573     esac
10574   else :
10575     # compilation failed
10576     lt_cv_dlopen_self=no
10577   fi
10578 fi
10579 rm -fr conftest*
10580
10581
10582 fi
10583 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10584 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10585
10586     if test "x$lt_cv_dlopen_self" = xyes; then
10587       LDFLAGS="$LDFLAGS $link_static_flag"
10588       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10589 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10590 if test "${lt_cv_dlopen_self_static+set}" = set; then
10591   echo $ECHO_N "(cached) $ECHO_C" >&6
10592 else
10593           if test "$cross_compiling" = yes; then :
10594   lt_cv_dlopen_self_static=cross
10595 else
10596   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10597   lt_status=$lt_dlunknown
10598   cat > conftest.$ac_ext <<EOF
10599 #line 10599 "configure"
10600 #include "confdefs.h"
10601
10602 #if HAVE_DLFCN_H
10603 #include <dlfcn.h>
10604 #endif
10605
10606 #include <stdio.h>
10607
10608 #ifdef RTLD_GLOBAL
10609 #  define LT_DLGLOBAL           RTLD_GLOBAL
10610 #else
10611 #  ifdef DL_GLOBAL
10612 #    define LT_DLGLOBAL         DL_GLOBAL
10613 #  else
10614 #    define LT_DLGLOBAL         0
10615 #  endif
10616 #endif
10617
10618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10619    find out it does not work in some platform. */
10620 #ifndef LT_DLLAZY_OR_NOW
10621 #  ifdef RTLD_LAZY
10622 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10623 #  else
10624 #    ifdef DL_LAZY
10625 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10626 #    else
10627 #      ifdef RTLD_NOW
10628 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10629 #      else
10630 #        ifdef DL_NOW
10631 #          define LT_DLLAZY_OR_NOW      DL_NOW
10632 #        else
10633 #          define LT_DLLAZY_OR_NOW      0
10634 #        endif
10635 #      endif
10636 #    endif
10637 #  endif
10638 #endif
10639
10640 #ifdef __cplusplus
10641 extern "C" void exit (int);
10642 #endif
10643
10644 void fnord() { int i=42;}
10645 int main ()
10646 {
10647   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10648   int status = $lt_dlunknown;
10649
10650   if (self)
10651     {
10652       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10653       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10654       /* dlclose (self); */
10655     }
10656
10657     exit (status);
10658 }
10659 EOF
10660   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661   (eval $ac_link) 2>&5
10662   ac_status=$?
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10665     (./conftest; exit; ) 2>/dev/null
10666     lt_status=$?
10667     case x$lt_status in
10668       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10669       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10670       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10671     esac
10672   else :
10673     # compilation failed
10674     lt_cv_dlopen_self_static=no
10675   fi
10676 fi
10677 rm -fr conftest*
10678
10679
10680 fi
10681 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10682 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10683     fi
10684
10685     CPPFLAGS="$save_CPPFLAGS"
10686     LDFLAGS="$save_LDFLAGS"
10687     LIBS="$save_LIBS"
10688     ;;
10689   esac
10690
10691   case $lt_cv_dlopen_self in
10692   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10693   *) enable_dlopen_self=unknown ;;
10694   esac
10695
10696   case $lt_cv_dlopen_self_static in
10697   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10698   *) enable_dlopen_self_static=unknown ;;
10699   esac
10700 fi
10701
10702
10703 # Report which librarie types wil actually be built
10704 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10705 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10706 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10707 echo "${ECHO_T}$can_build_shared" >&6
10708
10709 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10710 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10711 test "$can_build_shared" = "no" && enable_shared=no
10712
10713 # On AIX, shared libraries and static libraries use the same namespace, and
10714 # are all built from PIC.
10715 case "$host_os" in
10716 aix3*)
10717   test "$enable_shared" = yes && enable_static=no
10718   if test -n "$RANLIB"; then
10719     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10720     postinstall_cmds='$RANLIB $lib'
10721   fi
10722   ;;
10723
10724 aix4* | aix5*)
10725   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10726     test "$enable_shared" = yes && enable_static=no
10727   fi
10728     ;;
10729 esac
10730 echo "$as_me:$LINENO: result: $enable_shared" >&5
10731 echo "${ECHO_T}$enable_shared" >&6
10732
10733 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10734 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10735 # Make sure either enable_shared or enable_static is yes.
10736 test "$enable_shared" = yes || enable_static=yes
10737 echo "$as_me:$LINENO: result: $enable_static" >&5
10738 echo "${ECHO_T}$enable_static" >&6
10739
10740 # The else clause should only fire when bootstrapping the
10741 # libtool distribution, otherwise you forgot to ship ltmain.sh
10742 # with your package, and you will get complaints that there are
10743 # no rules to generate ltmain.sh.
10744 if test -f "$ltmain"; then
10745   # See if we are running on zsh, and set the options which allow our commands through
10746   # without removal of \ escapes.
10747   if test -n "${ZSH_VERSION+set}" ; then
10748     setopt NO_GLOB_SUBST
10749   fi
10750   # Now quote all the things that may contain metacharacters while being
10751   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10752   # variables and quote the copies for generation of the libtool script.
10753   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10754     SED SHELL STRIP \
10755     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10756     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10757     deplibs_check_method reload_flag reload_cmds need_locks \
10758     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10759     lt_cv_sys_global_symbol_to_c_name_address \
10760     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10761     old_postinstall_cmds old_postuninstall_cmds \
10762     compiler \
10763     CC \
10764     LD \
10765     lt_prog_compiler_wl \
10766     lt_prog_compiler_pic \
10767     lt_prog_compiler_static \
10768     lt_prog_compiler_no_builtin_flag \
10769     export_dynamic_flag_spec \
10770     thread_safe_flag_spec \
10771     whole_archive_flag_spec \
10772     enable_shared_with_static_runtimes \
10773     old_archive_cmds \
10774     old_archive_from_new_cmds \
10775     predep_objects \
10776     postdep_objects \
10777     predeps \
10778     postdeps \
10779     compiler_lib_search_path \
10780     archive_cmds \
10781     archive_expsym_cmds \
10782     postinstall_cmds \
10783     postuninstall_cmds \
10784     old_archive_from_expsyms_cmds \
10785     allow_undefined_flag \
10786     no_undefined_flag \
10787     export_symbols_cmds \
10788     hardcode_libdir_flag_spec \
10789     hardcode_libdir_flag_spec_ld \
10790     hardcode_libdir_separator \
10791     hardcode_automatic \
10792     module_cmds \
10793     module_expsym_cmds \
10794     lt_cv_prog_compiler_c_o \
10795     exclude_expsyms \
10796     include_expsyms; do
10797
10798     case $var in
10799     old_archive_cmds | \
10800     old_archive_from_new_cmds | \
10801     archive_cmds | \
10802     archive_expsym_cmds | \
10803     module_cmds | \
10804     module_expsym_cmds | \
10805     old_archive_from_expsyms_cmds | \
10806     export_symbols_cmds | \
10807     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10808     postinstall_cmds | postuninstall_cmds | \
10809     old_postinstall_cmds | old_postuninstall_cmds | \
10810     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10811       # Double-quote double-evaled strings.
10812       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10813       ;;
10814     *)
10815       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10816       ;;
10817     esac
10818   done
10819
10820   case $lt_echo in
10821   *'\$0 --fallback-echo"')
10822     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10823     ;;
10824   esac
10825
10826 cfgfile="${ofile}T"
10827   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10828   $rm -f "$cfgfile"
10829   { echo "$as_me:$LINENO: creating $ofile" >&5
10830 echo "$as_me: creating $ofile" >&6;}
10831
10832   cat <<__EOF__ >> "$cfgfile"
10833 #! $SHELL
10834
10835 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10836 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10837 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10838 #
10839 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10840 # Free Software Foundation, Inc.
10841 #
10842 # This file is part of GNU Libtool:
10843 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10844 #
10845 # This program is free software; you can redistribute it and/or modify
10846 # it under the terms of the GNU General Public License as published by
10847 # the Free Software Foundation; either version 2 of the License, or
10848 # (at your option) any later version.
10849 #
10850 # This program is distributed in the hope that it will be useful, but
10851 # WITHOUT ANY WARRANTY; without even the implied warranty of
10852 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10853 # General Public License for more details.
10854 #
10855 # You should have received a copy of the GNU General Public License
10856 # along with this program; if not, write to the Free Software
10857 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10858 #
10859 # As a special exception to the GNU General Public License, if you
10860 # distribute this file as part of a program that contains a
10861 # configuration script generated by Autoconf, you may include it under
10862 # the same distribution terms that you use for the rest of that program.
10863
10864 # A sed program that does not truncate output.
10865 SED=$lt_SED
10866
10867 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10868 Xsed="$SED -e s/^X//"
10869
10870 # The HP-UX ksh and POSIX shell print the target directory to stdout
10871 # if CDPATH is set.
10872 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10873
10874 # The names of the tagged configurations supported by this script.
10875 available_tags=
10876
10877 # ### BEGIN LIBTOOL CONFIG
10878
10879 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10880
10881 # Shell to use when invoking shell scripts.
10882 SHELL=$lt_SHELL
10883
10884 # Whether or not to build shared libraries.
10885 build_libtool_libs=$enable_shared
10886
10887 # Whether or not to build static libraries.
10888 build_old_libs=$enable_static
10889
10890 # Whether or not to add -lc for building shared libraries.
10891 build_libtool_need_lc=$archive_cmds_need_lc
10892
10893 # Whether or not to disallow shared libs when runtime libs are static
10894 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10895
10896 # Whether or not to optimize for fast installation.
10897 fast_install=$enable_fast_install
10898
10899 # The host system.
10900 host_alias=$host_alias
10901 host=$host
10902
10903 # An echo program that does not interpret backslashes.
10904 echo=$lt_echo
10905
10906 # The archiver.
10907 AR=$lt_AR
10908 AR_FLAGS=$lt_AR_FLAGS
10909
10910 # A C compiler.
10911 LTCC=$lt_LTCC
10912
10913 # A language-specific compiler.
10914 CC=$lt_compiler
10915
10916 # Is the compiler the GNU C compiler?
10917 with_gcc=$GCC
10918
10919 # An ERE matcher.
10920 EGREP=$lt_EGREP
10921
10922 # The linker used to build libraries.
10923 LD=$lt_LD
10924
10925 # Whether we need hard or soft links.
10926 LN_S=$lt_LN_S
10927
10928 # A BSD-compatible nm program.
10929 NM=$lt_NM
10930
10931 # A symbol stripping program
10932 STRIP=$lt_STRIP
10933
10934 # Used to examine libraries when file_magic_cmd begins "file"
10935 MAGIC_CMD=$MAGIC_CMD
10936
10937 # Used on cygwin: DLL creation program.
10938 DLLTOOL="$DLLTOOL"
10939
10940 # Used on cygwin: object dumper.
10941 OBJDUMP="$OBJDUMP"
10942
10943 # Used on cygwin: assembler.
10944 AS="$AS"
10945
10946 # The name of the directory that contains temporary libtool files.
10947 objdir=$objdir
10948
10949 # How to create reloadable object files.
10950 reload_flag=$lt_reload_flag
10951 reload_cmds=$lt_reload_cmds
10952
10953 # How to pass a linker flag through the compiler.
10954 wl=$lt_lt_prog_compiler_wl
10955
10956 # Object file suffix (normally "o").
10957 objext="$ac_objext"
10958
10959 # Old archive suffix (normally "a").
10960 libext="$libext"
10961
10962 # Shared library suffix (normally ".so").
10963 shrext_cmds='$shrext_cmds'
10964
10965 # Executable file suffix (normally "").
10966 exeext="$exeext"
10967
10968 # Additional compiler flags for building library objects.
10969 pic_flag=$lt_lt_prog_compiler_pic
10970 pic_mode=$pic_mode
10971
10972 # What is the maximum length of a command?
10973 max_cmd_len=$lt_cv_sys_max_cmd_len
10974
10975 # Does compiler simultaneously support -c and -o options?
10976 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10977
10978 # Must we lock files when doing compilation ?
10979 need_locks=$lt_need_locks
10980
10981 # Do we need the lib prefix for modules?
10982 need_lib_prefix=$need_lib_prefix
10983
10984 # Do we need a version for libraries?
10985 need_version=$need_version
10986
10987 # Whether dlopen is supported.
10988 dlopen_support=$enable_dlopen
10989
10990 # Whether dlopen of programs is supported.
10991 dlopen_self=$enable_dlopen_self
10992
10993 # Whether dlopen of statically linked programs is supported.
10994 dlopen_self_static=$enable_dlopen_self_static
10995
10996 # Compiler flag to prevent dynamic linking.
10997 link_static_flag=$lt_lt_prog_compiler_static
10998
10999 # Compiler flag to turn off builtin functions.
11000 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11001
11002 # Compiler flag to allow reflexive dlopens.
11003 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11004
11005 # Compiler flag to generate shared objects directly from archives.
11006 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11007
11008 # Compiler flag to generate thread-safe objects.
11009 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11010
11011 # Library versioning type.
11012 version_type=$version_type
11013
11014 # Format of library name prefix.
11015 libname_spec=$lt_libname_spec
11016
11017 # List of archive names.  First name is the real one, the rest are links.
11018 # The last name is the one that the linker finds with -lNAME.
11019 library_names_spec=$lt_library_names_spec
11020
11021 # The coded name of the library, if different from the real name.
11022 soname_spec=$lt_soname_spec
11023
11024 # Commands used to build and install an old-style archive.
11025 RANLIB=$lt_RANLIB
11026 old_archive_cmds=$lt_old_archive_cmds
11027 old_postinstall_cmds=$lt_old_postinstall_cmds
11028 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11029
11030 # Create an old-style archive from a shared archive.
11031 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11032
11033 # Create a temporary old-style archive to link instead of a shared archive.
11034 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11035
11036 # Commands used to build and install a shared archive.
11037 archive_cmds=$lt_archive_cmds
11038 archive_expsym_cmds=$lt_archive_expsym_cmds
11039 postinstall_cmds=$lt_postinstall_cmds
11040 postuninstall_cmds=$lt_postuninstall_cmds
11041
11042 # Commands used to build a loadable module (assumed same as above if empty)
11043 module_cmds=$lt_module_cmds
11044 module_expsym_cmds=$lt_module_expsym_cmds
11045
11046 # Commands to strip libraries.
11047 old_striplib=$lt_old_striplib
11048 striplib=$lt_striplib
11049
11050 # Dependencies to place before the objects being linked to create a
11051 # shared library.
11052 predep_objects=$lt_predep_objects
11053
11054 # Dependencies to place after the objects being linked to create a
11055 # shared library.
11056 postdep_objects=$lt_postdep_objects
11057
11058 # Dependencies to place before the objects being linked to create a
11059 # shared library.
11060 predeps=$lt_predeps
11061
11062 # Dependencies to place after the objects being linked to create a
11063 # shared library.
11064 postdeps=$lt_postdeps
11065
11066 # The library search path used internally by the compiler when linking
11067 # a shared library.
11068 compiler_lib_search_path=$lt_compiler_lib_search_path
11069
11070 # Method to check whether dependent libraries are shared objects.
11071 deplibs_check_method=$lt_deplibs_check_method
11072
11073 # Command to use when deplibs_check_method == file_magic.
11074 file_magic_cmd=$lt_file_magic_cmd
11075
11076 # Flag that allows shared libraries with undefined symbols to be built.
11077 allow_undefined_flag=$lt_allow_undefined_flag
11078
11079 # Flag that forces no undefined symbols.
11080 no_undefined_flag=$lt_no_undefined_flag
11081
11082 # Commands used to finish a libtool library installation in a directory.
11083 finish_cmds=$lt_finish_cmds
11084
11085 # Same as above, but a single script fragment to be evaled but not shown.
11086 finish_eval=$lt_finish_eval
11087
11088 # Take the output of nm and produce a listing of raw symbols and C names.
11089 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11090
11091 # Transform the output of nm in a proper C declaration
11092 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11093
11094 # Transform the output of nm in a C name address pair
11095 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11096
11097 # This is the shared library runtime path variable.
11098 runpath_var=$runpath_var
11099
11100 # This is the shared library path variable.
11101 shlibpath_var=$shlibpath_var
11102
11103 # Is shlibpath searched before the hard-coded library search path?
11104 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11105
11106 # How to hardcode a shared library path into an executable.
11107 hardcode_action=$hardcode_action
11108
11109 # Whether we should hardcode library paths into libraries.
11110 hardcode_into_libs=$hardcode_into_libs
11111
11112 # Flag to hardcode \$libdir into a binary during linking.
11113 # This must work even if \$libdir does not exist.
11114 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11115
11116 # If ld is used when linking, flag to hardcode \$libdir into
11117 # a binary during linking. This must work even if \$libdir does
11118 # not exist.
11119 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11120
11121 # Whether we need a single -rpath flag with a separated argument.
11122 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11123
11124 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11125 # resulting binary.
11126 hardcode_direct=$hardcode_direct
11127
11128 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11129 # resulting binary.
11130 hardcode_minus_L=$hardcode_minus_L
11131
11132 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11133 # the resulting binary.
11134 hardcode_shlibpath_var=$hardcode_shlibpath_var
11135
11136 # Set to yes if building a shared library automatically hardcodes DIR into the library
11137 # and all subsequent libraries and executables linked against it.
11138 hardcode_automatic=$hardcode_automatic
11139
11140 # Variables whose values should be saved in libtool wrapper scripts and
11141 # restored at relink time.
11142 variables_saved_for_relink="$variables_saved_for_relink"
11143
11144 # Whether libtool must link a program against all its dependency libraries.
11145 link_all_deplibs=$link_all_deplibs
11146
11147 # Compile-time system search path for libraries
11148 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11149
11150 # Run-time system search path for libraries
11151 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11152
11153 # Fix the shell variable \$srcfile for the compiler.
11154 fix_srcfile_path="$fix_srcfile_path"
11155
11156 # Set to yes if exported symbols are required.
11157 always_export_symbols=$always_export_symbols
11158
11159 # The commands to list exported symbols.
11160 export_symbols_cmds=$lt_export_symbols_cmds
11161
11162 # The commands to extract the exported symbol list from a shared archive.
11163 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11164
11165 # Symbols that should not be listed in the preloaded symbols.
11166 exclude_expsyms=$lt_exclude_expsyms
11167
11168 # Symbols that must always be exported.
11169 include_expsyms=$lt_include_expsyms
11170
11171 # ### END LIBTOOL CONFIG
11172
11173 __EOF__
11174
11175
11176   case $host_os in
11177   aix3*)
11178     cat <<\EOF >> "$cfgfile"
11179
11180 # AIX sometimes has problems with the GCC collect2 program.  For some
11181 # reason, if we set the COLLECT_NAMES environment variable, the problems
11182 # vanish in a puff of smoke.
11183 if test "X${COLLECT_NAMES+set}" != Xset; then
11184   COLLECT_NAMES=
11185   export COLLECT_NAMES
11186 fi
11187 EOF
11188     ;;
11189   esac
11190
11191   # We use sed instead of cat because bash on DJGPP gets confused if
11192   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11193   # text mode, it properly converts lines to CR/LF.  This bash problem
11194   # is reportedly fixed, but why not run on old versions too?
11195   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11196
11197   mv -f "$cfgfile" "$ofile" || \
11198     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11199   chmod +x "$ofile"
11200
11201 else
11202   # If there is no Makefile yet, we rely on a make rule to execute
11203   # `config.status --recheck' to rerun these tests and create the
11204   # libtool script then.
11205   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11206   if test -f "$ltmain_in"; then
11207     test -f Makefile && make "$ltmain"
11208   fi
11209 fi
11210
11211
11212 ac_ext=c
11213 ac_cpp='$CPP $CPPFLAGS'
11214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11217
11218 CC="$lt_save_CC"
11219
11220
11221 # Check whether --with-tags or --without-tags was given.
11222 if test "${with_tags+set}" = set; then
11223   withval="$with_tags"
11224   tagnames="$withval"
11225 fi;
11226
11227 if test -f "$ltmain" && test -n "$tagnames"; then
11228   if test ! -f "${ofile}"; then
11229     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11230 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11231   fi
11232
11233   if test -z "$LTCC"; then
11234     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11235     if test -z "$LTCC"; then
11236       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11237 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11238     else
11239       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11240 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11241     fi
11242   fi
11243
11244   # Extract list of available tagged configurations in $ofile.
11245   # Note that this assumes the entire list is on one line.
11246   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11247
11248   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11249   for tagname in $tagnames; do
11250     IFS="$lt_save_ifs"
11251     # Check whether tagname contains only valid characters
11252     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11253     "") ;;
11254     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11255 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11256    { (exit 1); exit 1; }; }
11257         ;;
11258     esac
11259
11260     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11261     then
11262       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11263 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11264    { (exit 1); exit 1; }; }
11265     fi
11266
11267     # Update the list of available tags.
11268     if test -n "$tagname"; then
11269       echo appending configuration tag "$tagname" to $ofile
11270
11271       case $tagname in
11272       CXX)
11273         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11274             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11275             (test "X$CXX" != "Xg++"))) ; then
11276           ac_ext=cc
11277 ac_cpp='$CXXCPP $CPPFLAGS'
11278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11281
11282
11283
11284
11285 archive_cmds_need_lc_CXX=no
11286 allow_undefined_flag_CXX=
11287 always_export_symbols_CXX=no
11288 archive_expsym_cmds_CXX=
11289 export_dynamic_flag_spec_CXX=
11290 hardcode_direct_CXX=no
11291 hardcode_libdir_flag_spec_CXX=
11292 hardcode_libdir_flag_spec_ld_CXX=
11293 hardcode_libdir_separator_CXX=
11294 hardcode_minus_L_CXX=no
11295 hardcode_automatic_CXX=no
11296 module_cmds_CXX=
11297 module_expsym_cmds_CXX=
11298 link_all_deplibs_CXX=unknown
11299 old_archive_cmds_CXX=$old_archive_cmds
11300 no_undefined_flag_CXX=
11301 whole_archive_flag_spec_CXX=
11302 enable_shared_with_static_runtimes_CXX=no
11303
11304 # Dependencies to place before and after the object being linked:
11305 predep_objects_CXX=
11306 postdep_objects_CXX=
11307 predeps_CXX=
11308 postdeps_CXX=
11309 compiler_lib_search_path_CXX=
11310
11311 # Source file extension for C++ test sources.
11312 ac_ext=cc
11313
11314 # Object file extension for compiled C++ test sources.
11315 objext=o
11316 objext_CXX=$objext
11317
11318 # Code to be used in simple compile tests
11319 lt_simple_compile_test_code="int some_variable = 0;\n"
11320
11321 # Code to be used in simple link tests
11322 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11323
11324 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11325
11326 # If no C compiler was specified, use CC.
11327 LTCC=${LTCC-"$CC"}
11328
11329 # Allow CC to be a program name with arguments.
11330 compiler=$CC
11331
11332
11333 # Allow CC to be a program name with arguments.
11334 lt_save_CC=$CC
11335 lt_save_LD=$LD
11336 lt_save_GCC=$GCC
11337 GCC=$GXX
11338 lt_save_with_gnu_ld=$with_gnu_ld
11339 lt_save_path_LD=$lt_cv_path_LD
11340 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11341   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11342 else
11343   unset lt_cv_prog_gnu_ld
11344 fi
11345 if test -n "${lt_cv_path_LDCXX+set}"; then
11346   lt_cv_path_LD=$lt_cv_path_LDCXX
11347 else
11348   unset lt_cv_path_LD
11349 fi
11350 test -z "${LDCXX+set}" || LD=$LDCXX
11351 CC=${CXX-"c++"}
11352 compiler=$CC
11353 compiler_CXX=$CC
11354 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11355
11356 # We don't want -fno-exception wen compiling C++ code, so set the
11357 # no_builtin_flag separately
11358 if test "$GXX" = yes; then
11359   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11360 else
11361   lt_prog_compiler_no_builtin_flag_CXX=
11362 fi
11363
11364 if test "$GXX" = yes; then
11365   # Set up default GNU C++ configuration
11366
11367
11368 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11369 if test "${with_gnu_ld+set}" = set; then
11370   withval="$with_gnu_ld"
11371   test "$withval" = no || with_gnu_ld=yes
11372 else
11373   with_gnu_ld=no
11374 fi;
11375 ac_prog=ld
11376 if test "$GCC" = yes; then
11377   # Check if gcc -print-prog-name=ld gives a path.
11378   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11379 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11380   case $host in
11381   *-*-mingw*)
11382     # gcc leaves a trailing carriage return which upsets mingw
11383     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11384   *)
11385     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11386   esac
11387   case $ac_prog in
11388     # Accept absolute paths.
11389     [\\/]* | ?:[\\/]*)
11390       re_direlt='/[^/][^/]*/\.\./'
11391       # Canonicalize the pathname of ld
11392       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11393       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11394         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11395       done
11396       test -z "$LD" && LD="$ac_prog"
11397       ;;
11398   "")
11399     # If it fails, then pretend we aren't using GCC.
11400     ac_prog=ld
11401     ;;
11402   *)
11403     # If it is relative, then search for the first ld in PATH.
11404     with_gnu_ld=unknown
11405     ;;
11406   esac
11407 elif test "$with_gnu_ld" = yes; then
11408   echo "$as_me:$LINENO: checking for GNU ld" >&5
11409 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11410 else
11411   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11412 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11413 fi
11414 if test "${lt_cv_path_LD+set}" = set; then
11415   echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417   if test -z "$LD"; then
11418   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11419   for ac_dir in $PATH; do
11420     IFS="$lt_save_ifs"
11421     test -z "$ac_dir" && ac_dir=.
11422     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11423       lt_cv_path_LD="$ac_dir/$ac_prog"
11424       # Check to see if the program is GNU ld.  I'd rather use --version,
11425       # but apparently some GNU ld's only accept -v.
11426       # Break only if it was the GNU/non-GNU ld that we prefer.
11427       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11428       *GNU* | *'with BFD'*)
11429         test "$with_gnu_ld" != no && break
11430         ;;
11431       *)
11432         test "$with_gnu_ld" != yes && break
11433         ;;
11434       esac
11435     fi
11436   done
11437   IFS="$lt_save_ifs"
11438 else
11439   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11440 fi
11441 fi
11442
11443 LD="$lt_cv_path_LD"
11444 if test -n "$LD"; then
11445   echo "$as_me:$LINENO: result: $LD" >&5
11446 echo "${ECHO_T}$LD" >&6
11447 else
11448   echo "$as_me:$LINENO: result: no" >&5
11449 echo "${ECHO_T}no" >&6
11450 fi
11451 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11452 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11453    { (exit 1); exit 1; }; }
11454 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11455 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11456 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11457   echo $ECHO_N "(cached) $ECHO_C" >&6
11458 else
11459   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11460 case `$LD -v 2>&1 </dev/null` in
11461 *GNU* | *'with BFD'*)
11462   lt_cv_prog_gnu_ld=yes
11463   ;;
11464 *)
11465   lt_cv_prog_gnu_ld=no
11466   ;;
11467 esac
11468 fi
11469 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11470 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11471 with_gnu_ld=$lt_cv_prog_gnu_ld
11472
11473
11474
11475   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11476   # archiving commands below assume that GNU ld is being used.
11477   if test "$with_gnu_ld" = yes; then
11478     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11479     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'
11480
11481     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11482     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11483
11484     # If archive_cmds runs LD, not CC, wlarc should be empty
11485     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11486     #     investigate it a little bit more. (MM)
11487     wlarc='${wl}'
11488
11489     # ancient GNU ld didn't support --whole-archive et. al.
11490     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11491         grep 'no-whole-archive' > /dev/null; then
11492       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11493     else
11494       whole_archive_flag_spec_CXX=
11495     fi
11496   else
11497     with_gnu_ld=no
11498     wlarc=
11499
11500     # A generic and very simple default shared library creation
11501     # command for GNU C++ for the case where it uses the native
11502     # linker, instead of GNU ld.  If possible, this setting should
11503     # overridden to take advantage of the native linker features on
11504     # the platform it is being used on.
11505     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11506   fi
11507
11508   # Commands to make compiler produce verbose output that lists
11509   # what "hidden" libraries, object files and flags are used when
11510   # linking a shared library.
11511   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11512
11513 else
11514   GXX=no
11515   with_gnu_ld=no
11516   wlarc=
11517 fi
11518
11519 # PORTME: fill in a description of your system's C++ link characteristics
11520 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11521 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11522 ld_shlibs_CXX=yes
11523 case $host_os in
11524   aix3*)
11525     # FIXME: insert proper C++ library support
11526     ld_shlibs_CXX=no
11527     ;;
11528   aix4* | aix5*)
11529     if test "$host_cpu" = ia64; then
11530       # On IA64, the linker does run time linking by default, so we don't
11531       # have to do anything special.
11532       aix_use_runtimelinking=no
11533       exp_sym_flag='-Bexport'
11534       no_entry_flag=""
11535     else
11536       aix_use_runtimelinking=no
11537
11538       # Test if we are trying to use run time linking or normal
11539       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11540       # need to do runtime linking.
11541       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11542         for ld_flag in $LDFLAGS; do
11543           case $ld_flag in
11544           *-brtl*)
11545             aix_use_runtimelinking=yes
11546             break
11547             ;;
11548           esac
11549         done
11550       esac
11551
11552       exp_sym_flag='-bexport'
11553       no_entry_flag='-bnoentry'
11554     fi
11555
11556     # When large executables or shared objects are built, AIX ld can
11557     # have problems creating the table of contents.  If linking a library
11558     # or program results in "error TOC overflow" add -mminimal-toc to
11559     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11560     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11561
11562     archive_cmds_CXX=''
11563     hardcode_direct_CXX=yes
11564     hardcode_libdir_separator_CXX=':'
11565     link_all_deplibs_CXX=yes
11566
11567     if test "$GXX" = yes; then
11568       case $host_os in aix4.012|aix4.012.*)
11569       # We only want to do this on AIX 4.2 and lower, the check
11570       # below for broken collect2 doesn't work under 4.3+
11571         collect2name=`${CC} -print-prog-name=collect2`
11572         if test -f "$collect2name" && \
11573            strings "$collect2name" | grep resolve_lib_name >/dev/null
11574         then
11575           # We have reworked collect2
11576           hardcode_direct_CXX=yes
11577         else
11578           # We have old collect2
11579           hardcode_direct_CXX=unsupported
11580           # It fails to find uninstalled libraries when the uninstalled
11581           # path is not listed in the libpath.  Setting hardcode_minus_L
11582           # to unsupported forces relinking
11583           hardcode_minus_L_CXX=yes
11584           hardcode_libdir_flag_spec_CXX='-L$libdir'
11585           hardcode_libdir_separator_CXX=
11586         fi
11587       esac
11588       shared_flag='-shared'
11589     else
11590       # not using gcc
11591       if test "$host_cpu" = ia64; then
11592         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11593         # chokes on -Wl,-G. The following line is correct:
11594         shared_flag='-G'
11595       else
11596         if test "$aix_use_runtimelinking" = yes; then
11597           shared_flag='${wl}-G'
11598         else
11599           shared_flag='${wl}-bM:SRE'
11600         fi
11601       fi
11602     fi
11603
11604     # It seems that -bexpall does not export symbols beginning with
11605     # underscore (_), so it is better to generate a list of symbols to export.
11606     always_export_symbols_CXX=yes
11607     if test "$aix_use_runtimelinking" = yes; then
11608       # Warning - without using the other runtime loading flags (-brtl),
11609       # -berok will link without error, but may produce a broken library.
11610       allow_undefined_flag_CXX='-berok'
11611       # Determine the default libpath from the value encoded in an empty executable.
11612       cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h.  */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h.  */
11618
11619 int
11620 main ()
11621 {
11622
11623   ;
11624   return 0;
11625 }
11626 _ACEOF
11627 rm -f conftest.$ac_objext conftest$ac_exeext
11628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11629   (eval $ac_link) 2>conftest.er1
11630   ac_status=$?
11631   grep -v '^ *+' conftest.er1 >conftest.err
11632   rm -f conftest.er1
11633   cat conftest.err >&5
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); } &&
11636          { ac_try='test -z "$ac_cxx_werror_flag"
11637                          || test ! -s conftest.err'
11638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639   (eval $ac_try) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); }; } &&
11643          { ac_try='test -s conftest$ac_exeext'
11644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645   (eval $ac_try) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; }; then
11649
11650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11651 }'`
11652 # Check for a 64-bit object if we didn't find anything.
11653 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; }
11654 }'`; fi
11655 else
11656   echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11658
11659 fi
11660 rm -f conftest.err conftest.$ac_objext \
11661       conftest$ac_exeext conftest.$ac_ext
11662 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11663
11664       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11665
11666       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"
11667      else
11668       if test "$host_cpu" = ia64; then
11669         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11670         allow_undefined_flag_CXX="-z nodefs"
11671         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"
11672       else
11673         # Determine the default libpath from the value encoded in an empty executable.
11674         cat >conftest.$ac_ext <<_ACEOF
11675 /* confdefs.h.  */
11676 _ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h.  */
11680
11681 int
11682 main ()
11683 {
11684
11685   ;
11686   return 0;
11687 }
11688 _ACEOF
11689 rm -f conftest.$ac_objext conftest$ac_exeext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11691   (eval $ac_link) 2>conftest.er1
11692   ac_status=$?
11693   grep -v '^ *+' conftest.er1 >conftest.err
11694   rm -f conftest.er1
11695   cat conftest.err >&5
11696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697   (exit $ac_status); } &&
11698          { ac_try='test -z "$ac_cxx_werror_flag"
11699                          || test ! -s conftest.err'
11700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701   (eval $ac_try) 2>&5
11702   ac_status=$?
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); }; } &&
11705          { ac_try='test -s conftest$ac_exeext'
11706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707   (eval $ac_try) 2>&5
11708   ac_status=$?
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); }; }; then
11711
11712 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11713 }'`
11714 # Check for a 64-bit object if we didn't find anything.
11715 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; }
11716 }'`; fi
11717 else
11718   echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11720
11721 fi
11722 rm -f conftest.err conftest.$ac_objext \
11723       conftest$ac_exeext conftest.$ac_ext
11724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11725
11726         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11727         # Warning - without using the other run time loading flags,
11728         # -berok will link without error, but may produce a broken library.
11729         no_undefined_flag_CXX=' ${wl}-bernotok'
11730         allow_undefined_flag_CXX=' ${wl}-berok'
11731         # -bexpall does not export symbols beginning with underscore (_)
11732         always_export_symbols_CXX=yes
11733         # Exported symbols can be pulled into shared objects from archives
11734         whole_archive_flag_spec_CXX=' '
11735         archive_cmds_need_lc_CXX=yes
11736         # This is similar to how AIX traditionally builds it's shared libraries.
11737         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'
11738       fi
11739     fi
11740     ;;
11741   chorus*)
11742     case $cc_basename in
11743       *)
11744         # FIXME: insert proper C++ library support
11745         ld_shlibs_CXX=no
11746         ;;
11747     esac
11748     ;;
11749
11750
11751   cygwin* | mingw* | pw32*)
11752     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11753     # as there is no search path for DLLs.
11754     hardcode_libdir_flag_spec_CXX='-L$libdir'
11755     allow_undefined_flag_CXX=unsupported
11756     always_export_symbols_CXX=no
11757     enable_shared_with_static_runtimes_CXX=yes
11758
11759     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11760       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'
11761       # If the export-symbols file already is a .def file (1st line
11762       # is EXPORTS), use it as is; otherwise, prepend...
11763       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11764         cp $export_symbols $output_objdir/$soname.def;
11765       else
11766         echo EXPORTS > $output_objdir/$soname.def;
11767         cat $export_symbols >> $output_objdir/$soname.def;
11768       fi~
11769       $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'
11770     else
11771       ld_shlibs_CXX=no
11772     fi
11773   ;;
11774       darwin* | rhapsody*)
11775         case "$host_os" in
11776         rhapsody* | darwin1.[012])
11777          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11778          ;;
11779        *) # Darwin 1.3 on
11780          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11781            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11782          else
11783            case ${MACOSX_DEPLOYMENT_TARGET} in
11784              10.[012])
11785                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11786                ;;
11787              10.*)
11788                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11789                ;;
11790            esac
11791          fi
11792          ;;
11793         esac
11794       archive_cmds_need_lc_CXX=no
11795       hardcode_direct_CXX=no
11796       hardcode_automatic_CXX=yes
11797       hardcode_shlibpath_var_CXX=unsupported
11798       whole_archive_flag_spec_CXX=''
11799       link_all_deplibs_CXX=yes
11800
11801     if test "$GXX" = yes ; then
11802       lt_int_apple_cc_single_mod=no
11803       output_verbose_link_cmd='echo'
11804       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11805        lt_int_apple_cc_single_mod=yes
11806       fi
11807       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11808        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11809       else
11810           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'
11811         fi
11812         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11813         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11814           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11815             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}'
11816           else
11817             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}'
11818           fi
11819             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}'
11820       else
11821       case "$cc_basename" in
11822         xlc*)
11823          output_verbose_link_cmd='echo'
11824           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'
11825           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11826           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11827           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}'
11828           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}'
11829           ;;
11830        *)
11831          ld_shlibs_CXX=no
11832           ;;
11833       esac
11834       fi
11835         ;;
11836
11837   dgux*)
11838     case $cc_basename in
11839       ec++)
11840         # FIXME: insert proper C++ library support
11841         ld_shlibs_CXX=no
11842         ;;
11843       ghcx)
11844         # Green Hills C++ Compiler
11845         # FIXME: insert proper C++ library support
11846         ld_shlibs_CXX=no
11847         ;;
11848       *)
11849         # FIXME: insert proper C++ library support
11850         ld_shlibs_CXX=no
11851         ;;
11852     esac
11853     ;;
11854   freebsd12*)
11855     # C++ shared libraries reported to be fairly broken before switch to ELF
11856     ld_shlibs_CXX=no
11857     ;;
11858   freebsd-elf*)
11859     archive_cmds_need_lc_CXX=no
11860     ;;
11861   freebsd* | kfreebsd*-gnu)
11862     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11863     # conventions
11864     ld_shlibs_CXX=yes
11865     ;;
11866   gnu*)
11867     ;;
11868   hpux9*)
11869     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11870     hardcode_libdir_separator_CXX=:
11871     export_dynamic_flag_spec_CXX='${wl}-E'
11872     hardcode_direct_CXX=yes
11873     hardcode_minus_L_CXX=yes # Not in the search PATH,
11874                                 # but as the default
11875                                 # location of the library.
11876
11877     case $cc_basename in
11878     CC)
11879       # FIXME: insert proper C++ library support
11880       ld_shlibs_CXX=no
11881       ;;
11882     aCC)
11883       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'
11884       # Commands to make compiler produce verbose output that lists
11885       # what "hidden" libraries, object files and flags are used when
11886       # linking a shared library.
11887       #
11888       # There doesn't appear to be a way to prevent this compiler from
11889       # explicitly linking system object files so we need to strip them
11890       # from the output so that they don't get included in the library
11891       # dependencies.
11892       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'
11893       ;;
11894     *)
11895       if test "$GXX" = yes; then
11896         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'
11897       else
11898         # FIXME: insert proper C++ library support
11899         ld_shlibs_CXX=no
11900       fi
11901       ;;
11902     esac
11903     ;;
11904   hpux10*|hpux11*)
11905     if test $with_gnu_ld = no; then
11906       case "$host_cpu" in
11907       hppa*64*)
11908         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11909         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11910         hardcode_libdir_separator_CXX=:
11911         ;;
11912       ia64*)
11913         hardcode_libdir_flag_spec_CXX='-L$libdir'
11914         ;;
11915       *)
11916         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11917         hardcode_libdir_separator_CXX=:
11918         export_dynamic_flag_spec_CXX='${wl}-E'
11919         ;;
11920       esac
11921     fi
11922     case "$host_cpu" in
11923     hppa*64*)
11924       hardcode_direct_CXX=no
11925       hardcode_shlibpath_var_CXX=no
11926       ;;
11927     ia64*)
11928       hardcode_direct_CXX=no
11929       hardcode_shlibpath_var_CXX=no
11930       hardcode_minus_L_CXX=yes # Not in the search PATH,
11931                                               # but as the default
11932                                               # location of the library.
11933       ;;
11934     *)
11935       hardcode_direct_CXX=yes
11936       hardcode_minus_L_CXX=yes # Not in the search PATH,
11937                                               # but as the default
11938                                               # location of the library.
11939       ;;
11940     esac
11941
11942     case $cc_basename in
11943       CC)
11944         # FIXME: insert proper C++ library support
11945         ld_shlibs_CXX=no
11946         ;;
11947       aCC)
11948         case "$host_cpu" in
11949         hppa*64*|ia64*)
11950           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11951           ;;
11952         *)
11953           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11954           ;;
11955         esac
11956         # Commands to make compiler produce verbose output that lists
11957         # what "hidden" libraries, object files and flags are used when
11958         # linking a shared library.
11959         #
11960         # There doesn't appear to be a way to prevent this compiler from
11961         # explicitly linking system object files so we need to strip them
11962         # from the output so that they don't get included in the library
11963         # dependencies.
11964         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'
11965         ;;
11966       *)
11967         if test "$GXX" = yes; then
11968           if test $with_gnu_ld = no; then
11969             case "$host_cpu" in
11970             ia64*|hppa*64*)
11971               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11972               ;;
11973             *)
11974               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'
11975               ;;
11976             esac
11977           fi
11978         else
11979           # FIXME: insert proper C++ library support
11980           ld_shlibs_CXX=no
11981         fi
11982         ;;
11983     esac
11984     ;;
11985   irix5* | irix6*)
11986     case $cc_basename in
11987       CC)
11988         # SGI C++
11989         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'
11990
11991         # Archives containing C++ object files must be created using
11992         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11993         # necessary to make sure instantiated templates are included
11994         # in the archive.
11995         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11996         ;;
11997       *)
11998         if test "$GXX" = yes; then
11999           if test "$with_gnu_ld" = no; then
12000             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'
12001           else
12002             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'
12003           fi
12004         fi
12005         link_all_deplibs_CXX=yes
12006         ;;
12007     esac
12008     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12009     hardcode_libdir_separator_CXX=:
12010     ;;
12011   linux*)
12012     case $cc_basename in
12013       KCC)
12014         # Kuck and Associates, Inc. (KAI) C++ Compiler
12015
12016         # KCC will only create a shared library if the output file
12017         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12018         # to its proper name (with version) after linking.
12019         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'
12020         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'
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         #
12025         # There doesn't appear to be a way to prevent this compiler from
12026         # explicitly linking system object files so we need to strip them
12027         # from the output so that they don't get included in the library
12028         # dependencies.
12029         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'
12030
12031         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12032         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12033
12034         # Archives containing C++ object files must be created using
12035         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12036         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12037         ;;
12038       icpc)
12039         # Intel C++
12040         with_gnu_ld=yes
12041         # version 8.0 and above of icpc choke on multiply defined symbols
12042         # if we add $predep_objects and $postdep_objects, however 7.1 and
12043         # earlier do not add the objects themselves.
12044         case `$CC -V 2>&1` in
12045         *"Version 7."*)
12046           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12047           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'
12048           ;;
12049         *)  # Version 8.0 or newer
12050           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12051         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12052           ;;
12053         esac
12054         archive_cmds_need_lc_CXX=no
12055         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12056         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12057         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12058         ;;
12059       cxx)
12060         # Compaq C++
12061         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12062         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'
12063
12064         runpath_var=LD_RUN_PATH
12065         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12066         hardcode_libdir_separator_CXX=:
12067
12068         # Commands to make compiler produce verbose output that lists
12069         # what "hidden" libraries, object files and flags are used when
12070         # linking a shared library.
12071         #
12072         # There doesn't appear to be a way to prevent this compiler from
12073         # explicitly linking system object files so we need to strip them
12074         # from the output so that they don't get included in the library
12075         # dependencies.
12076         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'
12077         ;;
12078     esac
12079     ;;
12080   lynxos*)
12081     # FIXME: insert proper C++ library support
12082     ld_shlibs_CXX=no
12083     ;;
12084   m88k*)
12085     # FIXME: insert proper C++ library support
12086     ld_shlibs_CXX=no
12087     ;;
12088   mvs*)
12089     case $cc_basename in
12090       cxx)
12091         # FIXME: insert proper C++ library support
12092         ld_shlibs_CXX=no
12093         ;;
12094       *)
12095         # FIXME: insert proper C++ library support
12096         ld_shlibs_CXX=no
12097         ;;
12098     esac
12099     ;;
12100   netbsd*)
12101     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12102       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12103       wlarc=
12104       hardcode_libdir_flag_spec_CXX='-R$libdir'
12105       hardcode_direct_CXX=yes
12106       hardcode_shlibpath_var_CXX=no
12107     fi
12108     # Workaround some broken pre-1.5 toolchains
12109     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12110     ;;
12111   openbsd2*)
12112     # C++ shared libraries are fairly broken
12113     ld_shlibs_CXX=no
12114     ;;
12115   openbsd*)
12116     hardcode_direct_CXX=yes
12117     hardcode_shlibpath_var_CXX=no
12118     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12119     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12120     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12121       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12122       export_dynamic_flag_spec_CXX='${wl}-E'
12123       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12124     fi
12125     output_verbose_link_cmd='echo'
12126     ;;
12127   osf3*)
12128     case $cc_basename in
12129       KCC)
12130         # Kuck and Associates, Inc. (KAI) C++ Compiler
12131
12132         # KCC will only create a shared library if the output file
12133         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12134         # to its proper name (with version) after linking.
12135         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'
12136
12137         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12138         hardcode_libdir_separator_CXX=:
12139
12140         # Archives containing C++ object files must be created using
12141         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12142         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12143
12144         ;;
12145       RCC)
12146         # Rational C++ 2.4.1
12147         # FIXME: insert proper C++ library support
12148         ld_shlibs_CXX=no
12149         ;;
12150       cxx)
12151         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12152         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'
12153
12154         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12155         hardcode_libdir_separator_CXX=:
12156
12157         # Commands to make compiler produce verbose output that lists
12158         # what "hidden" libraries, object files and flags are used when
12159         # linking a shared library.
12160         #
12161         # There doesn't appear to be a way to prevent this compiler from
12162         # explicitly linking system object files so we need to strip them
12163         # from the output so that they don't get included in the library
12164         # dependencies.
12165         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'
12166         ;;
12167       *)
12168         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12169           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12170           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'
12171
12172           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12173           hardcode_libdir_separator_CXX=:
12174
12175           # Commands to make compiler produce verbose output that lists
12176           # what "hidden" libraries, object files and flags are used when
12177           # linking a shared library.
12178           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12179
12180         else
12181           # FIXME: insert proper C++ library support
12182           ld_shlibs_CXX=no
12183         fi
12184         ;;
12185     esac
12186     ;;
12187   osf4* | osf5*)
12188     case $cc_basename in
12189       KCC)
12190         # Kuck and Associates, Inc. (KAI) C++ Compiler
12191
12192         # KCC will only create a shared library if the output file
12193         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12194         # to its proper name (with version) after linking.
12195         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'
12196
12197         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12198         hardcode_libdir_separator_CXX=:
12199
12200         # Archives containing C++ object files must be created using
12201         # the KAI C++ compiler.
12202         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12203         ;;
12204       RCC)
12205         # Rational C++ 2.4.1
12206         # FIXME: insert proper C++ library support
12207         ld_shlibs_CXX=no
12208         ;;
12209       cxx)
12210         allow_undefined_flag_CXX=' -expect_unresolved \*'
12211         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'
12212         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12213           echo "-hidden">> $lib.exp~
12214           $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~
12215           $rm $lib.exp'
12216
12217         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12218         hardcode_libdir_separator_CXX=:
12219
12220         # Commands to make compiler produce verbose output that lists
12221         # what "hidden" libraries, object files and flags are used when
12222         # linking a shared library.
12223         #
12224         # There doesn't appear to be a way to prevent this compiler from
12225         # explicitly linking system object files so we need to strip them
12226         # from the output so that they don't get included in the library
12227         # dependencies.
12228         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'
12229         ;;
12230       *)
12231         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12232           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12233          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'
12234
12235           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12236           hardcode_libdir_separator_CXX=:
12237
12238           # Commands to make compiler produce verbose output that lists
12239           # what "hidden" libraries, object files and flags are used when
12240           # linking a shared library.
12241           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12242
12243         else
12244           # FIXME: insert proper C++ library support
12245           ld_shlibs_CXX=no
12246         fi
12247         ;;
12248     esac
12249     ;;
12250   psos*)
12251     # FIXME: insert proper C++ library support
12252     ld_shlibs_CXX=no
12253     ;;
12254   sco*)
12255     archive_cmds_need_lc_CXX=no
12256     case $cc_basename in
12257       CC)
12258         # FIXME: insert proper C++ library support
12259         ld_shlibs_CXX=no
12260         ;;
12261       *)
12262         # FIXME: insert proper C++ library support
12263         ld_shlibs_CXX=no
12264         ;;
12265     esac
12266     ;;
12267   sunos4*)
12268     case $cc_basename in
12269       CC)
12270         # Sun C++ 4.x
12271         # FIXME: insert proper C++ library support
12272         ld_shlibs_CXX=no
12273         ;;
12274       lcc)
12275         # Lucid
12276         # FIXME: insert proper C++ library support
12277         ld_shlibs_CXX=no
12278         ;;
12279       *)
12280         # FIXME: insert proper C++ library support
12281         ld_shlibs_CXX=no
12282         ;;
12283     esac
12284     ;;
12285   solaris*)
12286     case $cc_basename in
12287       CC)
12288         # Sun C++ 4.2, 5.x and Centerline C++
12289         no_undefined_flag_CXX=' -zdefs'
12290         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12291         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12292         $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'
12293
12294         hardcode_libdir_flag_spec_CXX='-R$libdir'
12295         hardcode_shlibpath_var_CXX=no
12296         case $host_os in
12297           solaris2.0-5 | solaris2.0-5.*) ;;
12298           *)
12299             # The C++ compiler is used as linker so we must use $wl
12300             # flag to pass the commands to the underlying system
12301             # linker.
12302             # Supported since Solaris 2.6 (maybe 2.5.1?)
12303             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12304             ;;
12305         esac
12306         link_all_deplibs_CXX=yes
12307
12308         # Commands to make compiler produce verbose output that lists
12309         # what "hidden" libraries, object files and flags are used when
12310         # linking a shared library.
12311         #
12312         # There doesn't appear to be a way to prevent this compiler from
12313         # explicitly linking system object files so we need to strip them
12314         # from the output so that they don't get included in the library
12315         # dependencies.
12316         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'
12317
12318         # Archives containing C++ object files must be created using
12319         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12320         # necessary to make sure instantiated templates are included
12321         # in the archive.
12322         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12323         ;;
12324       gcx)
12325         # Green Hills C++ Compiler
12326         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12327
12328         # The C++ compiler must be used to create the archive.
12329         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12330         ;;
12331       *)
12332         # GNU C++ compiler with Solaris linker
12333         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12334           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12335           if $CC --version | grep -v '^2\.7' > /dev/null; then
12336             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12337             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12338                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12339
12340             # Commands to make compiler produce verbose output that lists
12341             # what "hidden" libraries, object files and flags are used when
12342             # linking a shared library.
12343             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12344           else
12345             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12346             # platform.
12347             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12348             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12349                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12350
12351             # Commands to make compiler produce verbose output that lists
12352             # what "hidden" libraries, object files and flags are used when
12353             # linking a shared library.
12354             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12355           fi
12356
12357           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12358         fi
12359         ;;
12360     esac
12361     ;;
12362   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12363     archive_cmds_need_lc_CXX=no
12364     ;;
12365   tandem*)
12366     case $cc_basename in
12367       NCC)
12368         # NonStop-UX NCC 3.20
12369         # FIXME: insert proper C++ library support
12370         ld_shlibs_CXX=no
12371         ;;
12372       *)
12373         # FIXME: insert proper C++ library support
12374         ld_shlibs_CXX=no
12375         ;;
12376     esac
12377     ;;
12378   vxworks*)
12379     # FIXME: insert proper C++ library support
12380     ld_shlibs_CXX=no
12381     ;;
12382   *)
12383     # FIXME: insert proper C++ library support
12384     ld_shlibs_CXX=no
12385     ;;
12386 esac
12387 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12388 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12389 test "$ld_shlibs_CXX" = no && can_build_shared=no
12390
12391 GCC_CXX="$GXX"
12392 LD_CXX="$LD"
12393
12394
12395 cat > conftest.$ac_ext <<EOF
12396 class Foo
12397 {
12398 public:
12399   Foo (void) { a = 0; }
12400 private:
12401   int a;
12402 };
12403 EOF
12404
12405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406   (eval $ac_compile) 2>&5
12407   ac_status=$?
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); }; then
12410   # Parse the compiler output and extract the necessary
12411   # objects, libraries and library flags.
12412
12413   # Sentinel used to keep track of whether or not we are before
12414   # the conftest object file.
12415   pre_test_object_deps_done=no
12416
12417   # The `*' in the case matches for architectures that use `case' in
12418   # $output_verbose_cmd can trigger glob expansion during the loop
12419   # eval without this substitution.
12420   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12421
12422   for p in `eval $output_verbose_link_cmd`; do
12423     case $p in
12424
12425     -L* | -R* | -l*)
12426        # Some compilers place space between "-{L,R}" and the path.
12427        # Remove the space.
12428        if test $p = "-L" \
12429           || test $p = "-R"; then
12430          prev=$p
12431          continue
12432        else
12433          prev=
12434        fi
12435
12436        if test "$pre_test_object_deps_done" = no; then
12437          case $p in
12438          -L* | -R*)
12439            # Internal compiler library paths should come after those
12440            # provided the user.  The postdeps already come after the
12441            # user supplied libs so there is no need to process them.
12442            if test -z "$compiler_lib_search_path_CXX"; then
12443              compiler_lib_search_path_CXX="${prev}${p}"
12444            else
12445              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12446            fi
12447            ;;
12448          # The "-l" case would never come before the object being
12449          # linked, so don't bother handling this case.
12450          esac
12451        else
12452          if test -z "$postdeps_CXX"; then
12453            postdeps_CXX="${prev}${p}"
12454          else
12455            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12456          fi
12457        fi
12458        ;;
12459
12460     *.$objext)
12461        # This assumes that the test object file only shows up
12462        # once in the compiler output.
12463        if test "$p" = "conftest.$objext"; then
12464          pre_test_object_deps_done=yes
12465          continue
12466        fi
12467
12468        if test "$pre_test_object_deps_done" = no; then
12469          if test -z "$predep_objects_CXX"; then
12470            predep_objects_CXX="$p"
12471          else
12472            predep_objects_CXX="$predep_objects_CXX $p"
12473          fi
12474        else
12475          if test -z "$postdep_objects_CXX"; then
12476            postdep_objects_CXX="$p"
12477          else
12478            postdep_objects_CXX="$postdep_objects_CXX $p"
12479          fi
12480        fi
12481        ;;
12482
12483     *) ;; # Ignore the rest.
12484
12485     esac
12486   done
12487
12488   # Clean up.
12489   rm -f a.out a.exe
12490 else
12491   echo "libtool.m4: error: problem compiling CXX test program"
12492 fi
12493
12494 $rm -f confest.$objext
12495
12496 case " $postdeps_CXX " in
12497 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12498 esac
12499
12500 lt_prog_compiler_wl_CXX=
12501 lt_prog_compiler_pic_CXX=
12502 lt_prog_compiler_static_CXX=
12503
12504 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12505 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12506
12507   # C++ specific cases for pic, static, wl, etc.
12508   if test "$GXX" = yes; then
12509     lt_prog_compiler_wl_CXX='-Wl,'
12510     lt_prog_compiler_static_CXX='-static'
12511
12512     case $host_os in
12513     aix*)
12514       # All AIX code is PIC.
12515       if test "$host_cpu" = ia64; then
12516         # AIX 5 now supports IA64 processor
12517         lt_prog_compiler_static_CXX='-Bstatic'
12518       fi
12519       ;;
12520     amigaos*)
12521       # FIXME: we need at least 68020 code to build shared libraries, but
12522       # adding the `-m68020' flag to GCC prevents building anything better,
12523       # like `-m68040'.
12524       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12525       ;;
12526     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12527       # PIC is the default for these OSes.
12528       ;;
12529     mingw* | os2* | pw32*)
12530       # This hack is so that the source file can tell whether it is being
12531       # built for inclusion in a dll (and should export symbols for example).
12532       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12533       ;;
12534     darwin* | rhapsody*)
12535       # PIC is the default on this platform
12536       # Common symbols not allowed in MH_DYLIB files
12537       lt_prog_compiler_pic_CXX='-fno-common'
12538       ;;
12539     *djgpp*)
12540       # DJGPP does not support shared libraries at all
12541       lt_prog_compiler_pic_CXX=
12542       ;;
12543     sysv4*MP*)
12544       if test -d /usr/nec; then
12545         lt_prog_compiler_pic_CXX=-Kconform_pic
12546       fi
12547       ;;
12548     hpux*)
12549       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12550       # not for PA HP-UX.
12551       case "$host_cpu" in
12552       hppa*64*|ia64*)
12553         ;;
12554       *)
12555         lt_prog_compiler_pic_CXX='-fPIC'
12556         ;;
12557       esac
12558       ;;
12559     *)
12560       lt_prog_compiler_pic_CXX='-fPIC'
12561       ;;
12562     esac
12563   else
12564     case $host_os in
12565       aix4* | aix5*)
12566         # All AIX code is PIC.
12567         if test "$host_cpu" = ia64; then
12568           # AIX 5 now supports IA64 processor
12569           lt_prog_compiler_static_CXX='-Bstatic'
12570         else
12571           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12572         fi
12573         ;;
12574       chorus*)
12575         case $cc_basename in
12576         cxch68)
12577           # Green Hills C++ Compiler
12578           # _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"
12579           ;;
12580         esac
12581         ;;
12582        darwin*)
12583          # PIC is the default on this platform
12584          # Common symbols not allowed in MH_DYLIB files
12585          case "$cc_basename" in
12586            xlc*)
12587            lt_prog_compiler_pic_CXX='-qnocommon'
12588            lt_prog_compiler_wl_CXX='-Wl,'
12589            ;;
12590          esac
12591        ;;
12592       dgux*)
12593         case $cc_basename in
12594           ec++)
12595             lt_prog_compiler_pic_CXX='-KPIC'
12596             ;;
12597           ghcx)
12598             # Green Hills C++ Compiler
12599             lt_prog_compiler_pic_CXX='-pic'
12600             ;;
12601           *)
12602             ;;
12603         esac
12604         ;;
12605       freebsd* | kfreebsd*-gnu)
12606         # FreeBSD uses GNU C++
12607         ;;
12608       hpux9* | hpux10* | hpux11*)
12609         case $cc_basename in
12610           CC)
12611             lt_prog_compiler_wl_CXX='-Wl,'
12612             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12613             if test "$host_cpu" != ia64; then
12614               lt_prog_compiler_pic_CXX='+Z'
12615             fi
12616             ;;
12617           aCC)
12618             lt_prog_compiler_wl_CXX='-Wl,'
12619             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12620             case "$host_cpu" in
12621             hppa*64*|ia64*)
12622               # +Z the default
12623               ;;
12624             *)
12625               lt_prog_compiler_pic_CXX='+Z'
12626               ;;
12627             esac
12628             ;;
12629           *)
12630             ;;
12631         esac
12632         ;;
12633       irix5* | irix6* | nonstopux*)
12634         case $cc_basename in
12635           CC)
12636             lt_prog_compiler_wl_CXX='-Wl,'
12637             lt_prog_compiler_static_CXX='-non_shared'
12638             # CC pic flag -KPIC is the default.
12639             ;;
12640           *)
12641             ;;
12642         esac
12643         ;;
12644       linux*)
12645         case $cc_basename in
12646           KCC)
12647             # KAI C++ Compiler
12648             lt_prog_compiler_wl_CXX='--backend -Wl,'
12649             lt_prog_compiler_pic_CXX='-fPIC'
12650             ;;
12651           icpc)
12652             # Intel C++
12653             lt_prog_compiler_wl_CXX='-Wl,'
12654             lt_prog_compiler_pic_CXX='-KPIC'
12655             lt_prog_compiler_static_CXX='-static'
12656             ;;
12657           cxx)
12658             # Compaq C++
12659             # Make sure the PIC flag is empty.  It appears that all Alpha
12660             # Linux and Compaq Tru64 Unix objects are PIC.
12661             lt_prog_compiler_pic_CXX=
12662             lt_prog_compiler_static_CXX='-non_shared'
12663             ;;
12664           *)
12665             ;;
12666         esac
12667         ;;
12668       lynxos*)
12669         ;;
12670       m88k*)
12671         ;;
12672       mvs*)
12673         case $cc_basename in
12674           cxx)
12675             lt_prog_compiler_pic_CXX='-W c,exportall'
12676             ;;
12677           *)
12678             ;;
12679         esac
12680         ;;
12681       netbsd*)
12682         ;;
12683       osf3* | osf4* | osf5*)
12684         case $cc_basename in
12685           KCC)
12686             lt_prog_compiler_wl_CXX='--backend -Wl,'
12687             ;;
12688           RCC)
12689             # Rational C++ 2.4.1
12690             lt_prog_compiler_pic_CXX='-pic'
12691             ;;
12692           cxx)
12693             # Digital/Compaq C++
12694             lt_prog_compiler_wl_CXX='-Wl,'
12695             # Make sure the PIC flag is empty.  It appears that all Alpha
12696             # Linux and Compaq Tru64 Unix objects are PIC.
12697             lt_prog_compiler_pic_CXX=
12698             lt_prog_compiler_static_CXX='-non_shared'
12699             ;;
12700           *)
12701             ;;
12702         esac
12703         ;;
12704       psos*)
12705         ;;
12706       sco*)
12707         case $cc_basename in
12708           CC)
12709             lt_prog_compiler_pic_CXX='-fPIC'
12710             ;;
12711           *)
12712             ;;
12713         esac
12714         ;;
12715       solaris*)
12716         case $cc_basename in
12717           CC)
12718             # Sun C++ 4.2, 5.x and Centerline C++
12719             lt_prog_compiler_pic_CXX='-KPIC'
12720             lt_prog_compiler_static_CXX='-Bstatic'
12721             lt_prog_compiler_wl_CXX='-Qoption ld '
12722             ;;
12723           gcx)
12724             # Green Hills C++ Compiler
12725             lt_prog_compiler_pic_CXX='-PIC'
12726             ;;
12727           *)
12728             ;;
12729         esac
12730         ;;
12731       sunos4*)
12732         case $cc_basename in
12733           CC)
12734             # Sun C++ 4.x
12735             lt_prog_compiler_pic_CXX='-pic'
12736             lt_prog_compiler_static_CXX='-Bstatic'
12737             ;;
12738           lcc)
12739             # Lucid
12740             lt_prog_compiler_pic_CXX='-pic'
12741             ;;
12742           *)
12743             ;;
12744         esac
12745         ;;
12746       tandem*)
12747         case $cc_basename in
12748           NCC)
12749             # NonStop-UX NCC 3.20
12750             lt_prog_compiler_pic_CXX='-KPIC'
12751             ;;
12752           *)
12753             ;;
12754         esac
12755         ;;
12756       unixware*)
12757         ;;
12758       vxworks*)
12759         ;;
12760       *)
12761         lt_prog_compiler_can_build_shared_CXX=no
12762         ;;
12763     esac
12764   fi
12765
12766 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12767 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12768
12769 #
12770 # Check to make sure the PIC flag actually works.
12771 #
12772 if test -n "$lt_prog_compiler_pic_CXX"; then
12773
12774 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12775 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12776 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12777   echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779   lt_prog_compiler_pic_works_CXX=no
12780   ac_outfile=conftest.$ac_objext
12781    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12782    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12783    # Insert the option either (1) after the last *FLAGS variable, or
12784    # (2) before a word containing "conftest.", or (3) at the end.
12785    # Note that $ac_compile itself does not contain backslashes and begins
12786    # with a dollar sign (not a hyphen), so the echo should work correctly.
12787    # The option is referenced via a variable to avoid confusing sed.
12788    lt_compile=`echo "$ac_compile" | $SED \
12789    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12790    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12791    -e 's:$: $lt_compiler_flag:'`
12792    (eval echo "\"\$as_me:12792: $lt_compile\"" >&5)
12793    (eval "$lt_compile" 2>conftest.err)
12794    ac_status=$?
12795    cat conftest.err >&5
12796    echo "$as_me:12796: \$? = $ac_status" >&5
12797    if (exit $ac_status) && test -s "$ac_outfile"; then
12798      # The compiler can only warn and ignore the option if not recognized
12799      # So say no if there are warnings
12800      if test ! -s conftest.err; then
12801        lt_prog_compiler_pic_works_CXX=yes
12802      fi
12803    fi
12804    $rm conftest*
12805
12806 fi
12807 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12808 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12809
12810 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12811     case $lt_prog_compiler_pic_CXX in
12812      "" | " "*) ;;
12813      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12814      esac
12815 else
12816     lt_prog_compiler_pic_CXX=
12817      lt_prog_compiler_can_build_shared_CXX=no
12818 fi
12819
12820 fi
12821 case "$host_os" in
12822   # For platforms which do not support PIC, -DPIC is meaningless:
12823   *djgpp*)
12824     lt_prog_compiler_pic_CXX=
12825     ;;
12826   *)
12827     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12828     ;;
12829 esac
12830
12831 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12832 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12833 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12834   echo $ECHO_N "(cached) $ECHO_C" >&6
12835 else
12836   lt_cv_prog_compiler_c_o_CXX=no
12837    $rm -r conftest 2>/dev/null
12838    mkdir conftest
12839    cd conftest
12840    mkdir out
12841    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12842
12843    lt_compiler_flag="-o out/conftest2.$ac_objext"
12844    # Insert the option either (1) after the last *FLAGS variable, or
12845    # (2) before a word containing "conftest.", or (3) at the end.
12846    # Note that $ac_compile itself does not contain backslashes and begins
12847    # with a dollar sign (not a hyphen), so the echo should work correctly.
12848    lt_compile=`echo "$ac_compile" | $SED \
12849    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12850    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12851    -e 's:$: $lt_compiler_flag:'`
12852    (eval echo "\"\$as_me:12852: $lt_compile\"" >&5)
12853    (eval "$lt_compile" 2>out/conftest.err)
12854    ac_status=$?
12855    cat out/conftest.err >&5
12856    echo "$as_me:12856: \$? = $ac_status" >&5
12857    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12858    then
12859      # The compiler can only warn and ignore the option if not recognized
12860      # So say no if there are warnings
12861      if test ! -s out/conftest.err; then
12862        lt_cv_prog_compiler_c_o_CXX=yes
12863      fi
12864    fi
12865    chmod u+w .
12866    $rm conftest*
12867    # SGI C++ compiler will create directory out/ii_files/ for
12868    # template instantiation
12869    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12870    $rm out/* && rmdir out
12871    cd ..
12872    rmdir conftest
12873    $rm conftest*
12874
12875 fi
12876 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12877 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12878
12879
12880 hard_links="nottested"
12881 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12882   # do not overwrite the value of need_locks provided by the user
12883   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12884 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12885   hard_links=yes
12886   $rm conftest*
12887   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12888   touch conftest.a
12889   ln conftest.a conftest.b 2>&5 || hard_links=no
12890   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12891   echo "$as_me:$LINENO: result: $hard_links" >&5
12892 echo "${ECHO_T}$hard_links" >&6
12893   if test "$hard_links" = no; then
12894     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12895 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12896     need_locks=warn
12897   fi
12898 else
12899   need_locks=no
12900 fi
12901
12902 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12903 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12904
12905   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12906   case $host_os in
12907   aix4* | aix5*)
12908     # If we're using GNU nm, then we don't want the "-C" option.
12909     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12910     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12911       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'
12912     else
12913       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'
12914     fi
12915     ;;
12916   pw32*)
12917     export_symbols_cmds_CXX="$ltdll_cmds"
12918   ;;
12919   cygwin* | mingw*)
12920     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12921   ;;
12922   *)
12923     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12924   ;;
12925   esac
12926
12927 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12928 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12929 test "$ld_shlibs_CXX" = no && can_build_shared=no
12930
12931 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12932 if test "$GCC" = yes; then
12933   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12934 fi
12935
12936 #
12937 # Do we need to explicitly link libc?
12938 #
12939 case "x$archive_cmds_need_lc_CXX" in
12940 x|xyes)
12941   # Assume -lc should be added
12942   archive_cmds_need_lc_CXX=yes
12943
12944   if test "$enable_shared" = yes && test "$GCC" = yes; then
12945     case $archive_cmds_CXX in
12946     *'~'*)
12947       # FIXME: we may have to deal with multi-command sequences.
12948       ;;
12949     '$CC '*)
12950       # Test whether the compiler implicitly links with -lc since on some
12951       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12952       # to ld, don't add -lc before -lgcc.
12953       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12954 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12955       $rm conftest*
12956       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12957
12958       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12959   (eval $ac_compile) 2>&5
12960   ac_status=$?
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); } 2>conftest.err; then
12963         soname=conftest
12964         lib=conftest
12965         libobjs=conftest.$ac_objext
12966         deplibs=
12967         wl=$lt_prog_compiler_wl_CXX
12968         compiler_flags=-v
12969         linker_flags=-v
12970         verstring=
12971         output_objdir=.
12972         libname=conftest
12973         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12974         allow_undefined_flag_CXX=
12975         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12976   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12977   ac_status=$?
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); }
12980         then
12981           archive_cmds_need_lc_CXX=no
12982         else
12983           archive_cmds_need_lc_CXX=yes
12984         fi
12985         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12986       else
12987         cat conftest.err 1>&5
12988       fi
12989       $rm conftest*
12990       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12991 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12992       ;;
12993     esac
12994   fi
12995   ;;
12996 esac
12997
12998 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12999 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13000 library_names_spec=
13001 libname_spec='lib$name'
13002 soname_spec=
13003 shrext_cmds=".so"
13004 postinstall_cmds=
13005 postuninstall_cmds=
13006 finish_cmds=
13007 finish_eval=
13008 shlibpath_var=
13009 shlibpath_overrides_runpath=unknown
13010 version_type=none
13011 dynamic_linker="$host_os ld.so"
13012 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13013 if test "$GCC" = yes; then
13014   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13015   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13016     # if the path contains ";" then we assume it to be the separator
13017     # otherwise default to the standard path separator (i.e. ":") - it is
13018     # assumed that no part of a normal pathname contains ";" but that should
13019     # okay in the real world where ";" in dirpaths is itself problematic.
13020     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13021   else
13022     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13023   fi
13024 else
13025   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13026 fi
13027 need_lib_prefix=unknown
13028 hardcode_into_libs=no
13029
13030 # when you set need_version to no, make sure it does not cause -set_version
13031 # flags to be left without arguments
13032 need_version=unknown
13033
13034 case $host_os in
13035 aix3*)
13036   version_type=linux
13037   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13038   shlibpath_var=LIBPATH
13039
13040   # AIX 3 has no versioning support, so we append a major version to the name.
13041   soname_spec='${libname}${release}${shared_ext}$major'
13042   ;;
13043
13044 aix4* | aix5*)
13045   version_type=linux
13046   need_lib_prefix=no
13047   need_version=no
13048   hardcode_into_libs=yes
13049   if test "$host_cpu" = ia64; then
13050     # AIX 5 supports IA64
13051     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13052     shlibpath_var=LD_LIBRARY_PATH
13053   else
13054     # With GCC up to 2.95.x, collect2 would create an import file
13055     # for dependence libraries.  The import file would start with
13056     # the line `#! .'.  This would cause the generated library to
13057     # depend on `.', always an invalid library.  This was fixed in
13058     # development snapshots of GCC prior to 3.0.
13059     case $host_os in
13060       aix4 | aix4.[01] | aix4.[01].*)
13061       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13062            echo ' yes '
13063            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13064         :
13065       else
13066         can_build_shared=no
13067       fi
13068       ;;
13069     esac
13070     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13071     # soname into executable. Probably we can add versioning support to
13072     # collect2, so additional links can be useful in future.
13073     if test "$aix_use_runtimelinking" = yes; then
13074       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13075       # instead of lib<name>.a to let people know that these are not
13076       # typical AIX shared libraries.
13077       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078     else
13079       # We preserve .a as extension for shared libraries through AIX4.2
13080       # and later when we are not doing run time linking.
13081       library_names_spec='${libname}${release}.a $libname.a'
13082       soname_spec='${libname}${release}${shared_ext}$major'
13083     fi
13084     shlibpath_var=LIBPATH
13085   fi
13086   ;;
13087
13088 amigaos*)
13089   library_names_spec='$libname.ixlibrary $libname.a'
13090   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13091   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'
13092   ;;
13093
13094 beos*)
13095   library_names_spec='${libname}${shared_ext}'
13096   dynamic_linker="$host_os ld.so"
13097   shlibpath_var=LIBRARY_PATH
13098   ;;
13099
13100 bsdi[45]*)
13101   version_type=linux
13102   need_version=no
13103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104   soname_spec='${libname}${release}${shared_ext}$major'
13105   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13106   shlibpath_var=LD_LIBRARY_PATH
13107   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13108   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13109   # the default ld.so.conf also contains /usr/contrib/lib and
13110   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13111   # libtool to hard-code these into programs
13112   ;;
13113
13114 cygwin* | mingw* | pw32*)
13115   version_type=windows
13116   shrext_cmds=".dll"
13117   need_version=no
13118   need_lib_prefix=no
13119
13120   case $GCC,$host_os in
13121   yes,cygwin* | yes,mingw* | yes,pw32*)
13122     library_names_spec='$libname.dll.a'
13123     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13124     postinstall_cmds='base_file=`basename \${file}`~
13125       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13126       dldir=$destdir/`dirname \$dlpath`~
13127       test -d \$dldir || mkdir -p \$dldir~
13128       $install_prog $dir/$dlname \$dldir/$dlname'
13129     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13130       dlpath=$dir/\$dldll~
13131        $rm \$dlpath'
13132     shlibpath_overrides_runpath=yes
13133
13134     case $host_os in
13135     cygwin*)
13136       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13137       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13138       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13139       ;;
13140     mingw*)
13141       # MinGW DLLs use traditional 'lib' prefix
13142       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13143       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13144       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13145         # It is most probably a Windows format PATH printed by
13146         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13147         # path with ; separators, and with drive letters. We can handle the
13148         # drive letters (cygwin fileutils understands them), so leave them,
13149         # especially as we might pass files found there to a mingw objdump,
13150         # which wouldn't understand a cygwinified path. Ahh.
13151         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13152       else
13153         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13154       fi
13155       ;;
13156     pw32*)
13157       # pw32 DLLs use 'pw' prefix rather than 'lib'
13158       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13159       ;;
13160     esac
13161     ;;
13162
13163   *)
13164     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13165     ;;
13166   esac
13167   dynamic_linker='Win32 ld.exe'
13168   # FIXME: first we should search . and the directory the executable is in
13169   shlibpath_var=PATH
13170   ;;
13171
13172 darwin* | rhapsody*)
13173   dynamic_linker="$host_os dyld"
13174   version_type=darwin
13175   need_lib_prefix=no
13176   need_version=no
13177   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13178   soname_spec='${libname}${release}${major}$shared_ext'
13179   shlibpath_overrides_runpath=yes
13180   shlibpath_var=DYLD_LIBRARY_PATH
13181   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13182   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13183   if test "$GCC" = yes; then
13184     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"`
13185   else
13186     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13187   fi
13188   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13189   ;;
13190
13191 dgux*)
13192   version_type=linux
13193   need_lib_prefix=no
13194   need_version=no
13195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13196   soname_spec='${libname}${release}${shared_ext}$major'
13197   shlibpath_var=LD_LIBRARY_PATH
13198   ;;
13199
13200 freebsd1*)
13201   dynamic_linker=no
13202   ;;
13203
13204 kfreebsd*-gnu)
13205   version_type=linux
13206   need_lib_prefix=no
13207   need_version=no
13208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13209   soname_spec='${libname}${release}${shared_ext}$major'
13210   shlibpath_var=LD_LIBRARY_PATH
13211   shlibpath_overrides_runpath=no
13212   hardcode_into_libs=yes
13213   dynamic_linker='GNU ld.so'
13214   ;;
13215
13216 freebsd*)
13217   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13218   version_type=freebsd-$objformat
13219   case $version_type in
13220     freebsd-elf*)
13221       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13222       need_version=no
13223       need_lib_prefix=no
13224       ;;
13225     freebsd-*)
13226       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13227       need_version=yes
13228       ;;
13229   esac
13230   shlibpath_var=LD_LIBRARY_PATH
13231   case $host_os in
13232   freebsd2*)
13233     shlibpath_overrides_runpath=yes
13234     ;;
13235   freebsd3.01* | freebsdelf3.01*)
13236     shlibpath_overrides_runpath=yes
13237     hardcode_into_libs=yes
13238     ;;
13239   *) # from 3.2 on
13240     shlibpath_overrides_runpath=no
13241     hardcode_into_libs=yes
13242     ;;
13243   esac
13244   ;;
13245
13246 gnu*)
13247   version_type=linux
13248   need_lib_prefix=no
13249   need_version=no
13250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13251   soname_spec='${libname}${release}${shared_ext}$major'
13252   shlibpath_var=LD_LIBRARY_PATH
13253   hardcode_into_libs=yes
13254   ;;
13255
13256 hpux9* | hpux10* | hpux11*)
13257   # Give a soname corresponding to the major version so that dld.sl refuses to
13258   # link against other versions.
13259   version_type=sunos
13260   need_lib_prefix=no
13261   need_version=no
13262   case "$host_cpu" in
13263   ia64*)
13264     shrext_cmds='.so'
13265     hardcode_into_libs=yes
13266     dynamic_linker="$host_os dld.so"
13267     shlibpath_var=LD_LIBRARY_PATH
13268     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13269     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13270     soname_spec='${libname}${release}${shared_ext}$major'
13271     if test "X$HPUX_IA64_MODE" = X32; then
13272       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13273     else
13274       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13275     fi
13276     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13277     ;;
13278    hppa*64*)
13279      shrext_cmds='.sl'
13280      hardcode_into_libs=yes
13281      dynamic_linker="$host_os dld.sl"
13282      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13283      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13284      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13285      soname_spec='${libname}${release}${shared_ext}$major'
13286      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13287      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13288      ;;
13289    *)
13290     shrext_cmds='.sl'
13291     dynamic_linker="$host_os dld.sl"
13292     shlibpath_var=SHLIB_PATH
13293     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295     soname_spec='${libname}${release}${shared_ext}$major'
13296     ;;
13297   esac
13298   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13299   postinstall_cmds='chmod 555 $lib'
13300   ;;
13301
13302 irix5* | irix6* | nonstopux*)
13303   case $host_os in
13304     nonstopux*) version_type=nonstopux ;;
13305     *)
13306         if test "$lt_cv_prog_gnu_ld" = yes; then
13307                 version_type=linux
13308         else
13309                 version_type=irix
13310         fi ;;
13311   esac
13312   need_lib_prefix=no
13313   need_version=no
13314   soname_spec='${libname}${release}${shared_ext}$major'
13315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13316   case $host_os in
13317   irix5* | nonstopux*)
13318     libsuff= shlibsuff=
13319     ;;
13320   *)
13321     case $LD in # libtool.m4 will add one of these switches to LD
13322     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13323       libsuff= shlibsuff= libmagic=32-bit;;
13324     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13325       libsuff=32 shlibsuff=N32 libmagic=N32;;
13326     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13327       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13328     *) libsuff= shlibsuff= libmagic=never-match;;
13329     esac
13330     ;;
13331   esac
13332   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13333   shlibpath_overrides_runpath=no
13334   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13335   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13336   hardcode_into_libs=yes
13337   ;;
13338
13339 # No shared lib support for Linux oldld, aout, or coff.
13340 linux*oldld* | linux*aout* | linux*coff*)
13341   dynamic_linker=no
13342   ;;
13343
13344 # This must be Linux ELF.
13345 linux*)
13346   version_type=linux
13347   need_lib_prefix=no
13348   need_version=no
13349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13350   soname_spec='${libname}${release}${shared_ext}$major'
13351   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13352   shlibpath_var=LD_LIBRARY_PATH
13353   shlibpath_overrides_runpath=no
13354   # This implies no fast_install, which is unacceptable.
13355   # Some rework will be needed to allow for fast_install
13356   # before this can be enabled.
13357   hardcode_into_libs=yes
13358
13359   # Append ld.so.conf contents to the search path
13360   if test -f /etc/ld.so.conf; then
13361     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13362     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13363   fi
13364
13365   # We used to test for /lib/ld.so.1 and disable shared libraries on
13366   # powerpc, because MkLinux only supported shared libraries with the
13367   # GNU dynamic linker.  Since this was broken with cross compilers,
13368   # most powerpc-linux boxes support dynamic linking these days and
13369   # people can always --disable-shared, the test was removed, and we
13370   # assume the GNU/Linux dynamic linker is in use.
13371   dynamic_linker='GNU/Linux ld.so'
13372   ;;
13373
13374 knetbsd*-gnu)
13375   version_type=linux
13376   need_lib_prefix=no
13377   need_version=no
13378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13379   soname_spec='${libname}${release}${shared_ext}$major'
13380   shlibpath_var=LD_LIBRARY_PATH
13381   shlibpath_overrides_runpath=no
13382   hardcode_into_libs=yes
13383   dynamic_linker='GNU ld.so'
13384   ;;
13385
13386 netbsd*)
13387   version_type=sunos
13388   need_lib_prefix=no
13389   need_version=no
13390   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13391     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13392     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13393     dynamic_linker='NetBSD (a.out) ld.so'
13394   else
13395     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13396     soname_spec='${libname}${release}${shared_ext}$major'
13397     dynamic_linker='NetBSD ld.elf_so'
13398   fi
13399   shlibpath_var=LD_LIBRARY_PATH
13400   shlibpath_overrides_runpath=yes
13401   hardcode_into_libs=yes
13402   ;;
13403
13404 newsos6)
13405   version_type=linux
13406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407   shlibpath_var=LD_LIBRARY_PATH
13408   shlibpath_overrides_runpath=yes
13409   ;;
13410
13411 nto-qnx*)
13412   version_type=linux
13413   need_lib_prefix=no
13414   need_version=no
13415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416   soname_spec='${libname}${release}${shared_ext}$major'
13417   shlibpath_var=LD_LIBRARY_PATH
13418   shlibpath_overrides_runpath=yes
13419   ;;
13420
13421 openbsd*)
13422   version_type=sunos
13423   need_lib_prefix=no
13424   need_version=no
13425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13426   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13427   shlibpath_var=LD_LIBRARY_PATH
13428   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13429     case $host_os in
13430       openbsd2.[89] | openbsd2.[89].*)
13431         shlibpath_overrides_runpath=no
13432         ;;
13433       *)
13434         shlibpath_overrides_runpath=yes
13435         ;;
13436       esac
13437   else
13438     shlibpath_overrides_runpath=yes
13439   fi
13440   ;;
13441
13442 os2*)
13443   libname_spec='$name'
13444   shrext_cmds=".dll"
13445   need_lib_prefix=no
13446   library_names_spec='$libname${shared_ext} $libname.a'
13447   dynamic_linker='OS/2 ld.exe'
13448   shlibpath_var=LIBPATH
13449   ;;
13450
13451 osf3* | osf4* | osf5*)
13452   version_type=osf
13453   need_lib_prefix=no
13454   need_version=no
13455   soname_spec='${libname}${release}${shared_ext}$major'
13456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457   shlibpath_var=LD_LIBRARY_PATH
13458   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13459   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13460   ;;
13461
13462 sco3.2v5*)
13463   version_type=osf
13464   soname_spec='${libname}${release}${shared_ext}$major'
13465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466   shlibpath_var=LD_LIBRARY_PATH
13467   ;;
13468
13469 solaris*)
13470   version_type=linux
13471   need_lib_prefix=no
13472   need_version=no
13473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13474   soname_spec='${libname}${release}${shared_ext}$major'
13475   shlibpath_var=LD_LIBRARY_PATH
13476   shlibpath_overrides_runpath=yes
13477   hardcode_into_libs=yes
13478   # ldd complains unless libraries are executable
13479   postinstall_cmds='chmod +x $lib'
13480   ;;
13481
13482 sunos4*)
13483   version_type=sunos
13484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13485   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13486   shlibpath_var=LD_LIBRARY_PATH
13487   shlibpath_overrides_runpath=yes
13488   if test "$with_gnu_ld" = yes; then
13489     need_lib_prefix=no
13490   fi
13491   need_version=yes
13492   ;;
13493
13494 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13495   version_type=linux
13496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497   soname_spec='${libname}${release}${shared_ext}$major'
13498   shlibpath_var=LD_LIBRARY_PATH
13499   case $host_vendor in
13500     sni)
13501       shlibpath_overrides_runpath=no
13502       need_lib_prefix=no
13503       export_dynamic_flag_spec='${wl}-Blargedynsym'
13504       runpath_var=LD_RUN_PATH
13505       ;;
13506     siemens)
13507       need_lib_prefix=no
13508       ;;
13509     motorola)
13510       need_lib_prefix=no
13511       need_version=no
13512       shlibpath_overrides_runpath=no
13513       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13514       ;;
13515   esac
13516   ;;
13517
13518 sysv4*MP*)
13519   if test -d /usr/nec ;then
13520     version_type=linux
13521     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13522     soname_spec='$libname${shared_ext}.$major'
13523     shlibpath_var=LD_LIBRARY_PATH
13524   fi
13525   ;;
13526
13527 uts4*)
13528   version_type=linux
13529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530   soname_spec='${libname}${release}${shared_ext}$major'
13531   shlibpath_var=LD_LIBRARY_PATH
13532   ;;
13533
13534 *)
13535   dynamic_linker=no
13536   ;;
13537 esac
13538 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13539 echo "${ECHO_T}$dynamic_linker" >&6
13540 test "$dynamic_linker" = no && can_build_shared=no
13541
13542 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13544 hardcode_action_CXX=
13545 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13546    test -n "$runpath_var_CXX" || \
13547    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13548
13549   # We can hardcode non-existant directories.
13550   if test "$hardcode_direct_CXX" != no &&
13551      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13552      # have to relink, otherwise we might link with an installed library
13553      # when we should be linking with a yet-to-be-installed one
13554      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13555      test "$hardcode_minus_L_CXX" != no; then
13556     # Linking always hardcodes the temporary library directory.
13557     hardcode_action_CXX=relink
13558   else
13559     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13560     hardcode_action_CXX=immediate
13561   fi
13562 else
13563   # We cannot hardcode anything, or else we can only hardcode existing
13564   # directories.
13565   hardcode_action_CXX=unsupported
13566 fi
13567 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13568 echo "${ECHO_T}$hardcode_action_CXX" >&6
13569
13570 if test "$hardcode_action_CXX" = relink; then
13571   # Fast installation is not supported
13572   enable_fast_install=no
13573 elif test "$shlibpath_overrides_runpath" = yes ||
13574      test "$enable_shared" = no; then
13575   # Fast installation is not necessary
13576   enable_fast_install=needless
13577 fi
13578
13579 striplib=
13580 old_striplib=
13581 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13582 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13583 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13584   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13585   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13586   echo "$as_me:$LINENO: result: yes" >&5
13587 echo "${ECHO_T}yes" >&6
13588 else
13589 # FIXME - insert some real tests, host_os isn't really good enough
13590   case $host_os in
13591    darwin*)
13592        if test -n "$STRIP" ; then
13593          striplib="$STRIP -x"
13594          echo "$as_me:$LINENO: result: yes" >&5
13595 echo "${ECHO_T}yes" >&6
13596        else
13597   echo "$as_me:$LINENO: result: no" >&5
13598 echo "${ECHO_T}no" >&6
13599 fi
13600        ;;
13601    *)
13602   echo "$as_me:$LINENO: result: no" >&5
13603 echo "${ECHO_T}no" >&6
13604     ;;
13605   esac
13606 fi
13607
13608 if test "x$enable_dlopen" != xyes; then
13609   enable_dlopen=unknown
13610   enable_dlopen_self=unknown
13611   enable_dlopen_self_static=unknown
13612 else
13613   lt_cv_dlopen=no
13614   lt_cv_dlopen_libs=
13615
13616   case $host_os in
13617   beos*)
13618     lt_cv_dlopen="load_add_on"
13619     lt_cv_dlopen_libs=
13620     lt_cv_dlopen_self=yes
13621     ;;
13622
13623   mingw* | pw32*)
13624     lt_cv_dlopen="LoadLibrary"
13625     lt_cv_dlopen_libs=
13626    ;;
13627
13628   cygwin*)
13629     lt_cv_dlopen="dlopen"
13630     lt_cv_dlopen_libs=
13631    ;;
13632
13633   darwin*)
13634   # if libdl is installed we need to link against it
13635     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13636 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13637 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13638   echo $ECHO_N "(cached) $ECHO_C" >&6
13639 else
13640   ac_check_lib_save_LIBS=$LIBS
13641 LIBS="-ldl  $LIBS"
13642 cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h.  */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h.  */
13648
13649 /* Override any gcc2 internal prototype to avoid an error.  */
13650 #ifdef __cplusplus
13651 extern "C"
13652 #endif
13653 /* We use char because int might match the return type of a gcc2
13654    builtin and then its argument prototype would still apply.  */
13655 char dlopen ();
13656 int
13657 main ()
13658 {
13659 dlopen ();
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666   (eval $ac_link) 2>conftest.er1
13667   ac_status=$?
13668   grep -v '^ *+' conftest.er1 >conftest.err
13669   rm -f conftest.er1
13670   cat conftest.err >&5
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); } &&
13673          { ac_try='test -z "$ac_cxx_werror_flag"
13674                          || test ! -s conftest.err'
13675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676   (eval $ac_try) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; } &&
13680          { ac_try='test -s conftest$ac_exeext'
13681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682   (eval $ac_try) 2>&5
13683   ac_status=$?
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); }; }; then
13686   ac_cv_lib_dl_dlopen=yes
13687 else
13688   echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691 ac_cv_lib_dl_dlopen=no
13692 fi
13693 rm -f conftest.err conftest.$ac_objext \
13694       conftest$ac_exeext conftest.$ac_ext
13695 LIBS=$ac_check_lib_save_LIBS
13696 fi
13697 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13698 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13699 if test $ac_cv_lib_dl_dlopen = yes; then
13700   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13701 else
13702
13703     lt_cv_dlopen="dyld"
13704     lt_cv_dlopen_libs=
13705     lt_cv_dlopen_self=yes
13706
13707 fi
13708
13709    ;;
13710
13711   *)
13712     echo "$as_me:$LINENO: checking for shl_load" >&5
13713 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13714 if test "${ac_cv_func_shl_load+set}" = set; then
13715   echo $ECHO_N "(cached) $ECHO_C" >&6
13716 else
13717   cat >conftest.$ac_ext <<_ACEOF
13718 /* confdefs.h.  */
13719 _ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h.  */
13723 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13725 #define shl_load innocuous_shl_load
13726
13727 /* System header to define __stub macros and hopefully few prototypes,
13728     which can conflict with char shl_load (); below.
13729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13730     <limits.h> exists even on freestanding compilers.  */
13731
13732 #ifdef __STDC__
13733 # include <limits.h>
13734 #else
13735 # include <assert.h>
13736 #endif
13737
13738 #undef shl_load
13739
13740 /* Override any gcc2 internal prototype to avoid an error.  */
13741 #ifdef __cplusplus
13742 extern "C"
13743 {
13744 #endif
13745 /* We use char because int might match the return type of a gcc2
13746    builtin and then its argument prototype would still apply.  */
13747 char shl_load ();
13748 /* The GNU C library defines this for functions which it implements
13749     to always fail with ENOSYS.  Some functions are actually named
13750     something starting with __ and the normal name is an alias.  */
13751 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13752 choke me
13753 #else
13754 char (*f) () = shl_load;
13755 #endif
13756 #ifdef __cplusplus
13757 }
13758 #endif
13759
13760 int
13761 main ()
13762 {
13763 return f != shl_load;
13764   ;
13765   return 0;
13766 }
13767 _ACEOF
13768 rm -f conftest.$ac_objext conftest$ac_exeext
13769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13770   (eval $ac_link) 2>conftest.er1
13771   ac_status=$?
13772   grep -v '^ *+' conftest.er1 >conftest.err
13773   rm -f conftest.er1
13774   cat conftest.err >&5
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); } &&
13777          { ac_try='test -z "$ac_cxx_werror_flag"
13778                          || test ! -s conftest.err'
13779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780   (eval $ac_try) 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); }; } &&
13784          { ac_try='test -s conftest$ac_exeext'
13785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786   (eval $ac_try) 2>&5
13787   ac_status=$?
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); }; }; then
13790   ac_cv_func_shl_load=yes
13791 else
13792   echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13794
13795 ac_cv_func_shl_load=no
13796 fi
13797 rm -f conftest.err conftest.$ac_objext \
13798       conftest$ac_exeext conftest.$ac_ext
13799 fi
13800 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13801 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13802 if test $ac_cv_func_shl_load = yes; then
13803   lt_cv_dlopen="shl_load"
13804 else
13805   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13806 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13807 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13808   echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810   ac_check_lib_save_LIBS=$LIBS
13811 LIBS="-ldld  $LIBS"
13812 cat >conftest.$ac_ext <<_ACEOF
13813 /* confdefs.h.  */
13814 _ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h.  */
13818
13819 /* Override any gcc2 internal prototype to avoid an error.  */
13820 #ifdef __cplusplus
13821 extern "C"
13822 #endif
13823 /* We use char because int might match the return type of a gcc2
13824    builtin and then its argument prototype would still apply.  */
13825 char shl_load ();
13826 int
13827 main ()
13828 {
13829 shl_load ();
13830   ;
13831   return 0;
13832 }
13833 _ACEOF
13834 rm -f conftest.$ac_objext conftest$ac_exeext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13836   (eval $ac_link) 2>conftest.er1
13837   ac_status=$?
13838   grep -v '^ *+' conftest.er1 >conftest.err
13839   rm -f conftest.er1
13840   cat conftest.err >&5
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); } &&
13843          { ac_try='test -z "$ac_cxx_werror_flag"
13844                          || test ! -s conftest.err'
13845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846   (eval $ac_try) 2>&5
13847   ac_status=$?
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); }; } &&
13850          { ac_try='test -s conftest$ac_exeext'
13851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852   (eval $ac_try) 2>&5
13853   ac_status=$?
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); }; }; then
13856   ac_cv_lib_dld_shl_load=yes
13857 else
13858   echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 ac_cv_lib_dld_shl_load=no
13862 fi
13863 rm -f conftest.err conftest.$ac_objext \
13864       conftest$ac_exeext conftest.$ac_ext
13865 LIBS=$ac_check_lib_save_LIBS
13866 fi
13867 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13868 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13869 if test $ac_cv_lib_dld_shl_load = yes; then
13870   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13871 else
13872   echo "$as_me:$LINENO: checking for dlopen" >&5
13873 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13874 if test "${ac_cv_func_dlopen+set}" = set; then
13875   echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877   cat >conftest.$ac_ext <<_ACEOF
13878 /* confdefs.h.  */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h.  */
13883 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13885 #define dlopen innocuous_dlopen
13886
13887 /* System header to define __stub macros and hopefully few prototypes,
13888     which can conflict with char dlopen (); below.
13889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13890     <limits.h> exists even on freestanding compilers.  */
13891
13892 #ifdef __STDC__
13893 # include <limits.h>
13894 #else
13895 # include <assert.h>
13896 #endif
13897
13898 #undef dlopen
13899
13900 /* Override any gcc2 internal prototype to avoid an error.  */
13901 #ifdef __cplusplus
13902 extern "C"
13903 {
13904 #endif
13905 /* We use char because int might match the return type of a gcc2
13906    builtin and then its argument prototype would still apply.  */
13907 char dlopen ();
13908 /* The GNU C library defines this for functions which it implements
13909     to always fail with ENOSYS.  Some functions are actually named
13910     something starting with __ and the normal name is an alias.  */
13911 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13912 choke me
13913 #else
13914 char (*f) () = dlopen;
13915 #endif
13916 #ifdef __cplusplus
13917 }
13918 #endif
13919
13920 int
13921 main ()
13922 {
13923 return f != dlopen;
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13930   (eval $ac_link) 2>conftest.er1
13931   ac_status=$?
13932   grep -v '^ *+' conftest.er1 >conftest.err
13933   rm -f conftest.er1
13934   cat conftest.err >&5
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); } &&
13937          { ac_try='test -z "$ac_cxx_werror_flag"
13938                          || test ! -s conftest.err'
13939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940   (eval $ac_try) 2>&5
13941   ac_status=$?
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   (exit $ac_status); }; } &&
13944          { ac_try='test -s conftest$ac_exeext'
13945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946   (eval $ac_try) 2>&5
13947   ac_status=$?
13948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949   (exit $ac_status); }; }; then
13950   ac_cv_func_dlopen=yes
13951 else
13952   echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13954
13955 ac_cv_func_dlopen=no
13956 fi
13957 rm -f conftest.err conftest.$ac_objext \
13958       conftest$ac_exeext conftest.$ac_ext
13959 fi
13960 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13961 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13962 if test $ac_cv_func_dlopen = yes; then
13963   lt_cv_dlopen="dlopen"
13964 else
13965   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13966 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13968   echo $ECHO_N "(cached) $ECHO_C" >&6
13969 else
13970   ac_check_lib_save_LIBS=$LIBS
13971 LIBS="-ldl  $LIBS"
13972 cat >conftest.$ac_ext <<_ACEOF
13973 /* confdefs.h.  */
13974 _ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h.  */
13978
13979 /* Override any gcc2 internal prototype to avoid an error.  */
13980 #ifdef __cplusplus
13981 extern "C"
13982 #endif
13983 /* We use char because int might match the return type of a gcc2
13984    builtin and then its argument prototype would still apply.  */
13985 char dlopen ();
13986 int
13987 main ()
13988 {
13989 dlopen ();
13990   ;
13991   return 0;
13992 }
13993 _ACEOF
13994 rm -f conftest.$ac_objext conftest$ac_exeext
13995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13996   (eval $ac_link) 2>conftest.er1
13997   ac_status=$?
13998   grep -v '^ *+' conftest.er1 >conftest.err
13999   rm -f conftest.er1
14000   cat conftest.err >&5
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); } &&
14003          { ac_try='test -z "$ac_cxx_werror_flag"
14004                          || test ! -s conftest.err'
14005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006   (eval $ac_try) 2>&5
14007   ac_status=$?
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); }; } &&
14010          { ac_try='test -s conftest$ac_exeext'
14011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012   (eval $ac_try) 2>&5
14013   ac_status=$?
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); }; }; then
14016   ac_cv_lib_dl_dlopen=yes
14017 else
14018   echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14020
14021 ac_cv_lib_dl_dlopen=no
14022 fi
14023 rm -f conftest.err conftest.$ac_objext \
14024       conftest$ac_exeext conftest.$ac_ext
14025 LIBS=$ac_check_lib_save_LIBS
14026 fi
14027 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14028 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14029 if test $ac_cv_lib_dl_dlopen = yes; then
14030   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14031 else
14032   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14033 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14034 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14035   echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037   ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-lsvld  $LIBS"
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h.  */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h.  */
14045
14046 /* Override any gcc2 internal prototype to avoid an error.  */
14047 #ifdef __cplusplus
14048 extern "C"
14049 #endif
14050 /* We use char because int might match the return type of a gcc2
14051    builtin and then its argument prototype would still apply.  */
14052 char dlopen ();
14053 int
14054 main ()
14055 {
14056 dlopen ();
14057   ;
14058   return 0;
14059 }
14060 _ACEOF
14061 rm -f conftest.$ac_objext conftest$ac_exeext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063   (eval $ac_link) 2>conftest.er1
14064   ac_status=$?
14065   grep -v '^ *+' conftest.er1 >conftest.err
14066   rm -f conftest.er1
14067   cat conftest.err >&5
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); } &&
14070          { ac_try='test -z "$ac_cxx_werror_flag"
14071                          || test ! -s conftest.err'
14072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073   (eval $ac_try) 2>&5
14074   ac_status=$?
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); }; } &&
14077          { ac_try='test -s conftest$ac_exeext'
14078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079   (eval $ac_try) 2>&5
14080   ac_status=$?
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); }; }; then
14083   ac_cv_lib_svld_dlopen=yes
14084 else
14085   echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14087
14088 ac_cv_lib_svld_dlopen=no
14089 fi
14090 rm -f conftest.err conftest.$ac_objext \
14091       conftest$ac_exeext conftest.$ac_ext
14092 LIBS=$ac_check_lib_save_LIBS
14093 fi
14094 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14095 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14096 if test $ac_cv_lib_svld_dlopen = yes; then
14097   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14098 else
14099   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14100 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14101 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14102   echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104   ac_check_lib_save_LIBS=$LIBS
14105 LIBS="-ldld  $LIBS"
14106 cat >conftest.$ac_ext <<_ACEOF
14107 /* confdefs.h.  */
14108 _ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h.  */
14112
14113 /* Override any gcc2 internal prototype to avoid an error.  */
14114 #ifdef __cplusplus
14115 extern "C"
14116 #endif
14117 /* We use char because int might match the return type of a gcc2
14118    builtin and then its argument prototype would still apply.  */
14119 char dld_link ();
14120 int
14121 main ()
14122 {
14123 dld_link ();
14124   ;
14125   return 0;
14126 }
14127 _ACEOF
14128 rm -f conftest.$ac_objext conftest$ac_exeext
14129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14130   (eval $ac_link) 2>conftest.er1
14131   ac_status=$?
14132   grep -v '^ *+' conftest.er1 >conftest.err
14133   rm -f conftest.er1
14134   cat conftest.err >&5
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); } &&
14137          { ac_try='test -z "$ac_cxx_werror_flag"
14138                          || test ! -s conftest.err'
14139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140   (eval $ac_try) 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); }; } &&
14144          { ac_try='test -s conftest$ac_exeext'
14145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146   (eval $ac_try) 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); }; }; then
14150   ac_cv_lib_dld_dld_link=yes
14151 else
14152   echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14154
14155 ac_cv_lib_dld_dld_link=no
14156 fi
14157 rm -f conftest.err conftest.$ac_objext \
14158       conftest$ac_exeext conftest.$ac_ext
14159 LIBS=$ac_check_lib_save_LIBS
14160 fi
14161 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14162 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14163 if test $ac_cv_lib_dld_dld_link = yes; then
14164   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14165 fi
14166
14167
14168 fi
14169
14170
14171 fi
14172
14173
14174 fi
14175
14176
14177 fi
14178
14179
14180 fi
14181
14182     ;;
14183   esac
14184
14185   if test "x$lt_cv_dlopen" != xno; then
14186     enable_dlopen=yes
14187   else
14188     enable_dlopen=no
14189   fi
14190
14191   case $lt_cv_dlopen in
14192   dlopen)
14193     save_CPPFLAGS="$CPPFLAGS"
14194     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14195
14196     save_LDFLAGS="$LDFLAGS"
14197     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14198
14199     save_LIBS="$LIBS"
14200     LIBS="$lt_cv_dlopen_libs $LIBS"
14201
14202     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14203 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14204 if test "${lt_cv_dlopen_self+set}" = set; then
14205   echo $ECHO_N "(cached) $ECHO_C" >&6
14206 else
14207           if test "$cross_compiling" = yes; then :
14208   lt_cv_dlopen_self=cross
14209 else
14210   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14211   lt_status=$lt_dlunknown
14212   cat > conftest.$ac_ext <<EOF
14213 #line 14213 "configure"
14214 #include "confdefs.h"
14215
14216 #if HAVE_DLFCN_H
14217 #include <dlfcn.h>
14218 #endif
14219
14220 #include <stdio.h>
14221
14222 #ifdef RTLD_GLOBAL
14223 #  define LT_DLGLOBAL           RTLD_GLOBAL
14224 #else
14225 #  ifdef DL_GLOBAL
14226 #    define LT_DLGLOBAL         DL_GLOBAL
14227 #  else
14228 #    define LT_DLGLOBAL         0
14229 #  endif
14230 #endif
14231
14232 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14233    find out it does not work in some platform. */
14234 #ifndef LT_DLLAZY_OR_NOW
14235 #  ifdef RTLD_LAZY
14236 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14237 #  else
14238 #    ifdef DL_LAZY
14239 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14240 #    else
14241 #      ifdef RTLD_NOW
14242 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14243 #      else
14244 #        ifdef DL_NOW
14245 #          define LT_DLLAZY_OR_NOW      DL_NOW
14246 #        else
14247 #          define LT_DLLAZY_OR_NOW      0
14248 #        endif
14249 #      endif
14250 #    endif
14251 #  endif
14252 #endif
14253
14254 #ifdef __cplusplus
14255 extern "C" void exit (int);
14256 #endif
14257
14258 void fnord() { int i=42;}
14259 int main ()
14260 {
14261   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14262   int status = $lt_dlunknown;
14263
14264   if (self)
14265     {
14266       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14267       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14268       /* dlclose (self); */
14269     }
14270
14271     exit (status);
14272 }
14273 EOF
14274   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275   (eval $ac_link) 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14279     (./conftest; exit; ) 2>/dev/null
14280     lt_status=$?
14281     case x$lt_status in
14282       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14283       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14284       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14285     esac
14286   else :
14287     # compilation failed
14288     lt_cv_dlopen_self=no
14289   fi
14290 fi
14291 rm -fr conftest*
14292
14293
14294 fi
14295 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14296 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14297
14298     if test "x$lt_cv_dlopen_self" = xyes; then
14299       LDFLAGS="$LDFLAGS $link_static_flag"
14300       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14301 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14302 if test "${lt_cv_dlopen_self_static+set}" = set; then
14303   echo $ECHO_N "(cached) $ECHO_C" >&6
14304 else
14305           if test "$cross_compiling" = yes; then :
14306   lt_cv_dlopen_self_static=cross
14307 else
14308   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14309   lt_status=$lt_dlunknown
14310   cat > conftest.$ac_ext <<EOF
14311 #line 14311 "configure"
14312 #include "confdefs.h"
14313
14314 #if HAVE_DLFCN_H
14315 #include <dlfcn.h>
14316 #endif
14317
14318 #include <stdio.h>
14319
14320 #ifdef RTLD_GLOBAL
14321 #  define LT_DLGLOBAL           RTLD_GLOBAL
14322 #else
14323 #  ifdef DL_GLOBAL
14324 #    define LT_DLGLOBAL         DL_GLOBAL
14325 #  else
14326 #    define LT_DLGLOBAL         0
14327 #  endif
14328 #endif
14329
14330 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14331    find out it does not work in some platform. */
14332 #ifndef LT_DLLAZY_OR_NOW
14333 #  ifdef RTLD_LAZY
14334 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14335 #  else
14336 #    ifdef DL_LAZY
14337 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14338 #    else
14339 #      ifdef RTLD_NOW
14340 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14341 #      else
14342 #        ifdef DL_NOW
14343 #          define LT_DLLAZY_OR_NOW      DL_NOW
14344 #        else
14345 #          define LT_DLLAZY_OR_NOW      0
14346 #        endif
14347 #      endif
14348 #    endif
14349 #  endif
14350 #endif
14351
14352 #ifdef __cplusplus
14353 extern "C" void exit (int);
14354 #endif
14355
14356 void fnord() { int i=42;}
14357 int main ()
14358 {
14359   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14360   int status = $lt_dlunknown;
14361
14362   if (self)
14363     {
14364       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14365       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14366       /* dlclose (self); */
14367     }
14368
14369     exit (status);
14370 }
14371 EOF
14372   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14373   (eval $ac_link) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14377     (./conftest; exit; ) 2>/dev/null
14378     lt_status=$?
14379     case x$lt_status in
14380       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14381       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14382       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14383     esac
14384   else :
14385     # compilation failed
14386     lt_cv_dlopen_self_static=no
14387   fi
14388 fi
14389 rm -fr conftest*
14390
14391
14392 fi
14393 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14394 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14395     fi
14396
14397     CPPFLAGS="$save_CPPFLAGS"
14398     LDFLAGS="$save_LDFLAGS"
14399     LIBS="$save_LIBS"
14400     ;;
14401   esac
14402
14403   case $lt_cv_dlopen_self in
14404   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14405   *) enable_dlopen_self=unknown ;;
14406   esac
14407
14408   case $lt_cv_dlopen_self_static in
14409   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14410   *) enable_dlopen_self_static=unknown ;;
14411   esac
14412 fi
14413
14414
14415 # The else clause should only fire when bootstrapping the
14416 # libtool distribution, otherwise you forgot to ship ltmain.sh
14417 # with your package, and you will get complaints that there are
14418 # no rules to generate ltmain.sh.
14419 if test -f "$ltmain"; then
14420   # See if we are running on zsh, and set the options which allow our commands through
14421   # without removal of \ escapes.
14422   if test -n "${ZSH_VERSION+set}" ; then
14423     setopt NO_GLOB_SUBST
14424   fi
14425   # Now quote all the things that may contain metacharacters while being
14426   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14427   # variables and quote the copies for generation of the libtool script.
14428   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14429     SED SHELL STRIP \
14430     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14431     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14432     deplibs_check_method reload_flag reload_cmds need_locks \
14433     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14434     lt_cv_sys_global_symbol_to_c_name_address \
14435     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14436     old_postinstall_cmds old_postuninstall_cmds \
14437     compiler_CXX \
14438     CC_CXX \
14439     LD_CXX \
14440     lt_prog_compiler_wl_CXX \
14441     lt_prog_compiler_pic_CXX \
14442     lt_prog_compiler_static_CXX \
14443     lt_prog_compiler_no_builtin_flag_CXX \
14444     export_dynamic_flag_spec_CXX \
14445     thread_safe_flag_spec_CXX \
14446     whole_archive_flag_spec_CXX \
14447     enable_shared_with_static_runtimes_CXX \
14448     old_archive_cmds_CXX \
14449     old_archive_from_new_cmds_CXX \
14450     predep_objects_CXX \
14451     postdep_objects_CXX \
14452     predeps_CXX \
14453     postdeps_CXX \
14454     compiler_lib_search_path_CXX \
14455     archive_cmds_CXX \
14456     archive_expsym_cmds_CXX \
14457     postinstall_cmds_CXX \
14458     postuninstall_cmds_CXX \
14459     old_archive_from_expsyms_cmds_CXX \
14460     allow_undefined_flag_CXX \
14461     no_undefined_flag_CXX \
14462     export_symbols_cmds_CXX \
14463     hardcode_libdir_flag_spec_CXX \
14464     hardcode_libdir_flag_spec_ld_CXX \
14465     hardcode_libdir_separator_CXX \
14466     hardcode_automatic_CXX \
14467     module_cmds_CXX \
14468     module_expsym_cmds_CXX \
14469     lt_cv_prog_compiler_c_o_CXX \
14470     exclude_expsyms_CXX \
14471     include_expsyms_CXX; do
14472
14473     case $var in
14474     old_archive_cmds_CXX | \
14475     old_archive_from_new_cmds_CXX | \
14476     archive_cmds_CXX | \
14477     archive_expsym_cmds_CXX | \
14478     module_cmds_CXX | \
14479     module_expsym_cmds_CXX | \
14480     old_archive_from_expsyms_cmds_CXX | \
14481     export_symbols_cmds_CXX | \
14482     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14483     postinstall_cmds | postuninstall_cmds | \
14484     old_postinstall_cmds | old_postuninstall_cmds | \
14485     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14486       # Double-quote double-evaled strings.
14487       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14488       ;;
14489     *)
14490       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14491       ;;
14492     esac
14493   done
14494
14495   case $lt_echo in
14496   *'\$0 --fallback-echo"')
14497     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14498     ;;
14499   esac
14500
14501 cfgfile="$ofile"
14502
14503   cat <<__EOF__ >> "$cfgfile"
14504 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14505
14506 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14507
14508 # Shell to use when invoking shell scripts.
14509 SHELL=$lt_SHELL
14510
14511 # Whether or not to build shared libraries.
14512 build_libtool_libs=$enable_shared
14513
14514 # Whether or not to build static libraries.
14515 build_old_libs=$enable_static
14516
14517 # Whether or not to add -lc for building shared libraries.
14518 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14519
14520 # Whether or not to disallow shared libs when runtime libs are static
14521 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14522
14523 # Whether or not to optimize for fast installation.
14524 fast_install=$enable_fast_install
14525
14526 # The host system.
14527 host_alias=$host_alias
14528 host=$host
14529
14530 # An echo program that does not interpret backslashes.
14531 echo=$lt_echo
14532
14533 # The archiver.
14534 AR=$lt_AR
14535 AR_FLAGS=$lt_AR_FLAGS
14536
14537 # A C compiler.
14538 LTCC=$lt_LTCC
14539
14540 # A language-specific compiler.
14541 CC=$lt_compiler_CXX
14542
14543 # Is the compiler the GNU C compiler?
14544 with_gcc=$GCC_CXX
14545
14546 # An ERE matcher.
14547 EGREP=$lt_EGREP
14548
14549 # The linker used to build libraries.
14550 LD=$lt_LD_CXX
14551
14552 # Whether we need hard or soft links.
14553 LN_S=$lt_LN_S
14554
14555 # A BSD-compatible nm program.
14556 NM=$lt_NM
14557
14558 # A symbol stripping program
14559 STRIP=$lt_STRIP
14560
14561 # Used to examine libraries when file_magic_cmd begins "file"
14562 MAGIC_CMD=$MAGIC_CMD
14563
14564 # Used on cygwin: DLL creation program.
14565 DLLTOOL="$DLLTOOL"
14566
14567 # Used on cygwin: object dumper.
14568 OBJDUMP="$OBJDUMP"
14569
14570 # Used on cygwin: assembler.
14571 AS="$AS"
14572
14573 # The name of the directory that contains temporary libtool files.
14574 objdir=$objdir
14575
14576 # How to create reloadable object files.
14577 reload_flag=$lt_reload_flag
14578 reload_cmds=$lt_reload_cmds
14579
14580 # How to pass a linker flag through the compiler.
14581 wl=$lt_lt_prog_compiler_wl_CXX
14582
14583 # Object file suffix (normally "o").
14584 objext="$ac_objext"
14585
14586 # Old archive suffix (normally "a").
14587 libext="$libext"
14588
14589 # Shared library suffix (normally ".so").
14590 shrext_cmds='$shrext_cmds'
14591
14592 # Executable file suffix (normally "").
14593 exeext="$exeext"
14594
14595 # Additional compiler flags for building library objects.
14596 pic_flag=$lt_lt_prog_compiler_pic_CXX
14597 pic_mode=$pic_mode
14598
14599 # What is the maximum length of a command?
14600 max_cmd_len=$lt_cv_sys_max_cmd_len
14601
14602 # Does compiler simultaneously support -c and -o options?
14603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14604
14605 # Must we lock files when doing compilation ?
14606 need_locks=$lt_need_locks
14607
14608 # Do we need the lib prefix for modules?
14609 need_lib_prefix=$need_lib_prefix
14610
14611 # Do we need a version for libraries?
14612 need_version=$need_version
14613
14614 # Whether dlopen is supported.
14615 dlopen_support=$enable_dlopen
14616
14617 # Whether dlopen of programs is supported.
14618 dlopen_self=$enable_dlopen_self
14619
14620 # Whether dlopen of statically linked programs is supported.
14621 dlopen_self_static=$enable_dlopen_self_static
14622
14623 # Compiler flag to prevent dynamic linking.
14624 link_static_flag=$lt_lt_prog_compiler_static_CXX
14625
14626 # Compiler flag to turn off builtin functions.
14627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14628
14629 # Compiler flag to allow reflexive dlopens.
14630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14631
14632 # Compiler flag to generate shared objects directly from archives.
14633 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14634
14635 # Compiler flag to generate thread-safe objects.
14636 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14637
14638 # Library versioning type.
14639 version_type=$version_type
14640
14641 # Format of library name prefix.
14642 libname_spec=$lt_libname_spec
14643
14644 # List of archive names.  First name is the real one, the rest are links.
14645 # The last name is the one that the linker finds with -lNAME.
14646 library_names_spec=$lt_library_names_spec
14647
14648 # The coded name of the library, if different from the real name.
14649 soname_spec=$lt_soname_spec
14650
14651 # Commands used to build and install an old-style archive.
14652 RANLIB=$lt_RANLIB
14653 old_archive_cmds=$lt_old_archive_cmds_CXX
14654 old_postinstall_cmds=$lt_old_postinstall_cmds
14655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14656
14657 # Create an old-style archive from a shared archive.
14658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14659
14660 # Create a temporary old-style archive to link instead of a shared archive.
14661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14662
14663 # Commands used to build and install a shared archive.
14664 archive_cmds=$lt_archive_cmds_CXX
14665 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14666 postinstall_cmds=$lt_postinstall_cmds
14667 postuninstall_cmds=$lt_postuninstall_cmds
14668
14669 # Commands used to build a loadable module (assumed same as above if empty)
14670 module_cmds=$lt_module_cmds_CXX
14671 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14672
14673 # Commands to strip libraries.
14674 old_striplib=$lt_old_striplib
14675 striplib=$lt_striplib
14676
14677 # Dependencies to place before the objects being linked to create a
14678 # shared library.
14679 predep_objects=$lt_predep_objects_CXX
14680
14681 # Dependencies to place after the objects being linked to create a
14682 # shared library.
14683 postdep_objects=$lt_postdep_objects_CXX
14684
14685 # Dependencies to place before the objects being linked to create a
14686 # shared library.
14687 predeps=$lt_predeps_CXX
14688
14689 # Dependencies to place after the objects being linked to create a
14690 # shared library.
14691 postdeps=$lt_postdeps_CXX
14692
14693 # The library search path used internally by the compiler when linking
14694 # a shared library.
14695 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14696
14697 # Method to check whether dependent libraries are shared objects.
14698 deplibs_check_method=$lt_deplibs_check_method
14699
14700 # Command to use when deplibs_check_method == file_magic.
14701 file_magic_cmd=$lt_file_magic_cmd
14702
14703 # Flag that allows shared libraries with undefined symbols to be built.
14704 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14705
14706 # Flag that forces no undefined symbols.
14707 no_undefined_flag=$lt_no_undefined_flag_CXX
14708
14709 # Commands used to finish a libtool library installation in a directory.
14710 finish_cmds=$lt_finish_cmds
14711
14712 # Same as above, but a single script fragment to be evaled but not shown.
14713 finish_eval=$lt_finish_eval
14714
14715 # Take the output of nm and produce a listing of raw symbols and C names.
14716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14717
14718 # Transform the output of nm in a proper C declaration
14719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14720
14721 # Transform the output of nm in a C name address pair
14722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14723
14724 # This is the shared library runtime path variable.
14725 runpath_var=$runpath_var
14726
14727 # This is the shared library path variable.
14728 shlibpath_var=$shlibpath_var
14729
14730 # Is shlibpath searched before the hard-coded library search path?
14731 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14732
14733 # How to hardcode a shared library path into an executable.
14734 hardcode_action=$hardcode_action_CXX
14735
14736 # Whether we should hardcode library paths into libraries.
14737 hardcode_into_libs=$hardcode_into_libs
14738
14739 # Flag to hardcode \$libdir into a binary during linking.
14740 # This must work even if \$libdir does not exist.
14741 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14742
14743 # If ld is used when linking, flag to hardcode \$libdir into
14744 # a binary during linking. This must work even if \$libdir does
14745 # not exist.
14746 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14747
14748 # Whether we need a single -rpath flag with a separated argument.
14749 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14750
14751 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14752 # resulting binary.
14753 hardcode_direct=$hardcode_direct_CXX
14754
14755 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14756 # resulting binary.
14757 hardcode_minus_L=$hardcode_minus_L_CXX
14758
14759 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14760 # the resulting binary.
14761 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14762
14763 # Set to yes if building a shared library automatically hardcodes DIR into the library
14764 # and all subsequent libraries and executables linked against it.
14765 hardcode_automatic=$hardcode_automatic_CXX
14766
14767 # Variables whose values should be saved in libtool wrapper scripts and
14768 # restored at relink time.
14769 variables_saved_for_relink="$variables_saved_for_relink"
14770
14771 # Whether libtool must link a program against all its dependency libraries.
14772 link_all_deplibs=$link_all_deplibs_CXX
14773
14774 # Compile-time system search path for libraries
14775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14776
14777 # Run-time system search path for libraries
14778 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14779
14780 # Fix the shell variable \$srcfile for the compiler.
14781 fix_srcfile_path="$fix_srcfile_path_CXX"
14782
14783 # Set to yes if exported symbols are required.
14784 always_export_symbols=$always_export_symbols_CXX
14785
14786 # The commands to list exported symbols.
14787 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14788
14789 # The commands to extract the exported symbol list from a shared archive.
14790 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14791
14792 # Symbols that should not be listed in the preloaded symbols.
14793 exclude_expsyms=$lt_exclude_expsyms_CXX
14794
14795 # Symbols that must always be exported.
14796 include_expsyms=$lt_include_expsyms_CXX
14797
14798 # ### END LIBTOOL TAG CONFIG: $tagname
14799
14800 __EOF__
14801
14802
14803 else
14804   # If there is no Makefile yet, we rely on a make rule to execute
14805   # `config.status --recheck' to rerun these tests and create the
14806   # libtool script then.
14807   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14808   if test -f "$ltmain_in"; then
14809     test -f Makefile && make "$ltmain"
14810   fi
14811 fi
14812
14813
14814 ac_ext=c
14815 ac_cpp='$CPP $CPPFLAGS'
14816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14819
14820 CC=$lt_save_CC
14821 LDCXX=$LD
14822 LD=$lt_save_LD
14823 GCC=$lt_save_GCC
14824 with_gnu_ldcxx=$with_gnu_ld
14825 with_gnu_ld=$lt_save_with_gnu_ld
14826 lt_cv_path_LDCXX=$lt_cv_path_LD
14827 lt_cv_path_LD=$lt_save_path_LD
14828 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14829 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14830
14831         else
14832           tagname=""
14833         fi
14834         ;;
14835
14836       F77)
14837         if test -n "$F77" && test "X$F77" != "Xno"; then
14838
14839 ac_ext=f
14840 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14841 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14842 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14843
14844
14845 archive_cmds_need_lc_F77=no
14846 allow_undefined_flag_F77=
14847 always_export_symbols_F77=no
14848 archive_expsym_cmds_F77=
14849 export_dynamic_flag_spec_F77=
14850 hardcode_direct_F77=no
14851 hardcode_libdir_flag_spec_F77=
14852 hardcode_libdir_flag_spec_ld_F77=
14853 hardcode_libdir_separator_F77=
14854 hardcode_minus_L_F77=no
14855 hardcode_automatic_F77=no
14856 module_cmds_F77=
14857 module_expsym_cmds_F77=
14858 link_all_deplibs_F77=unknown
14859 old_archive_cmds_F77=$old_archive_cmds
14860 no_undefined_flag_F77=
14861 whole_archive_flag_spec_F77=
14862 enable_shared_with_static_runtimes_F77=no
14863
14864 # Source file extension for f77 test sources.
14865 ac_ext=f
14866
14867 # Object file extension for compiled f77 test sources.
14868 objext=o
14869 objext_F77=$objext
14870
14871 # Code to be used in simple compile tests
14872 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14873
14874 # Code to be used in simple link tests
14875 lt_simple_link_test_code="      program t\n      end\n"
14876
14877 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14878
14879 # If no C compiler was specified, use CC.
14880 LTCC=${LTCC-"$CC"}
14881
14882 # Allow CC to be a program name with arguments.
14883 compiler=$CC
14884
14885
14886 # Allow CC to be a program name with arguments.
14887 lt_save_CC="$CC"
14888 CC=${F77-"f77"}
14889 compiler=$CC
14890 compiler_F77=$CC
14891 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14892
14893 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14894 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14895 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14896 echo "${ECHO_T}$can_build_shared" >&6
14897
14898 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14899 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14900 test "$can_build_shared" = "no" && enable_shared=no
14901
14902 # On AIX, shared libraries and static libraries use the same namespace, and
14903 # are all built from PIC.
14904 case "$host_os" in
14905 aix3*)
14906   test "$enable_shared" = yes && enable_static=no
14907   if test -n "$RANLIB"; then
14908     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14909     postinstall_cmds='$RANLIB $lib'
14910   fi
14911   ;;
14912 aix4* | aix5*)
14913   test "$enable_shared" = yes && enable_static=no
14914   ;;
14915 esac
14916 echo "$as_me:$LINENO: result: $enable_shared" >&5
14917 echo "${ECHO_T}$enable_shared" >&6
14918
14919 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14920 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14921 # Make sure either enable_shared or enable_static is yes.
14922 test "$enable_shared" = yes || enable_static=yes
14923 echo "$as_me:$LINENO: result: $enable_static" >&5
14924 echo "${ECHO_T}$enable_static" >&6
14925
14926 test "$ld_shlibs_F77" = no && can_build_shared=no
14927
14928 GCC_F77="$G77"
14929 LD_F77="$LD"
14930
14931 lt_prog_compiler_wl_F77=
14932 lt_prog_compiler_pic_F77=
14933 lt_prog_compiler_static_F77=
14934
14935 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14936 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14937
14938   if test "$GCC" = yes; then
14939     lt_prog_compiler_wl_F77='-Wl,'
14940     lt_prog_compiler_static_F77='-static'
14941
14942     case $host_os in
14943       aix*)
14944       # All AIX code is PIC.
14945       if test "$host_cpu" = ia64; then
14946         # AIX 5 now supports IA64 processor
14947         lt_prog_compiler_static_F77='-Bstatic'
14948       fi
14949       ;;
14950
14951     amigaos*)
14952       # FIXME: we need at least 68020 code to build shared libraries, but
14953       # adding the `-m68020' flag to GCC prevents building anything better,
14954       # like `-m68040'.
14955       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14956       ;;
14957
14958     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14959       # PIC is the default for these OSes.
14960       ;;
14961
14962     mingw* | pw32* | os2*)
14963       # This hack is so that the source file can tell whether it is being
14964       # built for inclusion in a dll (and should export symbols for example).
14965       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14966       ;;
14967
14968     darwin* | rhapsody*)
14969       # PIC is the default on this platform
14970       # Common symbols not allowed in MH_DYLIB files
14971       lt_prog_compiler_pic_F77='-fno-common'
14972       ;;
14973
14974     msdosdjgpp*)
14975       # Just because we use GCC doesn't mean we suddenly get shared libraries
14976       # on systems that don't support them.
14977       lt_prog_compiler_can_build_shared_F77=no
14978       enable_shared=no
14979       ;;
14980
14981     sysv4*MP*)
14982       if test -d /usr/nec; then
14983         lt_prog_compiler_pic_F77=-Kconform_pic
14984       fi
14985       ;;
14986
14987     hpux*)
14988       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14989       # not for PA HP-UX.
14990       case "$host_cpu" in
14991       hppa*64*|ia64*)
14992         # +Z the default
14993         ;;
14994       *)
14995         lt_prog_compiler_pic_F77='-fPIC'
14996         ;;
14997       esac
14998       ;;
14999
15000     *)
15001       lt_prog_compiler_pic_F77='-fPIC'
15002       ;;
15003     esac
15004   else
15005     # PORTME Check for flag to pass linker flags through the system compiler.
15006     case $host_os in
15007     aix*)
15008       lt_prog_compiler_wl_F77='-Wl,'
15009       if test "$host_cpu" = ia64; then
15010         # AIX 5 now supports IA64 processor
15011         lt_prog_compiler_static_F77='-Bstatic'
15012       else
15013         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15014       fi
15015       ;;
15016       darwin*)
15017         # PIC is the default on this platform
15018         # Common symbols not allowed in MH_DYLIB files
15019        case "$cc_basename" in
15020          xlc*)
15021          lt_prog_compiler_pic_F77='-qnocommon'
15022          lt_prog_compiler_wl_F77='-Wl,'
15023          ;;
15024        esac
15025        ;;
15026
15027     mingw* | pw32* | os2*)
15028       # This hack is so that the source file can tell whether it is being
15029       # built for inclusion in a dll (and should export symbols for example).
15030       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15031       ;;
15032
15033     hpux9* | hpux10* | hpux11*)
15034       lt_prog_compiler_wl_F77='-Wl,'
15035       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15036       # not for PA HP-UX.
15037       case "$host_cpu" in
15038       hppa*64*|ia64*)
15039         # +Z the default
15040         ;;
15041       *)
15042         lt_prog_compiler_pic_F77='+Z'
15043         ;;
15044       esac
15045       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15046       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15047       ;;
15048
15049     irix5* | irix6* | nonstopux*)
15050       lt_prog_compiler_wl_F77='-Wl,'
15051       # PIC (with -KPIC) is the default.
15052       lt_prog_compiler_static_F77='-non_shared'
15053       ;;
15054
15055     newsos6)
15056       lt_prog_compiler_pic_F77='-KPIC'
15057       lt_prog_compiler_static_F77='-Bstatic'
15058       ;;
15059
15060     linux*)
15061       case $CC in
15062       icc* | ecc*)
15063         lt_prog_compiler_wl_F77='-Wl,'
15064         lt_prog_compiler_pic_F77='-KPIC'
15065         lt_prog_compiler_static_F77='-static'
15066         ;;
15067       ccc*)
15068         lt_prog_compiler_wl_F77='-Wl,'
15069         # All Alpha code is PIC.
15070         lt_prog_compiler_static_F77='-non_shared'
15071         ;;
15072       esac
15073       ;;
15074
15075     osf3* | osf4* | osf5*)
15076       lt_prog_compiler_wl_F77='-Wl,'
15077       # All OSF/1 code is PIC.
15078       lt_prog_compiler_static_F77='-non_shared'
15079       ;;
15080
15081     sco3.2v5*)
15082       lt_prog_compiler_pic_F77='-Kpic'
15083       lt_prog_compiler_static_F77='-dn'
15084       ;;
15085
15086     solaris*)
15087       lt_prog_compiler_wl_F77='-Wl,'
15088       lt_prog_compiler_pic_F77='-KPIC'
15089       lt_prog_compiler_static_F77='-Bstatic'
15090       ;;
15091
15092     sunos4*)
15093       lt_prog_compiler_wl_F77='-Qoption ld '
15094       lt_prog_compiler_pic_F77='-PIC'
15095       lt_prog_compiler_static_F77='-Bstatic'
15096       ;;
15097
15098     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15099       lt_prog_compiler_wl_F77='-Wl,'
15100       lt_prog_compiler_pic_F77='-KPIC'
15101       lt_prog_compiler_static_F77='-Bstatic'
15102       ;;
15103
15104     sysv4*MP*)
15105       if test -d /usr/nec ;then
15106         lt_prog_compiler_pic_F77='-Kconform_pic'
15107         lt_prog_compiler_static_F77='-Bstatic'
15108       fi
15109       ;;
15110
15111     uts4*)
15112       lt_prog_compiler_pic_F77='-pic'
15113       lt_prog_compiler_static_F77='-Bstatic'
15114       ;;
15115
15116     *)
15117       lt_prog_compiler_can_build_shared_F77=no
15118       ;;
15119     esac
15120   fi
15121
15122 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15123 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15124
15125 #
15126 # Check to make sure the PIC flag actually works.
15127 #
15128 if test -n "$lt_prog_compiler_pic_F77"; then
15129
15130 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15131 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15132 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15133   echo $ECHO_N "(cached) $ECHO_C" >&6
15134 else
15135   lt_prog_compiler_pic_works_F77=no
15136   ac_outfile=conftest.$ac_objext
15137    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15138    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15139    # Insert the option either (1) after the last *FLAGS variable, or
15140    # (2) before a word containing "conftest.", or (3) at the end.
15141    # Note that $ac_compile itself does not contain backslashes and begins
15142    # with a dollar sign (not a hyphen), so the echo should work correctly.
15143    # The option is referenced via a variable to avoid confusing sed.
15144    lt_compile=`echo "$ac_compile" | $SED \
15145    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15146    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15147    -e 's:$: $lt_compiler_flag:'`
15148    (eval echo "\"\$as_me:15148: $lt_compile\"" >&5)
15149    (eval "$lt_compile" 2>conftest.err)
15150    ac_status=$?
15151    cat conftest.err >&5
15152    echo "$as_me:15152: \$? = $ac_status" >&5
15153    if (exit $ac_status) && test -s "$ac_outfile"; then
15154      # The compiler can only warn and ignore the option if not recognized
15155      # So say no if there are warnings
15156      if test ! -s conftest.err; then
15157        lt_prog_compiler_pic_works_F77=yes
15158      fi
15159    fi
15160    $rm conftest*
15161
15162 fi
15163 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15164 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15165
15166 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15167     case $lt_prog_compiler_pic_F77 in
15168      "" | " "*) ;;
15169      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15170      esac
15171 else
15172     lt_prog_compiler_pic_F77=
15173      lt_prog_compiler_can_build_shared_F77=no
15174 fi
15175
15176 fi
15177 case "$host_os" in
15178   # For platforms which do not support PIC, -DPIC is meaningless:
15179   *djgpp*)
15180     lt_prog_compiler_pic_F77=
15181     ;;
15182   *)
15183     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15184     ;;
15185 esac
15186
15187 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15188 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15189 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15190   echo $ECHO_N "(cached) $ECHO_C" >&6
15191 else
15192   lt_cv_prog_compiler_c_o_F77=no
15193    $rm -r conftest 2>/dev/null
15194    mkdir conftest
15195    cd conftest
15196    mkdir out
15197    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15198
15199    lt_compiler_flag="-o out/conftest2.$ac_objext"
15200    # Insert the option either (1) after the last *FLAGS variable, or
15201    # (2) before a word containing "conftest.", or (3) at the end.
15202    # Note that $ac_compile itself does not contain backslashes and begins
15203    # with a dollar sign (not a hyphen), so the echo should work correctly.
15204    lt_compile=`echo "$ac_compile" | $SED \
15205    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15206    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15207    -e 's:$: $lt_compiler_flag:'`
15208    (eval echo "\"\$as_me:15208: $lt_compile\"" >&5)
15209    (eval "$lt_compile" 2>out/conftest.err)
15210    ac_status=$?
15211    cat out/conftest.err >&5
15212    echo "$as_me:15212: \$? = $ac_status" >&5
15213    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15214    then
15215      # The compiler can only warn and ignore the option if not recognized
15216      # So say no if there are warnings
15217      if test ! -s out/conftest.err; then
15218        lt_cv_prog_compiler_c_o_F77=yes
15219      fi
15220    fi
15221    chmod u+w .
15222    $rm conftest*
15223    # SGI C++ compiler will create directory out/ii_files/ for
15224    # template instantiation
15225    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15226    $rm out/* && rmdir out
15227    cd ..
15228    rmdir conftest
15229    $rm conftest*
15230
15231 fi
15232 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15233 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15234
15235
15236 hard_links="nottested"
15237 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15238   # do not overwrite the value of need_locks provided by the user
15239   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15240 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15241   hard_links=yes
15242   $rm conftest*
15243   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15244   touch conftest.a
15245   ln conftest.a conftest.b 2>&5 || hard_links=no
15246   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15247   echo "$as_me:$LINENO: result: $hard_links" >&5
15248 echo "${ECHO_T}$hard_links" >&6
15249   if test "$hard_links" = no; then
15250     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15251 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15252     need_locks=warn
15253   fi
15254 else
15255   need_locks=no
15256 fi
15257
15258 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15259 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15260
15261   runpath_var=
15262   allow_undefined_flag_F77=
15263   enable_shared_with_static_runtimes_F77=no
15264   archive_cmds_F77=
15265   archive_expsym_cmds_F77=
15266   old_archive_From_new_cmds_F77=
15267   old_archive_from_expsyms_cmds_F77=
15268   export_dynamic_flag_spec_F77=
15269   whole_archive_flag_spec_F77=
15270   thread_safe_flag_spec_F77=
15271   hardcode_libdir_flag_spec_F77=
15272   hardcode_libdir_flag_spec_ld_F77=
15273   hardcode_libdir_separator_F77=
15274   hardcode_direct_F77=no
15275   hardcode_minus_L_F77=no
15276   hardcode_shlibpath_var_F77=unsupported
15277   link_all_deplibs_F77=unknown
15278   hardcode_automatic_F77=no
15279   module_cmds_F77=
15280   module_expsym_cmds_F77=
15281   always_export_symbols_F77=no
15282   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15283   # include_expsyms should be a list of space-separated symbols to be *always*
15284   # included in the symbol list
15285   include_expsyms_F77=
15286   # exclude_expsyms can be an extended regexp of symbols to exclude
15287   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15288   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15289   # as well as any symbol that contains `d'.
15290   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15291   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15292   # platforms (ab)use it in PIC code, but their linkers get confused if
15293   # the symbol is explicitly referenced.  Since portable code cannot
15294   # rely on this symbol name, it's probably fine to never include it in
15295   # preloaded symbol tables.
15296   extract_expsyms_cmds=
15297
15298   case $host_os in
15299   cygwin* | mingw* | pw32*)
15300     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15301     # When not using gcc, we currently assume that we are using
15302     # Microsoft Visual C++.
15303     if test "$GCC" != yes; then
15304       with_gnu_ld=no
15305     fi
15306     ;;
15307   openbsd*)
15308     with_gnu_ld=no
15309     ;;
15310   esac
15311
15312   ld_shlibs_F77=yes
15313   if test "$with_gnu_ld" = yes; then
15314     # If archive_cmds runs LD, not CC, wlarc should be empty
15315     wlarc='${wl}'
15316
15317     # See if GNU ld supports shared libraries.
15318     case $host_os in
15319     aix3* | aix4* | aix5*)
15320       # On AIX/PPC, the GNU linker is very broken
15321       if test "$host_cpu" != ia64; then
15322         ld_shlibs_F77=no
15323         cat <<EOF 1>&2
15324
15325 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15326 *** to be unable to reliably create shared libraries on AIX.
15327 *** Therefore, libtool is disabling shared libraries support.  If you
15328 *** really care for shared libraries, you may want to modify your PATH
15329 *** so that a non-GNU linker is found, and then restart.
15330
15331 EOF
15332       fi
15333       ;;
15334
15335     amigaos*)
15336       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)'
15337       hardcode_libdir_flag_spec_F77='-L$libdir'
15338       hardcode_minus_L_F77=yes
15339
15340       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15341       # that the semantics of dynamic libraries on AmigaOS, at least up
15342       # to version 4, is to share data among multiple programs linked
15343       # with the same dynamic library.  Since this doesn't match the
15344       # behavior of shared libraries on other platforms, we can't use
15345       # them.
15346       ld_shlibs_F77=no
15347       ;;
15348
15349     beos*)
15350       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15351         allow_undefined_flag_F77=unsupported
15352         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15353         # support --undefined.  This deserves some investigation.  FIXME
15354         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15355       else
15356         ld_shlibs_F77=no
15357       fi
15358       ;;
15359
15360     cygwin* | mingw* | pw32*)
15361       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15362       # as there is no search path for DLLs.
15363       hardcode_libdir_flag_spec_F77='-L$libdir'
15364       allow_undefined_flag_F77=unsupported
15365       always_export_symbols_F77=no
15366       enable_shared_with_static_runtimes_F77=yes
15367       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15368
15369       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15370         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15371         # If the export-symbols file already is a .def file (1st line
15372         # is EXPORTS), use it as is; otherwise, prepend...
15373         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15374           cp $export_symbols $output_objdir/$soname.def;
15375         else
15376           echo EXPORTS > $output_objdir/$soname.def;
15377           cat $export_symbols >> $output_objdir/$soname.def;
15378         fi~
15379         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15380       else
15381         ld_shlibs=no
15382       fi
15383       ;;
15384
15385     netbsd*)
15386       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15387         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15388         wlarc=
15389       else
15390         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15391         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15392       fi
15393       ;;
15394
15395     solaris* | sysv5*)
15396       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15397         ld_shlibs_F77=no
15398         cat <<EOF 1>&2
15399
15400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15401 *** create shared libraries on Solaris systems.  Therefore, libtool
15402 *** is disabling shared libraries support.  We urge you to upgrade GNU
15403 *** binutils to release 2.9.1 or newer.  Another option is to modify
15404 *** your PATH or compiler configuration so that the native linker is
15405 *** used, and then restart.
15406
15407 EOF
15408       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15409         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15410         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15411       else
15412         ld_shlibs_F77=no
15413       fi
15414       ;;
15415
15416     sunos4*)
15417       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15418       wlarc=
15419       hardcode_direct_F77=yes
15420       hardcode_shlibpath_var_F77=no
15421       ;;
15422
15423   linux*)
15424     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15425         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15426         archive_cmds_F77="$tmp_archive_cmds"
15427       supports_anon_versioning=no
15428       case `$LD -v 2>/dev/null` in
15429         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15430         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15431         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15432         *\ 2.11.*) ;; # other 2.11 versions
15433         *) supports_anon_versioning=yes ;;
15434       esac
15435       if test $supports_anon_versioning = yes; then
15436         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15438 $echo "local: *; };" >> $output_objdir/$libname.ver~
15439         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15440       else
15441         archive_expsym_cmds_F77="$tmp_archive_cmds"
15442       fi
15443     else
15444       ld_shlibs_F77=no
15445     fi
15446     ;;
15447
15448     *)
15449       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15450         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15451         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15452       else
15453         ld_shlibs_F77=no
15454       fi
15455       ;;
15456     esac
15457
15458     if test "$ld_shlibs_F77" = yes; then
15459       runpath_var=LD_RUN_PATH
15460       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15461       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15462       # ancient GNU ld didn't support --whole-archive et. al.
15463       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15464         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15465       else
15466         whole_archive_flag_spec_F77=
15467       fi
15468     fi
15469   else
15470     # PORTME fill in a description of your system's linker (not GNU ld)
15471     case $host_os in
15472     aix3*)
15473       allow_undefined_flag_F77=unsupported
15474       always_export_symbols_F77=yes
15475       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'
15476       # Note: this linker hardcodes the directories in LIBPATH if there
15477       # are no directories specified by -L.
15478       hardcode_minus_L_F77=yes
15479       if test "$GCC" = yes && test -z "$link_static_flag"; then
15480         # Neither direct hardcoding nor static linking is supported with a
15481         # broken collect2.
15482         hardcode_direct_F77=unsupported
15483       fi
15484       ;;
15485
15486     aix4* | aix5*)
15487       if test "$host_cpu" = ia64; then
15488         # On IA64, the linker does run time linking by default, so we don't
15489         # have to do anything special.
15490         aix_use_runtimelinking=no
15491         exp_sym_flag='-Bexport'
15492         no_entry_flag=""
15493       else
15494         # If we're using GNU nm, then we don't want the "-C" option.
15495         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15496         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15497           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'
15498         else
15499           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'
15500         fi
15501         aix_use_runtimelinking=no
15502
15503         # Test if we are trying to use run time linking or normal
15504         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15505         # need to do runtime linking.
15506         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15507           for ld_flag in $LDFLAGS; do
15508           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15509             aix_use_runtimelinking=yes
15510             break
15511           fi
15512           done
15513         esac
15514
15515         exp_sym_flag='-bexport'
15516         no_entry_flag='-bnoentry'
15517       fi
15518
15519       # When large executables or shared objects are built, AIX ld can
15520       # have problems creating the table of contents.  If linking a library
15521       # or program results in "error TOC overflow" add -mminimal-toc to
15522       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15523       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15524
15525       archive_cmds_F77=''
15526       hardcode_direct_F77=yes
15527       hardcode_libdir_separator_F77=':'
15528       link_all_deplibs_F77=yes
15529
15530       if test "$GCC" = yes; then
15531         case $host_os in aix4.012|aix4.012.*)
15532         # We only want to do this on AIX 4.2 and lower, the check
15533         # below for broken collect2 doesn't work under 4.3+
15534           collect2name=`${CC} -print-prog-name=collect2`
15535           if test -f "$collect2name" && \
15536            strings "$collect2name" | grep resolve_lib_name >/dev/null
15537           then
15538           # We have reworked collect2
15539           hardcode_direct_F77=yes
15540           else
15541           # We have old collect2
15542           hardcode_direct_F77=unsupported
15543           # It fails to find uninstalled libraries when the uninstalled
15544           # path is not listed in the libpath.  Setting hardcode_minus_L
15545           # to unsupported forces relinking
15546           hardcode_minus_L_F77=yes
15547           hardcode_libdir_flag_spec_F77='-L$libdir'
15548           hardcode_libdir_separator_F77=
15549           fi
15550         esac
15551         shared_flag='-shared'
15552       else
15553         # not using gcc
15554         if test "$host_cpu" = ia64; then
15555         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15556         # chokes on -Wl,-G. The following line is correct:
15557           shared_flag='-G'
15558         else
15559         if test "$aix_use_runtimelinking" = yes; then
15560             shared_flag='${wl}-G'
15561           else
15562             shared_flag='${wl}-bM:SRE'
15563         fi
15564         fi
15565       fi
15566
15567       # It seems that -bexpall does not export symbols beginning with
15568       # underscore (_), so it is better to generate a list of symbols to export.
15569       always_export_symbols_F77=yes
15570       if test "$aix_use_runtimelinking" = yes; then
15571         # Warning - without using the other runtime loading flags (-brtl),
15572         # -berok will link without error, but may produce a broken library.
15573         allow_undefined_flag_F77='-berok'
15574        # Determine the default libpath from the value encoded in an empty executable.
15575        cat >conftest.$ac_ext <<_ACEOF
15576       program main
15577
15578       end
15579 _ACEOF
15580 rm -f conftest.$ac_objext conftest$ac_exeext
15581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15582   (eval $ac_link) 2>conftest.er1
15583   ac_status=$?
15584   grep -v '^ *+' conftest.er1 >conftest.err
15585   rm -f conftest.er1
15586   cat conftest.err >&5
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); } &&
15589          { ac_try='test -z "$ac_f77_werror_flag"
15590                          || test ! -s conftest.err'
15591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592   (eval $ac_try) 2>&5
15593   ac_status=$?
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); }; } &&
15596          { ac_try='test -s conftest$ac_exeext'
15597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598   (eval $ac_try) 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); }; }; then
15602
15603 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15604 }'`
15605 # Check for a 64-bit object if we didn't find anything.
15606 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; }
15607 }'`; fi
15608 else
15609   echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15611
15612 fi
15613 rm -f conftest.err conftest.$ac_objext \
15614       conftest$ac_exeext conftest.$ac_ext
15615 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15616
15617        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15618         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"
15619        else
15620         if test "$host_cpu" = ia64; then
15621           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15622           allow_undefined_flag_F77="-z nodefs"
15623           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"
15624         else
15625          # Determine the default libpath from the value encoded in an empty executable.
15626          cat >conftest.$ac_ext <<_ACEOF
15627       program main
15628
15629       end
15630 _ACEOF
15631 rm -f conftest.$ac_objext conftest$ac_exeext
15632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15633   (eval $ac_link) 2>conftest.er1
15634   ac_status=$?
15635   grep -v '^ *+' conftest.er1 >conftest.err
15636   rm -f conftest.er1
15637   cat conftest.err >&5
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); } &&
15640          { ac_try='test -z "$ac_f77_werror_flag"
15641                          || test ! -s conftest.err'
15642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643   (eval $ac_try) 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); }; } &&
15647          { ac_try='test -s conftest$ac_exeext'
15648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649   (eval $ac_try) 2>&5
15650   ac_status=$?
15651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652   (exit $ac_status); }; }; then
15653
15654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15655 }'`
15656 # Check for a 64-bit object if we didn't find anything.
15657 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; }
15658 }'`; fi
15659 else
15660   echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15662
15663 fi
15664 rm -f conftest.err conftest.$ac_objext \
15665       conftest$ac_exeext conftest.$ac_ext
15666 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15667
15668          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15669           # Warning - without using the other run time loading flags,
15670           # -berok will link without error, but may produce a broken library.
15671           no_undefined_flag_F77=' ${wl}-bernotok'
15672           allow_undefined_flag_F77=' ${wl}-berok'
15673           # -bexpall does not export symbols beginning with underscore (_)
15674           always_export_symbols_F77=yes
15675           # Exported symbols can be pulled into shared objects from archives
15676           whole_archive_flag_spec_F77=' '
15677           archive_cmds_need_lc_F77=yes
15678           # This is similar to how AIX traditionally builds it's shared libraries.
15679           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'
15680         fi
15681       fi
15682       ;;
15683
15684     amigaos*)
15685       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)'
15686       hardcode_libdir_flag_spec_F77='-L$libdir'
15687       hardcode_minus_L_F77=yes
15688       # see comment about different semantics on the GNU ld section
15689       ld_shlibs_F77=no
15690       ;;
15691
15692     bsdi[45]*)
15693       export_dynamic_flag_spec_F77=-rdynamic
15694       ;;
15695
15696     cygwin* | mingw* | pw32*)
15697       # When not using gcc, we currently assume that we are using
15698       # Microsoft Visual C++.
15699       # hardcode_libdir_flag_spec is actually meaningless, as there is
15700       # no search path for DLLs.
15701       hardcode_libdir_flag_spec_F77=' '
15702       allow_undefined_flag_F77=unsupported
15703       # Tell ltmain to make .lib files, not .a files.
15704       libext=lib
15705       # Tell ltmain to make .dll files, not .so files.
15706       shrext_cmds=".dll"
15707       # FIXME: Setting linknames here is a bad hack.
15708       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15709       # The linker will automatically build a .lib file if we build a DLL.
15710       old_archive_From_new_cmds_F77='true'
15711       # FIXME: Should let the user specify the lib program.
15712       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15713       fix_srcfile_path='`cygpath -w "$srcfile"`'
15714       enable_shared_with_static_runtimes_F77=yes
15715       ;;
15716
15717     darwin* | rhapsody*)
15718       case "$host_os" in
15719         rhapsody* | darwin1.[012])
15720          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15721          ;;
15722        *) # Darwin 1.3 on
15723          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15724            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15725          else
15726            case ${MACOSX_DEPLOYMENT_TARGET} in
15727              10.[012])
15728                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15729                ;;
15730              10.*)
15731                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15732                ;;
15733            esac
15734          fi
15735          ;;
15736       esac
15737       archive_cmds_need_lc_F77=no
15738       hardcode_direct_F77=no
15739       hardcode_automatic_F77=yes
15740       hardcode_shlibpath_var_F77=unsupported
15741       whole_archive_flag_spec_F77=''
15742       link_all_deplibs_F77=yes
15743     if test "$GCC" = yes ; then
15744         output_verbose_link_cmd='echo'
15745         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15746       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15747       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15748       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}'
15749       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}'
15750     else
15751       case "$cc_basename" in
15752         xlc*)
15753          output_verbose_link_cmd='echo'
15754          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15755          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15756           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15757          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}'
15758           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}'
15759           ;;
15760        *)
15761          ld_shlibs_F77=no
15762           ;;
15763       esac
15764     fi
15765       ;;
15766
15767     dgux*)
15768       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15769       hardcode_libdir_flag_spec_F77='-L$libdir'
15770       hardcode_shlibpath_var_F77=no
15771       ;;
15772
15773     freebsd1*)
15774       ld_shlibs_F77=no
15775       ;;
15776
15777     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15778     # support.  Future versions do this automatically, but an explicit c++rt0.o
15779     # does not break anything, and helps significantly (at the cost of a little
15780     # extra space).
15781     freebsd2.2*)
15782       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15783       hardcode_libdir_flag_spec_F77='-R$libdir'
15784       hardcode_direct_F77=yes
15785       hardcode_shlibpath_var_F77=no
15786       ;;
15787
15788     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15789     freebsd2*)
15790       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15791       hardcode_direct_F77=yes
15792       hardcode_minus_L_F77=yes
15793       hardcode_shlibpath_var_F77=no
15794       ;;
15795
15796     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15797     freebsd* | kfreebsd*-gnu)
15798       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15799       hardcode_libdir_flag_spec_F77='-R$libdir'
15800       hardcode_direct_F77=yes
15801       hardcode_shlibpath_var_F77=no
15802       ;;
15803
15804     hpux9*)
15805       if test "$GCC" = yes; then
15806         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'
15807       else
15808         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'
15809       fi
15810       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15811       hardcode_libdir_separator_F77=:
15812       hardcode_direct_F77=yes
15813
15814       # hardcode_minus_L: Not really in the search PATH,
15815       # but as the default location of the library.
15816       hardcode_minus_L_F77=yes
15817       export_dynamic_flag_spec_F77='${wl}-E'
15818       ;;
15819
15820     hpux10* | hpux11*)
15821       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15822         case "$host_cpu" in
15823         hppa*64*|ia64*)
15824           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15825           ;;
15826         *)
15827           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15828           ;;
15829         esac
15830       else
15831         case "$host_cpu" in
15832         hppa*64*|ia64*)
15833           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15834           ;;
15835         *)
15836           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15837           ;;
15838         esac
15839       fi
15840       if test "$with_gnu_ld" = no; then
15841         case "$host_cpu" in
15842         hppa*64*)
15843           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15844           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15845           hardcode_libdir_separator_F77=:
15846           hardcode_direct_F77=no
15847           hardcode_shlibpath_var_F77=no
15848           ;;
15849         ia64*)
15850           hardcode_libdir_flag_spec_F77='-L$libdir'
15851           hardcode_direct_F77=no
15852           hardcode_shlibpath_var_F77=no
15853
15854           # hardcode_minus_L: Not really in the search PATH,
15855           # but as the default location of the library.
15856           hardcode_minus_L_F77=yes
15857           ;;
15858         *)
15859           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15860           hardcode_libdir_separator_F77=:
15861           hardcode_direct_F77=yes
15862           export_dynamic_flag_spec_F77='${wl}-E'
15863
15864           # hardcode_minus_L: Not really in the search PATH,
15865           # but as the default location of the library.
15866           hardcode_minus_L_F77=yes
15867           ;;
15868         esac
15869       fi
15870       ;;
15871
15872     irix5* | irix6* | nonstopux*)
15873       if test "$GCC" = yes; then
15874         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'
15875       else
15876         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'
15877         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15878       fi
15879       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15880       hardcode_libdir_separator_F77=:
15881       link_all_deplibs_F77=yes
15882       ;;
15883
15884     netbsd*)
15885       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15886         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15887       else
15888         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15889       fi
15890       hardcode_libdir_flag_spec_F77='-R$libdir'
15891       hardcode_direct_F77=yes
15892       hardcode_shlibpath_var_F77=no
15893       ;;
15894
15895     newsos6)
15896       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15897       hardcode_direct_F77=yes
15898       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15899       hardcode_libdir_separator_F77=:
15900       hardcode_shlibpath_var_F77=no
15901       ;;
15902
15903     openbsd*)
15904       hardcode_direct_F77=yes
15905       hardcode_shlibpath_var_F77=no
15906       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15907         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15908         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15909         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15910         export_dynamic_flag_spec_F77='${wl}-E'
15911       else
15912        case $host_os in
15913          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15914            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15915            hardcode_libdir_flag_spec_F77='-R$libdir'
15916            ;;
15917          *)
15918            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15919            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15920            ;;
15921        esac
15922       fi
15923       ;;
15924
15925     os2*)
15926       hardcode_libdir_flag_spec_F77='-L$libdir'
15927       hardcode_minus_L_F77=yes
15928       allow_undefined_flag_F77=unsupported
15929       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'
15930       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15931       ;;
15932
15933     osf3*)
15934       if test "$GCC" = yes; then
15935         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15936         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'
15937       else
15938         allow_undefined_flag_F77=' -expect_unresolved \*'
15939         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'
15940       fi
15941       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15942       hardcode_libdir_separator_F77=:
15943       ;;
15944
15945     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15946       if test "$GCC" = yes; then
15947         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15948         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'
15949         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15950       else
15951         allow_undefined_flag_F77=' -expect_unresolved \*'
15952         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'
15953         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~
15954         $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'
15955
15956         # Both c and cxx compiler support -rpath directly
15957         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15958       fi
15959       hardcode_libdir_separator_F77=:
15960       ;;
15961
15962     sco3.2v5*)
15963       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15964       hardcode_shlibpath_var_F77=no
15965       export_dynamic_flag_spec_F77='${wl}-Bexport'
15966       runpath_var=LD_RUN_PATH
15967       hardcode_runpath_var=yes
15968       ;;
15969
15970     solaris*)
15971       no_undefined_flag_F77=' -z text'
15972       if test "$GCC" = yes; then
15973         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15974         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15975           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15976       else
15977         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15978         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15979         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15980       fi
15981       hardcode_libdir_flag_spec_F77='-R$libdir'
15982       hardcode_shlibpath_var_F77=no
15983       case $host_os in
15984       solaris2.[0-5] | solaris2.[0-5].*) ;;
15985       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15986         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15987       esac
15988       link_all_deplibs_F77=yes
15989       ;;
15990
15991     sunos4*)
15992       if test "x$host_vendor" = xsequent; then
15993         # Use $CC to link under sequent, because it throws in some extra .o
15994         # files that make .init and .fini sections work.
15995         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15996       else
15997         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15998       fi
15999       hardcode_libdir_flag_spec_F77='-L$libdir'
16000       hardcode_direct_F77=yes
16001       hardcode_minus_L_F77=yes
16002       hardcode_shlibpath_var_F77=no
16003       ;;
16004
16005     sysv4)
16006       case $host_vendor in
16007         sni)
16008           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16009           hardcode_direct_F77=yes # is this really true???
16010         ;;
16011         siemens)
16012           ## LD is ld it makes a PLAMLIB
16013           ## CC just makes a GrossModule.
16014           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16015           reload_cmds_F77='$CC -r -o $output$reload_objs'
16016           hardcode_direct_F77=no
16017         ;;
16018         motorola)
16019           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16020           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16021         ;;
16022       esac
16023       runpath_var='LD_RUN_PATH'
16024       hardcode_shlibpath_var_F77=no
16025       ;;
16026
16027     sysv4.3*)
16028       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16029       hardcode_shlibpath_var_F77=no
16030       export_dynamic_flag_spec_F77='-Bexport'
16031       ;;
16032
16033     sysv4*MP*)
16034       if test -d /usr/nec; then
16035         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16036         hardcode_shlibpath_var_F77=no
16037         runpath_var=LD_RUN_PATH
16038         hardcode_runpath_var=yes
16039         ld_shlibs_F77=yes
16040       fi
16041       ;;
16042
16043     sysv4.2uw2*)
16044       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16045       hardcode_direct_F77=yes
16046       hardcode_minus_L_F77=no
16047       hardcode_shlibpath_var_F77=no
16048       hardcode_runpath_var=yes
16049       runpath_var=LD_RUN_PATH
16050       ;;
16051
16052    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16053       no_undefined_flag_F77='${wl}-z ${wl}text'
16054       if test "$GCC" = yes; then
16055         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16056       else
16057         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16058       fi
16059       runpath_var='LD_RUN_PATH'
16060       hardcode_shlibpath_var_F77=no
16061       ;;
16062
16063     sysv5*)
16064       no_undefined_flag_F77=' -z text'
16065       # $CC -shared without GNU ld will not create a library from C++
16066       # object files and a static libstdc++, better avoid it by now
16067       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16068       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16069                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16070       hardcode_libdir_flag_spec_F77=
16071       hardcode_shlibpath_var_F77=no
16072       runpath_var='LD_RUN_PATH'
16073       ;;
16074
16075     uts4*)
16076       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077       hardcode_libdir_flag_spec_F77='-L$libdir'
16078       hardcode_shlibpath_var_F77=no
16079       ;;
16080
16081     *)
16082       ld_shlibs_F77=no
16083       ;;
16084     esac
16085   fi
16086
16087 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16088 echo "${ECHO_T}$ld_shlibs_F77" >&6
16089 test "$ld_shlibs_F77" = no && can_build_shared=no
16090
16091 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16092 if test "$GCC" = yes; then
16093   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16094 fi
16095
16096 #
16097 # Do we need to explicitly link libc?
16098 #
16099 case "x$archive_cmds_need_lc_F77" in
16100 x|xyes)
16101   # Assume -lc should be added
16102   archive_cmds_need_lc_F77=yes
16103
16104   if test "$enable_shared" = yes && test "$GCC" = yes; then
16105     case $archive_cmds_F77 in
16106     *'~'*)
16107       # FIXME: we may have to deal with multi-command sequences.
16108       ;;
16109     '$CC '*)
16110       # Test whether the compiler implicitly links with -lc since on some
16111       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16112       # to ld, don't add -lc before -lgcc.
16113       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16114 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16115       $rm conftest*
16116       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16117
16118       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16119   (eval $ac_compile) 2>&5
16120   ac_status=$?
16121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122   (exit $ac_status); } 2>conftest.err; then
16123         soname=conftest
16124         lib=conftest
16125         libobjs=conftest.$ac_objext
16126         deplibs=
16127         wl=$lt_prog_compiler_wl_F77
16128         compiler_flags=-v
16129         linker_flags=-v
16130         verstring=
16131         output_objdir=.
16132         libname=conftest
16133         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16134         allow_undefined_flag_F77=
16135         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16136   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16137   ac_status=$?
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); }
16140         then
16141           archive_cmds_need_lc_F77=no
16142         else
16143           archive_cmds_need_lc_F77=yes
16144         fi
16145         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16146       else
16147         cat conftest.err 1>&5
16148       fi
16149       $rm conftest*
16150       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16151 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16152       ;;
16153     esac
16154   fi
16155   ;;
16156 esac
16157
16158 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16159 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16160 library_names_spec=
16161 libname_spec='lib$name'
16162 soname_spec=
16163 shrext_cmds=".so"
16164 postinstall_cmds=
16165 postuninstall_cmds=
16166 finish_cmds=
16167 finish_eval=
16168 shlibpath_var=
16169 shlibpath_overrides_runpath=unknown
16170 version_type=none
16171 dynamic_linker="$host_os ld.so"
16172 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16173 if test "$GCC" = yes; then
16174   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16175   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16176     # if the path contains ";" then we assume it to be the separator
16177     # otherwise default to the standard path separator (i.e. ":") - it is
16178     # assumed that no part of a normal pathname contains ";" but that should
16179     # okay in the real world where ";" in dirpaths is itself problematic.
16180     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16181   else
16182     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16183   fi
16184 else
16185   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16186 fi
16187 need_lib_prefix=unknown
16188 hardcode_into_libs=no
16189
16190 # when you set need_version to no, make sure it does not cause -set_version
16191 # flags to be left without arguments
16192 need_version=unknown
16193
16194 case $host_os in
16195 aix3*)
16196   version_type=linux
16197   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16198   shlibpath_var=LIBPATH
16199
16200   # AIX 3 has no versioning support, so we append a major version to the name.
16201   soname_spec='${libname}${release}${shared_ext}$major'
16202   ;;
16203
16204 aix4* | aix5*)
16205   version_type=linux
16206   need_lib_prefix=no
16207   need_version=no
16208   hardcode_into_libs=yes
16209   if test "$host_cpu" = ia64; then
16210     # AIX 5 supports IA64
16211     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16212     shlibpath_var=LD_LIBRARY_PATH
16213   else
16214     # With GCC up to 2.95.x, collect2 would create an import file
16215     # for dependence libraries.  The import file would start with
16216     # the line `#! .'.  This would cause the generated library to
16217     # depend on `.', always an invalid library.  This was fixed in
16218     # development snapshots of GCC prior to 3.0.
16219     case $host_os in
16220       aix4 | aix4.[01] | aix4.[01].*)
16221       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16222            echo ' yes '
16223            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16224         :
16225       else
16226         can_build_shared=no
16227       fi
16228       ;;
16229     esac
16230     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16231     # soname into executable. Probably we can add versioning support to
16232     # collect2, so additional links can be useful in future.
16233     if test "$aix_use_runtimelinking" = yes; then
16234       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16235       # instead of lib<name>.a to let people know that these are not
16236       # typical AIX shared libraries.
16237       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238     else
16239       # We preserve .a as extension for shared libraries through AIX4.2
16240       # and later when we are not doing run time linking.
16241       library_names_spec='${libname}${release}.a $libname.a'
16242       soname_spec='${libname}${release}${shared_ext}$major'
16243     fi
16244     shlibpath_var=LIBPATH
16245   fi
16246   ;;
16247
16248 amigaos*)
16249   library_names_spec='$libname.ixlibrary $libname.a'
16250   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16251   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'
16252   ;;
16253
16254 beos*)
16255   library_names_spec='${libname}${shared_ext}'
16256   dynamic_linker="$host_os ld.so"
16257   shlibpath_var=LIBRARY_PATH
16258   ;;
16259
16260 bsdi[45]*)
16261   version_type=linux
16262   need_version=no
16263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264   soname_spec='${libname}${release}${shared_ext}$major'
16265   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16266   shlibpath_var=LD_LIBRARY_PATH
16267   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16268   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16269   # the default ld.so.conf also contains /usr/contrib/lib and
16270   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16271   # libtool to hard-code these into programs
16272   ;;
16273
16274 cygwin* | mingw* | pw32*)
16275   version_type=windows
16276   shrext_cmds=".dll"
16277   need_version=no
16278   need_lib_prefix=no
16279
16280   case $GCC,$host_os in
16281   yes,cygwin* | yes,mingw* | yes,pw32*)
16282     library_names_spec='$libname.dll.a'
16283     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16284     postinstall_cmds='base_file=`basename \${file}`~
16285       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16286       dldir=$destdir/`dirname \$dlpath`~
16287       test -d \$dldir || mkdir -p \$dldir~
16288       $install_prog $dir/$dlname \$dldir/$dlname'
16289     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16290       dlpath=$dir/\$dldll~
16291        $rm \$dlpath'
16292     shlibpath_overrides_runpath=yes
16293
16294     case $host_os in
16295     cygwin*)
16296       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16297       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16298       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16299       ;;
16300     mingw*)
16301       # MinGW DLLs use traditional 'lib' prefix
16302       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16303       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16304       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16305         # It is most probably a Windows format PATH printed by
16306         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16307         # path with ; separators, and with drive letters. We can handle the
16308         # drive letters (cygwin fileutils understands them), so leave them,
16309         # especially as we might pass files found there to a mingw objdump,
16310         # which wouldn't understand a cygwinified path. Ahh.
16311         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16312       else
16313         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16314       fi
16315       ;;
16316     pw32*)
16317       # pw32 DLLs use 'pw' prefix rather than 'lib'
16318       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16319       ;;
16320     esac
16321     ;;
16322
16323   *)
16324     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16325     ;;
16326   esac
16327   dynamic_linker='Win32 ld.exe'
16328   # FIXME: first we should search . and the directory the executable is in
16329   shlibpath_var=PATH
16330   ;;
16331
16332 darwin* | rhapsody*)
16333   dynamic_linker="$host_os dyld"
16334   version_type=darwin
16335   need_lib_prefix=no
16336   need_version=no
16337   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16338   soname_spec='${libname}${release}${major}$shared_ext'
16339   shlibpath_overrides_runpath=yes
16340   shlibpath_var=DYLD_LIBRARY_PATH
16341   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16342   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16343   if test "$GCC" = yes; then
16344     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"`
16345   else
16346     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16347   fi
16348   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16349   ;;
16350
16351 dgux*)
16352   version_type=linux
16353   need_lib_prefix=no
16354   need_version=no
16355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16356   soname_spec='${libname}${release}${shared_ext}$major'
16357   shlibpath_var=LD_LIBRARY_PATH
16358   ;;
16359
16360 freebsd1*)
16361   dynamic_linker=no
16362   ;;
16363
16364 kfreebsd*-gnu)
16365   version_type=linux
16366   need_lib_prefix=no
16367   need_version=no
16368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16369   soname_spec='${libname}${release}${shared_ext}$major'
16370   shlibpath_var=LD_LIBRARY_PATH
16371   shlibpath_overrides_runpath=no
16372   hardcode_into_libs=yes
16373   dynamic_linker='GNU ld.so'
16374   ;;
16375
16376 freebsd*)
16377   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16378   version_type=freebsd-$objformat
16379   case $version_type in
16380     freebsd-elf*)
16381       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16382       need_version=no
16383       need_lib_prefix=no
16384       ;;
16385     freebsd-*)
16386       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16387       need_version=yes
16388       ;;
16389   esac
16390   shlibpath_var=LD_LIBRARY_PATH
16391   case $host_os in
16392   freebsd2*)
16393     shlibpath_overrides_runpath=yes
16394     ;;
16395   freebsd3.01* | freebsdelf3.01*)
16396     shlibpath_overrides_runpath=yes
16397     hardcode_into_libs=yes
16398     ;;
16399   *) # from 3.2 on
16400     shlibpath_overrides_runpath=no
16401     hardcode_into_libs=yes
16402     ;;
16403   esac
16404   ;;
16405
16406 gnu*)
16407   version_type=linux
16408   need_lib_prefix=no
16409   need_version=no
16410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16411   soname_spec='${libname}${release}${shared_ext}$major'
16412   shlibpath_var=LD_LIBRARY_PATH
16413   hardcode_into_libs=yes
16414   ;;
16415
16416 hpux9* | hpux10* | hpux11*)
16417   # Give a soname corresponding to the major version so that dld.sl refuses to
16418   # link against other versions.
16419   version_type=sunos
16420   need_lib_prefix=no
16421   need_version=no
16422   case "$host_cpu" in
16423   ia64*)
16424     shrext_cmds='.so'
16425     hardcode_into_libs=yes
16426     dynamic_linker="$host_os dld.so"
16427     shlibpath_var=LD_LIBRARY_PATH
16428     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16430     soname_spec='${libname}${release}${shared_ext}$major'
16431     if test "X$HPUX_IA64_MODE" = X32; then
16432       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16433     else
16434       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16435     fi
16436     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16437     ;;
16438    hppa*64*)
16439      shrext_cmds='.sl'
16440      hardcode_into_libs=yes
16441      dynamic_linker="$host_os dld.sl"
16442      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16443      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16444      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16445      soname_spec='${libname}${release}${shared_ext}$major'
16446      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16447      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16448      ;;
16449    *)
16450     shrext_cmds='.sl'
16451     dynamic_linker="$host_os dld.sl"
16452     shlibpath_var=SHLIB_PATH
16453     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16455     soname_spec='${libname}${release}${shared_ext}$major'
16456     ;;
16457   esac
16458   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16459   postinstall_cmds='chmod 555 $lib'
16460   ;;
16461
16462 irix5* | irix6* | nonstopux*)
16463   case $host_os in
16464     nonstopux*) version_type=nonstopux ;;
16465     *)
16466         if test "$lt_cv_prog_gnu_ld" = yes; then
16467                 version_type=linux
16468         else
16469                 version_type=irix
16470         fi ;;
16471   esac
16472   need_lib_prefix=no
16473   need_version=no
16474   soname_spec='${libname}${release}${shared_ext}$major'
16475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16476   case $host_os in
16477   irix5* | nonstopux*)
16478     libsuff= shlibsuff=
16479     ;;
16480   *)
16481     case $LD in # libtool.m4 will add one of these switches to LD
16482     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16483       libsuff= shlibsuff= libmagic=32-bit;;
16484     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16485       libsuff=32 shlibsuff=N32 libmagic=N32;;
16486     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16487       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16488     *) libsuff= shlibsuff= libmagic=never-match;;
16489     esac
16490     ;;
16491   esac
16492   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16493   shlibpath_overrides_runpath=no
16494   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16495   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16496   hardcode_into_libs=yes
16497   ;;
16498
16499 # No shared lib support for Linux oldld, aout, or coff.
16500 linux*oldld* | linux*aout* | linux*coff*)
16501   dynamic_linker=no
16502   ;;
16503
16504 # This must be Linux ELF.
16505 linux*)
16506   version_type=linux
16507   need_lib_prefix=no
16508   need_version=no
16509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16510   soname_spec='${libname}${release}${shared_ext}$major'
16511   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16512   shlibpath_var=LD_LIBRARY_PATH
16513   shlibpath_overrides_runpath=no
16514   # This implies no fast_install, which is unacceptable.
16515   # Some rework will be needed to allow for fast_install
16516   # before this can be enabled.
16517   hardcode_into_libs=yes
16518
16519   # Append ld.so.conf contents to the search path
16520   if test -f /etc/ld.so.conf; then
16521     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16522     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16523   fi
16524
16525   # We used to test for /lib/ld.so.1 and disable shared libraries on
16526   # powerpc, because MkLinux only supported shared libraries with the
16527   # GNU dynamic linker.  Since this was broken with cross compilers,
16528   # most powerpc-linux boxes support dynamic linking these days and
16529   # people can always --disable-shared, the test was removed, and we
16530   # assume the GNU/Linux dynamic linker is in use.
16531   dynamic_linker='GNU/Linux ld.so'
16532   ;;
16533
16534 knetbsd*-gnu)
16535   version_type=linux
16536   need_lib_prefix=no
16537   need_version=no
16538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16539   soname_spec='${libname}${release}${shared_ext}$major'
16540   shlibpath_var=LD_LIBRARY_PATH
16541   shlibpath_overrides_runpath=no
16542   hardcode_into_libs=yes
16543   dynamic_linker='GNU ld.so'
16544   ;;
16545
16546 netbsd*)
16547   version_type=sunos
16548   need_lib_prefix=no
16549   need_version=no
16550   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16552     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16553     dynamic_linker='NetBSD (a.out) ld.so'
16554   else
16555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16556     soname_spec='${libname}${release}${shared_ext}$major'
16557     dynamic_linker='NetBSD ld.elf_so'
16558   fi
16559   shlibpath_var=LD_LIBRARY_PATH
16560   shlibpath_overrides_runpath=yes
16561   hardcode_into_libs=yes
16562   ;;
16563
16564 newsos6)
16565   version_type=linux
16566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567   shlibpath_var=LD_LIBRARY_PATH
16568   shlibpath_overrides_runpath=yes
16569   ;;
16570
16571 nto-qnx*)
16572   version_type=linux
16573   need_lib_prefix=no
16574   need_version=no
16575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16576   soname_spec='${libname}${release}${shared_ext}$major'
16577   shlibpath_var=LD_LIBRARY_PATH
16578   shlibpath_overrides_runpath=yes
16579   ;;
16580
16581 openbsd*)
16582   version_type=sunos
16583   need_lib_prefix=no
16584   need_version=no
16585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16586   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16587   shlibpath_var=LD_LIBRARY_PATH
16588   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16589     case $host_os in
16590       openbsd2.[89] | openbsd2.[89].*)
16591         shlibpath_overrides_runpath=no
16592         ;;
16593       *)
16594         shlibpath_overrides_runpath=yes
16595         ;;
16596       esac
16597   else
16598     shlibpath_overrides_runpath=yes
16599   fi
16600   ;;
16601
16602 os2*)
16603   libname_spec='$name'
16604   shrext_cmds=".dll"
16605   need_lib_prefix=no
16606   library_names_spec='$libname${shared_ext} $libname.a'
16607   dynamic_linker='OS/2 ld.exe'
16608   shlibpath_var=LIBPATH
16609   ;;
16610
16611 osf3* | osf4* | osf5*)
16612   version_type=osf
16613   need_lib_prefix=no
16614   need_version=no
16615   soname_spec='${libname}${release}${shared_ext}$major'
16616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16617   shlibpath_var=LD_LIBRARY_PATH
16618   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16619   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16620   ;;
16621
16622 sco3.2v5*)
16623   version_type=osf
16624   soname_spec='${libname}${release}${shared_ext}$major'
16625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16626   shlibpath_var=LD_LIBRARY_PATH
16627   ;;
16628
16629 solaris*)
16630   version_type=linux
16631   need_lib_prefix=no
16632   need_version=no
16633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634   soname_spec='${libname}${release}${shared_ext}$major'
16635   shlibpath_var=LD_LIBRARY_PATH
16636   shlibpath_overrides_runpath=yes
16637   hardcode_into_libs=yes
16638   # ldd complains unless libraries are executable
16639   postinstall_cmds='chmod +x $lib'
16640   ;;
16641
16642 sunos4*)
16643   version_type=sunos
16644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16645   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16646   shlibpath_var=LD_LIBRARY_PATH
16647   shlibpath_overrides_runpath=yes
16648   if test "$with_gnu_ld" = yes; then
16649     need_lib_prefix=no
16650   fi
16651   need_version=yes
16652   ;;
16653
16654 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16655   version_type=linux
16656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16657   soname_spec='${libname}${release}${shared_ext}$major'
16658   shlibpath_var=LD_LIBRARY_PATH
16659   case $host_vendor in
16660     sni)
16661       shlibpath_overrides_runpath=no
16662       need_lib_prefix=no
16663       export_dynamic_flag_spec='${wl}-Blargedynsym'
16664       runpath_var=LD_RUN_PATH
16665       ;;
16666     siemens)
16667       need_lib_prefix=no
16668       ;;
16669     motorola)
16670       need_lib_prefix=no
16671       need_version=no
16672       shlibpath_overrides_runpath=no
16673       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16674       ;;
16675   esac
16676   ;;
16677
16678 sysv4*MP*)
16679   if test -d /usr/nec ;then
16680     version_type=linux
16681     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16682     soname_spec='$libname${shared_ext}.$major'
16683     shlibpath_var=LD_LIBRARY_PATH
16684   fi
16685   ;;
16686
16687 uts4*)
16688   version_type=linux
16689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690   soname_spec='${libname}${release}${shared_ext}$major'
16691   shlibpath_var=LD_LIBRARY_PATH
16692   ;;
16693
16694 *)
16695   dynamic_linker=no
16696   ;;
16697 esac
16698 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16699 echo "${ECHO_T}$dynamic_linker" >&6
16700 test "$dynamic_linker" = no && can_build_shared=no
16701
16702 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16703 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16704 hardcode_action_F77=
16705 if test -n "$hardcode_libdir_flag_spec_F77" || \
16706    test -n "$runpath_var_F77" || \
16707    test "X$hardcode_automatic_F77" = "Xyes" ; then
16708
16709   # We can hardcode non-existant directories.
16710   if test "$hardcode_direct_F77" != no &&
16711      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16712      # have to relink, otherwise we might link with an installed library
16713      # when we should be linking with a yet-to-be-installed one
16714      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16715      test "$hardcode_minus_L_F77" != no; then
16716     # Linking always hardcodes the temporary library directory.
16717     hardcode_action_F77=relink
16718   else
16719     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16720     hardcode_action_F77=immediate
16721   fi
16722 else
16723   # We cannot hardcode anything, or else we can only hardcode existing
16724   # directories.
16725   hardcode_action_F77=unsupported
16726 fi
16727 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16728 echo "${ECHO_T}$hardcode_action_F77" >&6
16729
16730 if test "$hardcode_action_F77" = relink; then
16731   # Fast installation is not supported
16732   enable_fast_install=no
16733 elif test "$shlibpath_overrides_runpath" = yes ||
16734      test "$enable_shared" = no; then
16735   # Fast installation is not necessary
16736   enable_fast_install=needless
16737 fi
16738
16739 striplib=
16740 old_striplib=
16741 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16742 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16743 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16744   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16745   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16746   echo "$as_me:$LINENO: result: yes" >&5
16747 echo "${ECHO_T}yes" >&6
16748 else
16749 # FIXME - insert some real tests, host_os isn't really good enough
16750   case $host_os in
16751    darwin*)
16752        if test -n "$STRIP" ; then
16753          striplib="$STRIP -x"
16754          echo "$as_me:$LINENO: result: yes" >&5
16755 echo "${ECHO_T}yes" >&6
16756        else
16757   echo "$as_me:$LINENO: result: no" >&5
16758 echo "${ECHO_T}no" >&6
16759 fi
16760        ;;
16761    *)
16762   echo "$as_me:$LINENO: result: no" >&5
16763 echo "${ECHO_T}no" >&6
16764     ;;
16765   esac
16766 fi
16767
16768
16769
16770 # The else clause should only fire when bootstrapping the
16771 # libtool distribution, otherwise you forgot to ship ltmain.sh
16772 # with your package, and you will get complaints that there are
16773 # no rules to generate ltmain.sh.
16774 if test -f "$ltmain"; then
16775   # See if we are running on zsh, and set the options which allow our commands through
16776   # without removal of \ escapes.
16777   if test -n "${ZSH_VERSION+set}" ; then
16778     setopt NO_GLOB_SUBST
16779   fi
16780   # Now quote all the things that may contain metacharacters while being
16781   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16782   # variables and quote the copies for generation of the libtool script.
16783   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16784     SED SHELL STRIP \
16785     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16786     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16787     deplibs_check_method reload_flag reload_cmds need_locks \
16788     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16789     lt_cv_sys_global_symbol_to_c_name_address \
16790     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16791     old_postinstall_cmds old_postuninstall_cmds \
16792     compiler_F77 \
16793     CC_F77 \
16794     LD_F77 \
16795     lt_prog_compiler_wl_F77 \
16796     lt_prog_compiler_pic_F77 \
16797     lt_prog_compiler_static_F77 \
16798     lt_prog_compiler_no_builtin_flag_F77 \
16799     export_dynamic_flag_spec_F77 \
16800     thread_safe_flag_spec_F77 \
16801     whole_archive_flag_spec_F77 \
16802     enable_shared_with_static_runtimes_F77 \
16803     old_archive_cmds_F77 \
16804     old_archive_from_new_cmds_F77 \
16805     predep_objects_F77 \
16806     postdep_objects_F77 \
16807     predeps_F77 \
16808     postdeps_F77 \
16809     compiler_lib_search_path_F77 \
16810     archive_cmds_F77 \
16811     archive_expsym_cmds_F77 \
16812     postinstall_cmds_F77 \
16813     postuninstall_cmds_F77 \
16814     old_archive_from_expsyms_cmds_F77 \
16815     allow_undefined_flag_F77 \
16816     no_undefined_flag_F77 \
16817     export_symbols_cmds_F77 \
16818     hardcode_libdir_flag_spec_F77 \
16819     hardcode_libdir_flag_spec_ld_F77 \
16820     hardcode_libdir_separator_F77 \
16821     hardcode_automatic_F77 \
16822     module_cmds_F77 \
16823     module_expsym_cmds_F77 \
16824     lt_cv_prog_compiler_c_o_F77 \
16825     exclude_expsyms_F77 \
16826     include_expsyms_F77; do
16827
16828     case $var in
16829     old_archive_cmds_F77 | \
16830     old_archive_from_new_cmds_F77 | \
16831     archive_cmds_F77 | \
16832     archive_expsym_cmds_F77 | \
16833     module_cmds_F77 | \
16834     module_expsym_cmds_F77 | \
16835     old_archive_from_expsyms_cmds_F77 | \
16836     export_symbols_cmds_F77 | \
16837     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16838     postinstall_cmds | postuninstall_cmds | \
16839     old_postinstall_cmds | old_postuninstall_cmds | \
16840     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16841       # Double-quote double-evaled strings.
16842       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16843       ;;
16844     *)
16845       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16846       ;;
16847     esac
16848   done
16849
16850   case $lt_echo in
16851   *'\$0 --fallback-echo"')
16852     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16853     ;;
16854   esac
16855
16856 cfgfile="$ofile"
16857
16858   cat <<__EOF__ >> "$cfgfile"
16859 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16860
16861 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16862
16863 # Shell to use when invoking shell scripts.
16864 SHELL=$lt_SHELL
16865
16866 # Whether or not to build shared libraries.
16867 build_libtool_libs=$enable_shared
16868
16869 # Whether or not to build static libraries.
16870 build_old_libs=$enable_static
16871
16872 # Whether or not to add -lc for building shared libraries.
16873 build_libtool_need_lc=$archive_cmds_need_lc_F77
16874
16875 # Whether or not to disallow shared libs when runtime libs are static
16876 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16877
16878 # Whether or not to optimize for fast installation.
16879 fast_install=$enable_fast_install
16880
16881 # The host system.
16882 host_alias=$host_alias
16883 host=$host
16884
16885 # An echo program that does not interpret backslashes.
16886 echo=$lt_echo
16887
16888 # The archiver.
16889 AR=$lt_AR
16890 AR_FLAGS=$lt_AR_FLAGS
16891
16892 # A C compiler.
16893 LTCC=$lt_LTCC
16894
16895 # A language-specific compiler.
16896 CC=$lt_compiler_F77
16897
16898 # Is the compiler the GNU C compiler?
16899 with_gcc=$GCC_F77
16900
16901 # An ERE matcher.
16902 EGREP=$lt_EGREP
16903
16904 # The linker used to build libraries.
16905 LD=$lt_LD_F77
16906
16907 # Whether we need hard or soft links.
16908 LN_S=$lt_LN_S
16909
16910 # A BSD-compatible nm program.
16911 NM=$lt_NM
16912
16913 # A symbol stripping program
16914 STRIP=$lt_STRIP
16915
16916 # Used to examine libraries when file_magic_cmd begins "file"
16917 MAGIC_CMD=$MAGIC_CMD
16918
16919 # Used on cygwin: DLL creation program.
16920 DLLTOOL="$DLLTOOL"
16921
16922 # Used on cygwin: object dumper.
16923 OBJDUMP="$OBJDUMP"
16924
16925 # Used on cygwin: assembler.
16926 AS="$AS"
16927
16928 # The name of the directory that contains temporary libtool files.
16929 objdir=$objdir
16930
16931 # How to create reloadable object files.
16932 reload_flag=$lt_reload_flag
16933 reload_cmds=$lt_reload_cmds
16934
16935 # How to pass a linker flag through the compiler.
16936 wl=$lt_lt_prog_compiler_wl_F77
16937
16938 # Object file suffix (normally "o").
16939 objext="$ac_objext"
16940
16941 # Old archive suffix (normally "a").
16942 libext="$libext"
16943
16944 # Shared library suffix (normally ".so").
16945 shrext_cmds='$shrext_cmds'
16946
16947 # Executable file suffix (normally "").
16948 exeext="$exeext"
16949
16950 # Additional compiler flags for building library objects.
16951 pic_flag=$lt_lt_prog_compiler_pic_F77
16952 pic_mode=$pic_mode
16953
16954 # What is the maximum length of a command?
16955 max_cmd_len=$lt_cv_sys_max_cmd_len
16956
16957 # Does compiler simultaneously support -c and -o options?
16958 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16959
16960 # Must we lock files when doing compilation ?
16961 need_locks=$lt_need_locks
16962
16963 # Do we need the lib prefix for modules?
16964 need_lib_prefix=$need_lib_prefix
16965
16966 # Do we need a version for libraries?
16967 need_version=$need_version
16968
16969 # Whether dlopen is supported.
16970 dlopen_support=$enable_dlopen
16971
16972 # Whether dlopen of programs is supported.
16973 dlopen_self=$enable_dlopen_self
16974
16975 # Whether dlopen of statically linked programs is supported.
16976 dlopen_self_static=$enable_dlopen_self_static
16977
16978 # Compiler flag to prevent dynamic linking.
16979 link_static_flag=$lt_lt_prog_compiler_static_F77
16980
16981 # Compiler flag to turn off builtin functions.
16982 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16983
16984 # Compiler flag to allow reflexive dlopens.
16985 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16986
16987 # Compiler flag to generate shared objects directly from archives.
16988 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16989
16990 # Compiler flag to generate thread-safe objects.
16991 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16992
16993 # Library versioning type.
16994 version_type=$version_type
16995
16996 # Format of library name prefix.
16997 libname_spec=$lt_libname_spec
16998
16999 # List of archive names.  First name is the real one, the rest are links.
17000 # The last name is the one that the linker finds with -lNAME.
17001 library_names_spec=$lt_library_names_spec
17002
17003 # The coded name of the library, if different from the real name.
17004 soname_spec=$lt_soname_spec
17005
17006 # Commands used to build and install an old-style archive.
17007 RANLIB=$lt_RANLIB
17008 old_archive_cmds=$lt_old_archive_cmds_F77
17009 old_postinstall_cmds=$lt_old_postinstall_cmds
17010 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17011
17012 # Create an old-style archive from a shared archive.
17013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17014
17015 # Create a temporary old-style archive to link instead of a shared archive.
17016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17017
17018 # Commands used to build and install a shared archive.
17019 archive_cmds=$lt_archive_cmds_F77
17020 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17021 postinstall_cmds=$lt_postinstall_cmds
17022 postuninstall_cmds=$lt_postuninstall_cmds
17023
17024 # Commands used to build a loadable module (assumed same as above if empty)
17025 module_cmds=$lt_module_cmds_F77
17026 module_expsym_cmds=$lt_module_expsym_cmds_F77
17027
17028 # Commands to strip libraries.
17029 old_striplib=$lt_old_striplib
17030 striplib=$lt_striplib
17031
17032 # Dependencies to place before the objects being linked to create a
17033 # shared library.
17034 predep_objects=$lt_predep_objects_F77
17035
17036 # Dependencies to place after the objects being linked to create a
17037 # shared library.
17038 postdep_objects=$lt_postdep_objects_F77
17039
17040 # Dependencies to place before the objects being linked to create a
17041 # shared library.
17042 predeps=$lt_predeps_F77
17043
17044 # Dependencies to place after the objects being linked to create a
17045 # shared library.
17046 postdeps=$lt_postdeps_F77
17047
17048 # The library search path used internally by the compiler when linking
17049 # a shared library.
17050 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17051
17052 # Method to check whether dependent libraries are shared objects.
17053 deplibs_check_method=$lt_deplibs_check_method
17054
17055 # Command to use when deplibs_check_method == file_magic.
17056 file_magic_cmd=$lt_file_magic_cmd
17057
17058 # Flag that allows shared libraries with undefined symbols to be built.
17059 allow_undefined_flag=$lt_allow_undefined_flag_F77
17060
17061 # Flag that forces no undefined symbols.
17062 no_undefined_flag=$lt_no_undefined_flag_F77
17063
17064 # Commands used to finish a libtool library installation in a directory.
17065 finish_cmds=$lt_finish_cmds
17066
17067 # Same as above, but a single script fragment to be evaled but not shown.
17068 finish_eval=$lt_finish_eval
17069
17070 # Take the output of nm and produce a listing of raw symbols and C names.
17071 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17072
17073 # Transform the output of nm in a proper C declaration
17074 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17075
17076 # Transform the output of nm in a C name address pair
17077 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17078
17079 # This is the shared library runtime path variable.
17080 runpath_var=$runpath_var
17081
17082 # This is the shared library path variable.
17083 shlibpath_var=$shlibpath_var
17084
17085 # Is shlibpath searched before the hard-coded library search path?
17086 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17087
17088 # How to hardcode a shared library path into an executable.
17089 hardcode_action=$hardcode_action_F77
17090
17091 # Whether we should hardcode library paths into libraries.
17092 hardcode_into_libs=$hardcode_into_libs
17093
17094 # Flag to hardcode \$libdir into a binary during linking.
17095 # This must work even if \$libdir does not exist.
17096 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17097
17098 # If ld is used when linking, flag to hardcode \$libdir into
17099 # a binary during linking. This must work even if \$libdir does
17100 # not exist.
17101 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17102
17103 # Whether we need a single -rpath flag with a separated argument.
17104 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17105
17106 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17107 # resulting binary.
17108 hardcode_direct=$hardcode_direct_F77
17109
17110 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17111 # resulting binary.
17112 hardcode_minus_L=$hardcode_minus_L_F77
17113
17114 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17115 # the resulting binary.
17116 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17117
17118 # Set to yes if building a shared library automatically hardcodes DIR into the library
17119 # and all subsequent libraries and executables linked against it.
17120 hardcode_automatic=$hardcode_automatic_F77
17121
17122 # Variables whose values should be saved in libtool wrapper scripts and
17123 # restored at relink time.
17124 variables_saved_for_relink="$variables_saved_for_relink"
17125
17126 # Whether libtool must link a program against all its dependency libraries.
17127 link_all_deplibs=$link_all_deplibs_F77
17128
17129 # Compile-time system search path for libraries
17130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17131
17132 # Run-time system search path for libraries
17133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17134
17135 # Fix the shell variable \$srcfile for the compiler.
17136 fix_srcfile_path="$fix_srcfile_path_F77"
17137
17138 # Set to yes if exported symbols are required.
17139 always_export_symbols=$always_export_symbols_F77
17140
17141 # The commands to list exported symbols.
17142 export_symbols_cmds=$lt_export_symbols_cmds_F77
17143
17144 # The commands to extract the exported symbol list from a shared archive.
17145 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17146
17147 # Symbols that should not be listed in the preloaded symbols.
17148 exclude_expsyms=$lt_exclude_expsyms_F77
17149
17150 # Symbols that must always be exported.
17151 include_expsyms=$lt_include_expsyms_F77
17152
17153 # ### END LIBTOOL TAG CONFIG: $tagname
17154
17155 __EOF__
17156
17157
17158 else
17159   # If there is no Makefile yet, we rely on a make rule to execute
17160   # `config.status --recheck' to rerun these tests and create the
17161   # libtool script then.
17162   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17163   if test -f "$ltmain_in"; then
17164     test -f Makefile && make "$ltmain"
17165   fi
17166 fi
17167
17168
17169 ac_ext=c
17170 ac_cpp='$CPP $CPPFLAGS'
17171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17174
17175 CC="$lt_save_CC"
17176
17177         else
17178           tagname=""
17179         fi
17180         ;;
17181
17182       GCJ)
17183         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17184           ac_ext=c
17185 ac_cpp='$CPP $CPPFLAGS'
17186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17189
17190
17191 # Source file extension for Java test sources.
17192 ac_ext=java
17193
17194 # Object file extension for compiled Java test sources.
17195 objext=o
17196 objext_GCJ=$objext
17197
17198 # Code to be used in simple compile tests
17199 lt_simple_compile_test_code="class foo {}\n"
17200
17201 # Code to be used in simple link tests
17202 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17203
17204 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17205
17206 # If no C compiler was specified, use CC.
17207 LTCC=${LTCC-"$CC"}
17208
17209 # Allow CC to be a program name with arguments.
17210 compiler=$CC
17211
17212
17213 # Allow CC to be a program name with arguments.
17214 lt_save_CC="$CC"
17215 CC=${GCJ-"gcj"}
17216 compiler=$CC
17217 compiler_GCJ=$CC
17218
17219 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17220 archive_cmds_need_lc_GCJ=no
17221
17222
17223 lt_prog_compiler_no_builtin_flag_GCJ=
17224
17225 if test "$GCC" = yes; then
17226   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17227
17228
17229 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17230 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17231 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17232   echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234   lt_cv_prog_compiler_rtti_exceptions=no
17235   ac_outfile=conftest.$ac_objext
17236    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17237    lt_compiler_flag="-fno-rtti -fno-exceptions"
17238    # Insert the option either (1) after the last *FLAGS variable, or
17239    # (2) before a word containing "conftest.", or (3) at the end.
17240    # Note that $ac_compile itself does not contain backslashes and begins
17241    # with a dollar sign (not a hyphen), so the echo should work correctly.
17242    # The option is referenced via a variable to avoid confusing sed.
17243    lt_compile=`echo "$ac_compile" | $SED \
17244    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17245    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17246    -e 's:$: $lt_compiler_flag:'`
17247    (eval echo "\"\$as_me:17247: $lt_compile\"" >&5)
17248    (eval "$lt_compile" 2>conftest.err)
17249    ac_status=$?
17250    cat conftest.err >&5
17251    echo "$as_me:17251: \$? = $ac_status" >&5
17252    if (exit $ac_status) && test -s "$ac_outfile"; then
17253      # The compiler can only warn and ignore the option if not recognized
17254      # So say no if there are warnings
17255      if test ! -s conftest.err; then
17256        lt_cv_prog_compiler_rtti_exceptions=yes
17257      fi
17258    fi
17259    $rm conftest*
17260
17261 fi
17262 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17263 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17264
17265 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17266     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17267 else
17268     :
17269 fi
17270
17271 fi
17272
17273 lt_prog_compiler_wl_GCJ=
17274 lt_prog_compiler_pic_GCJ=
17275 lt_prog_compiler_static_GCJ=
17276
17277 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17278 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17279
17280   if test "$GCC" = yes; then
17281     lt_prog_compiler_wl_GCJ='-Wl,'
17282     lt_prog_compiler_static_GCJ='-static'
17283
17284     case $host_os in
17285       aix*)
17286       # All AIX code is PIC.
17287       if test "$host_cpu" = ia64; then
17288         # AIX 5 now supports IA64 processor
17289         lt_prog_compiler_static_GCJ='-Bstatic'
17290       fi
17291       ;;
17292
17293     amigaos*)
17294       # FIXME: we need at least 68020 code to build shared libraries, but
17295       # adding the `-m68020' flag to GCC prevents building anything better,
17296       # like `-m68040'.
17297       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17298       ;;
17299
17300     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17301       # PIC is the default for these OSes.
17302       ;;
17303
17304     mingw* | pw32* | os2*)
17305       # This hack is so that the source file can tell whether it is being
17306       # built for inclusion in a dll (and should export symbols for example).
17307       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17308       ;;
17309
17310     darwin* | rhapsody*)
17311       # PIC is the default on this platform
17312       # Common symbols not allowed in MH_DYLIB files
17313       lt_prog_compiler_pic_GCJ='-fno-common'
17314       ;;
17315
17316     msdosdjgpp*)
17317       # Just because we use GCC doesn't mean we suddenly get shared libraries
17318       # on systems that don't support them.
17319       lt_prog_compiler_can_build_shared_GCJ=no
17320       enable_shared=no
17321       ;;
17322
17323     sysv4*MP*)
17324       if test -d /usr/nec; then
17325         lt_prog_compiler_pic_GCJ=-Kconform_pic
17326       fi
17327       ;;
17328
17329     hpux*)
17330       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17331       # not for PA HP-UX.
17332       case "$host_cpu" in
17333       hppa*64*|ia64*)
17334         # +Z the default
17335         ;;
17336       *)
17337         lt_prog_compiler_pic_GCJ='-fPIC'
17338         ;;
17339       esac
17340       ;;
17341
17342     *)
17343       lt_prog_compiler_pic_GCJ='-fPIC'
17344       ;;
17345     esac
17346   else
17347     # PORTME Check for flag to pass linker flags through the system compiler.
17348     case $host_os in
17349     aix*)
17350       lt_prog_compiler_wl_GCJ='-Wl,'
17351       if test "$host_cpu" = ia64; then
17352         # AIX 5 now supports IA64 processor
17353         lt_prog_compiler_static_GCJ='-Bstatic'
17354       else
17355         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17356       fi
17357       ;;
17358       darwin*)
17359         # PIC is the default on this platform
17360         # Common symbols not allowed in MH_DYLIB files
17361        case "$cc_basename" in
17362          xlc*)
17363          lt_prog_compiler_pic_GCJ='-qnocommon'
17364          lt_prog_compiler_wl_GCJ='-Wl,'
17365          ;;
17366        esac
17367        ;;
17368
17369     mingw* | pw32* | os2*)
17370       # This hack is so that the source file can tell whether it is being
17371       # built for inclusion in a dll (and should export symbols for example).
17372       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17373       ;;
17374
17375     hpux9* | hpux10* | hpux11*)
17376       lt_prog_compiler_wl_GCJ='-Wl,'
17377       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17378       # not for PA HP-UX.
17379       case "$host_cpu" in
17380       hppa*64*|ia64*)
17381         # +Z the default
17382         ;;
17383       *)
17384         lt_prog_compiler_pic_GCJ='+Z'
17385         ;;
17386       esac
17387       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17388       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17389       ;;
17390
17391     irix5* | irix6* | nonstopux*)
17392       lt_prog_compiler_wl_GCJ='-Wl,'
17393       # PIC (with -KPIC) is the default.
17394       lt_prog_compiler_static_GCJ='-non_shared'
17395       ;;
17396
17397     newsos6)
17398       lt_prog_compiler_pic_GCJ='-KPIC'
17399       lt_prog_compiler_static_GCJ='-Bstatic'
17400       ;;
17401
17402     linux*)
17403       case $CC in
17404       icc* | ecc*)
17405         lt_prog_compiler_wl_GCJ='-Wl,'
17406         lt_prog_compiler_pic_GCJ='-KPIC'
17407         lt_prog_compiler_static_GCJ='-static'
17408         ;;
17409       ccc*)
17410         lt_prog_compiler_wl_GCJ='-Wl,'
17411         # All Alpha code is PIC.
17412         lt_prog_compiler_static_GCJ='-non_shared'
17413         ;;
17414       esac
17415       ;;
17416
17417     osf3* | osf4* | osf5*)
17418       lt_prog_compiler_wl_GCJ='-Wl,'
17419       # All OSF/1 code is PIC.
17420       lt_prog_compiler_static_GCJ='-non_shared'
17421       ;;
17422
17423     sco3.2v5*)
17424       lt_prog_compiler_pic_GCJ='-Kpic'
17425       lt_prog_compiler_static_GCJ='-dn'
17426       ;;
17427
17428     solaris*)
17429       lt_prog_compiler_wl_GCJ='-Wl,'
17430       lt_prog_compiler_pic_GCJ='-KPIC'
17431       lt_prog_compiler_static_GCJ='-Bstatic'
17432       ;;
17433
17434     sunos4*)
17435       lt_prog_compiler_wl_GCJ='-Qoption ld '
17436       lt_prog_compiler_pic_GCJ='-PIC'
17437       lt_prog_compiler_static_GCJ='-Bstatic'
17438       ;;
17439
17440     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17441       lt_prog_compiler_wl_GCJ='-Wl,'
17442       lt_prog_compiler_pic_GCJ='-KPIC'
17443       lt_prog_compiler_static_GCJ='-Bstatic'
17444       ;;
17445
17446     sysv4*MP*)
17447       if test -d /usr/nec ;then
17448         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17449         lt_prog_compiler_static_GCJ='-Bstatic'
17450       fi
17451       ;;
17452
17453     uts4*)
17454       lt_prog_compiler_pic_GCJ='-pic'
17455       lt_prog_compiler_static_GCJ='-Bstatic'
17456       ;;
17457
17458     *)
17459       lt_prog_compiler_can_build_shared_GCJ=no
17460       ;;
17461     esac
17462   fi
17463
17464 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17465 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17466
17467 #
17468 # Check to make sure the PIC flag actually works.
17469 #
17470 if test -n "$lt_prog_compiler_pic_GCJ"; then
17471
17472 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17473 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17474 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17475   echo $ECHO_N "(cached) $ECHO_C" >&6
17476 else
17477   lt_prog_compiler_pic_works_GCJ=no
17478   ac_outfile=conftest.$ac_objext
17479    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17480    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17481    # Insert the option either (1) after the last *FLAGS variable, or
17482    # (2) before a word containing "conftest.", or (3) at the end.
17483    # Note that $ac_compile itself does not contain backslashes and begins
17484    # with a dollar sign (not a hyphen), so the echo should work correctly.
17485    # The option is referenced via a variable to avoid confusing sed.
17486    lt_compile=`echo "$ac_compile" | $SED \
17487    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17488    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17489    -e 's:$: $lt_compiler_flag:'`
17490    (eval echo "\"\$as_me:17490: $lt_compile\"" >&5)
17491    (eval "$lt_compile" 2>conftest.err)
17492    ac_status=$?
17493    cat conftest.err >&5
17494    echo "$as_me:17494: \$? = $ac_status" >&5
17495    if (exit $ac_status) && test -s "$ac_outfile"; then
17496      # The compiler can only warn and ignore the option if not recognized
17497      # So say no if there are warnings
17498      if test ! -s conftest.err; then
17499        lt_prog_compiler_pic_works_GCJ=yes
17500      fi
17501    fi
17502    $rm conftest*
17503
17504 fi
17505 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17506 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17507
17508 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17509     case $lt_prog_compiler_pic_GCJ in
17510      "" | " "*) ;;
17511      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17512      esac
17513 else
17514     lt_prog_compiler_pic_GCJ=
17515      lt_prog_compiler_can_build_shared_GCJ=no
17516 fi
17517
17518 fi
17519 case "$host_os" in
17520   # For platforms which do not support PIC, -DPIC is meaningless:
17521   *djgpp*)
17522     lt_prog_compiler_pic_GCJ=
17523     ;;
17524   *)
17525     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17526     ;;
17527 esac
17528
17529 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17530 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17531 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17532   echo $ECHO_N "(cached) $ECHO_C" >&6
17533 else
17534   lt_cv_prog_compiler_c_o_GCJ=no
17535    $rm -r conftest 2>/dev/null
17536    mkdir conftest
17537    cd conftest
17538    mkdir out
17539    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17540
17541    lt_compiler_flag="-o out/conftest2.$ac_objext"
17542    # Insert the option either (1) after the last *FLAGS variable, or
17543    # (2) before a word containing "conftest.", or (3) at the end.
17544    # Note that $ac_compile itself does not contain backslashes and begins
17545    # with a dollar sign (not a hyphen), so the echo should work correctly.
17546    lt_compile=`echo "$ac_compile" | $SED \
17547    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17548    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17549    -e 's:$: $lt_compiler_flag:'`
17550    (eval echo "\"\$as_me:17550: $lt_compile\"" >&5)
17551    (eval "$lt_compile" 2>out/conftest.err)
17552    ac_status=$?
17553    cat out/conftest.err >&5
17554    echo "$as_me:17554: \$? = $ac_status" >&5
17555    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17556    then
17557      # The compiler can only warn and ignore the option if not recognized
17558      # So say no if there are warnings
17559      if test ! -s out/conftest.err; then
17560        lt_cv_prog_compiler_c_o_GCJ=yes
17561      fi
17562    fi
17563    chmod u+w .
17564    $rm conftest*
17565    # SGI C++ compiler will create directory out/ii_files/ for
17566    # template instantiation
17567    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17568    $rm out/* && rmdir out
17569    cd ..
17570    rmdir conftest
17571    $rm conftest*
17572
17573 fi
17574 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17575 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17576
17577
17578 hard_links="nottested"
17579 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17580   # do not overwrite the value of need_locks provided by the user
17581   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17582 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17583   hard_links=yes
17584   $rm conftest*
17585   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17586   touch conftest.a
17587   ln conftest.a conftest.b 2>&5 || hard_links=no
17588   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17589   echo "$as_me:$LINENO: result: $hard_links" >&5
17590 echo "${ECHO_T}$hard_links" >&6
17591   if test "$hard_links" = no; then
17592     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17593 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17594     need_locks=warn
17595   fi
17596 else
17597   need_locks=no
17598 fi
17599
17600 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17601 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17602
17603   runpath_var=
17604   allow_undefined_flag_GCJ=
17605   enable_shared_with_static_runtimes_GCJ=no
17606   archive_cmds_GCJ=
17607   archive_expsym_cmds_GCJ=
17608   old_archive_From_new_cmds_GCJ=
17609   old_archive_from_expsyms_cmds_GCJ=
17610   export_dynamic_flag_spec_GCJ=
17611   whole_archive_flag_spec_GCJ=
17612   thread_safe_flag_spec_GCJ=
17613   hardcode_libdir_flag_spec_GCJ=
17614   hardcode_libdir_flag_spec_ld_GCJ=
17615   hardcode_libdir_separator_GCJ=
17616   hardcode_direct_GCJ=no
17617   hardcode_minus_L_GCJ=no
17618   hardcode_shlibpath_var_GCJ=unsupported
17619   link_all_deplibs_GCJ=unknown
17620   hardcode_automatic_GCJ=no
17621   module_cmds_GCJ=
17622   module_expsym_cmds_GCJ=
17623   always_export_symbols_GCJ=no
17624   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17625   # include_expsyms should be a list of space-separated symbols to be *always*
17626   # included in the symbol list
17627   include_expsyms_GCJ=
17628   # exclude_expsyms can be an extended regexp of symbols to exclude
17629   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17630   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17631   # as well as any symbol that contains `d'.
17632   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17633   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17634   # platforms (ab)use it in PIC code, but their linkers get confused if
17635   # the symbol is explicitly referenced.  Since portable code cannot
17636   # rely on this symbol name, it's probably fine to never include it in
17637   # preloaded symbol tables.
17638   extract_expsyms_cmds=
17639
17640   case $host_os in
17641   cygwin* | mingw* | pw32*)
17642     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17643     # When not using gcc, we currently assume that we are using
17644     # Microsoft Visual C++.
17645     if test "$GCC" != yes; then
17646       with_gnu_ld=no
17647     fi
17648     ;;
17649   openbsd*)
17650     with_gnu_ld=no
17651     ;;
17652   esac
17653
17654   ld_shlibs_GCJ=yes
17655   if test "$with_gnu_ld" = yes; then
17656     # If archive_cmds runs LD, not CC, wlarc should be empty
17657     wlarc='${wl}'
17658
17659     # See if GNU ld supports shared libraries.
17660     case $host_os in
17661     aix3* | aix4* | aix5*)
17662       # On AIX/PPC, the GNU linker is very broken
17663       if test "$host_cpu" != ia64; then
17664         ld_shlibs_GCJ=no
17665         cat <<EOF 1>&2
17666
17667 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17668 *** to be unable to reliably create shared libraries on AIX.
17669 *** Therefore, libtool is disabling shared libraries support.  If you
17670 *** really care for shared libraries, you may want to modify your PATH
17671 *** so that a non-GNU linker is found, and then restart.
17672
17673 EOF
17674       fi
17675       ;;
17676
17677     amigaos*)
17678       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)'
17679       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17680       hardcode_minus_L_GCJ=yes
17681
17682       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17683       # that the semantics of dynamic libraries on AmigaOS, at least up
17684       # to version 4, is to share data among multiple programs linked
17685       # with the same dynamic library.  Since this doesn't match the
17686       # behavior of shared libraries on other platforms, we can't use
17687       # them.
17688       ld_shlibs_GCJ=no
17689       ;;
17690
17691     beos*)
17692       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17693         allow_undefined_flag_GCJ=unsupported
17694         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17695         # support --undefined.  This deserves some investigation.  FIXME
17696         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17697       else
17698         ld_shlibs_GCJ=no
17699       fi
17700       ;;
17701
17702     cygwin* | mingw* | pw32*)
17703       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17704       # as there is no search path for DLLs.
17705       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17706       allow_undefined_flag_GCJ=unsupported
17707       always_export_symbols_GCJ=no
17708       enable_shared_with_static_runtimes_GCJ=yes
17709       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17710
17711       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17712         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17713         # If the export-symbols file already is a .def file (1st line
17714         # is EXPORTS), use it as is; otherwise, prepend...
17715         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17716           cp $export_symbols $output_objdir/$soname.def;
17717         else
17718           echo EXPORTS > $output_objdir/$soname.def;
17719           cat $export_symbols >> $output_objdir/$soname.def;
17720         fi~
17721         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17722       else
17723         ld_shlibs=no
17724       fi
17725       ;;
17726
17727     netbsd*)
17728       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17729         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17730         wlarc=
17731       else
17732         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17733         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17734       fi
17735       ;;
17736
17737     solaris* | sysv5*)
17738       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17739         ld_shlibs_GCJ=no
17740         cat <<EOF 1>&2
17741
17742 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17743 *** create shared libraries on Solaris systems.  Therefore, libtool
17744 *** is disabling shared libraries support.  We urge you to upgrade GNU
17745 *** binutils to release 2.9.1 or newer.  Another option is to modify
17746 *** your PATH or compiler configuration so that the native linker is
17747 *** used, and then restart.
17748
17749 EOF
17750       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17751         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17752         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17753       else
17754         ld_shlibs_GCJ=no
17755       fi
17756       ;;
17757
17758     sunos4*)
17759       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17760       wlarc=
17761       hardcode_direct_GCJ=yes
17762       hardcode_shlibpath_var_GCJ=no
17763       ;;
17764
17765   linux*)
17766     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17767         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17768         archive_cmds_GCJ="$tmp_archive_cmds"
17769       supports_anon_versioning=no
17770       case `$LD -v 2>/dev/null` in
17771         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17772         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17773         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17774         *\ 2.11.*) ;; # other 2.11 versions
17775         *) supports_anon_versioning=yes ;;
17776       esac
17777       if test $supports_anon_versioning = yes; then
17778         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17780 $echo "local: *; };" >> $output_objdir/$libname.ver~
17781         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17782       else
17783         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17784       fi
17785     else
17786       ld_shlibs_GCJ=no
17787     fi
17788     ;;
17789
17790     *)
17791       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17792         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17793         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17794       else
17795         ld_shlibs_GCJ=no
17796       fi
17797       ;;
17798     esac
17799
17800     if test "$ld_shlibs_GCJ" = yes; then
17801       runpath_var=LD_RUN_PATH
17802       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17803       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17804       # ancient GNU ld didn't support --whole-archive et. al.
17805       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17806         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17807       else
17808         whole_archive_flag_spec_GCJ=
17809       fi
17810     fi
17811   else
17812     # PORTME fill in a description of your system's linker (not GNU ld)
17813     case $host_os in
17814     aix3*)
17815       allow_undefined_flag_GCJ=unsupported
17816       always_export_symbols_GCJ=yes
17817       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'
17818       # Note: this linker hardcodes the directories in LIBPATH if there
17819       # are no directories specified by -L.
17820       hardcode_minus_L_GCJ=yes
17821       if test "$GCC" = yes && test -z "$link_static_flag"; then
17822         # Neither direct hardcoding nor static linking is supported with a
17823         # broken collect2.
17824         hardcode_direct_GCJ=unsupported
17825       fi
17826       ;;
17827
17828     aix4* | aix5*)
17829       if test "$host_cpu" = ia64; then
17830         # On IA64, the linker does run time linking by default, so we don't
17831         # have to do anything special.
17832         aix_use_runtimelinking=no
17833         exp_sym_flag='-Bexport'
17834         no_entry_flag=""
17835       else
17836         # If we're using GNU nm, then we don't want the "-C" option.
17837         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17838         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17839           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'
17840         else
17841           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'
17842         fi
17843         aix_use_runtimelinking=no
17844
17845         # Test if we are trying to use run time linking or normal
17846         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17847         # need to do runtime linking.
17848         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17849           for ld_flag in $LDFLAGS; do
17850           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17851             aix_use_runtimelinking=yes
17852             break
17853           fi
17854           done
17855         esac
17856
17857         exp_sym_flag='-bexport'
17858         no_entry_flag='-bnoentry'
17859       fi
17860
17861       # When large executables or shared objects are built, AIX ld can
17862       # have problems creating the table of contents.  If linking a library
17863       # or program results in "error TOC overflow" add -mminimal-toc to
17864       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17865       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17866
17867       archive_cmds_GCJ=''
17868       hardcode_direct_GCJ=yes
17869       hardcode_libdir_separator_GCJ=':'
17870       link_all_deplibs_GCJ=yes
17871
17872       if test "$GCC" = yes; then
17873         case $host_os in aix4.012|aix4.012.*)
17874         # We only want to do this on AIX 4.2 and lower, the check
17875         # below for broken collect2 doesn't work under 4.3+
17876           collect2name=`${CC} -print-prog-name=collect2`
17877           if test -f "$collect2name" && \
17878            strings "$collect2name" | grep resolve_lib_name >/dev/null
17879           then
17880           # We have reworked collect2
17881           hardcode_direct_GCJ=yes
17882           else
17883           # We have old collect2
17884           hardcode_direct_GCJ=unsupported
17885           # It fails to find uninstalled libraries when the uninstalled
17886           # path is not listed in the libpath.  Setting hardcode_minus_L
17887           # to unsupported forces relinking
17888           hardcode_minus_L_GCJ=yes
17889           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17890           hardcode_libdir_separator_GCJ=
17891           fi
17892         esac
17893         shared_flag='-shared'
17894       else
17895         # not using gcc
17896         if test "$host_cpu" = ia64; then
17897         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17898         # chokes on -Wl,-G. The following line is correct:
17899           shared_flag='-G'
17900         else
17901         if test "$aix_use_runtimelinking" = yes; then
17902             shared_flag='${wl}-G'
17903           else
17904             shared_flag='${wl}-bM:SRE'
17905         fi
17906         fi
17907       fi
17908
17909       # It seems that -bexpall does not export symbols beginning with
17910       # underscore (_), so it is better to generate a list of symbols to export.
17911       always_export_symbols_GCJ=yes
17912       if test "$aix_use_runtimelinking" = yes; then
17913         # Warning - without using the other runtime loading flags (-brtl),
17914         # -berok will link without error, but may produce a broken library.
17915         allow_undefined_flag_GCJ='-berok'
17916        # Determine the default libpath from the value encoded in an empty executable.
17917        cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h.  */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h.  */
17923
17924 int
17925 main ()
17926 {
17927
17928   ;
17929   return 0;
17930 }
17931 _ACEOF
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17934   (eval $ac_link) 2>conftest.er1
17935   ac_status=$?
17936   grep -v '^ *+' conftest.er1 >conftest.err
17937   rm -f conftest.er1
17938   cat conftest.err >&5
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); } &&
17941          { ac_try='test -z "$ac_c_werror_flag"
17942                          || test ! -s conftest.err'
17943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944   (eval $ac_try) 2>&5
17945   ac_status=$?
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); }; } &&
17948          { ac_try='test -s conftest$ac_exeext'
17949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950   (eval $ac_try) 2>&5
17951   ac_status=$?
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); }; }; then
17954
17955 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17956 }'`
17957 # Check for a 64-bit object if we didn't find anything.
17958 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; }
17959 }'`; fi
17960 else
17961   echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17963
17964 fi
17965 rm -f conftest.err conftest.$ac_objext \
17966       conftest$ac_exeext conftest.$ac_ext
17967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17968
17969        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17970         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"
17971        else
17972         if test "$host_cpu" = ia64; then
17973           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17974           allow_undefined_flag_GCJ="-z nodefs"
17975           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"
17976         else
17977          # Determine the default libpath from the value encoded in an empty executable.
17978          cat >conftest.$ac_ext <<_ACEOF
17979 /* confdefs.h.  */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h.  */
17984
17985 int
17986 main ()
17987 {
17988
17989   ;
17990   return 0;
17991 }
17992 _ACEOF
17993 rm -f conftest.$ac_objext conftest$ac_exeext
17994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17995   (eval $ac_link) 2>conftest.er1
17996   ac_status=$?
17997   grep -v '^ *+' conftest.er1 >conftest.err
17998   rm -f conftest.er1
17999   cat conftest.err >&5
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); } &&
18002          { ac_try='test -z "$ac_c_werror_flag"
18003                          || test ! -s conftest.err'
18004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005   (eval $ac_try) 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; } &&
18009          { ac_try='test -s conftest$ac_exeext'
18010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011   (eval $ac_try) 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); }; }; then
18015
18016 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18017 }'`
18018 # Check for a 64-bit object if we didn't find anything.
18019 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; }
18020 }'`; fi
18021 else
18022   echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.$ac_ext >&5
18024
18025 fi
18026 rm -f conftest.err conftest.$ac_objext \
18027       conftest$ac_exeext conftest.$ac_ext
18028 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18029
18030          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18031           # Warning - without using the other run time loading flags,
18032           # -berok will link without error, but may produce a broken library.
18033           no_undefined_flag_GCJ=' ${wl}-bernotok'
18034           allow_undefined_flag_GCJ=' ${wl}-berok'
18035           # -bexpall does not export symbols beginning with underscore (_)
18036           always_export_symbols_GCJ=yes
18037           # Exported symbols can be pulled into shared objects from archives
18038           whole_archive_flag_spec_GCJ=' '
18039           archive_cmds_need_lc_GCJ=yes
18040           # This is similar to how AIX traditionally builds it's shared libraries.
18041           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'
18042         fi
18043       fi
18044       ;;
18045
18046     amigaos*)
18047       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)'
18048       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18049       hardcode_minus_L_GCJ=yes
18050       # see comment about different semantics on the GNU ld section
18051       ld_shlibs_GCJ=no
18052       ;;
18053
18054     bsdi[45]*)
18055       export_dynamic_flag_spec_GCJ=-rdynamic
18056       ;;
18057
18058     cygwin* | mingw* | pw32*)
18059       # When not using gcc, we currently assume that we are using
18060       # Microsoft Visual C++.
18061       # hardcode_libdir_flag_spec is actually meaningless, as there is
18062       # no search path for DLLs.
18063       hardcode_libdir_flag_spec_GCJ=' '
18064       allow_undefined_flag_GCJ=unsupported
18065       # Tell ltmain to make .lib files, not .a files.
18066       libext=lib
18067       # Tell ltmain to make .dll files, not .so files.
18068       shrext_cmds=".dll"
18069       # FIXME: Setting linknames here is a bad hack.
18070       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18071       # The linker will automatically build a .lib file if we build a DLL.
18072       old_archive_From_new_cmds_GCJ='true'
18073       # FIXME: Should let the user specify the lib program.
18074       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18075       fix_srcfile_path='`cygpath -w "$srcfile"`'
18076       enable_shared_with_static_runtimes_GCJ=yes
18077       ;;
18078
18079     darwin* | rhapsody*)
18080       case "$host_os" in
18081         rhapsody* | darwin1.[012])
18082          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18083          ;;
18084        *) # Darwin 1.3 on
18085          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18086            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18087          else
18088            case ${MACOSX_DEPLOYMENT_TARGET} in
18089              10.[012])
18090                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18091                ;;
18092              10.*)
18093                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18094                ;;
18095            esac
18096          fi
18097          ;;
18098       esac
18099       archive_cmds_need_lc_GCJ=no
18100       hardcode_direct_GCJ=no
18101       hardcode_automatic_GCJ=yes
18102       hardcode_shlibpath_var_GCJ=unsupported
18103       whole_archive_flag_spec_GCJ=''
18104       link_all_deplibs_GCJ=yes
18105     if test "$GCC" = yes ; then
18106         output_verbose_link_cmd='echo'
18107         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18108       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18109       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18110       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}'
18111       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}'
18112     else
18113       case "$cc_basename" in
18114         xlc*)
18115          output_verbose_link_cmd='echo'
18116          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18117          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18118           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18119          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}'
18120           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}'
18121           ;;
18122        *)
18123          ld_shlibs_GCJ=no
18124           ;;
18125       esac
18126     fi
18127       ;;
18128
18129     dgux*)
18130       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18131       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18132       hardcode_shlibpath_var_GCJ=no
18133       ;;
18134
18135     freebsd1*)
18136       ld_shlibs_GCJ=no
18137       ;;
18138
18139     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18140     # support.  Future versions do this automatically, but an explicit c++rt0.o
18141     # does not break anything, and helps significantly (at the cost of a little
18142     # extra space).
18143     freebsd2.2*)
18144       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18145       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18146       hardcode_direct_GCJ=yes
18147       hardcode_shlibpath_var_GCJ=no
18148       ;;
18149
18150     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18151     freebsd2*)
18152       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18153       hardcode_direct_GCJ=yes
18154       hardcode_minus_L_GCJ=yes
18155       hardcode_shlibpath_var_GCJ=no
18156       ;;
18157
18158     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18159     freebsd* | kfreebsd*-gnu)
18160       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18161       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18162       hardcode_direct_GCJ=yes
18163       hardcode_shlibpath_var_GCJ=no
18164       ;;
18165
18166     hpux9*)
18167       if test "$GCC" = yes; then
18168         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'
18169       else
18170         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'
18171       fi
18172       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18173       hardcode_libdir_separator_GCJ=:
18174       hardcode_direct_GCJ=yes
18175
18176       # hardcode_minus_L: Not really in the search PATH,
18177       # but as the default location of the library.
18178       hardcode_minus_L_GCJ=yes
18179       export_dynamic_flag_spec_GCJ='${wl}-E'
18180       ;;
18181
18182     hpux10* | hpux11*)
18183       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18184         case "$host_cpu" in
18185         hppa*64*|ia64*)
18186           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18187           ;;
18188         *)
18189           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18190           ;;
18191         esac
18192       else
18193         case "$host_cpu" in
18194         hppa*64*|ia64*)
18195           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18196           ;;
18197         *)
18198           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18199           ;;
18200         esac
18201       fi
18202       if test "$with_gnu_ld" = no; then
18203         case "$host_cpu" in
18204         hppa*64*)
18205           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18206           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18207           hardcode_libdir_separator_GCJ=:
18208           hardcode_direct_GCJ=no
18209           hardcode_shlibpath_var_GCJ=no
18210           ;;
18211         ia64*)
18212           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18213           hardcode_direct_GCJ=no
18214           hardcode_shlibpath_var_GCJ=no
18215
18216           # hardcode_minus_L: Not really in the search PATH,
18217           # but as the default location of the library.
18218           hardcode_minus_L_GCJ=yes
18219           ;;
18220         *)
18221           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18222           hardcode_libdir_separator_GCJ=:
18223           hardcode_direct_GCJ=yes
18224           export_dynamic_flag_spec_GCJ='${wl}-E'
18225
18226           # hardcode_minus_L: Not really in the search PATH,
18227           # but as the default location of the library.
18228           hardcode_minus_L_GCJ=yes
18229           ;;
18230         esac
18231       fi
18232       ;;
18233
18234     irix5* | irix6* | nonstopux*)
18235       if test "$GCC" = yes; then
18236         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'
18237       else
18238         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'
18239         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18240       fi
18241       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18242       hardcode_libdir_separator_GCJ=:
18243       link_all_deplibs_GCJ=yes
18244       ;;
18245
18246     netbsd*)
18247       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18248         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18249       else
18250         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18251       fi
18252       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18253       hardcode_direct_GCJ=yes
18254       hardcode_shlibpath_var_GCJ=no
18255       ;;
18256
18257     newsos6)
18258       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18259       hardcode_direct_GCJ=yes
18260       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18261       hardcode_libdir_separator_GCJ=:
18262       hardcode_shlibpath_var_GCJ=no
18263       ;;
18264
18265     openbsd*)
18266       hardcode_direct_GCJ=yes
18267       hardcode_shlibpath_var_GCJ=no
18268       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18269         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18270         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18271         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18272         export_dynamic_flag_spec_GCJ='${wl}-E'
18273       else
18274        case $host_os in
18275          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18276            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18277            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18278            ;;
18279          *)
18280            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18281            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18282            ;;
18283        esac
18284       fi
18285       ;;
18286
18287     os2*)
18288       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18289       hardcode_minus_L_GCJ=yes
18290       allow_undefined_flag_GCJ=unsupported
18291       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'
18292       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18293       ;;
18294
18295     osf3*)
18296       if test "$GCC" = yes; then
18297         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18298         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'
18299       else
18300         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18301         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'
18302       fi
18303       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18304       hardcode_libdir_separator_GCJ=:
18305       ;;
18306
18307     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18308       if test "$GCC" = yes; then
18309         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18310         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'
18311         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18312       else
18313         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18314         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'
18315         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~
18316         $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'
18317
18318         # Both c and cxx compiler support -rpath directly
18319         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18320       fi
18321       hardcode_libdir_separator_GCJ=:
18322       ;;
18323
18324     sco3.2v5*)
18325       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18326       hardcode_shlibpath_var_GCJ=no
18327       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18328       runpath_var=LD_RUN_PATH
18329       hardcode_runpath_var=yes
18330       ;;
18331
18332     solaris*)
18333       no_undefined_flag_GCJ=' -z text'
18334       if test "$GCC" = yes; then
18335         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18336         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18337           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18338       else
18339         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18340         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18341         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18342       fi
18343       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18344       hardcode_shlibpath_var_GCJ=no
18345       case $host_os in
18346       solaris2.[0-5] | solaris2.[0-5].*) ;;
18347       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18348         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18349       esac
18350       link_all_deplibs_GCJ=yes
18351       ;;
18352
18353     sunos4*)
18354       if test "x$host_vendor" = xsequent; then
18355         # Use $CC to link under sequent, because it throws in some extra .o
18356         # files that make .init and .fini sections work.
18357         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18358       else
18359         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18360       fi
18361       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18362       hardcode_direct_GCJ=yes
18363       hardcode_minus_L_GCJ=yes
18364       hardcode_shlibpath_var_GCJ=no
18365       ;;
18366
18367     sysv4)
18368       case $host_vendor in
18369         sni)
18370           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18371           hardcode_direct_GCJ=yes # is this really true???
18372         ;;
18373         siemens)
18374           ## LD is ld it makes a PLAMLIB
18375           ## CC just makes a GrossModule.
18376           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18377           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18378           hardcode_direct_GCJ=no
18379         ;;
18380         motorola)
18381           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18382           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18383         ;;
18384       esac
18385       runpath_var='LD_RUN_PATH'
18386       hardcode_shlibpath_var_GCJ=no
18387       ;;
18388
18389     sysv4.3*)
18390       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18391       hardcode_shlibpath_var_GCJ=no
18392       export_dynamic_flag_spec_GCJ='-Bexport'
18393       ;;
18394
18395     sysv4*MP*)
18396       if test -d /usr/nec; then
18397         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18398         hardcode_shlibpath_var_GCJ=no
18399         runpath_var=LD_RUN_PATH
18400         hardcode_runpath_var=yes
18401         ld_shlibs_GCJ=yes
18402       fi
18403       ;;
18404
18405     sysv4.2uw2*)
18406       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18407       hardcode_direct_GCJ=yes
18408       hardcode_minus_L_GCJ=no
18409       hardcode_shlibpath_var_GCJ=no
18410       hardcode_runpath_var=yes
18411       runpath_var=LD_RUN_PATH
18412       ;;
18413
18414    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18415       no_undefined_flag_GCJ='${wl}-z ${wl}text'
18416       if test "$GCC" = yes; then
18417         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18418       else
18419         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18420       fi
18421       runpath_var='LD_RUN_PATH'
18422       hardcode_shlibpath_var_GCJ=no
18423       ;;
18424
18425     sysv5*)
18426       no_undefined_flag_GCJ=' -z text'
18427       # $CC -shared without GNU ld will not create a library from C++
18428       # object files and a static libstdc++, better avoid it by now
18429       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18430       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18431                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18432       hardcode_libdir_flag_spec_GCJ=
18433       hardcode_shlibpath_var_GCJ=no
18434       runpath_var='LD_RUN_PATH'
18435       ;;
18436
18437     uts4*)
18438       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18439       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18440       hardcode_shlibpath_var_GCJ=no
18441       ;;
18442
18443     *)
18444       ld_shlibs_GCJ=no
18445       ;;
18446     esac
18447   fi
18448
18449 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18450 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18451 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18452
18453 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18454 if test "$GCC" = yes; then
18455   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18456 fi
18457
18458 #
18459 # Do we need to explicitly link libc?
18460 #
18461 case "x$archive_cmds_need_lc_GCJ" in
18462 x|xyes)
18463   # Assume -lc should be added
18464   archive_cmds_need_lc_GCJ=yes
18465
18466   if test "$enable_shared" = yes && test "$GCC" = yes; then
18467     case $archive_cmds_GCJ in
18468     *'~'*)
18469       # FIXME: we may have to deal with multi-command sequences.
18470       ;;
18471     '$CC '*)
18472       # Test whether the compiler implicitly links with -lc since on some
18473       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18474       # to ld, don't add -lc before -lgcc.
18475       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18476 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18477       $rm conftest*
18478       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18479
18480       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18481   (eval $ac_compile) 2>&5
18482   ac_status=$?
18483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484   (exit $ac_status); } 2>conftest.err; then
18485         soname=conftest
18486         lib=conftest
18487         libobjs=conftest.$ac_objext
18488         deplibs=
18489         wl=$lt_prog_compiler_wl_GCJ
18490         compiler_flags=-v
18491         linker_flags=-v
18492         verstring=
18493         output_objdir=.
18494         libname=conftest
18495         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18496         allow_undefined_flag_GCJ=
18497         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18498   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18499   ac_status=$?
18500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); }
18502         then
18503           archive_cmds_need_lc_GCJ=no
18504         else
18505           archive_cmds_need_lc_GCJ=yes
18506         fi
18507         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18508       else
18509         cat conftest.err 1>&5
18510       fi
18511       $rm conftest*
18512       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18513 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18514       ;;
18515     esac
18516   fi
18517   ;;
18518 esac
18519
18520 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18521 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18522 library_names_spec=
18523 libname_spec='lib$name'
18524 soname_spec=
18525 shrext_cmds=".so"
18526 postinstall_cmds=
18527 postuninstall_cmds=
18528 finish_cmds=
18529 finish_eval=
18530 shlibpath_var=
18531 shlibpath_overrides_runpath=unknown
18532 version_type=none
18533 dynamic_linker="$host_os ld.so"
18534 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18535 if test "$GCC" = yes; then
18536   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18537   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18538     # if the path contains ";" then we assume it to be the separator
18539     # otherwise default to the standard path separator (i.e. ":") - it is
18540     # assumed that no part of a normal pathname contains ";" but that should
18541     # okay in the real world where ";" in dirpaths is itself problematic.
18542     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18543   else
18544     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18545   fi
18546 else
18547   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18548 fi
18549 need_lib_prefix=unknown
18550 hardcode_into_libs=no
18551
18552 # when you set need_version to no, make sure it does not cause -set_version
18553 # flags to be left without arguments
18554 need_version=unknown
18555
18556 case $host_os in
18557 aix3*)
18558   version_type=linux
18559   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18560   shlibpath_var=LIBPATH
18561
18562   # AIX 3 has no versioning support, so we append a major version to the name.
18563   soname_spec='${libname}${release}${shared_ext}$major'
18564   ;;
18565
18566 aix4* | aix5*)
18567   version_type=linux
18568   need_lib_prefix=no
18569   need_version=no
18570   hardcode_into_libs=yes
18571   if test "$host_cpu" = ia64; then
18572     # AIX 5 supports IA64
18573     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18574     shlibpath_var=LD_LIBRARY_PATH
18575   else
18576     # With GCC up to 2.95.x, collect2 would create an import file
18577     # for dependence libraries.  The import file would start with
18578     # the line `#! .'.  This would cause the generated library to
18579     # depend on `.', always an invalid library.  This was fixed in
18580     # development snapshots of GCC prior to 3.0.
18581     case $host_os in
18582       aix4 | aix4.[01] | aix4.[01].*)
18583       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18584            echo ' yes '
18585            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18586         :
18587       else
18588         can_build_shared=no
18589       fi
18590       ;;
18591     esac
18592     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18593     # soname into executable. Probably we can add versioning support to
18594     # collect2, so additional links can be useful in future.
18595     if test "$aix_use_runtimelinking" = yes; then
18596       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18597       # instead of lib<name>.a to let people know that these are not
18598       # typical AIX shared libraries.
18599       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18600     else
18601       # We preserve .a as extension for shared libraries through AIX4.2
18602       # and later when we are not doing run time linking.
18603       library_names_spec='${libname}${release}.a $libname.a'
18604       soname_spec='${libname}${release}${shared_ext}$major'
18605     fi
18606     shlibpath_var=LIBPATH
18607   fi
18608   ;;
18609
18610 amigaos*)
18611   library_names_spec='$libname.ixlibrary $libname.a'
18612   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18613   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'
18614   ;;
18615
18616 beos*)
18617   library_names_spec='${libname}${shared_ext}'
18618   dynamic_linker="$host_os ld.so"
18619   shlibpath_var=LIBRARY_PATH
18620   ;;
18621
18622 bsdi[45]*)
18623   version_type=linux
18624   need_version=no
18625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18626   soname_spec='${libname}${release}${shared_ext}$major'
18627   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18628   shlibpath_var=LD_LIBRARY_PATH
18629   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18630   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18631   # the default ld.so.conf also contains /usr/contrib/lib and
18632   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18633   # libtool to hard-code these into programs
18634   ;;
18635
18636 cygwin* | mingw* | pw32*)
18637   version_type=windows
18638   shrext_cmds=".dll"
18639   need_version=no
18640   need_lib_prefix=no
18641
18642   case $GCC,$host_os in
18643   yes,cygwin* | yes,mingw* | yes,pw32*)
18644     library_names_spec='$libname.dll.a'
18645     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18646     postinstall_cmds='base_file=`basename \${file}`~
18647       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18648       dldir=$destdir/`dirname \$dlpath`~
18649       test -d \$dldir || mkdir -p \$dldir~
18650       $install_prog $dir/$dlname \$dldir/$dlname'
18651     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18652       dlpath=$dir/\$dldll~
18653        $rm \$dlpath'
18654     shlibpath_overrides_runpath=yes
18655
18656     case $host_os in
18657     cygwin*)
18658       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18659       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18660       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18661       ;;
18662     mingw*)
18663       # MinGW DLLs use traditional 'lib' prefix
18664       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18665       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18666       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18667         # It is most probably a Windows format PATH printed by
18668         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18669         # path with ; separators, and with drive letters. We can handle the
18670         # drive letters (cygwin fileutils understands them), so leave them,
18671         # especially as we might pass files found there to a mingw objdump,
18672         # which wouldn't understand a cygwinified path. Ahh.
18673         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18674       else
18675         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18676       fi
18677       ;;
18678     pw32*)
18679       # pw32 DLLs use 'pw' prefix rather than 'lib'
18680       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18681       ;;
18682     esac
18683     ;;
18684
18685   *)
18686     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18687     ;;
18688   esac
18689   dynamic_linker='Win32 ld.exe'
18690   # FIXME: first we should search . and the directory the executable is in
18691   shlibpath_var=PATH
18692   ;;
18693
18694 darwin* | rhapsody*)
18695   dynamic_linker="$host_os dyld"
18696   version_type=darwin
18697   need_lib_prefix=no
18698   need_version=no
18699   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18700   soname_spec='${libname}${release}${major}$shared_ext'
18701   shlibpath_overrides_runpath=yes
18702   shlibpath_var=DYLD_LIBRARY_PATH
18703   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18704   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18705   if test "$GCC" = yes; then
18706     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"`
18707   else
18708     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18709   fi
18710   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18711   ;;
18712
18713 dgux*)
18714   version_type=linux
18715   need_lib_prefix=no
18716   need_version=no
18717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18718   soname_spec='${libname}${release}${shared_ext}$major'
18719   shlibpath_var=LD_LIBRARY_PATH
18720   ;;
18721
18722 freebsd1*)
18723   dynamic_linker=no
18724   ;;
18725
18726 kfreebsd*-gnu)
18727   version_type=linux
18728   need_lib_prefix=no
18729   need_version=no
18730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18731   soname_spec='${libname}${release}${shared_ext}$major'
18732   shlibpath_var=LD_LIBRARY_PATH
18733   shlibpath_overrides_runpath=no
18734   hardcode_into_libs=yes
18735   dynamic_linker='GNU ld.so'
18736   ;;
18737
18738 freebsd*)
18739   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18740   version_type=freebsd-$objformat
18741   case $version_type in
18742     freebsd-elf*)
18743       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18744       need_version=no
18745       need_lib_prefix=no
18746       ;;
18747     freebsd-*)
18748       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18749       need_version=yes
18750       ;;
18751   esac
18752   shlibpath_var=LD_LIBRARY_PATH
18753   case $host_os in
18754   freebsd2*)
18755     shlibpath_overrides_runpath=yes
18756     ;;
18757   freebsd3.01* | freebsdelf3.01*)
18758     shlibpath_overrides_runpath=yes
18759     hardcode_into_libs=yes
18760     ;;
18761   *) # from 3.2 on
18762     shlibpath_overrides_runpath=no
18763     hardcode_into_libs=yes
18764     ;;
18765   esac
18766   ;;
18767
18768 gnu*)
18769   version_type=linux
18770   need_lib_prefix=no
18771   need_version=no
18772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18773   soname_spec='${libname}${release}${shared_ext}$major'
18774   shlibpath_var=LD_LIBRARY_PATH
18775   hardcode_into_libs=yes
18776   ;;
18777
18778 hpux9* | hpux10* | hpux11*)
18779   # Give a soname corresponding to the major version so that dld.sl refuses to
18780   # link against other versions.
18781   version_type=sunos
18782   need_lib_prefix=no
18783   need_version=no
18784   case "$host_cpu" in
18785   ia64*)
18786     shrext_cmds='.so'
18787     hardcode_into_libs=yes
18788     dynamic_linker="$host_os dld.so"
18789     shlibpath_var=LD_LIBRARY_PATH
18790     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18792     soname_spec='${libname}${release}${shared_ext}$major'
18793     if test "X$HPUX_IA64_MODE" = X32; then
18794       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18795     else
18796       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18797     fi
18798     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18799     ;;
18800    hppa*64*)
18801      shrext_cmds='.sl'
18802      hardcode_into_libs=yes
18803      dynamic_linker="$host_os dld.sl"
18804      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18805      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18806      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18807      soname_spec='${libname}${release}${shared_ext}$major'
18808      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18809      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18810      ;;
18811    *)
18812     shrext_cmds='.sl'
18813     dynamic_linker="$host_os dld.sl"
18814     shlibpath_var=SHLIB_PATH
18815     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18817     soname_spec='${libname}${release}${shared_ext}$major'
18818     ;;
18819   esac
18820   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18821   postinstall_cmds='chmod 555 $lib'
18822   ;;
18823
18824 irix5* | irix6* | nonstopux*)
18825   case $host_os in
18826     nonstopux*) version_type=nonstopux ;;
18827     *)
18828         if test "$lt_cv_prog_gnu_ld" = yes; then
18829                 version_type=linux
18830         else
18831                 version_type=irix
18832         fi ;;
18833   esac
18834   need_lib_prefix=no
18835   need_version=no
18836   soname_spec='${libname}${release}${shared_ext}$major'
18837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18838   case $host_os in
18839   irix5* | nonstopux*)
18840     libsuff= shlibsuff=
18841     ;;
18842   *)
18843     case $LD in # libtool.m4 will add one of these switches to LD
18844     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18845       libsuff= shlibsuff= libmagic=32-bit;;
18846     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18847       libsuff=32 shlibsuff=N32 libmagic=N32;;
18848     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18849       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18850     *) libsuff= shlibsuff= libmagic=never-match;;
18851     esac
18852     ;;
18853   esac
18854   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18855   shlibpath_overrides_runpath=no
18856   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18857   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18858   hardcode_into_libs=yes
18859   ;;
18860
18861 # No shared lib support for Linux oldld, aout, or coff.
18862 linux*oldld* | linux*aout* | linux*coff*)
18863   dynamic_linker=no
18864   ;;
18865
18866 # This must be Linux ELF.
18867 linux*)
18868   version_type=linux
18869   need_lib_prefix=no
18870   need_version=no
18871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18872   soname_spec='${libname}${release}${shared_ext}$major'
18873   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18874   shlibpath_var=LD_LIBRARY_PATH
18875   shlibpath_overrides_runpath=no
18876   # This implies no fast_install, which is unacceptable.
18877   # Some rework will be needed to allow for fast_install
18878   # before this can be enabled.
18879   hardcode_into_libs=yes
18880
18881   # Append ld.so.conf contents to the search path
18882   if test -f /etc/ld.so.conf; then
18883     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18884     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18885   fi
18886
18887   # We used to test for /lib/ld.so.1 and disable shared libraries on
18888   # powerpc, because MkLinux only supported shared libraries with the
18889   # GNU dynamic linker.  Since this was broken with cross compilers,
18890   # most powerpc-linux boxes support dynamic linking these days and
18891   # people can always --disable-shared, the test was removed, and we
18892   # assume the GNU/Linux dynamic linker is in use.
18893   dynamic_linker='GNU/Linux ld.so'
18894   ;;
18895
18896 knetbsd*-gnu)
18897   version_type=linux
18898   need_lib_prefix=no
18899   need_version=no
18900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18901   soname_spec='${libname}${release}${shared_ext}$major'
18902   shlibpath_var=LD_LIBRARY_PATH
18903   shlibpath_overrides_runpath=no
18904   hardcode_into_libs=yes
18905   dynamic_linker='GNU ld.so'
18906   ;;
18907
18908 netbsd*)
18909   version_type=sunos
18910   need_lib_prefix=no
18911   need_version=no
18912   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18914     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18915     dynamic_linker='NetBSD (a.out) ld.so'
18916   else
18917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18918     soname_spec='${libname}${release}${shared_ext}$major'
18919     dynamic_linker='NetBSD ld.elf_so'
18920   fi
18921   shlibpath_var=LD_LIBRARY_PATH
18922   shlibpath_overrides_runpath=yes
18923   hardcode_into_libs=yes
18924   ;;
18925
18926 newsos6)
18927   version_type=linux
18928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929   shlibpath_var=LD_LIBRARY_PATH
18930   shlibpath_overrides_runpath=yes
18931   ;;
18932
18933 nto-qnx*)
18934   version_type=linux
18935   need_lib_prefix=no
18936   need_version=no
18937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18938   soname_spec='${libname}${release}${shared_ext}$major'
18939   shlibpath_var=LD_LIBRARY_PATH
18940   shlibpath_overrides_runpath=yes
18941   ;;
18942
18943 openbsd*)
18944   version_type=sunos
18945   need_lib_prefix=no
18946   need_version=no
18947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18948   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18949   shlibpath_var=LD_LIBRARY_PATH
18950   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18951     case $host_os in
18952       openbsd2.[89] | openbsd2.[89].*)
18953         shlibpath_overrides_runpath=no
18954         ;;
18955       *)
18956         shlibpath_overrides_runpath=yes
18957         ;;
18958       esac
18959   else
18960     shlibpath_overrides_runpath=yes
18961   fi
18962   ;;
18963
18964 os2*)
18965   libname_spec='$name'
18966   shrext_cmds=".dll"
18967   need_lib_prefix=no
18968   library_names_spec='$libname${shared_ext} $libname.a'
18969   dynamic_linker='OS/2 ld.exe'
18970   shlibpath_var=LIBPATH
18971   ;;
18972
18973 osf3* | osf4* | osf5*)
18974   version_type=osf
18975   need_lib_prefix=no
18976   need_version=no
18977   soname_spec='${libname}${release}${shared_ext}$major'
18978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18979   shlibpath_var=LD_LIBRARY_PATH
18980   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18981   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18982   ;;
18983
18984 sco3.2v5*)
18985   version_type=osf
18986   soname_spec='${libname}${release}${shared_ext}$major'
18987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18988   shlibpath_var=LD_LIBRARY_PATH
18989   ;;
18990
18991 solaris*)
18992   version_type=linux
18993   need_lib_prefix=no
18994   need_version=no
18995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18996   soname_spec='${libname}${release}${shared_ext}$major'
18997   shlibpath_var=LD_LIBRARY_PATH
18998   shlibpath_overrides_runpath=yes
18999   hardcode_into_libs=yes
19000   # ldd complains unless libraries are executable
19001   postinstall_cmds='chmod +x $lib'
19002   ;;
19003
19004 sunos4*)
19005   version_type=sunos
19006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19007   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19008   shlibpath_var=LD_LIBRARY_PATH
19009   shlibpath_overrides_runpath=yes
19010   if test "$with_gnu_ld" = yes; then
19011     need_lib_prefix=no
19012   fi
19013   need_version=yes
19014   ;;
19015
19016 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19017   version_type=linux
19018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19019   soname_spec='${libname}${release}${shared_ext}$major'
19020   shlibpath_var=LD_LIBRARY_PATH
19021   case $host_vendor in
19022     sni)
19023       shlibpath_overrides_runpath=no
19024       need_lib_prefix=no
19025       export_dynamic_flag_spec='${wl}-Blargedynsym'
19026       runpath_var=LD_RUN_PATH
19027       ;;
19028     siemens)
19029       need_lib_prefix=no
19030       ;;
19031     motorola)
19032       need_lib_prefix=no
19033       need_version=no
19034       shlibpath_overrides_runpath=no
19035       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19036       ;;
19037   esac
19038   ;;
19039
19040 sysv4*MP*)
19041   if test -d /usr/nec ;then
19042     version_type=linux
19043     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19044     soname_spec='$libname${shared_ext}.$major'
19045     shlibpath_var=LD_LIBRARY_PATH
19046   fi
19047   ;;
19048
19049 uts4*)
19050   version_type=linux
19051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19052   soname_spec='${libname}${release}${shared_ext}$major'
19053   shlibpath_var=LD_LIBRARY_PATH
19054   ;;
19055
19056 *)
19057   dynamic_linker=no
19058   ;;
19059 esac
19060 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19061 echo "${ECHO_T}$dynamic_linker" >&6
19062 test "$dynamic_linker" = no && can_build_shared=no
19063
19064 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19065 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19066 hardcode_action_GCJ=
19067 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19068    test -n "$runpath_var_GCJ" || \
19069    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19070
19071   # We can hardcode non-existant directories.
19072   if test "$hardcode_direct_GCJ" != no &&
19073      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19074      # have to relink, otherwise we might link with an installed library
19075      # when we should be linking with a yet-to-be-installed one
19076      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19077      test "$hardcode_minus_L_GCJ" != no; then
19078     # Linking always hardcodes the temporary library directory.
19079     hardcode_action_GCJ=relink
19080   else
19081     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19082     hardcode_action_GCJ=immediate
19083   fi
19084 else
19085   # We cannot hardcode anything, or else we can only hardcode existing
19086   # directories.
19087   hardcode_action_GCJ=unsupported
19088 fi
19089 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19090 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19091
19092 if test "$hardcode_action_GCJ" = relink; then
19093   # Fast installation is not supported
19094   enable_fast_install=no
19095 elif test "$shlibpath_overrides_runpath" = yes ||
19096      test "$enable_shared" = no; then
19097   # Fast installation is not necessary
19098   enable_fast_install=needless
19099 fi
19100
19101 striplib=
19102 old_striplib=
19103 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19104 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19105 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19106   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19107   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19108   echo "$as_me:$LINENO: result: yes" >&5
19109 echo "${ECHO_T}yes" >&6
19110 else
19111 # FIXME - insert some real tests, host_os isn't really good enough
19112   case $host_os in
19113    darwin*)
19114        if test -n "$STRIP" ; then
19115          striplib="$STRIP -x"
19116          echo "$as_me:$LINENO: result: yes" >&5
19117 echo "${ECHO_T}yes" >&6
19118        else
19119   echo "$as_me:$LINENO: result: no" >&5
19120 echo "${ECHO_T}no" >&6
19121 fi
19122        ;;
19123    *)
19124   echo "$as_me:$LINENO: result: no" >&5
19125 echo "${ECHO_T}no" >&6
19126     ;;
19127   esac
19128 fi
19129
19130 if test "x$enable_dlopen" != xyes; then
19131   enable_dlopen=unknown
19132   enable_dlopen_self=unknown
19133   enable_dlopen_self_static=unknown
19134 else
19135   lt_cv_dlopen=no
19136   lt_cv_dlopen_libs=
19137
19138   case $host_os in
19139   beos*)
19140     lt_cv_dlopen="load_add_on"
19141     lt_cv_dlopen_libs=
19142     lt_cv_dlopen_self=yes
19143     ;;
19144
19145   mingw* | pw32*)
19146     lt_cv_dlopen="LoadLibrary"
19147     lt_cv_dlopen_libs=
19148    ;;
19149
19150   cygwin*)
19151     lt_cv_dlopen="dlopen"
19152     lt_cv_dlopen_libs=
19153    ;;
19154
19155   darwin*)
19156   # if libdl is installed we need to link against it
19157     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19158 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19159 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19160   echo $ECHO_N "(cached) $ECHO_C" >&6
19161 else
19162   ac_check_lib_save_LIBS=$LIBS
19163 LIBS="-ldl  $LIBS"
19164 cat >conftest.$ac_ext <<_ACEOF
19165 /* confdefs.h.  */
19166 _ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h.  */
19170
19171 /* Override any gcc2 internal prototype to avoid an error.  */
19172 #ifdef __cplusplus
19173 extern "C"
19174 #endif
19175 /* We use char because int might match the return type of a gcc2
19176    builtin and then its argument prototype would still apply.  */
19177 char dlopen ();
19178 int
19179 main ()
19180 {
19181 dlopen ();
19182   ;
19183   return 0;
19184 }
19185 _ACEOF
19186 rm -f conftest.$ac_objext conftest$ac_exeext
19187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19188   (eval $ac_link) 2>conftest.er1
19189   ac_status=$?
19190   grep -v '^ *+' conftest.er1 >conftest.err
19191   rm -f conftest.er1
19192   cat conftest.err >&5
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); } &&
19195          { ac_try='test -z "$ac_c_werror_flag"
19196                          || test ! -s conftest.err'
19197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198   (eval $ac_try) 2>&5
19199   ac_status=$?
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); }; } &&
19202          { ac_try='test -s conftest$ac_exeext'
19203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204   (eval $ac_try) 2>&5
19205   ac_status=$?
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); }; }; then
19208   ac_cv_lib_dl_dlopen=yes
19209 else
19210   echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213 ac_cv_lib_dl_dlopen=no
19214 fi
19215 rm -f conftest.err conftest.$ac_objext \
19216       conftest$ac_exeext conftest.$ac_ext
19217 LIBS=$ac_check_lib_save_LIBS
19218 fi
19219 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19220 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19221 if test $ac_cv_lib_dl_dlopen = yes; then
19222   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19223 else
19224
19225     lt_cv_dlopen="dyld"
19226     lt_cv_dlopen_libs=
19227     lt_cv_dlopen_self=yes
19228
19229 fi
19230
19231    ;;
19232
19233   *)
19234     echo "$as_me:$LINENO: checking for shl_load" >&5
19235 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19236 if test "${ac_cv_func_shl_load+set}" = set; then
19237   echo $ECHO_N "(cached) $ECHO_C" >&6
19238 else
19239   cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h.  */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h.  */
19245 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19247 #define shl_load innocuous_shl_load
19248
19249 /* System header to define __stub macros and hopefully few prototypes,
19250     which can conflict with char shl_load (); below.
19251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19252     <limits.h> exists even on freestanding compilers.  */
19253
19254 #ifdef __STDC__
19255 # include <limits.h>
19256 #else
19257 # include <assert.h>
19258 #endif
19259
19260 #undef shl_load
19261
19262 /* Override any gcc2 internal prototype to avoid an error.  */
19263 #ifdef __cplusplus
19264 extern "C"
19265 {
19266 #endif
19267 /* We use char because int might match the return type of a gcc2
19268    builtin and then its argument prototype would still apply.  */
19269 char shl_load ();
19270 /* The GNU C library defines this for functions which it implements
19271     to always fail with ENOSYS.  Some functions are actually named
19272     something starting with __ and the normal name is an alias.  */
19273 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19274 choke me
19275 #else
19276 char (*f) () = shl_load;
19277 #endif
19278 #ifdef __cplusplus
19279 }
19280 #endif
19281
19282 int
19283 main ()
19284 {
19285 return f != shl_load;
19286   ;
19287   return 0;
19288 }
19289 _ACEOF
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292   (eval $ac_link) 2>conftest.er1
19293   ac_status=$?
19294   grep -v '^ *+' conftest.er1 >conftest.err
19295   rm -f conftest.er1
19296   cat conftest.err >&5
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); } &&
19299          { ac_try='test -z "$ac_c_werror_flag"
19300                          || test ! -s conftest.err'
19301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302   (eval $ac_try) 2>&5
19303   ac_status=$?
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); }; } &&
19306          { ac_try='test -s conftest$ac_exeext'
19307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308   (eval $ac_try) 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312   ac_cv_func_shl_load=yes
19313 else
19314   echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317 ac_cv_func_shl_load=no
19318 fi
19319 rm -f conftest.err conftest.$ac_objext \
19320       conftest$ac_exeext conftest.$ac_ext
19321 fi
19322 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19323 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19324 if test $ac_cv_func_shl_load = yes; then
19325   lt_cv_dlopen="shl_load"
19326 else
19327   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19328 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19329 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19330   echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19332   ac_check_lib_save_LIBS=$LIBS
19333 LIBS="-ldld  $LIBS"
19334 cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h.  */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h.  */
19340
19341 /* Override any gcc2 internal prototype to avoid an error.  */
19342 #ifdef __cplusplus
19343 extern "C"
19344 #endif
19345 /* We use char because int might match the return type of a gcc2
19346    builtin and then its argument prototype would still apply.  */
19347 char shl_load ();
19348 int
19349 main ()
19350 {
19351 shl_load ();
19352   ;
19353   return 0;
19354 }
19355 _ACEOF
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19358   (eval $ac_link) 2>conftest.er1
19359   ac_status=$?
19360   grep -v '^ *+' conftest.er1 >conftest.err
19361   rm -f conftest.er1
19362   cat conftest.err >&5
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); } &&
19365          { ac_try='test -z "$ac_c_werror_flag"
19366                          || test ! -s conftest.err'
19367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368   (eval $ac_try) 2>&5
19369   ac_status=$?
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); }; } &&
19372          { ac_try='test -s conftest$ac_exeext'
19373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374   (eval $ac_try) 2>&5
19375   ac_status=$?
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); }; }; then
19378   ac_cv_lib_dld_shl_load=yes
19379 else
19380   echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19382
19383 ac_cv_lib_dld_shl_load=no
19384 fi
19385 rm -f conftest.err conftest.$ac_objext \
19386       conftest$ac_exeext conftest.$ac_ext
19387 LIBS=$ac_check_lib_save_LIBS
19388 fi
19389 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19390 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19391 if test $ac_cv_lib_dld_shl_load = yes; then
19392   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19393 else
19394   echo "$as_me:$LINENO: checking for dlopen" >&5
19395 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19396 if test "${ac_cv_func_dlopen+set}" = set; then
19397   echo $ECHO_N "(cached) $ECHO_C" >&6
19398 else
19399   cat >conftest.$ac_ext <<_ACEOF
19400 /* confdefs.h.  */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h.  */
19405 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19407 #define dlopen innocuous_dlopen
19408
19409 /* System header to define __stub macros and hopefully few prototypes,
19410     which can conflict with char dlopen (); below.
19411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19412     <limits.h> exists even on freestanding compilers.  */
19413
19414 #ifdef __STDC__
19415 # include <limits.h>
19416 #else
19417 # include <assert.h>
19418 #endif
19419
19420 #undef dlopen
19421
19422 /* Override any gcc2 internal prototype to avoid an error.  */
19423 #ifdef __cplusplus
19424 extern "C"
19425 {
19426 #endif
19427 /* We use char because int might match the return type of a gcc2
19428    builtin and then its argument prototype would still apply.  */
19429 char dlopen ();
19430 /* The GNU C library defines this for functions which it implements
19431     to always fail with ENOSYS.  Some functions are actually named
19432     something starting with __ and the normal name is an alias.  */
19433 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19434 choke me
19435 #else
19436 char (*f) () = dlopen;
19437 #endif
19438 #ifdef __cplusplus
19439 }
19440 #endif
19441
19442 int
19443 main ()
19444 {
19445 return f != dlopen;
19446   ;
19447   return 0;
19448 }
19449 _ACEOF
19450 rm -f conftest.$ac_objext conftest$ac_exeext
19451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19452   (eval $ac_link) 2>conftest.er1
19453   ac_status=$?
19454   grep -v '^ *+' conftest.er1 >conftest.err
19455   rm -f conftest.er1
19456   cat conftest.err >&5
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); } &&
19459          { ac_try='test -z "$ac_c_werror_flag"
19460                          || test ! -s conftest.err'
19461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462   (eval $ac_try) 2>&5
19463   ac_status=$?
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); }; } &&
19466          { ac_try='test -s conftest$ac_exeext'
19467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468   (eval $ac_try) 2>&5
19469   ac_status=$?
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); }; }; then
19472   ac_cv_func_dlopen=yes
19473 else
19474   echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19476
19477 ac_cv_func_dlopen=no
19478 fi
19479 rm -f conftest.err conftest.$ac_objext \
19480       conftest$ac_exeext conftest.$ac_ext
19481 fi
19482 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19483 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19484 if test $ac_cv_func_dlopen = yes; then
19485   lt_cv_dlopen="dlopen"
19486 else
19487   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19488 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19489 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19490   echo $ECHO_N "(cached) $ECHO_C" >&6
19491 else
19492   ac_check_lib_save_LIBS=$LIBS
19493 LIBS="-ldl  $LIBS"
19494 cat >conftest.$ac_ext <<_ACEOF
19495 /* confdefs.h.  */
19496 _ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h.  */
19500
19501 /* Override any gcc2 internal prototype to avoid an error.  */
19502 #ifdef __cplusplus
19503 extern "C"
19504 #endif
19505 /* We use char because int might match the return type of a gcc2
19506    builtin and then its argument prototype would still apply.  */
19507 char dlopen ();
19508 int
19509 main ()
19510 {
19511 dlopen ();
19512   ;
19513   return 0;
19514 }
19515 _ACEOF
19516 rm -f conftest.$ac_objext conftest$ac_exeext
19517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19518   (eval $ac_link) 2>conftest.er1
19519   ac_status=$?
19520   grep -v '^ *+' conftest.er1 >conftest.err
19521   rm -f conftest.er1
19522   cat conftest.err >&5
19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); } &&
19525          { ac_try='test -z "$ac_c_werror_flag"
19526                          || test ! -s conftest.err'
19527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528   (eval $ac_try) 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); }; } &&
19532          { ac_try='test -s conftest$ac_exeext'
19533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534   (eval $ac_try) 2>&5
19535   ac_status=$?
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); }; }; then
19538   ac_cv_lib_dl_dlopen=yes
19539 else
19540   echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19542
19543 ac_cv_lib_dl_dlopen=no
19544 fi
19545 rm -f conftest.err conftest.$ac_objext \
19546       conftest$ac_exeext conftest.$ac_ext
19547 LIBS=$ac_check_lib_save_LIBS
19548 fi
19549 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19550 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19551 if test $ac_cv_lib_dl_dlopen = yes; then
19552   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19553 else
19554   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19555 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19556 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19557   echo $ECHO_N "(cached) $ECHO_C" >&6
19558 else
19559   ac_check_lib_save_LIBS=$LIBS
19560 LIBS="-lsvld  $LIBS"
19561 cat >conftest.$ac_ext <<_ACEOF
19562 /* confdefs.h.  */
19563 _ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h.  */
19567
19568 /* Override any gcc2 internal prototype to avoid an error.  */
19569 #ifdef __cplusplus
19570 extern "C"
19571 #endif
19572 /* We use char because int might match the return type of a gcc2
19573    builtin and then its argument prototype would still apply.  */
19574 char dlopen ();
19575 int
19576 main ()
19577 {
19578 dlopen ();
19579   ;
19580   return 0;
19581 }
19582 _ACEOF
19583 rm -f conftest.$ac_objext conftest$ac_exeext
19584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19585   (eval $ac_link) 2>conftest.er1
19586   ac_status=$?
19587   grep -v '^ *+' conftest.er1 >conftest.err
19588   rm -f conftest.er1
19589   cat conftest.err >&5
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); } &&
19592          { ac_try='test -z "$ac_c_werror_flag"
19593                          || test ! -s conftest.err'
19594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595   (eval $ac_try) 2>&5
19596   ac_status=$?
19597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598   (exit $ac_status); }; } &&
19599          { ac_try='test -s conftest$ac_exeext'
19600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601   (eval $ac_try) 2>&5
19602   ac_status=$?
19603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604   (exit $ac_status); }; }; then
19605   ac_cv_lib_svld_dlopen=yes
19606 else
19607   echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19609
19610 ac_cv_lib_svld_dlopen=no
19611 fi
19612 rm -f conftest.err conftest.$ac_objext \
19613       conftest$ac_exeext conftest.$ac_ext
19614 LIBS=$ac_check_lib_save_LIBS
19615 fi
19616 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19617 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19618 if test $ac_cv_lib_svld_dlopen = yes; then
19619   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19620 else
19621   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19622 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19623 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19624   echo $ECHO_N "(cached) $ECHO_C" >&6
19625 else
19626   ac_check_lib_save_LIBS=$LIBS
19627 LIBS="-ldld  $LIBS"
19628 cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h.  */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h.  */
19634
19635 /* Override any gcc2 internal prototype to avoid an error.  */
19636 #ifdef __cplusplus
19637 extern "C"
19638 #endif
19639 /* We use char because int might match the return type of a gcc2
19640    builtin and then its argument prototype would still apply.  */
19641 char dld_link ();
19642 int
19643 main ()
19644 {
19645 dld_link ();
19646   ;
19647   return 0;
19648 }
19649 _ACEOF
19650 rm -f conftest.$ac_objext conftest$ac_exeext
19651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19652   (eval $ac_link) 2>conftest.er1
19653   ac_status=$?
19654   grep -v '^ *+' conftest.er1 >conftest.err
19655   rm -f conftest.er1
19656   cat conftest.err >&5
19657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); } &&
19659          { ac_try='test -z "$ac_c_werror_flag"
19660                          || test ! -s conftest.err'
19661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662   (eval $ac_try) 2>&5
19663   ac_status=$?
19664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); }; } &&
19666          { ac_try='test -s conftest$ac_exeext'
19667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668   (eval $ac_try) 2>&5
19669   ac_status=$?
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); }; }; then
19672   ac_cv_lib_dld_dld_link=yes
19673 else
19674   echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19676
19677 ac_cv_lib_dld_dld_link=no
19678 fi
19679 rm -f conftest.err conftest.$ac_objext \
19680       conftest$ac_exeext conftest.$ac_ext
19681 LIBS=$ac_check_lib_save_LIBS
19682 fi
19683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19684 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19685 if test $ac_cv_lib_dld_dld_link = yes; then
19686   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19687 fi
19688
19689
19690 fi
19691
19692
19693 fi
19694
19695
19696 fi
19697
19698
19699 fi
19700
19701
19702 fi
19703
19704     ;;
19705   esac
19706
19707   if test "x$lt_cv_dlopen" != xno; then
19708     enable_dlopen=yes
19709   else
19710     enable_dlopen=no
19711   fi
19712
19713   case $lt_cv_dlopen in
19714   dlopen)
19715     save_CPPFLAGS="$CPPFLAGS"
19716     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19717
19718     save_LDFLAGS="$LDFLAGS"
19719     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19720
19721     save_LIBS="$LIBS"
19722     LIBS="$lt_cv_dlopen_libs $LIBS"
19723
19724     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19725 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19726 if test "${lt_cv_dlopen_self+set}" = set; then
19727   echo $ECHO_N "(cached) $ECHO_C" >&6
19728 else
19729           if test "$cross_compiling" = yes; then :
19730   lt_cv_dlopen_self=cross
19731 else
19732   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19733   lt_status=$lt_dlunknown
19734   cat > conftest.$ac_ext <<EOF
19735 #line 19735 "configure"
19736 #include "confdefs.h"
19737
19738 #if HAVE_DLFCN_H
19739 #include <dlfcn.h>
19740 #endif
19741
19742 #include <stdio.h>
19743
19744 #ifdef RTLD_GLOBAL
19745 #  define LT_DLGLOBAL           RTLD_GLOBAL
19746 #else
19747 #  ifdef DL_GLOBAL
19748 #    define LT_DLGLOBAL         DL_GLOBAL
19749 #  else
19750 #    define LT_DLGLOBAL         0
19751 #  endif
19752 #endif
19753
19754 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19755    find out it does not work in some platform. */
19756 #ifndef LT_DLLAZY_OR_NOW
19757 #  ifdef RTLD_LAZY
19758 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19759 #  else
19760 #    ifdef DL_LAZY
19761 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19762 #    else
19763 #      ifdef RTLD_NOW
19764 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19765 #      else
19766 #        ifdef DL_NOW
19767 #          define LT_DLLAZY_OR_NOW      DL_NOW
19768 #        else
19769 #          define LT_DLLAZY_OR_NOW      0
19770 #        endif
19771 #      endif
19772 #    endif
19773 #  endif
19774 #endif
19775
19776 #ifdef __cplusplus
19777 extern "C" void exit (int);
19778 #endif
19779
19780 void fnord() { int i=42;}
19781 int main ()
19782 {
19783   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19784   int status = $lt_dlunknown;
19785
19786   if (self)
19787     {
19788       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19789       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19790       /* dlclose (self); */
19791     }
19792
19793     exit (status);
19794 }
19795 EOF
19796   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19797   (eval $ac_link) 2>&5
19798   ac_status=$?
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19801     (./conftest; exit; ) 2>/dev/null
19802     lt_status=$?
19803     case x$lt_status in
19804       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19805       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19806       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19807     esac
19808   else :
19809     # compilation failed
19810     lt_cv_dlopen_self=no
19811   fi
19812 fi
19813 rm -fr conftest*
19814
19815
19816 fi
19817 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19818 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19819
19820     if test "x$lt_cv_dlopen_self" = xyes; then
19821       LDFLAGS="$LDFLAGS $link_static_flag"
19822       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19823 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19824 if test "${lt_cv_dlopen_self_static+set}" = set; then
19825   echo $ECHO_N "(cached) $ECHO_C" >&6
19826 else
19827           if test "$cross_compiling" = yes; then :
19828   lt_cv_dlopen_self_static=cross
19829 else
19830   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19831   lt_status=$lt_dlunknown
19832   cat > conftest.$ac_ext <<EOF
19833 #line 19833 "configure"
19834 #include "confdefs.h"
19835
19836 #if HAVE_DLFCN_H
19837 #include <dlfcn.h>
19838 #endif
19839
19840 #include <stdio.h>
19841
19842 #ifdef RTLD_GLOBAL
19843 #  define LT_DLGLOBAL           RTLD_GLOBAL
19844 #else
19845 #  ifdef DL_GLOBAL
19846 #    define LT_DLGLOBAL         DL_GLOBAL
19847 #  else
19848 #    define LT_DLGLOBAL         0
19849 #  endif
19850 #endif
19851
19852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19853    find out it does not work in some platform. */
19854 #ifndef LT_DLLAZY_OR_NOW
19855 #  ifdef RTLD_LAZY
19856 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19857 #  else
19858 #    ifdef DL_LAZY
19859 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19860 #    else
19861 #      ifdef RTLD_NOW
19862 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19863 #      else
19864 #        ifdef DL_NOW
19865 #          define LT_DLLAZY_OR_NOW      DL_NOW
19866 #        else
19867 #          define LT_DLLAZY_OR_NOW      0
19868 #        endif
19869 #      endif
19870 #    endif
19871 #  endif
19872 #endif
19873
19874 #ifdef __cplusplus
19875 extern "C" void exit (int);
19876 #endif
19877
19878 void fnord() { int i=42;}
19879 int main ()
19880 {
19881   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19882   int status = $lt_dlunknown;
19883
19884   if (self)
19885     {
19886       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19887       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19888       /* dlclose (self); */
19889     }
19890
19891     exit (status);
19892 }
19893 EOF
19894   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19895   (eval $ac_link) 2>&5
19896   ac_status=$?
19897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19899     (./conftest; exit; ) 2>/dev/null
19900     lt_status=$?
19901     case x$lt_status in
19902       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19903       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19904       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19905     esac
19906   else :
19907     # compilation failed
19908     lt_cv_dlopen_self_static=no
19909   fi
19910 fi
19911 rm -fr conftest*
19912
19913
19914 fi
19915 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19916 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19917     fi
19918
19919     CPPFLAGS="$save_CPPFLAGS"
19920     LDFLAGS="$save_LDFLAGS"
19921     LIBS="$save_LIBS"
19922     ;;
19923   esac
19924
19925   case $lt_cv_dlopen_self in
19926   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19927   *) enable_dlopen_self=unknown ;;
19928   esac
19929
19930   case $lt_cv_dlopen_self_static in
19931   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19932   *) enable_dlopen_self_static=unknown ;;
19933   esac
19934 fi
19935
19936
19937 # The else clause should only fire when bootstrapping the
19938 # libtool distribution, otherwise you forgot to ship ltmain.sh
19939 # with your package, and you will get complaints that there are
19940 # no rules to generate ltmain.sh.
19941 if test -f "$ltmain"; then
19942   # See if we are running on zsh, and set the options which allow our commands through
19943   # without removal of \ escapes.
19944   if test -n "${ZSH_VERSION+set}" ; then
19945     setopt NO_GLOB_SUBST
19946   fi
19947   # Now quote all the things that may contain metacharacters while being
19948   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19949   # variables and quote the copies for generation of the libtool script.
19950   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19951     SED SHELL STRIP \
19952     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19953     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19954     deplibs_check_method reload_flag reload_cmds need_locks \
19955     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19956     lt_cv_sys_global_symbol_to_c_name_address \
19957     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19958     old_postinstall_cmds old_postuninstall_cmds \
19959     compiler_GCJ \
19960     CC_GCJ \
19961     LD_GCJ \
19962     lt_prog_compiler_wl_GCJ \
19963     lt_prog_compiler_pic_GCJ \
19964     lt_prog_compiler_static_GCJ \
19965     lt_prog_compiler_no_builtin_flag_GCJ \
19966     export_dynamic_flag_spec_GCJ \
19967     thread_safe_flag_spec_GCJ \
19968     whole_archive_flag_spec_GCJ \
19969     enable_shared_with_static_runtimes_GCJ \
19970     old_archive_cmds_GCJ \
19971     old_archive_from_new_cmds_GCJ \
19972     predep_objects_GCJ \
19973     postdep_objects_GCJ \
19974     predeps_GCJ \
19975     postdeps_GCJ \
19976     compiler_lib_search_path_GCJ \
19977     archive_cmds_GCJ \
19978     archive_expsym_cmds_GCJ \
19979     postinstall_cmds_GCJ \
19980     postuninstall_cmds_GCJ \
19981     old_archive_from_expsyms_cmds_GCJ \
19982     allow_undefined_flag_GCJ \
19983     no_undefined_flag_GCJ \
19984     export_symbols_cmds_GCJ \
19985     hardcode_libdir_flag_spec_GCJ \
19986     hardcode_libdir_flag_spec_ld_GCJ \
19987     hardcode_libdir_separator_GCJ \
19988     hardcode_automatic_GCJ \
19989     module_cmds_GCJ \
19990     module_expsym_cmds_GCJ \
19991     lt_cv_prog_compiler_c_o_GCJ \
19992     exclude_expsyms_GCJ \
19993     include_expsyms_GCJ; do
19994
19995     case $var in
19996     old_archive_cmds_GCJ | \
19997     old_archive_from_new_cmds_GCJ | \
19998     archive_cmds_GCJ | \
19999     archive_expsym_cmds_GCJ | \
20000     module_cmds_GCJ | \
20001     module_expsym_cmds_GCJ | \
20002     old_archive_from_expsyms_cmds_GCJ | \
20003     export_symbols_cmds_GCJ | \
20004     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20005     postinstall_cmds | postuninstall_cmds | \
20006     old_postinstall_cmds | old_postuninstall_cmds | \
20007     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20008       # Double-quote double-evaled strings.
20009       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20010       ;;
20011     *)
20012       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20013       ;;
20014     esac
20015   done
20016
20017   case $lt_echo in
20018   *'\$0 --fallback-echo"')
20019     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20020     ;;
20021   esac
20022
20023 cfgfile="$ofile"
20024
20025   cat <<__EOF__ >> "$cfgfile"
20026 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20027
20028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20029
20030 # Shell to use when invoking shell scripts.
20031 SHELL=$lt_SHELL
20032
20033 # Whether or not to build shared libraries.
20034 build_libtool_libs=$enable_shared
20035
20036 # Whether or not to build static libraries.
20037 build_old_libs=$enable_static
20038
20039 # Whether or not to add -lc for building shared libraries.
20040 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20041
20042 # Whether or not to disallow shared libs when runtime libs are static
20043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20044
20045 # Whether or not to optimize for fast installation.
20046 fast_install=$enable_fast_install
20047
20048 # The host system.
20049 host_alias=$host_alias
20050 host=$host
20051
20052 # An echo program that does not interpret backslashes.
20053 echo=$lt_echo
20054
20055 # The archiver.
20056 AR=$lt_AR
20057 AR_FLAGS=$lt_AR_FLAGS
20058
20059 # A C compiler.
20060 LTCC=$lt_LTCC
20061
20062 # A language-specific compiler.
20063 CC=$lt_compiler_GCJ
20064
20065 # Is the compiler the GNU C compiler?
20066 with_gcc=$GCC_GCJ
20067
20068 # An ERE matcher.
20069 EGREP=$lt_EGREP
20070
20071 # The linker used to build libraries.
20072 LD=$lt_LD_GCJ
20073
20074 # Whether we need hard or soft links.
20075 LN_S=$lt_LN_S
20076
20077 # A BSD-compatible nm program.
20078 NM=$lt_NM
20079
20080 # A symbol stripping program
20081 STRIP=$lt_STRIP
20082
20083 # Used to examine libraries when file_magic_cmd begins "file"
20084 MAGIC_CMD=$MAGIC_CMD
20085
20086 # Used on cygwin: DLL creation program.
20087 DLLTOOL="$DLLTOOL"
20088
20089 # Used on cygwin: object dumper.
20090 OBJDUMP="$OBJDUMP"
20091
20092 # Used on cygwin: assembler.
20093 AS="$AS"
20094
20095 # The name of the directory that contains temporary libtool files.
20096 objdir=$objdir
20097
20098 # How to create reloadable object files.
20099 reload_flag=$lt_reload_flag
20100 reload_cmds=$lt_reload_cmds
20101
20102 # How to pass a linker flag through the compiler.
20103 wl=$lt_lt_prog_compiler_wl_GCJ
20104
20105 # Object file suffix (normally "o").
20106 objext="$ac_objext"
20107
20108 # Old archive suffix (normally "a").
20109 libext="$libext"
20110
20111 # Shared library suffix (normally ".so").
20112 shrext_cmds='$shrext_cmds'
20113
20114 # Executable file suffix (normally "").
20115 exeext="$exeext"
20116
20117 # Additional compiler flags for building library objects.
20118 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20119 pic_mode=$pic_mode
20120
20121 # What is the maximum length of a command?
20122 max_cmd_len=$lt_cv_sys_max_cmd_len
20123
20124 # Does compiler simultaneously support -c and -o options?
20125 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20126
20127 # Must we lock files when doing compilation ?
20128 need_locks=$lt_need_locks
20129
20130 # Do we need the lib prefix for modules?
20131 need_lib_prefix=$need_lib_prefix
20132
20133 # Do we need a version for libraries?
20134 need_version=$need_version
20135
20136 # Whether dlopen is supported.
20137 dlopen_support=$enable_dlopen
20138
20139 # Whether dlopen of programs is supported.
20140 dlopen_self=$enable_dlopen_self
20141
20142 # Whether dlopen of statically linked programs is supported.
20143 dlopen_self_static=$enable_dlopen_self_static
20144
20145 # Compiler flag to prevent dynamic linking.
20146 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20147
20148 # Compiler flag to turn off builtin functions.
20149 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20150
20151 # Compiler flag to allow reflexive dlopens.
20152 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20153
20154 # Compiler flag to generate shared objects directly from archives.
20155 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20156
20157 # Compiler flag to generate thread-safe objects.
20158 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20159
20160 # Library versioning type.
20161 version_type=$version_type
20162
20163 # Format of library name prefix.
20164 libname_spec=$lt_libname_spec
20165
20166 # List of archive names.  First name is the real one, the rest are links.
20167 # The last name is the one that the linker finds with -lNAME.
20168 library_names_spec=$lt_library_names_spec
20169
20170 # The coded name of the library, if different from the real name.
20171 soname_spec=$lt_soname_spec
20172
20173 # Commands used to build and install an old-style archive.
20174 RANLIB=$lt_RANLIB
20175 old_archive_cmds=$lt_old_archive_cmds_GCJ
20176 old_postinstall_cmds=$lt_old_postinstall_cmds
20177 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20178
20179 # Create an old-style archive from a shared archive.
20180 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20181
20182 # Create a temporary old-style archive to link instead of a shared archive.
20183 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20184
20185 # Commands used to build and install a shared archive.
20186 archive_cmds=$lt_archive_cmds_GCJ
20187 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20188 postinstall_cmds=$lt_postinstall_cmds
20189 postuninstall_cmds=$lt_postuninstall_cmds
20190
20191 # Commands used to build a loadable module (assumed same as above if empty)
20192 module_cmds=$lt_module_cmds_GCJ
20193 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20194
20195 # Commands to strip libraries.
20196 old_striplib=$lt_old_striplib
20197 striplib=$lt_striplib
20198
20199 # Dependencies to place before the objects being linked to create a
20200 # shared library.
20201 predep_objects=$lt_predep_objects_GCJ
20202
20203 # Dependencies to place after the objects being linked to create a
20204 # shared library.
20205 postdep_objects=$lt_postdep_objects_GCJ
20206
20207 # Dependencies to place before the objects being linked to create a
20208 # shared library.
20209 predeps=$lt_predeps_GCJ
20210
20211 # Dependencies to place after the objects being linked to create a
20212 # shared library.
20213 postdeps=$lt_postdeps_GCJ
20214
20215 # The library search path used internally by the compiler when linking
20216 # a shared library.
20217 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20218
20219 # Method to check whether dependent libraries are shared objects.
20220 deplibs_check_method=$lt_deplibs_check_method
20221
20222 # Command to use when deplibs_check_method == file_magic.
20223 file_magic_cmd=$lt_file_magic_cmd
20224
20225 # Flag that allows shared libraries with undefined symbols to be built.
20226 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20227
20228 # Flag that forces no undefined symbols.
20229 no_undefined_flag=$lt_no_undefined_flag_GCJ
20230
20231 # Commands used to finish a libtool library installation in a directory.
20232 finish_cmds=$lt_finish_cmds
20233
20234 # Same as above, but a single script fragment to be evaled but not shown.
20235 finish_eval=$lt_finish_eval
20236
20237 # Take the output of nm and produce a listing of raw symbols and C names.
20238 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20239
20240 # Transform the output of nm in a proper C declaration
20241 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20242
20243 # Transform the output of nm in a C name address pair
20244 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20245
20246 # This is the shared library runtime path variable.
20247 runpath_var=$runpath_var
20248
20249 # This is the shared library path variable.
20250 shlibpath_var=$shlibpath_var
20251
20252 # Is shlibpath searched before the hard-coded library search path?
20253 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20254
20255 # How to hardcode a shared library path into an executable.
20256 hardcode_action=$hardcode_action_GCJ
20257
20258 # Whether we should hardcode library paths into libraries.
20259 hardcode_into_libs=$hardcode_into_libs
20260
20261 # Flag to hardcode \$libdir into a binary during linking.
20262 # This must work even if \$libdir does not exist.
20263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20264
20265 # If ld is used when linking, flag to hardcode \$libdir into
20266 # a binary during linking. This must work even if \$libdir does
20267 # not exist.
20268 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20269
20270 # Whether we need a single -rpath flag with a separated argument.
20271 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20272
20273 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20274 # resulting binary.
20275 hardcode_direct=$hardcode_direct_GCJ
20276
20277 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20278 # resulting binary.
20279 hardcode_minus_L=$hardcode_minus_L_GCJ
20280
20281 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20282 # the resulting binary.
20283 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20284
20285 # Set to yes if building a shared library automatically hardcodes DIR into the library
20286 # and all subsequent libraries and executables linked against it.
20287 hardcode_automatic=$hardcode_automatic_GCJ
20288
20289 # Variables whose values should be saved in libtool wrapper scripts and
20290 # restored at relink time.
20291 variables_saved_for_relink="$variables_saved_for_relink"
20292
20293 # Whether libtool must link a program against all its dependency libraries.
20294 link_all_deplibs=$link_all_deplibs_GCJ
20295
20296 # Compile-time system search path for libraries
20297 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20298
20299 # Run-time system search path for libraries
20300 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20301
20302 # Fix the shell variable \$srcfile for the compiler.
20303 fix_srcfile_path="$fix_srcfile_path_GCJ"
20304
20305 # Set to yes if exported symbols are required.
20306 always_export_symbols=$always_export_symbols_GCJ
20307
20308 # The commands to list exported symbols.
20309 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20310
20311 # The commands to extract the exported symbol list from a shared archive.
20312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20313
20314 # Symbols that should not be listed in the preloaded symbols.
20315 exclude_expsyms=$lt_exclude_expsyms_GCJ
20316
20317 # Symbols that must always be exported.
20318 include_expsyms=$lt_include_expsyms_GCJ
20319
20320 # ### END LIBTOOL TAG CONFIG: $tagname
20321
20322 __EOF__
20323
20324
20325 else
20326   # If there is no Makefile yet, we rely on a make rule to execute
20327   # `config.status --recheck' to rerun these tests and create the
20328   # libtool script then.
20329   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20330   if test -f "$ltmain_in"; then
20331     test -f Makefile && make "$ltmain"
20332   fi
20333 fi
20334
20335
20336 ac_ext=c
20337 ac_cpp='$CPP $CPPFLAGS'
20338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20341
20342 CC="$lt_save_CC"
20343
20344         else
20345           tagname=""
20346         fi
20347         ;;
20348
20349       RC)
20350         ac_ext=c
20351 ac_cpp='$CPP $CPPFLAGS'
20352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20355
20356
20357 # Source file extension for RC test sources.
20358 ac_ext=rc
20359
20360 # Object file extension for compiled RC test sources.
20361 objext=o
20362 objext_RC=$objext
20363
20364 # Code to be used in simple compile tests
20365 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20366
20367 # Code to be used in simple link tests
20368 lt_simple_link_test_code="$lt_simple_compile_test_code"
20369
20370 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20371
20372 # If no C compiler was specified, use CC.
20373 LTCC=${LTCC-"$CC"}
20374
20375 # Allow CC to be a program name with arguments.
20376 compiler=$CC
20377
20378
20379 # Allow CC to be a program name with arguments.
20380 lt_save_CC="$CC"
20381 CC=${RC-"windres"}
20382 compiler=$CC
20383 compiler_RC=$CC
20384 lt_cv_prog_compiler_c_o_RC=yes
20385
20386 # The else clause should only fire when bootstrapping the
20387 # libtool distribution, otherwise you forgot to ship ltmain.sh
20388 # with your package, and you will get complaints that there are
20389 # no rules to generate ltmain.sh.
20390 if test -f "$ltmain"; then
20391   # See if we are running on zsh, and set the options which allow our commands through
20392   # without removal of \ escapes.
20393   if test -n "${ZSH_VERSION+set}" ; then
20394     setopt NO_GLOB_SUBST
20395   fi
20396   # Now quote all the things that may contain metacharacters while being
20397   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20398   # variables and quote the copies for generation of the libtool script.
20399   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20400     SED SHELL STRIP \
20401     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20402     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20403     deplibs_check_method reload_flag reload_cmds need_locks \
20404     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20405     lt_cv_sys_global_symbol_to_c_name_address \
20406     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20407     old_postinstall_cmds old_postuninstall_cmds \
20408     compiler_RC \
20409     CC_RC \
20410     LD_RC \
20411     lt_prog_compiler_wl_RC \
20412     lt_prog_compiler_pic_RC \
20413     lt_prog_compiler_static_RC \
20414     lt_prog_compiler_no_builtin_flag_RC \
20415     export_dynamic_flag_spec_RC \
20416     thread_safe_flag_spec_RC \
20417     whole_archive_flag_spec_RC \
20418     enable_shared_with_static_runtimes_RC \
20419     old_archive_cmds_RC \
20420     old_archive_from_new_cmds_RC \
20421     predep_objects_RC \
20422     postdep_objects_RC \
20423     predeps_RC \
20424     postdeps_RC \
20425     compiler_lib_search_path_RC \
20426     archive_cmds_RC \
20427     archive_expsym_cmds_RC \
20428     postinstall_cmds_RC \
20429     postuninstall_cmds_RC \
20430     old_archive_from_expsyms_cmds_RC \
20431     allow_undefined_flag_RC \
20432     no_undefined_flag_RC \
20433     export_symbols_cmds_RC \
20434     hardcode_libdir_flag_spec_RC \
20435     hardcode_libdir_flag_spec_ld_RC \
20436     hardcode_libdir_separator_RC \
20437     hardcode_automatic_RC \
20438     module_cmds_RC \
20439     module_expsym_cmds_RC \
20440     lt_cv_prog_compiler_c_o_RC \
20441     exclude_expsyms_RC \
20442     include_expsyms_RC; do
20443
20444     case $var in
20445     old_archive_cmds_RC | \
20446     old_archive_from_new_cmds_RC | \
20447     archive_cmds_RC | \
20448     archive_expsym_cmds_RC | \
20449     module_cmds_RC | \
20450     module_expsym_cmds_RC | \
20451     old_archive_from_expsyms_cmds_RC | \
20452     export_symbols_cmds_RC | \
20453     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20454     postinstall_cmds | postuninstall_cmds | \
20455     old_postinstall_cmds | old_postuninstall_cmds | \
20456     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20457       # Double-quote double-evaled strings.
20458       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20459       ;;
20460     *)
20461       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20462       ;;
20463     esac
20464   done
20465
20466   case $lt_echo in
20467   *'\$0 --fallback-echo"')
20468     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20469     ;;
20470   esac
20471
20472 cfgfile="$ofile"
20473
20474   cat <<__EOF__ >> "$cfgfile"
20475 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20476
20477 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20478
20479 # Shell to use when invoking shell scripts.
20480 SHELL=$lt_SHELL
20481
20482 # Whether or not to build shared libraries.
20483 build_libtool_libs=$enable_shared
20484
20485 # Whether or not to build static libraries.
20486 build_old_libs=$enable_static
20487
20488 # Whether or not to add -lc for building shared libraries.
20489 build_libtool_need_lc=$archive_cmds_need_lc_RC
20490
20491 # Whether or not to disallow shared libs when runtime libs are static
20492 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20493
20494 # Whether or not to optimize for fast installation.
20495 fast_install=$enable_fast_install
20496
20497 # The host system.
20498 host_alias=$host_alias
20499 host=$host
20500
20501 # An echo program that does not interpret backslashes.
20502 echo=$lt_echo
20503
20504 # The archiver.
20505 AR=$lt_AR
20506 AR_FLAGS=$lt_AR_FLAGS
20507
20508 # A C compiler.
20509 LTCC=$lt_LTCC
20510
20511 # A language-specific compiler.
20512 CC=$lt_compiler_RC
20513
20514 # Is the compiler the GNU C compiler?
20515 with_gcc=$GCC_RC
20516
20517 # An ERE matcher.
20518 EGREP=$lt_EGREP
20519
20520 # The linker used to build libraries.
20521 LD=$lt_LD_RC
20522
20523 # Whether we need hard or soft links.
20524 LN_S=$lt_LN_S
20525
20526 # A BSD-compatible nm program.
20527 NM=$lt_NM
20528
20529 # A symbol stripping program
20530 STRIP=$lt_STRIP
20531
20532 # Used to examine libraries when file_magic_cmd begins "file"
20533 MAGIC_CMD=$MAGIC_CMD
20534
20535 # Used on cygwin: DLL creation program.
20536 DLLTOOL="$DLLTOOL"
20537
20538 # Used on cygwin: object dumper.
20539 OBJDUMP="$OBJDUMP"
20540
20541 # Used on cygwin: assembler.
20542 AS="$AS"
20543
20544 # The name of the directory that contains temporary libtool files.
20545 objdir=$objdir
20546
20547 # How to create reloadable object files.
20548 reload_flag=$lt_reload_flag
20549 reload_cmds=$lt_reload_cmds
20550
20551 # How to pass a linker flag through the compiler.
20552 wl=$lt_lt_prog_compiler_wl_RC
20553
20554 # Object file suffix (normally "o").
20555 objext="$ac_objext"
20556
20557 # Old archive suffix (normally "a").
20558 libext="$libext"
20559
20560 # Shared library suffix (normally ".so").
20561 shrext_cmds='$shrext_cmds'
20562
20563 # Executable file suffix (normally "").
20564 exeext="$exeext"
20565
20566 # Additional compiler flags for building library objects.
20567 pic_flag=$lt_lt_prog_compiler_pic_RC
20568 pic_mode=$pic_mode
20569
20570 # What is the maximum length of a command?
20571 max_cmd_len=$lt_cv_sys_max_cmd_len
20572
20573 # Does compiler simultaneously support -c and -o options?
20574 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20575
20576 # Must we lock files when doing compilation ?
20577 need_locks=$lt_need_locks
20578
20579 # Do we need the lib prefix for modules?
20580 need_lib_prefix=$need_lib_prefix
20581
20582 # Do we need a version for libraries?
20583 need_version=$need_version
20584
20585 # Whether dlopen is supported.
20586 dlopen_support=$enable_dlopen
20587
20588 # Whether dlopen of programs is supported.
20589 dlopen_self=$enable_dlopen_self
20590
20591 # Whether dlopen of statically linked programs is supported.
20592 dlopen_self_static=$enable_dlopen_self_static
20593
20594 # Compiler flag to prevent dynamic linking.
20595 link_static_flag=$lt_lt_prog_compiler_static_RC
20596
20597 # Compiler flag to turn off builtin functions.
20598 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20599
20600 # Compiler flag to allow reflexive dlopens.
20601 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20602
20603 # Compiler flag to generate shared objects directly from archives.
20604 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20605
20606 # Compiler flag to generate thread-safe objects.
20607 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20608
20609 # Library versioning type.
20610 version_type=$version_type
20611
20612 # Format of library name prefix.
20613 libname_spec=$lt_libname_spec
20614
20615 # List of archive names.  First name is the real one, the rest are links.
20616 # The last name is the one that the linker finds with -lNAME.
20617 library_names_spec=$lt_library_names_spec
20618
20619 # The coded name of the library, if different from the real name.
20620 soname_spec=$lt_soname_spec
20621
20622 # Commands used to build and install an old-style archive.
20623 RANLIB=$lt_RANLIB
20624 old_archive_cmds=$lt_old_archive_cmds_RC
20625 old_postinstall_cmds=$lt_old_postinstall_cmds
20626 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20627
20628 # Create an old-style archive from a shared archive.
20629 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20630
20631 # Create a temporary old-style archive to link instead of a shared archive.
20632 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20633
20634 # Commands used to build and install a shared archive.
20635 archive_cmds=$lt_archive_cmds_RC
20636 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20637 postinstall_cmds=$lt_postinstall_cmds
20638 postuninstall_cmds=$lt_postuninstall_cmds
20639
20640 # Commands used to build a loadable module (assumed same as above if empty)
20641 module_cmds=$lt_module_cmds_RC
20642 module_expsym_cmds=$lt_module_expsym_cmds_RC
20643
20644 # Commands to strip libraries.
20645 old_striplib=$lt_old_striplib
20646 striplib=$lt_striplib
20647
20648 # Dependencies to place before the objects being linked to create a
20649 # shared library.
20650 predep_objects=$lt_predep_objects_RC
20651
20652 # Dependencies to place after the objects being linked to create a
20653 # shared library.
20654 postdep_objects=$lt_postdep_objects_RC
20655
20656 # Dependencies to place before the objects being linked to create a
20657 # shared library.
20658 predeps=$lt_predeps_RC
20659
20660 # Dependencies to place after the objects being linked to create a
20661 # shared library.
20662 postdeps=$lt_postdeps_RC
20663
20664 # The library search path used internally by the compiler when linking
20665 # a shared library.
20666 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20667
20668 # Method to check whether dependent libraries are shared objects.
20669 deplibs_check_method=$lt_deplibs_check_method
20670
20671 # Command to use when deplibs_check_method == file_magic.
20672 file_magic_cmd=$lt_file_magic_cmd
20673
20674 # Flag that allows shared libraries with undefined symbols to be built.
20675 allow_undefined_flag=$lt_allow_undefined_flag_RC
20676
20677 # Flag that forces no undefined symbols.
20678 no_undefined_flag=$lt_no_undefined_flag_RC
20679
20680 # Commands used to finish a libtool library installation in a directory.
20681 finish_cmds=$lt_finish_cmds
20682
20683 # Same as above, but a single script fragment to be evaled but not shown.
20684 finish_eval=$lt_finish_eval
20685
20686 # Take the output of nm and produce a listing of raw symbols and C names.
20687 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20688
20689 # Transform the output of nm in a proper C declaration
20690 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20691
20692 # Transform the output of nm in a C name address pair
20693 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20694
20695 # This is the shared library runtime path variable.
20696 runpath_var=$runpath_var
20697
20698 # This is the shared library path variable.
20699 shlibpath_var=$shlibpath_var
20700
20701 # Is shlibpath searched before the hard-coded library search path?
20702 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20703
20704 # How to hardcode a shared library path into an executable.
20705 hardcode_action=$hardcode_action_RC
20706
20707 # Whether we should hardcode library paths into libraries.
20708 hardcode_into_libs=$hardcode_into_libs
20709
20710 # Flag to hardcode \$libdir into a binary during linking.
20711 # This must work even if \$libdir does not exist.
20712 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20713
20714 # If ld is used when linking, flag to hardcode \$libdir into
20715 # a binary during linking. This must work even if \$libdir does
20716 # not exist.
20717 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20718
20719 # Whether we need a single -rpath flag with a separated argument.
20720 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20721
20722 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20723 # resulting binary.
20724 hardcode_direct=$hardcode_direct_RC
20725
20726 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20727 # resulting binary.
20728 hardcode_minus_L=$hardcode_minus_L_RC
20729
20730 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20731 # the resulting binary.
20732 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20733
20734 # Set to yes if building a shared library automatically hardcodes DIR into the library
20735 # and all subsequent libraries and executables linked against it.
20736 hardcode_automatic=$hardcode_automatic_RC
20737
20738 # Variables whose values should be saved in libtool wrapper scripts and
20739 # restored at relink time.
20740 variables_saved_for_relink="$variables_saved_for_relink"
20741
20742 # Whether libtool must link a program against all its dependency libraries.
20743 link_all_deplibs=$link_all_deplibs_RC
20744
20745 # Compile-time system search path for libraries
20746 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20747
20748 # Run-time system search path for libraries
20749 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20750
20751 # Fix the shell variable \$srcfile for the compiler.
20752 fix_srcfile_path="$fix_srcfile_path_RC"
20753
20754 # Set to yes if exported symbols are required.
20755 always_export_symbols=$always_export_symbols_RC
20756
20757 # The commands to list exported symbols.
20758 export_symbols_cmds=$lt_export_symbols_cmds_RC
20759
20760 # The commands to extract the exported symbol list from a shared archive.
20761 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20762
20763 # Symbols that should not be listed in the preloaded symbols.
20764 exclude_expsyms=$lt_exclude_expsyms_RC
20765
20766 # Symbols that must always be exported.
20767 include_expsyms=$lt_include_expsyms_RC
20768
20769 # ### END LIBTOOL TAG CONFIG: $tagname
20770
20771 __EOF__
20772
20773
20774 else
20775   # If there is no Makefile yet, we rely on a make rule to execute
20776   # `config.status --recheck' to rerun these tests and create the
20777   # libtool script then.
20778   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20779   if test -f "$ltmain_in"; then
20780     test -f Makefile && make "$ltmain"
20781   fi
20782 fi
20783
20784
20785 ac_ext=c
20786 ac_cpp='$CPP $CPPFLAGS'
20787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20790
20791 CC="$lt_save_CC"
20792
20793         ;;
20794
20795       *)
20796         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20797 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20798    { (exit 1); exit 1; }; }
20799         ;;
20800       esac
20801
20802       # Append the new tag name to the list of available tags.
20803       if test -n "$tagname" ; then
20804       available_tags="$available_tags $tagname"
20805     fi
20806     fi
20807   done
20808   IFS="$lt_save_ifs"
20809
20810   # Now substitute the updated list of available tags.
20811   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20812     mv "${ofile}T" "$ofile"
20813     chmod +x "$ofile"
20814   else
20815     rm -f "${ofile}T"
20816     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20817 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20818    { (exit 1); exit 1; }; }
20819   fi
20820 fi
20821
20822
20823
20824 # This can be used to rebuild libtool when needed
20825 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20826
20827 # Always use our own libtool.
20828 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
20829
20830 # Prevent multiple expansion
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852 # Extract the first word of "dot", so it can be a program name with args.
20853 set dummy dot; ac_word=$2
20854 echo "$as_me:$LINENO: checking for $ac_word" >&5
20855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20856 if test "${ac_cv_path_DOT+set}" = set; then
20857   echo $ECHO_N "(cached) $ECHO_C" >&6
20858 else
20859   case $DOT in
20860   [\\/]* | ?:[\\/]*)
20861   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20862   ;;
20863   *)
20864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20865 for as_dir in $PATH
20866 do
20867   IFS=$as_save_IFS
20868   test -z "$as_dir" && as_dir=.
20869   for ac_exec_ext in '' $ac_executable_extensions; do
20870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20871     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
20872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20873     break 2
20874   fi
20875 done
20876 done
20877
20878   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
20879   ;;
20880 esac
20881 fi
20882 DOT=$ac_cv_path_DOT
20883
20884 if test -n "$DOT"; then
20885   echo "$as_me:$LINENO: result: $DOT" >&5
20886 echo "${ECHO_T}$DOT" >&6
20887 else
20888   echo "$as_me:$LINENO: result: no" >&5
20889 echo "${ECHO_T}no" >&6
20890 fi
20891
20892 # Extract the first word of "etags", so it can be a program name with args.
20893 set dummy etags; ac_word=$2
20894 echo "$as_me:$LINENO: checking for $ac_word" >&5
20895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20896 if test "${ac_cv_path_ETAGS+set}" = set; then
20897   echo $ECHO_N "(cached) $ECHO_C" >&6
20898 else
20899   case $ETAGS in
20900   [\\/]* | ?:[\\/]*)
20901   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
20902   ;;
20903   *)
20904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20905 for as_dir in $PATH
20906 do
20907   IFS=$as_save_IFS
20908   test -z "$as_dir" && as_dir=.
20909   for ac_exec_ext in '' $ac_executable_extensions; do
20910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20911     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
20912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20913     break 2
20914   fi
20915 done
20916 done
20917
20918   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
20919   ;;
20920 esac
20921 fi
20922 ETAGS=$ac_cv_path_ETAGS
20923
20924 if test -n "$ETAGS"; then
20925   echo "$as_me:$LINENO: result: $ETAGS" >&5
20926 echo "${ECHO_T}$ETAGS" >&6
20927 else
20928   echo "$as_me:$LINENO: result: no" >&5
20929 echo "${ECHO_T}no" >&6
20930 fi
20931
20932 # Extract the first word of "python", so it can be a program name with args.
20933 set dummy python; ac_word=$2
20934 echo "$as_me:$LINENO: checking for $ac_word" >&5
20935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20936 if test "${ac_cv_path_PYTHON+set}" = set; then
20937   echo $ECHO_N "(cached) $ECHO_C" >&6
20938 else
20939   case $PYTHON in
20940   [\\/]* | ?:[\\/]*)
20941   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20942   ;;
20943   *)
20944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20945 for as_dir in $PATH
20946 do
20947   IFS=$as_save_IFS
20948   test -z "$as_dir" && as_dir=.
20949   for ac_exec_ext in '' $ac_executable_extensions; do
20950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20951     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20953     break 2
20954   fi
20955 done
20956 done
20957
20958   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
20959   ;;
20960 esac
20961 fi
20962 PYTHON=$ac_cv_path_PYTHON
20963
20964 if test -n "$PYTHON"; then
20965   echo "$as_me:$LINENO: result: $PYTHON" >&5
20966 echo "${ECHO_T}$PYTHON" >&6
20967 else
20968   echo "$as_me:$LINENO: result: no" >&5
20969 echo "${ECHO_T}no" >&6
20970 fi
20971
20972 # Extract the first word of "qmtest", so it can be a program name with args.
20973 set dummy qmtest; ac_word=$2
20974 echo "$as_me:$LINENO: checking for $ac_word" >&5
20975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20976 if test "${ac_cv_path_QMTEST+set}" = set; then
20977   echo $ECHO_N "(cached) $ECHO_C" >&6
20978 else
20979   case $QMTEST in
20980   [\\/]* | ?:[\\/]*)
20981   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
20982   ;;
20983   *)
20984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20985 for as_dir in $PATH
20986 do
20987   IFS=$as_save_IFS
20988   test -z "$as_dir" && as_dir=.
20989   for ac_exec_ext in '' $ac_executable_extensions; do
20990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20991     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
20992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20993     break 2
20994   fi
20995 done
20996 done
20997
20998   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
20999   ;;
21000 esac
21001 fi
21002 QMTEST=$ac_cv_path_QMTEST
21003
21004 if test -n "$QMTEST"; then
21005   echo "$as_me:$LINENO: result: $QMTEST" >&5
21006 echo "${ECHO_T}$QMTEST" >&6
21007 else
21008   echo "$as_me:$LINENO: result: no" >&5
21009 echo "${ECHO_T}no" >&6
21010 fi
21011
21012
21013
21014 if test "$GCC" != "yes"
21015 then
21016   { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
21017 echo "$as_me: error: gcc required but not found" >&2;}
21018    { (exit 1); exit 1; }; }
21019 fi
21020
21021 if test "$GXX" != "yes"
21022 then
21023   { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
21024 echo "$as_me: error: g++ required but not found" >&2;}
21025    { (exit 1); exit 1; }; }
21026 fi
21027
21028 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
21029 if test "$gccmajor" -lt "3"
21030 then
21031   { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
21032 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
21033    { (exit 1); exit 1; }; }
21034 fi
21035
21036  echo "$as_me:$LINENO: checking for GNU make" >&5
21037 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
21038 if test "${_cv_gnu_make_command+set}" = set; then
21039   echo $ECHO_N "(cached) $ECHO_C" >&6
21040 else
21041   _cv_gnu_make_command='' ;
21042                 for a in "$MAKE" make gmake gnumake ; do
21043                         if test -z "$a" ; then continue ; fi ;
21044                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
21045                                 _cv_gnu_make_command=$a ;
21046                                 break;
21047                         fi
21048                 done ;
21049
21050 fi
21051 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
21052 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
21053         if test  "x$_cv_gnu_make_command" != "x"  ; then
21054                 ifGNUmake='' ;
21055         else
21056                 ifGNUmake='#' ;
21057                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
21058 echo "${ECHO_T}\"Not found\"" >&6;
21059         fi
21060
21061
21062 if test -z "$_cv_gnu_make_command"
21063 then
21064   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
21065 echo "$as_me: error: GNU Make required but not found" >&2;}
21066    { (exit 1); exit 1; }; }
21067 fi
21068
21069 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
21070 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
21071 LLVM_GCC_CHECK=no
21072 if test -d "$LLVMGCCDIR"
21073 then
21074   if test -x "$LLVMGCCDIR/bin/gcc"
21075   then
21076     LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
21077   fi
21078 fi
21079 llvmgccwarn=no
21080 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
21081 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
21082 if test "$LLVM_GCC_CHECK" = "no"
21083 then
21084     llvmgccwarn=yes
21085 fi
21086
21087 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21088 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
21089 LLVM_GCC_SANE=no
21090 if test -x "$LLVM_GCC_CHECK"
21091 then
21092   cp /dev/null conftest.c
21093   "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
21094   if test $? -eq 0
21095   then
21096     LLVM_GCC_SANE=yes
21097   fi
21098   rm conftest.c
21099   llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
21100   LLVMCC1=$llvmcc1path
21101
21102   llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
21103   LLVMCC1PLUS=$llvmcc1pluspath
21104
21105 fi
21106 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
21107 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
21108 if test "$LLVM_GCC_SANE" = "no"
21109 then
21110   llvmgccwarn=yes
21111 fi
21112
21113 etags_version=`$ETAGS --version 2>&1`
21114 case "$etags_version" in
21115   *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
21116   *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
21117   *) ETAGSFLAGS="" ;;
21118 esac
21119 ETAGSFLAGS=$ETAGSFLAGS
21120
21121
21122 if test "$PYTHON" = "false"
21123 then
21124   { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
21125 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
21126 fi
21127 if test "$QMTEST" = "false"
21128 then
21129   { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
21130 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
21131 fi
21132
21133 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
21134 pymajor=`echo $pyversion | cut -d. -f1`
21135 pyminor=`echo $pyversion | cut -d. -f2`
21136
21137 if test "$pymajor" -ge "2"
21138 then
21139   if test "$pymajor" -eq "2"
21140   then
21141     if test "$pyminor" -lt "2"
21142     then
21143       { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
21144 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
21145     fi
21146   fi
21147 else
21148   { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
21149 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
21150 fi
21151
21152
21153
21154 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
21155 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
21156 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
21157   echo $ECHO_N "(cached) $ECHO_C" >&6
21158 else
21159   ac_check_lib_save_LIBS=$LIBS
21160 LIBS="-lelf  $LIBS"
21161 cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h.  */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h.  */
21167
21168 /* Override any gcc2 internal prototype to avoid an error.  */
21169 #ifdef __cplusplus
21170 extern "C"
21171 #endif
21172 /* We use char because int might match the return type of a gcc2
21173    builtin and then its argument prototype would still apply.  */
21174 char elf_begin ();
21175 int
21176 main ()
21177 {
21178 elf_begin ();
21179   ;
21180   return 0;
21181 }
21182 _ACEOF
21183 rm -f conftest.$ac_objext conftest$ac_exeext
21184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21185   (eval $ac_link) 2>conftest.er1
21186   ac_status=$?
21187   grep -v '^ *+' conftest.er1 >conftest.err
21188   rm -f conftest.er1
21189   cat conftest.err >&5
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); } &&
21192          { ac_try='test -z "$ac_c_werror_flag"
21193                          || test ! -s conftest.err'
21194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195   (eval $ac_try) 2>&5
21196   ac_status=$?
21197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198   (exit $ac_status); }; } &&
21199          { ac_try='test -s conftest$ac_exeext'
21200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201   (eval $ac_try) 2>&5
21202   ac_status=$?
21203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204   (exit $ac_status); }; }; then
21205   ac_cv_lib_elf_elf_begin=yes
21206 else
21207   echo "$as_me: failed program was:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21209
21210 ac_cv_lib_elf_elf_begin=no
21211 fi
21212 rm -f conftest.err conftest.$ac_objext \
21213       conftest$ac_exeext conftest.$ac_ext
21214 LIBS=$ac_check_lib_save_LIBS
21215 fi
21216 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
21217 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
21218 if test $ac_cv_lib_elf_elf_begin = yes; then
21219   cat >>confdefs.h <<_ACEOF
21220 #define HAVE_LIBELF 1
21221 _ACEOF
21222
21223   LIBS="-lelf $LIBS"
21224
21225 fi
21226
21227
21228 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
21229 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
21230 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
21231   echo $ECHO_N "(cached) $ECHO_C" >&6
21232 else
21233   ac_check_lib_save_LIBS=$LIBS
21234 LIBS="-lbz2  $LIBS"
21235 cat >conftest.$ac_ext <<_ACEOF
21236 /* confdefs.h.  */
21237 _ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h.  */
21241
21242 /* Override any gcc2 internal prototype to avoid an error.  */
21243 #ifdef __cplusplus
21244 extern "C"
21245 #endif
21246 /* We use char because int might match the return type of a gcc2
21247    builtin and then its argument prototype would still apply.  */
21248 char BZ2_bzCompressInit ();
21249 int
21250 main ()
21251 {
21252 BZ2_bzCompressInit ();
21253   ;
21254   return 0;
21255 }
21256 _ACEOF
21257 rm -f conftest.$ac_objext conftest$ac_exeext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21259   (eval $ac_link) 2>conftest.er1
21260   ac_status=$?
21261   grep -v '^ *+' conftest.er1 >conftest.err
21262   rm -f conftest.er1
21263   cat conftest.err >&5
21264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); } &&
21266          { ac_try='test -z "$ac_c_werror_flag"
21267                          || test ! -s conftest.err'
21268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269   (eval $ac_try) 2>&5
21270   ac_status=$?
21271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272   (exit $ac_status); }; } &&
21273          { ac_try='test -s conftest$ac_exeext'
21274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275   (eval $ac_try) 2>&5
21276   ac_status=$?
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); }; }; then
21279   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
21280 else
21281   echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21283
21284 ac_cv_lib_bz2_BZ2_bzCompressInit=no
21285 fi
21286 rm -f conftest.err conftest.$ac_objext \
21287       conftest$ac_exeext conftest.$ac_ext
21288 LIBS=$ac_check_lib_save_LIBS
21289 fi
21290 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
21291 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
21292 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
21293   bzip2_found=1
21294 else
21295   bzip2_found=0
21296 fi
21297
21298 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
21299 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
21300 if test "${ac_cv_lib_z_gzopen+set}" = set; then
21301   echo $ECHO_N "(cached) $ECHO_C" >&6
21302 else
21303   ac_check_lib_save_LIBS=$LIBS
21304 LIBS="-lz  $LIBS"
21305 cat >conftest.$ac_ext <<_ACEOF
21306 /* confdefs.h.  */
21307 _ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h.  */
21311
21312 /* Override any gcc2 internal prototype to avoid an error.  */
21313 #ifdef __cplusplus
21314 extern "C"
21315 #endif
21316 /* We use char because int might match the return type of a gcc2
21317    builtin and then its argument prototype would still apply.  */
21318 char gzopen ();
21319 int
21320 main ()
21321 {
21322 gzopen ();
21323   ;
21324   return 0;
21325 }
21326 _ACEOF
21327 rm -f conftest.$ac_objext conftest$ac_exeext
21328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21329   (eval $ac_link) 2>conftest.er1
21330   ac_status=$?
21331   grep -v '^ *+' conftest.er1 >conftest.err
21332   rm -f conftest.er1
21333   cat conftest.err >&5
21334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335   (exit $ac_status); } &&
21336          { ac_try='test -z "$ac_c_werror_flag"
21337                          || test ! -s conftest.err'
21338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339   (eval $ac_try) 2>&5
21340   ac_status=$?
21341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342   (exit $ac_status); }; } &&
21343          { ac_try='test -s conftest$ac_exeext'
21344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345   (eval $ac_try) 2>&5
21346   ac_status=$?
21347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348   (exit $ac_status); }; }; then
21349   ac_cv_lib_z_gzopen=yes
21350 else
21351   echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21353
21354 ac_cv_lib_z_gzopen=no
21355 fi
21356 rm -f conftest.err conftest.$ac_objext \
21357       conftest$ac_exeext conftest.$ac_ext
21358 LIBS=$ac_check_lib_save_LIBS
21359 fi
21360 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
21361 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
21362 if test $ac_cv_lib_z_gzopen = yes; then
21363   zlib_found=1
21364 else
21365   zlib_found=0
21366 fi
21367
21368
21369 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21370 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
21371 if test "${ac_cv_search_dlopen+set}" = set; then
21372   echo $ECHO_N "(cached) $ECHO_C" >&6
21373 else
21374   ac_func_search_save_LIBS=$LIBS
21375 ac_cv_search_dlopen=no
21376 cat >conftest.$ac_ext <<_ACEOF
21377 /* confdefs.h.  */
21378 _ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h.  */
21382
21383 /* Override any gcc2 internal prototype to avoid an error.  */
21384 #ifdef __cplusplus
21385 extern "C"
21386 #endif
21387 /* We use char because int might match the return type of a gcc2
21388    builtin and then its argument prototype would still apply.  */
21389 char dlopen ();
21390 int
21391 main ()
21392 {
21393 dlopen ();
21394   ;
21395   return 0;
21396 }
21397 _ACEOF
21398 rm -f conftest.$ac_objext conftest$ac_exeext
21399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21400   (eval $ac_link) 2>conftest.er1
21401   ac_status=$?
21402   grep -v '^ *+' conftest.er1 >conftest.err
21403   rm -f conftest.er1
21404   cat conftest.err >&5
21405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406   (exit $ac_status); } &&
21407          { ac_try='test -z "$ac_c_werror_flag"
21408                          || test ! -s conftest.err'
21409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410   (eval $ac_try) 2>&5
21411   ac_status=$?
21412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413   (exit $ac_status); }; } &&
21414          { ac_try='test -s conftest$ac_exeext'
21415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416   (eval $ac_try) 2>&5
21417   ac_status=$?
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   (exit $ac_status); }; }; then
21420   ac_cv_search_dlopen="none required"
21421 else
21422   echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21424
21425 fi
21426 rm -f conftest.err conftest.$ac_objext \
21427       conftest$ac_exeext conftest.$ac_ext
21428 if test "$ac_cv_search_dlopen" = no; then
21429   for ac_lib in dl; do
21430     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21431     cat >conftest.$ac_ext <<_ACEOF
21432 /* confdefs.h.  */
21433 _ACEOF
21434 cat confdefs.h >>conftest.$ac_ext
21435 cat >>conftest.$ac_ext <<_ACEOF
21436 /* end confdefs.h.  */
21437
21438 /* Override any gcc2 internal prototype to avoid an error.  */
21439 #ifdef __cplusplus
21440 extern "C"
21441 #endif
21442 /* We use char because int might match the return type of a gcc2
21443    builtin and then its argument prototype would still apply.  */
21444 char dlopen ();
21445 int
21446 main ()
21447 {
21448 dlopen ();
21449   ;
21450   return 0;
21451 }
21452 _ACEOF
21453 rm -f conftest.$ac_objext conftest$ac_exeext
21454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21455   (eval $ac_link) 2>conftest.er1
21456   ac_status=$?
21457   grep -v '^ *+' conftest.er1 >conftest.err
21458   rm -f conftest.er1
21459   cat conftest.err >&5
21460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461   (exit $ac_status); } &&
21462          { ac_try='test -z "$ac_c_werror_flag"
21463                          || test ! -s conftest.err'
21464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465   (eval $ac_try) 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); }; } &&
21469          { ac_try='test -s conftest$ac_exeext'
21470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471   (eval $ac_try) 2>&5
21472   ac_status=$?
21473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); }; }; then
21475   ac_cv_search_dlopen="-l$ac_lib"
21476 break
21477 else
21478   echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481 fi
21482 rm -f conftest.err conftest.$ac_objext \
21483       conftest$ac_exeext conftest.$ac_ext
21484   done
21485 fi
21486 LIBS=$ac_func_search_save_LIBS
21487 fi
21488 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21489 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
21490 if test "$ac_cv_search_dlopen" != no; then
21491   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
21492
21493 cat >>confdefs.h <<\_ACEOF
21494 #define HAVE_DLOPEN 1
21495 _ACEOF
21496
21497 else
21498   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
21499 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
21500 fi
21501
21502
21503 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
21504 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
21505 if test "${ac_cv_search_mallinfo+set}" = set; then
21506   echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508   ac_func_search_save_LIBS=$LIBS
21509 ac_cv_search_mallinfo=no
21510 cat >conftest.$ac_ext <<_ACEOF
21511 /* confdefs.h.  */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h.  */
21516
21517 /* Override any gcc2 internal prototype to avoid an error.  */
21518 #ifdef __cplusplus
21519 extern "C"
21520 #endif
21521 /* We use char because int might match the return type of a gcc2
21522    builtin and then its argument prototype would still apply.  */
21523 char mallinfo ();
21524 int
21525 main ()
21526 {
21527 mallinfo ();
21528   ;
21529   return 0;
21530 }
21531 _ACEOF
21532 rm -f conftest.$ac_objext conftest$ac_exeext
21533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21534   (eval $ac_link) 2>conftest.er1
21535   ac_status=$?
21536   grep -v '^ *+' conftest.er1 >conftest.err
21537   rm -f conftest.er1
21538   cat conftest.err >&5
21539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); } &&
21541          { ac_try='test -z "$ac_c_werror_flag"
21542                          || test ! -s conftest.err'
21543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544   (eval $ac_try) 2>&5
21545   ac_status=$?
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); }; } &&
21548          { ac_try='test -s conftest$ac_exeext'
21549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550   (eval $ac_try) 2>&5
21551   ac_status=$?
21552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553   (exit $ac_status); }; }; then
21554   ac_cv_search_mallinfo="none required"
21555 else
21556   echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21558
21559 fi
21560 rm -f conftest.err conftest.$ac_objext \
21561       conftest$ac_exeext conftest.$ac_ext
21562 if test "$ac_cv_search_mallinfo" = no; then
21563   for ac_lib in malloc; do
21564     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21565     cat >conftest.$ac_ext <<_ACEOF
21566 /* confdefs.h.  */
21567 _ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h.  */
21571
21572 /* Override any gcc2 internal prototype to avoid an error.  */
21573 #ifdef __cplusplus
21574 extern "C"
21575 #endif
21576 /* We use char because int might match the return type of a gcc2
21577    builtin and then its argument prototype would still apply.  */
21578 char mallinfo ();
21579 int
21580 main ()
21581 {
21582 mallinfo ();
21583   ;
21584   return 0;
21585 }
21586 _ACEOF
21587 rm -f conftest.$ac_objext conftest$ac_exeext
21588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21589   (eval $ac_link) 2>conftest.er1
21590   ac_status=$?
21591   grep -v '^ *+' conftest.er1 >conftest.err
21592   rm -f conftest.er1
21593   cat conftest.err >&5
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); } &&
21596          { ac_try='test -z "$ac_c_werror_flag"
21597                          || test ! -s conftest.err'
21598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599   (eval $ac_try) 2>&5
21600   ac_status=$?
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); }; } &&
21603          { ac_try='test -s conftest$ac_exeext'
21604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605   (eval $ac_try) 2>&5
21606   ac_status=$?
21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); }; }; then
21609   ac_cv_search_mallinfo="-l$ac_lib"
21610 break
21611 else
21612   echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.$ac_ext >&5
21614
21615 fi
21616 rm -f conftest.err conftest.$ac_objext \
21617       conftest$ac_exeext conftest.$ac_ext
21618   done
21619 fi
21620 LIBS=$ac_func_search_save_LIBS
21621 fi
21622 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
21623 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
21624 if test "$ac_cv_search_mallinfo" != no; then
21625   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
21626
21627 cat >>confdefs.h <<\_ACEOF
21628 #define HAVE_MALLINFO 1
21629 _ACEOF
21630
21631 fi
21632
21633
21634 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
21635 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
21636 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21637   echo $ECHO_N "(cached) $ECHO_C" >&6
21638 else
21639   ac_func_search_save_LIBS=$LIBS
21640 ac_cv_search_pthread_mutex_lock=no
21641 cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647
21648 /* Override any gcc2 internal prototype to avoid an error.  */
21649 #ifdef __cplusplus
21650 extern "C"
21651 #endif
21652 /* We use char because int might match the return type of a gcc2
21653    builtin and then its argument prototype would still apply.  */
21654 char pthread_mutex_lock ();
21655 int
21656 main ()
21657 {
21658 pthread_mutex_lock ();
21659   ;
21660   return 0;
21661 }
21662 _ACEOF
21663 rm -f conftest.$ac_objext conftest$ac_exeext
21664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21665   (eval $ac_link) 2>conftest.er1
21666   ac_status=$?
21667   grep -v '^ *+' conftest.er1 >conftest.err
21668   rm -f conftest.er1
21669   cat conftest.err >&5
21670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); } &&
21672          { ac_try='test -z "$ac_c_werror_flag"
21673                          || test ! -s conftest.err'
21674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675   (eval $ac_try) 2>&5
21676   ac_status=$?
21677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678   (exit $ac_status); }; } &&
21679          { ac_try='test -s conftest$ac_exeext'
21680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681   (eval $ac_try) 2>&5
21682   ac_status=$?
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); }; }; then
21685   ac_cv_search_pthread_mutex_lock="none required"
21686 else
21687   echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21689
21690 fi
21691 rm -f conftest.err conftest.$ac_objext \
21692       conftest$ac_exeext conftest.$ac_ext
21693 if test "$ac_cv_search_pthread_mutex_lock" = no; then
21694   for ac_lib in pthread; do
21695     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21696     cat >conftest.$ac_ext <<_ACEOF
21697 /* confdefs.h.  */
21698 _ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h.  */
21702
21703 /* Override any gcc2 internal prototype to avoid an error.  */
21704 #ifdef __cplusplus
21705 extern "C"
21706 #endif
21707 /* We use char because int might match the return type of a gcc2
21708    builtin and then its argument prototype would still apply.  */
21709 char pthread_mutex_lock ();
21710 int
21711 main ()
21712 {
21713 pthread_mutex_lock ();
21714   ;
21715   return 0;
21716 }
21717 _ACEOF
21718 rm -f conftest.$ac_objext conftest$ac_exeext
21719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21720   (eval $ac_link) 2>conftest.er1
21721   ac_status=$?
21722   grep -v '^ *+' conftest.er1 >conftest.err
21723   rm -f conftest.er1
21724   cat conftest.err >&5
21725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726   (exit $ac_status); } &&
21727          { ac_try='test -z "$ac_c_werror_flag"
21728                          || test ! -s conftest.err'
21729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730   (eval $ac_try) 2>&5
21731   ac_status=$?
21732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733   (exit $ac_status); }; } &&
21734          { ac_try='test -s conftest$ac_exeext'
21735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736   (eval $ac_try) 2>&5
21737   ac_status=$?
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); }; }; then
21740   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
21741 break
21742 else
21743   echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21745
21746 fi
21747 rm -f conftest.err conftest.$ac_objext \
21748       conftest$ac_exeext conftest.$ac_ext
21749   done
21750 fi
21751 LIBS=$ac_func_search_save_LIBS
21752 fi
21753 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
21754 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
21755 if test "$ac_cv_search_pthread_mutex_lock" != no; then
21756   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
21757
21758 cat >>confdefs.h <<\_ACEOF
21759 #define HAVE_PTHREAD_MUTEX_LOCK 1
21760 _ACEOF
21761
21762 fi
21763
21764
21765
21766
21767 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21768 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21769 if test "${ac_cv_header_stdc+set}" = set; then
21770   echo $ECHO_N "(cached) $ECHO_C" >&6
21771 else
21772   cat >conftest.$ac_ext <<_ACEOF
21773 /* confdefs.h.  */
21774 _ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h.  */
21778 #include <stdlib.h>
21779 #include <stdarg.h>
21780 #include <string.h>
21781 #include <float.h>
21782
21783 int
21784 main ()
21785 {
21786
21787   ;
21788   return 0;
21789 }
21790 _ACEOF
21791 rm -f conftest.$ac_objext
21792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21793   (eval $ac_compile) 2>conftest.er1
21794   ac_status=$?
21795   grep -v '^ *+' conftest.er1 >conftest.err
21796   rm -f conftest.er1
21797   cat conftest.err >&5
21798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799   (exit $ac_status); } &&
21800          { ac_try='test -z "$ac_c_werror_flag"
21801                          || test ! -s conftest.err'
21802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803   (eval $ac_try) 2>&5
21804   ac_status=$?
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); }; } &&
21807          { ac_try='test -s conftest.$ac_objext'
21808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809   (eval $ac_try) 2>&5
21810   ac_status=$?
21811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812   (exit $ac_status); }; }; then
21813   ac_cv_header_stdc=yes
21814 else
21815   echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21817
21818 ac_cv_header_stdc=no
21819 fi
21820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21821
21822 if test $ac_cv_header_stdc = yes; then
21823   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21824   cat >conftest.$ac_ext <<_ACEOF
21825 /* confdefs.h.  */
21826 _ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h.  */
21830 #include <string.h>
21831
21832 _ACEOF
21833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21834   $EGREP "memchr" >/dev/null 2>&1; then
21835   :
21836 else
21837   ac_cv_header_stdc=no
21838 fi
21839 rm -f conftest*
21840
21841 fi
21842
21843 if test $ac_cv_header_stdc = yes; then
21844   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21845   cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h.  */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h.  */
21851 #include <stdlib.h>
21852
21853 _ACEOF
21854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21855   $EGREP "free" >/dev/null 2>&1; then
21856   :
21857 else
21858   ac_cv_header_stdc=no
21859 fi
21860 rm -f conftest*
21861
21862 fi
21863
21864 if test $ac_cv_header_stdc = yes; then
21865   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21866   if test "$cross_compiling" = yes; then
21867   :
21868 else
21869   cat >conftest.$ac_ext <<_ACEOF
21870 /* confdefs.h.  */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h.  */
21875 #include <ctype.h>
21876 #if ((' ' & 0x0FF) == 0x020)
21877 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21878 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21879 #else
21880 # define ISLOWER(c) \
21881                    (('a' <= (c) && (c) <= 'i') \
21882                      || ('j' <= (c) && (c) <= 'r') \
21883                      || ('s' <= (c) && (c) <= 'z'))
21884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21885 #endif
21886
21887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21888 int
21889 main ()
21890 {
21891   int i;
21892   for (i = 0; i < 256; i++)
21893     if (XOR (islower (i), ISLOWER (i))
21894         || toupper (i) != TOUPPER (i))
21895       exit(2);
21896   exit (0);
21897 }
21898 _ACEOF
21899 rm -f conftest$ac_exeext
21900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21901   (eval $ac_link) 2>&5
21902   ac_status=$?
21903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906   (eval $ac_try) 2>&5
21907   ac_status=$?
21908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909   (exit $ac_status); }; }; then
21910   :
21911 else
21912   echo "$as_me: program exited with status $ac_status" >&5
21913 echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21915
21916 ( exit $ac_status )
21917 ac_cv_header_stdc=no
21918 fi
21919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21920 fi
21921 fi
21922 fi
21923 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21924 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21925 if test $ac_cv_header_stdc = yes; then
21926
21927 cat >>confdefs.h <<\_ACEOF
21928 #define STDC_HEADERS 1
21929 _ACEOF
21930
21931 fi
21932
21933 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21934 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21935 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21936   echo $ECHO_N "(cached) $ECHO_C" >&6
21937 else
21938   cat >conftest.$ac_ext <<_ACEOF
21939 /* confdefs.h.  */
21940 _ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h.  */
21944 #include <sys/types.h>
21945 #include <sys/wait.h>
21946 #ifndef WEXITSTATUS
21947 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21948 #endif
21949 #ifndef WIFEXITED
21950 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21951 #endif
21952
21953 int
21954 main ()
21955 {
21956   int s;
21957   wait (&s);
21958   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21959   ;
21960   return 0;
21961 }
21962 _ACEOF
21963 rm -f conftest.$ac_objext
21964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21965   (eval $ac_compile) 2>conftest.er1
21966   ac_status=$?
21967   grep -v '^ *+' conftest.er1 >conftest.err
21968   rm -f conftest.er1
21969   cat conftest.err >&5
21970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971   (exit $ac_status); } &&
21972          { ac_try='test -z "$ac_c_werror_flag"
21973                          || test ! -s conftest.err'
21974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975   (eval $ac_try) 2>&5
21976   ac_status=$?
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); }; } &&
21979          { ac_try='test -s conftest.$ac_objext'
21980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981   (eval $ac_try) 2>&5
21982   ac_status=$?
21983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984   (exit $ac_status); }; }; then
21985   ac_cv_header_sys_wait_h=yes
21986 else
21987   echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21989
21990 ac_cv_header_sys_wait_h=no
21991 fi
21992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21993 fi
21994 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21995 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21996 if test $ac_cv_header_sys_wait_h = yes; then
21997
21998 cat >>confdefs.h <<\_ACEOF
21999 #define HAVE_SYS_WAIT_H 1
22000 _ACEOF
22001
22002 fi
22003
22004 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22005 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22006 if test "${ac_cv_header_time+set}" = set; then
22007   echo $ECHO_N "(cached) $ECHO_C" >&6
22008 else
22009   cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h.  */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h.  */
22015 #include <sys/types.h>
22016 #include <sys/time.h>
22017 #include <time.h>
22018
22019 int
22020 main ()
22021 {
22022 if ((struct tm *) 0)
22023 return 0;
22024   ;
22025   return 0;
22026 }
22027 _ACEOF
22028 rm -f conftest.$ac_objext
22029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22030   (eval $ac_compile) 2>conftest.er1
22031   ac_status=$?
22032   grep -v '^ *+' conftest.er1 >conftest.err
22033   rm -f conftest.er1
22034   cat conftest.err >&5
22035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036   (exit $ac_status); } &&
22037          { ac_try='test -z "$ac_c_werror_flag"
22038                          || test ! -s conftest.err'
22039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22040   (eval $ac_try) 2>&5
22041   ac_status=$?
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); }; } &&
22044          { ac_try='test -s conftest.$ac_objext'
22045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046   (eval $ac_try) 2>&5
22047   ac_status=$?
22048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049   (exit $ac_status); }; }; then
22050   ac_cv_header_time=yes
22051 else
22052   echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22054
22055 ac_cv_header_time=no
22056 fi
22057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22058 fi
22059 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22060 echo "${ECHO_T}$ac_cv_header_time" >&6
22061 if test $ac_cv_header_time = yes; then
22062
22063 cat >>confdefs.h <<\_ACEOF
22064 #define TIME_WITH_SYS_TIME 1
22065 _ACEOF
22066
22067 fi
22068
22069 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22070 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22071 if test "${ac_cv_header_mmap_anon+set}" = set; then
22072   echo $ECHO_N "(cached) $ECHO_C" >&6
22073 else
22074    ac_ext=c
22075 ac_cpp='$CPP $CPPFLAGS'
22076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22079
22080   cat >conftest.$ac_ext <<_ACEOF
22081 /* confdefs.h.  */
22082 _ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h.  */
22086 #include <sys/mman.h>
22087 #include <unistd.h>
22088 #include <fcntl.h>
22089 int
22090 main ()
22091 {
22092 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22093   ;
22094   return 0;
22095 }
22096 _ACEOF
22097 rm -f conftest.$ac_objext
22098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22099   (eval $ac_compile) 2>conftest.er1
22100   ac_status=$?
22101   grep -v '^ *+' conftest.er1 >conftest.err
22102   rm -f conftest.er1
22103   cat conftest.err >&5
22104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105   (exit $ac_status); } &&
22106          { ac_try='test -z "$ac_c_werror_flag"
22107                          || test ! -s conftest.err'
22108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109   (eval $ac_try) 2>&5
22110   ac_status=$?
22111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112   (exit $ac_status); }; } &&
22113          { ac_try='test -s conftest.$ac_objext'
22114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115   (eval $ac_try) 2>&5
22116   ac_status=$?
22117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118   (exit $ac_status); }; }; then
22119   ac_cv_header_mmap_anon=yes
22120 else
22121   echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22123
22124 ac_cv_header_mmap_anon=no
22125 fi
22126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22127   ac_ext=c
22128 ac_cpp='$CPP $CPPFLAGS'
22129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22132
22133
22134 fi
22135 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22136 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22137 if test "$ac_cv_header_mmap_anon" = yes; then
22138
22139 cat >>confdefs.h <<\_ACEOF
22140 #define HAVE_MMAP_ANONYMOUS
22141 _ACEOF
22142
22143 fi
22144
22145
22146
22147
22148
22149
22150
22151
22152 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h
22153 do
22154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22156   echo "$as_me:$LINENO: checking for $ac_header" >&5
22157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22159   echo $ECHO_N "(cached) $ECHO_C" >&6
22160 fi
22161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22163 else
22164   # Is the header compilable?
22165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22167 cat >conftest.$ac_ext <<_ACEOF
22168 /* confdefs.h.  */
22169 _ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h.  */
22173 $ac_includes_default
22174 #include <$ac_header>
22175 _ACEOF
22176 rm -f conftest.$ac_objext
22177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22178   (eval $ac_compile) 2>conftest.er1
22179   ac_status=$?
22180   grep -v '^ *+' conftest.er1 >conftest.err
22181   rm -f conftest.er1
22182   cat conftest.err >&5
22183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); } &&
22185          { ac_try='test -z "$ac_c_werror_flag"
22186                          || test ! -s conftest.err'
22187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188   (eval $ac_try) 2>&5
22189   ac_status=$?
22190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191   (exit $ac_status); }; } &&
22192          { ac_try='test -s conftest.$ac_objext'
22193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194   (eval $ac_try) 2>&5
22195   ac_status=$?
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); }; }; then
22198   ac_header_compiler=yes
22199 else
22200   echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22202
22203 ac_header_compiler=no
22204 fi
22205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22207 echo "${ECHO_T}$ac_header_compiler" >&6
22208
22209 # Is the header present?
22210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22212 cat >conftest.$ac_ext <<_ACEOF
22213 /* confdefs.h.  */
22214 _ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h.  */
22218 #include <$ac_header>
22219 _ACEOF
22220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22221   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22222   ac_status=$?
22223   grep -v '^ *+' conftest.er1 >conftest.err
22224   rm -f conftest.er1
22225   cat conftest.err >&5
22226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227   (exit $ac_status); } >/dev/null; then
22228   if test -s conftest.err; then
22229     ac_cpp_err=$ac_c_preproc_warn_flag
22230     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22231   else
22232     ac_cpp_err=
22233   fi
22234 else
22235   ac_cpp_err=yes
22236 fi
22237 if test -z "$ac_cpp_err"; then
22238   ac_header_preproc=yes
22239 else
22240   echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22242
22243   ac_header_preproc=no
22244 fi
22245 rm -f conftest.err conftest.$ac_ext
22246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22247 echo "${ECHO_T}$ac_header_preproc" >&6
22248
22249 # So?  What about this header?
22250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22251   yes:no: )
22252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22256     ac_header_preproc=yes
22257     ;;
22258   no:yes:* )
22259     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22261     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22262 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22263     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22265     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22266 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22269     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22271     (
22272       cat <<\_ASBOX
22273 ## ----------------------------------- ##
22274 ## Report this to llvmbugs@cs.uiuc.edu ##
22275 ## ----------------------------------- ##
22276 _ASBOX
22277     ) |
22278       sed "s/^/$as_me: WARNING:     /" >&2
22279     ;;
22280 esac
22281 echo "$as_me:$LINENO: checking for $ac_header" >&5
22282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22284   echo $ECHO_N "(cached) $ECHO_C" >&6
22285 else
22286   eval "$as_ac_Header=\$ac_header_preproc"
22287 fi
22288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22290
22291 fi
22292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22293   cat >>confdefs.h <<_ACEOF
22294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22295 _ACEOF
22296
22297 fi
22298
22299 done
22300
22301
22302
22303
22304
22305
22306 for ac_header in sys/resource.h dlfcn.h link.h execinfo.h windows.h
22307 do
22308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22310   echo "$as_me:$LINENO: checking for $ac_header" >&5
22311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22313   echo $ECHO_N "(cached) $ECHO_C" >&6
22314 fi
22315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22317 else
22318   # Is the header compilable?
22319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22321 cat >conftest.$ac_ext <<_ACEOF
22322 /* confdefs.h.  */
22323 _ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h.  */
22327 $ac_includes_default
22328 #include <$ac_header>
22329 _ACEOF
22330 rm -f conftest.$ac_objext
22331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22332   (eval $ac_compile) 2>conftest.er1
22333   ac_status=$?
22334   grep -v '^ *+' conftest.er1 >conftest.err
22335   rm -f conftest.er1
22336   cat conftest.err >&5
22337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); } &&
22339          { ac_try='test -z "$ac_c_werror_flag"
22340                          || test ! -s conftest.err'
22341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342   (eval $ac_try) 2>&5
22343   ac_status=$?
22344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345   (exit $ac_status); }; } &&
22346          { ac_try='test -s conftest.$ac_objext'
22347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348   (eval $ac_try) 2>&5
22349   ac_status=$?
22350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351   (exit $ac_status); }; }; then
22352   ac_header_compiler=yes
22353 else
22354   echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22356
22357 ac_header_compiler=no
22358 fi
22359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22361 echo "${ECHO_T}$ac_header_compiler" >&6
22362
22363 # Is the header present?
22364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22366 cat >conftest.$ac_ext <<_ACEOF
22367 /* confdefs.h.  */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h.  */
22372 #include <$ac_header>
22373 _ACEOF
22374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22375   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22376   ac_status=$?
22377   grep -v '^ *+' conftest.er1 >conftest.err
22378   rm -f conftest.er1
22379   cat conftest.err >&5
22380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381   (exit $ac_status); } >/dev/null; then
22382   if test -s conftest.err; then
22383     ac_cpp_err=$ac_c_preproc_warn_flag
22384     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22385   else
22386     ac_cpp_err=
22387   fi
22388 else
22389   ac_cpp_err=yes
22390 fi
22391 if test -z "$ac_cpp_err"; then
22392   ac_header_preproc=yes
22393 else
22394   echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22396
22397   ac_header_preproc=no
22398 fi
22399 rm -f conftest.err conftest.$ac_ext
22400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22401 echo "${ECHO_T}$ac_header_preproc" >&6
22402
22403 # So?  What about this header?
22404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22405   yes:no: )
22406     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22410     ac_header_preproc=yes
22411     ;;
22412   no:yes:* )
22413     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22415     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22416 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22417     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22419     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22420 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22423     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22425     (
22426       cat <<\_ASBOX
22427 ## ----------------------------------- ##
22428 ## Report this to llvmbugs@cs.uiuc.edu ##
22429 ## ----------------------------------- ##
22430 _ASBOX
22431     ) |
22432       sed "s/^/$as_me: WARNING:     /" >&2
22433     ;;
22434 esac
22435 echo "$as_me:$LINENO: checking for $ac_header" >&5
22436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22438   echo $ECHO_N "(cached) $ECHO_C" >&6
22439 else
22440   eval "$as_ac_Header=\$ac_header_preproc"
22441 fi
22442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22444
22445 fi
22446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22447   cat >>confdefs.h <<_ACEOF
22448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22449 _ACEOF
22450
22451 fi
22452
22453 done
22454
22455
22456 if test "${ac_cv_header_sys_types_h+set}" = set; then
22457   echo "$as_me:$LINENO: checking for sys/types.h" >&5
22458 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
22459 if test "${ac_cv_header_sys_types_h+set}" = set; then
22460   echo $ECHO_N "(cached) $ECHO_C" >&6
22461 fi
22462 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
22463 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
22464 else
22465   # Is the header compilable?
22466 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
22467 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
22468 cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h.  */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h.  */
22474 $ac_includes_default
22475 #include <sys/types.h>
22476 _ACEOF
22477 rm -f conftest.$ac_objext
22478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22479   (eval $ac_compile) 2>conftest.er1
22480   ac_status=$?
22481   grep -v '^ *+' conftest.er1 >conftest.err
22482   rm -f conftest.er1
22483   cat conftest.err >&5
22484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485   (exit $ac_status); } &&
22486          { ac_try='test -z "$ac_c_werror_flag"
22487                          || test ! -s conftest.err'
22488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489   (eval $ac_try) 2>&5
22490   ac_status=$?
22491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492   (exit $ac_status); }; } &&
22493          { ac_try='test -s conftest.$ac_objext'
22494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495   (eval $ac_try) 2>&5
22496   ac_status=$?
22497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498   (exit $ac_status); }; }; then
22499   ac_header_compiler=yes
22500 else
22501   echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22503
22504 ac_header_compiler=no
22505 fi
22506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22508 echo "${ECHO_T}$ac_header_compiler" >&6
22509
22510 # Is the header present?
22511 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
22512 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
22513 cat >conftest.$ac_ext <<_ACEOF
22514 /* confdefs.h.  */
22515 _ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h.  */
22519 #include <sys/types.h>
22520 _ACEOF
22521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22522   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22523   ac_status=$?
22524   grep -v '^ *+' conftest.er1 >conftest.err
22525   rm -f conftest.er1
22526   cat conftest.err >&5
22527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528   (exit $ac_status); } >/dev/null; then
22529   if test -s conftest.err; then
22530     ac_cpp_err=$ac_c_preproc_warn_flag
22531     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22532   else
22533     ac_cpp_err=
22534   fi
22535 else
22536   ac_cpp_err=yes
22537 fi
22538 if test -z "$ac_cpp_err"; then
22539   ac_header_preproc=yes
22540 else
22541   echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22543
22544   ac_header_preproc=no
22545 fi
22546 rm -f conftest.err conftest.$ac_ext
22547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22548 echo "${ECHO_T}$ac_header_preproc" >&6
22549
22550 # So?  What about this header?
22551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22552   yes:no: )
22553     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
22554 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22555     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
22556 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
22557     ac_header_preproc=yes
22558     ;;
22559   no:yes:* )
22560     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
22561 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
22562     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
22563 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
22564     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
22565 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
22566     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
22567 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22568     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
22569 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
22570     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
22571 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
22572     (
22573       cat <<\_ASBOX
22574 ## ----------------------------------- ##
22575 ## Report this to llvmbugs@cs.uiuc.edu ##
22576 ## ----------------------------------- ##
22577 _ASBOX
22578     ) |
22579       sed "s/^/$as_me: WARNING:     /" >&2
22580     ;;
22581 esac
22582 echo "$as_me:$LINENO: checking for sys/types.h" >&5
22583 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
22584 if test "${ac_cv_header_sys_types_h+set}" = set; then
22585   echo $ECHO_N "(cached) $ECHO_C" >&6
22586 else
22587   ac_cv_header_sys_types_h=$ac_header_preproc
22588 fi
22589 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
22590 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
22591
22592 fi
22593
22594
22595 if test "${ac_cv_header_inttypes_h+set}" = set; then
22596   echo "$as_me:$LINENO: checking for inttypes.h" >&5
22597 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22598 if test "${ac_cv_header_inttypes_h+set}" = set; then
22599   echo $ECHO_N "(cached) $ECHO_C" >&6
22600 fi
22601 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22602 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
22603 else
22604   # Is the header compilable?
22605 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
22606 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
22607 cat >conftest.$ac_ext <<_ACEOF
22608 /* confdefs.h.  */
22609 _ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h.  */
22613 $ac_includes_default
22614 #include <inttypes.h>
22615 _ACEOF
22616 rm -f conftest.$ac_objext
22617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22618   (eval $ac_compile) 2>conftest.er1
22619   ac_status=$?
22620   grep -v '^ *+' conftest.er1 >conftest.err
22621   rm -f conftest.er1
22622   cat conftest.err >&5
22623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624   (exit $ac_status); } &&
22625          { ac_try='test -z "$ac_c_werror_flag"
22626                          || test ! -s conftest.err'
22627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628   (eval $ac_try) 2>&5
22629   ac_status=$?
22630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631   (exit $ac_status); }; } &&
22632          { ac_try='test -s conftest.$ac_objext'
22633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634   (eval $ac_try) 2>&5
22635   ac_status=$?
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); }; }; then
22638   ac_header_compiler=yes
22639 else
22640   echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22642
22643 ac_header_compiler=no
22644 fi
22645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22647 echo "${ECHO_T}$ac_header_compiler" >&6
22648
22649 # Is the header present?
22650 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
22651 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
22652 cat >conftest.$ac_ext <<_ACEOF
22653 /* confdefs.h.  */
22654 _ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h.  */
22658 #include <inttypes.h>
22659 _ACEOF
22660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22662   ac_status=$?
22663   grep -v '^ *+' conftest.er1 >conftest.err
22664   rm -f conftest.er1
22665   cat conftest.err >&5
22666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667   (exit $ac_status); } >/dev/null; then
22668   if test -s conftest.err; then
22669     ac_cpp_err=$ac_c_preproc_warn_flag
22670     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22671   else
22672     ac_cpp_err=
22673   fi
22674 else
22675   ac_cpp_err=yes
22676 fi
22677 if test -z "$ac_cpp_err"; then
22678   ac_header_preproc=yes
22679 else
22680   echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22682
22683   ac_header_preproc=no
22684 fi
22685 rm -f conftest.err conftest.$ac_ext
22686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22687 echo "${ECHO_T}$ac_header_preproc" >&6
22688
22689 # So?  What about this header?
22690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22691   yes:no: )
22692     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
22693 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22694     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
22695 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
22696     ac_header_preproc=yes
22697     ;;
22698   no:yes:* )
22699     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
22700 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
22701     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
22702 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
22703     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
22704 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
22705     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
22706 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22707     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
22708 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
22709     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
22710 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
22711     (
22712       cat <<\_ASBOX
22713 ## ----------------------------------- ##
22714 ## Report this to llvmbugs@cs.uiuc.edu ##
22715 ## ----------------------------------- ##
22716 _ASBOX
22717     ) |
22718       sed "s/^/$as_me: WARNING:     /" >&2
22719     ;;
22720 esac
22721 echo "$as_me:$LINENO: checking for inttypes.h" >&5
22722 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22723 if test "${ac_cv_header_inttypes_h+set}" = set; then
22724   echo $ECHO_N "(cached) $ECHO_C" >&6
22725 else
22726   ac_cv_header_inttypes_h=$ac_header_preproc
22727 fi
22728 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22729 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
22730
22731 fi
22732
22733
22734 if test "${ac_cv_header_stdint_h+set}" = set; then
22735   echo "$as_me:$LINENO: checking for stdint.h" >&5
22736 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22737 if test "${ac_cv_header_stdint_h+set}" = set; then
22738   echo $ECHO_N "(cached) $ECHO_C" >&6
22739 fi
22740 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
22741 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
22742 else
22743   # Is the header compilable?
22744 echo "$as_me:$LINENO: checking stdint.h usability" >&5
22745 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
22746 cat >conftest.$ac_ext <<_ACEOF
22747 /* confdefs.h.  */
22748 _ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h.  */
22752 $ac_includes_default
22753 #include <stdint.h>
22754 _ACEOF
22755 rm -f conftest.$ac_objext
22756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22757   (eval $ac_compile) 2>conftest.er1
22758   ac_status=$?
22759   grep -v '^ *+' conftest.er1 >conftest.err
22760   rm -f conftest.er1
22761   cat conftest.err >&5
22762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763   (exit $ac_status); } &&
22764          { ac_try='test -z "$ac_c_werror_flag"
22765                          || test ! -s conftest.err'
22766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767   (eval $ac_try) 2>&5
22768   ac_status=$?
22769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770   (exit $ac_status); }; } &&
22771          { ac_try='test -s conftest.$ac_objext'
22772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773   (eval $ac_try) 2>&5
22774   ac_status=$?
22775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776   (exit $ac_status); }; }; then
22777   ac_header_compiler=yes
22778 else
22779   echo "$as_me: failed program was:" >&5
22780 sed 's/^/| /' conftest.$ac_ext >&5
22781
22782 ac_header_compiler=no
22783 fi
22784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22786 echo "${ECHO_T}$ac_header_compiler" >&6
22787
22788 # Is the header present?
22789 echo "$as_me:$LINENO: checking stdint.h presence" >&5
22790 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
22791 cat >conftest.$ac_ext <<_ACEOF
22792 /* confdefs.h.  */
22793 _ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h.  */
22797 #include <stdint.h>
22798 _ACEOF
22799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22801   ac_status=$?
22802   grep -v '^ *+' conftest.er1 >conftest.err
22803   rm -f conftest.er1
22804   cat conftest.err >&5
22805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806   (exit $ac_status); } >/dev/null; then
22807   if test -s conftest.err; then
22808     ac_cpp_err=$ac_c_preproc_warn_flag
22809     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22810   else
22811     ac_cpp_err=
22812   fi
22813 else
22814   ac_cpp_err=yes
22815 fi
22816 if test -z "$ac_cpp_err"; then
22817   ac_header_preproc=yes
22818 else
22819   echo "$as_me: failed program was:" >&5
22820 sed 's/^/| /' conftest.$ac_ext >&5
22821
22822   ac_header_preproc=no
22823 fi
22824 rm -f conftest.err conftest.$ac_ext
22825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22826 echo "${ECHO_T}$ac_header_preproc" >&6
22827
22828 # So?  What about this header?
22829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22830   yes:no: )
22831     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
22832 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22833     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
22834 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
22835     ac_header_preproc=yes
22836     ;;
22837   no:yes:* )
22838     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
22839 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
22840     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
22841 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
22842     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
22843 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
22844     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
22845 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22846     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
22847 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
22848     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
22849 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
22850     (
22851       cat <<\_ASBOX
22852 ## ----------------------------------- ##
22853 ## Report this to llvmbugs@cs.uiuc.edu ##
22854 ## ----------------------------------- ##
22855 _ASBOX
22856     ) |
22857       sed "s/^/$as_me: WARNING:     /" >&2
22858     ;;
22859 esac
22860 echo "$as_me:$LINENO: checking for stdint.h" >&5
22861 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22862 if test "${ac_cv_header_stdint_h+set}" = set; then
22863   echo $ECHO_N "(cached) $ECHO_C" >&6
22864 else
22865   ac_cv_header_stdint_h=$ac_header_preproc
22866 fi
22867 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
22868 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
22869
22870 fi
22871
22872
22873
22874
22875 for ac_header in bzlib.h
22876 do
22877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22879   echo "$as_me:$LINENO: checking for $ac_header" >&5
22880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22882   echo $ECHO_N "(cached) $ECHO_C" >&6
22883 fi
22884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22886 else
22887   # Is the header compilable?
22888 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22890 cat >conftest.$ac_ext <<_ACEOF
22891 /* confdefs.h.  */
22892 _ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h.  */
22896 $ac_includes_default
22897 #include <$ac_header>
22898 _ACEOF
22899 rm -f conftest.$ac_objext
22900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22901   (eval $ac_compile) 2>conftest.er1
22902   ac_status=$?
22903   grep -v '^ *+' conftest.er1 >conftest.err
22904   rm -f conftest.er1
22905   cat conftest.err >&5
22906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907   (exit $ac_status); } &&
22908          { ac_try='test -z "$ac_c_werror_flag"
22909                          || test ! -s conftest.err'
22910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911   (eval $ac_try) 2>&5
22912   ac_status=$?
22913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914   (exit $ac_status); }; } &&
22915          { ac_try='test -s conftest.$ac_objext'
22916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917   (eval $ac_try) 2>&5
22918   ac_status=$?
22919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920   (exit $ac_status); }; }; then
22921   ac_header_compiler=yes
22922 else
22923   echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22925
22926 ac_header_compiler=no
22927 fi
22928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22930 echo "${ECHO_T}$ac_header_compiler" >&6
22931
22932 # Is the header present?
22933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22935 cat >conftest.$ac_ext <<_ACEOF
22936 /* confdefs.h.  */
22937 _ACEOF
22938 cat confdefs.h >>conftest.$ac_ext
22939 cat >>conftest.$ac_ext <<_ACEOF
22940 /* end confdefs.h.  */
22941 #include <$ac_header>
22942 _ACEOF
22943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22945   ac_status=$?
22946   grep -v '^ *+' conftest.er1 >conftest.err
22947   rm -f conftest.er1
22948   cat conftest.err >&5
22949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950   (exit $ac_status); } >/dev/null; then
22951   if test -s conftest.err; then
22952     ac_cpp_err=$ac_c_preproc_warn_flag
22953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22954   else
22955     ac_cpp_err=
22956   fi
22957 else
22958   ac_cpp_err=yes
22959 fi
22960 if test -z "$ac_cpp_err"; then
22961   ac_header_preproc=yes
22962 else
22963   echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22965
22966   ac_header_preproc=no
22967 fi
22968 rm -f conftest.err conftest.$ac_ext
22969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22970 echo "${ECHO_T}$ac_header_preproc" >&6
22971
22972 # So?  What about this header?
22973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22974   yes:no: )
22975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22979     ac_header_preproc=yes
22980     ;;
22981   no:yes:* )
22982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22984     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22985 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22986     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22988     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22989 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22992     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22994     (
22995       cat <<\_ASBOX
22996 ## ----------------------------------- ##
22997 ## Report this to llvmbugs@cs.uiuc.edu ##
22998 ## ----------------------------------- ##
22999 _ASBOX
23000     ) |
23001       sed "s/^/$as_me: WARNING:     /" >&2
23002     ;;
23003 esac
23004 echo "$as_me:$LINENO: checking for $ac_header" >&5
23005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23007   echo $ECHO_N "(cached) $ECHO_C" >&6
23008 else
23009   eval "$as_ac_Header=\$ac_header_preproc"
23010 fi
23011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23013
23014 fi
23015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23016   cat >>confdefs.h <<_ACEOF
23017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23018 _ACEOF
23019  bzlib_h_found=1
23020 else
23021   bzlib_h_found=0
23022 fi
23023
23024 done
23025
23026
23027 for ac_header in zlib.h
23028 do
23029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23031   echo "$as_me:$LINENO: checking for $ac_header" >&5
23032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23034   echo $ECHO_N "(cached) $ECHO_C" >&6
23035 fi
23036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23038 else
23039   # Is the header compilable?
23040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23042 cat >conftest.$ac_ext <<_ACEOF
23043 /* confdefs.h.  */
23044 _ACEOF
23045 cat confdefs.h >>conftest.$ac_ext
23046 cat >>conftest.$ac_ext <<_ACEOF
23047 /* end confdefs.h.  */
23048 $ac_includes_default
23049 #include <$ac_header>
23050 _ACEOF
23051 rm -f conftest.$ac_objext
23052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23053   (eval $ac_compile) 2>conftest.er1
23054   ac_status=$?
23055   grep -v '^ *+' conftest.er1 >conftest.err
23056   rm -f conftest.er1
23057   cat conftest.err >&5
23058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059   (exit $ac_status); } &&
23060          { ac_try='test -z "$ac_c_werror_flag"
23061                          || test ! -s conftest.err'
23062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063   (eval $ac_try) 2>&5
23064   ac_status=$?
23065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); }; } &&
23067          { ac_try='test -s conftest.$ac_objext'
23068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23069   (eval $ac_try) 2>&5
23070   ac_status=$?
23071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); }; }; then
23073   ac_header_compiler=yes
23074 else
23075   echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23077
23078 ac_header_compiler=no
23079 fi
23080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23082 echo "${ECHO_T}$ac_header_compiler" >&6
23083
23084 # Is the header present?
23085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23087 cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h.  */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h.  */
23093 #include <$ac_header>
23094 _ACEOF
23095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23097   ac_status=$?
23098   grep -v '^ *+' conftest.er1 >conftest.err
23099   rm -f conftest.er1
23100   cat conftest.err >&5
23101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102   (exit $ac_status); } >/dev/null; then
23103   if test -s conftest.err; then
23104     ac_cpp_err=$ac_c_preproc_warn_flag
23105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23106   else
23107     ac_cpp_err=
23108   fi
23109 else
23110   ac_cpp_err=yes
23111 fi
23112 if test -z "$ac_cpp_err"; then
23113   ac_header_preproc=yes
23114 else
23115   echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23117
23118   ac_header_preproc=no
23119 fi
23120 rm -f conftest.err conftest.$ac_ext
23121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23122 echo "${ECHO_T}$ac_header_preproc" >&6
23123
23124 # So?  What about this header?
23125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23126   yes:no: )
23127     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23131     ac_header_preproc=yes
23132     ;;
23133   no:yes:* )
23134     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23136     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23137 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23138     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23140     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23141 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23144     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23146     (
23147       cat <<\_ASBOX
23148 ## ----------------------------------- ##
23149 ## Report this to llvmbugs@cs.uiuc.edu ##
23150 ## ----------------------------------- ##
23151 _ASBOX
23152     ) |
23153       sed "s/^/$as_me: WARNING:     /" >&2
23154     ;;
23155 esac
23156 echo "$as_me:$LINENO: checking for $ac_header" >&5
23157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23159   echo $ECHO_N "(cached) $ECHO_C" >&6
23160 else
23161   eval "$as_ac_Header=\$ac_header_preproc"
23162 fi
23163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23165
23166 fi
23167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23168   cat >>confdefs.h <<_ACEOF
23169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23170 _ACEOF
23171  zlib_h_found=1
23172 else
23173   zlib_h_found=0
23174 fi
23175
23176 done
23177
23178
23179
23180 echo "$as_me:$LINENO: checking for pid_t" >&5
23181 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23182 if test "${ac_cv_type_pid_t+set}" = set; then
23183   echo $ECHO_N "(cached) $ECHO_C" >&6
23184 else
23185   cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h.  */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h.  */
23191 $ac_includes_default
23192 int
23193 main ()
23194 {
23195 if ((pid_t *) 0)
23196   return 0;
23197 if (sizeof (pid_t))
23198   return 0;
23199   ;
23200   return 0;
23201 }
23202 _ACEOF
23203 rm -f conftest.$ac_objext
23204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23205   (eval $ac_compile) 2>conftest.er1
23206   ac_status=$?
23207   grep -v '^ *+' conftest.er1 >conftest.err
23208   rm -f conftest.er1
23209   cat conftest.err >&5
23210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211   (exit $ac_status); } &&
23212          { ac_try='test -z "$ac_c_werror_flag"
23213                          || test ! -s conftest.err'
23214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23215   (eval $ac_try) 2>&5
23216   ac_status=$?
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); }; } &&
23219          { ac_try='test -s conftest.$ac_objext'
23220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221   (eval $ac_try) 2>&5
23222   ac_status=$?
23223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224   (exit $ac_status); }; }; then
23225   ac_cv_type_pid_t=yes
23226 else
23227   echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23229
23230 ac_cv_type_pid_t=no
23231 fi
23232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23233 fi
23234 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23235 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23236 if test $ac_cv_type_pid_t = yes; then
23237   :
23238 else
23239
23240 cat >>confdefs.h <<_ACEOF
23241 #define pid_t int
23242 _ACEOF
23243
23244 fi
23245
23246 echo "$as_me:$LINENO: checking for size_t" >&5
23247 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23248 if test "${ac_cv_type_size_t+set}" = set; then
23249   echo $ECHO_N "(cached) $ECHO_C" >&6
23250 else
23251   cat >conftest.$ac_ext <<_ACEOF
23252 /* confdefs.h.  */
23253 _ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h.  */
23257 $ac_includes_default
23258 int
23259 main ()
23260 {
23261 if ((size_t *) 0)
23262   return 0;
23263 if (sizeof (size_t))
23264   return 0;
23265   ;
23266   return 0;
23267 }
23268 _ACEOF
23269 rm -f conftest.$ac_objext
23270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23271   (eval $ac_compile) 2>conftest.er1
23272   ac_status=$?
23273   grep -v '^ *+' conftest.er1 >conftest.err
23274   rm -f conftest.er1
23275   cat conftest.err >&5
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); } &&
23278          { ac_try='test -z "$ac_c_werror_flag"
23279                          || test ! -s conftest.err'
23280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281   (eval $ac_try) 2>&5
23282   ac_status=$?
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); }; } &&
23285          { ac_try='test -s conftest.$ac_objext'
23286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287   (eval $ac_try) 2>&5
23288   ac_status=$?
23289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290   (exit $ac_status); }; }; then
23291   ac_cv_type_size_t=yes
23292 else
23293   echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23295
23296 ac_cv_type_size_t=no
23297 fi
23298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23299 fi
23300 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23301 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23302 if test $ac_cv_type_size_t = yes; then
23303   :
23304 else
23305
23306 cat >>confdefs.h <<_ACEOF
23307 #define size_t unsigned
23308 _ACEOF
23309
23310 fi
23311
23312 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23313 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23314 if test "${ac_cv_type_signal+set}" = set; then
23315   echo $ECHO_N "(cached) $ECHO_C" >&6
23316 else
23317   cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h.  */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h.  */
23323 #include <sys/types.h>
23324 #include <signal.h>
23325 #ifdef signal
23326 # undef signal
23327 #endif
23328 #ifdef __cplusplus
23329 extern "C" void (*signal (int, void (*)(int)))(int);
23330 #else
23331 void (*signal ()) ();
23332 #endif
23333
23334 int
23335 main ()
23336 {
23337 int i;
23338   ;
23339   return 0;
23340 }
23341 _ACEOF
23342 rm -f conftest.$ac_objext
23343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23344   (eval $ac_compile) 2>conftest.er1
23345   ac_status=$?
23346   grep -v '^ *+' conftest.er1 >conftest.err
23347   rm -f conftest.er1
23348   cat conftest.err >&5
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); } &&
23351          { ac_try='test -z "$ac_c_werror_flag"
23352                          || test ! -s conftest.err'
23353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23354   (eval $ac_try) 2>&5
23355   ac_status=$?
23356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357   (exit $ac_status); }; } &&
23358          { ac_try='test -s conftest.$ac_objext'
23359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23360   (eval $ac_try) 2>&5
23361   ac_status=$?
23362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363   (exit $ac_status); }; }; then
23364   ac_cv_type_signal=void
23365 else
23366   echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23368
23369 ac_cv_type_signal=int
23370 fi
23371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23372 fi
23373 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23374 echo "${ECHO_T}$ac_cv_type_signal" >&6
23375
23376 cat >>confdefs.h <<_ACEOF
23377 #define RETSIGTYPE $ac_cv_type_signal
23378 _ACEOF
23379
23380
23381 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23382 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
23383 if test "${ac_cv_struct_tm+set}" = set; then
23384   echo $ECHO_N "(cached) $ECHO_C" >&6
23385 else
23386   cat >conftest.$ac_ext <<_ACEOF
23387 /* confdefs.h.  */
23388 _ACEOF
23389 cat confdefs.h >>conftest.$ac_ext
23390 cat >>conftest.$ac_ext <<_ACEOF
23391 /* end confdefs.h.  */
23392 #include <sys/types.h>
23393 #include <time.h>
23394
23395 int
23396 main ()
23397 {
23398 struct tm *tp; tp->tm_sec;
23399   ;
23400   return 0;
23401 }
23402 _ACEOF
23403 rm -f conftest.$ac_objext
23404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23405   (eval $ac_compile) 2>conftest.er1
23406   ac_status=$?
23407   grep -v '^ *+' conftest.er1 >conftest.err
23408   rm -f conftest.er1
23409   cat conftest.err >&5
23410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411   (exit $ac_status); } &&
23412          { ac_try='test -z "$ac_c_werror_flag"
23413                          || test ! -s conftest.err'
23414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415   (eval $ac_try) 2>&5
23416   ac_status=$?
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); }; } &&
23419          { ac_try='test -s conftest.$ac_objext'
23420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421   (eval $ac_try) 2>&5
23422   ac_status=$?
23423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424   (exit $ac_status); }; }; then
23425   ac_cv_struct_tm=time.h
23426 else
23427   echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.$ac_ext >&5
23429
23430 ac_cv_struct_tm=sys/time.h
23431 fi
23432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23433 fi
23434 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23435 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23436 if test $ac_cv_struct_tm = sys/time.h; then
23437
23438 cat >>confdefs.h <<\_ACEOF
23439 #define TM_IN_SYS_TIME 1
23440 _ACEOF
23441
23442 fi
23443
23444 echo "$as_me:$LINENO: checking for int64_t" >&5
23445 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
23446 if test "${ac_cv_type_int64_t+set}" = set; then
23447   echo $ECHO_N "(cached) $ECHO_C" >&6
23448 else
23449   cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h.  */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h.  */
23455 $ac_includes_default
23456 int
23457 main ()
23458 {
23459 if ((int64_t *) 0)
23460   return 0;
23461 if (sizeof (int64_t))
23462   return 0;
23463   ;
23464   return 0;
23465 }
23466 _ACEOF
23467 rm -f conftest.$ac_objext
23468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23469   (eval $ac_compile) 2>conftest.er1
23470   ac_status=$?
23471   grep -v '^ *+' conftest.er1 >conftest.err
23472   rm -f conftest.er1
23473   cat conftest.err >&5
23474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475   (exit $ac_status); } &&
23476          { ac_try='test -z "$ac_c_werror_flag"
23477                          || test ! -s conftest.err'
23478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479   (eval $ac_try) 2>&5
23480   ac_status=$?
23481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482   (exit $ac_status); }; } &&
23483          { ac_try='test -s conftest.$ac_objext'
23484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23485   (eval $ac_try) 2>&5
23486   ac_status=$?
23487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488   (exit $ac_status); }; }; then
23489   ac_cv_type_int64_t=yes
23490 else
23491   echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23493
23494 ac_cv_type_int64_t=no
23495 fi
23496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23497 fi
23498 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
23499 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
23500 if test $ac_cv_type_int64_t = yes; then
23501
23502 cat >>confdefs.h <<_ACEOF
23503 #define HAVE_INT64_T 1
23504 _ACEOF
23505
23506
23507 else
23508   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
23509 echo "$as_me: error: Type int64_t required but not found" >&2;}
23510    { (exit 1); exit 1; }; }
23511 fi
23512
23513 echo "$as_me:$LINENO: checking for uint64_t" >&5
23514 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
23515 if test "${ac_cv_type_uint64_t+set}" = set; then
23516   echo $ECHO_N "(cached) $ECHO_C" >&6
23517 else
23518   cat >conftest.$ac_ext <<_ACEOF
23519 /* confdefs.h.  */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h.  */
23524 $ac_includes_default
23525 int
23526 main ()
23527 {
23528 if ((uint64_t *) 0)
23529   return 0;
23530 if (sizeof (uint64_t))
23531   return 0;
23532   ;
23533   return 0;
23534 }
23535 _ACEOF
23536 rm -f conftest.$ac_objext
23537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23538   (eval $ac_compile) 2>conftest.er1
23539   ac_status=$?
23540   grep -v '^ *+' conftest.er1 >conftest.err
23541   rm -f conftest.er1
23542   cat conftest.err >&5
23543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544   (exit $ac_status); } &&
23545          { ac_try='test -z "$ac_c_werror_flag"
23546                          || test ! -s conftest.err'
23547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23548   (eval $ac_try) 2>&5
23549   ac_status=$?
23550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551   (exit $ac_status); }; } &&
23552          { ac_try='test -s conftest.$ac_objext'
23553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23554   (eval $ac_try) 2>&5
23555   ac_status=$?
23556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557   (exit $ac_status); }; }; then
23558   ac_cv_type_uint64_t=yes
23559 else
23560   echo "$as_me: failed program was:" >&5
23561 sed 's/^/| /' conftest.$ac_ext >&5
23562
23563 ac_cv_type_uint64_t=no
23564 fi
23565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23566 fi
23567 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
23568 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
23569 if test $ac_cv_type_uint64_t = yes; then
23570
23571 cat >>confdefs.h <<_ACEOF
23572 #define HAVE_UINT64_T 1
23573 _ACEOF
23574
23575
23576 else
23577   echo "$as_me:$LINENO: checking for u_int64_t" >&5
23578 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
23579 if test "${ac_cv_type_u_int64_t+set}" = set; then
23580   echo $ECHO_N "(cached) $ECHO_C" >&6
23581 else
23582   cat >conftest.$ac_ext <<_ACEOF
23583 /* confdefs.h.  */
23584 _ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h.  */
23588 $ac_includes_default
23589 int
23590 main ()
23591 {
23592 if ((u_int64_t *) 0)
23593   return 0;
23594 if (sizeof (u_int64_t))
23595   return 0;
23596   ;
23597   return 0;
23598 }
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_c_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_type_u_int64_t=yes
23623 else
23624   echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23626
23627 ac_cv_type_u_int64_t=no
23628 fi
23629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23630 fi
23631 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
23632 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
23633 if test $ac_cv_type_u_int64_t = yes; then
23634
23635 cat >>confdefs.h <<_ACEOF
23636 #define HAVE_U_INT64_T 1
23637 _ACEOF
23638
23639
23640 else
23641   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
23642 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
23643    { (exit 1); exit 1; }; }
23644 fi
23645
23646 fi
23647
23648
23649
23650   echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
23651 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
23652   ac_ext=c
23653 ac_cpp='$CPP $CPPFLAGS'
23654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23657
23658   if test "$cross_compiling" = yes; then
23659   ac_c_printf_a=no
23660 else
23661   cat >conftest.$ac_ext <<_ACEOF
23662
23663     /* confdefs.h.  */
23664 _ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h.  */
23668
23669 #include <stdio.h>
23670 #include <stdlib.h>
23671
23672 int
23673 main ()
23674 {
23675
23676 volatile double A, B;
23677 char Buffer[100];
23678 A = 1;
23679 A /= 10.0;
23680 sprintf(Buffer, "%a", A);
23681 B = atof(Buffer);
23682 if (A != B)
23683   return (1);
23684 if (A != 0x1.999999999999ap-4)
23685   return (1);
23686 return (0);
23687   ;
23688   return 0;
23689 }
23690 _ACEOF
23691 rm -f conftest$ac_exeext
23692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23693   (eval $ac_link) 2>&5
23694   ac_status=$?
23695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698   (eval $ac_try) 2>&5
23699   ac_status=$?
23700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701   (exit $ac_status); }; }; then
23702   ac_c_printf_a=yes
23703 else
23704   echo "$as_me: program exited with status $ac_status" >&5
23705 echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23707
23708 ( exit $ac_status )
23709 ac_c_printf_a=no
23710 fi
23711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23712 fi
23713  ac_ext=c
23714 ac_cpp='$CPP $CPPFLAGS'
23715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23718
23719  echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
23720 echo "${ECHO_T}$ac_c_printf_a" >&6
23721  if test "$ac_c_printf_a" = "yes"; then
23722
23723 cat >>confdefs.h <<\_ACEOF
23724 #define HAVE_PRINTF_A 1
23725 _ACEOF
23726
23727  fi
23728
23729
23730 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
23731 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
23732 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
23733   echo $ECHO_N "(cached) $ECHO_C" >&6
23734 else
23735   ac_ext=cc
23736 ac_cpp='$CXXCPP $CPPFLAGS'
23737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23740
23741   cat >conftest.$ac_ext <<_ACEOF
23742 /* confdefs.h.  */
23743 _ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h.  */
23747 #include <math.h>
23748                      int foo(float f) {return isnan(f);}
23749 _ACEOF
23750 rm -f conftest.$ac_objext
23751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23752   (eval $ac_compile) 2>conftest.er1
23753   ac_status=$?
23754   grep -v '^ *+' conftest.er1 >conftest.err
23755   rm -f conftest.er1
23756   cat conftest.err >&5
23757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758   (exit $ac_status); } &&
23759          { ac_try='test -z "$ac_cxx_werror_flag"
23760                          || test ! -s conftest.err'
23761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762   (eval $ac_try) 2>&5
23763   ac_status=$?
23764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765   (exit $ac_status); }; } &&
23766          { ac_try='test -s conftest.$ac_objext'
23767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23768   (eval $ac_try) 2>&5
23769   ac_status=$?
23770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771   (exit $ac_status); }; }; then
23772   ac_cv_func_isnan_in_math_h=yes
23773 else
23774   echo "$as_me: failed program was:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23776
23777 ac_cv_func_isnan_in_math_h=no
23778 fi
23779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23780  ac_ext=c
23781 ac_cpp='$CPP $CPPFLAGS'
23782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23785
23786 fi
23787 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
23788 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
23789  if test "$ac_cv_func_isnan_in_math_h" = "yes"
23790  then
23791
23792 cat >>confdefs.h <<\_ACEOF
23793 #define HAVE_ISNAN_IN_MATH_H 1
23794 _ACEOF
23795
23796  fi
23797 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
23798 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
23799 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
23800   echo $ECHO_N "(cached) $ECHO_C" >&6
23801 else
23802   ac_ext=cc
23803 ac_cpp='$CXXCPP $CPPFLAGS'
23804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23807
23808   cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h.  */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h.  */
23814 #include <cmath>
23815                      int foo(float f) {return isnan(f);}
23816 _ACEOF
23817 rm -f conftest.$ac_objext
23818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23819   (eval $ac_compile) 2>conftest.er1
23820   ac_status=$?
23821   grep -v '^ *+' conftest.er1 >conftest.err
23822   rm -f conftest.er1
23823   cat conftest.err >&5
23824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825   (exit $ac_status); } &&
23826          { ac_try='test -z "$ac_cxx_werror_flag"
23827                          || test ! -s conftest.err'
23828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23829   (eval $ac_try) 2>&5
23830   ac_status=$?
23831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832   (exit $ac_status); }; } &&
23833          { ac_try='test -s conftest.$ac_objext'
23834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23835   (eval $ac_try) 2>&5
23836   ac_status=$?
23837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838   (exit $ac_status); }; }; then
23839   ac_cv_func_isnan_in_cmath=yes
23840 else
23841   echo "$as_me: failed program was:" >&5
23842 sed 's/^/| /' conftest.$ac_ext >&5
23843
23844 ac_cv_func_isnan_in_cmath=no
23845 fi
23846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23847  ac_ext=c
23848 ac_cpp='$CPP $CPPFLAGS'
23849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23852
23853 fi
23854 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
23855 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
23856  if test "$ac_cv_func_isnan_in_cmath" = "yes"
23857  then
23858
23859 cat >>confdefs.h <<\_ACEOF
23860 #define HAVE_ISNAN_IN_CMATH 1
23861 _ACEOF
23862
23863  fi
23864 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
23865 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
23866 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
23867   echo $ECHO_N "(cached) $ECHO_C" >&6
23868 else
23869   ac_ext=cc
23870 ac_cpp='$CXXCPP $CPPFLAGS'
23871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23874
23875   cat >conftest.$ac_ext <<_ACEOF
23876 /* confdefs.h.  */
23877 _ACEOF
23878 cat confdefs.h >>conftest.$ac_ext
23879 cat >>conftest.$ac_ext <<_ACEOF
23880 /* end confdefs.h.  */
23881 #include <cmath>
23882                      using std::isnan; int foo(float f) {return isnan(f);}
23883 _ACEOF
23884 rm -f conftest.$ac_objext
23885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23886   (eval $ac_compile) 2>conftest.er1
23887   ac_status=$?
23888   grep -v '^ *+' conftest.er1 >conftest.err
23889   rm -f conftest.er1
23890   cat conftest.err >&5
23891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892   (exit $ac_status); } &&
23893          { ac_try='test -z "$ac_cxx_werror_flag"
23894                          || test ! -s conftest.err'
23895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896   (eval $ac_try) 2>&5
23897   ac_status=$?
23898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899   (exit $ac_status); }; } &&
23900          { ac_try='test -s conftest.$ac_objext'
23901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902   (eval $ac_try) 2>&5
23903   ac_status=$?
23904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905   (exit $ac_status); }; }; then
23906   ac_cv_func_std_isnan_in_cmath=yes
23907 else
23908   echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23910
23911 ac_cv_func_std_isnan_in_cmath=no
23912 fi
23913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23914  ac_ext=c
23915 ac_cpp='$CPP $CPPFLAGS'
23916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23919
23920 fi
23921 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
23922 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
23923  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
23924  then
23925
23926 cat >>confdefs.h <<\_ACEOF
23927 #define HAVE_STD_ISNAN_IN_CMATH 1
23928 _ACEOF
23929
23930  fi
23931
23932
23933 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
23934 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
23935 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
23936   echo $ECHO_N "(cached) $ECHO_C" >&6
23937 else
23938   ac_ext=cc
23939 ac_cpp='$CXXCPP $CPPFLAGS'
23940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23943
23944   cat >conftest.$ac_ext <<_ACEOF
23945 /* confdefs.h.  */
23946 _ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h.  */
23950 #include <math.h>
23951                      int foo(float f) {return isinf(f);}
23952 _ACEOF
23953 rm -f conftest.$ac_objext
23954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23955   (eval $ac_compile) 2>conftest.er1
23956   ac_status=$?
23957   grep -v '^ *+' conftest.er1 >conftest.err
23958   rm -f conftest.er1
23959   cat conftest.err >&5
23960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961   (exit $ac_status); } &&
23962          { ac_try='test -z "$ac_cxx_werror_flag"
23963                          || test ! -s conftest.err'
23964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965   (eval $ac_try) 2>&5
23966   ac_status=$?
23967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968   (exit $ac_status); }; } &&
23969          { ac_try='test -s conftest.$ac_objext'
23970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971   (eval $ac_try) 2>&5
23972   ac_status=$?
23973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974   (exit $ac_status); }; }; then
23975   ac_cv_func_isinf_in_math_h=yes
23976 else
23977   echo "$as_me: failed program was:" >&5
23978 sed 's/^/| /' conftest.$ac_ext >&5
23979
23980 ac_cv_func_isinf_in_math_h=no
23981 fi
23982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23983  ac_ext=c
23984 ac_cpp='$CPP $CPPFLAGS'
23985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23988
23989 fi
23990 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
23991 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
23992  if test "$ac_cv_func_isinf_in_math_h" = "yes"
23993  then
23994
23995 cat >>confdefs.h <<\_ACEOF
23996 #define HAVE_ISINF_IN_MATH_H 1
23997 _ACEOF
23998
23999  fi
24000 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
24001 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
24002 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
24003   echo $ECHO_N "(cached) $ECHO_C" >&6
24004 else
24005   ac_ext=cc
24006 ac_cpp='$CXXCPP $CPPFLAGS'
24007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24010
24011   cat >conftest.$ac_ext <<_ACEOF
24012 /* confdefs.h.  */
24013 _ACEOF
24014 cat confdefs.h >>conftest.$ac_ext
24015 cat >>conftest.$ac_ext <<_ACEOF
24016 /* end confdefs.h.  */
24017 #include <cmath>
24018                      int foo(float f) {return isinf(f);}
24019 _ACEOF
24020 rm -f conftest.$ac_objext
24021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24022   (eval $ac_compile) 2>conftest.er1
24023   ac_status=$?
24024   grep -v '^ *+' conftest.er1 >conftest.err
24025   rm -f conftest.er1
24026   cat conftest.err >&5
24027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028   (exit $ac_status); } &&
24029          { ac_try='test -z "$ac_cxx_werror_flag"
24030                          || test ! -s conftest.err'
24031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032   (eval $ac_try) 2>&5
24033   ac_status=$?
24034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035   (exit $ac_status); }; } &&
24036          { ac_try='test -s conftest.$ac_objext'
24037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24038   (eval $ac_try) 2>&5
24039   ac_status=$?
24040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041   (exit $ac_status); }; }; then
24042   ac_cv_func_isinf_in_cmath=yes
24043 else
24044   echo "$as_me: failed program was:" >&5
24045 sed 's/^/| /' conftest.$ac_ext >&5
24046
24047 ac_cv_func_isinf_in_cmath=no
24048 fi
24049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24050  ac_ext=c
24051 ac_cpp='$CPP $CPPFLAGS'
24052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24055
24056 fi
24057 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
24058 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
24059  if test "$ac_cv_func_isinf_in_cmath" = "yes"
24060  then
24061
24062 cat >>confdefs.h <<\_ACEOF
24063 #define HAVE_ISINF_IN_CMATH 1
24064 _ACEOF
24065
24066  fi
24067 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
24068 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
24069 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
24070   echo $ECHO_N "(cached) $ECHO_C" >&6
24071 else
24072   ac_ext=cc
24073 ac_cpp='$CXXCPP $CPPFLAGS'
24074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24077
24078   cat >conftest.$ac_ext <<_ACEOF
24079 /* confdefs.h.  */
24080 _ACEOF
24081 cat confdefs.h >>conftest.$ac_ext
24082 cat >>conftest.$ac_ext <<_ACEOF
24083 /* end confdefs.h.  */
24084 #include <cmath>
24085                      using std::isinf; int foo(float f) {return isinf(f);}
24086 _ACEOF
24087 rm -f conftest.$ac_objext
24088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24089   (eval $ac_compile) 2>conftest.er1
24090   ac_status=$?
24091   grep -v '^ *+' conftest.er1 >conftest.err
24092   rm -f conftest.er1
24093   cat conftest.err >&5
24094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095   (exit $ac_status); } &&
24096          { ac_try='test -z "$ac_cxx_werror_flag"
24097                          || test ! -s conftest.err'
24098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24099   (eval $ac_try) 2>&5
24100   ac_status=$?
24101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102   (exit $ac_status); }; } &&
24103          { ac_try='test -s conftest.$ac_objext'
24104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24105   (eval $ac_try) 2>&5
24106   ac_status=$?
24107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108   (exit $ac_status); }; }; then
24109   ac_cv_func_std_isinf_in_cmath=yes
24110 else
24111   echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24113
24114 ac_cv_func_std_isinf_in_cmath=no
24115 fi
24116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24117  ac_ext=c
24118 ac_cpp='$CPP $CPPFLAGS'
24119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24122
24123 fi
24124 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
24125 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
24126  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
24127  then
24128
24129 cat >>confdefs.h <<\_ACEOF
24130 #define HAVE_STD_ISINF_IN_CMATH 1
24131 _ACEOF
24132
24133  fi
24134 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
24135 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
24136 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
24137   echo $ECHO_N "(cached) $ECHO_C" >&6
24138 else
24139   ac_ext=cc
24140 ac_cpp='$CXXCPP $CPPFLAGS'
24141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24144
24145   cat >conftest.$ac_ext <<_ACEOF
24146 /* confdefs.h.  */
24147 _ACEOF
24148 cat confdefs.h >>conftest.$ac_ext
24149 cat >>conftest.$ac_ext <<_ACEOF
24150 /* end confdefs.h.  */
24151 #include <ieeefp.h>
24152                      int foo(float f) {return finite(f);}
24153 _ACEOF
24154 rm -f conftest.$ac_objext
24155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24156   (eval $ac_compile) 2>conftest.er1
24157   ac_status=$?
24158   grep -v '^ *+' conftest.er1 >conftest.err
24159   rm -f conftest.er1
24160   cat conftest.err >&5
24161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162   (exit $ac_status); } &&
24163          { ac_try='test -z "$ac_cxx_werror_flag"
24164                          || test ! -s conftest.err'
24165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24166   (eval $ac_try) 2>&5
24167   ac_status=$?
24168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169   (exit $ac_status); }; } &&
24170          { ac_try='test -s conftest.$ac_objext'
24171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24172   (eval $ac_try) 2>&5
24173   ac_status=$?
24174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175   (exit $ac_status); }; }; then
24176   ac_cv_func_finite_in_ieeefp_h=yes
24177 else
24178   echo "$as_me: failed program was:" >&5
24179 sed 's/^/| /' conftest.$ac_ext >&5
24180
24181 ac_cv_func_finite_in_ieeefp_h=no
24182 fi
24183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24184  ac_ext=c
24185 ac_cpp='$CPP $CPPFLAGS'
24186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24189
24190 fi
24191 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
24192 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
24193  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
24194  then
24195
24196 cat >>confdefs.h <<\_ACEOF
24197 #define HAVE_FINITE_IN_IEEEFP_H 1
24198 _ACEOF
24199
24200  fi
24201
24202 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24203 # for constant arguments.  Useless!
24204 echo "$as_me:$LINENO: checking for working alloca.h" >&5
24205 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
24206 if test "${ac_cv_working_alloca_h+set}" = set; then
24207   echo $ECHO_N "(cached) $ECHO_C" >&6
24208 else
24209   cat >conftest.$ac_ext <<_ACEOF
24210 /* confdefs.h.  */
24211 _ACEOF
24212 cat confdefs.h >>conftest.$ac_ext
24213 cat >>conftest.$ac_ext <<_ACEOF
24214 /* end confdefs.h.  */
24215 #include <alloca.h>
24216 int
24217 main ()
24218 {
24219 char *p = (char *) alloca (2 * sizeof (int));
24220   ;
24221   return 0;
24222 }
24223 _ACEOF
24224 rm -f conftest.$ac_objext conftest$ac_exeext
24225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24226   (eval $ac_link) 2>conftest.er1
24227   ac_status=$?
24228   grep -v '^ *+' conftest.er1 >conftest.err
24229   rm -f conftest.er1
24230   cat conftest.err >&5
24231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232   (exit $ac_status); } &&
24233          { ac_try='test -z "$ac_c_werror_flag"
24234                          || test ! -s conftest.err'
24235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24236   (eval $ac_try) 2>&5
24237   ac_status=$?
24238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239   (exit $ac_status); }; } &&
24240          { ac_try='test -s conftest$ac_exeext'
24241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24242   (eval $ac_try) 2>&5
24243   ac_status=$?
24244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245   (exit $ac_status); }; }; then
24246   ac_cv_working_alloca_h=yes
24247 else
24248   echo "$as_me: failed program was:" >&5
24249 sed 's/^/| /' conftest.$ac_ext >&5
24250
24251 ac_cv_working_alloca_h=no
24252 fi
24253 rm -f conftest.err conftest.$ac_objext \
24254       conftest$ac_exeext conftest.$ac_ext
24255 fi
24256 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24257 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
24258 if test $ac_cv_working_alloca_h = yes; then
24259
24260 cat >>confdefs.h <<\_ACEOF
24261 #define HAVE_ALLOCA_H 1
24262 _ACEOF
24263
24264 fi
24265
24266 echo "$as_me:$LINENO: checking for alloca" >&5
24267 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
24268 if test "${ac_cv_func_alloca_works+set}" = set; then
24269   echo $ECHO_N "(cached) $ECHO_C" >&6
24270 else
24271   cat >conftest.$ac_ext <<_ACEOF
24272 /* confdefs.h.  */
24273 _ACEOF
24274 cat confdefs.h >>conftest.$ac_ext
24275 cat >>conftest.$ac_ext <<_ACEOF
24276 /* end confdefs.h.  */
24277 #ifdef __GNUC__
24278 # define alloca __builtin_alloca
24279 #else
24280 # ifdef _MSC_VER
24281 #  include <malloc.h>
24282 #  define alloca _alloca
24283 # else
24284 #  if HAVE_ALLOCA_H
24285 #   include <alloca.h>
24286 #  else
24287 #   ifdef _AIX
24288  #pragma alloca
24289 #   else
24290 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24291 char *alloca ();
24292 #    endif
24293 #   endif
24294 #  endif
24295 # endif
24296 #endif
24297
24298 int
24299 main ()
24300 {
24301 char *p = (char *) alloca (1);
24302   ;
24303   return 0;
24304 }
24305 _ACEOF
24306 rm -f conftest.$ac_objext conftest$ac_exeext
24307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24308   (eval $ac_link) 2>conftest.er1
24309   ac_status=$?
24310   grep -v '^ *+' conftest.er1 >conftest.err
24311   rm -f conftest.er1
24312   cat conftest.err >&5
24313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); } &&
24315          { ac_try='test -z "$ac_c_werror_flag"
24316                          || test ! -s conftest.err'
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); }; } &&
24322          { ac_try='test -s conftest$ac_exeext'
24323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324   (eval $ac_try) 2>&5
24325   ac_status=$?
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); }; }; then
24328   ac_cv_func_alloca_works=yes
24329 else
24330   echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24332
24333 ac_cv_func_alloca_works=no
24334 fi
24335 rm -f conftest.err conftest.$ac_objext \
24336       conftest$ac_exeext conftest.$ac_ext
24337 fi
24338 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24339 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
24340
24341 if test $ac_cv_func_alloca_works = yes; then
24342
24343 cat >>confdefs.h <<\_ACEOF
24344 #define HAVE_ALLOCA 1
24345 _ACEOF
24346
24347 else
24348   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24349 # that cause trouble.  Some versions do not even contain alloca or
24350 # contain a buggy version.  If you still want to use their alloca,
24351 # use ar to extract alloca.o from them instead of compiling alloca.c.
24352
24353 ALLOCA=alloca.$ac_objext
24354
24355 cat >>confdefs.h <<\_ACEOF
24356 #define C_ALLOCA 1
24357 _ACEOF
24358
24359
24360 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24361 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
24362 if test "${ac_cv_os_cray+set}" = set; then
24363   echo $ECHO_N "(cached) $ECHO_C" >&6
24364 else
24365   cat >conftest.$ac_ext <<_ACEOF
24366 /* confdefs.h.  */
24367 _ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h.  */
24371 #if defined(CRAY) && ! defined(CRAY2)
24372 webecray
24373 #else
24374 wenotbecray
24375 #endif
24376
24377 _ACEOF
24378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24379   $EGREP "webecray" >/dev/null 2>&1; then
24380   ac_cv_os_cray=yes
24381 else
24382   ac_cv_os_cray=no
24383 fi
24384 rm -f conftest*
24385
24386 fi
24387 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24388 echo "${ECHO_T}$ac_cv_os_cray" >&6
24389 if test $ac_cv_os_cray = yes; then
24390   for ac_func in _getb67 GETB67 getb67; do
24391     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24392 echo "$as_me:$LINENO: checking for $ac_func" >&5
24393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24394 if eval "test \"\${$as_ac_var+set}\" = set"; then
24395   echo $ECHO_N "(cached) $ECHO_C" >&6
24396 else
24397   cat >conftest.$ac_ext <<_ACEOF
24398 /* confdefs.h.  */
24399 _ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h.  */
24403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24405 #define $ac_func innocuous_$ac_func
24406
24407 /* System header to define __stub macros and hopefully few prototypes,
24408     which can conflict with char $ac_func (); below.
24409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24410     <limits.h> exists even on freestanding compilers.  */
24411
24412 #ifdef __STDC__
24413 # include <limits.h>
24414 #else
24415 # include <assert.h>
24416 #endif
24417
24418 #undef $ac_func
24419
24420 /* Override any gcc2 internal prototype to avoid an error.  */
24421 #ifdef __cplusplus
24422 extern "C"
24423 {
24424 #endif
24425 /* We use char because int might match the return type of a gcc2
24426    builtin and then its argument prototype would still apply.  */
24427 char $ac_func ();
24428 /* The GNU C library defines this for functions which it implements
24429     to always fail with ENOSYS.  Some functions are actually named
24430     something starting with __ and the normal name is an alias.  */
24431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24432 choke me
24433 #else
24434 char (*f) () = $ac_func;
24435 #endif
24436 #ifdef __cplusplus
24437 }
24438 #endif
24439
24440 int
24441 main ()
24442 {
24443 return f != $ac_func;
24444   ;
24445   return 0;
24446 }
24447 _ACEOF
24448 rm -f conftest.$ac_objext conftest$ac_exeext
24449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24450   (eval $ac_link) 2>conftest.er1
24451   ac_status=$?
24452   grep -v '^ *+' conftest.er1 >conftest.err
24453   rm -f conftest.er1
24454   cat conftest.err >&5
24455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456   (exit $ac_status); } &&
24457          { ac_try='test -z "$ac_c_werror_flag"
24458                          || test ! -s conftest.err'
24459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24460   (eval $ac_try) 2>&5
24461   ac_status=$?
24462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463   (exit $ac_status); }; } &&
24464          { ac_try='test -s conftest$ac_exeext'
24465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24466   (eval $ac_try) 2>&5
24467   ac_status=$?
24468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469   (exit $ac_status); }; }; then
24470   eval "$as_ac_var=yes"
24471 else
24472   echo "$as_me: failed program was:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24474
24475 eval "$as_ac_var=no"
24476 fi
24477 rm -f conftest.err conftest.$ac_objext \
24478       conftest$ac_exeext conftest.$ac_ext
24479 fi
24480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24482 if test `eval echo '${'$as_ac_var'}'` = yes; then
24483
24484 cat >>confdefs.h <<_ACEOF
24485 #define CRAY_STACKSEG_END $ac_func
24486 _ACEOF
24487
24488     break
24489 fi
24490
24491   done
24492 fi
24493
24494 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24495 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
24496 if test "${ac_cv_c_stack_direction+set}" = set; then
24497   echo $ECHO_N "(cached) $ECHO_C" >&6
24498 else
24499   if test "$cross_compiling" = yes; then
24500   ac_cv_c_stack_direction=0
24501 else
24502   cat >conftest.$ac_ext <<_ACEOF
24503 /* confdefs.h.  */
24504 _ACEOF
24505 cat confdefs.h >>conftest.$ac_ext
24506 cat >>conftest.$ac_ext <<_ACEOF
24507 /* end confdefs.h.  */
24508 int
24509 find_stack_direction ()
24510 {
24511   static char *addr = 0;
24512   auto char dummy;
24513   if (addr == 0)
24514     {
24515       addr = &dummy;
24516       return find_stack_direction ();
24517     }
24518   else
24519     return (&dummy > addr) ? 1 : -1;
24520 }
24521
24522 int
24523 main ()
24524 {
24525   exit (find_stack_direction () < 0);
24526 }
24527 _ACEOF
24528 rm -f conftest$ac_exeext
24529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24530   (eval $ac_link) 2>&5
24531   ac_status=$?
24532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24535   (eval $ac_try) 2>&5
24536   ac_status=$?
24537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538   (exit $ac_status); }; }; then
24539   ac_cv_c_stack_direction=1
24540 else
24541   echo "$as_me: program exited with status $ac_status" >&5
24542 echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24544
24545 ( exit $ac_status )
24546 ac_cv_c_stack_direction=-1
24547 fi
24548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24549 fi
24550 fi
24551 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24552 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
24553
24554 cat >>confdefs.h <<_ACEOF
24555 #define STACK_DIRECTION $ac_cv_c_stack_direction
24556 _ACEOF
24557
24558
24559 fi
24560
24561
24562
24563 for ac_header in stdlib.h unistd.h
24564 do
24565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24567   echo "$as_me:$LINENO: checking for $ac_header" >&5
24568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24570   echo $ECHO_N "(cached) $ECHO_C" >&6
24571 fi
24572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24574 else
24575   # Is the header compilable?
24576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24578 cat >conftest.$ac_ext <<_ACEOF
24579 /* confdefs.h.  */
24580 _ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h.  */
24584 $ac_includes_default
24585 #include <$ac_header>
24586 _ACEOF
24587 rm -f conftest.$ac_objext
24588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24589   (eval $ac_compile) 2>conftest.er1
24590   ac_status=$?
24591   grep -v '^ *+' conftest.er1 >conftest.err
24592   rm -f conftest.er1
24593   cat conftest.err >&5
24594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595   (exit $ac_status); } &&
24596          { ac_try='test -z "$ac_c_werror_flag"
24597                          || test ! -s conftest.err'
24598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24599   (eval $ac_try) 2>&5
24600   ac_status=$?
24601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602   (exit $ac_status); }; } &&
24603          { ac_try='test -s conftest.$ac_objext'
24604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24605   (eval $ac_try) 2>&5
24606   ac_status=$?
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); }; }; then
24609   ac_header_compiler=yes
24610 else
24611   echo "$as_me: failed program was:" >&5
24612 sed 's/^/| /' conftest.$ac_ext >&5
24613
24614 ac_header_compiler=no
24615 fi
24616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24618 echo "${ECHO_T}$ac_header_compiler" >&6
24619
24620 # Is the header present?
24621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24623 cat >conftest.$ac_ext <<_ACEOF
24624 /* confdefs.h.  */
24625 _ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h.  */
24629 #include <$ac_header>
24630 _ACEOF
24631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24632   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24633   ac_status=$?
24634   grep -v '^ *+' conftest.er1 >conftest.err
24635   rm -f conftest.er1
24636   cat conftest.err >&5
24637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638   (exit $ac_status); } >/dev/null; then
24639   if test -s conftest.err; then
24640     ac_cpp_err=$ac_c_preproc_warn_flag
24641     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24642   else
24643     ac_cpp_err=
24644   fi
24645 else
24646   ac_cpp_err=yes
24647 fi
24648 if test -z "$ac_cpp_err"; then
24649   ac_header_preproc=yes
24650 else
24651   echo "$as_me: failed program was:" >&5
24652 sed 's/^/| /' conftest.$ac_ext >&5
24653
24654   ac_header_preproc=no
24655 fi
24656 rm -f conftest.err conftest.$ac_ext
24657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24658 echo "${ECHO_T}$ac_header_preproc" >&6
24659
24660 # So?  What about this header?
24661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24662   yes:no: )
24663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24667     ac_header_preproc=yes
24668     ;;
24669   no:yes:* )
24670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24682     (
24683       cat <<\_ASBOX
24684 ## ----------------------------------- ##
24685 ## Report this to llvmbugs@cs.uiuc.edu ##
24686 ## ----------------------------------- ##
24687 _ASBOX
24688     ) |
24689       sed "s/^/$as_me: WARNING:     /" >&2
24690     ;;
24691 esac
24692 echo "$as_me:$LINENO: checking for $ac_header" >&5
24693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24695   echo $ECHO_N "(cached) $ECHO_C" >&6
24696 else
24697   eval "$as_ac_Header=\$ac_header_preproc"
24698 fi
24699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24701
24702 fi
24703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24704   cat >>confdefs.h <<_ACEOF
24705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24706 _ACEOF
24707
24708 fi
24709
24710 done
24711
24712
24713 for ac_func in getpagesize
24714 do
24715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24716 echo "$as_me:$LINENO: checking for $ac_func" >&5
24717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24718 if eval "test \"\${$as_ac_var+set}\" = set"; then
24719   echo $ECHO_N "(cached) $ECHO_C" >&6
24720 else
24721   cat >conftest.$ac_ext <<_ACEOF
24722 /* confdefs.h.  */
24723 _ACEOF
24724 cat confdefs.h >>conftest.$ac_ext
24725 cat >>conftest.$ac_ext <<_ACEOF
24726 /* end confdefs.h.  */
24727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24729 #define $ac_func innocuous_$ac_func
24730
24731 /* System header to define __stub macros and hopefully few prototypes,
24732     which can conflict with char $ac_func (); below.
24733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24734     <limits.h> exists even on freestanding compilers.  */
24735
24736 #ifdef __STDC__
24737 # include <limits.h>
24738 #else
24739 # include <assert.h>
24740 #endif
24741
24742 #undef $ac_func
24743
24744 /* Override any gcc2 internal prototype to avoid an error.  */
24745 #ifdef __cplusplus
24746 extern "C"
24747 {
24748 #endif
24749 /* We use char because int might match the return type of a gcc2
24750    builtin and then its argument prototype would still apply.  */
24751 char $ac_func ();
24752 /* The GNU C library defines this for functions which it implements
24753     to always fail with ENOSYS.  Some functions are actually named
24754     something starting with __ and the normal name is an alias.  */
24755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24756 choke me
24757 #else
24758 char (*f) () = $ac_func;
24759 #endif
24760 #ifdef __cplusplus
24761 }
24762 #endif
24763
24764 int
24765 main ()
24766 {
24767 return f != $ac_func;
24768   ;
24769   return 0;
24770 }
24771 _ACEOF
24772 rm -f conftest.$ac_objext conftest$ac_exeext
24773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24774   (eval $ac_link) 2>conftest.er1
24775   ac_status=$?
24776   grep -v '^ *+' conftest.er1 >conftest.err
24777   rm -f conftest.er1
24778   cat conftest.err >&5
24779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780   (exit $ac_status); } &&
24781          { ac_try='test -z "$ac_c_werror_flag"
24782                          || test ! -s conftest.err'
24783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24784   (eval $ac_try) 2>&5
24785   ac_status=$?
24786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787   (exit $ac_status); }; } &&
24788          { ac_try='test -s conftest$ac_exeext'
24789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24790   (eval $ac_try) 2>&5
24791   ac_status=$?
24792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793   (exit $ac_status); }; }; then
24794   eval "$as_ac_var=yes"
24795 else
24796   echo "$as_me: failed program was:" >&5
24797 sed 's/^/| /' conftest.$ac_ext >&5
24798
24799 eval "$as_ac_var=no"
24800 fi
24801 rm -f conftest.err conftest.$ac_objext \
24802       conftest$ac_exeext conftest.$ac_ext
24803 fi
24804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24806 if test `eval echo '${'$as_ac_var'}'` = yes; then
24807   cat >>confdefs.h <<_ACEOF
24808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24809 _ACEOF
24810
24811 fi
24812 done
24813
24814 echo "$as_me:$LINENO: checking for working mmap" >&5
24815 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
24816 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24817   echo $ECHO_N "(cached) $ECHO_C" >&6
24818 else
24819   if test "$cross_compiling" = yes; then
24820   ac_cv_func_mmap_fixed_mapped=no
24821 else
24822   cat >conftest.$ac_ext <<_ACEOF
24823 /* confdefs.h.  */
24824 _ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h.  */
24828 $ac_includes_default
24829 /* malloc might have been renamed as rpl_malloc. */
24830 #undef malloc
24831
24832 /* Thanks to Mike Haertel and Jim Avera for this test.
24833    Here is a matrix of mmap possibilities:
24834         mmap private not fixed
24835         mmap private fixed at somewhere currently unmapped
24836         mmap private fixed at somewhere already mapped
24837         mmap shared not fixed
24838         mmap shared fixed at somewhere currently unmapped
24839         mmap shared fixed at somewhere already mapped
24840    For private mappings, we should verify that changes cannot be read()
24841    back from the file, nor mmap's back from the file at a different
24842    address.  (There have been systems where private was not correctly
24843    implemented like the infamous i386 svr4.0, and systems where the
24844    VM page cache was not coherent with the file system buffer cache
24845    like early versions of FreeBSD and possibly contemporary NetBSD.)
24846    For shared mappings, we should conversely verify that changes get
24847    propagated back to all the places they're supposed to be.
24848
24849    Grep wants private fixed already mapped.
24850    The main things grep needs to know about mmap are:
24851    * does it exist and is it safe to write into the mmap'd area
24852    * how to use it (BSD variants)  */
24853
24854 #include <fcntl.h>
24855 #include <sys/mman.h>
24856
24857 #if !STDC_HEADERS && !HAVE_STDLIB_H
24858 char *malloc ();
24859 #endif
24860
24861 /* This mess was copied from the GNU getpagesize.h.  */
24862 #if !HAVE_GETPAGESIZE
24863 /* Assume that all systems that can run configure have sys/param.h.  */
24864 # if !HAVE_SYS_PARAM_H
24865 #  define HAVE_SYS_PARAM_H 1
24866 # endif
24867
24868 # ifdef _SC_PAGESIZE
24869 #  define getpagesize() sysconf(_SC_PAGESIZE)
24870 # else /* no _SC_PAGESIZE */
24871 #  if HAVE_SYS_PARAM_H
24872 #   include <sys/param.h>
24873 #   ifdef EXEC_PAGESIZE
24874 #    define getpagesize() EXEC_PAGESIZE
24875 #   else /* no EXEC_PAGESIZE */
24876 #    ifdef NBPG
24877 #     define getpagesize() NBPG * CLSIZE
24878 #     ifndef CLSIZE
24879 #      define CLSIZE 1
24880 #     endif /* no CLSIZE */
24881 #    else /* no NBPG */
24882 #     ifdef NBPC
24883 #      define getpagesize() NBPC
24884 #     else /* no NBPC */
24885 #      ifdef PAGESIZE
24886 #       define getpagesize() PAGESIZE
24887 #      endif /* PAGESIZE */
24888 #     endif /* no NBPC */
24889 #    endif /* no NBPG */
24890 #   endif /* no EXEC_PAGESIZE */
24891 #  else /* no HAVE_SYS_PARAM_H */
24892 #   define getpagesize() 8192   /* punt totally */
24893 #  endif /* no HAVE_SYS_PARAM_H */
24894 # endif /* no _SC_PAGESIZE */
24895
24896 #endif /* no HAVE_GETPAGESIZE */
24897
24898 int
24899 main ()
24900 {
24901   char *data, *data2, *data3;
24902   int i, pagesize;
24903   int fd;
24904
24905   pagesize = getpagesize ();
24906
24907   /* First, make a file with some known garbage in it. */
24908   data = (char *) malloc (pagesize);
24909   if (!data)
24910     exit (1);
24911   for (i = 0; i < pagesize; ++i)
24912     *(data + i) = rand ();
24913   umask (0);
24914   fd = creat ("conftest.mmap", 0600);
24915   if (fd < 0)
24916     exit (1);
24917   if (write (fd, data, pagesize) != pagesize)
24918     exit (1);
24919   close (fd);
24920
24921   /* Next, try to mmap the file at a fixed address which already has
24922      something else allocated at it.  If we can, also make sure that
24923      we see the same garbage.  */
24924   fd = open ("conftest.mmap", O_RDWR);
24925   if (fd < 0)
24926     exit (1);
24927   data2 = (char *) malloc (2 * pagesize);
24928   if (!data2)
24929     exit (1);
24930   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
24931   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24932                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
24933     exit (1);
24934   for (i = 0; i < pagesize; ++i)
24935     if (*(data + i) != *(data2 + i))
24936       exit (1);
24937
24938   /* Finally, make sure that changes to the mapped area do not
24939      percolate back to the file as seen by read().  (This is a bug on
24940      some variants of i386 svr4.0.)  */
24941   for (i = 0; i < pagesize; ++i)
24942     *(data2 + i) = *(data2 + i) + 1;
24943   data3 = (char *) malloc (pagesize);
24944   if (!data3)
24945     exit (1);
24946   if (read (fd, data3, pagesize) != pagesize)
24947     exit (1);
24948   for (i = 0; i < pagesize; ++i)
24949     if (*(data + i) != *(data3 + i))
24950       exit (1);
24951   close (fd);
24952   exit (0);
24953 }
24954 _ACEOF
24955 rm -f conftest$ac_exeext
24956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24957   (eval $ac_link) 2>&5
24958   ac_status=$?
24959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24962   (eval $ac_try) 2>&5
24963   ac_status=$?
24964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965   (exit $ac_status); }; }; then
24966   ac_cv_func_mmap_fixed_mapped=yes
24967 else
24968   echo "$as_me: program exited with status $ac_status" >&5
24969 echo "$as_me: failed program was:" >&5
24970 sed 's/^/| /' conftest.$ac_ext >&5
24971
24972 ( exit $ac_status )
24973 ac_cv_func_mmap_fixed_mapped=no
24974 fi
24975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24976 fi
24977 fi
24978 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24979 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
24980 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24981
24982 cat >>confdefs.h <<\_ACEOF
24983 #define HAVE_MMAP 1
24984 _ACEOF
24985
24986 fi
24987 rm -f conftest.mmap
24988
24989 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
24990 then
24991   { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
24992 echo "$as_me: WARNING: mmap() required but not found" >&2;}
24993 fi
24994 echo "$as_me:$LINENO: checking for mmap of files" >&5
24995 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
24996 if test "${ac_cv_func_mmap_file+set}" = set; then
24997   echo $ECHO_N "(cached) $ECHO_C" >&6
24998 else
24999    ac_ext=c
25000 ac_cpp='$CPP $CPPFLAGS'
25001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25004
25005   if test "$cross_compiling" = yes; then
25006   ac_cv_func_mmap_file=no
25007 else
25008   cat >conftest.$ac_ext <<_ACEOF
25009
25010     /* confdefs.h.  */
25011 _ACEOF
25012 cat confdefs.h >>conftest.$ac_ext
25013 cat >>conftest.$ac_ext <<_ACEOF
25014 /* end confdefs.h.  */
25015
25016 #include <sys/types.h>
25017 #include <sys/mman.h>
25018 #include <fcntl.h>
25019
25020 int
25021 main ()
25022 {
25023
25024   int fd;
25025   fd = creat ("foo",0777);
25026   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
25027   unlink ("foo");
25028   return (fd != (int) MAP_FAILED);
25029   ;
25030   return 0;
25031 }
25032 _ACEOF
25033 rm -f conftest$ac_exeext
25034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25035   (eval $ac_link) 2>&5
25036   ac_status=$?
25037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040   (eval $ac_try) 2>&5
25041   ac_status=$?
25042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043   (exit $ac_status); }; }; then
25044   ac_cv_func_mmap_file=yes
25045 else
25046   echo "$as_me: program exited with status $ac_status" >&5
25047 echo "$as_me: failed program was:" >&5
25048 sed 's/^/| /' conftest.$ac_ext >&5
25049
25050 ( exit $ac_status )
25051 ac_cv_func_mmap_file=no
25052 fi
25053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25054 fi
25055   ac_ext=c
25056 ac_cpp='$CPP $CPPFLAGS'
25057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25060
25061
25062 fi
25063 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
25064 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
25065 if test "$ac_cv_func_mmap_file" = yes; then
25066
25067 cat >>confdefs.h <<\_ACEOF
25068 #define HAVE_MMAP_FILE
25069 _ACEOF
25070
25071    MMAP_FILE=yes
25072
25073 fi
25074
25075 if test "$ac_cv_func_mmap_file" = "no"
25076 then
25077   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
25078 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
25079 fi
25080
25081
25082
25083
25084
25085
25086
25087 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty
25088 do
25089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25090 echo "$as_me:$LINENO: checking for $ac_func" >&5
25091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25092 if eval "test \"\${$as_ac_var+set}\" = set"; then
25093   echo $ECHO_N "(cached) $ECHO_C" >&6
25094 else
25095   cat >conftest.$ac_ext <<_ACEOF
25096 /* confdefs.h.  */
25097 _ACEOF
25098 cat confdefs.h >>conftest.$ac_ext
25099 cat >>conftest.$ac_ext <<_ACEOF
25100 /* end confdefs.h.  */
25101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25103 #define $ac_func innocuous_$ac_func
25104
25105 /* System header to define __stub macros and hopefully few prototypes,
25106     which can conflict with char $ac_func (); below.
25107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25108     <limits.h> exists even on freestanding compilers.  */
25109
25110 #ifdef __STDC__
25111 # include <limits.h>
25112 #else
25113 # include <assert.h>
25114 #endif
25115
25116 #undef $ac_func
25117
25118 /* Override any gcc2 internal prototype to avoid an error.  */
25119 #ifdef __cplusplus
25120 extern "C"
25121 {
25122 #endif
25123 /* We use char because int might match the return type of a gcc2
25124    builtin and then its argument prototype would still apply.  */
25125 char $ac_func ();
25126 /* The GNU C library defines this for functions which it implements
25127     to always fail with ENOSYS.  Some functions are actually named
25128     something starting with __ and the normal name is an alias.  */
25129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25130 choke me
25131 #else
25132 char (*f) () = $ac_func;
25133 #endif
25134 #ifdef __cplusplus
25135 }
25136 #endif
25137
25138 int
25139 main ()
25140 {
25141 return f != $ac_func;
25142   ;
25143   return 0;
25144 }
25145 _ACEOF
25146 rm -f conftest.$ac_objext conftest$ac_exeext
25147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25148   (eval $ac_link) 2>conftest.er1
25149   ac_status=$?
25150   grep -v '^ *+' conftest.er1 >conftest.err
25151   rm -f conftest.er1
25152   cat conftest.err >&5
25153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154   (exit $ac_status); } &&
25155          { ac_try='test -z "$ac_c_werror_flag"
25156                          || test ! -s conftest.err'
25157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25158   (eval $ac_try) 2>&5
25159   ac_status=$?
25160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161   (exit $ac_status); }; } &&
25162          { ac_try='test -s conftest$ac_exeext'
25163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25164   (eval $ac_try) 2>&5
25165   ac_status=$?
25166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167   (exit $ac_status); }; }; then
25168   eval "$as_ac_var=yes"
25169 else
25170   echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25172
25173 eval "$as_ac_var=no"
25174 fi
25175 rm -f conftest.err conftest.$ac_objext \
25176       conftest$ac_exeext conftest.$ac_ext
25177 fi
25178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25180 if test `eval echo '${'$as_ac_var'}'` = yes; then
25181   cat >>confdefs.h <<_ACEOF
25182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25183 _ACEOF
25184
25185 fi
25186 done
25187
25188
25189
25190 for ac_func in mkstemp getrusage
25191 do
25192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25193 echo "$as_me:$LINENO: checking for $ac_func" >&5
25194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25195 if eval "test \"\${$as_ac_var+set}\" = set"; then
25196   echo $ECHO_N "(cached) $ECHO_C" >&6
25197 else
25198   cat >conftest.$ac_ext <<_ACEOF
25199 /* confdefs.h.  */
25200 _ACEOF
25201 cat confdefs.h >>conftest.$ac_ext
25202 cat >>conftest.$ac_ext <<_ACEOF
25203 /* end confdefs.h.  */
25204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25206 #define $ac_func innocuous_$ac_func
25207
25208 /* System header to define __stub macros and hopefully few prototypes,
25209     which can conflict with char $ac_func (); below.
25210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25211     <limits.h> exists even on freestanding compilers.  */
25212
25213 #ifdef __STDC__
25214 # include <limits.h>
25215 #else
25216 # include <assert.h>
25217 #endif
25218
25219 #undef $ac_func
25220
25221 /* Override any gcc2 internal prototype to avoid an error.  */
25222 #ifdef __cplusplus
25223 extern "C"
25224 {
25225 #endif
25226 /* We use char because int might match the return type of a gcc2
25227    builtin and then its argument prototype would still apply.  */
25228 char $ac_func ();
25229 /* The GNU C library defines this for functions which it implements
25230     to always fail with ENOSYS.  Some functions are actually named
25231     something starting with __ and the normal name is an alias.  */
25232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25233 choke me
25234 #else
25235 char (*f) () = $ac_func;
25236 #endif
25237 #ifdef __cplusplus
25238 }
25239 #endif
25240
25241 int
25242 main ()
25243 {
25244 return f != $ac_func;
25245   ;
25246   return 0;
25247 }
25248 _ACEOF
25249 rm -f conftest.$ac_objext conftest$ac_exeext
25250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25251   (eval $ac_link) 2>conftest.er1
25252   ac_status=$?
25253   grep -v '^ *+' conftest.er1 >conftest.err
25254   rm -f conftest.er1
25255   cat conftest.err >&5
25256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257   (exit $ac_status); } &&
25258          { ac_try='test -z "$ac_c_werror_flag"
25259                          || test ! -s conftest.err'
25260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25261   (eval $ac_try) 2>&5
25262   ac_status=$?
25263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264   (exit $ac_status); }; } &&
25265          { ac_try='test -s conftest$ac_exeext'
25266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267   (eval $ac_try) 2>&5
25268   ac_status=$?
25269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270   (exit $ac_status); }; }; then
25271   eval "$as_ac_var=yes"
25272 else
25273   echo "$as_me: failed program was:" >&5
25274 sed 's/^/| /' conftest.$ac_ext >&5
25275
25276 eval "$as_ac_var=no"
25277 fi
25278 rm -f conftest.err conftest.$ac_objext \
25279       conftest$ac_exeext conftest.$ac_ext
25280 fi
25281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25283 if test `eval echo '${'$as_ac_var'}'` = yes; then
25284   cat >>confdefs.h <<_ACEOF
25285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25286 _ACEOF
25287
25288 fi
25289 done
25290
25291 echo "$as_me:$LINENO: checking for mprotect" >&5
25292 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
25293 if test "${ac_cv_func_mprotect+set}" = set; then
25294   echo $ECHO_N "(cached) $ECHO_C" >&6
25295 else
25296   cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h.  */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h.  */
25302 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
25303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25304 #define mprotect innocuous_mprotect
25305
25306 /* System header to define __stub macros and hopefully few prototypes,
25307     which can conflict with char mprotect (); below.
25308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25309     <limits.h> exists even on freestanding compilers.  */
25310
25311 #ifdef __STDC__
25312 # include <limits.h>
25313 #else
25314 # include <assert.h>
25315 #endif
25316
25317 #undef mprotect
25318
25319 /* Override any gcc2 internal prototype to avoid an error.  */
25320 #ifdef __cplusplus
25321 extern "C"
25322 {
25323 #endif
25324 /* We use char because int might match the return type of a gcc2
25325    builtin and then its argument prototype would still apply.  */
25326 char mprotect ();
25327 /* The GNU C library defines this for functions which it implements
25328     to always fail with ENOSYS.  Some functions are actually named
25329     something starting with __ and the normal name is an alias.  */
25330 #if defined (__stub_mprotect) || defined (__stub___mprotect)
25331 choke me
25332 #else
25333 char (*f) () = mprotect;
25334 #endif
25335 #ifdef __cplusplus
25336 }
25337 #endif
25338
25339 int
25340 main ()
25341 {
25342 return f != mprotect;
25343   ;
25344   return 0;
25345 }
25346 _ACEOF
25347 rm -f conftest.$ac_objext conftest$ac_exeext
25348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25349   (eval $ac_link) 2>conftest.er1
25350   ac_status=$?
25351   grep -v '^ *+' conftest.er1 >conftest.err
25352   rm -f conftest.er1
25353   cat conftest.err >&5
25354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355   (exit $ac_status); } &&
25356          { ac_try='test -z "$ac_c_werror_flag"
25357                          || test ! -s conftest.err'
25358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359   (eval $ac_try) 2>&5
25360   ac_status=$?
25361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362   (exit $ac_status); }; } &&
25363          { ac_try='test -s conftest$ac_exeext'
25364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25365   (eval $ac_try) 2>&5
25366   ac_status=$?
25367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368   (exit $ac_status); }; }; then
25369   ac_cv_func_mprotect=yes
25370 else
25371   echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25373
25374 ac_cv_func_mprotect=no
25375 fi
25376 rm -f conftest.err conftest.$ac_objext \
25377       conftest$ac_exeext conftest.$ac_ext
25378 fi
25379 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
25380 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
25381 if test $ac_cv_func_mprotect = yes; then
25382   :
25383 else
25384   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
25385 echo "$as_me: error: Function mprotect() required but not found" >&2;}
25386    { (exit 1); exit 1; }; }
25387 fi
25388
25389
25390 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
25391 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
25392 if test "${ac_cv_cxx_namespaces+set}" = set; then
25393   echo $ECHO_N "(cached) $ECHO_C" >&6
25394 else
25395   ac_ext=cc
25396 ac_cpp='$CXXCPP $CPPFLAGS'
25397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25400
25401  cat >conftest.$ac_ext <<_ACEOF
25402 /* confdefs.h.  */
25403 _ACEOF
25404 cat confdefs.h >>conftest.$ac_ext
25405 cat >>conftest.$ac_ext <<_ACEOF
25406 /* end confdefs.h.  */
25407 namespace Outer { namespace Inner { int i = 0; }}
25408 int
25409 main ()
25410 {
25411 using namespace Outer::Inner; return i;
25412   ;
25413   return 0;
25414 }
25415 _ACEOF
25416 rm -f conftest.$ac_objext
25417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25418   (eval $ac_compile) 2>conftest.er1
25419   ac_status=$?
25420   grep -v '^ *+' conftest.er1 >conftest.err
25421   rm -f conftest.er1
25422   cat conftest.err >&5
25423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424   (exit $ac_status); } &&
25425          { ac_try='test -z "$ac_cxx_werror_flag"
25426                          || test ! -s conftest.err'
25427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428   (eval $ac_try) 2>&5
25429   ac_status=$?
25430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431   (exit $ac_status); }; } &&
25432          { ac_try='test -s conftest.$ac_objext'
25433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25434   (eval $ac_try) 2>&5
25435   ac_status=$?
25436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437   (exit $ac_status); }; }; then
25438   ac_cv_cxx_namespaces=yes
25439 else
25440   echo "$as_me: failed program was:" >&5
25441 sed 's/^/| /' conftest.$ac_ext >&5
25442
25443 ac_cv_cxx_namespaces=no
25444 fi
25445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25446  ac_ext=c
25447 ac_cpp='$CPP $CPPFLAGS'
25448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25451
25452
25453 fi
25454 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
25455 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
25456 if test "$ac_cv_cxx_namespaces" = yes; then
25457
25458 cat >>confdefs.h <<\_ACEOF
25459 #define HAVE_NAMESPACES
25460 _ACEOF
25461
25462 fi
25463
25464 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
25465 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
25466 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
25467   echo $ECHO_N "(cached) $ECHO_C" >&6
25468 else
25469
25470   ac_ext=cc
25471 ac_cpp='$CXXCPP $CPPFLAGS'
25472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25475
25476   cat >conftest.$ac_ext <<_ACEOF
25477 /* confdefs.h.  */
25478 _ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h.  */
25482 #include <ext/hash_map>
25483 #ifdef HAVE_NAMESPACES
25484 using namespace std;
25485 #endif
25486 int
25487 main ()
25488 {
25489 hash_map<int, int> t;
25490   ;
25491   return 0;
25492 }
25493 _ACEOF
25494 rm -f conftest.$ac_objext
25495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25496   (eval $ac_compile) 2>conftest.er1
25497   ac_status=$?
25498   grep -v '^ *+' conftest.er1 >conftest.err
25499   rm -f conftest.er1
25500   cat conftest.err >&5
25501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502   (exit $ac_status); } &&
25503          { ac_try='test -z "$ac_cxx_werror_flag"
25504                          || test ! -s conftest.err'
25505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25506   (eval $ac_try) 2>&5
25507   ac_status=$?
25508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509   (exit $ac_status); }; } &&
25510          { ac_try='test -s conftest.$ac_objext'
25511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512   (eval $ac_try) 2>&5
25513   ac_status=$?
25514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515   (exit $ac_status); }; }; then
25516   ac_cv_cxx_have_std_ext_hash_map=yes
25517 else
25518   echo "$as_me: failed program was:" >&5
25519 sed 's/^/| /' conftest.$ac_ext >&5
25520
25521 ac_cv_cxx_have_std_ext_hash_map=no
25522 fi
25523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25524   ac_ext=c
25525 ac_cpp='$CPP $CPPFLAGS'
25526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25529
25530 fi
25531 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
25532 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
25533  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
25534  then
25535
25536 cat >>confdefs.h <<\_ACEOF
25537 #define HAVE_STD_EXT_HASH_MAP 1
25538 _ACEOF
25539
25540  else
25541
25542 cat >>confdefs.h <<\_ACEOF
25543 #define HAVE_STD_EXT_HASH_MAP 0
25544 _ACEOF
25545
25546  fi
25547
25548  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
25549 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
25550 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
25551   echo $ECHO_N "(cached) $ECHO_C" >&6
25552 else
25553
25554   ac_ext=cc
25555 ac_cpp='$CXXCPP $CPPFLAGS'
25556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25559
25560   cat >conftest.$ac_ext <<_ACEOF
25561 /* confdefs.h.  */
25562 _ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h.  */
25566 #include <ext/hash_map>
25567 #ifdef HAVE_NAMESPACES
25568 using namespace __gnu_cxx;
25569 #endif
25570 int
25571 main ()
25572 {
25573 hash_map<int,int> t;
25574   ;
25575   return 0;
25576 }
25577 _ACEOF
25578 rm -f conftest.$ac_objext
25579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25580   (eval $ac_compile) 2>conftest.er1
25581   ac_status=$?
25582   grep -v '^ *+' conftest.er1 >conftest.err
25583   rm -f conftest.er1
25584   cat conftest.err >&5
25585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586   (exit $ac_status); } &&
25587          { ac_try='test -z "$ac_cxx_werror_flag"
25588                          || test ! -s conftest.err'
25589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590   (eval $ac_try) 2>&5
25591   ac_status=$?
25592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593   (exit $ac_status); }; } &&
25594          { ac_try='test -s conftest.$ac_objext'
25595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25596   (eval $ac_try) 2>&5
25597   ac_status=$?
25598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599   (exit $ac_status); }; }; then
25600   ac_cv_cxx_have_gnu_ext_hash_map=yes
25601 else
25602   echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25604
25605 ac_cv_cxx_have_gnu_ext_hash_map=no
25606 fi
25607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25608   ac_ext=c
25609 ac_cpp='$CPP $CPPFLAGS'
25610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25613
25614 fi
25615 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
25616 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
25617  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
25618  then
25619
25620 cat >>confdefs.h <<\_ACEOF
25621 #define HAVE_GNU_EXT_HASH_MAP 1
25622 _ACEOF
25623
25624  else
25625
25626 cat >>confdefs.h <<\_ACEOF
25627 #define HAVE_GNU_EXT_HASH_MAP 0
25628 _ACEOF
25629
25630  fi
25631
25632  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
25633 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
25634 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
25635   echo $ECHO_N "(cached) $ECHO_C" >&6
25636 else
25637
25638   ac_ext=cc
25639 ac_cpp='$CXXCPP $CPPFLAGS'
25640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25643
25644   cat >conftest.$ac_ext <<_ACEOF
25645 /* confdefs.h.  */
25646 _ACEOF
25647 cat confdefs.h >>conftest.$ac_ext
25648 cat >>conftest.$ac_ext <<_ACEOF
25649 /* end confdefs.h.  */
25650 #include <hash_map>
25651 int
25652 main ()
25653 {
25654 hash_map<int,int> t;
25655   ;
25656   return 0;
25657 }
25658 _ACEOF
25659 rm -f conftest.$ac_objext
25660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25661   (eval $ac_compile) 2>conftest.er1
25662   ac_status=$?
25663   grep -v '^ *+' conftest.er1 >conftest.err
25664   rm -f conftest.er1
25665   cat conftest.err >&5
25666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667   (exit $ac_status); } &&
25668          { ac_try='test -z "$ac_cxx_werror_flag"
25669                          || test ! -s conftest.err'
25670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671   (eval $ac_try) 2>&5
25672   ac_status=$?
25673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674   (exit $ac_status); }; } &&
25675          { ac_try='test -s conftest.$ac_objext'
25676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25677   (eval $ac_try) 2>&5
25678   ac_status=$?
25679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680   (exit $ac_status); }; }; then
25681   ac_cv_cxx_have_global_hash_map=yes
25682 else
25683   echo "$as_me: failed program was:" >&5
25684 sed 's/^/| /' conftest.$ac_ext >&5
25685
25686 ac_cv_cxx_have_global_hash_map=no
25687 fi
25688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25689   ac_ext=c
25690 ac_cpp='$CPP $CPPFLAGS'
25691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25694
25695 fi
25696 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
25697 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
25698  if test "$ac_cv_cxx_have_global_hash_map" = yes
25699  then
25700
25701 cat >>confdefs.h <<\_ACEOF
25702 #define HAVE_GLOBAL_HASH_MAP 1
25703 _ACEOF
25704
25705  else
25706
25707 cat >>confdefs.h <<\_ACEOF
25708 #define HAVE_GLOBAL_HASH_MAP 0
25709 _ACEOF
25710
25711  fi
25712
25713 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
25714 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
25715 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
25716   echo $ECHO_N "(cached) $ECHO_C" >&6
25717 else
25718
25719   ac_ext=cc
25720 ac_cpp='$CXXCPP $CPPFLAGS'
25721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25724
25725   cat >conftest.$ac_ext <<_ACEOF
25726 /* confdefs.h.  */
25727 _ACEOF
25728 cat confdefs.h >>conftest.$ac_ext
25729 cat >>conftest.$ac_ext <<_ACEOF
25730 /* end confdefs.h.  */
25731 #include <ext/hash_set>
25732 #ifdef HAVE_NAMESPACES
25733 using namespace std;
25734 #endif
25735 int
25736 main ()
25737 {
25738 hash_set<int> t;
25739   ;
25740   return 0;
25741 }
25742 _ACEOF
25743 rm -f conftest.$ac_objext
25744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25745   (eval $ac_compile) 2>conftest.er1
25746   ac_status=$?
25747   grep -v '^ *+' conftest.er1 >conftest.err
25748   rm -f conftest.er1
25749   cat conftest.err >&5
25750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751   (exit $ac_status); } &&
25752          { ac_try='test -z "$ac_cxx_werror_flag"
25753                          || test ! -s conftest.err'
25754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25755   (eval $ac_try) 2>&5
25756   ac_status=$?
25757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758   (exit $ac_status); }; } &&
25759          { ac_try='test -s conftest.$ac_objext'
25760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25761   (eval $ac_try) 2>&5
25762   ac_status=$?
25763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764   (exit $ac_status); }; }; then
25765   ac_cv_cxx_have_std_ext_hash_set=yes
25766 else
25767   echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25769
25770 ac_cv_cxx_have_std_ext_hash_set=no
25771 fi
25772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25773   ac_ext=c
25774 ac_cpp='$CPP $CPPFLAGS'
25775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25778
25779 fi
25780 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
25781 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
25782  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
25783  then
25784
25785 cat >>confdefs.h <<\_ACEOF
25786 #define HAVE_STD_EXT_HASH_SET 1
25787 _ACEOF
25788
25789  else
25790
25791 cat >>confdefs.h <<\_ACEOF
25792 #define HAVE_STD_EXT_HASH_SET 0
25793 _ACEOF
25794
25795  fi
25796
25797  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
25798 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
25799 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
25800   echo $ECHO_N "(cached) $ECHO_C" >&6
25801 else
25802
25803   ac_ext=cc
25804 ac_cpp='$CXXCPP $CPPFLAGS'
25805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25808
25809   cat >conftest.$ac_ext <<_ACEOF
25810 /* confdefs.h.  */
25811 _ACEOF
25812 cat confdefs.h >>conftest.$ac_ext
25813 cat >>conftest.$ac_ext <<_ACEOF
25814 /* end confdefs.h.  */
25815 #include <ext/hash_set>
25816 #ifdef HAVE_NAMESPACES
25817 using namespace __gnu_cxx;
25818 #endif
25819 int
25820 main ()
25821 {
25822 hash_set<int> t;
25823   ;
25824   return 0;
25825 }
25826 _ACEOF
25827 rm -f conftest.$ac_objext
25828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25829   (eval $ac_compile) 2>conftest.er1
25830   ac_status=$?
25831   grep -v '^ *+' conftest.er1 >conftest.err
25832   rm -f conftest.er1
25833   cat conftest.err >&5
25834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835   (exit $ac_status); } &&
25836          { ac_try='test -z "$ac_cxx_werror_flag"
25837                          || test ! -s conftest.err'
25838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25839   (eval $ac_try) 2>&5
25840   ac_status=$?
25841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842   (exit $ac_status); }; } &&
25843          { ac_try='test -s conftest.$ac_objext'
25844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25845   (eval $ac_try) 2>&5
25846   ac_status=$?
25847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848   (exit $ac_status); }; }; then
25849   ac_cv_cxx_have_gnu_ext_hash_set=yes
25850 else
25851   echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.$ac_ext >&5
25853
25854 ac_cv_cxx_have_gnu_ext_hash_set=no
25855 fi
25856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25857   ac_ext=c
25858 ac_cpp='$CPP $CPPFLAGS'
25859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25862
25863 fi
25864 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
25865 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
25866  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
25867  then
25868
25869 cat >>confdefs.h <<\_ACEOF
25870 #define HAVE_GNU_EXT_HASH_SET 1
25871 _ACEOF
25872
25873  else
25874
25875 cat >>confdefs.h <<\_ACEOF
25876 #define HAVE_GNU_EXT_HASH_SET 0
25877 _ACEOF
25878
25879  fi
25880
25881  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
25882 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
25883 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
25884   echo $ECHO_N "(cached) $ECHO_C" >&6
25885 else
25886
25887   ac_ext=cc
25888 ac_cpp='$CXXCPP $CPPFLAGS'
25889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25892
25893   cat >conftest.$ac_ext <<_ACEOF
25894 /* confdefs.h.  */
25895 _ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h.  */
25899 #include <hash_set>
25900 int
25901 main ()
25902 {
25903 hash_set<int> t; return 0;
25904   ;
25905   return 0;
25906 }
25907 _ACEOF
25908 rm -f conftest.$ac_objext
25909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25910   (eval $ac_compile) 2>conftest.er1
25911   ac_status=$?
25912   grep -v '^ *+' conftest.er1 >conftest.err
25913   rm -f conftest.er1
25914   cat conftest.err >&5
25915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916   (exit $ac_status); } &&
25917          { ac_try='test -z "$ac_cxx_werror_flag"
25918                          || test ! -s conftest.err'
25919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25920   (eval $ac_try) 2>&5
25921   ac_status=$?
25922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923   (exit $ac_status); }; } &&
25924          { ac_try='test -s conftest.$ac_objext'
25925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25926   (eval $ac_try) 2>&5
25927   ac_status=$?
25928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929   (exit $ac_status); }; }; then
25930   ac_cv_cxx_have_global_hash_set=yes
25931 else
25932   echo "$as_me: failed program was:" >&5
25933 sed 's/^/| /' conftest.$ac_ext >&5
25934
25935 ac_cv_cxx_have_global_hash_set=no
25936 fi
25937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25938   ac_ext=c
25939 ac_cpp='$CPP $CPPFLAGS'
25940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25943
25944 fi
25945 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
25946 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
25947  if test "$ac_cv_cxx_have_global_hash_set" = yes
25948  then
25949
25950 cat >>confdefs.h <<\_ACEOF
25951 #define HAVE_GLOBAL_HASH_SET 1
25952 _ACEOF
25953
25954  else
25955
25956 cat >>confdefs.h <<\_ACEOF
25957 #define HAVE_GLOBAL_HASH_SET 0
25958 _ACEOF
25959
25960  fi
25961
25962 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
25963 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
25964 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
25965   echo $ECHO_N "(cached) $ECHO_C" >&6
25966 else
25967
25968   ac_ext=cc
25969 ac_cpp='$CXXCPP $CPPFLAGS'
25970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25973
25974   cat >conftest.$ac_ext <<_ACEOF
25975 /* confdefs.h.  */
25976 _ACEOF
25977 cat confdefs.h >>conftest.$ac_ext
25978 cat >>conftest.$ac_ext <<_ACEOF
25979 /* end confdefs.h.  */
25980 #include <iterator>
25981 #ifdef HAVE_NAMESPACES
25982 using namespace std;
25983 #endif
25984 int
25985 main ()
25986 {
25987 iterator<int,int,int> t; return 0;
25988   ;
25989   return 0;
25990 }
25991 _ACEOF
25992 rm -f conftest.$ac_objext
25993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25994   (eval $ac_compile) 2>conftest.er1
25995   ac_status=$?
25996   grep -v '^ *+' conftest.er1 >conftest.err
25997   rm -f conftest.er1
25998   cat conftest.err >&5
25999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000   (exit $ac_status); } &&
26001          { ac_try='test -z "$ac_cxx_werror_flag"
26002                          || test ! -s conftest.err'
26003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004   (eval $ac_try) 2>&5
26005   ac_status=$?
26006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007   (exit $ac_status); }; } &&
26008          { ac_try='test -s conftest.$ac_objext'
26009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26010   (eval $ac_try) 2>&5
26011   ac_status=$?
26012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013   (exit $ac_status); }; }; then
26014   ac_cv_cxx_have_std_iterator=yes
26015 else
26016   echo "$as_me: failed program was:" >&5
26017 sed 's/^/| /' conftest.$ac_ext >&5
26018
26019 ac_cv_cxx_have_std_iterator=no
26020 fi
26021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26022   ac_ext=c
26023 ac_cpp='$CPP $CPPFLAGS'
26024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26027
26028
26029 fi
26030 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
26031 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
26032 if test "$ac_cv_cxx_have_std_iterator" = yes
26033 then
26034
26035 cat >>confdefs.h <<\_ACEOF
26036 #define HAVE_STD_ITERATOR 1
26037 _ACEOF
26038
26039 else
26040
26041 cat >>confdefs.h <<\_ACEOF
26042 #define HAVE_STD_ITERATOR 0
26043 _ACEOF
26044
26045 fi
26046
26047 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
26048 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
26049 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
26050   echo $ECHO_N "(cached) $ECHO_C" >&6
26051 else
26052
26053   ac_ext=cc
26054 ac_cpp='$CXXCPP $CPPFLAGS'
26055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26058
26059   cat >conftest.$ac_ext <<_ACEOF
26060 /* confdefs.h.  */
26061 _ACEOF
26062 cat confdefs.h >>conftest.$ac_ext
26063 cat >>conftest.$ac_ext <<_ACEOF
26064 /* end confdefs.h.  */
26065 #include <iterator>
26066 #ifdef HAVE_NAMESPACES
26067 using namespace std;
26068 #endif
26069 int
26070 main ()
26071 {
26072 bidirectional_iterator<int,int> t; return 0;
26073   ;
26074   return 0;
26075 }
26076 _ACEOF
26077 rm -f conftest.$ac_objext
26078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26079   (eval $ac_compile) 2>conftest.er1
26080   ac_status=$?
26081   grep -v '^ *+' conftest.er1 >conftest.err
26082   rm -f conftest.er1
26083   cat conftest.err >&5
26084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085   (exit $ac_status); } &&
26086          { ac_try='test -z "$ac_cxx_werror_flag"
26087                          || test ! -s conftest.err'
26088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089   (eval $ac_try) 2>&5
26090   ac_status=$?
26091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092   (exit $ac_status); }; } &&
26093          { ac_try='test -s conftest.$ac_objext'
26094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26095   (eval $ac_try) 2>&5
26096   ac_status=$?
26097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098   (exit $ac_status); }; }; then
26099   ac_cv_cxx_have_bi_iterator=yes
26100 else
26101   echo "$as_me: failed program was:" >&5
26102 sed 's/^/| /' conftest.$ac_ext >&5
26103
26104 ac_cv_cxx_have_bi_iterator=no
26105 fi
26106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26107   ac_ext=c
26108 ac_cpp='$CPP $CPPFLAGS'
26109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26112
26113
26114 fi
26115 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
26116 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
26117 if test "$ac_cv_cxx_have_bi_iterator" = yes
26118 then
26119
26120 cat >>confdefs.h <<\_ACEOF
26121 #define HAVE_BI_ITERATOR 1
26122 _ACEOF
26123
26124 else
26125
26126 cat >>confdefs.h <<\_ACEOF
26127 #define HAVE_BI_ITERATOR 0
26128 _ACEOF
26129
26130 fi
26131
26132 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
26133 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
26134 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
26135   echo $ECHO_N "(cached) $ECHO_C" >&6
26136 else
26137
26138   ac_ext=cc
26139 ac_cpp='$CXXCPP $CPPFLAGS'
26140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26143
26144   cat >conftest.$ac_ext <<_ACEOF
26145 /* confdefs.h.  */
26146 _ACEOF
26147 cat confdefs.h >>conftest.$ac_ext
26148 cat >>conftest.$ac_ext <<_ACEOF
26149 /* end confdefs.h.  */
26150 #include <iterator>
26151 #ifdef HAVE_NAMESPACES
26152 using namespace std;
26153 #endif
26154 int
26155 main ()
26156 {
26157 forward_iterator<int,int> t; return 0;
26158   ;
26159   return 0;
26160 }
26161 _ACEOF
26162 rm -f conftest.$ac_objext
26163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26164   (eval $ac_compile) 2>conftest.er1
26165   ac_status=$?
26166   grep -v '^ *+' conftest.er1 >conftest.err
26167   rm -f conftest.er1
26168   cat conftest.err >&5
26169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170   (exit $ac_status); } &&
26171          { ac_try='test -z "$ac_cxx_werror_flag"
26172                          || test ! -s conftest.err'
26173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174   (eval $ac_try) 2>&5
26175   ac_status=$?
26176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177   (exit $ac_status); }; } &&
26178          { ac_try='test -s conftest.$ac_objext'
26179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26180   (eval $ac_try) 2>&5
26181   ac_status=$?
26182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183   (exit $ac_status); }; }; then
26184   ac_cv_cxx_have_fwd_iterator=yes
26185 else
26186   echo "$as_me: failed program was:" >&5
26187 sed 's/^/| /' conftest.$ac_ext >&5
26188
26189 ac_cv_cxx_have_fwd_iterator=no
26190 fi
26191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26192   ac_ext=c
26193 ac_cpp='$CPP $CPPFLAGS'
26194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26197
26198
26199 fi
26200 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
26201 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
26202 if test "$ac_cv_cxx_have_fwd_iterator" = yes
26203 then
26204
26205 cat >>confdefs.h <<\_ACEOF
26206 #define HAVE_FWD_ITERATOR 1
26207 _ACEOF
26208
26209 else
26210
26211 cat >>confdefs.h <<\_ACEOF
26212 #define HAVE_FWD_ITERATOR 0
26213 _ACEOF
26214
26215 fi
26216
26217
26218
26219   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
26220 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
26221   ac_ext=c
26222 ac_cpp='$CPP $CPPFLAGS'
26223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26226
26227   oldcflags="$CFLAGS"
26228   CFLAGS="$CFLAGS -Wl,-R."
26229   cat >conftest.$ac_ext <<_ACEOF
26230 /* confdefs.h.  */
26231 _ACEOF
26232 cat confdefs.h >>conftest.$ac_ext
26233 cat >>conftest.$ac_ext <<_ACEOF
26234 /* end confdefs.h.  */
26235
26236 int
26237 main ()
26238 {
26239 int main() { return 0; }
26240   ;
26241   return 0;
26242 }
26243 _ACEOF
26244 rm -f conftest.$ac_objext conftest$ac_exeext
26245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26246   (eval $ac_link) 2>conftest.er1
26247   ac_status=$?
26248   grep -v '^ *+' conftest.er1 >conftest.err
26249   rm -f conftest.er1
26250   cat conftest.err >&5
26251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252   (exit $ac_status); } &&
26253          { ac_try='test -z "$ac_c_werror_flag"
26254                          || test ! -s conftest.err'
26255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256   (eval $ac_try) 2>&5
26257   ac_status=$?
26258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259   (exit $ac_status); }; } &&
26260          { ac_try='test -s conftest$ac_exeext'
26261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262   (eval $ac_try) 2>&5
26263   ac_status=$?
26264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265   (exit $ac_status); }; }; then
26266   ac_cv_link_use_r=yes
26267 else
26268   echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26270
26271 ac_cv_link_use_r=no
26272 fi
26273 rm -f conftest.err conftest.$ac_objext \
26274       conftest$ac_exeext conftest.$ac_ext
26275   CFLAGS="$oldcflags"
26276   ac_ext=c
26277 ac_cpp='$CPP $CPPFLAGS'
26278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26281
26282   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
26283 echo "${ECHO_T}$ac_cv_link_use_r" >&6
26284   if test "$ac_cv_link_use_r" = yes
26285   then
26286
26287 cat >>confdefs.h <<\_ACEOF
26288 #define HAVE_LINK_R 1
26289 _ACEOF
26290
26291   fi
26292
26293
26294
26295 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
26296
26297 cat >>confdefs.h <<\_ACEOF
26298 #define HAVE_ZLIB 1
26299 _ACEOF
26300
26301   HAVE_ZLIB=1
26302
26303 else
26304   HAVE_ZLIB=0
26305
26306 fi
26307 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
26308
26309 cat >>confdefs.h <<\_ACEOF
26310 #define HAVE_BZIP2 1
26311 _ACEOF
26312
26313   HAVE_BZIP2=1
26314
26315 else
26316   HAVE_BZIP2=0
26317
26318 fi
26319
26320 echo "$as_me:$LINENO: checking for shared library suffix" >&5
26321 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
26322 eval "SHLIBEXT=$shrext_cmds"
26323 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
26324 echo "${ECHO_T}$SHLIBEXT" >&6
26325
26326 SHLIBEXT=$SHLIBEXT
26327
26328
26329 cat >>confdefs.h <<_ACEOF
26330 #define SHLIBEXT "$SHLIBEXT"
26331 _ACEOF
26332
26333
26334 # Translate the various configuration directories and other basic
26335 # information into substitutions that will end up in config.h.in so
26336 # that these configured values can be hard-wired into a program.
26337 eval LLVM_PREFIX="${prefix}";
26338 eval LLVM_BINDIR="${prefix}/bin";
26339 eval LLVM_LIBDIR="${prefix}/lib";
26340 eval LLVM_DATADIR="${prefix}/data";
26341 eval LLVM_DOCSDIR="${prefix}/docs";
26342 eval LLVM_ETCDIR="${prefix}/etc";
26343 eval LLVM_INCLUDEDIR="${prefix}/include";
26344 eval LLVM_INFODIR="${prefix}/info";
26345 eval LLVM_MANDIR="${prefix}/man";
26346 LLVM_CONFIGTIME=`date`
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360 cat >>confdefs.h <<_ACEOF
26361 #define LLVM_PREFIX "$LLVM_PREFIX"
26362 _ACEOF
26363
26364
26365 cat >>confdefs.h <<_ACEOF
26366 #define LLVM_BINDIR "$LLVM_BINDIR"
26367 _ACEOF
26368
26369
26370 cat >>confdefs.h <<_ACEOF
26371 #define LLVM_LIBDIR "$LLVM_LIBDIR"
26372 _ACEOF
26373
26374
26375 cat >>confdefs.h <<_ACEOF
26376 #define LLVM_DATADIR "$LLVM_DATADIR"
26377 _ACEOF
26378
26379
26380 cat >>confdefs.h <<_ACEOF
26381 #define LLVM_DATADIR "$LLVM_DOCSDIR"
26382 _ACEOF
26383
26384
26385 cat >>confdefs.h <<_ACEOF
26386 #define LLVM_ETCDIR "$LLVM_ETCDIR"
26387 _ACEOF
26388
26389
26390 cat >>confdefs.h <<_ACEOF
26391 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
26392 _ACEOF
26393
26394
26395 cat >>confdefs.h <<_ACEOF
26396 #define LLVM_INFODIR "$LLVM_INFODIR"
26397 _ACEOF
26398
26399
26400 cat >>confdefs.h <<_ACEOF
26401 #define LLVM_MANDIR "$LLVM_MANDIR"
26402 _ACEOF
26403
26404
26405 cat >>confdefs.h <<_ACEOF
26406 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
26407 _ACEOF
26408
26409
26410
26411           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
26412
26413           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
26414
26415           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
26416
26417           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
26418
26419           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
26420
26421           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
26422
26423
26424           ac_config_files="$ac_config_files Makefile"
26425
26426           ac_config_files="$ac_config_files lib/Makefile"
26427
26428           ac_config_files="$ac_config_files lib/Analysis/IPA/Makefile"
26429
26430           ac_config_files="$ac_config_files lib/Analysis/Makefile"
26431
26432           ac_config_files="$ac_config_files lib/Analysis/DataStructure/Makefile"
26433
26434           ac_config_files="$ac_config_files lib/AsmParser/Makefile"
26435
26436           ac_config_files="$ac_config_files lib/System/Makefile"
26437
26438           ac_config_files="$ac_config_files lib/Bytecode/Reader/Makefile"
26439
26440           ac_config_files="$ac_config_files lib/Bytecode/Makefile"
26441
26442           ac_config_files="$ac_config_files lib/Bytecode/Writer/Makefile"
26443
26444           ac_config_files="$ac_config_files lib/Bytecode/Archive/Makefile"
26445
26446           ac_config_files="$ac_config_files lib/CodeGen/Makefile"
26447
26448           ac_config_files="$ac_config_files lib/CodeGen/SelectionDAG/Makefile"
26449
26450           ac_config_files="$ac_config_files lib/Debugger/Makefile"
26451
26452           ac_config_files="$ac_config_files lib/ExecutionEngine/Interpreter/Makefile"
26453
26454           ac_config_files="$ac_config_files lib/ExecutionEngine/Makefile"
26455
26456           ac_config_files="$ac_config_files lib/ExecutionEngine/JIT/Makefile"
26457
26458           ac_config_files="$ac_config_files lib/Support/Makefile"
26459
26460           ac_config_files="$ac_config_files lib/Target/CBackend/Makefile"
26461
26462           ac_config_files="$ac_config_files lib/Target/Makefile"
26463
26464           ac_config_files="$ac_config_files lib/Target/Skeleton/Makefile"
26465
26466           ac_config_files="$ac_config_files lib/Target/PowerPC/Makefile"
26467
26468           ac_config_files="$ac_config_files lib/Target/SparcV9/Makefile"
26469
26470           ac_config_files="$ac_config_files lib/Target/SparcV9/InstrSched/Makefile"
26471
26472           ac_config_files="$ac_config_files lib/Target/SparcV9/LiveVar/Makefile"
26473
26474           ac_config_files="$ac_config_files lib/Target/SparcV9/ModuloScheduling/Makefile"
26475
26476           ac_config_files="$ac_config_files lib/Target/SparcV9/RegAlloc/Makefile"
26477
26478           ac_config_files="$ac_config_files lib/Target/X86/Makefile"
26479
26480           ac_config_files="$ac_config_files lib/Transforms/Hello/Makefile"
26481
26482           ac_config_files="$ac_config_files lib/Transforms/Makefile"
26483
26484           ac_config_files="$ac_config_files lib/Transforms/IPO/Makefile"
26485
26486           ac_config_files="$ac_config_files lib/Transforms/Instrumentation/ProfilePaths/Makefile"
26487
26488           ac_config_files="$ac_config_files lib/Transforms/Instrumentation/Makefile"
26489
26490           ac_config_files="$ac_config_files lib/Transforms/Scalar/Makefile"
26491
26492           ac_config_files="$ac_config_files lib/Transforms/Utils/Makefile"
26493
26494           ac_config_files="$ac_config_files lib/VMCore/Makefile"
26495
26496           ac_config_files="$ac_config_files utils/Makefile"
26497
26498           ac_config_files="$ac_config_files utils/Burg/Makefile"
26499
26500           ac_config_files="$ac_config_files utils/fpcmp/Makefile"
26501
26502           ac_config_files="$ac_config_files utils/TableGen/Makefile"
26503
26504           ac_config_files="$ac_config_files tools/Makefile"
26505
26506           ac_config_files="$ac_config_files tools/analyze/Makefile"
26507
26508           ac_config_files="$ac_config_files tools/llvmc/Makefile"
26509
26510           ac_config_files="$ac_config_files tools/bugpoint/Makefile"
26511
26512           ac_config_files="$ac_config_files tools/extract/Makefile"
26513
26514           ac_config_files="$ac_config_files tools/gccas/Makefile"
26515
26516           ac_config_files="$ac_config_files tools/gccld/Makefile"
26517
26518           ac_config_files="$ac_config_files tools/llvm-bcanalyzer/Makefile"
26519
26520           ac_config_files="$ac_config_files tools/llc/Makefile"
26521
26522           ac_config_files="$ac_config_files tools/llee/Makefile"
26523
26524           ac_config_files="$ac_config_files tools/lli/Makefile"
26525
26526           ac_config_files="$ac_config_files tools/llvm-ar/Makefile"
26527
26528           ac_config_files="$ac_config_files tools/llvm-as/Makefile"
26529
26530           ac_config_files="$ac_config_files tools/llvm-db/Makefile"
26531
26532           ac_config_files="$ac_config_files tools/llvm-dis/Makefile"
26533
26534           ac_config_files="$ac_config_files tools/llvm-link/Makefile"
26535
26536           ac_config_files="$ac_config_files tools/llvm-nm/Makefile"
26537
26538           ac_config_files="$ac_config_files tools/llvm-prof/Makefile"
26539
26540           ac_config_files="$ac_config_files tools/opt/Makefile"
26541
26542           ac_config_files="$ac_config_files tools/llvm-ld/Makefile"
26543
26544           ac_config_files="$ac_config_files tools/llvm-stub/Makefile"
26545
26546           ac_config_files="$ac_config_files runtime/Makefile"
26547
26548           ac_config_files="$ac_config_files runtime/GC/Makefile"
26549
26550           ac_config_files="$ac_config_files runtime/GC/SemiSpace/Makefile"
26551
26552           ac_config_files="$ac_config_files runtime/GCCLibraries/Makefile"
26553
26554           ac_config_files="$ac_config_files runtime/GCCLibraries/crtend/Makefile"
26555
26556           ac_config_files="$ac_config_files runtime/GCCLibraries/libc/Makefile"
26557
26558           ac_config_files="$ac_config_files runtime/GCCLibraries/libcurses/Makefile"
26559
26560           ac_config_files="$ac_config_files runtime/GCCLibraries/libg/Makefile"
26561
26562           ac_config_files="$ac_config_files runtime/GCCLibraries/libgcc/Makefile"
26563
26564           ac_config_files="$ac_config_files runtime/GCCLibraries/libgdbm/Makefile"
26565
26566           ac_config_files="$ac_config_files runtime/GCCLibraries/libm/Makefile"
26567
26568           ac_config_files="$ac_config_files runtime/GCCLibraries/libmalloc/Makefile"
26569
26570           ac_config_files="$ac_config_files runtime/GCCLibraries/libpthread/Makefile"
26571
26572           ac_config_files="$ac_config_files runtime/GCCLibraries/libtermcap/Makefile"
26573
26574           ac_config_files="$ac_config_files runtime/GCCLibraries/libucb/Makefile"
26575
26576           ac_config_files="$ac_config_files runtime/GCCLibraries/libutempter/Makefile"
26577
26578           ac_config_files="$ac_config_files runtime/GCCLibraries/libutil/Makefile"
26579
26580           ac_config_files="$ac_config_files runtime/libdummy/Makefile"
26581
26582           ac_config_files="$ac_config_files runtime/libpng/Makefile"
26583
26584           ac_config_files="$ac_config_files runtime/libprofile/Makefile"
26585
26586           ac_config_files="$ac_config_files runtime/libtrace/Makefile"
26587
26588           ac_config_files="$ac_config_files runtime/zlib/Makefile"
26589
26590
26591           ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_platform_type"
26592
26593
26594 for i in `ls ${srcdir}/projects`
26595 do
26596   if test -d ${srcdir}/projects/${i} ; then
26597     case ${i} in
26598       "CVS") ;;
26599       "sample")
26600
26601 subdirs="$subdirs projects/sample"
26602     ;;
26603       "Stacker")
26604
26605 subdirs="$subdirs projects/Stacker"
26606    ;;
26607       "llvm-test")
26608
26609 subdirs="$subdirs projects/llvm-test"
26610  ;;
26611       "llvm-reopt")
26612
26613 subdirs="$subdirs projects/llvm-reopt"
26614 ;;
26615       "llvm-gcc")
26616
26617 subdirs="$subdirs projects/llvm-gcc"
26618   ;;
26619       "Java")
26620
26621 subdirs="$subdirs projects/Java"
26622       ;;
26623       "llvm-tv")
26624
26625 subdirs="$subdirs projects/llvm-tv"
26626    ;;
26627       "llvm-fefw")
26628
26629 subdirs="$subdirs projects/llvm-fefw"
26630  ;;
26631       *)
26632         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
26633 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
26634         ;;
26635     esac
26636   fi
26637 done
26638 cat >confcache <<\_ACEOF
26639 # This file is a shell script that caches the results of configure
26640 # tests run on this system so they can be shared between configure
26641 # scripts and configure runs, see configure's option --config-cache.
26642 # It is not useful on other systems.  If it contains results you don't
26643 # want to keep, you may remove or edit it.
26644 #
26645 # config.status only pays attention to the cache file if you give it
26646 # the --recheck option to rerun configure.
26647 #
26648 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26649 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26650 # following values.
26651
26652 _ACEOF
26653
26654 # The following way of writing the cache mishandles newlines in values,
26655 # but we know of no workaround that is simple, portable, and efficient.
26656 # So, don't put newlines in cache variables' values.
26657 # Ultrix sh set writes to stderr and can't be redirected directly,
26658 # and sets the high bit in the cache file unless we assign to the vars.
26659 {
26660   (set) 2>&1 |
26661     case `(ac_space=' '; set | grep ac_space) 2>&1` in
26662     *ac_space=\ *)
26663       # `set' does not quote correctly, so add quotes (double-quote
26664       # substitution turns \\\\ into \\, and sed turns \\ into \).
26665       sed -n \
26666         "s/'/'\\\\''/g;
26667           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26668       ;;
26669     *)
26670       # `set' quotes correctly as required by POSIX, so do not add quotes.
26671       sed -n \
26672         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26673       ;;
26674     esac;
26675 } |
26676   sed '
26677      t clear
26678      : clear
26679      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26680      t end
26681      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26682      : end' >>confcache
26683 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26684   if test -w $cache_file; then
26685     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26686     cat confcache >$cache_file
26687   else
26688     echo "not updating unwritable cache $cache_file"
26689   fi
26690 fi
26691 rm -f confcache
26692
26693 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26694 # Let make expand exec_prefix.
26695 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26696
26697 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26698 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26699 # trailing colons and then remove the whole line if VPATH becomes empty
26700 # (actually we leave an empty line to preserve line numbers).
26701 if test "x$srcdir" = x.; then
26702   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26703 s/:*\$(srcdir):*/:/;
26704 s/:*\${srcdir}:*/:/;
26705 s/:*@srcdir@:*/:/;
26706 s/^\([^=]*=[     ]*\):*/\1/;
26707 s/:*$//;
26708 s/^[^=]*=[       ]*$//;
26709 }'
26710 fi
26711
26712 DEFS=-DHAVE_CONFIG_H
26713
26714 ac_libobjs=
26715 ac_ltlibobjs=
26716 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26717   # 1. Remove the extension, and $U if already installed.
26718   ac_i=`echo "$ac_i" |
26719          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26720   # 2. Add them.
26721   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26722   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26723 done
26724 LIBOBJS=$ac_libobjs
26725
26726 LTLIBOBJS=$ac_ltlibobjs
26727
26728
26729 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
26730   { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
26731 Usually this means the macro was only invoked conditionally." >&5
26732 echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
26733 Usually this means the macro was only invoked conditionally." >&2;}
26734    { (exit 1); exit 1; }; }
26735 fi
26736 if test -z "${ARCH_SPARC_TRUE}" && test -z "${ARCH_SPARC_FALSE}"; then
26737   { { echo "$as_me:$LINENO: error: conditional \"ARCH_SPARC\" was never defined.
26738 Usually this means the macro was only invoked conditionally." >&5
26739 echo "$as_me: error: conditional \"ARCH_SPARC\" was never defined.
26740 Usually this means the macro was only invoked conditionally." >&2;}
26741    { (exit 1); exit 1; }; }
26742 fi
26743 if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
26744   { { echo "$as_me:$LINENO: error: conditional \"ARCH_PPC\" was never defined.
26745 Usually this means the macro was only invoked conditionally." >&5
26746 echo "$as_me: error: conditional \"ARCH_PPC\" was never defined.
26747 Usually this means the macro was only invoked conditionally." >&2;}
26748    { (exit 1); exit 1; }; }
26749 fi
26750 if test -z "${ARCH_UNKNOWN_TRUE}" && test -z "${ARCH_UNKNOWN_FALSE}"; then
26751   { { echo "$as_me:$LINENO: error: conditional \"ARCH_UNKNOWN\" was never defined.
26752 Usually this means the macro was only invoked conditionally." >&5
26753 echo "$as_me: error: conditional \"ARCH_UNKNOWN\" was never defined.
26754 Usually this means the macro was only invoked conditionally." >&2;}
26755    { (exit 1); exit 1; }; }
26756 fi
26757 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26758   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26759 Usually this means the macro was only invoked conditionally." >&5
26760 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26761 Usually this means the macro was only invoked conditionally." >&2;}
26762    { (exit 1); exit 1; }; }
26763 fi
26764 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26765   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26766 Usually this means the macro was only invoked conditionally." >&5
26767 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26768 Usually this means the macro was only invoked conditionally." >&2;}
26769    { (exit 1); exit 1; }; }
26770 fi
26771 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26772   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26773 Usually this means the macro was only invoked conditionally." >&5
26774 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26775 Usually this means the macro was only invoked conditionally." >&2;}
26776    { (exit 1); exit 1; }; }
26777 fi
26778 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26779   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26780 Usually this means the macro was only invoked conditionally." >&5
26781 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26782 Usually this means the macro was only invoked conditionally." >&2;}
26783    { (exit 1); exit 1; }; }
26784 fi
26785
26786 : ${CONFIG_STATUS=./config.status}
26787 ac_clean_files_save=$ac_clean_files
26788 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26789 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26790 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26791 cat >$CONFIG_STATUS <<_ACEOF
26792 #! $SHELL
26793 # Generated by $as_me.
26794 # Run this file to recreate the current configuration.
26795 # Compiler output produced by configure, useful for debugging
26796 # configure, is in config.log if it exists.
26797
26798 debug=false
26799 ac_cs_recheck=false
26800 ac_cs_silent=false
26801 SHELL=\${CONFIG_SHELL-$SHELL}
26802 _ACEOF
26803
26804 cat >>$CONFIG_STATUS <<\_ACEOF
26805 ## --------------------- ##
26806 ## M4sh Initialization.  ##
26807 ## --------------------- ##
26808
26809 # Be Bourne compatible
26810 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26811   emulate sh
26812   NULLCMD=:
26813   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26814   # is contrary to our usage.  Disable this feature.
26815   alias -g '${1+"$@"}'='"$@"'
26816 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26817   set -o posix
26818 fi
26819 DUALCASE=1; export DUALCASE # for MKS sh
26820
26821 # Support unset when possible.
26822 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26823   as_unset=unset
26824 else
26825   as_unset=false
26826 fi
26827
26828
26829 # Work around bugs in pre-3.0 UWIN ksh.
26830 $as_unset ENV MAIL MAILPATH
26831 PS1='$ '
26832 PS2='> '
26833 PS4='+ '
26834
26835 # NLS nuisances.
26836 for as_var in \
26837   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26838   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26839   LC_TELEPHONE LC_TIME
26840 do
26841   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26842     eval $as_var=C; export $as_var
26843   else
26844     $as_unset $as_var
26845   fi
26846 done
26847
26848 # Required to use basename.
26849 if expr a : '\(a\)' >/dev/null 2>&1; then
26850   as_expr=expr
26851 else
26852   as_expr=false
26853 fi
26854
26855 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26856   as_basename=basename
26857 else
26858   as_basename=false
26859 fi
26860
26861
26862 # Name of the executable.
26863 as_me=`$as_basename "$0" ||
26864 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26865          X"$0" : 'X\(//\)$' \| \
26866          X"$0" : 'X\(/\)$' \| \
26867          .     : '\(.\)' 2>/dev/null ||
26868 echo X/"$0" |
26869     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26870           /^X\/\(\/\/\)$/{ s//\1/; q; }
26871           /^X\/\(\/\).*/{ s//\1/; q; }
26872           s/.*/./; q'`
26873
26874
26875 # PATH needs CR, and LINENO needs CR and PATH.
26876 # Avoid depending upon Character Ranges.
26877 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26878 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26879 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26880 as_cr_digits='0123456789'
26881 as_cr_alnum=$as_cr_Letters$as_cr_digits
26882
26883 # The user is always right.
26884 if test "${PATH_SEPARATOR+set}" != set; then
26885   echo "#! /bin/sh" >conf$$.sh
26886   echo  "exit 0"   >>conf$$.sh
26887   chmod +x conf$$.sh
26888   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26889     PATH_SEPARATOR=';'
26890   else
26891     PATH_SEPARATOR=:
26892   fi
26893   rm -f conf$$.sh
26894 fi
26895
26896
26897   as_lineno_1=$LINENO
26898   as_lineno_2=$LINENO
26899   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26900   test "x$as_lineno_1" != "x$as_lineno_2" &&
26901   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26902   # Find who we are.  Look in the path if we contain no path at all
26903   # relative or not.
26904   case $0 in
26905     *[\\/]* ) as_myself=$0 ;;
26906     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26907 for as_dir in $PATH
26908 do
26909   IFS=$as_save_IFS
26910   test -z "$as_dir" && as_dir=.
26911   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26912 done
26913
26914        ;;
26915   esac
26916   # We did not find ourselves, most probably we were run as `sh COMMAND'
26917   # in which case we are not to be found in the path.
26918   if test "x$as_myself" = x; then
26919     as_myself=$0
26920   fi
26921   if test ! -f "$as_myself"; then
26922     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26923 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26924    { (exit 1); exit 1; }; }
26925   fi
26926   case $CONFIG_SHELL in
26927   '')
26928     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26929 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26930 do
26931   IFS=$as_save_IFS
26932   test -z "$as_dir" && as_dir=.
26933   for as_base in sh bash ksh sh5; do
26934          case $as_dir in
26935          /*)
26936            if ("$as_dir/$as_base" -c '
26937   as_lineno_1=$LINENO
26938   as_lineno_2=$LINENO
26939   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26940   test "x$as_lineno_1" != "x$as_lineno_2" &&
26941   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26942              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26943              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26944              CONFIG_SHELL=$as_dir/$as_base
26945              export CONFIG_SHELL
26946              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26947            fi;;
26948          esac
26949        done
26950 done
26951 ;;
26952   esac
26953
26954   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26955   # uniformly replaced by the line number.  The first 'sed' inserts a
26956   # line-number line before each line; the second 'sed' does the real
26957   # work.  The second script uses 'N' to pair each line-number line
26958   # with the numbered line, and appends trailing '-' during
26959   # substitution so that $LINENO is not a special case at line end.
26960   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26961   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26962   sed '=' <$as_myself |
26963     sed '
26964       N
26965       s,$,-,
26966       : loop
26967       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26968       t loop
26969       s,-$,,
26970       s,^['$as_cr_digits']*\n,,
26971     ' >$as_me.lineno &&
26972   chmod +x $as_me.lineno ||
26973     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26974 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26975    { (exit 1); exit 1; }; }
26976
26977   # Don't try to exec as it changes $[0], causing all sort of problems
26978   # (the dirname of $[0] is not the place where we might find the
26979   # original and so on.  Autoconf is especially sensible to this).
26980   . ./$as_me.lineno
26981   # Exit status is that of the last command.
26982   exit
26983 }
26984
26985
26986 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26987   *c*,-n*) ECHO_N= ECHO_C='
26988 ' ECHO_T='      ' ;;
26989   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26990   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26991 esac
26992
26993 if expr a : '\(a\)' >/dev/null 2>&1; then
26994   as_expr=expr
26995 else
26996   as_expr=false
26997 fi
26998
26999 rm -f conf$$ conf$$.exe conf$$.file
27000 echo >conf$$.file
27001 if ln -s conf$$.file conf$$ 2>/dev/null; then
27002   # We could just check for DJGPP; but this test a) works b) is more generic
27003   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27004   if test -f conf$$.exe; then
27005     # Don't use ln at all; we don't have any links
27006     as_ln_s='cp -p'
27007   else
27008     as_ln_s='ln -s'
27009   fi
27010 elif ln conf$$.file conf$$ 2>/dev/null; then
27011   as_ln_s=ln
27012 else
27013   as_ln_s='cp -p'
27014 fi
27015 rm -f conf$$ conf$$.exe conf$$.file
27016
27017 if mkdir -p . 2>/dev/null; then
27018   as_mkdir_p=:
27019 else
27020   test -d ./-p && rmdir ./-p
27021   as_mkdir_p=false
27022 fi
27023
27024 as_executable_p="test -f"
27025
27026 # Sed expression to map a string onto a valid CPP name.
27027 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27028
27029 # Sed expression to map a string onto a valid variable name.
27030 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27031
27032
27033 # IFS
27034 # We need space, tab and new line, in precisely that order.
27035 as_nl='
27036 '
27037 IFS="   $as_nl"
27038
27039 # CDPATH.
27040 $as_unset CDPATH
27041
27042 exec 6>&1
27043
27044 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27045 # report actual input values of CONFIG_FILES etc. instead of their
27046 # values after options handling.  Logging --version etc. is OK.
27047 exec 5>>config.log
27048 {
27049   echo
27050   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27051 ## Running $as_me. ##
27052 _ASBOX
27053 } >&5
27054 cat >&5 <<_CSEOF
27055
27056 This file was extended by LLVM $as_me 1.4, which was
27057 generated by GNU Autoconf 2.59.  Invocation command line was
27058
27059   CONFIG_FILES    = $CONFIG_FILES
27060   CONFIG_HEADERS  = $CONFIG_HEADERS
27061   CONFIG_LINKS    = $CONFIG_LINKS
27062   CONFIG_COMMANDS = $CONFIG_COMMANDS
27063   $ $0 $@
27064
27065 _CSEOF
27066 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27067 echo >&5
27068 _ACEOF
27069
27070 # Files that config.status was made for.
27071 if test -n "$ac_config_files"; then
27072   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27073 fi
27074
27075 if test -n "$ac_config_headers"; then
27076   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27077 fi
27078
27079 if test -n "$ac_config_links"; then
27080   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27081 fi
27082
27083 if test -n "$ac_config_commands"; then
27084   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27085 fi
27086
27087 cat >>$CONFIG_STATUS <<\_ACEOF
27088
27089 ac_cs_usage="\
27090 \`$as_me' instantiates files from templates according to the
27091 current configuration.
27092
27093 Usage: $0 [OPTIONS] [FILE]...
27094
27095   -h, --help       print this help, then exit
27096   -V, --version    print version number, then exit
27097   -q, --quiet      do not print progress messages
27098   -d, --debug      don't remove temporary files
27099       --recheck    update $as_me by reconfiguring in the same conditions
27100   --file=FILE[:TEMPLATE]
27101                    instantiate the configuration file FILE
27102   --header=FILE[:TEMPLATE]
27103                    instantiate the configuration header FILE
27104
27105 Configuration files:
27106 $config_files
27107
27108 Configuration headers:
27109 $config_headers
27110
27111 Configuration links:
27112 $config_links
27113
27114 Configuration commands:
27115 $config_commands
27116
27117 Report bugs to <bug-autoconf@gnu.org>."
27118 _ACEOF
27119
27120 cat >>$CONFIG_STATUS <<_ACEOF
27121 ac_cs_version="\\
27122 LLVM config.status 1.4
27123 configured by $0, generated by GNU Autoconf 2.59,
27124   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27125
27126 Copyright (C) 2003 Free Software Foundation, Inc.
27127 This config.status script is free software; the Free Software Foundation
27128 gives unlimited permission to copy, distribute and modify it."
27129 srcdir=$srcdir
27130 INSTALL="$INSTALL"
27131 _ACEOF
27132
27133 cat >>$CONFIG_STATUS <<\_ACEOF
27134 # If no file are specified by the user, then we need to provide default
27135 # value.  By we need to know if files were specified by the user.
27136 ac_need_defaults=:
27137 while test $# != 0
27138 do
27139   case $1 in
27140   --*=*)
27141     ac_option=`expr "x$1" : 'x\([^=]*\)='`
27142     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27143     ac_shift=:
27144     ;;
27145   -*)
27146     ac_option=$1
27147     ac_optarg=$2
27148     ac_shift=shift
27149     ;;
27150   *) # This is not an option, so the user has probably given explicit
27151      # arguments.
27152      ac_option=$1
27153      ac_need_defaults=false;;
27154   esac
27155
27156   case $ac_option in
27157   # Handling of the options.
27158 _ACEOF
27159 cat >>$CONFIG_STATUS <<\_ACEOF
27160   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27161     ac_cs_recheck=: ;;
27162   --version | --vers* | -V )
27163     echo "$ac_cs_version"; exit 0 ;;
27164   --he | --h)
27165     # Conflict between --help and --header
27166     { { echo "$as_me:$LINENO: error: ambiguous option: $1
27167 Try \`$0 --help' for more information." >&5
27168 echo "$as_me: error: ambiguous option: $1
27169 Try \`$0 --help' for more information." >&2;}
27170    { (exit 1); exit 1; }; };;
27171   --help | --hel | -h )
27172     echo "$ac_cs_usage"; exit 0 ;;
27173   --debug | --d* | -d )
27174     debug=: ;;
27175   --file | --fil | --fi | --f )
27176     $ac_shift
27177     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27178     ac_need_defaults=false;;
27179   --header | --heade | --head | --hea )
27180     $ac_shift
27181     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27182     ac_need_defaults=false;;
27183   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27184   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27185     ac_cs_silent=: ;;
27186
27187   # This is an error.
27188   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27189 Try \`$0 --help' for more information." >&5
27190 echo "$as_me: error: unrecognized option: $1
27191 Try \`$0 --help' for more information." >&2;}
27192    { (exit 1); exit 1; }; } ;;
27193
27194   *) ac_config_targets="$ac_config_targets $1" ;;
27195
27196   esac
27197   shift
27198 done
27199
27200 ac_configure_extra_args=
27201
27202 if $ac_cs_silent; then
27203   exec 6>/dev/null
27204   ac_configure_extra_args="$ac_configure_extra_args --silent"
27205 fi
27206
27207 _ACEOF
27208 cat >>$CONFIG_STATUS <<_ACEOF
27209 if \$ac_cs_recheck; then
27210   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27211   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27212 fi
27213
27214 _ACEOF
27215
27216 cat >>$CONFIG_STATUS <<_ACEOF
27217 #
27218 # INIT-COMMANDS section.
27219 #
27220
27221 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27222
27223 _ACEOF
27224
27225
27226
27227 cat >>$CONFIG_STATUS <<\_ACEOF
27228 for ac_config_target in $ac_config_targets
27229 do
27230   case "$ac_config_target" in
27231   # Handling of arguments.
27232   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27233   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27234   "lib/Analysis/IPA/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/IPA/Makefile" ;;
27235   "lib/Analysis/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/Makefile" ;;
27236   "lib/Analysis/DataStructure/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/DataStructure/Makefile" ;;
27237   "lib/AsmParser/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/AsmParser/Makefile" ;;
27238   "lib/System/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/System/Makefile" ;;
27239   "lib/Bytecode/Reader/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Reader/Makefile" ;;
27240   "lib/Bytecode/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Makefile" ;;
27241   "lib/Bytecode/Writer/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Writer/Makefile" ;;
27242   "lib/Bytecode/Archive/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Archive/Makefile" ;;
27243   "lib/CodeGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/Makefile" ;;
27244   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/SelectionDAG/Makefile" ;;
27245   "lib/Debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Debugger/Makefile" ;;
27246   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/Interpreter/Makefile" ;;
27247   "lib/ExecutionEngine/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/Makefile" ;;
27248   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/JIT/Makefile" ;;
27249   "lib/Support/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Support/Makefile" ;;
27250   "lib/Target/CBackend/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/CBackend/Makefile" ;;
27251   "lib/Target/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/Makefile" ;;
27252   "lib/Target/Skeleton/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/Skeleton/Makefile" ;;
27253   "lib/Target/PowerPC/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/PowerPC/Makefile" ;;
27254   "lib/Target/SparcV9/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/Makefile" ;;
27255   "lib/Target/SparcV9/InstrSched/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/InstrSched/Makefile" ;;
27256   "lib/Target/SparcV9/LiveVar/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/LiveVar/Makefile" ;;
27257   "lib/Target/SparcV9/ModuloScheduling/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/ModuloScheduling/Makefile" ;;
27258   "lib/Target/SparcV9/RegAlloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/RegAlloc/Makefile" ;;
27259   "lib/Target/X86/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/X86/Makefile" ;;
27260   "lib/Transforms/Hello/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Hello/Makefile" ;;
27261   "lib/Transforms/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Makefile" ;;
27262   "lib/Transforms/IPO/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/IPO/Makefile" ;;
27263   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
27264   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Instrumentation/Makefile" ;;
27265   "lib/Transforms/Scalar/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Scalar/Makefile" ;;
27266   "lib/Transforms/Utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Utils/Makefile" ;;
27267   "lib/VMCore/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/VMCore/Makefile" ;;
27268   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27269   "utils/Burg/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Burg/Makefile" ;;
27270   "utils/fpcmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/fpcmp/Makefile" ;;
27271   "utils/TableGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/TableGen/Makefile" ;;
27272   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27273   "tools/analyze/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/analyze/Makefile" ;;
27274   "tools/llvmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/Makefile" ;;
27275   "tools/bugpoint/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/bugpoint/Makefile" ;;
27276   "tools/extract/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/extract/Makefile" ;;
27277   "tools/gccas/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gccas/Makefile" ;;
27278   "tools/gccld/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gccld/Makefile" ;;
27279   "tools/llvm-bcanalyzer/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-bcanalyzer/Makefile" ;;
27280   "tools/llc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llc/Makefile" ;;
27281   "tools/llee/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llee/Makefile" ;;
27282   "tools/lli/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/lli/Makefile" ;;
27283   "tools/llvm-ar/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-ar/Makefile" ;;
27284   "tools/llvm-as/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-as/Makefile" ;;
27285   "tools/llvm-db/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-db/Makefile" ;;
27286   "tools/llvm-dis/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-dis/Makefile" ;;
27287   "tools/llvm-link/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-link/Makefile" ;;
27288   "tools/llvm-nm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-nm/Makefile" ;;
27289   "tools/llvm-prof/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-prof/Makefile" ;;
27290   "tools/opt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/opt/Makefile" ;;
27291   "tools/llvm-ld/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-ld/Makefile" ;;
27292   "tools/llvm-stub/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-stub/Makefile" ;;
27293   "runtime/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/Makefile" ;;
27294   "runtime/GC/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GC/Makefile" ;;
27295   "runtime/GC/SemiSpace/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GC/SemiSpace/Makefile" ;;
27296   "runtime/GCCLibraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/Makefile" ;;
27297   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/crtend/Makefile" ;;
27298   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libc/Makefile" ;;
27299   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libcurses/Makefile" ;;
27300   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libg/Makefile" ;;
27301   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libgcc/Makefile" ;;
27302   "runtime/GCCLibraries/libgdbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libgdbm/Makefile" ;;
27303   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libm/Makefile" ;;
27304   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libmalloc/Makefile" ;;
27305   "runtime/GCCLibraries/libpthread/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libpthread/Makefile" ;;
27306   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libtermcap/Makefile" ;;
27307   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libucb/Makefile" ;;
27308   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libutempter/Makefile" ;;
27309   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libutil/Makefile" ;;
27310   "runtime/libdummy/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/libdummy/Makefile" ;;
27311   "runtime/libpng/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/libpng/Makefile" ;;
27312   "runtime/libprofile/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/libprofile/Makefile" ;;
27313   "runtime/libtrace/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/libtrace/Makefile" ;;
27314   "runtime/zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/zlib/Makefile" ;;
27315   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_platform_type" ;;
27316   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27317   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
27318   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
27319   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
27320   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
27321   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
27322   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
27323   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27324 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27325    { (exit 1); exit 1; }; };;
27326   esac
27327 done
27328
27329 # If the user did not use the arguments to specify the items to instantiate,
27330 # then the envvar interface is used.  Set only those that are not.
27331 # We use the long form for the default assignment because of an extremely
27332 # bizarre bug on SunOS 4.1.3.
27333 if $ac_need_defaults; then
27334   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27335   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27336   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27337   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27338 fi
27339
27340 # Have a temporary directory for convenience.  Make it in the build tree
27341 # simply because there is no reason to put it here, and in addition,
27342 # creating and moving files from /tmp can sometimes cause problems.
27343 # Create a temporary directory, and hook for its removal unless debugging.
27344 $debug ||
27345 {
27346   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27347   trap '{ (exit 1); exit 1; }' 1 2 13 15
27348 }
27349
27350 # Create a (secure) tmp directory for tmp files.
27351
27352 {
27353   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27354   test -n "$tmp" && test -d "$tmp"
27355 }  ||
27356 {
27357   tmp=./confstat$$-$RANDOM
27358   (umask 077 && mkdir $tmp)
27359 } ||
27360 {
27361    echo "$me: cannot create a temporary directory in ." >&2
27362    { (exit 1); exit 1; }
27363 }
27364
27365 _ACEOF
27366
27367 cat >>$CONFIG_STATUS <<_ACEOF
27368
27369 #
27370 # CONFIG_FILES section.
27371 #
27372
27373 # No need to generate the scripts if there are no CONFIG_FILES.
27374 # This happens for instance when ./config.status config.h
27375 if test -n "\$CONFIG_FILES"; then
27376   # Protect against being on the right side of a sed subst in config.status.
27377   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27378    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27379 s,@SHELL@,$SHELL,;t t
27380 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27381 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27382 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27383 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27384 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27385 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27386 s,@exec_prefix@,$exec_prefix,;t t
27387 s,@prefix@,$prefix,;t t
27388 s,@program_transform_name@,$program_transform_name,;t t
27389 s,@bindir@,$bindir,;t t
27390 s,@sbindir@,$sbindir,;t t
27391 s,@libexecdir@,$libexecdir,;t t
27392 s,@datadir@,$datadir,;t t
27393 s,@sysconfdir@,$sysconfdir,;t t
27394 s,@sharedstatedir@,$sharedstatedir,;t t
27395 s,@localstatedir@,$localstatedir,;t t
27396 s,@libdir@,$libdir,;t t
27397 s,@includedir@,$includedir,;t t
27398 s,@oldincludedir@,$oldincludedir,;t t
27399 s,@infodir@,$infodir,;t t
27400 s,@mandir@,$mandir,;t t
27401 s,@build_alias@,$build_alias,;t t
27402 s,@host_alias@,$host_alias,;t t
27403 s,@target_alias@,$target_alias,;t t
27404 s,@DEFS@,$DEFS,;t t
27405 s,@ECHO_C@,$ECHO_C,;t t
27406 s,@ECHO_N@,$ECHO_N,;t t
27407 s,@ECHO_T@,$ECHO_T,;t t
27408 s,@LIBS@,$LIBS,;t t
27409 s,@build@,$build,;t t
27410 s,@build_cpu@,$build_cpu,;t t
27411 s,@build_vendor@,$build_vendor,;t t
27412 s,@build_os@,$build_os,;t t
27413 s,@host@,$host,;t t
27414 s,@host_cpu@,$host_cpu,;t t
27415 s,@host_vendor@,$host_vendor,;t t
27416 s,@host_os@,$host_os,;t t
27417 s,@target@,$target,;t t
27418 s,@target_cpu@,$target_cpu,;t t
27419 s,@target_vendor@,$target_vendor,;t t
27420 s,@target_os@,$target_os,;t t
27421 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27422 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27423 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27424 s,@CYGPATH_W@,$CYGPATH_W,;t t
27425 s,@PACKAGE@,$PACKAGE,;t t
27426 s,@VERSION@,$VERSION,;t t
27427 s,@ACLOCAL@,$ACLOCAL,;t t
27428 s,@AUTOCONF@,$AUTOCONF,;t t
27429 s,@AUTOMAKE@,$AUTOMAKE,;t t
27430 s,@AUTOHEADER@,$AUTOHEADER,;t t
27431 s,@MAKEINFO@,$MAKEINFO,;t t
27432 s,@install_sh@,$install_sh,;t t
27433 s,@STRIP@,$STRIP,;t t
27434 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27435 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27436 s,@mkdir_p@,$mkdir_p,;t t
27437 s,@AWK@,$AWK,;t t
27438 s,@SET_MAKE@,$SET_MAKE,;t t
27439 s,@am__leading_dot@,$am__leading_dot,;t t
27440 s,@AMTAR@,$AMTAR,;t t
27441 s,@am__tar@,$am__tar,;t t
27442 s,@am__untar@,$am__untar,;t t
27443 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
27444 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
27445 s,@ENABLE_PROFILED@,$ENABLE_PROFILED,;t t
27446 s,@BUILDMODE@,$BUILDMODE,;t t
27447 s,@JIT@,$JIT,;t t
27448 s,@OS@,$OS,;t t
27449 s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
27450 s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
27451 s,@ARCH_SPARC_TRUE@,$ARCH_SPARC_TRUE,;t t
27452 s,@ARCH_SPARC_FALSE@,$ARCH_SPARC_FALSE,;t t
27453 s,@ARCH_PPC_TRUE@,$ARCH_PPC_TRUE,;t t
27454 s,@ARCH_PPC_FALSE@,$ARCH_PPC_FALSE,;t t
27455 s,@ARCH_UNKNOWN_TRUE@,$ARCH_UNKNOWN_TRUE,;t t
27456 s,@ARCH_UNKNOWN_FALSE@,$ARCH_UNKNOWN_FALSE,;t t
27457 s,@ARCH@,$ARCH,;t t
27458 s,@ENDIAN@,$ENDIAN,;t t
27459 s,@CC@,$CC,;t t
27460 s,@CFLAGS@,$CFLAGS,;t t
27461 s,@LDFLAGS@,$LDFLAGS,;t t
27462 s,@CPPFLAGS@,$CPPFLAGS,;t t
27463 s,@ac_ct_CC@,$ac_ct_CC,;t t
27464 s,@EXEEXT@,$EXEEXT,;t t
27465 s,@OBJEXT@,$OBJEXT,;t t
27466 s,@DEPDIR@,$DEPDIR,;t t
27467 s,@am__include@,$am__include,;t t
27468 s,@am__quote@,$am__quote,;t t
27469 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27470 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27471 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27472 s,@CCDEPMODE@,$CCDEPMODE,;t t
27473 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27474 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27475 s,@CXX@,$CXX,;t t
27476 s,@CXXFLAGS@,$CXXFLAGS,;t t
27477 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27478 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27479 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27480 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27481 s,@CPP@,$CPP,;t t
27482 s,@LEX@,$LEX,;t t
27483 s,@LEXLIB@,$LEXLIB,;t t
27484 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
27485 s,@FLEX@,$FLEX,;t t
27486 s,@YACC@,$YACC,;t t
27487 s,@BISON@,$BISON,;t t
27488 s,@EGREP@,$EGREP,;t t
27489 s,@LN_S@,$LN_S,;t t
27490 s,@ECHO@,$ECHO,;t t
27491 s,@AR@,$AR,;t t
27492 s,@ac_ct_AR@,$ac_ct_AR,;t t
27493 s,@RANLIB@,$RANLIB,;t t
27494 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27495 s,@CXXCPP@,$CXXCPP,;t t
27496 s,@F77@,$F77,;t t
27497 s,@FFLAGS@,$FFLAGS,;t t
27498 s,@ac_ct_F77@,$ac_ct_F77,;t t
27499 s,@LIBTOOL@,$LIBTOOL,;t t
27500 s,@DOT@,$DOT,;t t
27501 s,@ETAGS@,$ETAGS,;t t
27502 s,@PYTHON@,$PYTHON,;t t
27503 s,@QMTEST@,$QMTEST,;t t
27504 s,@ifGNUmake@,$ifGNUmake,;t t
27505 s,@LLVMCC1@,$LLVMCC1,;t t
27506 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
27507 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
27508 s,@ALLOCA@,$ALLOCA,;t t
27509 s,@MMAP_FILE@,$MMAP_FILE,;t t
27510 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
27511 s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
27512 s,@SHLIBEXT@,$SHLIBEXT,;t t
27513 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
27514 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
27515 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
27516 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
27517 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
27518 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
27519 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
27520 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
27521 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
27522 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
27523 s,@subdirs@,$subdirs,;t t
27524 s,@LIBOBJS@,$LIBOBJS,;t t
27525 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27526 CEOF
27527
27528 _ACEOF
27529
27530   cat >>$CONFIG_STATUS <<\_ACEOF
27531   # Split the substitutions into bite-sized pieces for seds with
27532   # small command number limits, like on Digital OSF/1 and HP-UX.
27533   ac_max_sed_lines=48
27534   ac_sed_frag=1 # Number of current file.
27535   ac_beg=1 # First line for current file.
27536   ac_end=$ac_max_sed_lines # Line after last line for current file.
27537   ac_more_lines=:
27538   ac_sed_cmds=
27539   while $ac_more_lines; do
27540     if test $ac_beg -gt 1; then
27541       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27542     else
27543       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27544     fi
27545     if test ! -s $tmp/subs.frag; then
27546       ac_more_lines=false
27547     else
27548       # The purpose of the label and of the branching condition is to
27549       # speed up the sed processing (if there are no `@' at all, there
27550       # is no need to browse any of the substitutions).
27551       # These are the two extra sed commands mentioned above.
27552       (echo ':t
27553   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27554       if test -z "$ac_sed_cmds"; then
27555         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27556       else
27557         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27558       fi
27559       ac_sed_frag=`expr $ac_sed_frag + 1`
27560       ac_beg=$ac_end
27561       ac_end=`expr $ac_end + $ac_max_sed_lines`
27562     fi
27563   done
27564   if test -z "$ac_sed_cmds"; then
27565     ac_sed_cmds=cat
27566   fi
27567 fi # test -n "$CONFIG_FILES"
27568
27569 _ACEOF
27570 cat >>$CONFIG_STATUS <<\_ACEOF
27571 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27572   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27573   case $ac_file in
27574   - | *:- | *:-:* ) # input from stdin
27575         cat >$tmp/stdin
27576         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27577         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27578   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27579         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27580   * )   ac_file_in=$ac_file.in ;;
27581   esac
27582
27583   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27584   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27585 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27586          X"$ac_file" : 'X\(//\)[^/]' \| \
27587          X"$ac_file" : 'X\(//\)$' \| \
27588          X"$ac_file" : 'X\(/\)' \| \
27589          .     : '\(.\)' 2>/dev/null ||
27590 echo X"$ac_file" |
27591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27592           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27593           /^X\(\/\/\)$/{ s//\1/; q; }
27594           /^X\(\/\).*/{ s//\1/; q; }
27595           s/.*/./; q'`
27596   { if $as_mkdir_p; then
27597     mkdir -p "$ac_dir"
27598   else
27599     as_dir="$ac_dir"
27600     as_dirs=
27601     while test ! -d "$as_dir"; do
27602       as_dirs="$as_dir $as_dirs"
27603       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27605          X"$as_dir" : 'X\(//\)[^/]' \| \
27606          X"$as_dir" : 'X\(//\)$' \| \
27607          X"$as_dir" : 'X\(/\)' \| \
27608          .     : '\(.\)' 2>/dev/null ||
27609 echo X"$as_dir" |
27610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27611           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27612           /^X\(\/\/\)$/{ s//\1/; q; }
27613           /^X\(\/\).*/{ s//\1/; q; }
27614           s/.*/./; q'`
27615     done
27616     test ! -n "$as_dirs" || mkdir $as_dirs
27617   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27618 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27619    { (exit 1); exit 1; }; }; }
27620
27621   ac_builddir=.
27622
27623 if test "$ac_dir" != .; then
27624   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27625   # A "../" for each directory in $ac_dir_suffix.
27626   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27627 else
27628   ac_dir_suffix= ac_top_builddir=
27629 fi
27630
27631 case $srcdir in
27632   .)  # No --srcdir option.  We are building in place.
27633     ac_srcdir=.
27634     if test -z "$ac_top_builddir"; then
27635        ac_top_srcdir=.
27636     else
27637        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27638     fi ;;
27639   [\\/]* | ?:[\\/]* )  # Absolute path.
27640     ac_srcdir=$srcdir$ac_dir_suffix;
27641     ac_top_srcdir=$srcdir ;;
27642   *) # Relative path.
27643     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27644     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27645 esac
27646
27647 # Do not use `cd foo && pwd` to compute absolute paths, because
27648 # the directories may not exist.
27649 case `pwd` in
27650 .) ac_abs_builddir="$ac_dir";;
27651 *)
27652   case "$ac_dir" in
27653   .) ac_abs_builddir=`pwd`;;
27654   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27655   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27656   esac;;
27657 esac
27658 case $ac_abs_builddir in
27659 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27660 *)
27661   case ${ac_top_builddir}. in
27662   .) ac_abs_top_builddir=$ac_abs_builddir;;
27663   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27664   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27665   esac;;
27666 esac
27667 case $ac_abs_builddir in
27668 .) ac_abs_srcdir=$ac_srcdir;;
27669 *)
27670   case $ac_srcdir in
27671   .) ac_abs_srcdir=$ac_abs_builddir;;
27672   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27673   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27674   esac;;
27675 esac
27676 case $ac_abs_builddir in
27677 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27678 *)
27679   case $ac_top_srcdir in
27680   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27681   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27682   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27683   esac;;
27684 esac
27685
27686
27687   case $INSTALL in
27688   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27689   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27690   esac
27691
27692   if test x"$ac_file" != x-; then
27693     { echo "$as_me:$LINENO: creating $ac_file" >&5
27694 echo "$as_me: creating $ac_file" >&6;}
27695     rm -f "$ac_file"
27696   fi
27697   # Let's still pretend it is `configure' which instantiates (i.e., don't
27698   # use $as_me), people would be surprised to read:
27699   #    /* config.h.  Generated by config.status.  */
27700   if test x"$ac_file" = x-; then
27701     configure_input=
27702   else
27703     configure_input="$ac_file.  "
27704   fi
27705   configure_input=$configure_input"Generated from `echo $ac_file_in |
27706                                      sed 's,.*/,,'` by configure."
27707
27708   # First look for the input files in the build tree, otherwise in the
27709   # src tree.
27710   ac_file_inputs=`IFS=:
27711     for f in $ac_file_in; do
27712       case $f in
27713       -) echo $tmp/stdin ;;
27714       [\\/$]*)
27715          # Absolute (can't be DOS-style, as IFS=:)
27716          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27717 echo "$as_me: error: cannot find input file: $f" >&2;}
27718    { (exit 1); exit 1; }; }
27719          echo "$f";;
27720       *) # Relative
27721          if test -f "$f"; then
27722            # Build tree
27723            echo "$f"
27724          elif test -f "$srcdir/$f"; then
27725            # Source tree
27726            echo "$srcdir/$f"
27727          else
27728            # /dev/null tree
27729            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27730 echo "$as_me: error: cannot find input file: $f" >&2;}
27731    { (exit 1); exit 1; }; }
27732          fi;;
27733       esac
27734     done` || { (exit 1); exit 1; }
27735 _ACEOF
27736 cat >>$CONFIG_STATUS <<_ACEOF
27737   sed "$ac_vpsub
27738 $extrasub
27739 _ACEOF
27740 cat >>$CONFIG_STATUS <<\_ACEOF
27741 :t
27742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27743 s,@configure_input@,$configure_input,;t t
27744 s,@srcdir@,$ac_srcdir,;t t
27745 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27746 s,@top_srcdir@,$ac_top_srcdir,;t t
27747 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27748 s,@builddir@,$ac_builddir,;t t
27749 s,@abs_builddir@,$ac_abs_builddir,;t t
27750 s,@top_builddir@,$ac_top_builddir,;t t
27751 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27752 s,@INSTALL@,$ac_INSTALL,;t t
27753 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27754   rm -f $tmp/stdin
27755   if test x"$ac_file" != x-; then
27756     mv $tmp/out $ac_file
27757   else
27758     cat $tmp/out
27759     rm -f $tmp/out
27760   fi
27761
27762 done
27763 _ACEOF
27764 cat >>$CONFIG_STATUS <<\_ACEOF
27765
27766 #
27767 # CONFIG_HEADER section.
27768 #
27769
27770 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27771 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27772 #
27773 # ac_d sets the value in "#define NAME VALUE" lines.
27774 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27775 ac_dB='[         ].*$,\1#\2'
27776 ac_dC=' '
27777 ac_dD=',;t'
27778 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27779 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27780 ac_uB='$,\1#\2define\3'
27781 ac_uC=' '
27782 ac_uD=',;t'
27783
27784 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27785   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27786   case $ac_file in
27787   - | *:- | *:-:* ) # input from stdin
27788         cat >$tmp/stdin
27789         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27790         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27791   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27792         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27793   * )   ac_file_in=$ac_file.in ;;
27794   esac
27795
27796   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27797 echo "$as_me: creating $ac_file" >&6;}
27798
27799   # First look for the input files in the build tree, otherwise in the
27800   # src tree.
27801   ac_file_inputs=`IFS=:
27802     for f in $ac_file_in; do
27803       case $f in
27804       -) echo $tmp/stdin ;;
27805       [\\/$]*)
27806          # Absolute (can't be DOS-style, as IFS=:)
27807          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27808 echo "$as_me: error: cannot find input file: $f" >&2;}
27809    { (exit 1); exit 1; }; }
27810          # Do quote $f, to prevent DOS paths from being IFS'd.
27811          echo "$f";;
27812       *) # Relative
27813          if test -f "$f"; then
27814            # Build tree
27815            echo "$f"
27816          elif test -f "$srcdir/$f"; then
27817            # Source tree
27818            echo "$srcdir/$f"
27819          else
27820            # /dev/null tree
27821            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27822 echo "$as_me: error: cannot find input file: $f" >&2;}
27823    { (exit 1); exit 1; }; }
27824          fi;;
27825       esac
27826     done` || { (exit 1); exit 1; }
27827   # Remove the trailing spaces.
27828   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27829
27830 _ACEOF
27831
27832 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27833 # `conftest.undefs', that substitutes the proper values into
27834 # config.h.in to produce config.h.  The first handles `#define'
27835 # templates, and the second `#undef' templates.
27836 # And first: Protect against being on the right side of a sed subst in
27837 # config.status.  Protect against being in an unquoted here document
27838 # in config.status.
27839 rm -f conftest.defines conftest.undefs
27840 # Using a here document instead of a string reduces the quoting nightmare.
27841 # Putting comments in sed scripts is not portable.
27842 #
27843 # `end' is used to avoid that the second main sed command (meant for
27844 # 0-ary CPP macros) applies to n-ary macro definitions.
27845 # See the Autoconf documentation for `clear'.
27846 cat >confdef2sed.sed <<\_ACEOF
27847 s/[\\&,]/\\&/g
27848 s,[\\$`],\\&,g
27849 t clear
27850 : clear
27851 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27852 t end
27853 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27854 : end
27855 _ACEOF
27856 # If some macros were called several times there might be several times
27857 # the same #defines, which is useless.  Nevertheless, we may not want to
27858 # sort them, since we want the *last* AC-DEFINE to be honored.
27859 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27860 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27861 rm -f confdef2sed.sed
27862
27863 # This sed command replaces #undef with comments.  This is necessary, for
27864 # example, in the case of _POSIX_SOURCE, which is predefined and required
27865 # on some systems where configure will not decide to define it.
27866 cat >>conftest.undefs <<\_ACEOF
27867 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27868 _ACEOF
27869
27870 # Break up conftest.defines because some shells have a limit on the size
27871 # of here documents, and old seds have small limits too (100 cmds).
27872 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27873 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27874 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27875 echo '  :' >>$CONFIG_STATUS
27876 rm -f conftest.tail
27877 while grep . conftest.defines >/dev/null
27878 do
27879   # Write a limited-size here document to $tmp/defines.sed.
27880   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27881   # Speed up: don't consider the non `#define' lines.
27882   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27883   # Work around the forget-to-reset-the-flag bug.
27884   echo 't clr' >>$CONFIG_STATUS
27885   echo ': clr' >>$CONFIG_STATUS
27886   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27887   echo 'CEOF
27888   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27889   rm -f $tmp/in
27890   mv $tmp/out $tmp/in
27891 ' >>$CONFIG_STATUS
27892   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27893   rm -f conftest.defines
27894   mv conftest.tail conftest.defines
27895 done
27896 rm -f conftest.defines
27897 echo '  fi # grep' >>$CONFIG_STATUS
27898 echo >>$CONFIG_STATUS
27899
27900 # Break up conftest.undefs because some shells have a limit on the size
27901 # of here documents, and old seds have small limits too (100 cmds).
27902 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27903 rm -f conftest.tail
27904 while grep . conftest.undefs >/dev/null
27905 do
27906   # Write a limited-size here document to $tmp/undefs.sed.
27907   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27908   # Speed up: don't consider the non `#undef'
27909   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27910   # Work around the forget-to-reset-the-flag bug.
27911   echo 't clr' >>$CONFIG_STATUS
27912   echo ': clr' >>$CONFIG_STATUS
27913   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27914   echo 'CEOF
27915   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27916   rm -f $tmp/in
27917   mv $tmp/out $tmp/in
27918 ' >>$CONFIG_STATUS
27919   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27920   rm -f conftest.undefs
27921   mv conftest.tail conftest.undefs
27922 done
27923 rm -f conftest.undefs
27924
27925 cat >>$CONFIG_STATUS <<\_ACEOF
27926   # Let's still pretend it is `configure' which instantiates (i.e., don't
27927   # use $as_me), people would be surprised to read:
27928   #    /* config.h.  Generated by config.status.  */
27929   if test x"$ac_file" = x-; then
27930     echo "/* Generated by configure.  */" >$tmp/config.h
27931   else
27932     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27933   fi
27934   cat $tmp/in >>$tmp/config.h
27935   rm -f $tmp/in
27936   if test x"$ac_file" != x-; then
27937     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27938       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27939 echo "$as_me: $ac_file is unchanged" >&6;}
27940     else
27941       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27943          X"$ac_file" : 'X\(//\)[^/]' \| \
27944          X"$ac_file" : 'X\(//\)$' \| \
27945          X"$ac_file" : 'X\(/\)' \| \
27946          .     : '\(.\)' 2>/dev/null ||
27947 echo X"$ac_file" |
27948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27949           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27950           /^X\(\/\/\)$/{ s//\1/; q; }
27951           /^X\(\/\).*/{ s//\1/; q; }
27952           s/.*/./; q'`
27953       { if $as_mkdir_p; then
27954     mkdir -p "$ac_dir"
27955   else
27956     as_dir="$ac_dir"
27957     as_dirs=
27958     while test ! -d "$as_dir"; do
27959       as_dirs="$as_dir $as_dirs"
27960       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27962          X"$as_dir" : 'X\(//\)[^/]' \| \
27963          X"$as_dir" : 'X\(//\)$' \| \
27964          X"$as_dir" : 'X\(/\)' \| \
27965          .     : '\(.\)' 2>/dev/null ||
27966 echo X"$as_dir" |
27967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27968           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27969           /^X\(\/\/\)$/{ s//\1/; q; }
27970           /^X\(\/\).*/{ s//\1/; q; }
27971           s/.*/./; q'`
27972     done
27973     test ! -n "$as_dirs" || mkdir $as_dirs
27974   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27975 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27976    { (exit 1); exit 1; }; }; }
27977
27978       rm -f $ac_file
27979       mv $tmp/config.h $ac_file
27980     fi
27981   else
27982     cat $tmp/config.h
27983     rm -f $tmp/config.h
27984   fi
27985 # Compute $ac_file's index in $config_headers.
27986 _am_stamp_count=1
27987 for _am_header in $config_headers :; do
27988   case $_am_header in
27989     $ac_file | $ac_file:* )
27990       break ;;
27991     * )
27992       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27993   esac
27994 done
27995 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27996 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27997          X$ac_file : 'X\(//\)[^/]' \| \
27998          X$ac_file : 'X\(//\)$' \| \
27999          X$ac_file : 'X\(/\)' \| \
28000          .     : '\(.\)' 2>/dev/null ||
28001 echo X$ac_file |
28002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28004           /^X\(\/\/\)$/{ s//\1/; q; }
28005           /^X\(\/\).*/{ s//\1/; q; }
28006           s/.*/./; q'`/stamp-h$_am_stamp_count
28007 done
28008 _ACEOF
28009 cat >>$CONFIG_STATUS <<\_ACEOF
28010
28011 #
28012 # CONFIG_LINKS section.
28013 #
28014
28015 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
28016   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28017   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28018
28019   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
28020 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
28021
28022   if test ! -r $srcdir/$ac_source; then
28023     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
28024 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
28025    { (exit 1); exit 1; }; }
28026   fi
28027   rm -f $ac_dest
28028
28029   # Make relative symlinks.
28030   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
28031 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28032          X"$ac_dest" : 'X\(//\)[^/]' \| \
28033          X"$ac_dest" : 'X\(//\)$' \| \
28034          X"$ac_dest" : 'X\(/\)' \| \
28035          .     : '\(.\)' 2>/dev/null ||
28036 echo X"$ac_dest" |
28037     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28038           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28039           /^X\(\/\/\)$/{ s//\1/; q; }
28040           /^X\(\/\).*/{ s//\1/; q; }
28041           s/.*/./; q'`
28042   { if $as_mkdir_p; then
28043     mkdir -p "$ac_dest_dir"
28044   else
28045     as_dir="$ac_dest_dir"
28046     as_dirs=
28047     while test ! -d "$as_dir"; do
28048       as_dirs="$as_dir $as_dirs"
28049       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28051          X"$as_dir" : 'X\(//\)[^/]' \| \
28052          X"$as_dir" : 'X\(//\)$' \| \
28053          X"$as_dir" : 'X\(/\)' \| \
28054          .     : '\(.\)' 2>/dev/null ||
28055 echo X"$as_dir" |
28056     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28057           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28058           /^X\(\/\/\)$/{ s//\1/; q; }
28059           /^X\(\/\).*/{ s//\1/; q; }
28060           s/.*/./; q'`
28061     done
28062     test ! -n "$as_dirs" || mkdir $as_dirs
28063   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
28064 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
28065    { (exit 1); exit 1; }; }; }
28066
28067   ac_builddir=.
28068
28069 if test "$ac_dest_dir" != .; then
28070   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
28071   # A "../" for each directory in $ac_dir_suffix.
28072   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28073 else
28074   ac_dir_suffix= ac_top_builddir=
28075 fi
28076
28077 case $srcdir in
28078   .)  # No --srcdir option.  We are building in place.
28079     ac_srcdir=.
28080     if test -z "$ac_top_builddir"; then
28081        ac_top_srcdir=.
28082     else
28083        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28084     fi ;;
28085   [\\/]* | ?:[\\/]* )  # Absolute path.
28086     ac_srcdir=$srcdir$ac_dir_suffix;
28087     ac_top_srcdir=$srcdir ;;
28088   *) # Relative path.
28089     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28090     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28091 esac
28092
28093 # Do not use `cd foo && pwd` to compute absolute paths, because
28094 # the directories may not exist.
28095 case `pwd` in
28096 .) ac_abs_builddir="$ac_dest_dir";;
28097 *)
28098   case "$ac_dest_dir" in
28099   .) ac_abs_builddir=`pwd`;;
28100   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
28101   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
28102   esac;;
28103 esac
28104 case $ac_abs_builddir in
28105 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28106 *)
28107   case ${ac_top_builddir}. in
28108   .) ac_abs_top_builddir=$ac_abs_builddir;;
28109   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28110   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28111   esac;;
28112 esac
28113 case $ac_abs_builddir in
28114 .) ac_abs_srcdir=$ac_srcdir;;
28115 *)
28116   case $ac_srcdir in
28117   .) ac_abs_srcdir=$ac_abs_builddir;;
28118   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28119   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28120   esac;;
28121 esac
28122 case $ac_abs_builddir in
28123 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28124 *)
28125   case $ac_top_srcdir in
28126   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28127   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28128   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28129   esac;;
28130 esac
28131
28132
28133   case $srcdir in
28134   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
28135       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
28136   esac
28137
28138   # Try a symlink, then a hard link, then a copy.
28139   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
28140     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
28141     cp -p $srcdir/$ac_source $ac_dest ||
28142     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
28143 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
28144    { (exit 1); exit 1; }; }
28145 done
28146 _ACEOF
28147 cat >>$CONFIG_STATUS <<\_ACEOF
28148
28149 #
28150 # CONFIG_COMMANDS section.
28151 #
28152 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28153   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28154   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28155   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28156 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28157          X"$ac_dest" : 'X\(//\)[^/]' \| \
28158          X"$ac_dest" : 'X\(//\)$' \| \
28159          X"$ac_dest" : 'X\(/\)' \| \
28160          .     : '\(.\)' 2>/dev/null ||
28161 echo X"$ac_dest" |
28162     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28163           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28164           /^X\(\/\/\)$/{ s//\1/; q; }
28165           /^X\(\/\).*/{ s//\1/; q; }
28166           s/.*/./; q'`
28167   { if $as_mkdir_p; then
28168     mkdir -p "$ac_dir"
28169   else
28170     as_dir="$ac_dir"
28171     as_dirs=
28172     while test ! -d "$as_dir"; do
28173       as_dirs="$as_dir $as_dirs"
28174       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28176          X"$as_dir" : 'X\(//\)[^/]' \| \
28177          X"$as_dir" : 'X\(//\)$' \| \
28178          X"$as_dir" : 'X\(/\)' \| \
28179          .     : '\(.\)' 2>/dev/null ||
28180 echo X"$as_dir" |
28181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28182           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28183           /^X\(\/\/\)$/{ s//\1/; q; }
28184           /^X\(\/\).*/{ s//\1/; q; }
28185           s/.*/./; q'`
28186     done
28187     test ! -n "$as_dirs" || mkdir $as_dirs
28188   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28189 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28190    { (exit 1); exit 1; }; }; }
28191
28192   ac_builddir=.
28193
28194 if test "$ac_dir" != .; then
28195   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28196   # A "../" for each directory in $ac_dir_suffix.
28197   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28198 else
28199   ac_dir_suffix= ac_top_builddir=
28200 fi
28201
28202 case $srcdir in
28203   .)  # No --srcdir option.  We are building in place.
28204     ac_srcdir=.
28205     if test -z "$ac_top_builddir"; then
28206        ac_top_srcdir=.
28207     else
28208        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28209     fi ;;
28210   [\\/]* | ?:[\\/]* )  # Absolute path.
28211     ac_srcdir=$srcdir$ac_dir_suffix;
28212     ac_top_srcdir=$srcdir ;;
28213   *) # Relative path.
28214     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28215     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28216 esac
28217
28218 # Do not use `cd foo && pwd` to compute absolute paths, because
28219 # the directories may not exist.
28220 case `pwd` in
28221 .) ac_abs_builddir="$ac_dir";;
28222 *)
28223   case "$ac_dir" in
28224   .) ac_abs_builddir=`pwd`;;
28225   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28226   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28227   esac;;
28228 esac
28229 case $ac_abs_builddir in
28230 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28231 *)
28232   case ${ac_top_builddir}. in
28233   .) ac_abs_top_builddir=$ac_abs_builddir;;
28234   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28235   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28236   esac;;
28237 esac
28238 case $ac_abs_builddir in
28239 .) ac_abs_srcdir=$ac_srcdir;;
28240 *)
28241   case $ac_srcdir in
28242   .) ac_abs_srcdir=$ac_abs_builddir;;
28243   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28244   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28245   esac;;
28246 esac
28247 case $ac_abs_builddir in
28248 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28249 *)
28250   case $ac_top_srcdir in
28251   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28252   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28253   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28254   esac;;
28255 esac
28256
28257
28258   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28259 echo "$as_me: executing $ac_dest commands" >&6;}
28260   case $ac_dest in
28261     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28262   # Strip MF so we end up with the name of the file.
28263   mf=`echo "$mf" | sed -e 's/:.*$//'`
28264   # Check whether this is an Automake generated Makefile or not.
28265   # We used to match only the files named `Makefile.in', but
28266   # some people rename them; so instead we look at the file content.
28267   # Grep'ing the first line is not enough: some people post-process
28268   # each Makefile.in and add a new line on top of each file to say so.
28269   # So let's grep whole file.
28270   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28271     dirpart=`(dirname "$mf") 2>/dev/null ||
28272 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28273          X"$mf" : 'X\(//\)[^/]' \| \
28274          X"$mf" : 'X\(//\)$' \| \
28275          X"$mf" : 'X\(/\)' \| \
28276          .     : '\(.\)' 2>/dev/null ||
28277 echo X"$mf" |
28278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28279           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28280           /^X\(\/\/\)$/{ s//\1/; q; }
28281           /^X\(\/\).*/{ s//\1/; q; }
28282           s/.*/./; q'`
28283   else
28284     continue
28285   fi
28286   # Extract the definition of DEPDIR, am__include, and am__quote
28287   # from the Makefile without running `make'.
28288   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28289   test -z "$DEPDIR" && continue
28290   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28291   test -z "am__include" && continue
28292   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28293   # When using ansi2knr, U may be empty or an underscore; expand it
28294   U=`sed -n 's/^U = //p' < "$mf"`
28295   # Find all dependency output files, they are included files with
28296   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28297   # simplest approach to changing $(DEPDIR) to its actual value in the
28298   # expansion.
28299   for file in `sed -n "
28300     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28301        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28302     # Make sure the directory exists.
28303     test -f "$dirpart/$file" && continue
28304     fdir=`(dirname "$file") 2>/dev/null ||
28305 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28306          X"$file" : 'X\(//\)[^/]' \| \
28307          X"$file" : 'X\(//\)$' \| \
28308          X"$file" : 'X\(/\)' \| \
28309          .     : '\(.\)' 2>/dev/null ||
28310 echo X"$file" |
28311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28312           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28313           /^X\(\/\/\)$/{ s//\1/; q; }
28314           /^X\(\/\).*/{ s//\1/; q; }
28315           s/.*/./; q'`
28316     { if $as_mkdir_p; then
28317     mkdir -p $dirpart/$fdir
28318   else
28319     as_dir=$dirpart/$fdir
28320     as_dirs=
28321     while test ! -d "$as_dir"; do
28322       as_dirs="$as_dir $as_dirs"
28323       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28325          X"$as_dir" : 'X\(//\)[^/]' \| \
28326          X"$as_dir" : 'X\(//\)$' \| \
28327          X"$as_dir" : 'X\(/\)' \| \
28328          .     : '\(.\)' 2>/dev/null ||
28329 echo X"$as_dir" |
28330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28331           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28332           /^X\(\/\/\)$/{ s//\1/; q; }
28333           /^X\(\/\).*/{ s//\1/; q; }
28334           s/.*/./; q'`
28335     done
28336     test ! -n "$as_dirs" || mkdir $as_dirs
28337   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28338 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28339    { (exit 1); exit 1; }; }; }
28340
28341     # echo "creating $dirpart/$file"
28342     echo '# dummy' > "$dirpart/$file"
28343   done
28344 done
28345  ;;
28346   esac
28347 done
28348 _ACEOF
28349
28350 cat >>$CONFIG_STATUS <<\_ACEOF
28351
28352 { (exit 0); exit 0; }
28353 _ACEOF
28354 chmod +x $CONFIG_STATUS
28355 ac_clean_files=$ac_clean_files_save
28356
28357
28358 # configure is writing to config.log, and then calls config.status.
28359 # config.status does its own redirection, appending to config.log.
28360 # Unfortunately, on DOS this fails, as config.log is still kept open
28361 # by configure, so config.status won't be able to write to it; its
28362 # output is simply discarded.  So we exec the FD to /dev/null,
28363 # effectively closing config.log, so it can be properly (re)opened and
28364 # appended to by config.status.  When coming back to configure, we
28365 # need to make the FD available again.
28366 if test "$no_create" != yes; then
28367   ac_cs_success=:
28368   ac_config_status_args=
28369   test "$silent" = yes &&
28370     ac_config_status_args="$ac_config_status_args --quiet"
28371   exec 5>/dev/null
28372   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28373   exec 5>>config.log
28374   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28375   # would make configure fail if this is the last instruction.
28376   $ac_cs_success || { (exit 1); exit 1; }
28377 fi
28378
28379 #
28380 # CONFIG_SUBDIRS section.
28381 #
28382 if test "$no_recursion" != yes; then
28383
28384   # Remove --cache-file and --srcdir arguments so they do not pile up.
28385   ac_sub_configure_args=
28386   ac_prev=
28387   for ac_arg in $ac_configure_args; do
28388     if test -n "$ac_prev"; then
28389       ac_prev=
28390       continue
28391     fi
28392     case $ac_arg in
28393     -cache-file | --cache-file | --cache-fil | --cache-fi \
28394     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28395       ac_prev=cache_file ;;
28396     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28397     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28398     | --c=*)
28399       ;;
28400     --config-cache | -C)
28401       ;;
28402     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28403       ac_prev=srcdir ;;
28404     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28405       ;;
28406     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28407       ac_prev=prefix ;;
28408     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28409       ;;
28410     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
28411     esac
28412   done
28413
28414   # Always prepend --prefix to ensure using the same prefix
28415   # in subdir configurations.
28416   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
28417
28418   ac_popdir=`pwd`
28419   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28420
28421     # Do not complain, so a configure script can configure whichever
28422     # parts of a large source tree are present.
28423     test -d $srcdir/$ac_dir || continue
28424
28425     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
28426 echo "$as_me: configuring in $ac_dir" >&6;}
28427     { if $as_mkdir_p; then
28428     mkdir -p "$ac_dir"
28429   else
28430     as_dir="$ac_dir"
28431     as_dirs=
28432     while test ! -d "$as_dir"; do
28433       as_dirs="$as_dir $as_dirs"
28434       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28435 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28436          X"$as_dir" : 'X\(//\)[^/]' \| \
28437          X"$as_dir" : 'X\(//\)$' \| \
28438          X"$as_dir" : 'X\(/\)' \| \
28439          .     : '\(.\)' 2>/dev/null ||
28440 echo X"$as_dir" |
28441     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28442           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28443           /^X\(\/\/\)$/{ s//\1/; q; }
28444           /^X\(\/\).*/{ s//\1/; q; }
28445           s/.*/./; q'`
28446     done
28447     test ! -n "$as_dirs" || mkdir $as_dirs
28448   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28449 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28450    { (exit 1); exit 1; }; }; }
28451
28452     ac_builddir=.
28453
28454 if test "$ac_dir" != .; then
28455   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28456   # A "../" for each directory in $ac_dir_suffix.
28457   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28458 else
28459   ac_dir_suffix= ac_top_builddir=
28460 fi
28461
28462 case $srcdir in
28463   .)  # No --srcdir option.  We are building in place.
28464     ac_srcdir=.
28465     if test -z "$ac_top_builddir"; then
28466        ac_top_srcdir=.
28467     else
28468        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28469     fi ;;
28470   [\\/]* | ?:[\\/]* )  # Absolute path.
28471     ac_srcdir=$srcdir$ac_dir_suffix;
28472     ac_top_srcdir=$srcdir ;;
28473   *) # Relative path.
28474     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28475     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28476 esac
28477
28478 # Do not use `cd foo && pwd` to compute absolute paths, because
28479 # the directories may not exist.
28480 case `pwd` in
28481 .) ac_abs_builddir="$ac_dir";;
28482 *)
28483   case "$ac_dir" in
28484   .) ac_abs_builddir=`pwd`;;
28485   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28486   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28487   esac;;
28488 esac
28489 case $ac_abs_builddir in
28490 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28491 *)
28492   case ${ac_top_builddir}. in
28493   .) ac_abs_top_builddir=$ac_abs_builddir;;
28494   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28495   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28496   esac;;
28497 esac
28498 case $ac_abs_builddir in
28499 .) ac_abs_srcdir=$ac_srcdir;;
28500 *)
28501   case $ac_srcdir in
28502   .) ac_abs_srcdir=$ac_abs_builddir;;
28503   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28504   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28505   esac;;
28506 esac
28507 case $ac_abs_builddir in
28508 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28509 *)
28510   case $ac_top_srcdir in
28511   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28512   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28513   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28514   esac;;
28515 esac
28516
28517
28518     cd $ac_dir
28519
28520     # Check for guested configure; otherwise get Cygnus style configure.
28521     if test -f $ac_srcdir/configure.gnu; then
28522       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
28523     elif test -f $ac_srcdir/configure; then
28524       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
28525     elif test -f $ac_srcdir/configure.in; then
28526       ac_sub_configure=$ac_configure
28527     else
28528       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28529 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28530       ac_sub_configure=
28531     fi
28532
28533     # The recursion is here.
28534     if test -n "$ac_sub_configure"; then
28535       # Make the cache file name correct relative to the subdirectory.
28536       case $cache_file in
28537       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28538       *) # Relative path.
28539         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
28540       esac
28541
28542       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28543 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28544       # The eval makes quoting arguments work.
28545       eval $ac_sub_configure $ac_sub_configure_args \
28546            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
28547         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28548 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28549    { (exit 1); exit 1; }; }
28550     fi
28551
28552     cd $ac_popdir
28553   done
28554 fi
28555
28556
28557
28558 if test $bzip2_found -ne 1 ; then
28559   if test $zlib_found -ne 1 ; then
28560     { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
28561 echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
28562     { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
28563 echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
28564     { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and re-run configure." >&5
28565 echo "$as_me: WARNING: *** To correct, install the libraries and re-run configure." >&2;}
28566   fi
28567 fi
28568
28569 if test $llvmgccwarn = yes
28570 then
28571   { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
28572 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
28573   { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
28574 echo "$as_me: WARNING: ***** appear to be working." >&2;}
28575   { echo "$as_me:$LINENO: WARNING: ***** " >&5
28576 echo "$as_me: WARNING: ***** " >&2;}
28577   { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
28578 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
28579   { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
28580 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
28581   { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
28582 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
28583 fi