* allow doxygen documentation to be enabled/disabled (default off)
[oota-llvm.git] / configure
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 # $LLVM_COPYRIGHT
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 tagnames=${tagnames+${tagnames},}CXX
399
400 tagnames=${tagnames+${tagnames},}F77
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME='llvm'
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.4'
429 PACKAGE_STRING='llvm 1.4'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/Java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
444 #include <stdio.h>
445 #if HAVE_SYS_TYPES_H
446 # include <sys/types.h>
447 #endif
448 #if HAVE_SYS_STAT_H
449 # include <sys/stat.h>
450 #endif
451 #if STDC_HEADERS
452 # include <stdlib.h>
453 # include <stddef.h>
454 #else
455 # if HAVE_STDLIB_H
456 #  include <stdlib.h>
457 # endif
458 #endif
459 #if HAVE_STRING_H
460 # if !STDC_HEADERS && HAVE_MEMORY_H
461 #  include <memory.h>
462 # endif
463 # include <string.h>
464 #endif
465 #if HAVE_STRINGS_H
466 # include <strings.h>
467 #endif
468 #if HAVE_INTTYPES_H
469 # include <inttypes.h>
470 #else
471 # if HAVE_STDINT_H
472 #  include <stdint.h>
473 # endif
474 #endif
475 #if HAVE_UNISTD_H
476 # include <unistd.h>
477 #endif"
478
479 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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ifGNUmake DATE FIND GREP MKDIR MV PAX RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN PYTHON QMTEST RUNTEST ZIP ETAGSFLAGS ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480 ac_subst_files=''
481
482 # Initialize some variables set by options.
483 ac_init_help=
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
487 cache_file=/dev/null
488 exec_prefix=NONE
489 no_create=
490 no_recursion=
491 prefix=NONE
492 program_prefix=NONE
493 program_suffix=NONE
494 program_transform_name=s,x,x,
495 silent=
496 site=
497 srcdir=
498 verbose=
499 x_includes=NONE
500 x_libraries=NONE
501
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
519
520 ac_prev=
521 for ac_option
522 do
523   # If the previous option needs an argument, assign it.
524   if test -n "$ac_prev"; then
525     eval "$ac_prev=\$ac_option"
526     ac_prev=
527     continue
528   fi
529
530   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532   # Accept the important Cygnus configure options, so we can diagnose typos.
533
534   case $ac_option in
535
536   -bindir | --bindir | --bindi | --bind | --bin | --bi)
537     ac_prev=bindir ;;
538   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539     bindir=$ac_optarg ;;
540
541   -build | --build | --buil | --bui | --bu)
542     ac_prev=build_alias ;;
543   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544     build_alias=$ac_optarg ;;
545
546   -cache-file | --cache-file | --cache-fil | --cache-fi \
547   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548     ac_prev=cache_file ;;
549   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551     cache_file=$ac_optarg ;;
552
553   --config-cache | -C)
554     cache_file=config.cache ;;
555
556   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557     ac_prev=datadir ;;
558   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559   | --da=*)
560     datadir=$ac_optarg ;;
561
562   -disable-* | --disable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     eval "enable_$ac_feature=no" ;;
570
571   -enable-* | --enable-*)
572     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576    { (exit 1); exit 1; }; }
577     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "enable_$ac_feature='$ac_optarg'" ;;
583
584   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586   | --exec | --exe | --ex)
587     ac_prev=exec_prefix ;;
588   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590   | --exec=* | --exe=* | --ex=*)
591     exec_prefix=$ac_optarg ;;
592
593   -gas | --gas | --ga | --g)
594     # Obsolete; use --with-gas.
595     with_gas=yes ;;
596
597   -help | --help | --hel | --he | -h)
598     ac_init_help=long ;;
599   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600     ac_init_help=recursive ;;
601   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602     ac_init_help=short ;;
603
604   -host | --host | --hos | --ho)
605     ac_prev=host_alias ;;
606   -host=* | --host=* | --hos=* | --ho=*)
607     host_alias=$ac_optarg ;;
608
609   -includedir | --includedir | --includedi | --included | --include \
610   | --includ | --inclu | --incl | --inc)
611     ac_prev=includedir ;;
612   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613   | --includ=* | --inclu=* | --incl=* | --inc=*)
614     includedir=$ac_optarg ;;
615
616   -infodir | --infodir | --infodi | --infod | --info | --inf)
617     ac_prev=infodir ;;
618   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619     infodir=$ac_optarg ;;
620
621   -libdir | --libdir | --libdi | --libd)
622     ac_prev=libdir ;;
623   -libdir=* | --libdir=* | --libdi=* | --libd=*)
624     libdir=$ac_optarg ;;
625
626   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627   | --libexe | --libex | --libe)
628     ac_prev=libexecdir ;;
629   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630   | --libexe=* | --libex=* | --libe=*)
631     libexecdir=$ac_optarg ;;
632
633   -localstatedir | --localstatedir | --localstatedi | --localstated \
634   | --localstate | --localstat | --localsta | --localst \
635   | --locals | --local | --loca | --loc | --lo)
636     ac_prev=localstatedir ;;
637   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640     localstatedir=$ac_optarg ;;
641
642   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643     ac_prev=mandir ;;
644   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645     mandir=$ac_optarg ;;
646
647   -nfp | --nfp | --nf)
648     # Obsolete; use --without-fp.
649     with_fp=no ;;
650
651   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652   | --no-cr | --no-c | -n)
653     no_create=yes ;;
654
655   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657     no_recursion=yes ;;
658
659   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661   | --oldin | --oldi | --old | --ol | --o)
662     ac_prev=oldincludedir ;;
663   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666     oldincludedir=$ac_optarg ;;
667
668   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669     ac_prev=prefix ;;
670   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671     prefix=$ac_optarg ;;
672
673   -program-prefix | --program-prefix | --program-prefi | --program-pref \
674   | --program-pre | --program-pr | --program-p)
675     ac_prev=program_prefix ;;
676   -program-prefix=* | --program-prefix=* | --program-prefi=* \
677   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678     program_prefix=$ac_optarg ;;
679
680   -program-suffix | --program-suffix | --program-suffi | --program-suff \
681   | --program-suf | --program-su | --program-s)
682     ac_prev=program_suffix ;;
683   -program-suffix=* | --program-suffix=* | --program-suffi=* \
684   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685     program_suffix=$ac_optarg ;;
686
687   -program-transform-name | --program-transform-name \
688   | --program-transform-nam | --program-transform-na \
689   | --program-transform-n | --program-transform- \
690   | --program-transform | --program-transfor \
691   | --program-transfo | --program-transf \
692   | --program-trans | --program-tran \
693   | --progr-tra | --program-tr | --program-t)
694     ac_prev=program_transform_name ;;
695   -program-transform-name=* | --program-transform-name=* \
696   | --program-transform-nam=* | --program-transform-na=* \
697   | --program-transform-n=* | --program-transform-=* \
698   | --program-transform=* | --program-transfor=* \
699   | --program-transfo=* | --program-transf=* \
700   | --program-trans=* | --program-tran=* \
701   | --progr-tra=* | --program-tr=* | --program-t=*)
702     program_transform_name=$ac_optarg ;;
703
704   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705   | -silent | --silent | --silen | --sile | --sil)
706     silent=yes ;;
707
708   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709     ac_prev=sbindir ;;
710   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711   | --sbi=* | --sb=*)
712     sbindir=$ac_optarg ;;
713
714   -sharedstatedir | --sharedstatedir | --sharedstatedi \
715   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716   | --sharedst | --shareds | --shared | --share | --shar \
717   | --sha | --sh)
718     ac_prev=sharedstatedir ;;
719   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722   | --sha=* | --sh=*)
723     sharedstatedir=$ac_optarg ;;
724
725   -site | --site | --sit)
726     ac_prev=site ;;
727   -site=* | --site=* | --sit=*)
728     site=$ac_optarg ;;
729
730   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731     ac_prev=srcdir ;;
732   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733     srcdir=$ac_optarg ;;
734
735   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736   | --syscon | --sysco | --sysc | --sys | --sy)
737     ac_prev=sysconfdir ;;
738   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740     sysconfdir=$ac_optarg ;;
741
742   -target | --target | --targe | --targ | --tar | --ta | --t)
743     ac_prev=target_alias ;;
744   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745     target_alias=$ac_optarg ;;
746
747   -v | -verbose | --verbose | --verbos | --verbo | --verb)
748     verbose=yes ;;
749
750   -version | --version | --versio | --versi | --vers | -V)
751     ac_init_version=: ;;
752
753   -with-* | --with-*)
754     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package| sed 's/-/_/g'`
760     case $ac_option in
761       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762       *) ac_optarg=yes ;;
763     esac
764     eval "with_$ac_package='$ac_optarg'" ;;
765
766   -without-* | --without-*)
767     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768     # Reject names that are not valid shell variable names.
769     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770       { echo "$as_me: error: invalid package name: $ac_package" >&2
771    { (exit 1); exit 1; }; }
772     ac_package=`echo $ac_package | sed 's/-/_/g'`
773     eval "with_$ac_package=no" ;;
774
775   --x)
776     # Obsolete; use --with-x.
777     with_x=yes ;;
778
779   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780   | --x-incl | --x-inc | --x-in | --x-i)
781     ac_prev=x_includes ;;
782   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784     x_includes=$ac_optarg ;;
785
786   -x-libraries | --x-libraries | --x-librarie | --x-librari \
787   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788     ac_prev=x_libraries ;;
789   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791     x_libraries=$ac_optarg ;;
792
793   -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795    { (exit 1); exit 1; }; }
796     ;;
797
798   *=*)
799     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800     # Reject names that are not valid shell variable names.
801     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803    { (exit 1); exit 1; }; }
804     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805     eval "$ac_envvar='$ac_optarg'"
806     export $ac_envvar ;;
807
808   *)
809     # FIXME: should be removed in autoconf 3.0.
810     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814     ;;
815
816   esac
817 done
818
819 if test -n "$ac_prev"; then
820   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821   { echo "$as_me: error: missing argument to $ac_option" >&2
822    { (exit 1); exit 1; }; }
823 fi
824
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838               localstatedir libdir includedir oldincludedir infodir mandir
839 do
840   eval ac_val=$`echo $ac_var`
841   case $ac_val in
842     [\\/$]* | ?:[\\/]* ) ;;
843     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844    { (exit 1); exit 1; }; };;
845   esac
846 done
847
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
851 build=$build_alias
852 host=$host_alias
853 target=$target_alias
854
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857   if test "x$build_alias" = x; then
858     cross_compiling=maybe
859     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860     If a cross compiler is detected then cross compile mode will be used." >&2
861   elif test "x$build_alias" != "x$host_alias"; then
862     cross_compiling=yes
863   fi
864 fi
865
866 ac_tool_prefix=
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869 test "$silent" = yes && exec 6>/dev/null
870
871
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874   ac_srcdir_defaulted=yes
875   # Try the directory containing this script, then its parent.
876   ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878          X"$0" : 'X\(//\)[^/]' \| \
879          X"$0" : 'X\(//\)$' \| \
880          X"$0" : 'X\(/\)' \| \
881          .     : '\(.\)' 2>/dev/null ||
882 echo X"$0" |
883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885           /^X\(\/\/\)$/{ s//\1/; q; }
886           /^X\(\/\).*/{ s//\1/; q; }
887           s/.*/./; q'`
888   srcdir=$ac_confdir
889   if test ! -r $srcdir/$ac_unique_file; then
890     srcdir=..
891   fi
892 else
893   ac_srcdir_defaulted=no
894 fi
895 if test ! -r $srcdir/$ac_unique_file; then
896   if test "$ac_srcdir_defaulted" = yes; then
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898    { (exit 1); exit 1; }; }
899   else
900     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901    { (exit 1); exit 1; }; }
902   fi
903 fi
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906    { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
921 ac_env_CC_value=$CC
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
960
961 #
962 # Report the --help message.
963 #
964 if test "$ac_init_help" = "long"; then
965   # Omit some internal or obsolete options to make the list less imposing.
966   # This message is too long to be a string in the A/UX 3.1 sh.
967   cat <<_ACEOF
968 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
969
970 Usage: $0 [OPTION]... [VAR=VALUE]...
971
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975 Defaults for the options are specified in brackets.
976
977 Configuration:
978   -h, --help              display this help and exit
979       --help=short        display options specific to this package
980       --help=recursive    display the short help of all the included packages
981   -V, --version           display version information and exit
982   -q, --quiet, --silent   do not print \`checking...' messages
983       --cache-file=FILE   cache test results in FILE [disabled]
984   -C, --config-cache      alias for \`--cache-file=config.cache'
985   -n, --no-create         do not create output files
986       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988 _ACEOF
989
990   cat <<_ACEOF
991 Installation directories:
992   --prefix=PREFIX         install architecture-independent files in PREFIX
993                           [$ac_default_prefix]
994   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995                           [PREFIX]
996
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1001
1002 For better control, use the options below.
1003
1004 Fine tuning of the installation directories:
1005   --bindir=DIR           user executables [EPREFIX/bin]
1006   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007   --libexecdir=DIR       program executables [EPREFIX/libexec]
1008   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012   --libdir=DIR           object code libraries [EPREFIX/lib]
1013   --includedir=DIR       C header files [PREFIX/include]
1014   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015   --infodir=DIR          info documentation [PREFIX/info]
1016   --mandir=DIR           man documentation [PREFIX/man]
1017 _ACEOF
1018
1019   cat <<\_ACEOF
1020
1021 System types:
1022   --build=BUILD     configure for building on BUILD [guessed]
1023   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024   --target=TARGET   configure for building compilers for TARGET [HOST]
1025 _ACEOF
1026 fi
1027
1028 if test -n "$ac_init_help"; then
1029   case $ac_init_help in
1030      short | recursive ) echo "Configuration of llvm 1.4:";;
1031    esac
1032   cat <<\_ACEOF
1033
1034 Optional Features:
1035   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037   --enable-optimized
1038   --enable-jit            Enable Just In Time Compiling (default is YES)
1039   --enable-doxygen        Build doxygen documentation (default is NO)
1040   --enable-shared[=PKGS]
1041                           build shared libraries [default=yes]
1042   --enable-static[=PKGS]
1043                           build static libraries [default=yes]
1044   --enable-fast-install[=PKGS]
1045                           optimize for fast installation [default=yes]
1046   --disable-libtool-lock  avoid locking (might break parallel builds)
1047
1048 Optional Packages:
1049   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1050   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1051   --with-llvmgccdir       Location of LLVM GCC front-end
1052   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1053   --with-pic              try to use only PIC/non-PIC objects [default=use
1054                           both]
1055   --with-tags[=TAGS]
1056                           include additional configurations [automatic]
1057
1058 Some influential environment variables:
1059   CC          C compiler command
1060   CFLAGS      C compiler flags
1061   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1062               nonstandard directory <lib dir>
1063   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064               headers in a nonstandard directory <include dir>
1065   CPP         C preprocessor
1066   CXX         C++ compiler command
1067   CXXFLAGS    C++ compiler flags
1068   CXXCPP      C++ preprocessor
1069   F77         Fortran 77 compiler command
1070   FFLAGS      Fortran 77 compiler flags
1071
1072 Use these variables to override the choices made by `configure' or to help
1073 it to find libraries and programs with nonstandard names/locations.
1074
1075 Report bugs to <llvmbugs@cs.uiuc.edu>.
1076 _ACEOF
1077 fi
1078
1079 if test "$ac_init_help" = "recursive"; then
1080   # If there are subdirs, report their specific --help.
1081   ac_popdir=`pwd`
1082   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083     test -d $ac_dir || continue
1084     ac_builddir=.
1085
1086 if test "$ac_dir" != .; then
1087   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088   # A "../" for each directory in $ac_dir_suffix.
1089   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090 else
1091   ac_dir_suffix= ac_top_builddir=
1092 fi
1093
1094 case $srcdir in
1095   .)  # No --srcdir option.  We are building in place.
1096     ac_srcdir=.
1097     if test -z "$ac_top_builddir"; then
1098        ac_top_srcdir=.
1099     else
1100        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101     fi ;;
1102   [\\/]* | ?:[\\/]* )  # Absolute path.
1103     ac_srcdir=$srcdir$ac_dir_suffix;
1104     ac_top_srcdir=$srcdir ;;
1105   *) # Relative path.
1106     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108 esac
1109
1110 # Do not use `cd foo && pwd` to compute absolute paths, because
1111 # the directories may not exist.
1112 case `pwd` in
1113 .) ac_abs_builddir="$ac_dir";;
1114 *)
1115   case "$ac_dir" in
1116   .) ac_abs_builddir=`pwd`;;
1117   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1118   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1119   esac;;
1120 esac
1121 case $ac_abs_builddir in
1122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *)
1124   case ${ac_top_builddir}. in
1125   .) ac_abs_top_builddir=$ac_abs_builddir;;
1126   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1127   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128   esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_srcdir=$ac_srcdir;;
1132 *)
1133   case $ac_srcdir in
1134   .) ac_abs_srcdir=$ac_abs_builddir;;
1135   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1136   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137   esac;;
1138 esac
1139 case $ac_abs_builddir in
1140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *)
1142   case $ac_top_srcdir in
1143   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1144   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1145   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1146   esac;;
1147 esac
1148
1149     cd $ac_dir
1150     # Check for guested configure; otherwise get Cygnus style configure.
1151     if test -f $ac_srcdir/configure.gnu; then
1152       echo
1153       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1154     elif test -f $ac_srcdir/configure; then
1155       echo
1156       $SHELL $ac_srcdir/configure  --help=recursive
1157     elif test -f $ac_srcdir/configure.ac ||
1158            test -f $ac_srcdir/configure.in; then
1159       echo
1160       $ac_configure --help
1161     else
1162       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163     fi
1164     cd $ac_popdir
1165   done
1166 fi
1167
1168 test -n "$ac_init_help" && exit 0
1169 if $ac_init_version; then
1170   cat <<\_ACEOF
1171 llvm configure 1.4
1172 generated by GNU Autoconf 2.59
1173
1174 Copyright (C) 2003 Free Software Foundation, Inc.
1175 This configure script is free software; the Free Software Foundation
1176 gives unlimited permission to copy, distribute and modify it.
1177
1178 $LLVM_COPYRIGHT
1179 _ACEOF
1180   exit 0
1181 fi
1182 exec 5>config.log
1183 cat >&5 <<_ACEOF
1184 This file contains any messages produced by compilers while
1185 running configure, to aid debugging if configure makes a mistake.
1186
1187 It was created by llvm $as_me 1.4, which was
1188 generated by GNU Autoconf 2.59.  Invocation command line was
1189
1190   $ $0 $@
1191
1192 _ACEOF
1193 {
1194 cat <<_ASUNAME
1195 ## --------- ##
1196 ## Platform. ##
1197 ## --------- ##
1198
1199 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1200 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1201 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1202 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1203 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1204
1205 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1206 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1207
1208 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1209 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1210 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1211 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1212 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1213 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1214 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1215
1216 _ASUNAME
1217
1218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1219 for as_dir in $PATH
1220 do
1221   IFS=$as_save_IFS
1222   test -z "$as_dir" && as_dir=.
1223   echo "PATH: $as_dir"
1224 done
1225
1226 } >&5
1227
1228 cat >&5 <<_ACEOF
1229
1230
1231 ## ----------- ##
1232 ## Core tests. ##
1233 ## ----------- ##
1234
1235 _ACEOF
1236
1237
1238 # Keep a trace of the command line.
1239 # Strip out --no-create and --no-recursion so they do not pile up.
1240 # Strip out --silent because we don't want to record it for future runs.
1241 # Also quote any args containing shell meta-characters.
1242 # Make two passes to allow for proper duplicate-argument suppression.
1243 ac_configure_args=
1244 ac_configure_args0=
1245 ac_configure_args1=
1246 ac_sep=
1247 ac_must_keep_next=false
1248 for ac_pass in 1 2
1249 do
1250   for ac_arg
1251   do
1252     case $ac_arg in
1253     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1254     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255     | -silent | --silent | --silen | --sile | --sil)
1256       continue ;;
1257     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1259     esac
1260     case $ac_pass in
1261     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1262     2)
1263       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1264       if test $ac_must_keep_next = true; then
1265         ac_must_keep_next=false # Got value, back to normal.
1266       else
1267         case $ac_arg in
1268           *=* | --config-cache | -C | -disable-* | --disable-* \
1269           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1270           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1271           | -with-* | --with-* | -without-* | --without-* | --x)
1272             case "$ac_configure_args0 " in
1273               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1274             esac
1275             ;;
1276           -* ) ac_must_keep_next=true ;;
1277         esac
1278       fi
1279       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1280       # Get rid of the leading space.
1281       ac_sep=" "
1282       ;;
1283     esac
1284   done
1285 done
1286 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1287 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1288
1289 # When interrupted or exit'd, cleanup temporary files, and complete
1290 # config.log.  We remove comments because anyway the quotes in there
1291 # would cause problems or look ugly.
1292 # WARNING: Be sure not to use single quotes in there, as some shells,
1293 # such as our DU 5.0 friend, will then `close' the trap.
1294 trap 'exit_status=$?
1295   # Save into config.log some information that might help in debugging.
1296   {
1297     echo
1298
1299     cat <<\_ASBOX
1300 ## ---------------- ##
1301 ## Cache variables. ##
1302 ## ---------------- ##
1303 _ASBOX
1304     echo
1305     # The following way of writing the cache mishandles newlines in values,
1306 {
1307   (set) 2>&1 |
1308     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1309     *ac_space=\ *)
1310       sed -n \
1311         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1312           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1313       ;;
1314     *)
1315       sed -n \
1316         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317       ;;
1318     esac;
1319 }
1320     echo
1321
1322     cat <<\_ASBOX
1323 ## ----------------- ##
1324 ## Output variables. ##
1325 ## ----------------- ##
1326 _ASBOX
1327     echo
1328     for ac_var in $ac_subst_vars
1329     do
1330       eval ac_val=$`echo $ac_var`
1331       echo "$ac_var='"'"'$ac_val'"'"'"
1332     done | sort
1333     echo
1334
1335     if test -n "$ac_subst_files"; then
1336       cat <<\_ASBOX
1337 ## ------------- ##
1338 ## Output files. ##
1339 ## ------------- ##
1340 _ASBOX
1341       echo
1342       for ac_var in $ac_subst_files
1343       do
1344         eval ac_val=$`echo $ac_var`
1345         echo "$ac_var='"'"'$ac_val'"'"'"
1346       done | sort
1347       echo
1348     fi
1349
1350     if test -s confdefs.h; then
1351       cat <<\_ASBOX
1352 ## ----------- ##
1353 ## confdefs.h. ##
1354 ## ----------- ##
1355 _ASBOX
1356       echo
1357       sed "/^$/d" confdefs.h | sort
1358       echo
1359     fi
1360     test "$ac_signal" != 0 &&
1361       echo "$as_me: caught signal $ac_signal"
1362     echo "$as_me: exit $exit_status"
1363   } >&5
1364   rm -f core *.core &&
1365   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1366     exit $exit_status
1367      ' 0
1368 for ac_signal in 1 2 13 15; do
1369   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1370 done
1371 ac_signal=0
1372
1373 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1374 rm -rf conftest* confdefs.h
1375 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1376 echo >confdefs.h
1377
1378 # Predefined preprocessor variables.
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_NAME "$PACKAGE_NAME"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_STRING "$PACKAGE_STRING"
1397 _ACEOF
1398
1399
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1402 _ACEOF
1403
1404
1405 # Let the site file select an alternate cache file if it wants to.
1406 # Prefer explicitly selected file to automatically selected ones.
1407 if test -z "$CONFIG_SITE"; then
1408   if test "x$prefix" != xNONE; then
1409     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1410   else
1411     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1412   fi
1413 fi
1414 for ac_site_file in $CONFIG_SITE; do
1415   if test -r "$ac_site_file"; then
1416     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1417 echo "$as_me: loading site script $ac_site_file" >&6;}
1418     sed 's/^/| /' "$ac_site_file" >&5
1419     . "$ac_site_file"
1420   fi
1421 done
1422
1423 if test -r "$cache_file"; then
1424   # Some versions of bash will fail to source /dev/null (special
1425   # files actually), so we avoid doing that.
1426   if test -f "$cache_file"; then
1427     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1428 echo "$as_me: loading cache $cache_file" >&6;}
1429     case $cache_file in
1430       [\\/]* | ?:[\\/]* ) . $cache_file;;
1431       *)                      . ./$cache_file;;
1432     esac
1433   fi
1434 else
1435   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1436 echo "$as_me: creating cache $cache_file" >&6;}
1437   >$cache_file
1438 fi
1439
1440 # Check that the precious variables saved in the cache have kept the same
1441 # value.
1442 ac_cache_corrupted=false
1443 for ac_var in `(set) 2>&1 |
1444                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1445   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1446   eval ac_new_set=\$ac_env_${ac_var}_set
1447   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1448   eval ac_new_val="\$ac_env_${ac_var}_value"
1449   case $ac_old_set,$ac_new_set in
1450     set,)
1451       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1453       ac_cache_corrupted=: ;;
1454     ,set)
1455       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1457       ac_cache_corrupted=: ;;
1458     ,);;
1459     *)
1460       if test "x$ac_old_val" != "x$ac_new_val"; then
1461         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1462 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1463         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1464 echo "$as_me:   former value:  $ac_old_val" >&2;}
1465         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1466 echo "$as_me:   current value: $ac_new_val" >&2;}
1467         ac_cache_corrupted=:
1468       fi;;
1469   esac
1470   # Pass precious variables to config.status.
1471   if test "$ac_new_set" = set; then
1472     case $ac_new_val in
1473     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1474       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1475     *) ac_arg=$ac_var=$ac_new_val ;;
1476     esac
1477     case " $ac_configure_args " in
1478       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1479       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1480     esac
1481   fi
1482 done
1483 if $ac_cache_corrupted; then
1484   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1485 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1486   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1487 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1488    { (exit 1); exit 1; }; }
1489 fi
1490
1491 ac_ext=c
1492 ac_cpp='$CPP $CPPFLAGS'
1493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1496
1497
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 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1525
1526
1527
1528
1529
1530
1531
1532 ac_aux_dir=
1533 for ac_dir in autoconf $srcdir/autoconf; do
1534   if test -f $ac_dir/install-sh; then
1535     ac_aux_dir=$ac_dir
1536     ac_install_sh="$ac_aux_dir/install-sh -c"
1537     break
1538   elif test -f $ac_dir/install.sh; then
1539     ac_aux_dir=$ac_dir
1540     ac_install_sh="$ac_aux_dir/install.sh -c"
1541     break
1542   elif test -f $ac_dir/shtool; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/shtool install -c"
1545     break
1546   fi
1547 done
1548 if test -z "$ac_aux_dir"; then
1549   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1550 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1551    { (exit 1); exit 1; }; }
1552 fi
1553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556
1557
1558 if test ${srcdir} != "." ; then
1559   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1560     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1561 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1562    { (exit 1); exit 1; }; }
1563   fi
1564 fi
1565
1566 for i in `ls ${srcdir}/projects`
1567 do
1568   if test -d ${srcdir}/projects/${i} ; then
1569     case ${i} in
1570       "CVS") ;;
1571       "sample")
1572
1573 subdirs="$subdirs projects/sample"
1574     ;;
1575       "Stacker")
1576
1577 subdirs="$subdirs projects/Stacker"
1578    ;;
1579       "llvm-test")
1580
1581 subdirs="$subdirs projects/llvm-test"
1582  ;;
1583       "llvm-reopt")
1584
1585 subdirs="$subdirs projects/llvm-reopt"
1586 ;;
1587       "llvm-gcc")
1588
1589 subdirs="$subdirs projects/llvm-gcc"
1590   ;;
1591       "Java")
1592
1593 subdirs="$subdirs projects/Java"
1594       ;;
1595       "llvm-tv")
1596
1597 subdirs="$subdirs projects/llvm-tv"
1598    ;;
1599       "llvm-fefw")
1600
1601 subdirs="$subdirs projects/llvm-fefw"
1602  ;;
1603       "poolalloc")
1604
1605 subdirs="$subdirs projects/poolalloc"
1606  ;;
1607       *)
1608         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1609 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1610         ;;
1611     esac
1612   fi
1613 done
1614
1615
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620    { (exit 1); exit 1; }; }
1621
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629   ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633    { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637    { (exit 1); exit 1; }; }
1638
1639 fi
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1642 build=$ac_cv_build
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655   ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659    { (exit 1); exit 1; }; }
1660
1661 fi
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1664 host=$ac_cv_host
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673   echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675   ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677   ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681    { (exit 1); exit 1; }; }
1682
1683 fi
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695   test "$program_prefix$program_suffix$program_transform_name" = \
1696     NONENONEs,x,x, &&
1697   program_prefix=${target_alias}-
1698
1699 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1700 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1701 if test "${llvm_cv_platform_type+set}" = set; then
1702   echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704   case $build in
1705   *-*-aix*) llvm_cv_platform_type="AIX" ;;
1706   *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1707   *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1708   *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1709   *-*-interix*) llvm_cv_platform_type="Interix" ;;
1710   *-*-linux*) llvm_cv_platform_type="Linux" ;;
1711   *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1712   *-*-win32*) llvm_cv_platform_type="Win32" ;;
1713   *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1714   *) llvm_cv_platform_type="Unknown" ;;
1715 esac
1716 fi
1717 echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1718 echo "${ECHO_T}$llvm_cv_platform_type" >&6
1719
1720 if test "$llvm_cv_platform_type" = "Unknown" ; then
1721   { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1722 echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
1723    { (exit 1); exit 1; }; }
1724 fi
1725
1726 OS=$llvm_cv_platform_type
1727
1728
1729           ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
1730
1731
1732 case $target in
1733   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1734
1735   ;;
1736 esac
1737
1738 echo "$as_me:$LINENO: checking target architecture" >&5
1739 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1740 if test "${llvm_cv_target_arch+set}" = set; then
1741   echo $ECHO_N "(cached) $ECHO_C" >&6
1742 else
1743   case $target in
1744   i*86-*)      llvm_cv_target_arch="x86" ;;
1745   sparc*-*)    llvm_cv_target_arch="Sparc" ;;
1746   powerpc*-*)  llvm_cv_target_arch="PowerPC" ;;
1747   *)           llvm_cv_target_arch="Unknown" ;;
1748 esac
1749 fi
1750 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1751 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1752
1753 if test "$llvm_cv_target_arch" = "Unknown" ; then
1754   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1755 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1756 fi
1757
1758 ARCH=$llvm_cv_target_arch
1759
1760
1761 ac_ext=c
1762 ac_cpp='$CPP $CPPFLAGS'
1763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1766 if test -n "$ac_tool_prefix"; then
1767   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1768 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1769 echo "$as_me:$LINENO: checking for $ac_word" >&5
1770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771 if test "${ac_cv_prog_CC+set}" = set; then
1772   echo $ECHO_N "(cached) $ECHO_C" >&6
1773 else
1774   if test -n "$CC"; then
1775   ac_cv_prog_CC="$CC" # Let the user override the test.
1776 else
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1779 do
1780   IFS=$as_save_IFS
1781   test -z "$as_dir" && as_dir=.
1782   for ac_exec_ext in '' $ac_executable_extensions; do
1783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786     break 2
1787   fi
1788 done
1789 done
1790
1791 fi
1792 fi
1793 CC=$ac_cv_prog_CC
1794 if test -n "$CC"; then
1795   echo "$as_me:$LINENO: result: $CC" >&5
1796 echo "${ECHO_T}$CC" >&6
1797 else
1798   echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1800 fi
1801
1802 fi
1803 if test -z "$ac_cv_prog_CC"; then
1804   ac_ct_CC=$CC
1805   # Extract the first word of "gcc", so it can be a program name with args.
1806 set dummy gcc; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1810   echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812   if test -n "$ac_ct_CC"; then
1813   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1814 else
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 for as_dir in $PATH
1817 do
1818   IFS=$as_save_IFS
1819   test -z "$as_dir" && as_dir=.
1820   for ac_exec_ext in '' $ac_executable_extensions; do
1821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822     ac_cv_prog_ac_ct_CC="gcc"
1823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824     break 2
1825   fi
1826 done
1827 done
1828
1829 fi
1830 fi
1831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1832 if test -n "$ac_ct_CC"; then
1833   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1834 echo "${ECHO_T}$ac_ct_CC" >&6
1835 else
1836   echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6
1838 fi
1839
1840   CC=$ac_ct_CC
1841 else
1842   CC="$ac_cv_prog_CC"
1843 fi
1844
1845 if test -z "$CC"; then
1846   if test -n "$ac_tool_prefix"; then
1847   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1848 set dummy ${ac_tool_prefix}cc; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_CC+set}" = set; then
1852   echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854   if test -n "$CC"; then
1855   ac_cv_prog_CC="$CC" # Let the user override the test.
1856 else
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1859 do
1860   IFS=$as_save_IFS
1861   test -z "$as_dir" && as_dir=.
1862   for ac_exec_ext in '' $ac_executable_extensions; do
1863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864     ac_cv_prog_CC="${ac_tool_prefix}cc"
1865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866     break 2
1867   fi
1868 done
1869 done
1870
1871 fi
1872 fi
1873 CC=$ac_cv_prog_CC
1874 if test -n "$CC"; then
1875   echo "$as_me:$LINENO: result: $CC" >&5
1876 echo "${ECHO_T}$CC" >&6
1877 else
1878   echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1880 fi
1881
1882 fi
1883 if test -z "$ac_cv_prog_CC"; then
1884   ac_ct_CC=$CC
1885   # Extract the first word of "cc", so it can be a program name with args.
1886 set dummy cc; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   if test -n "$ac_ct_CC"; then
1893   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1894 else
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898   IFS=$as_save_IFS
1899   test -z "$as_dir" && as_dir=.
1900   for ac_exec_ext in '' $ac_executable_extensions; do
1901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902     ac_cv_prog_ac_ct_CC="cc"
1903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904     break 2
1905   fi
1906 done
1907 done
1908
1909 fi
1910 fi
1911 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1912 if test -n "$ac_ct_CC"; then
1913   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914 echo "${ECHO_T}$ac_ct_CC" >&6
1915 else
1916   echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920   CC=$ac_ct_CC
1921 else
1922   CC="$ac_cv_prog_CC"
1923 fi
1924
1925 fi
1926 if test -z "$CC"; then
1927   # Extract the first word of "cc", so it can be a program name with args.
1928 set dummy cc; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_CC+set}" = set; then
1932   echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934   if test -n "$CC"; then
1935   ac_cv_prog_CC="$CC" # Let the user override the test.
1936 else
1937   ac_prog_rejected=no
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1940 do
1941   IFS=$as_save_IFS
1942   test -z "$as_dir" && as_dir=.
1943   for ac_exec_ext in '' $ac_executable_extensions; do
1944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1946        ac_prog_rejected=yes
1947        continue
1948      fi
1949     ac_cv_prog_CC="cc"
1950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951     break 2
1952   fi
1953 done
1954 done
1955
1956 if test $ac_prog_rejected = yes; then
1957   # We found a bogon in the path, so make sure we never use it.
1958   set dummy $ac_cv_prog_CC
1959   shift
1960   if test $# != 0; then
1961     # We chose a different compiler from the bogus one.
1962     # However, it has the same basename, so the bogon will be chosen
1963     # first if we set CC to just the basename; use the full file name.
1964     shift
1965     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1966   fi
1967 fi
1968 fi
1969 fi
1970 CC=$ac_cv_prog_CC
1971 if test -n "$CC"; then
1972   echo "$as_me:$LINENO: result: $CC" >&5
1973 echo "${ECHO_T}$CC" >&6
1974 else
1975   echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1977 fi
1978
1979 fi
1980 if test -z "$CC"; then
1981   if test -n "$ac_tool_prefix"; then
1982   for ac_prog in cl
1983   do
1984     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989   echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991   if test -n "$CC"; then
1992   ac_cv_prog_CC="$CC" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
1997   IFS=$as_save_IFS
1998   test -z "$as_dir" && as_dir=.
1999   for ac_exec_ext in '' $ac_executable_extensions; do
2000   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003     break 2
2004   fi
2005 done
2006 done
2007
2008 fi
2009 fi
2010 CC=$ac_cv_prog_CC
2011 if test -n "$CC"; then
2012   echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6
2014 else
2015   echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2017 fi
2018
2019     test -n "$CC" && break
2020   done
2021 fi
2022 if test -z "$CC"; then
2023   ac_ct_CC=$CC
2024   for ac_prog in cl
2025 do
2026   # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031   echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033   if test -n "$ac_ct_CC"; then
2034   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2038 do
2039   IFS=$as_save_IFS
2040   test -z "$as_dir" && as_dir=.
2041   for ac_exec_ext in '' $ac_executable_extensions; do
2042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043     ac_cv_prog_ac_ct_CC="$ac_prog"
2044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045     break 2
2046   fi
2047 done
2048 done
2049
2050 fi
2051 fi
2052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053 if test -n "$ac_ct_CC"; then
2054   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055 echo "${ECHO_T}$ac_ct_CC" >&6
2056 else
2057   echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2059 fi
2060
2061   test -n "$ac_ct_CC" && break
2062 done
2063
2064   CC=$ac_ct_CC
2065 fi
2066
2067 fi
2068
2069
2070 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2071 See \`config.log' for more details." >&5
2072 echo "$as_me: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&2;}
2074    { (exit 1); exit 1; }; }
2075
2076 # Provide some information about the compiler.
2077 echo "$as_me:$LINENO:" \
2078      "checking for C compiler version" >&5
2079 ac_compiler=`set X $ac_compile; echo $2`
2080 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2081   (eval $ac_compiler --version </dev/null >&5) 2>&5
2082   ac_status=$?
2083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084   (exit $ac_status); }
2085 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2086   (eval $ac_compiler -v </dev/null >&5) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2091   (eval $ac_compiler -V </dev/null >&5) 2>&5
2092   ac_status=$?
2093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094   (exit $ac_status); }
2095
2096 cat >conftest.$ac_ext <<_ACEOF
2097 /* confdefs.h.  */
2098 _ACEOF
2099 cat confdefs.h >>conftest.$ac_ext
2100 cat >>conftest.$ac_ext <<_ACEOF
2101 /* end confdefs.h.  */
2102
2103 int
2104 main ()
2105 {
2106
2107   ;
2108   return 0;
2109 }
2110 _ACEOF
2111 ac_clean_files_save=$ac_clean_files
2112 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2113 # Try to create an executable without -o first, disregard a.out.
2114 # It will help us diagnose broken compilers, and finding out an intuition
2115 # of exeext.
2116 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2117 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2118 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2119 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2120   (eval $ac_link_default) 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }; then
2124   # Find the output, starting from the most likely.  This scheme is
2125 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2126 # resort.
2127
2128 # Be careful to initialize this variable, since it used to be cached.
2129 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2130 ac_cv_exeext=
2131 # b.out is created by i960 compilers.
2132 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2133 do
2134   test -f "$ac_file" || continue
2135   case $ac_file in
2136     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2137         ;;
2138     conftest.$ac_ext )
2139         # This is the source file.
2140         ;;
2141     [ab].out )
2142         # We found the default executable, but exeext='' is most
2143         # certainly right.
2144         break;;
2145     *.* )
2146         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2147         # FIXME: I believe we export ac_cv_exeext for Libtool,
2148         # but it would be cool to find out if it's true.  Does anybody
2149         # maintain Libtool? --akim.
2150         export ac_cv_exeext
2151         break;;
2152     * )
2153         break;;
2154   esac
2155 done
2156 else
2157   echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2159
2160 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2161 See \`config.log' for more details." >&5
2162 echo "$as_me: error: C compiler cannot create executables
2163 See \`config.log' for more details." >&2;}
2164    { (exit 77); exit 77; }; }
2165 fi
2166
2167 ac_exeext=$ac_cv_exeext
2168 echo "$as_me:$LINENO: result: $ac_file" >&5
2169 echo "${ECHO_T}$ac_file" >&6
2170
2171 # Check the compiler produces executables we can run.  If not, either
2172 # the compiler is broken, or we cross compile.
2173 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2174 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2175 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2176 # If not cross compiling, check that we can run a simple program.
2177 if test "$cross_compiling" != yes; then
2178   if { ac_try='./$ac_file'
2179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180   (eval $ac_try) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); }; }; then
2184     cross_compiling=no
2185   else
2186     if test "$cross_compiling" = maybe; then
2187         cross_compiling=yes
2188     else
2189         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2190 If you meant to cross compile, use \`--host'.
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: cannot run C compiled programs.
2193 If you meant to cross compile, use \`--host'.
2194 See \`config.log' for more details." >&2;}
2195    { (exit 1); exit 1; }; }
2196     fi
2197   fi
2198 fi
2199 echo "$as_me:$LINENO: result: yes" >&5
2200 echo "${ECHO_T}yes" >&6
2201
2202 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2203 ac_clean_files=$ac_clean_files_save
2204 # Check the compiler produces executables we can run.  If not, either
2205 # the compiler is broken, or we cross compile.
2206 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2207 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2208 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2209 echo "${ECHO_T}$cross_compiling" >&6
2210
2211 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2212 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2214   (eval $ac_link) 2>&5
2215   ac_status=$?
2216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217   (exit $ac_status); }; then
2218   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2219 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2220 # work properly (i.e., refer to `conftest.exe'), while it won't with
2221 # `rm'.
2222 for ac_file in conftest.exe conftest conftest.*; do
2223   test -f "$ac_file" || continue
2224   case $ac_file in
2225     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2226     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227           export ac_cv_exeext
2228           break;;
2229     * ) break;;
2230   esac
2231 done
2232 else
2233   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2236 See \`config.log' for more details." >&2;}
2237    { (exit 1); exit 1; }; }
2238 fi
2239
2240 rm -f conftest$ac_cv_exeext
2241 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2242 echo "${ECHO_T}$ac_cv_exeext" >&6
2243
2244 rm -f conftest.$ac_ext
2245 EXEEXT=$ac_cv_exeext
2246 ac_exeext=$EXEEXT
2247 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2248 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2249 if test "${ac_cv_objext+set}" = set; then
2250   echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252   cat >conftest.$ac_ext <<_ACEOF
2253 /* confdefs.h.  */
2254 _ACEOF
2255 cat confdefs.h >>conftest.$ac_ext
2256 cat >>conftest.$ac_ext <<_ACEOF
2257 /* end confdefs.h.  */
2258
2259 int
2260 main ()
2261 {
2262
2263   ;
2264   return 0;
2265 }
2266 _ACEOF
2267 rm -f conftest.o conftest.obj
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269   (eval $ac_compile) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; then
2273   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2274   case $ac_file in
2275     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2276     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2277        break;;
2278   esac
2279 done
2280 else
2281   echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2283
2284 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2287 See \`config.log' for more details." >&2;}
2288    { (exit 1); exit 1; }; }
2289 fi
2290
2291 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2292 fi
2293 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2294 echo "${ECHO_T}$ac_cv_objext" >&6
2295 OBJEXT=$ac_cv_objext
2296 ac_objext=$OBJEXT
2297 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2298 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2299 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2300   echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302   cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h.  */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h.  */
2308
2309 int
2310 main ()
2311 {
2312 #ifndef __GNUC__
2313        choke me
2314 #endif
2315
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>conftest.er1
2323   ac_status=$?
2324   grep -v '^ *+' conftest.er1 >conftest.err
2325   rm -f conftest.er1
2326   cat conftest.err >&5
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); } &&
2329          { ac_try='test -z "$ac_c_werror_flag"
2330                          || test ! -s conftest.err'
2331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332   (eval $ac_try) 2>&5
2333   ac_status=$?
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); }; } &&
2336          { ac_try='test -s conftest.$ac_objext'
2337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338   (eval $ac_try) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }; }; then
2342   ac_compiler_gnu=yes
2343 else
2344   echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 ac_compiler_gnu=no
2348 fi
2349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2351
2352 fi
2353 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2354 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2355 GCC=`test $ac_compiler_gnu = yes && echo yes`
2356 ac_test_CFLAGS=${CFLAGS+set}
2357 ac_save_CFLAGS=$CFLAGS
2358 CFLAGS="-g"
2359 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2361 if test "${ac_cv_prog_cc_g+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h.  */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h.  */
2370
2371 int
2372 main ()
2373 {
2374
2375   ;
2376   return 0;
2377 }
2378 _ACEOF
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381   (eval $ac_compile) 2>conftest.er1
2382   ac_status=$?
2383   grep -v '^ *+' conftest.er1 >conftest.err
2384   rm -f conftest.er1
2385   cat conftest.err >&5
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); } &&
2388          { ac_try='test -z "$ac_c_werror_flag"
2389                          || test ! -s conftest.err'
2390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391   (eval $ac_try) 2>&5
2392   ac_status=$?
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); }; } &&
2395          { ac_try='test -s conftest.$ac_objext'
2396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397   (eval $ac_try) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }; }; then
2401   ac_cv_prog_cc_g=yes
2402 else
2403   echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 ac_cv_prog_cc_g=no
2407 fi
2408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409 fi
2410 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2411 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2412 if test "$ac_test_CFLAGS" = set; then
2413   CFLAGS=$ac_save_CFLAGS
2414 elif test $ac_cv_prog_cc_g = yes; then
2415   if test "$GCC" = yes; then
2416     CFLAGS="-g -O2"
2417   else
2418     CFLAGS="-g"
2419   fi
2420 else
2421   if test "$GCC" = yes; then
2422     CFLAGS="-O2"
2423   else
2424     CFLAGS=
2425   fi
2426 fi
2427 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2428 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2429 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2430   echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432   ac_cv_prog_cc_stdc=no
2433 ac_save_CC=$CC
2434 cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h.  */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h.  */
2440 #include <stdarg.h>
2441 #include <stdio.h>
2442 #include <sys/types.h>
2443 #include <sys/stat.h>
2444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2445 struct buf { int x; };
2446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2447 static char *e (p, i)
2448      char **p;
2449      int i;
2450 {
2451   return p[i];
2452 }
2453 static char *f (char * (*g) (char **, int), char **p, ...)
2454 {
2455   char *s;
2456   va_list v;
2457   va_start (v,p);
2458   s = g (p, va_arg (v,int));
2459   va_end (v);
2460   return s;
2461 }
2462
2463 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2464    function prototypes and stuff, but not '\xHH' hex character constants.
2465    These don't provoke an error unfortunately, instead are silently treated
2466    as 'x'.  The following induces an error, until -std1 is added to get
2467    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2468    array size at least.  It's necessary to write '\x00'==0 to get something
2469    that's true only with -std1.  */
2470 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2471
2472 int test (int i, double x);
2473 struct s1 {int (*f) (int a);};
2474 struct s2 {int (*f) (double a);};
2475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2476 int argc;
2477 char **argv;
2478 int
2479 main ()
2480 {
2481 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2482   ;
2483   return 0;
2484 }
2485 _ACEOF
2486 # Don't try gcc -ansi; that turns off useful extensions and
2487 # breaks some systems' header files.
2488 # AIX                   -qlanglvl=ansi
2489 # Ultrix and OSF/1      -std1
2490 # HP-UX 10.20 and later -Ae
2491 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2492 # SVR4                  -Xc -D__EXTENSIONS__
2493 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2494 do
2495   CC="$ac_save_CC $ac_arg"
2496   rm -f conftest.$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498   (eval $ac_compile) 2>conftest.er1
2499   ac_status=$?
2500   grep -v '^ *+' conftest.er1 >conftest.err
2501   rm -f conftest.er1
2502   cat conftest.err >&5
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); } &&
2505          { ac_try='test -z "$ac_c_werror_flag"
2506                          || test ! -s conftest.err'
2507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508   (eval $ac_try) 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); }; } &&
2512          { ac_try='test -s conftest.$ac_objext'
2513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514   (eval $ac_try) 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; }; then
2518   ac_cv_prog_cc_stdc=$ac_arg
2519 break
2520 else
2521   echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2523
2524 fi
2525 rm -f conftest.err conftest.$ac_objext
2526 done
2527 rm -f conftest.$ac_ext conftest.$ac_objext
2528 CC=$ac_save_CC
2529
2530 fi
2531
2532 case "x$ac_cv_prog_cc_stdc" in
2533   x|xno)
2534     echo "$as_me:$LINENO: result: none needed" >&5
2535 echo "${ECHO_T}none needed" >&6 ;;
2536   *)
2537     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2538 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2539     CC="$CC $ac_cv_prog_cc_stdc" ;;
2540 esac
2541
2542 # Some people use a C++ compiler to compile C.  Since we use `exit',
2543 # in C++ we need to declare it.  In case someone uses the same compiler
2544 # for both compiling C and C++ we need to have the C++ compiler decide
2545 # the declaration of exit, since it's the most demanding environment.
2546 cat >conftest.$ac_ext <<_ACEOF
2547 #ifndef __cplusplus
2548   choke me
2549 #endif
2550 _ACEOF
2551 rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553   (eval $ac_compile) 2>conftest.er1
2554   ac_status=$?
2555   grep -v '^ *+' conftest.er1 >conftest.err
2556   rm -f conftest.er1
2557   cat conftest.err >&5
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); } &&
2560          { ac_try='test -z "$ac_c_werror_flag"
2561                          || test ! -s conftest.err'
2562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563   (eval $ac_try) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; } &&
2567          { ac_try='test -s conftest.$ac_objext'
2568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569   (eval $ac_try) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }; }; then
2573   for ac_declaration in \
2574    '' \
2575    'extern "C" void std::exit (int) throw (); using std::exit;' \
2576    'extern "C" void std::exit (int); using std::exit;' \
2577    'extern "C" void exit (int) throw ();' \
2578    'extern "C" void exit (int);' \
2579    'void exit (int);'
2580 do
2581   cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h.  */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h.  */
2587 $ac_declaration
2588 #include <stdlib.h>
2589 int
2590 main ()
2591 {
2592 exit (42);
2593   ;
2594   return 0;
2595 }
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599   (eval $ac_compile) 2>conftest.er1
2600   ac_status=$?
2601   grep -v '^ *+' conftest.er1 >conftest.err
2602   rm -f conftest.er1
2603   cat conftest.err >&5
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); } &&
2606          { ac_try='test -z "$ac_c_werror_flag"
2607                          || test ! -s conftest.err'
2608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609   (eval $ac_try) 2>&5
2610   ac_status=$?
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); }; } &&
2613          { ac_try='test -s conftest.$ac_objext'
2614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615   (eval $ac_try) 2>&5
2616   ac_status=$?
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); }; }; then
2619   :
2620 else
2621   echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2623
2624 continue
2625 fi
2626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2627   cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h.  */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h.  */
2633 $ac_declaration
2634 int
2635 main ()
2636 {
2637 exit (42);
2638   ;
2639   return 0;
2640 }
2641 _ACEOF
2642 rm -f conftest.$ac_objext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644   (eval $ac_compile) 2>conftest.er1
2645   ac_status=$?
2646   grep -v '^ *+' conftest.er1 >conftest.err
2647   rm -f conftest.er1
2648   cat conftest.err >&5
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); } &&
2651          { ac_try='test -z "$ac_c_werror_flag"
2652                          || test ! -s conftest.err'
2653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654   (eval $ac_try) 2>&5
2655   ac_status=$?
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); }; } &&
2658          { ac_try='test -s conftest.$ac_objext'
2659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660   (eval $ac_try) 2>&5
2661   ac_status=$?
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); }; }; then
2664   break
2665 else
2666   echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2668
2669 fi
2670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 done
2672 rm -f conftest*
2673 if test -n "$ac_declaration"; then
2674   echo '#ifdef __cplusplus' >>confdefs.h
2675   echo $ac_declaration      >>confdefs.h
2676   echo '#endif'             >>confdefs.h
2677 fi
2678
2679 else
2680   echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 fi
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690
2691
2692 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2693 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2694 if test "${ac_cv_c_bigendian+set}" = set; then
2695   echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697   # See if sys/param.h defines the BYTE_ORDER macro.
2698 cat >conftest.$ac_ext <<_ACEOF
2699 /* confdefs.h.  */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h.  */
2704 #include <sys/types.h>
2705 #include <sys/param.h>
2706
2707 int
2708 main ()
2709 {
2710 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2711  bogus endian macros
2712 #endif
2713
2714   ;
2715   return 0;
2716 }
2717 _ACEOF
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720   (eval $ac_compile) 2>conftest.er1
2721   ac_status=$?
2722   grep -v '^ *+' conftest.er1 >conftest.err
2723   rm -f conftest.er1
2724   cat conftest.err >&5
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); } &&
2727          { ac_try='test -z "$ac_c_werror_flag"
2728                          || test ! -s conftest.err'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; } &&
2734          { ac_try='test -s conftest.$ac_objext'
2735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736   (eval $ac_try) 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; }; then
2740   # It does; now see whether it defined to BIG_ENDIAN or not.
2741 cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h.  */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h.  */
2747 #include <sys/types.h>
2748 #include <sys/param.h>
2749
2750 int
2751 main ()
2752 {
2753 #if BYTE_ORDER != BIG_ENDIAN
2754  not big endian
2755 #endif
2756
2757   ;
2758   return 0;
2759 }
2760 _ACEOF
2761 rm -f conftest.$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763   (eval $ac_compile) 2>conftest.er1
2764   ac_status=$?
2765   grep -v '^ *+' conftest.er1 >conftest.err
2766   rm -f conftest.er1
2767   cat conftest.err >&5
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); } &&
2770          { ac_try='test -z "$ac_c_werror_flag"
2771                          || test ! -s conftest.err'
2772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; } &&
2777          { ac_try='test -s conftest.$ac_objext'
2778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779   (eval $ac_try) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; }; then
2783   ac_cv_c_bigendian=yes
2784 else
2785   echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788 ac_cv_c_bigendian=no
2789 fi
2790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791 else
2792   echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795 # It does not; compile a test program.
2796 if test "$cross_compiling" = yes; then
2797   # try to guess the endianness by grepping values into an object file
2798   ac_cv_c_bigendian=unknown
2799   cat >conftest.$ac_ext <<_ACEOF
2800 /* confdefs.h.  */
2801 _ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h.  */
2805 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2806 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2807 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2808 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2809 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2810 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2811 int
2812 main ()
2813 {
2814  _ascii (); _ebcdic ();
2815   ;
2816   return 0;
2817 }
2818 _ACEOF
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821   (eval $ac_compile) 2>conftest.er1
2822   ac_status=$?
2823   grep -v '^ *+' conftest.er1 >conftest.err
2824   rm -f conftest.er1
2825   cat conftest.err >&5
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); } &&
2828          { ac_try='test -z "$ac_c_werror_flag"
2829                          || test ! -s conftest.err'
2830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831   (eval $ac_try) 2>&5
2832   ac_status=$?
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); }; } &&
2835          { ac_try='test -s conftest.$ac_objext'
2836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837   (eval $ac_try) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); }; }; then
2841   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2842   ac_cv_c_bigendian=yes
2843 fi
2844 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2845   if test "$ac_cv_c_bigendian" = unknown; then
2846     ac_cv_c_bigendian=no
2847   else
2848     # finding both strings is unlikely to happen, but who knows?
2849     ac_cv_c_bigendian=unknown
2850   fi
2851 fi
2852 else
2853   echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2855
2856 fi
2857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858 else
2859   cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h.  */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h.  */
2865 int
2866 main ()
2867 {
2868   /* Are we little or big endian?  From Harbison&Steele.  */
2869   union
2870   {
2871     long l;
2872     char c[sizeof (long)];
2873   } u;
2874   u.l = 1;
2875   exit (u.c[sizeof (long) - 1] == 1);
2876 }
2877 _ACEOF
2878 rm -f conftest$ac_exeext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2880   (eval $ac_link) 2>&5
2881   ac_status=$?
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885   (eval $ac_try) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; }; then
2889   ac_cv_c_bigendian=no
2890 else
2891   echo "$as_me: program exited with status $ac_status" >&5
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895 ( exit $ac_status )
2896 ac_cv_c_bigendian=yes
2897 fi
2898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2899 fi
2900 fi
2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902 fi
2903 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2904 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2905 case $ac_cv_c_bigendian in
2906   yes)
2907     ENDIAN=big
2908  ;;
2909   no)
2910     ENDIAN=little
2911  ;;
2912   *)
2913     { { echo "$as_me:$LINENO: error: unknown endianness
2914 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2915 echo "$as_me: error: unknown endianness
2916 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2917    { (exit 1); exit 1; }; } ;;
2918 esac
2919
2920
2921
2922 # Check whether --enable-optimized or --disable-optimized was given.
2923 if test "${enable_optimized+set}" = set; then
2924   enableval="$enable_optimized"
2925
2926 else
2927   enableval=no
2928 fi;
2929 if test ${enableval} = "no" ; then
2930   ENABLE_OPTIMIZED=
2931
2932 else
2933   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2934
2935 fi
2936
2937 # Check whether --enable-jit or --disable-jit was given.
2938 if test "${enable_jit+set}" = set; then
2939   enableval="$enable_jit"
2940
2941 else
2942   enableval=default
2943 fi;
2944 if test ${enableval} = "no"
2945 then
2946   JIT=
2947
2948 else
2949   case "$llvm_cv_target_arch" in
2950     x86)     JIT=TARGET_HAS_JIT=1
2951  ;;
2952     Sparc)   JIT=TARGET_HAS_JIT=1
2953  ;;
2954     PowerPC) JIT=TARGET_HAS_JIT=1
2955  ;;
2956     *)       JIT=
2957  ;;
2958   esac
2959 fi
2960
2961 # Check whether --enable-doxygen or --disable-doxygen was given.
2962 if test "${enable_doxygen+set}" = set; then
2963   enableval="$enable_doxygen"
2964   enableval=yes
2965 else
2966   enableval=no
2967 fi;
2968 case "$enableval" in
2969   yes) ENABLE_DOXYGEN=1
2970  ;;
2971   no)  ENABLE_DOXYGEN=0
2972  ;;
2973   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2974 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2975    { (exit 1); exit 1; }; } ;;
2976 esac
2977
2978
2979 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2980 if test "${with_llvmgccdir+set}" = set; then
2981   withval="$with_llvmgccdir"
2982   LLVMGCCDIR=$withval
2983
2984 fi;
2985
2986 if test "x$LLVMGCCDIR" = x ; then
2987   case "$llvm_cv_platform_type" in
2988     Linux)
2989       if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2990         LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2991
2992       fi
2993       ;;
2994     SunOS)
2995       if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
2996         LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2997
2998       fi
2999       ;;
3000   esac
3001 fi
3002
3003
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3010 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3011 # On Suns, sometimes $CPP names a directory.
3012 if test -n "$CPP" && test -d "$CPP"; then
3013   CPP=
3014 fi
3015 if test -z "$CPP"; then
3016   if test "${ac_cv_prog_CPP+set}" = set; then
3017   echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019       # Double quotes because CPP needs to be expanded
3020     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3021     do
3022       ac_preproc_ok=false
3023 for ac_c_preproc_warn_flag in '' yes
3024 do
3025   # Use a header file that comes with gcc, so configuring glibc
3026   # with a fresh cross-compiler works.
3027   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3028   # <limits.h> exists even on freestanding compilers.
3029   # On the NeXT, cc -E runs the code through the compiler's parser,
3030   # not just through cpp. "Syntax error" is here to catch this case.
3031   cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h.  */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h.  */
3037 #ifdef __STDC__
3038 # include <limits.h>
3039 #else
3040 # include <assert.h>
3041 #endif
3042                      Syntax error
3043 _ACEOF
3044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3046   ac_status=$?
3047   grep -v '^ *+' conftest.er1 >conftest.err
3048   rm -f conftest.er1
3049   cat conftest.err >&5
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); } >/dev/null; then
3052   if test -s conftest.err; then
3053     ac_cpp_err=$ac_c_preproc_warn_flag
3054     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3055   else
3056     ac_cpp_err=
3057   fi
3058 else
3059   ac_cpp_err=yes
3060 fi
3061 if test -z "$ac_cpp_err"; then
3062   :
3063 else
3064   echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067   # Broken: fails on valid input.
3068 continue
3069 fi
3070 rm -f conftest.err conftest.$ac_ext
3071
3072   # OK, works on sane cases.  Now check whether non-existent headers
3073   # can be detected and how.
3074   cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h.  */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h.  */
3080 #include <ac_nonexistent.h>
3081 _ACEOF
3082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3083   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3084   ac_status=$?
3085   grep -v '^ *+' conftest.er1 >conftest.err
3086   rm -f conftest.er1
3087   cat conftest.err >&5
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); } >/dev/null; then
3090   if test -s conftest.err; then
3091     ac_cpp_err=$ac_c_preproc_warn_flag
3092     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3093   else
3094     ac_cpp_err=
3095   fi
3096 else
3097   ac_cpp_err=yes
3098 fi
3099 if test -z "$ac_cpp_err"; then
3100   # Broken: success on invalid input.
3101 continue
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106   # Passes both tests.
3107 ac_preproc_ok=:
3108 break
3109 fi
3110 rm -f conftest.err conftest.$ac_ext
3111
3112 done
3113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3114 rm -f conftest.err conftest.$ac_ext
3115 if $ac_preproc_ok; then
3116   break
3117 fi
3118
3119     done
3120     ac_cv_prog_CPP=$CPP
3121
3122 fi
3123   CPP=$ac_cv_prog_CPP
3124 else
3125   ac_cv_prog_CPP=$CPP
3126 fi
3127 echo "$as_me:$LINENO: result: $CPP" >&5
3128 echo "${ECHO_T}$CPP" >&6
3129 ac_preproc_ok=false
3130 for ac_c_preproc_warn_flag in '' yes
3131 do
3132   # Use a header file that comes with gcc, so configuring glibc
3133   # with a fresh cross-compiler works.
3134   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3135   # <limits.h> exists even on freestanding compilers.
3136   # On the NeXT, cc -E runs the code through the compiler's parser,
3137   # not just through cpp. "Syntax error" is here to catch this case.
3138   cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h.  */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h.  */
3144 #ifdef __STDC__
3145 # include <limits.h>
3146 #else
3147 # include <assert.h>
3148 #endif
3149                      Syntax error
3150 _ACEOF
3151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3152   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3153   ac_status=$?
3154   grep -v '^ *+' conftest.er1 >conftest.err
3155   rm -f conftest.er1
3156   cat conftest.err >&5
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); } >/dev/null; then
3159   if test -s conftest.err; then
3160     ac_cpp_err=$ac_c_preproc_warn_flag
3161     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3162   else
3163     ac_cpp_err=
3164   fi
3165 else
3166   ac_cpp_err=yes
3167 fi
3168 if test -z "$ac_cpp_err"; then
3169   :
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174   # Broken: fails on valid input.
3175 continue
3176 fi
3177 rm -f conftest.err conftest.$ac_ext
3178
3179   # OK, works on sane cases.  Now check whether non-existent headers
3180   # can be detected and how.
3181   cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h.  */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h.  */
3187 #include <ac_nonexistent.h>
3188 _ACEOF
3189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3190   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3191   ac_status=$?
3192   grep -v '^ *+' conftest.er1 >conftest.err
3193   rm -f conftest.er1
3194   cat conftest.err >&5
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); } >/dev/null; then
3197   if test -s conftest.err; then
3198     ac_cpp_err=$ac_c_preproc_warn_flag
3199     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3200   else
3201     ac_cpp_err=
3202   fi
3203 else
3204   ac_cpp_err=yes
3205 fi
3206 if test -z "$ac_cpp_err"; then
3207   # Broken: success on invalid input.
3208 continue
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213   # Passes both tests.
3214 ac_preproc_ok=:
3215 break
3216 fi
3217 rm -f conftest.err conftest.$ac_ext
3218
3219 done
3220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3221 rm -f conftest.err conftest.$ac_ext
3222 if $ac_preproc_ok; then
3223   :
3224 else
3225   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3226 See \`config.log' for more details." >&5
3227 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3228 See \`config.log' for more details." >&2;}
3229    { (exit 1); exit 1; }; }
3230 fi
3231
3232 ac_ext=c
3233 ac_cpp='$CPP $CPPFLAGS'
3234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237
3238 ac_ext=c
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 if test -n "$ac_tool_prefix"; then
3244   for ac_prog in gcc
3245   do
3246     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3248 echo "$as_me:$LINENO: checking for $ac_word" >&5
3249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3250 if test "${ac_cv_prog_CC+set}" = set; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253   if test -n "$CC"; then
3254   ac_cv_prog_CC="$CC" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259   IFS=$as_save_IFS
3260   test -z "$as_dir" && as_dir=.
3261   for ac_exec_ext in '' $ac_executable_extensions; do
3262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3265     break 2
3266   fi
3267 done
3268 done
3269
3270 fi
3271 fi
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274   echo "$as_me:$LINENO: result: $CC" >&5
3275 echo "${ECHO_T}$CC" >&6
3276 else
3277   echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3279 fi
3280
3281     test -n "$CC" && break
3282   done
3283 fi
3284 if test -z "$CC"; then
3285   ac_ct_CC=$CC
3286   for ac_prog in gcc
3287 do
3288   # Extract the first word of "$ac_prog", so it can be a program name with args.
3289 set dummy $ac_prog; ac_word=$2
3290 echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295   if test -n "$ac_ct_CC"; then
3296   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301   IFS=$as_save_IFS
3302   test -z "$as_dir" && as_dir=.
3303   for ac_exec_ext in '' $ac_executable_extensions; do
3304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305     ac_cv_prog_ac_ct_CC="$ac_prog"
3306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307     break 2
3308   fi
3309 done
3310 done
3311
3312 fi
3313 fi
3314 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3315 if test -n "$ac_ct_CC"; then
3316   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3317 echo "${ECHO_T}$ac_ct_CC" >&6
3318 else
3319   echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3321 fi
3322
3323   test -n "$ac_ct_CC" && break
3324 done
3325
3326   CC=$ac_ct_CC
3327 fi
3328
3329
3330 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3331 See \`config.log' for more details." >&5
3332 echo "$as_me: error: no acceptable C compiler found in \$PATH
3333 See \`config.log' for more details." >&2;}
3334    { (exit 1); exit 1; }; }
3335
3336 # Provide some information about the compiler.
3337 echo "$as_me:$LINENO:" \
3338      "checking for C compiler version" >&5
3339 ac_compiler=`set X $ac_compile; echo $2`
3340 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3341   (eval $ac_compiler --version </dev/null >&5) 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }
3345 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3346   (eval $ac_compiler -v </dev/null >&5) 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); }
3350 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3351   (eval $ac_compiler -V </dev/null >&5) 2>&5
3352   ac_status=$?
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); }
3355
3356 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3357 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3358 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h.  */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h.  */
3367
3368 int
3369 main ()
3370 {
3371 #ifndef __GNUC__
3372        choke me
3373 #endif
3374
3375   ;
3376   return 0;
3377 }
3378 _ACEOF
3379 rm -f conftest.$ac_objext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381   (eval $ac_compile) 2>conftest.er1
3382   ac_status=$?
3383   grep -v '^ *+' conftest.er1 >conftest.err
3384   rm -f conftest.er1
3385   cat conftest.err >&5
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); } &&
3388          { ac_try='test -z "$ac_c_werror_flag"
3389                          || test ! -s conftest.err'
3390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391   (eval $ac_try) 2>&5
3392   ac_status=$?
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); }; } &&
3395          { ac_try='test -s conftest.$ac_objext'
3396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397   (eval $ac_try) 2>&5
3398   ac_status=$?
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); }; }; then
3401   ac_compiler_gnu=yes
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406 ac_compiler_gnu=no
3407 fi
3408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3410
3411 fi
3412 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3414 GCC=`test $ac_compiler_gnu = yes && echo yes`
3415 ac_test_CFLAGS=${CFLAGS+set}
3416 ac_save_CFLAGS=$CFLAGS
3417 CFLAGS="-g"
3418 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3419 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3420 if test "${ac_cv_prog_cc_g+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429
3430 int
3431 main ()
3432 {
3433
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext
3439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3440   (eval $ac_compile) 2>conftest.er1
3441   ac_status=$?
3442   grep -v '^ *+' conftest.er1 >conftest.err
3443   rm -f conftest.er1
3444   cat conftest.err >&5
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); } &&
3447          { ac_try='test -z "$ac_c_werror_flag"
3448                          || test ! -s conftest.err'
3449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450   (eval $ac_try) 2>&5
3451   ac_status=$?
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); }; } &&
3454          { ac_try='test -s conftest.$ac_objext'
3455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456   (eval $ac_try) 2>&5
3457   ac_status=$?
3458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459   (exit $ac_status); }; }; then
3460   ac_cv_prog_cc_g=yes
3461 else
3462   echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 ac_cv_prog_cc_g=no
3466 fi
3467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3468 fi
3469 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3470 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3471 if test "$ac_test_CFLAGS" = set; then
3472   CFLAGS=$ac_save_CFLAGS
3473 elif test $ac_cv_prog_cc_g = yes; then
3474   if test "$GCC" = yes; then
3475     CFLAGS="-g -O2"
3476   else
3477     CFLAGS="-g"
3478   fi
3479 else
3480   if test "$GCC" = yes; then
3481     CFLAGS="-O2"
3482   else
3483     CFLAGS=
3484   fi
3485 fi
3486 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3487 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3488 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3489   echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491   ac_cv_prog_cc_stdc=no
3492 ac_save_CC=$CC
3493 cat >conftest.$ac_ext <<_ACEOF
3494 /* confdefs.h.  */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h.  */
3499 #include <stdarg.h>
3500 #include <stdio.h>
3501 #include <sys/types.h>
3502 #include <sys/stat.h>
3503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3504 struct buf { int x; };
3505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3506 static char *e (p, i)
3507      char **p;
3508      int i;
3509 {
3510   return p[i];
3511 }
3512 static char *f (char * (*g) (char **, int), char **p, ...)
3513 {
3514   char *s;
3515   va_list v;
3516   va_start (v,p);
3517   s = g (p, va_arg (v,int));
3518   va_end (v);
3519   return s;
3520 }
3521
3522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3523    function prototypes and stuff, but not '\xHH' hex character constants.
3524    These don't provoke an error unfortunately, instead are silently treated
3525    as 'x'.  The following induces an error, until -std1 is added to get
3526    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3527    array size at least.  It's necessary to write '\x00'==0 to get something
3528    that's true only with -std1.  */
3529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3530
3531 int test (int i, double x);
3532 struct s1 {int (*f) (int a);};
3533 struct s2 {int (*f) (double a);};
3534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3535 int argc;
3536 char **argv;
3537 int
3538 main ()
3539 {
3540 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3541   ;
3542   return 0;
3543 }
3544 _ACEOF
3545 # Don't try gcc -ansi; that turns off useful extensions and
3546 # breaks some systems' header files.
3547 # AIX                   -qlanglvl=ansi
3548 # Ultrix and OSF/1      -std1
3549 # HP-UX 10.20 and later -Ae
3550 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3551 # SVR4                  -Xc -D__EXTENSIONS__
3552 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3553 do
3554   CC="$ac_save_CC $ac_arg"
3555   rm -f conftest.$ac_objext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557   (eval $ac_compile) 2>conftest.er1
3558   ac_status=$?
3559   grep -v '^ *+' conftest.er1 >conftest.err
3560   rm -f conftest.er1
3561   cat conftest.err >&5
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } &&
3564          { ac_try='test -z "$ac_c_werror_flag"
3565                          || test ! -s conftest.err'
3566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567   (eval $ac_try) 2>&5
3568   ac_status=$?
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); }; } &&
3571          { ac_try='test -s conftest.$ac_objext'
3572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573   (eval $ac_try) 2>&5
3574   ac_status=$?
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); }; }; then
3577   ac_cv_prog_cc_stdc=$ac_arg
3578 break
3579 else
3580   echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 fi
3584 rm -f conftest.err conftest.$ac_objext
3585 done
3586 rm -f conftest.$ac_ext conftest.$ac_objext
3587 CC=$ac_save_CC
3588
3589 fi
3590
3591 case "x$ac_cv_prog_cc_stdc" in
3592   x|xno)
3593     echo "$as_me:$LINENO: result: none needed" >&5
3594 echo "${ECHO_T}none needed" >&6 ;;
3595   *)
3596     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3597 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3598     CC="$CC $ac_cv_prog_cc_stdc" ;;
3599 esac
3600
3601 # Some people use a C++ compiler to compile C.  Since we use `exit',
3602 # in C++ we need to declare it.  In case someone uses the same compiler
3603 # for both compiling C and C++ we need to have the C++ compiler decide
3604 # the declaration of exit, since it's the most demanding environment.
3605 cat >conftest.$ac_ext <<_ACEOF
3606 #ifndef __cplusplus
3607   choke me
3608 #endif
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612   (eval $ac_compile) 2>conftest.er1
3613   ac_status=$?
3614   grep -v '^ *+' conftest.er1 >conftest.err
3615   rm -f conftest.er1
3616   cat conftest.err >&5
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); } &&
3619          { ac_try='test -z "$ac_c_werror_flag"
3620                          || test ! -s conftest.err'
3621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622   (eval $ac_try) 2>&5
3623   ac_status=$?
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); }; } &&
3626          { ac_try='test -s conftest.$ac_objext'
3627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628   (eval $ac_try) 2>&5
3629   ac_status=$?
3630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); }; }; then
3632   for ac_declaration in \
3633    '' \
3634    'extern "C" void std::exit (int) throw (); using std::exit;' \
3635    'extern "C" void std::exit (int); using std::exit;' \
3636    'extern "C" void exit (int) throw ();' \
3637    'extern "C" void exit (int);' \
3638    'void exit (int);'
3639 do
3640   cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h.  */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h.  */
3646 $ac_declaration
3647 #include <stdlib.h>
3648 int
3649 main ()
3650 {
3651 exit (42);
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 rm -f conftest.$ac_objext
3657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3658   (eval $ac_compile) 2>conftest.er1
3659   ac_status=$?
3660   grep -v '^ *+' conftest.er1 >conftest.err
3661   rm -f conftest.er1
3662   cat conftest.err >&5
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); } &&
3665          { ac_try='test -z "$ac_c_werror_flag"
3666                          || test ! -s conftest.err'
3667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668   (eval $ac_try) 2>&5
3669   ac_status=$?
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); }; } &&
3672          { ac_try='test -s conftest.$ac_objext'
3673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674   (eval $ac_try) 2>&5
3675   ac_status=$?
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); }; }; then
3678   :
3679 else
3680   echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3682
3683 continue
3684 fi
3685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3686   cat >conftest.$ac_ext <<_ACEOF
3687 /* confdefs.h.  */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h.  */
3692 $ac_declaration
3693 int
3694 main ()
3695 {
3696 exit (42);
3697   ;
3698   return 0;
3699 }
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703   (eval $ac_compile) 2>conftest.er1
3704   ac_status=$?
3705   grep -v '^ *+' conftest.er1 >conftest.err
3706   rm -f conftest.er1
3707   cat conftest.err >&5
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); } &&
3710          { ac_try='test -z "$ac_c_werror_flag"
3711                          || test ! -s conftest.err'
3712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713   (eval $ac_try) 2>&5
3714   ac_status=$?
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); }; } &&
3717          { ac_try='test -s conftest.$ac_objext'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; }; then
3723   break
3724 else
3725   echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
3728 fi
3729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3730 done
3731 rm -f conftest*
3732 if test -n "$ac_declaration"; then
3733   echo '#ifdef __cplusplus' >>confdefs.h
3734   echo $ac_declaration      >>confdefs.h
3735   echo '#endif'             >>confdefs.h
3736 fi
3737
3738 else
3739   echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3741
3742 fi
3743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3744 ac_ext=c
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749
3750 ac_ext=cc
3751 ac_cpp='$CXXCPP $CPPFLAGS'
3752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3755 if test -n "$ac_tool_prefix"; then
3756   for ac_prog in $CCC g++
3757   do
3758     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3760 echo "$as_me:$LINENO: checking for $ac_word" >&5
3761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3762 if test "${ac_cv_prog_CXX+set}" = set; then
3763   echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765   if test -n "$CXX"; then
3766   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3767 else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH
3770 do
3771   IFS=$as_save_IFS
3772   test -z "$as_dir" && as_dir=.
3773   for ac_exec_ext in '' $ac_executable_extensions; do
3774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3775     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777     break 2
3778   fi
3779 done
3780 done
3781
3782 fi
3783 fi
3784 CXX=$ac_cv_prog_CXX
3785 if test -n "$CXX"; then
3786   echo "$as_me:$LINENO: result: $CXX" >&5
3787 echo "${ECHO_T}$CXX" >&6
3788 else
3789   echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6
3791 fi
3792
3793     test -n "$CXX" && break
3794   done
3795 fi
3796 if test -z "$CXX"; then
3797   ac_ct_CXX=$CXX
3798   for ac_prog in $CCC g++
3799 do
3800   # Extract the first word of "$ac_prog", so it can be a program name with args.
3801 set dummy $ac_prog; ac_word=$2
3802 echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   if test -n "$ac_ct_CXX"; then
3808   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813   IFS=$as_save_IFS
3814   test -z "$as_dir" && as_dir=.
3815   for ac_exec_ext in '' $ac_executable_extensions; do
3816   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817     ac_cv_prog_ac_ct_CXX="$ac_prog"
3818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819     break 2
3820   fi
3821 done
3822 done
3823
3824 fi
3825 fi
3826 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3827 if test -n "$ac_ct_CXX"; then
3828   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3829 echo "${ECHO_T}$ac_ct_CXX" >&6
3830 else
3831   echo "$as_me:$LINENO: result: no" >&5
3832 echo "${ECHO_T}no" >&6
3833 fi
3834
3835   test -n "$ac_ct_CXX" && break
3836 done
3837 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3838
3839   CXX=$ac_ct_CXX
3840 fi
3841
3842
3843 # Provide some information about the compiler.
3844 echo "$as_me:$LINENO:" \
3845      "checking for C++ compiler version" >&5
3846 ac_compiler=`set X $ac_compile; echo $2`
3847 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3848   (eval $ac_compiler --version </dev/null >&5) 2>&5
3849   ac_status=$?
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); }
3852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3853   (eval $ac_compiler -v </dev/null >&5) 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }
3857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3858   (eval $ac_compiler -V </dev/null >&5) 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }
3862
3863 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3864 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3865 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   cat >conftest.$ac_ext <<_ACEOF
3869 /* confdefs.h.  */
3870 _ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h.  */
3874
3875 int
3876 main ()
3877 {
3878 #ifndef __GNUC__
3879        choke me
3880 #endif
3881
3882   ;
3883   return 0;
3884 }
3885 _ACEOF
3886 rm -f conftest.$ac_objext
3887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888   (eval $ac_compile) 2>conftest.er1
3889   ac_status=$?
3890   grep -v '^ *+' conftest.er1 >conftest.err
3891   rm -f conftest.er1
3892   cat conftest.err >&5
3893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894   (exit $ac_status); } &&
3895          { ac_try='test -z "$ac_cxx_werror_flag"
3896                          || test ! -s conftest.err'
3897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898   (eval $ac_try) 2>&5
3899   ac_status=$?
3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); }; } &&
3902          { ac_try='test -s conftest.$ac_objext'
3903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904   (eval $ac_try) 2>&5
3905   ac_status=$?
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); }; }; then
3908   ac_compiler_gnu=yes
3909 else
3910   echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913 ac_compiler_gnu=no
3914 fi
3915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3916 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3917
3918 fi
3919 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3920 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3921 GXX=`test $ac_compiler_gnu = yes && echo yes`
3922 ac_test_CXXFLAGS=${CXXFLAGS+set}
3923 ac_save_CXXFLAGS=$CXXFLAGS
3924 CXXFLAGS="-g"
3925 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3926 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3927 if test "${ac_cv_prog_cxx_g+set}" = set; then
3928   echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930   cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h.  */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h.  */
3936
3937 int
3938 main ()
3939 {
3940
3941   ;
3942   return 0;
3943 }
3944 _ACEOF
3945 rm -f conftest.$ac_objext
3946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3947   (eval $ac_compile) 2>conftest.er1
3948   ac_status=$?
3949   grep -v '^ *+' conftest.er1 >conftest.err
3950   rm -f conftest.er1
3951   cat conftest.err >&5
3952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); } &&
3954          { ac_try='test -z "$ac_cxx_werror_flag"
3955                          || test ! -s conftest.err'
3956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957   (eval $ac_try) 2>&5
3958   ac_status=$?
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); }; } &&
3961          { ac_try='test -s conftest.$ac_objext'
3962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963   (eval $ac_try) 2>&5
3964   ac_status=$?
3965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966   (exit $ac_status); }; }; then
3967   ac_cv_prog_cxx_g=yes
3968 else
3969   echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 ac_cv_prog_cxx_g=no
3973 fi
3974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3975 fi
3976 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3977 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3978 if test "$ac_test_CXXFLAGS" = set; then
3979   CXXFLAGS=$ac_save_CXXFLAGS
3980 elif test $ac_cv_prog_cxx_g = yes; then
3981   if test "$GXX" = yes; then
3982     CXXFLAGS="-g -O2"
3983   else
3984     CXXFLAGS="-g"
3985   fi
3986 else
3987   if test "$GXX" = yes; then
3988     CXXFLAGS="-O2"
3989   else
3990     CXXFLAGS=
3991   fi
3992 fi
3993 for ac_declaration in \
3994    '' \
3995    'extern "C" void std::exit (int) throw (); using std::exit;' \
3996    'extern "C" void std::exit (int); using std::exit;' \
3997    'extern "C" void exit (int) throw ();' \
3998    'extern "C" void exit (int);' \
3999    'void exit (int);'
4000 do
4001   cat >conftest.$ac_ext <<_ACEOF
4002 /* confdefs.h.  */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h.  */
4007 $ac_declaration
4008 #include <stdlib.h>
4009 int
4010 main ()
4011 {
4012 exit (42);
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019   (eval $ac_compile) 2>conftest.er1
4020   ac_status=$?
4021   grep -v '^ *+' conftest.er1 >conftest.err
4022   rm -f conftest.er1
4023   cat conftest.err >&5
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); } &&
4026          { ac_try='test -z "$ac_cxx_werror_flag"
4027                          || test ! -s conftest.err'
4028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029   (eval $ac_try) 2>&5
4030   ac_status=$?
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); }; } &&
4033          { ac_try='test -s conftest.$ac_objext'
4034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035   (eval $ac_try) 2>&5
4036   ac_status=$?
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); }; }; then
4039   :
4040 else
4041   echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044 continue
4045 fi
4046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4047   cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h.  */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h.  */
4053 $ac_declaration
4054 int
4055 main ()
4056 {
4057 exit (42);
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064   (eval $ac_compile) 2>conftest.er1
4065   ac_status=$?
4066   grep -v '^ *+' conftest.er1 >conftest.err
4067   rm -f conftest.er1
4068   cat conftest.err >&5
4069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070   (exit $ac_status); } &&
4071          { ac_try='test -z "$ac_cxx_werror_flag"
4072                          || test ! -s conftest.err'
4073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074   (eval $ac_try) 2>&5
4075   ac_status=$?
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); }; } &&
4078          { ac_try='test -s conftest.$ac_objext'
4079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080   (eval $ac_try) 2>&5
4081   ac_status=$?
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); }; }; then
4084   break
4085 else
4086   echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089 fi
4090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4091 done
4092 rm -f conftest*
4093 if test -n "$ac_declaration"; then
4094   echo '#ifdef __cplusplus' >>confdefs.h
4095   echo $ac_declaration      >>confdefs.h
4096   echo '#endif'             >>confdefs.h
4097 fi
4098
4099 ac_ext=c
4100 ac_cpp='$CPP $CPPFLAGS'
4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104
4105 echo "$as_me:$LINENO: checking " >&5
4106 echo $ECHO_N "checking ... $ECHO_C" >&6
4107 if test "${ac_cv_has_flex+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   for ac_prog in flex lex
4111 do
4112   # Extract the first word of "$ac_prog", so it can be a program name with args.
4113 set dummy $ac_prog; ac_word=$2
4114 echo "$as_me:$LINENO: checking for $ac_word" >&5
4115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4116 if test "${ac_cv_prog_LEX+set}" = set; then
4117   echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119   if test -n "$LEX"; then
4120   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4121 else
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4124 do
4125   IFS=$as_save_IFS
4126   test -z "$as_dir" && as_dir=.
4127   for ac_exec_ext in '' $ac_executable_extensions; do
4128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129     ac_cv_prog_LEX="$ac_prog"
4130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4131     break 2
4132   fi
4133 done
4134 done
4135
4136 fi
4137 fi
4138 LEX=$ac_cv_prog_LEX
4139 if test -n "$LEX"; then
4140   echo "$as_me:$LINENO: result: $LEX" >&5
4141 echo "${ECHO_T}$LEX" >&6
4142 else
4143   echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4145 fi
4146
4147   test -n "$LEX" && break
4148 done
4149 test -n "$LEX" || LEX=":"
4150
4151 if test -z "$LEXLIB"
4152 then
4153   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4154 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4155 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4156   echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158   ac_check_lib_save_LIBS=$LIBS
4159 LIBS="-lfl  $LIBS"
4160 cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h.  */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h.  */
4166
4167 /* Override any gcc2 internal prototype to avoid an error.  */
4168 #ifdef __cplusplus
4169 extern "C"
4170 #endif
4171 /* We use char because int might match the return type of a gcc2
4172    builtin and then its argument prototype would still apply.  */
4173 char yywrap ();
4174 int
4175 main ()
4176 {
4177 yywrap ();
4178   ;
4179   return 0;
4180 }
4181 _ACEOF
4182 rm -f conftest.$ac_objext conftest$ac_exeext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184   (eval $ac_link) 2>conftest.er1
4185   ac_status=$?
4186   grep -v '^ *+' conftest.er1 >conftest.err
4187   rm -f conftest.er1
4188   cat conftest.err >&5
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); } &&
4191          { ac_try='test -z "$ac_c_werror_flag"
4192                          || test ! -s conftest.err'
4193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194   (eval $ac_try) 2>&5
4195   ac_status=$?
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); }; } &&
4198          { ac_try='test -s conftest$ac_exeext'
4199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200   (eval $ac_try) 2>&5
4201   ac_status=$?
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); }; }; then
4204   ac_cv_lib_fl_yywrap=yes
4205 else
4206   echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4208
4209 ac_cv_lib_fl_yywrap=no
4210 fi
4211 rm -f conftest.err conftest.$ac_objext \
4212       conftest$ac_exeext conftest.$ac_ext
4213 LIBS=$ac_check_lib_save_LIBS
4214 fi
4215 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4216 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4217 if test $ac_cv_lib_fl_yywrap = yes; then
4218   LEXLIB="-lfl"
4219 else
4220   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4221 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4222 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4223   echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225   ac_check_lib_save_LIBS=$LIBS
4226 LIBS="-ll  $LIBS"
4227 cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h.  */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h.  */
4233
4234 /* Override any gcc2 internal prototype to avoid an error.  */
4235 #ifdef __cplusplus
4236 extern "C"
4237 #endif
4238 /* We use char because int might match the return type of a gcc2
4239    builtin and then its argument prototype would still apply.  */
4240 char yywrap ();
4241 int
4242 main ()
4243 {
4244 yywrap ();
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 rm -f conftest.$ac_objext conftest$ac_exeext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4251   (eval $ac_link) 2>conftest.er1
4252   ac_status=$?
4253   grep -v '^ *+' conftest.er1 >conftest.err
4254   rm -f conftest.er1
4255   cat conftest.err >&5
4256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257   (exit $ac_status); } &&
4258          { ac_try='test -z "$ac_c_werror_flag"
4259                          || test ! -s conftest.err'
4260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261   (eval $ac_try) 2>&5
4262   ac_status=$?
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); }; } &&
4265          { ac_try='test -s conftest$ac_exeext'
4266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267   (eval $ac_try) 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; }; then
4271   ac_cv_lib_l_yywrap=yes
4272 else
4273   echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4275
4276 ac_cv_lib_l_yywrap=no
4277 fi
4278 rm -f conftest.err conftest.$ac_objext \
4279       conftest$ac_exeext conftest.$ac_ext
4280 LIBS=$ac_check_lib_save_LIBS
4281 fi
4282 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4283 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4284 if test $ac_cv_lib_l_yywrap = yes; then
4285   LEXLIB="-ll"
4286 fi
4287
4288 fi
4289
4290 fi
4291
4292 if test "x$LEX" != "x:"; then
4293   echo "$as_me:$LINENO: checking lex output file root" >&5
4294 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4295 if test "${ac_cv_prog_lex_root+set}" = set; then
4296   echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298   # The minimal lex program is just a single line: %%.  But some broken lexes
4299 # (Solaris, I think it was) want two %% lines, so accommodate them.
4300 cat >conftest.l <<_ACEOF
4301 %%
4302 %%
4303 _ACEOF
4304 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4305   (eval $LEX conftest.l) 2>&5
4306   ac_status=$?
4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308   (exit $ac_status); }
4309 if test -f lex.yy.c; then
4310   ac_cv_prog_lex_root=lex.yy
4311 elif test -f lexyy.c; then
4312   ac_cv_prog_lex_root=lexyy
4313 else
4314   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4315 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4316    { (exit 1); exit 1; }; }
4317 fi
4318 fi
4319 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4320 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4321 rm -f conftest.l
4322 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4323
4324 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4325 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4326 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329   # POSIX says lex can declare yytext either as a pointer or an array; the
4330 # default is implementation-dependent. Figure out which it is, since
4331 # not all implementations provide the %pointer and %array declarations.
4332 ac_cv_prog_lex_yytext_pointer=no
4333 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4334 ac_save_LIBS=$LIBS
4335 LIBS="$LIBS $LEXLIB"
4336 cat >conftest.$ac_ext <<_ACEOF
4337 `cat $LEX_OUTPUT_ROOT.c`
4338 _ACEOF
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341   (eval $ac_link) 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } &&
4348          { ac_try='test -z "$ac_c_werror_flag"
4349                          || test ! -s conftest.err'
4350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351   (eval $ac_try) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; } &&
4355          { ac_try='test -s conftest$ac_exeext'
4356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357   (eval $ac_try) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; }; then
4361   ac_cv_prog_lex_yytext_pointer=yes
4362 else
4363   echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 fi
4367 rm -f conftest.err conftest.$ac_objext \
4368       conftest$ac_exeext conftest.$ac_ext
4369 LIBS=$ac_save_LIBS
4370 rm -f "${LEX_OUTPUT_ROOT}.c"
4371
4372 fi
4373 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4374 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4375 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4376
4377 cat >>confdefs.h <<\_ACEOF
4378 #define YYTEXT_POINTER 1
4379 _ACEOF
4380
4381 fi
4382
4383 fi
4384
4385 fi
4386 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4387 echo "${ECHO_T}$ac_cv_has_flex" >&6
4388 if test "$LEX" != "flex"; then
4389   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4390 echo "$as_me: error: flex not found but required" >&2;}
4391    { (exit 1); exit 1; }; }
4392 else
4393   FLEX=flex
4394
4395 fi
4396
4397 echo "$as_me:$LINENO: checking " >&5
4398 echo $ECHO_N "checking ... $ECHO_C" >&6
4399 if test "${llvm_cv_has_bison+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   for ac_prog in 'bison -y' byacc
4403 do
4404   # Extract the first word of "$ac_prog", so it can be a program name with args.
4405 set dummy $ac_prog; ac_word=$2
4406 echo "$as_me:$LINENO: checking for $ac_word" >&5
4407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4408 if test "${ac_cv_prog_YACC+set}" = set; then
4409   echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411   if test -n "$YACC"; then
4412   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4413 else
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4416 do
4417   IFS=$as_save_IFS
4418   test -z "$as_dir" && as_dir=.
4419   for ac_exec_ext in '' $ac_executable_extensions; do
4420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421     ac_cv_prog_YACC="$ac_prog"
4422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423     break 2
4424   fi
4425 done
4426 done
4427
4428 fi
4429 fi
4430 YACC=$ac_cv_prog_YACC
4431 if test -n "$YACC"; then
4432   echo "$as_me:$LINENO: result: $YACC" >&5
4433 echo "${ECHO_T}$YACC" >&6
4434 else
4435   echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6
4437 fi
4438
4439   test -n "$YACC" && break
4440 done
4441 test -n "$YACC" || YACC="yacc"
4442
4443
4444 fi
4445 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4446 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4447 if test "$YACC" != "bison -y"; then
4448   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4449 echo "$as_me: error: bison not found but required" >&2;}
4450    { (exit 1); exit 1; }; }
4451 else
4452   BISON=bison
4453
4454 fi
4455
4456
4457
4458
4459 # Check whether --enable-shared or --disable-shared was given.
4460 if test "${enable_shared+set}" = set; then
4461   enableval="$enable_shared"
4462   p=${PACKAGE-default}
4463     case $enableval in
4464     yes) enable_shared=yes ;;
4465     no) enable_shared=no ;;
4466     *)
4467       enable_shared=no
4468       # Look at the argument we got.  We use all the common list separators.
4469       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4470       for pkg in $enableval; do
4471         IFS="$lt_save_ifs"
4472         if test "X$pkg" = "X$p"; then
4473           enable_shared=yes
4474         fi
4475       done
4476       IFS="$lt_save_ifs"
4477       ;;
4478     esac
4479 else
4480   enable_shared=yes
4481 fi;
4482
4483 # Check whether --enable-static or --disable-static was given.
4484 if test "${enable_static+set}" = set; then
4485   enableval="$enable_static"
4486   p=${PACKAGE-default}
4487     case $enableval in
4488     yes) enable_static=yes ;;
4489     no) enable_static=no ;;
4490     *)
4491      enable_static=no
4492       # Look at the argument we got.  We use all the common list separators.
4493       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4494       for pkg in $enableval; do
4495         IFS="$lt_save_ifs"
4496         if test "X$pkg" = "X$p"; then
4497           enable_static=yes
4498         fi
4499       done
4500       IFS="$lt_save_ifs"
4501       ;;
4502     esac
4503 else
4504   enable_static=yes
4505 fi;
4506
4507 # Check whether --enable-fast-install or --disable-fast-install was given.
4508 if test "${enable_fast_install+set}" = set; then
4509   enableval="$enable_fast_install"
4510   p=${PACKAGE-default}
4511     case $enableval in
4512     yes) enable_fast_install=yes ;;
4513     no) enable_fast_install=no ;;
4514     *)
4515       enable_fast_install=no
4516       # Look at the argument we got.  We use all the common list separators.
4517       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4518       for pkg in $enableval; do
4519         IFS="$lt_save_ifs"
4520         if test "X$pkg" = "X$p"; then
4521           enable_fast_install=yes
4522         fi
4523       done
4524       IFS="$lt_save_ifs"
4525       ;;
4526     esac
4527 else
4528   enable_fast_install=yes
4529 fi;
4530
4531 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4532 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4533 if test "${lt_cv_path_SED+set}" = set; then
4534   echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536   # Loop through the user's path and test for sed and gsed.
4537 # Then use that list of sed's as ones to test for truncation.
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4540 do
4541   IFS=$as_save_IFS
4542   test -z "$as_dir" && as_dir=.
4543   for lt_ac_prog in sed gsed; do
4544     for ac_exec_ext in '' $ac_executable_extensions; do
4545       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4546         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4547       fi
4548     done
4549   done
4550 done
4551 lt_ac_max=0
4552 lt_ac_count=0
4553 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4554 # along with /bin/sed that truncates output.
4555 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4556   test ! -f $lt_ac_sed && break
4557   cat /dev/null > conftest.in
4558   lt_ac_count=0
4559   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4560   # Check for GNU sed and select it if it is found.
4561   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4562     lt_cv_path_SED=$lt_ac_sed
4563     break
4564   fi
4565   while true; do
4566     cat conftest.in conftest.in >conftest.tmp
4567     mv conftest.tmp conftest.in
4568     cp conftest.in conftest.nl
4569     echo >>conftest.nl
4570     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4571     cmp -s conftest.out conftest.nl || break
4572     # 10000 chars as input seems more than enough
4573     test $lt_ac_count -gt 10 && break
4574     lt_ac_count=`expr $lt_ac_count + 1`
4575     if test $lt_ac_count -gt $lt_ac_max; then
4576       lt_ac_max=$lt_ac_count
4577       lt_cv_path_SED=$lt_ac_sed
4578     fi
4579   done
4580 done
4581
4582 fi
4583
4584 SED=$lt_cv_path_SED
4585 echo "$as_me:$LINENO: result: $SED" >&5
4586 echo "${ECHO_T}$SED" >&6
4587
4588 echo "$as_me:$LINENO: checking for egrep" >&5
4589 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4590 if test "${ac_cv_prog_egrep+set}" = set; then
4591   echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4594     then ac_cv_prog_egrep='grep -E'
4595     else ac_cv_prog_egrep='egrep'
4596     fi
4597 fi
4598 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4599 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4600  EGREP=$ac_cv_prog_egrep
4601
4602
4603
4604 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4605 if test "${with_gnu_ld+set}" = set; then
4606   withval="$with_gnu_ld"
4607   test "$withval" = no || with_gnu_ld=yes
4608 else
4609   with_gnu_ld=no
4610 fi;
4611 ac_prog=ld
4612 if test "$GCC" = yes; then
4613   # Check if gcc -print-prog-name=ld gives a path.
4614   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4615 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4616   case $host in
4617   *-*-mingw*)
4618     # gcc leaves a trailing carriage return which upsets mingw
4619     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4620   *)
4621     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4622   esac
4623   case $ac_prog in
4624     # Accept absolute paths.
4625     [\\/]* | ?:[\\/]*)
4626       re_direlt='/[^/][^/]*/\.\./'
4627       # Canonicalize the pathname of ld
4628       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4629       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4630         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4631       done
4632       test -z "$LD" && LD="$ac_prog"
4633       ;;
4634   "")
4635     # If it fails, then pretend we aren't using GCC.
4636     ac_prog=ld
4637     ;;
4638   *)
4639     # If it is relative, then search for the first ld in PATH.
4640     with_gnu_ld=unknown
4641     ;;
4642   esac
4643 elif test "$with_gnu_ld" = yes; then
4644   echo "$as_me:$LINENO: checking for GNU ld" >&5
4645 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4646 else
4647   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4648 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4649 fi
4650 if test "${lt_cv_path_LD+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   if test -z "$LD"; then
4654   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4655   for ac_dir in $PATH; do
4656     IFS="$lt_save_ifs"
4657     test -z "$ac_dir" && ac_dir=.
4658     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4659       lt_cv_path_LD="$ac_dir/$ac_prog"
4660       # Check to see if the program is GNU ld.  I'd rather use --version,
4661       # but apparently some GNU ld's only accept -v.
4662       # Break only if it was the GNU/non-GNU ld that we prefer.
4663       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4664       *GNU* | *'with BFD'*)
4665         test "$with_gnu_ld" != no && break
4666         ;;
4667       *)
4668         test "$with_gnu_ld" != yes && break
4669         ;;
4670       esac
4671     fi
4672   done
4673   IFS="$lt_save_ifs"
4674 else
4675   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4676 fi
4677 fi
4678
4679 LD="$lt_cv_path_LD"
4680 if test -n "$LD"; then
4681   echo "$as_me:$LINENO: result: $LD" >&5
4682 echo "${ECHO_T}$LD" >&6
4683 else
4684   echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6
4686 fi
4687 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4688 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4689    { (exit 1); exit 1; }; }
4690 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4691 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4692 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4696 case `$LD -v 2>&1 </dev/null` in
4697 *GNU* | *'with BFD'*)
4698   lt_cv_prog_gnu_ld=yes
4699   ;;
4700 *)
4701   lt_cv_prog_gnu_ld=no
4702   ;;
4703 esac
4704 fi
4705 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4706 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4707 with_gnu_ld=$lt_cv_prog_gnu_ld
4708
4709
4710 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4711 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4712 if test "${lt_cv_ld_reload_flag+set}" = set; then
4713   echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715   lt_cv_ld_reload_flag='-r'
4716 fi
4717 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4718 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4719 reload_flag=$lt_cv_ld_reload_flag
4720 case $reload_flag in
4721 "" | " "*) ;;
4722 *) reload_flag=" $reload_flag" ;;
4723 esac
4724 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4725 case $host_os in
4726   darwin*)
4727     if test "$GCC" = yes; then
4728       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4729     else
4730       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4731     fi
4732     ;;
4733 esac
4734
4735 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4736 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4737 if test "${lt_cv_path_NM+set}" = set; then
4738   echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740   if test -n "$NM"; then
4741   # Let the user override the test.
4742   lt_cv_path_NM="$NM"
4743 else
4744   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4745   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4746     IFS="$lt_save_ifs"
4747     test -z "$ac_dir" && ac_dir=.
4748     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4749     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4750       # Check to see if the nm accepts a BSD-compat flag.
4751       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4752       #   nm: unknown option "B" ignored
4753       # Tru64's nm complains that /dev/null is an invalid object file
4754       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4755       */dev/null* | *'Invalid file or object type'*)
4756         lt_cv_path_NM="$tmp_nm -B"
4757         break
4758         ;;
4759       *)
4760         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4761         */dev/null*)
4762           lt_cv_path_NM="$tmp_nm -p"
4763           break
4764           ;;
4765         *)
4766           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4767           continue # so that we can try to find one that supports BSD flags
4768           ;;
4769         esac
4770       esac
4771     fi
4772   done
4773   IFS="$lt_save_ifs"
4774   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4775 fi
4776 fi
4777 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4778 echo "${ECHO_T}$lt_cv_path_NM" >&6
4779 NM="$lt_cv_path_NM"
4780
4781 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4782 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4783 LN_S=$as_ln_s
4784 if test "$LN_S" = "ln -s"; then
4785   echo "$as_me:$LINENO: result: yes" >&5
4786 echo "${ECHO_T}yes" >&6
4787 else
4788   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4789 echo "${ECHO_T}no, using $LN_S" >&6
4790 fi
4791
4792 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4793 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4794 if test "${lt_cv_deplibs_check_method+set}" = set; then
4795   echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797   lt_cv_file_magic_cmd='$MAGIC_CMD'
4798 lt_cv_file_magic_test_file=
4799 lt_cv_deplibs_check_method='unknown'
4800 # Need to set the preceding variable on all platforms that support
4801 # interlibrary dependencies.
4802 # 'none' -- dependencies not supported.
4803 # `unknown' -- same as none, but documents that we really don't know.
4804 # 'pass_all' -- all dependencies passed with no checks.
4805 # 'test_compile' -- check by making test program.
4806 # 'file_magic [[regex]]' -- check by looking for files in library path
4807 # which responds to the $file_magic_cmd with a given extended regex.
4808 # If you have `file' or equivalent on your system and you're not sure
4809 # whether `pass_all' will *always* work, you probably want this one.
4810
4811 case $host_os in
4812 aix4* | aix5*)
4813   lt_cv_deplibs_check_method=pass_all
4814   ;;
4815
4816 beos*)
4817   lt_cv_deplibs_check_method=pass_all
4818   ;;
4819
4820 bsdi[45]*)
4821   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4822   lt_cv_file_magic_cmd='/usr/bin/file -L'
4823   lt_cv_file_magic_test_file=/shlib/libc.so
4824   ;;
4825
4826 cygwin*)
4827   # func_win32_libid is a shell function defined in ltmain.sh
4828   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4829   lt_cv_file_magic_cmd='func_win32_libid'
4830   ;;
4831
4832 mingw* | pw32*)
4833   # Base MSYS/MinGW do not provide the 'file' command needed by
4834   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4835   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4836   lt_cv_file_magic_cmd='$OBJDUMP -f'
4837   ;;
4838
4839 darwin* | rhapsody*)
4840   lt_cv_deplibs_check_method=pass_all
4841   ;;
4842
4843 freebsd* | kfreebsd*-gnu)
4844   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4845     case $host_cpu in
4846     i*86 )
4847       # Not sure whether the presence of OpenBSD here was a mistake.
4848       # Let's accept both of them until this is cleared up.
4849       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4850       lt_cv_file_magic_cmd=/usr/bin/file
4851       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4852       ;;
4853     esac
4854   else
4855     lt_cv_deplibs_check_method=pass_all
4856   fi
4857   ;;
4858
4859 gnu*)
4860   lt_cv_deplibs_check_method=pass_all
4861   ;;
4862
4863 hpux10.20* | hpux11*)
4864   lt_cv_file_magic_cmd=/usr/bin/file
4865   case "$host_cpu" in
4866   ia64*)
4867     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4868     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4869     ;;
4870   hppa*64*)
4871     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]'
4872     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4873     ;;
4874   *)
4875     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4876     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4877     ;;
4878   esac
4879   ;;
4880
4881 irix5* | irix6* | nonstopux*)
4882   case $LD in
4883   *-32|*"-32 ") libmagic=32-bit;;
4884   *-n32|*"-n32 ") libmagic=N32;;
4885   *-64|*"-64 ") libmagic=64-bit;;
4886   *) libmagic=never-match;;
4887   esac
4888   lt_cv_deplibs_check_method=pass_all
4889   ;;
4890
4891 # This must be Linux ELF.
4892 linux*)
4893   lt_cv_deplibs_check_method=pass_all
4894   ;;
4895
4896 netbsd*)
4897   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4898     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4899   else
4900     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4901   fi
4902   ;;
4903
4904 newos6*)
4905   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4906   lt_cv_file_magic_cmd=/usr/bin/file
4907   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4908   ;;
4909
4910 nto-qnx*)
4911   lt_cv_deplibs_check_method=unknown
4912   ;;
4913
4914 openbsd*)
4915   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4916     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4917   else
4918     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4919   fi
4920   ;;
4921
4922 osf3* | osf4* | osf5*)
4923   lt_cv_deplibs_check_method=pass_all
4924   ;;
4925
4926 sco3.2v5*)
4927   lt_cv_deplibs_check_method=pass_all
4928   ;;
4929
4930 solaris*)
4931   lt_cv_deplibs_check_method=pass_all
4932   ;;
4933
4934 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4935   case $host_vendor in
4936   motorola)
4937     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]'
4938     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4939     ;;
4940   ncr)
4941     lt_cv_deplibs_check_method=pass_all
4942     ;;
4943   sequent)
4944     lt_cv_file_magic_cmd='/bin/file'
4945     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4946     ;;
4947   sni)
4948     lt_cv_file_magic_cmd='/bin/file'
4949     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4950     lt_cv_file_magic_test_file=/lib/libc.so
4951     ;;
4952   siemens)
4953     lt_cv_deplibs_check_method=pass_all
4954     ;;
4955   esac
4956   ;;
4957
4958 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4959   lt_cv_deplibs_check_method=pass_all
4960   ;;
4961 esac
4962
4963 fi
4964 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4965 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4966 file_magic_cmd=$lt_cv_file_magic_cmd
4967 deplibs_check_method=$lt_cv_deplibs_check_method
4968 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4969
4970
4971
4972
4973 # If no C compiler was specified, use CC.
4974 LTCC=${LTCC-"$CC"}
4975
4976 # Allow CC to be a program name with arguments.
4977 compiler=$CC
4978
4979 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4980 if test "${enable_libtool_lock+set}" = set; then
4981   enableval="$enable_libtool_lock"
4982
4983 fi;
4984 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4985
4986 # Some flags need to be propagated to the compiler or linker for good
4987 # libtool support.
4988 case $host in
4989 ia64-*-hpux*)
4990   # Find out which ABI we are using.
4991   echo 'int i;' > conftest.$ac_ext
4992   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993   (eval $ac_compile) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); }; then
4997     case `/usr/bin/file conftest.$ac_objext` in
4998     *ELF-32*)
4999       HPUX_IA64_MODE="32"
5000       ;;
5001     *ELF-64*)
5002       HPUX_IA64_MODE="64"
5003       ;;
5004     esac
5005   fi
5006   rm -rf conftest*
5007   ;;
5008 *-*-irix6*)
5009   # Find out which ABI we are using.
5010   echo '#line 5010 "configure"' > conftest.$ac_ext
5011   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5012   (eval $ac_compile) 2>&5
5013   ac_status=$?
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); }; then
5016    if test "$lt_cv_prog_gnu_ld" = yes; then
5017     case `/usr/bin/file conftest.$ac_objext` in
5018     *32-bit*)
5019       LD="${LD-ld} -melf32bsmip"
5020       ;;
5021     *N32*)
5022       LD="${LD-ld} -melf32bmipn32"
5023       ;;
5024     *64-bit*)
5025       LD="${LD-ld} -melf64bmip"
5026       ;;
5027     esac
5028    else
5029     case `/usr/bin/file conftest.$ac_objext` in
5030     *32-bit*)
5031       LD="${LD-ld} -32"
5032       ;;
5033     *N32*)
5034       LD="${LD-ld} -n32"
5035       ;;
5036     *64-bit*)
5037       LD="${LD-ld} -64"
5038       ;;
5039     esac
5040    fi
5041   fi
5042   rm -rf conftest*
5043   ;;
5044
5045 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5046   # Find out which ABI we are using.
5047   echo 'int i;' > conftest.$ac_ext
5048   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049   (eval $ac_compile) 2>&5
5050   ac_status=$?
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); }; then
5053     case "`/usr/bin/file conftest.o`" in
5054     *32-bit*)
5055       case $host in
5056         x86_64-*linux*)
5057           LD="${LD-ld} -m elf_i386"
5058           ;;
5059         ppc64-*linux*|powerpc64-*linux*)
5060           LD="${LD-ld} -m elf32ppclinux"
5061           ;;
5062         s390x-*linux*)
5063           LD="${LD-ld} -m elf_s390"
5064           ;;
5065         sparc64-*linux*)
5066           LD="${LD-ld} -m elf32_sparc"
5067           ;;
5068       esac
5069       ;;
5070     *64-bit*)
5071       case $host in
5072         x86_64-*linux*)
5073           LD="${LD-ld} -m elf_x86_64"
5074           ;;
5075         ppc*-*linux*|powerpc*-*linux*)
5076           LD="${LD-ld} -m elf64ppc"
5077           ;;
5078         s390*-*linux*)
5079           LD="${LD-ld} -m elf64_s390"
5080           ;;
5081         sparc*-*linux*)
5082           LD="${LD-ld} -m elf64_sparc"
5083           ;;
5084       esac
5085       ;;
5086     esac
5087   fi
5088   rm -rf conftest*
5089   ;;
5090
5091 *-*-sco3.2v5*)
5092   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5093   SAVE_CFLAGS="$CFLAGS"
5094   CFLAGS="$CFLAGS -belf"
5095   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5096 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5097 if test "${lt_cv_cc_needs_belf+set}" = set; then
5098   echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100   ac_ext=c
5101 ac_cpp='$CPP $CPPFLAGS'
5102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105
5106      cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h.  */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h.  */
5112
5113 _ACEOF
5114 rm -f conftest.$ac_objext conftest$ac_exeext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5116   (eval $ac_link) 2>conftest.er1
5117   ac_status=$?
5118   grep -v '^ *+' conftest.er1 >conftest.err
5119   rm -f conftest.er1
5120   cat conftest.err >&5
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); } &&
5123          { ac_try='test -z "$ac_c_werror_flag"
5124                          || test ! -s conftest.err'
5125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126   (eval $ac_try) 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); }; } &&
5130          { ac_try='test -s conftest$ac_exeext'
5131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132   (eval $ac_try) 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); }; }; then
5136   lt_cv_cc_needs_belf=yes
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 lt_cv_cc_needs_belf=no
5142 fi
5143 rm -f conftest.err conftest.$ac_objext \
5144       conftest$ac_exeext conftest.$ac_ext
5145      ac_ext=c
5146 ac_cpp='$CPP $CPPFLAGS'
5147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5150
5151 fi
5152 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5153 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5154   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5155     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5156     CFLAGS="$SAVE_CFLAGS"
5157   fi
5158   ;;
5159
5160 esac
5161
5162 need_locks="$enable_libtool_lock"
5163
5164
5165
5166 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5167 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5168 if test "${ac_cv_header_stdc+set}" = set; then
5169   echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171   cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h.  */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h.  */
5177 #include <stdlib.h>
5178 #include <stdarg.h>
5179 #include <string.h>
5180 #include <float.h>
5181
5182 int
5183 main ()
5184 {
5185
5186   ;
5187   return 0;
5188 }
5189 _ACEOF
5190 rm -f conftest.$ac_objext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5192   (eval $ac_compile) 2>conftest.er1
5193   ac_status=$?
5194   grep -v '^ *+' conftest.er1 >conftest.err
5195   rm -f conftest.er1
5196   cat conftest.err >&5
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); } &&
5199          { ac_try='test -z "$ac_c_werror_flag"
5200                          || test ! -s conftest.err'
5201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202   (eval $ac_try) 2>&5
5203   ac_status=$?
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); }; } &&
5206          { ac_try='test -s conftest.$ac_objext'
5207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208   (eval $ac_try) 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); }; }; then
5212   ac_cv_header_stdc=yes
5213 else
5214   echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5216
5217 ac_cv_header_stdc=no
5218 fi
5219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5220
5221 if test $ac_cv_header_stdc = yes; then
5222   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5223   cat >conftest.$ac_ext <<_ACEOF
5224 /* confdefs.h.  */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h.  */
5229 #include <string.h>
5230
5231 _ACEOF
5232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5233   $EGREP "memchr" >/dev/null 2>&1; then
5234   :
5235 else
5236   ac_cv_header_stdc=no
5237 fi
5238 rm -f conftest*
5239
5240 fi
5241
5242 if test $ac_cv_header_stdc = yes; then
5243   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5244   cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250 #include <stdlib.h>
5251
5252 _ACEOF
5253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5254   $EGREP "free" >/dev/null 2>&1; then
5255   :
5256 else
5257   ac_cv_header_stdc=no
5258 fi
5259 rm -f conftest*
5260
5261 fi
5262
5263 if test $ac_cv_header_stdc = yes; then
5264   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5265   if test "$cross_compiling" = yes; then
5266   :
5267 else
5268   cat >conftest.$ac_ext <<_ACEOF
5269 /* confdefs.h.  */
5270 _ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h.  */
5274 #include <ctype.h>
5275 #if ((' ' & 0x0FF) == 0x020)
5276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5278 #else
5279 # define ISLOWER(c) \
5280                    (('a' <= (c) && (c) <= 'i') \
5281                      || ('j' <= (c) && (c) <= 'r') \
5282                      || ('s' <= (c) && (c) <= 'z'))
5283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5284 #endif
5285
5286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5287 int
5288 main ()
5289 {
5290   int i;
5291   for (i = 0; i < 256; i++)
5292     if (XOR (islower (i), ISLOWER (i))
5293         || toupper (i) != TOUPPER (i))
5294       exit(2);
5295   exit (0);
5296 }
5297 _ACEOF
5298 rm -f conftest$ac_exeext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300   (eval $ac_link) 2>&5
5301   ac_status=$?
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305   (eval $ac_try) 2>&5
5306   ac_status=$?
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); }; }; then
5309   :
5310 else
5311   echo "$as_me: program exited with status $ac_status" >&5
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 ( exit $ac_status )
5316 ac_cv_header_stdc=no
5317 fi
5318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5319 fi
5320 fi
5321 fi
5322 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5323 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5324 if test $ac_cv_header_stdc = yes; then
5325
5326 cat >>confdefs.h <<\_ACEOF
5327 #define STDC_HEADERS 1
5328 _ACEOF
5329
5330 fi
5331
5332 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5343                   inttypes.h stdint.h unistd.h
5344 do
5345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5346 echo "$as_me:$LINENO: checking for $ac_header" >&5
5347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h.  */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h.  */
5357 $ac_includes_default
5358
5359 #include <$ac_header>
5360 _ACEOF
5361 rm -f conftest.$ac_objext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5363   (eval $ac_compile) 2>conftest.er1
5364   ac_status=$?
5365   grep -v '^ *+' conftest.er1 >conftest.err
5366   rm -f conftest.er1
5367   cat conftest.err >&5
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); } &&
5370          { ac_try='test -z "$ac_c_werror_flag"
5371                          || test ! -s conftest.err'
5372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373   (eval $ac_try) 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; } &&
5377          { ac_try='test -s conftest.$ac_objext'
5378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379   (eval $ac_try) 2>&5
5380   ac_status=$?
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); }; }; then
5383   eval "$as_ac_Header=yes"
5384 else
5385   echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5387
5388 eval "$as_ac_Header=no"
5389 fi
5390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5391 fi
5392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5395   cat >>confdefs.h <<_ACEOF
5396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5397 _ACEOF
5398
5399 fi
5400
5401 done
5402
5403
5404
5405 for ac_header in dlfcn.h
5406 do
5407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5409   echo "$as_me:$LINENO: checking for $ac_header" >&5
5410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5412   echo $ECHO_N "(cached) $ECHO_C" >&6
5413 fi
5414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5416 else
5417   # Is the header compilable?
5418 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h.  */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h.  */
5426 $ac_includes_default
5427 #include <$ac_header>
5428 _ACEOF
5429 rm -f conftest.$ac_objext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431   (eval $ac_compile) 2>conftest.er1
5432   ac_status=$?
5433   grep -v '^ *+' conftest.er1 >conftest.err
5434   rm -f conftest.er1
5435   cat conftest.err >&5
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); } &&
5438          { ac_try='test -z "$ac_c_werror_flag"
5439                          || test ! -s conftest.err'
5440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441   (eval $ac_try) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; } &&
5445          { ac_try='test -s conftest.$ac_objext'
5446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447   (eval $ac_try) 2>&5
5448   ac_status=$?
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); }; }; then
5451   ac_header_compiler=yes
5452 else
5453   echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456 ac_header_compiler=no
5457 fi
5458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5460 echo "${ECHO_T}$ac_header_compiler" >&6
5461
5462 # Is the header present?
5463 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5465 cat >conftest.$ac_ext <<_ACEOF
5466 /* confdefs.h.  */
5467 _ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h.  */
5471 #include <$ac_header>
5472 _ACEOF
5473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5475   ac_status=$?
5476   grep -v '^ *+' conftest.er1 >conftest.err
5477   rm -f conftest.er1
5478   cat conftest.err >&5
5479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480   (exit $ac_status); } >/dev/null; then
5481   if test -s conftest.err; then
5482     ac_cpp_err=$ac_c_preproc_warn_flag
5483     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5484   else
5485     ac_cpp_err=
5486   fi
5487 else
5488   ac_cpp_err=yes
5489 fi
5490 if test -z "$ac_cpp_err"; then
5491   ac_header_preproc=yes
5492 else
5493   echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496   ac_header_preproc=no
5497 fi
5498 rm -f conftest.err conftest.$ac_ext
5499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5500 echo "${ECHO_T}$ac_header_preproc" >&6
5501
5502 # So?  What about this header?
5503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5504   yes:no: )
5505     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5509     ac_header_preproc=yes
5510     ;;
5511   no:yes:* )
5512     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5514     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5515 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5516     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5518     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5519 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5522     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5524     (
5525       cat <<\_ASBOX
5526 ## ----------------------------------- ##
5527 ## Report this to llvmbugs@cs.uiuc.edu ##
5528 ## ----------------------------------- ##
5529 _ASBOX
5530     ) |
5531       sed "s/^/$as_me: WARNING:     /" >&2
5532     ;;
5533 esac
5534 echo "$as_me:$LINENO: checking for $ac_header" >&5
5535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5537   echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539   eval "$as_ac_Header=\$ac_header_preproc"
5540 fi
5541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5543
5544 fi
5545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5546   cat >>confdefs.h <<_ACEOF
5547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5548 _ACEOF
5549
5550 fi
5551
5552 done
5553
5554
5555
5556 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5557     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5558     (test "X$CXX" != "Xg++"))) ; then
5559   ac_ext=cc
5560 ac_cpp='$CXXCPP $CPPFLAGS'
5561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5564 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5565 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5566 if test -z "$CXXCPP"; then
5567   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570       # Double quotes because CXXCPP needs to be expanded
5571     for CXXCPP in "$CXX -E" "/lib/cpp"
5572     do
5573       ac_preproc_ok=false
5574 for ac_cxx_preproc_warn_flag in '' yes
5575 do
5576   # Use a header file that comes with gcc, so configuring glibc
5577   # with a fresh cross-compiler works.
5578   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579   # <limits.h> exists even on freestanding compilers.
5580   # On the NeXT, cc -E runs the code through the compiler's parser,
5581   # not just through cpp. "Syntax error" is here to catch this case.
5582   cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h.  */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h.  */
5588 #ifdef __STDC__
5589 # include <limits.h>
5590 #else
5591 # include <assert.h>
5592 #endif
5593                      Syntax error
5594 _ACEOF
5595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5596   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5597   ac_status=$?
5598   grep -v '^ *+' conftest.er1 >conftest.err
5599   rm -f conftest.er1
5600   cat conftest.err >&5
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); } >/dev/null; then
5603   if test -s conftest.err; then
5604     ac_cpp_err=$ac_cxx_preproc_warn_flag
5605     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5606   else
5607     ac_cpp_err=
5608   fi
5609 else
5610   ac_cpp_err=yes
5611 fi
5612 if test -z "$ac_cpp_err"; then
5613   :
5614 else
5615   echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5617
5618   # Broken: fails on valid input.
5619 continue
5620 fi
5621 rm -f conftest.err conftest.$ac_ext
5622
5623   # OK, works on sane cases.  Now check whether non-existent headers
5624   # can be detected and how.
5625   cat >conftest.$ac_ext <<_ACEOF
5626 /* confdefs.h.  */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h.  */
5631 #include <ac_nonexistent.h>
5632 _ACEOF
5633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5634   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5635   ac_status=$?
5636   grep -v '^ *+' conftest.er1 >conftest.err
5637   rm -f conftest.er1
5638   cat conftest.err >&5
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); } >/dev/null; then
5641   if test -s conftest.err; then
5642     ac_cpp_err=$ac_cxx_preproc_warn_flag
5643     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5644   else
5645     ac_cpp_err=
5646   fi
5647 else
5648   ac_cpp_err=yes
5649 fi
5650 if test -z "$ac_cpp_err"; then
5651   # Broken: success on invalid input.
5652 continue
5653 else
5654   echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5656
5657   # Passes both tests.
5658 ac_preproc_ok=:
5659 break
5660 fi
5661 rm -f conftest.err conftest.$ac_ext
5662
5663 done
5664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5665 rm -f conftest.err conftest.$ac_ext
5666 if $ac_preproc_ok; then
5667   break
5668 fi
5669
5670     done
5671     ac_cv_prog_CXXCPP=$CXXCPP
5672
5673 fi
5674   CXXCPP=$ac_cv_prog_CXXCPP
5675 else
5676   ac_cv_prog_CXXCPP=$CXXCPP
5677 fi
5678 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5679 echo "${ECHO_T}$CXXCPP" >&6
5680 ac_preproc_ok=false
5681 for ac_cxx_preproc_warn_flag in '' yes
5682 do
5683   # Use a header file that comes with gcc, so configuring glibc
5684   # with a fresh cross-compiler works.
5685   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5686   # <limits.h> exists even on freestanding compilers.
5687   # On the NeXT, cc -E runs the code through the compiler's parser,
5688   # not just through cpp. "Syntax error" is here to catch this case.
5689   cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h.  */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h.  */
5695 #ifdef __STDC__
5696 # include <limits.h>
5697 #else
5698 # include <assert.h>
5699 #endif
5700                      Syntax error
5701 _ACEOF
5702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5703   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } >/dev/null; then
5710   if test -s conftest.err; then
5711     ac_cpp_err=$ac_cxx_preproc_warn_flag
5712     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5713   else
5714     ac_cpp_err=
5715   fi
5716 else
5717   ac_cpp_err=yes
5718 fi
5719 if test -z "$ac_cpp_err"; then
5720   :
5721 else
5722   echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5724
5725   # Broken: fails on valid input.
5726 continue
5727 fi
5728 rm -f conftest.err conftest.$ac_ext
5729
5730   # OK, works on sane cases.  Now check whether non-existent headers
5731   # can be detected and how.
5732   cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h.  */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h.  */
5738 #include <ac_nonexistent.h>
5739 _ACEOF
5740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5741   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5742   ac_status=$?
5743   grep -v '^ *+' conftest.er1 >conftest.err
5744   rm -f conftest.er1
5745   cat conftest.err >&5
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); } >/dev/null; then
5748   if test -s conftest.err; then
5749     ac_cpp_err=$ac_cxx_preproc_warn_flag
5750     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5751   else
5752     ac_cpp_err=
5753   fi
5754 else
5755   ac_cpp_err=yes
5756 fi
5757 if test -z "$ac_cpp_err"; then
5758   # Broken: success on invalid input.
5759 continue
5760 else
5761   echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764   # Passes both tests.
5765 ac_preproc_ok=:
5766 break
5767 fi
5768 rm -f conftest.err conftest.$ac_ext
5769
5770 done
5771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5772 rm -f conftest.err conftest.$ac_ext
5773 if $ac_preproc_ok; then
5774   :
5775 else
5776   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5777 See \`config.log' for more details." >&5
5778 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5779 See \`config.log' for more details." >&2;}
5780    { (exit 1); exit 1; }; }
5781 fi
5782
5783 ac_ext=cc
5784 ac_cpp='$CXXCPP $CPPFLAGS'
5785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5788
5789 fi
5790
5791
5792 ac_ext=f
5793 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5794 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5796 if test -n "$ac_tool_prefix"; then
5797   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5798   do
5799     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5801 echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5803 if test "${ac_cv_prog_F77+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   if test -n "$F77"; then
5807   ac_cv_prog_F77="$F77" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812   IFS=$as_save_IFS
5813   test -z "$as_dir" && as_dir=.
5814   for ac_exec_ext in '' $ac_executable_extensions; do
5815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818     break 2
5819   fi
5820 done
5821 done
5822
5823 fi
5824 fi
5825 F77=$ac_cv_prog_F77
5826 if test -n "$F77"; then
5827   echo "$as_me:$LINENO: result: $F77" >&5
5828 echo "${ECHO_T}$F77" >&6
5829 else
5830   echo "$as_me:$LINENO: result: no" >&5
5831 echo "${ECHO_T}no" >&6
5832 fi
5833
5834     test -n "$F77" && break
5835   done
5836 fi
5837 if test -z "$F77"; then
5838   ac_ct_F77=$F77
5839   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5840 do
5841   # Extract the first word of "$ac_prog", so it can be a program name with args.
5842 set dummy $ac_prog; ac_word=$2
5843 echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5845 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   if test -n "$ac_ct_F77"; then
5849   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856   for ac_exec_ext in '' $ac_executable_extensions; do
5857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858     ac_cv_prog_ac_ct_F77="$ac_prog"
5859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863 done
5864
5865 fi
5866 fi
5867 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5868 if test -n "$ac_ct_F77"; then
5869   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5870 echo "${ECHO_T}$ac_ct_F77" >&6
5871 else
5872   echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6
5874 fi
5875
5876   test -n "$ac_ct_F77" && break
5877 done
5878
5879   F77=$ac_ct_F77
5880 fi
5881
5882
5883 # Provide some information about the compiler.
5884 echo "$as_me:5884:" \
5885      "checking for Fortran 77 compiler version" >&5
5886 ac_compiler=`set X $ac_compile; echo $2`
5887 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5888   (eval $ac_compiler --version </dev/null >&5) 2>&5
5889   ac_status=$?
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); }
5892 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5893   (eval $ac_compiler -v </dev/null >&5) 2>&5
5894   ac_status=$?
5895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896   (exit $ac_status); }
5897 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5898   (eval $ac_compiler -V </dev/null >&5) 2>&5
5899   ac_status=$?
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); }
5902 rm -f a.out
5903
5904 # If we don't use `.F' as extension, the preprocessor is not run on the
5905 # input file.  (Note that this only needs to work for GNU compilers.)
5906 ac_save_ext=$ac_ext
5907 ac_ext=F
5908 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5909 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5910 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   cat >conftest.$ac_ext <<_ACEOF
5914       program main
5915 #ifndef __GNUC__
5916        choke me
5917 #endif
5918
5919       end
5920 _ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923   (eval $ac_compile) 2>conftest.er1
5924   ac_status=$?
5925   grep -v '^ *+' conftest.er1 >conftest.err
5926   rm -f conftest.er1
5927   cat conftest.err >&5
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } &&
5930          { ac_try='test -z "$ac_f77_werror_flag"
5931                          || test ! -s conftest.err'
5932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933   (eval $ac_try) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; } &&
5937          { ac_try='test -s conftest.$ac_objext'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; }; then
5943   ac_compiler_gnu=yes
5944 else
5945   echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 ac_compiler_gnu=no
5949 fi
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5952
5953 fi
5954 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5955 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5956 ac_ext=$ac_save_ext
5957 ac_test_FFLAGS=${FFLAGS+set}
5958 ac_save_FFLAGS=$FFLAGS
5959 FFLAGS=
5960 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5961 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5962 if test "${ac_cv_prog_f77_g+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   FFLAGS=-g
5966 cat >conftest.$ac_ext <<_ACEOF
5967       program main
5968
5969       end
5970 _ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973   (eval $ac_compile) 2>conftest.er1
5974   ac_status=$?
5975   grep -v '^ *+' conftest.er1 >conftest.err
5976   rm -f conftest.er1
5977   cat conftest.err >&5
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); } &&
5980          { ac_try='test -z "$ac_f77_werror_flag"
5981                          || test ! -s conftest.err'
5982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983   (eval $ac_try) 2>&5
5984   ac_status=$?
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); }; } &&
5987          { ac_try='test -s conftest.$ac_objext'
5988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989   (eval $ac_try) 2>&5
5990   ac_status=$?
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); }; }; then
5993   ac_cv_prog_f77_g=yes
5994 else
5995   echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 ac_cv_prog_f77_g=no
5999 fi
6000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001
6002 fi
6003 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6004 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6005 if test "$ac_test_FFLAGS" = set; then
6006   FFLAGS=$ac_save_FFLAGS
6007 elif test $ac_cv_prog_f77_g = yes; then
6008   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6009     FFLAGS="-g -O2"
6010   else
6011     FFLAGS="-g"
6012   fi
6013 else
6014   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6015     FFLAGS="-O2"
6016   else
6017     FFLAGS=
6018   fi
6019 fi
6020
6021 G77=`test $ac_compiler_gnu = yes && echo yes`
6022 ac_ext=c
6023 ac_cpp='$CPP $CPPFLAGS'
6024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6027
6028
6029
6030 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6031
6032 # find the maximum length of command line arguments
6033 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6034 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6035 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038     i=0
6039   teststring="ABCD"
6040
6041   case $build_os in
6042   msdosdjgpp*)
6043     # On DJGPP, this test can blow up pretty badly due to problems in libc
6044     # (any single argument exceeding 2000 bytes causes a buffer overrun
6045     # during glob expansion).  Even if it were fixed, the result of this
6046     # check would be larger than it should be.
6047     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6048     ;;
6049
6050   gnu*)
6051     # Under GNU Hurd, this test is not required because there is
6052     # no limit to the length of command line arguments.
6053     # Libtool will interpret -1 as no limit whatsoever
6054     lt_cv_sys_max_cmd_len=-1;
6055     ;;
6056
6057   cygwin* | mingw*)
6058     # On Win9x/ME, this test blows up -- it succeeds, but takes
6059     # about 5 minutes as the teststring grows exponentially.
6060     # Worse, since 9x/ME are not pre-emptively multitasking,
6061     # you end up with a "frozen" computer, even though with patience
6062     # the test eventually succeeds (with a max line length of 256k).
6063     # Instead, let's just punt: use the minimum linelength reported by
6064     # all of the supported platforms: 8192 (on NT/2K/XP).
6065     lt_cv_sys_max_cmd_len=8192;
6066     ;;
6067
6068   amigaos*)
6069     # On AmigaOS with pdksh, this test takes hours, literally.
6070     # So we just punt and use a minimum line length of 8192.
6071     lt_cv_sys_max_cmd_len=8192;
6072     ;;
6073
6074   netbsd* | freebsd* | openbsd* | darwin* )
6075     # This has been around since 386BSD, at least.  Likely further.
6076     if test -x /sbin/sysctl; then
6077       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6078     elif test -x /usr/sbin/sysctl; then
6079       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6080     else
6081       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6082     fi
6083     # And add a safety zone
6084     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6085     ;;
6086
6087  *)
6088     # If test is not a shell built-in, we'll probably end up computing a
6089     # maximum length that is only half of the actual maximum length, but
6090     # we can't tell.
6091     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6092     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6093                = "XX$teststring") >/dev/null 2>&1 &&
6094             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6095             lt_cv_sys_max_cmd_len=$new_result &&
6096             test $i != 17 # 1/2 MB should be enough
6097     do
6098       i=`expr $i + 1`
6099       teststring=$teststring$teststring
6100     done
6101     teststring=
6102     # Add a significant safety factor because C++ compilers can tack on massive
6103     # amounts of additional arguments before passing them to the linker.
6104     # It appears as though 1/2 is a usable value.
6105     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6106     ;;
6107   esac
6108
6109 fi
6110
6111 if test -n $lt_cv_sys_max_cmd_len ; then
6112   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6113 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6114 else
6115   echo "$as_me:$LINENO: result: none" >&5
6116 echo "${ECHO_T}none" >&6
6117 fi
6118
6119
6120
6121
6122 # Check for command to grab the raw symbol name followed by C symbol from nm.
6123 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6124 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6125 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6126   echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128
6129 # These are sane defaults that work on at least a few old systems.
6130 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6131
6132 # Character class describing NM global symbol codes.
6133 symcode='[BCDEGRST]'
6134
6135 # Regexp to match symbols that can be accessed directly from C.
6136 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6137
6138 # Transform the above into a raw symbol and a C symbol.
6139 symxfrm='\1 \2\3 \3'
6140
6141 # Transform an extracted symbol line into a proper C declaration
6142 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6143
6144 # Transform an extracted symbol line into symbol name and symbol address
6145 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'"
6146
6147 # Define system-specific variables.
6148 case $host_os in
6149 aix*)
6150   symcode='[BCDT]'
6151   ;;
6152 cygwin* | mingw* | pw32*)
6153   symcode='[ABCDGISTW]'
6154   ;;
6155 hpux*) # Its linker distinguishes data from code symbols
6156   if test "$host_cpu" = ia64; then
6157     symcode='[ABCDEGRST]'
6158   fi
6159   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6160   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'"
6161   ;;
6162 linux*)
6163   if test "$host_cpu" = ia64; then
6164     symcode='[ABCDGIRSTW]'
6165     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6166     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'"
6167   fi
6168   ;;
6169 irix* | nonstopux*)
6170   symcode='[BCDEGRST]'
6171   ;;
6172 osf*)
6173   symcode='[BCDEGQRST]'
6174   ;;
6175 solaris* | sysv5*)
6176   symcode='[BDRT]'
6177   ;;
6178 sysv4)
6179   symcode='[DFNSTU]'
6180   ;;
6181 esac
6182
6183 # Handle CRLF in mingw tool chain
6184 opt_cr=
6185 case $build_os in
6186 mingw*)
6187   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6188   ;;
6189 esac
6190
6191 # If we're using GNU nm, then use its standard symbol codes.
6192 case `$NM -V 2>&1` in
6193 *GNU* | *'with BFD'*)
6194   symcode='[ABCDGIRSTW]' ;;
6195 esac
6196
6197 # Try without a prefix undercore, then with it.
6198 for ac_symprfx in "" "_"; do
6199
6200   # Write the raw and C identifiers.
6201   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6202
6203   # Check to see that the pipe works correctly.
6204   pipe_works=no
6205
6206   rm -f conftest*
6207   cat > conftest.$ac_ext <<EOF
6208 #ifdef __cplusplus
6209 extern "C" {
6210 #endif
6211 char nm_test_var;
6212 void nm_test_func(){}
6213 #ifdef __cplusplus
6214 }
6215 #endif
6216 int main(){nm_test_var='a';nm_test_func();return(0);}
6217 EOF
6218
6219   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6220   (eval $ac_compile) 2>&5
6221   ac_status=$?
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); }; then
6224     # Now try to grab the symbols.
6225     nlist=conftest.nm
6226     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6227   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6228   ac_status=$?
6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); } && test -s "$nlist"; then
6231       # Try sorting and uniquifying the output.
6232       if sort "$nlist" | uniq > "$nlist"T; then
6233         mv -f "$nlist"T "$nlist"
6234       else
6235         rm -f "$nlist"T
6236       fi
6237
6238       # Make sure that we snagged all the symbols we need.
6239       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6240         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6241           cat <<EOF > conftest.$ac_ext
6242 #ifdef __cplusplus
6243 extern "C" {
6244 #endif
6245
6246 EOF
6247           # Now generate the symbol file.
6248           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6249
6250           cat <<EOF >> conftest.$ac_ext
6251 #if defined (__STDC__) && __STDC__
6252 # define lt_ptr_t void *
6253 #else
6254 # define lt_ptr_t char *
6255 # define const
6256 #endif
6257
6258 /* The mapping between symbol names and symbols. */
6259 const struct {
6260   const char *name;
6261   lt_ptr_t address;
6262 }
6263 lt_preloaded_symbols[] =
6264 {
6265 EOF
6266           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6267           cat <<\EOF >> conftest.$ac_ext
6268   {0, (lt_ptr_t) 0}
6269 };
6270
6271 #ifdef __cplusplus
6272 }
6273 #endif
6274 EOF
6275           # Now try linking the two files.
6276           mv conftest.$ac_objext conftstm.$ac_objext
6277           lt_save_LIBS="$LIBS"
6278           lt_save_CFLAGS="$CFLAGS"
6279           LIBS="conftstm.$ac_objext"
6280           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6281           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282   (eval $ac_link) 2>&5
6283   ac_status=$?
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6286             pipe_works=yes
6287           fi
6288           LIBS="$lt_save_LIBS"
6289           CFLAGS="$lt_save_CFLAGS"
6290         else
6291           echo "cannot find nm_test_func in $nlist" >&5
6292         fi
6293       else
6294         echo "cannot find nm_test_var in $nlist" >&5
6295       fi
6296     else
6297       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6298     fi
6299   else
6300     echo "$progname: failed program was:" >&5
6301     cat conftest.$ac_ext >&5
6302   fi
6303   rm -f conftest* conftst*
6304
6305   # Do not use the global_symbol_pipe unless it works.
6306   if test "$pipe_works" = yes; then
6307     break
6308   else
6309     lt_cv_sys_global_symbol_pipe=
6310   fi
6311 done
6312
6313 fi
6314
6315 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6316   lt_cv_sys_global_symbol_to_cdecl=
6317 fi
6318 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6319   echo "$as_me:$LINENO: result: failed" >&5
6320 echo "${ECHO_T}failed" >&6
6321 else
6322   echo "$as_me:$LINENO: result: ok" >&5
6323 echo "${ECHO_T}ok" >&6
6324 fi
6325
6326 echo "$as_me:$LINENO: checking for objdir" >&5
6327 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6328 if test "${lt_cv_objdir+set}" = set; then
6329   echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331   rm -f .libs 2>/dev/null
6332 mkdir .libs 2>/dev/null
6333 if test -d .libs; then
6334   lt_cv_objdir=.libs
6335 else
6336   # MS-DOS does not allow filenames that begin with a dot.
6337   lt_cv_objdir=_libs
6338 fi
6339 rmdir .libs 2>/dev/null
6340 fi
6341 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6342 echo "${ECHO_T}$lt_cv_objdir" >&6
6343 objdir=$lt_cv_objdir
6344
6345
6346
6347
6348
6349 case $host_os in
6350 aix3*)
6351   # AIX sometimes has problems with the GCC collect2 program.  For some
6352   # reason, if we set the COLLECT_NAMES environment variable, the problems
6353   # vanish in a puff of smoke.
6354   if test "X${COLLECT_NAMES+set}" != Xset; then
6355     COLLECT_NAMES=
6356     export COLLECT_NAMES
6357   fi
6358   ;;
6359 esac
6360
6361 # Sed substitution that helps us do robust quoting.  It backslashifies
6362 # metacharacters that are still active within double-quoted strings.
6363 Xsed='sed -e s/^X//'
6364 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6365
6366 # Same as above, but do not quote variable references.
6367 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6368
6369 # Sed substitution to delay expansion of an escaped shell variable in a
6370 # double_quote_subst'ed string.
6371 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6372
6373 # Sed substitution to avoid accidental globbing in evaled expressions
6374 no_glob_subst='s/\*/\\\*/g'
6375
6376 # Constants:
6377 rm="rm -f"
6378
6379 # Global variables:
6380 default_ofile=mklib
6381 can_build_shared=yes
6382
6383 # All known linkers require a `.a' archive for static linking (except M$VC,
6384 # which needs '.lib').
6385 libext=a
6386 ltmain="$ac_aux_dir/ltmain.sh"
6387 ofile="$default_ofile"
6388 with_gnu_ld="$lt_cv_prog_gnu_ld"
6389
6390 if test -n "$ac_tool_prefix"; then
6391   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6392 set dummy ${ac_tool_prefix}ar; ac_word=$2
6393 echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6395 if test "${ac_cv_prog_AR+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   if test -n "$AR"; then
6399   ac_cv_prog_AR="$AR" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406   for ac_exec_ext in '' $ac_executable_extensions; do
6407   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408     ac_cv_prog_AR="${ac_tool_prefix}ar"
6409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413 done
6414
6415 fi
6416 fi
6417 AR=$ac_cv_prog_AR
6418 if test -n "$AR"; then
6419   echo "$as_me:$LINENO: result: $AR" >&5
6420 echo "${ECHO_T}$AR" >&6
6421 else
6422   echo "$as_me:$LINENO: result: no" >&5
6423 echo "${ECHO_T}no" >&6
6424 fi
6425
6426 fi
6427 if test -z "$ac_cv_prog_AR"; then
6428   ac_ct_AR=$AR
6429   # Extract the first word of "ar", so it can be a program name with args.
6430 set dummy ar; ac_word=$2
6431 echo "$as_me:$LINENO: checking for $ac_word" >&5
6432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6433 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6434   echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436   if test -n "$ac_ct_AR"; then
6437   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442   IFS=$as_save_IFS
6443   test -z "$as_dir" && as_dir=.
6444   for ac_exec_ext in '' $ac_executable_extensions; do
6445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6446     ac_cv_prog_ac_ct_AR="ar"
6447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448     break 2
6449   fi
6450 done
6451 done
6452
6453   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6454 fi
6455 fi
6456 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6457 if test -n "$ac_ct_AR"; then
6458   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6459 echo "${ECHO_T}$ac_ct_AR" >&6
6460 else
6461   echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6
6463 fi
6464
6465   AR=$ac_ct_AR
6466 else
6467   AR="$ac_cv_prog_AR"
6468 fi
6469
6470 if test -n "$ac_tool_prefix"; then
6471   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6473 echo "$as_me:$LINENO: checking for $ac_word" >&5
6474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6475 if test "${ac_cv_prog_RANLIB+set}" = set; then
6476   echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478   if test -n "$RANLIB"; then
6479   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484   IFS=$as_save_IFS
6485   test -z "$as_dir" && as_dir=.
6486   for ac_exec_ext in '' $ac_executable_extensions; do
6487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6490     break 2
6491   fi
6492 done
6493 done
6494
6495 fi
6496 fi
6497 RANLIB=$ac_cv_prog_RANLIB
6498 if test -n "$RANLIB"; then
6499   echo "$as_me:$LINENO: result: $RANLIB" >&5
6500 echo "${ECHO_T}$RANLIB" >&6
6501 else
6502   echo "$as_me:$LINENO: result: no" >&5
6503 echo "${ECHO_T}no" >&6
6504 fi
6505
6506 fi
6507 if test -z "$ac_cv_prog_RANLIB"; then
6508   ac_ct_RANLIB=$RANLIB
6509   # Extract the first word of "ranlib", so it can be a program name with args.
6510 set dummy ranlib; ac_word=$2
6511 echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6513 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516   if test -n "$ac_ct_RANLIB"; then
6517   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522   IFS=$as_save_IFS
6523   test -z "$as_dir" && as_dir=.
6524   for ac_exec_ext in '' $ac_executable_extensions; do
6525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526     ac_cv_prog_ac_ct_RANLIB="ranlib"
6527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528     break 2
6529   fi
6530 done
6531 done
6532
6533   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6534 fi
6535 fi
6536 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6537 if test -n "$ac_ct_RANLIB"; then
6538   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6539 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6540 else
6541   echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6
6543 fi
6544
6545   RANLIB=$ac_ct_RANLIB
6546 else
6547   RANLIB="$ac_cv_prog_RANLIB"
6548 fi
6549
6550 if test -n "$ac_tool_prefix"; then
6551   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6552 set dummy ${ac_tool_prefix}strip; ac_word=$2
6553 echo "$as_me:$LINENO: checking for $ac_word" >&5
6554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6555 if test "${ac_cv_prog_STRIP+set}" = set; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558   if test -n "$STRIP"; then
6559   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564   IFS=$as_save_IFS
6565   test -z "$as_dir" && as_dir=.
6566   for ac_exec_ext in '' $ac_executable_extensions; do
6567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570     break 2
6571   fi
6572 done
6573 done
6574
6575 fi
6576 fi
6577 STRIP=$ac_cv_prog_STRIP
6578 if test -n "$STRIP"; then
6579   echo "$as_me:$LINENO: result: $STRIP" >&5
6580 echo "${ECHO_T}$STRIP" >&6
6581 else
6582   echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6
6584 fi
6585
6586 fi
6587 if test -z "$ac_cv_prog_STRIP"; then
6588   ac_ct_STRIP=$STRIP
6589   # Extract the first word of "strip", so it can be a program name with args.
6590 set dummy strip; ac_word=$2
6591 echo "$as_me:$LINENO: checking for $ac_word" >&5
6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6594   echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596   if test -n "$ac_ct_STRIP"; then
6597   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602   IFS=$as_save_IFS
6603   test -z "$as_dir" && as_dir=.
6604   for ac_exec_ext in '' $ac_executable_extensions; do
6605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606     ac_cv_prog_ac_ct_STRIP="strip"
6607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608     break 2
6609   fi
6610 done
6611 done
6612
6613   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6614 fi
6615 fi
6616 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6617 if test -n "$ac_ct_STRIP"; then
6618   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6619 echo "${ECHO_T}$ac_ct_STRIP" >&6
6620 else
6621   echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6
6623 fi
6624
6625   STRIP=$ac_ct_STRIP
6626 else
6627   STRIP="$ac_cv_prog_STRIP"
6628 fi
6629
6630
6631 old_CC="$CC"
6632 old_CFLAGS="$CFLAGS"
6633
6634 # Set sane defaults for various variables
6635 test -z "$AR" && AR=ar
6636 test -z "$AR_FLAGS" && AR_FLAGS=cru
6637 test -z "$AS" && AS=as
6638 test -z "$CC" && CC=cc
6639 test -z "$LTCC" && LTCC=$CC
6640 test -z "$DLLTOOL" && DLLTOOL=dlltool
6641 test -z "$LD" && LD=ld
6642 test -z "$LN_S" && LN_S="ln -s"
6643 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6644 test -z "$NM" && NM=nm
6645 test -z "$SED" && SED=sed
6646 test -z "$OBJDUMP" && OBJDUMP=objdump
6647 test -z "$RANLIB" && RANLIB=:
6648 test -z "$STRIP" && STRIP=:
6649 test -z "$ac_objext" && ac_objext=o
6650
6651 # Determine commands to create old-style static archives.
6652 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6653 old_postinstall_cmds='chmod 644 $oldlib'
6654 old_postuninstall_cmds=
6655
6656 if test -n "$RANLIB"; then
6657   case $host_os in
6658   openbsd*)
6659     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6660     ;;
6661   *)
6662     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6663     ;;
6664   esac
6665   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6666 fi
6667
6668 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6669
6670 # Only perform the check for file, if the check method requires it
6671 case $deplibs_check_method in
6672 file_magic*)
6673   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6674     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6675 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6676 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6677   echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679   case $MAGIC_CMD in
6680 [\\/*] |  ?:[\\/]*)
6681   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6682   ;;
6683 *)
6684   lt_save_MAGIC_CMD="$MAGIC_CMD"
6685   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6686   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6687   for ac_dir in $ac_dummy; do
6688     IFS="$lt_save_ifs"
6689     test -z "$ac_dir" && ac_dir=.
6690     if test -f $ac_dir/${ac_tool_prefix}file; then
6691       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6692       if test -n "$file_magic_test_file"; then
6693         case $deplibs_check_method in
6694         "file_magic "*)
6695           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6696           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6697           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6698             $EGREP "$file_magic_regex" > /dev/null; then
6699             :
6700           else
6701             cat <<EOF 1>&2
6702
6703 *** Warning: the command libtool uses to detect shared libraries,
6704 *** $file_magic_cmd, produces output that libtool cannot recognize.
6705 *** The result is that libtool may fail to recognize shared libraries
6706 *** as such.  This will affect the creation of libtool libraries that
6707 *** depend on shared libraries, but programs linked with such libtool
6708 *** libraries will work regardless of this problem.  Nevertheless, you
6709 *** may want to report the problem to your system manager and/or to
6710 *** bug-libtool@gnu.org
6711
6712 EOF
6713           fi ;;
6714         esac
6715       fi
6716       break
6717     fi
6718   done
6719   IFS="$lt_save_ifs"
6720   MAGIC_CMD="$lt_save_MAGIC_CMD"
6721   ;;
6722 esac
6723 fi
6724
6725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6726 if test -n "$MAGIC_CMD"; then
6727   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6728 echo "${ECHO_T}$MAGIC_CMD" >&6
6729 else
6730   echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6
6732 fi
6733
6734 if test -z "$lt_cv_path_MAGIC_CMD"; then
6735   if test -n "$ac_tool_prefix"; then
6736     echo "$as_me:$LINENO: checking for file" >&5
6737 echo $ECHO_N "checking for file... $ECHO_C" >&6
6738 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6739   echo $ECHO_N "(cached) $ECHO_C" >&6
6740 else
6741   case $MAGIC_CMD in
6742 [\\/*] |  ?:[\\/]*)
6743   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6744   ;;
6745 *)
6746   lt_save_MAGIC_CMD="$MAGIC_CMD"
6747   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6748   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6749   for ac_dir in $ac_dummy; do
6750     IFS="$lt_save_ifs"
6751     test -z "$ac_dir" && ac_dir=.
6752     if test -f $ac_dir/file; then
6753       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6754       if test -n "$file_magic_test_file"; then
6755         case $deplibs_check_method in
6756         "file_magic "*)
6757           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6758           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6759           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6760             $EGREP "$file_magic_regex" > /dev/null; then
6761             :
6762           else
6763             cat <<EOF 1>&2
6764
6765 *** Warning: the command libtool uses to detect shared libraries,
6766 *** $file_magic_cmd, produces output that libtool cannot recognize.
6767 *** The result is that libtool may fail to recognize shared libraries
6768 *** as such.  This will affect the creation of libtool libraries that
6769 *** depend on shared libraries, but programs linked with such libtool
6770 *** libraries will work regardless of this problem.  Nevertheless, you
6771 *** may want to report the problem to your system manager and/or to
6772 *** bug-libtool@gnu.org
6773
6774 EOF
6775           fi ;;
6776         esac
6777       fi
6778       break
6779     fi
6780   done
6781   IFS="$lt_save_ifs"
6782   MAGIC_CMD="$lt_save_MAGIC_CMD"
6783   ;;
6784 esac
6785 fi
6786
6787 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6788 if test -n "$MAGIC_CMD"; then
6789   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6790 echo "${ECHO_T}$MAGIC_CMD" >&6
6791 else
6792   echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6
6794 fi
6795
6796   else
6797     MAGIC_CMD=:
6798   fi
6799 fi
6800
6801   fi
6802   ;;
6803 esac
6804
6805 enable_dlopen=yes
6806 enable_win32_dll=no
6807
6808 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6809 if test "${enable_libtool_lock+set}" = set; then
6810   enableval="$enable_libtool_lock"
6811
6812 fi;
6813 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6814
6815
6816 # Check whether --with-pic or --without-pic was given.
6817 if test "${with_pic+set}" = set; then
6818   withval="$with_pic"
6819   pic_mode="$withval"
6820 else
6821   pic_mode=default
6822 fi;
6823 test -z "$pic_mode" && pic_mode=default
6824
6825 # Use C for the default configuration in the libtool script
6826 tagname=
6827 lt_save_CC="$CC"
6828 ac_ext=c
6829 ac_cpp='$CPP $CPPFLAGS'
6830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6833
6834
6835 # Source file extension for C test sources.
6836 ac_ext=c
6837
6838 # Object file extension for compiled C test sources.
6839 objext=o
6840 objext=$objext
6841
6842 # Code to be used in simple compile tests
6843 lt_simple_compile_test_code="int some_variable = 0;\n"
6844
6845 # Code to be used in simple link tests
6846 lt_simple_link_test_code='int main(){return(0);}\n'
6847
6848
6849 # If no C compiler was specified, use CC.
6850 LTCC=${LTCC-"$CC"}
6851
6852 # Allow CC to be a program name with arguments.
6853 compiler=$CC
6854
6855
6856 #
6857 # Check for any special shared library compilation flags.
6858 #
6859 lt_prog_cc_shlib=
6860 if test "$GCC" = no; then
6861   case $host_os in
6862   sco3.2v5*)
6863     lt_prog_cc_shlib='-belf'
6864     ;;
6865   esac
6866 fi
6867 if test -n "$lt_prog_cc_shlib"; then
6868   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6869 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6870   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6871   else
6872     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6873 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6874     lt_cv_prog_cc_can_build_shared=no
6875   fi
6876 fi
6877
6878
6879 #
6880 # Check to make sure the static flag actually works.
6881 #
6882 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6883 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6884 if test "${lt_prog_compiler_static_works+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   lt_prog_compiler_static_works=no
6888    save_LDFLAGS="$LDFLAGS"
6889    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6890    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6891    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6892      # The compiler can only warn and ignore the option if not recognized
6893      # So say no if there are warnings
6894      if test -s conftest.err; then
6895        # Append any errors to the config.log.
6896        cat conftest.err 1>&5
6897      else
6898        lt_prog_compiler_static_works=yes
6899      fi
6900    fi
6901    $rm conftest*
6902    LDFLAGS="$save_LDFLAGS"
6903
6904 fi
6905 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6906 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6907
6908 if test x"$lt_prog_compiler_static_works" = xyes; then
6909     :
6910 else
6911     lt_prog_compiler_static=
6912 fi
6913
6914
6915
6916
6917 lt_prog_compiler_no_builtin_flag=
6918
6919 if test "$GCC" = yes; then
6920   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6921
6922
6923 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6924 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6925 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   lt_cv_prog_compiler_rtti_exceptions=no
6929   ac_outfile=conftest.$ac_objext
6930    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6931    lt_compiler_flag="-fno-rtti -fno-exceptions"
6932    # Insert the option either (1) after the last *FLAGS variable, or
6933    # (2) before a word containing "conftest.", or (3) at the end.
6934    # Note that $ac_compile itself does not contain backslashes and begins
6935    # with a dollar sign (not a hyphen), so the echo should work correctly.
6936    # The option is referenced via a variable to avoid confusing sed.
6937    lt_compile=`echo "$ac_compile" | $SED \
6938    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6939    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6940    -e 's:$: $lt_compiler_flag:'`
6941    (eval echo "\"\$as_me:6941: $lt_compile\"" >&5)
6942    (eval "$lt_compile" 2>conftest.err)
6943    ac_status=$?
6944    cat conftest.err >&5
6945    echo "$as_me:6945: \$? = $ac_status" >&5
6946    if (exit $ac_status) && test -s "$ac_outfile"; then
6947      # The compiler can only warn and ignore the option if not recognized
6948      # So say no if there are warnings
6949      if test ! -s conftest.err; then
6950        lt_cv_prog_compiler_rtti_exceptions=yes
6951      fi
6952    fi
6953    $rm conftest*
6954
6955 fi
6956 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6957 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6958
6959 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6960     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6961 else
6962     :
6963 fi
6964
6965 fi
6966
6967 lt_prog_compiler_wl=
6968 lt_prog_compiler_pic=
6969 lt_prog_compiler_static=
6970
6971 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6972 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6973
6974   if test "$GCC" = yes; then
6975     lt_prog_compiler_wl='-Wl,'
6976     lt_prog_compiler_static='-static'
6977
6978     case $host_os in
6979       aix*)
6980       # All AIX code is PIC.
6981       if test "$host_cpu" = ia64; then
6982         # AIX 5 now supports IA64 processor
6983         lt_prog_compiler_static='-Bstatic'
6984       fi
6985       ;;
6986
6987     amigaos*)
6988       # FIXME: we need at least 68020 code to build shared libraries, but
6989       # adding the `-m68020' flag to GCC prevents building anything better,
6990       # like `-m68040'.
6991       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6992       ;;
6993
6994     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6995       # PIC is the default for these OSes.
6996       ;;
6997
6998     mingw* | pw32* | os2*)
6999       # This hack is so that the source file can tell whether it is being
7000       # built for inclusion in a dll (and should export symbols for example).
7001       lt_prog_compiler_pic='-DDLL_EXPORT'
7002       ;;
7003
7004     darwin* | rhapsody*)
7005       # PIC is the default on this platform
7006       # Common symbols not allowed in MH_DYLIB files
7007       lt_prog_compiler_pic='-fno-common'
7008       ;;
7009
7010     msdosdjgpp*)
7011       # Just because we use GCC doesn't mean we suddenly get shared libraries
7012       # on systems that don't support them.
7013       lt_prog_compiler_can_build_shared=no
7014       enable_shared=no
7015       ;;
7016
7017     sysv4*MP*)
7018       if test -d /usr/nec; then
7019         lt_prog_compiler_pic=-Kconform_pic
7020       fi
7021       ;;
7022
7023     hpux*)
7024       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7025       # not for PA HP-UX.
7026       case "$host_cpu" in
7027       hppa*64*|ia64*)
7028         # +Z the default
7029         ;;
7030       *)
7031         lt_prog_compiler_pic='-fPIC'
7032         ;;
7033       esac
7034       ;;
7035
7036     *)
7037       lt_prog_compiler_pic='-fPIC'
7038       ;;
7039     esac
7040   else
7041     # PORTME Check for flag to pass linker flags through the system compiler.
7042     case $host_os in
7043     aix*)
7044       lt_prog_compiler_wl='-Wl,'
7045       if test "$host_cpu" = ia64; then
7046         # AIX 5 now supports IA64 processor
7047         lt_prog_compiler_static='-Bstatic'
7048       else
7049         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7050       fi
7051       ;;
7052       darwin*)
7053         # PIC is the default on this platform
7054         # Common symbols not allowed in MH_DYLIB files
7055        case "$cc_basename" in
7056          xlc*)
7057          lt_prog_compiler_pic='-qnocommon'
7058          lt_prog_compiler_wl='-Wl,'
7059          ;;
7060        esac
7061        ;;
7062
7063     mingw* | pw32* | os2*)
7064       # This hack is so that the source file can tell whether it is being
7065       # built for inclusion in a dll (and should export symbols for example).
7066       lt_prog_compiler_pic='-DDLL_EXPORT'
7067       ;;
7068
7069     hpux9* | hpux10* | hpux11*)
7070       lt_prog_compiler_wl='-Wl,'
7071       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7072       # not for PA HP-UX.
7073       case "$host_cpu" in
7074       hppa*64*|ia64*)
7075         # +Z the default
7076         ;;
7077       *)
7078         lt_prog_compiler_pic='+Z'
7079         ;;
7080       esac
7081       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7082       lt_prog_compiler_static='${wl}-a ${wl}archive'
7083       ;;
7084
7085     irix5* | irix6* | nonstopux*)
7086       lt_prog_compiler_wl='-Wl,'
7087       # PIC (with -KPIC) is the default.
7088       lt_prog_compiler_static='-non_shared'
7089       ;;
7090
7091     newsos6)
7092       lt_prog_compiler_pic='-KPIC'
7093       lt_prog_compiler_static='-Bstatic'
7094       ;;
7095
7096     linux*)
7097       case $CC in
7098       icc* | ecc*)
7099         lt_prog_compiler_wl='-Wl,'
7100         lt_prog_compiler_pic='-KPIC'
7101         lt_prog_compiler_static='-static'
7102         ;;
7103       ccc*)
7104         lt_prog_compiler_wl='-Wl,'
7105         # All Alpha code is PIC.
7106         lt_prog_compiler_static='-non_shared'
7107         ;;
7108       esac
7109       ;;
7110
7111     osf3* | osf4* | osf5*)
7112       lt_prog_compiler_wl='-Wl,'
7113       # All OSF/1 code is PIC.
7114       lt_prog_compiler_static='-non_shared'
7115       ;;
7116
7117     sco3.2v5*)
7118       lt_prog_compiler_pic='-Kpic'
7119       lt_prog_compiler_static='-dn'
7120       ;;
7121
7122     solaris*)
7123       lt_prog_compiler_wl='-Wl,'
7124       lt_prog_compiler_pic='-KPIC'
7125       lt_prog_compiler_static='-Bstatic'
7126       ;;
7127
7128     sunos4*)
7129       lt_prog_compiler_wl='-Qoption ld '
7130       lt_prog_compiler_pic='-PIC'
7131       lt_prog_compiler_static='-Bstatic'
7132       ;;
7133
7134     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7135       lt_prog_compiler_wl='-Wl,'
7136       lt_prog_compiler_pic='-KPIC'
7137       lt_prog_compiler_static='-Bstatic'
7138       ;;
7139
7140     sysv4*MP*)
7141       if test -d /usr/nec ;then
7142         lt_prog_compiler_pic='-Kconform_pic'
7143         lt_prog_compiler_static='-Bstatic'
7144       fi
7145       ;;
7146
7147     uts4*)
7148       lt_prog_compiler_pic='-pic'
7149       lt_prog_compiler_static='-Bstatic'
7150       ;;
7151
7152     *)
7153       lt_prog_compiler_can_build_shared=no
7154       ;;
7155     esac
7156   fi
7157
7158 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7159 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7160
7161 #
7162 # Check to make sure the PIC flag actually works.
7163 #
7164 if test -n "$lt_prog_compiler_pic"; then
7165
7166 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7167 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7168 if test "${lt_prog_compiler_pic_works+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171   lt_prog_compiler_pic_works=no
7172   ac_outfile=conftest.$ac_objext
7173    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7174    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7175    # Insert the option either (1) after the last *FLAGS variable, or
7176    # (2) before a word containing "conftest.", or (3) at the end.
7177    # Note that $ac_compile itself does not contain backslashes and begins
7178    # with a dollar sign (not a hyphen), so the echo should work correctly.
7179    # The option is referenced via a variable to avoid confusing sed.
7180    lt_compile=`echo "$ac_compile" | $SED \
7181    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7182    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7183    -e 's:$: $lt_compiler_flag:'`
7184    (eval echo "\"\$as_me:7184: $lt_compile\"" >&5)
7185    (eval "$lt_compile" 2>conftest.err)
7186    ac_status=$?
7187    cat conftest.err >&5
7188    echo "$as_me:7188: \$? = $ac_status" >&5
7189    if (exit $ac_status) && test -s "$ac_outfile"; then
7190      # The compiler can only warn and ignore the option if not recognized
7191      # So say no if there are warnings
7192      if test ! -s conftest.err; then
7193        lt_prog_compiler_pic_works=yes
7194      fi
7195    fi
7196    $rm conftest*
7197
7198 fi
7199 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7200 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7201
7202 if test x"$lt_prog_compiler_pic_works" = xyes; then
7203     case $lt_prog_compiler_pic in
7204      "" | " "*) ;;
7205      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7206      esac
7207 else
7208     lt_prog_compiler_pic=
7209      lt_prog_compiler_can_build_shared=no
7210 fi
7211
7212 fi
7213 case "$host_os" in
7214   # For platforms which do not support PIC, -DPIC is meaningless:
7215   *djgpp*)
7216     lt_prog_compiler_pic=
7217     ;;
7218   *)
7219     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7220     ;;
7221 esac
7222
7223 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7224 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7225 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   lt_cv_prog_compiler_c_o=no
7229    $rm -r conftest 2>/dev/null
7230    mkdir conftest
7231    cd conftest
7232    mkdir out
7233    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7234
7235    lt_compiler_flag="-o out/conftest2.$ac_objext"
7236    # Insert the option either (1) after the last *FLAGS variable, or
7237    # (2) before a word containing "conftest.", or (3) at the end.
7238    # Note that $ac_compile itself does not contain backslashes and begins
7239    # with a dollar sign (not a hyphen), so the echo should work correctly.
7240    lt_compile=`echo "$ac_compile" | $SED \
7241    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7242    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7243    -e 's:$: $lt_compiler_flag:'`
7244    (eval echo "\"\$as_me:7244: $lt_compile\"" >&5)
7245    (eval "$lt_compile" 2>out/conftest.err)
7246    ac_status=$?
7247    cat out/conftest.err >&5
7248    echo "$as_me:7248: \$? = $ac_status" >&5
7249    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7250    then
7251      # The compiler can only warn and ignore the option if not recognized
7252      # So say no if there are warnings
7253      if test ! -s out/conftest.err; then
7254        lt_cv_prog_compiler_c_o=yes
7255      fi
7256    fi
7257    chmod u+w .
7258    $rm conftest*
7259    # SGI C++ compiler will create directory out/ii_files/ for
7260    # template instantiation
7261    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7262    $rm out/* && rmdir out
7263    cd ..
7264    rmdir conftest
7265    $rm conftest*
7266
7267 fi
7268 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7269 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7270
7271
7272 hard_links="nottested"
7273 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7274   # do not overwrite the value of need_locks provided by the user
7275   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7276 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7277   hard_links=yes
7278   $rm conftest*
7279   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7280   touch conftest.a
7281   ln conftest.a conftest.b 2>&5 || hard_links=no
7282   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7283   echo "$as_me:$LINENO: result: $hard_links" >&5
7284 echo "${ECHO_T}$hard_links" >&6
7285   if test "$hard_links" = no; then
7286     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7287 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7288     need_locks=warn
7289   fi
7290 else
7291   need_locks=no
7292 fi
7293
7294 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7295 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7296
7297   runpath_var=
7298   allow_undefined_flag=
7299   enable_shared_with_static_runtimes=no
7300   archive_cmds=
7301   archive_expsym_cmds=
7302   old_archive_From_new_cmds=
7303   old_archive_from_expsyms_cmds=
7304   export_dynamic_flag_spec=
7305   whole_archive_flag_spec=
7306   thread_safe_flag_spec=
7307   hardcode_libdir_flag_spec=
7308   hardcode_libdir_flag_spec_ld=
7309   hardcode_libdir_separator=
7310   hardcode_direct=no
7311   hardcode_minus_L=no
7312   hardcode_shlibpath_var=unsupported
7313   link_all_deplibs=unknown
7314   hardcode_automatic=no
7315   module_cmds=
7316   module_expsym_cmds=
7317   always_export_symbols=no
7318   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7319   # include_expsyms should be a list of space-separated symbols to be *always*
7320   # included in the symbol list
7321   include_expsyms=
7322   # exclude_expsyms can be an extended regexp of symbols to exclude
7323   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7324   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7325   # as well as any symbol that contains `d'.
7326   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7327   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7328   # platforms (ab)use it in PIC code, but their linkers get confused if
7329   # the symbol is explicitly referenced.  Since portable code cannot
7330   # rely on this symbol name, it's probably fine to never include it in
7331   # preloaded symbol tables.
7332   extract_expsyms_cmds=
7333
7334   case $host_os in
7335   cygwin* | mingw* | pw32*)
7336     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7337     # When not using gcc, we currently assume that we are using
7338     # Microsoft Visual C++.
7339     if test "$GCC" != yes; then
7340       with_gnu_ld=no
7341     fi
7342     ;;
7343   openbsd*)
7344     with_gnu_ld=no
7345     ;;
7346   esac
7347
7348   ld_shlibs=yes
7349   if test "$with_gnu_ld" = yes; then
7350     # If archive_cmds runs LD, not CC, wlarc should be empty
7351     wlarc='${wl}'
7352
7353     # See if GNU ld supports shared libraries.
7354     case $host_os in
7355     aix3* | aix4* | aix5*)
7356       # On AIX/PPC, the GNU linker is very broken
7357       if test "$host_cpu" != ia64; then
7358         ld_shlibs=no
7359         cat <<EOF 1>&2
7360
7361 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7362 *** to be unable to reliably create shared libraries on AIX.
7363 *** Therefore, libtool is disabling shared libraries support.  If you
7364 *** really care for shared libraries, you may want to modify your PATH
7365 *** so that a non-GNU linker is found, and then restart.
7366
7367 EOF
7368       fi
7369       ;;
7370
7371     amigaos*)
7372       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)'
7373       hardcode_libdir_flag_spec='-L$libdir'
7374       hardcode_minus_L=yes
7375
7376       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7377       # that the semantics of dynamic libraries on AmigaOS, at least up
7378       # to version 4, is to share data among multiple programs linked
7379       # with the same dynamic library.  Since this doesn't match the
7380       # behavior of shared libraries on other platforms, we can't use
7381       # them.
7382       ld_shlibs=no
7383       ;;
7384
7385     beos*)
7386       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7387         allow_undefined_flag=unsupported
7388         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7389         # support --undefined.  This deserves some investigation.  FIXME
7390         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7391       else
7392         ld_shlibs=no
7393       fi
7394       ;;
7395
7396     cygwin* | mingw* | pw32*)
7397       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7398       # as there is no search path for DLLs.
7399       hardcode_libdir_flag_spec='-L$libdir'
7400       allow_undefined_flag=unsupported
7401       always_export_symbols=no
7402       enable_shared_with_static_runtimes=yes
7403       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7404
7405       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7406         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7407         # If the export-symbols file already is a .def file (1st line
7408         # is EXPORTS), use it as is; otherwise, prepend...
7409         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7410           cp $export_symbols $output_objdir/$soname.def;
7411         else
7412           echo EXPORTS > $output_objdir/$soname.def;
7413           cat $export_symbols >> $output_objdir/$soname.def;
7414         fi~
7415         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7416       else
7417         ld_shlibs=no
7418       fi
7419       ;;
7420
7421     netbsd*)
7422       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7423         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7424         wlarc=
7425       else
7426         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7427         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7428       fi
7429       ;;
7430
7431     solaris* | sysv5*)
7432       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7433         ld_shlibs=no
7434         cat <<EOF 1>&2
7435
7436 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7437 *** create shared libraries on Solaris systems.  Therefore, libtool
7438 *** is disabling shared libraries support.  We urge you to upgrade GNU
7439 *** binutils to release 2.9.1 or newer.  Another option is to modify
7440 *** your PATH or compiler configuration so that the native linker is
7441 *** used, and then restart.
7442
7443 EOF
7444       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7445         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7446         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7447       else
7448         ld_shlibs=no
7449       fi
7450       ;;
7451
7452     sunos4*)
7453       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7454       wlarc=
7455       hardcode_direct=yes
7456       hardcode_shlibpath_var=no
7457       ;;
7458
7459   linux*)
7460     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7461         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7462         archive_cmds="$tmp_archive_cmds"
7463       supports_anon_versioning=no
7464       case `$LD -v 2>/dev/null` in
7465         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7466         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7467         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7468         *\ 2.11.*) ;; # other 2.11 versions
7469         *) supports_anon_versioning=yes ;;
7470       esac
7471       if test $supports_anon_versioning = yes; then
7472         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7473 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7474 $echo "local: *; };" >> $output_objdir/$libname.ver~
7475         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7476       else
7477         archive_expsym_cmds="$tmp_archive_cmds"
7478       fi
7479     else
7480       ld_shlibs=no
7481     fi
7482     ;;
7483
7484     *)
7485       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7486         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7487         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7488       else
7489         ld_shlibs=no
7490       fi
7491       ;;
7492     esac
7493
7494     if test "$ld_shlibs" = yes; then
7495       runpath_var=LD_RUN_PATH
7496       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7497       export_dynamic_flag_spec='${wl}--export-dynamic'
7498       # ancient GNU ld didn't support --whole-archive et. al.
7499       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7500         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7501       else
7502         whole_archive_flag_spec=
7503       fi
7504     fi
7505   else
7506     # PORTME fill in a description of your system's linker (not GNU ld)
7507     case $host_os in
7508     aix3*)
7509       allow_undefined_flag=unsupported
7510       always_export_symbols=yes
7511       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'
7512       # Note: this linker hardcodes the directories in LIBPATH if there
7513       # are no directories specified by -L.
7514       hardcode_minus_L=yes
7515       if test "$GCC" = yes && test -z "$link_static_flag"; then
7516         # Neither direct hardcoding nor static linking is supported with a
7517         # broken collect2.
7518         hardcode_direct=unsupported
7519       fi
7520       ;;
7521
7522     aix4* | aix5*)
7523       if test "$host_cpu" = ia64; then
7524         # On IA64, the linker does run time linking by default, so we don't
7525         # have to do anything special.
7526         aix_use_runtimelinking=no
7527         exp_sym_flag='-Bexport'
7528         no_entry_flag=""
7529       else
7530         # If we're using GNU nm, then we don't want the "-C" option.
7531         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7532         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7533           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'
7534         else
7535           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'
7536         fi
7537         aix_use_runtimelinking=no
7538
7539         # Test if we are trying to use run time linking or normal
7540         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7541         # need to do runtime linking.
7542         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7543           for ld_flag in $LDFLAGS; do
7544           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7545             aix_use_runtimelinking=yes
7546             break
7547           fi
7548           done
7549         esac
7550
7551         exp_sym_flag='-bexport'
7552         no_entry_flag='-bnoentry'
7553       fi
7554
7555       # When large executables or shared objects are built, AIX ld can
7556       # have problems creating the table of contents.  If linking a library
7557       # or program results in "error TOC overflow" add -mminimal-toc to
7558       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7559       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7560
7561       archive_cmds=''
7562       hardcode_direct=yes
7563       hardcode_libdir_separator=':'
7564       link_all_deplibs=yes
7565
7566       if test "$GCC" = yes; then
7567         case $host_os in aix4.012|aix4.012.*)
7568         # We only want to do this on AIX 4.2 and lower, the check
7569         # below for broken collect2 doesn't work under 4.3+
7570           collect2name=`${CC} -print-prog-name=collect2`
7571           if test -f "$collect2name" && \
7572            strings "$collect2name" | grep resolve_lib_name >/dev/null
7573           then
7574           # We have reworked collect2
7575           hardcode_direct=yes
7576           else
7577           # We have old collect2
7578           hardcode_direct=unsupported
7579           # It fails to find uninstalled libraries when the uninstalled
7580           # path is not listed in the libpath.  Setting hardcode_minus_L
7581           # to unsupported forces relinking
7582           hardcode_minus_L=yes
7583           hardcode_libdir_flag_spec='-L$libdir'
7584           hardcode_libdir_separator=
7585           fi
7586         esac
7587         shared_flag='-shared'
7588       else
7589         # not using gcc
7590         if test "$host_cpu" = ia64; then
7591         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7592         # chokes on -Wl,-G. The following line is correct:
7593           shared_flag='-G'
7594         else
7595         if test "$aix_use_runtimelinking" = yes; then
7596             shared_flag='${wl}-G'
7597           else
7598             shared_flag='${wl}-bM:SRE'
7599         fi
7600         fi
7601       fi
7602
7603       # It seems that -bexpall does not export symbols beginning with
7604       # underscore (_), so it is better to generate a list of symbols to export.
7605       always_export_symbols=yes
7606       if test "$aix_use_runtimelinking" = yes; then
7607         # Warning - without using the other runtime loading flags (-brtl),
7608         # -berok will link without error, but may produce a broken library.
7609         allow_undefined_flag='-berok'
7610        # Determine the default libpath from the value encoded in an empty executable.
7611        cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h.  */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h.  */
7617
7618 int
7619 main ()
7620 {
7621
7622   ;
7623   return 0;
7624 }
7625 _ACEOF
7626 rm -f conftest.$ac_objext conftest$ac_exeext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7628   (eval $ac_link) 2>conftest.er1
7629   ac_status=$?
7630   grep -v '^ *+' conftest.er1 >conftest.err
7631   rm -f conftest.er1
7632   cat conftest.err >&5
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); } &&
7635          { ac_try='test -z "$ac_c_werror_flag"
7636                          || test ! -s conftest.err'
7637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638   (eval $ac_try) 2>&5
7639   ac_status=$?
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); }; } &&
7642          { ac_try='test -s conftest$ac_exeext'
7643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644   (eval $ac_try) 2>&5
7645   ac_status=$?
7646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647   (exit $ac_status); }; }; then
7648
7649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7650 }'`
7651 # Check for a 64-bit object if we didn't find anything.
7652 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; }
7653 }'`; fi
7654 else
7655   echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7657
7658 fi
7659 rm -f conftest.err conftest.$ac_objext \
7660       conftest$ac_exeext conftest.$ac_ext
7661 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7662
7663        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7664         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"
7665        else
7666         if test "$host_cpu" = ia64; then
7667           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7668           allow_undefined_flag="-z nodefs"
7669           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"
7670         else
7671          # Determine the default libpath from the value encoded in an empty executable.
7672          cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h.  */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h.  */
7678
7679 int
7680 main ()
7681 {
7682
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 rm -f conftest.$ac_objext conftest$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689   (eval $ac_link) 2>conftest.er1
7690   ac_status=$?
7691   grep -v '^ *+' conftest.er1 >conftest.err
7692   rm -f conftest.er1
7693   cat conftest.err >&5
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); } &&
7696          { ac_try='test -z "$ac_c_werror_flag"
7697                          || test ! -s conftest.err'
7698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699   (eval $ac_try) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; } &&
7703          { ac_try='test -s conftest$ac_exeext'
7704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705   (eval $ac_try) 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); }; }; then
7709
7710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7711 }'`
7712 # Check for a 64-bit object if we didn't find anything.
7713 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; }
7714 }'`; fi
7715 else
7716   echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7718
7719 fi
7720 rm -f conftest.err conftest.$ac_objext \
7721       conftest$ac_exeext conftest.$ac_ext
7722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7723
7724          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7725           # Warning - without using the other run time loading flags,
7726           # -berok will link without error, but may produce a broken library.
7727           no_undefined_flag=' ${wl}-bernotok'
7728           allow_undefined_flag=' ${wl}-berok'
7729           # -bexpall does not export symbols beginning with underscore (_)
7730           always_export_symbols=yes
7731           # Exported symbols can be pulled into shared objects from archives
7732           whole_archive_flag_spec=' '
7733           archive_cmds_need_lc=yes
7734           # This is similar to how AIX traditionally builds it's shared libraries.
7735           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'
7736         fi
7737       fi
7738       ;;
7739
7740     amigaos*)
7741       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)'
7742       hardcode_libdir_flag_spec='-L$libdir'
7743       hardcode_minus_L=yes
7744       # see comment about different semantics on the GNU ld section
7745       ld_shlibs=no
7746       ;;
7747
7748     bsdi[45]*)
7749       export_dynamic_flag_spec=-rdynamic
7750       ;;
7751
7752     cygwin* | mingw* | pw32*)
7753       # When not using gcc, we currently assume that we are using
7754       # Microsoft Visual C++.
7755       # hardcode_libdir_flag_spec is actually meaningless, as there is
7756       # no search path for DLLs.
7757       hardcode_libdir_flag_spec=' '
7758       allow_undefined_flag=unsupported
7759       # Tell ltmain to make .lib files, not .a files.
7760       libext=lib
7761       # Tell ltmain to make .dll files, not .so files.
7762       shrext_cmds=".dll"
7763       # FIXME: Setting linknames here is a bad hack.
7764       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7765       # The linker will automatically build a .lib file if we build a DLL.
7766       old_archive_From_new_cmds='true'
7767       # FIXME: Should let the user specify the lib program.
7768       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7769       fix_srcfile_path='`cygpath -w "$srcfile"`'
7770       enable_shared_with_static_runtimes=yes
7771       ;;
7772
7773     darwin* | rhapsody*)
7774       case "$host_os" in
7775         rhapsody* | darwin1.[012])
7776          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7777          ;;
7778        *) # Darwin 1.3 on
7779          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7780            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7781          else
7782            case ${MACOSX_DEPLOYMENT_TARGET} in
7783              10.[012])
7784                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7785                ;;
7786              10.*)
7787                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7788                ;;
7789            esac
7790          fi
7791          ;;
7792       esac
7793       archive_cmds_need_lc=no
7794       hardcode_direct=no
7795       hardcode_automatic=yes
7796       hardcode_shlibpath_var=unsupported
7797       whole_archive_flag_spec=''
7798       link_all_deplibs=yes
7799     if test "$GCC" = yes ; then
7800         output_verbose_link_cmd='echo'
7801         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7802       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7803       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7804       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}'
7805       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}'
7806     else
7807       case "$cc_basename" in
7808         xlc*)
7809          output_verbose_link_cmd='echo'
7810          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7811          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7812           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7813          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}'
7814           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}'
7815           ;;
7816        *)
7817          ld_shlibs=no
7818           ;;
7819       esac
7820     fi
7821       ;;
7822
7823     dgux*)
7824       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7825       hardcode_libdir_flag_spec='-L$libdir'
7826       hardcode_shlibpath_var=no
7827       ;;
7828
7829     freebsd1*)
7830       ld_shlibs=no
7831       ;;
7832
7833     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7834     # support.  Future versions do this automatically, but an explicit c++rt0.o
7835     # does not break anything, and helps significantly (at the cost of a little
7836     # extra space).
7837     freebsd2.2*)
7838       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7839       hardcode_libdir_flag_spec='-R$libdir'
7840       hardcode_direct=yes
7841       hardcode_shlibpath_var=no
7842       ;;
7843
7844     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7845     freebsd2*)
7846       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7847       hardcode_direct=yes
7848       hardcode_minus_L=yes
7849       hardcode_shlibpath_var=no
7850       ;;
7851
7852     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7853     freebsd* | kfreebsd*-gnu)
7854       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7855       hardcode_libdir_flag_spec='-R$libdir'
7856       hardcode_direct=yes
7857       hardcode_shlibpath_var=no
7858       ;;
7859
7860     hpux9*)
7861       if test "$GCC" = yes; then
7862         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'
7863       else
7864         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'
7865       fi
7866       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7867       hardcode_libdir_separator=:
7868       hardcode_direct=yes
7869
7870       # hardcode_minus_L: Not really in the search PATH,
7871       # but as the default location of the library.
7872       hardcode_minus_L=yes
7873       export_dynamic_flag_spec='${wl}-E'
7874       ;;
7875
7876     hpux10* | hpux11*)
7877       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7878         case "$host_cpu" in
7879         hppa*64*|ia64*)
7880           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7881           ;;
7882         *)
7883           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7884           ;;
7885         esac
7886       else
7887         case "$host_cpu" in
7888         hppa*64*|ia64*)
7889           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7890           ;;
7891         *)
7892           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7893           ;;
7894         esac
7895       fi
7896       if test "$with_gnu_ld" = no; then
7897         case "$host_cpu" in
7898         hppa*64*)
7899           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7900           hardcode_libdir_flag_spec_ld='+b $libdir'
7901           hardcode_libdir_separator=:
7902           hardcode_direct=no
7903           hardcode_shlibpath_var=no
7904           ;;
7905         ia64*)
7906           hardcode_libdir_flag_spec='-L$libdir'
7907           hardcode_direct=no
7908           hardcode_shlibpath_var=no
7909
7910           # hardcode_minus_L: Not really in the search PATH,
7911           # but as the default location of the library.
7912           hardcode_minus_L=yes
7913           ;;
7914         *)
7915           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7916           hardcode_libdir_separator=:
7917           hardcode_direct=yes
7918           export_dynamic_flag_spec='${wl}-E'
7919
7920           # hardcode_minus_L: Not really in the search PATH,
7921           # but as the default location of the library.
7922           hardcode_minus_L=yes
7923           ;;
7924         esac
7925       fi
7926       ;;
7927
7928     irix5* | irix6* | nonstopux*)
7929       if test "$GCC" = yes; then
7930         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'
7931       else
7932         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'
7933         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7934       fi
7935       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7936       hardcode_libdir_separator=:
7937       link_all_deplibs=yes
7938       ;;
7939
7940     netbsd*)
7941       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7942         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7943       else
7944         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7945       fi
7946       hardcode_libdir_flag_spec='-R$libdir'
7947       hardcode_direct=yes
7948       hardcode_shlibpath_var=no
7949       ;;
7950
7951     newsos6)
7952       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7953       hardcode_direct=yes
7954       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7955       hardcode_libdir_separator=:
7956       hardcode_shlibpath_var=no
7957       ;;
7958
7959     openbsd*)
7960       hardcode_direct=yes
7961       hardcode_shlibpath_var=no
7962       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7963         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7964         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7965         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7966         export_dynamic_flag_spec='${wl}-E'
7967       else
7968        case $host_os in
7969          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7970            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7971            hardcode_libdir_flag_spec='-R$libdir'
7972            ;;
7973          *)
7974            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7975            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7976            ;;
7977        esac
7978       fi
7979       ;;
7980
7981     os2*)
7982       hardcode_libdir_flag_spec='-L$libdir'
7983       hardcode_minus_L=yes
7984       allow_undefined_flag=unsupported
7985       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'
7986       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7987       ;;
7988
7989     osf3*)
7990       if test "$GCC" = yes; then
7991         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7992         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'
7993       else
7994         allow_undefined_flag=' -expect_unresolved \*'
7995         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'
7996       fi
7997       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7998       hardcode_libdir_separator=:
7999       ;;
8000
8001     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8002       if test "$GCC" = yes; then
8003         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8004         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'
8005         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8006       else
8007         allow_undefined_flag=' -expect_unresolved \*'
8008         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'
8009         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8010         $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'
8011
8012         # Both c and cxx compiler support -rpath directly
8013         hardcode_libdir_flag_spec='-rpath $libdir'
8014       fi
8015       hardcode_libdir_separator=:
8016       ;;
8017
8018     sco3.2v5*)
8019       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8020       hardcode_shlibpath_var=no
8021       export_dynamic_flag_spec='${wl}-Bexport'
8022       runpath_var=LD_RUN_PATH
8023       hardcode_runpath_var=yes
8024       ;;
8025
8026     solaris*)
8027       no_undefined_flag=' -z text'
8028       if test "$GCC" = yes; then
8029         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8030         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8031           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8032       else
8033         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8034         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8035         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8036       fi
8037       hardcode_libdir_flag_spec='-R$libdir'
8038       hardcode_shlibpath_var=no
8039       case $host_os in
8040       solaris2.[0-5] | solaris2.[0-5].*) ;;
8041       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8042         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8043       esac
8044       link_all_deplibs=yes
8045       ;;
8046
8047     sunos4*)
8048       if test "x$host_vendor" = xsequent; then
8049         # Use $CC to link under sequent, because it throws in some extra .o
8050         # files that make .init and .fini sections work.
8051         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8052       else
8053         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8054       fi
8055       hardcode_libdir_flag_spec='-L$libdir'
8056       hardcode_direct=yes
8057       hardcode_minus_L=yes
8058       hardcode_shlibpath_var=no
8059       ;;
8060
8061     sysv4)
8062       case $host_vendor in
8063         sni)
8064           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8065           hardcode_direct=yes # is this really true???
8066         ;;
8067         siemens)
8068           ## LD is ld it makes a PLAMLIB
8069           ## CC just makes a GrossModule.
8070           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8071           reload_cmds='$CC -r -o $output$reload_objs'
8072           hardcode_direct=no
8073         ;;
8074         motorola)
8075           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8076           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8077         ;;
8078       esac
8079       runpath_var='LD_RUN_PATH'
8080       hardcode_shlibpath_var=no
8081       ;;
8082
8083     sysv4.3*)
8084       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8085       hardcode_shlibpath_var=no
8086       export_dynamic_flag_spec='-Bexport'
8087       ;;
8088
8089     sysv4*MP*)
8090       if test -d /usr/nec; then
8091         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8092         hardcode_shlibpath_var=no
8093         runpath_var=LD_RUN_PATH
8094         hardcode_runpath_var=yes
8095         ld_shlibs=yes
8096       fi
8097       ;;
8098
8099     sysv4.2uw2*)
8100       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8101       hardcode_direct=yes
8102       hardcode_minus_L=no
8103       hardcode_shlibpath_var=no
8104       hardcode_runpath_var=yes
8105       runpath_var=LD_RUN_PATH
8106       ;;
8107
8108    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8109       no_undefined_flag='${wl}-z ${wl}text'
8110       if test "$GCC" = yes; then
8111         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8112       else
8113         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8114       fi
8115       runpath_var='LD_RUN_PATH'
8116       hardcode_shlibpath_var=no
8117       ;;
8118
8119     sysv5*)
8120       no_undefined_flag=' -z text'
8121       # $CC -shared without GNU ld will not create a library from C++
8122       # object files and a static libstdc++, better avoid it by now
8123       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8124       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8125                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8126       hardcode_libdir_flag_spec=
8127       hardcode_shlibpath_var=no
8128       runpath_var='LD_RUN_PATH'
8129       ;;
8130
8131     uts4*)
8132       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8133       hardcode_libdir_flag_spec='-L$libdir'
8134       hardcode_shlibpath_var=no
8135       ;;
8136
8137     *)
8138       ld_shlibs=no
8139       ;;
8140     esac
8141   fi
8142
8143 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8144 echo "${ECHO_T}$ld_shlibs" >&6
8145 test "$ld_shlibs" = no && can_build_shared=no
8146
8147 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8148 if test "$GCC" = yes; then
8149   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8150 fi
8151
8152 #
8153 # Do we need to explicitly link libc?
8154 #
8155 case "x$archive_cmds_need_lc" in
8156 x|xyes)
8157   # Assume -lc should be added
8158   archive_cmds_need_lc=yes
8159
8160   if test "$enable_shared" = yes && test "$GCC" = yes; then
8161     case $archive_cmds in
8162     *'~'*)
8163       # FIXME: we may have to deal with multi-command sequences.
8164       ;;
8165     '$CC '*)
8166       # Test whether the compiler implicitly links with -lc since on some
8167       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8168       # to ld, don't add -lc before -lgcc.
8169       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8170 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8171       $rm conftest*
8172       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8173
8174       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8175   (eval $ac_compile) 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); } 2>conftest.err; then
8179         soname=conftest
8180         lib=conftest
8181         libobjs=conftest.$ac_objext
8182         deplibs=
8183         wl=$lt_prog_compiler_wl
8184         compiler_flags=-v
8185         linker_flags=-v
8186         verstring=
8187         output_objdir=.
8188         libname=conftest
8189         lt_save_allow_undefined_flag=$allow_undefined_flag
8190         allow_undefined_flag=
8191         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8192   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8193   ac_status=$?
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); }
8196         then
8197           archive_cmds_need_lc=no
8198         else
8199           archive_cmds_need_lc=yes
8200         fi
8201         allow_undefined_flag=$lt_save_allow_undefined_flag
8202       else
8203         cat conftest.err 1>&5
8204       fi
8205       $rm conftest*
8206       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8207 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8208       ;;
8209     esac
8210   fi
8211   ;;
8212 esac
8213
8214 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8215 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8216 library_names_spec=
8217 libname_spec='lib$name'
8218 soname_spec=
8219 shrext_cmds=".so"
8220 postinstall_cmds=
8221 postuninstall_cmds=
8222 finish_cmds=
8223 finish_eval=
8224 shlibpath_var=
8225 shlibpath_overrides_runpath=unknown
8226 version_type=none
8227 dynamic_linker="$host_os ld.so"
8228 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8229 if test "$GCC" = yes; then
8230   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8231   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8232     # if the path contains ";" then we assume it to be the separator
8233     # otherwise default to the standard path separator (i.e. ":") - it is
8234     # assumed that no part of a normal pathname contains ";" but that should
8235     # okay in the real world where ";" in dirpaths is itself problematic.
8236     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8237   else
8238     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8239   fi
8240 else
8241   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8242 fi
8243 need_lib_prefix=unknown
8244 hardcode_into_libs=no
8245
8246 # when you set need_version to no, make sure it does not cause -set_version
8247 # flags to be left without arguments
8248 need_version=unknown
8249
8250 case $host_os in
8251 aix3*)
8252   version_type=linux
8253   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8254   shlibpath_var=LIBPATH
8255
8256   # AIX 3 has no versioning support, so we append a major version to the name.
8257   soname_spec='${libname}${release}${shared_ext}$major'
8258   ;;
8259
8260 aix4* | aix5*)
8261   version_type=linux
8262   need_lib_prefix=no
8263   need_version=no
8264   hardcode_into_libs=yes
8265   if test "$host_cpu" = ia64; then
8266     # AIX 5 supports IA64
8267     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8268     shlibpath_var=LD_LIBRARY_PATH
8269   else
8270     # With GCC up to 2.95.x, collect2 would create an import file
8271     # for dependence libraries.  The import file would start with
8272     # the line `#! .'.  This would cause the generated library to
8273     # depend on `.', always an invalid library.  This was fixed in
8274     # development snapshots of GCC prior to 3.0.
8275     case $host_os in
8276       aix4 | aix4.[01] | aix4.[01].*)
8277       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8278            echo ' yes '
8279            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8280         :
8281       else
8282         can_build_shared=no
8283       fi
8284       ;;
8285     esac
8286     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8287     # soname into executable. Probably we can add versioning support to
8288     # collect2, so additional links can be useful in future.
8289     if test "$aix_use_runtimelinking" = yes; then
8290       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8291       # instead of lib<name>.a to let people know that these are not
8292       # typical AIX shared libraries.
8293       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8294     else
8295       # We preserve .a as extension for shared libraries through AIX4.2
8296       # and later when we are not doing run time linking.
8297       library_names_spec='${libname}${release}.a $libname.a'
8298       soname_spec='${libname}${release}${shared_ext}$major'
8299     fi
8300     shlibpath_var=LIBPATH
8301   fi
8302   ;;
8303
8304 amigaos*)
8305   library_names_spec='$libname.ixlibrary $libname.a'
8306   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8307   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'
8308   ;;
8309
8310 beos*)
8311   library_names_spec='${libname}${shared_ext}'
8312   dynamic_linker="$host_os ld.so"
8313   shlibpath_var=LIBRARY_PATH
8314   ;;
8315
8316 bsdi[45]*)
8317   version_type=linux
8318   need_version=no
8319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8320   soname_spec='${libname}${release}${shared_ext}$major'
8321   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8322   shlibpath_var=LD_LIBRARY_PATH
8323   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8324   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8325   # the default ld.so.conf also contains /usr/contrib/lib and
8326   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8327   # libtool to hard-code these into programs
8328   ;;
8329
8330 cygwin* | mingw* | pw32*)
8331   version_type=windows
8332   shrext_cmds=".dll"
8333   need_version=no
8334   need_lib_prefix=no
8335
8336   case $GCC,$host_os in
8337   yes,cygwin* | yes,mingw* | yes,pw32*)
8338     library_names_spec='$libname.dll.a'
8339     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8340     postinstall_cmds='base_file=`basename \${file}`~
8341       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8342       dldir=$destdir/`dirname \$dlpath`~
8343       test -d \$dldir || mkdir -p \$dldir~
8344       $install_prog $dir/$dlname \$dldir/$dlname'
8345     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8346       dlpath=$dir/\$dldll~
8347        $rm \$dlpath'
8348     shlibpath_overrides_runpath=yes
8349
8350     case $host_os in
8351     cygwin*)
8352       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8353       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8354       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8355       ;;
8356     mingw*)
8357       # MinGW DLLs use traditional 'lib' prefix
8358       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8359       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8360       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8361         # It is most probably a Windows format PATH printed by
8362         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8363         # path with ; separators, and with drive letters. We can handle the
8364         # drive letters (cygwin fileutils understands them), so leave them,
8365         # especially as we might pass files found there to a mingw objdump,
8366         # which wouldn't understand a cygwinified path. Ahh.
8367         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8368       else
8369         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8370       fi
8371       ;;
8372     pw32*)
8373       # pw32 DLLs use 'pw' prefix rather than 'lib'
8374       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8375       ;;
8376     esac
8377     ;;
8378
8379   *)
8380     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8381     ;;
8382   esac
8383   dynamic_linker='Win32 ld.exe'
8384   # FIXME: first we should search . and the directory the executable is in
8385   shlibpath_var=PATH
8386   ;;
8387
8388 darwin* | rhapsody*)
8389   dynamic_linker="$host_os dyld"
8390   version_type=darwin
8391   need_lib_prefix=no
8392   need_version=no
8393   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8394   soname_spec='${libname}${release}${major}$shared_ext'
8395   shlibpath_overrides_runpath=yes
8396   shlibpath_var=DYLD_LIBRARY_PATH
8397   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8398   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8399   if test "$GCC" = yes; then
8400     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"`
8401   else
8402     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8403   fi
8404   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8405   ;;
8406
8407 dgux*)
8408   version_type=linux
8409   need_lib_prefix=no
8410   need_version=no
8411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8412   soname_spec='${libname}${release}${shared_ext}$major'
8413   shlibpath_var=LD_LIBRARY_PATH
8414   ;;
8415
8416 freebsd1*)
8417   dynamic_linker=no
8418   ;;
8419
8420 kfreebsd*-gnu)
8421   version_type=linux
8422   need_lib_prefix=no
8423   need_version=no
8424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8425   soname_spec='${libname}${release}${shared_ext}$major'
8426   shlibpath_var=LD_LIBRARY_PATH
8427   shlibpath_overrides_runpath=no
8428   hardcode_into_libs=yes
8429   dynamic_linker='GNU ld.so'
8430   ;;
8431
8432 freebsd*)
8433   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8434   version_type=freebsd-$objformat
8435   case $version_type in
8436     freebsd-elf*)
8437       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8438       need_version=no
8439       need_lib_prefix=no
8440       ;;
8441     freebsd-*)
8442       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8443       need_version=yes
8444       ;;
8445   esac
8446   shlibpath_var=LD_LIBRARY_PATH
8447   case $host_os in
8448   freebsd2*)
8449     shlibpath_overrides_runpath=yes
8450     ;;
8451   freebsd3.01* | freebsdelf3.01*)
8452     shlibpath_overrides_runpath=yes
8453     hardcode_into_libs=yes
8454     ;;
8455   *) # from 3.2 on
8456     shlibpath_overrides_runpath=no
8457     hardcode_into_libs=yes
8458     ;;
8459   esac
8460   ;;
8461
8462 gnu*)
8463   version_type=linux
8464   need_lib_prefix=no
8465   need_version=no
8466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8467   soname_spec='${libname}${release}${shared_ext}$major'
8468   shlibpath_var=LD_LIBRARY_PATH
8469   hardcode_into_libs=yes
8470   ;;
8471
8472 hpux9* | hpux10* | hpux11*)
8473   # Give a soname corresponding to the major version so that dld.sl refuses to
8474   # link against other versions.
8475   version_type=sunos
8476   need_lib_prefix=no
8477   need_version=no
8478   case "$host_cpu" in
8479   ia64*)
8480     shrext_cmds='.so'
8481     hardcode_into_libs=yes
8482     dynamic_linker="$host_os dld.so"
8483     shlibpath_var=LD_LIBRARY_PATH
8484     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8485     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8486     soname_spec='${libname}${release}${shared_ext}$major'
8487     if test "X$HPUX_IA64_MODE" = X32; then
8488       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8489     else
8490       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8491     fi
8492     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8493     ;;
8494    hppa*64*)
8495      shrext_cmds='.sl'
8496      hardcode_into_libs=yes
8497      dynamic_linker="$host_os dld.sl"
8498      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8499      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8500      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8501      soname_spec='${libname}${release}${shared_ext}$major'
8502      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8503      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8504      ;;
8505    *)
8506     shrext_cmds='.sl'
8507     dynamic_linker="$host_os dld.sl"
8508     shlibpath_var=SHLIB_PATH
8509     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8510     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8511     soname_spec='${libname}${release}${shared_ext}$major'
8512     ;;
8513   esac
8514   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8515   postinstall_cmds='chmod 555 $lib'
8516   ;;
8517
8518 irix5* | irix6* | nonstopux*)
8519   case $host_os in
8520     nonstopux*) version_type=nonstopux ;;
8521     *)
8522         if test "$lt_cv_prog_gnu_ld" = yes; then
8523                 version_type=linux
8524         else
8525                 version_type=irix
8526         fi ;;
8527   esac
8528   need_lib_prefix=no
8529   need_version=no
8530   soname_spec='${libname}${release}${shared_ext}$major'
8531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8532   case $host_os in
8533   irix5* | nonstopux*)
8534     libsuff= shlibsuff=
8535     ;;
8536   *)
8537     case $LD in # libtool.m4 will add one of these switches to LD
8538     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8539       libsuff= shlibsuff= libmagic=32-bit;;
8540     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8541       libsuff=32 shlibsuff=N32 libmagic=N32;;
8542     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8543       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8544     *) libsuff= shlibsuff= libmagic=never-match;;
8545     esac
8546     ;;
8547   esac
8548   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8549   shlibpath_overrides_runpath=no
8550   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8551   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8552   hardcode_into_libs=yes
8553   ;;
8554
8555 # No shared lib support for Linux oldld, aout, or coff.
8556 linux*oldld* | linux*aout* | linux*coff*)
8557   dynamic_linker=no
8558   ;;
8559
8560 # This must be Linux ELF.
8561 linux*)
8562   version_type=linux
8563   need_lib_prefix=no
8564   need_version=no
8565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8566   soname_spec='${libname}${release}${shared_ext}$major'
8567   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8568   shlibpath_var=LD_LIBRARY_PATH
8569   shlibpath_overrides_runpath=no
8570   # This implies no fast_install, which is unacceptable.
8571   # Some rework will be needed to allow for fast_install
8572   # before this can be enabled.
8573   hardcode_into_libs=yes
8574
8575   # Append ld.so.conf contents to the search path
8576   if test -f /etc/ld.so.conf; then
8577     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8578     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8579   fi
8580
8581   # We used to test for /lib/ld.so.1 and disable shared libraries on
8582   # powerpc, because MkLinux only supported shared libraries with the
8583   # GNU dynamic linker.  Since this was broken with cross compilers,
8584   # most powerpc-linux boxes support dynamic linking these days and
8585   # people can always --disable-shared, the test was removed, and we
8586   # assume the GNU/Linux dynamic linker is in use.
8587   dynamic_linker='GNU/Linux ld.so'
8588   ;;
8589
8590 knetbsd*-gnu)
8591   version_type=linux
8592   need_lib_prefix=no
8593   need_version=no
8594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8595   soname_spec='${libname}${release}${shared_ext}$major'
8596   shlibpath_var=LD_LIBRARY_PATH
8597   shlibpath_overrides_runpath=no
8598   hardcode_into_libs=yes
8599   dynamic_linker='GNU ld.so'
8600   ;;
8601
8602 netbsd*)
8603   version_type=sunos
8604   need_lib_prefix=no
8605   need_version=no
8606   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8607     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8608     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8609     dynamic_linker='NetBSD (a.out) ld.so'
8610   else
8611     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8612     soname_spec='${libname}${release}${shared_ext}$major'
8613     dynamic_linker='NetBSD ld.elf_so'
8614   fi
8615   shlibpath_var=LD_LIBRARY_PATH
8616   shlibpath_overrides_runpath=yes
8617   hardcode_into_libs=yes
8618   ;;
8619
8620 newsos6)
8621   version_type=linux
8622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623   shlibpath_var=LD_LIBRARY_PATH
8624   shlibpath_overrides_runpath=yes
8625   ;;
8626
8627 nto-qnx*)
8628   version_type=linux
8629   need_lib_prefix=no
8630   need_version=no
8631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8632   soname_spec='${libname}${release}${shared_ext}$major'
8633   shlibpath_var=LD_LIBRARY_PATH
8634   shlibpath_overrides_runpath=yes
8635   ;;
8636
8637 openbsd*)
8638   version_type=sunos
8639   need_lib_prefix=no
8640   need_version=no
8641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8642   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8643   shlibpath_var=LD_LIBRARY_PATH
8644   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8645     case $host_os in
8646       openbsd2.[89] | openbsd2.[89].*)
8647         shlibpath_overrides_runpath=no
8648         ;;
8649       *)
8650         shlibpath_overrides_runpath=yes
8651         ;;
8652       esac
8653   else
8654     shlibpath_overrides_runpath=yes
8655   fi
8656   ;;
8657
8658 os2*)
8659   libname_spec='$name'
8660   shrext_cmds=".dll"
8661   need_lib_prefix=no
8662   library_names_spec='$libname${shared_ext} $libname.a'
8663   dynamic_linker='OS/2 ld.exe'
8664   shlibpath_var=LIBPATH
8665   ;;
8666
8667 osf3* | osf4* | osf5*)
8668   version_type=osf
8669   need_lib_prefix=no
8670   need_version=no
8671   soname_spec='${libname}${release}${shared_ext}$major'
8672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8673   shlibpath_var=LD_LIBRARY_PATH
8674   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8675   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8676   ;;
8677
8678 sco3.2v5*)
8679   version_type=osf
8680   soname_spec='${libname}${release}${shared_ext}$major'
8681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8682   shlibpath_var=LD_LIBRARY_PATH
8683   ;;
8684
8685 solaris*)
8686   version_type=linux
8687   need_lib_prefix=no
8688   need_version=no
8689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690   soname_spec='${libname}${release}${shared_ext}$major'
8691   shlibpath_var=LD_LIBRARY_PATH
8692   shlibpath_overrides_runpath=yes
8693   hardcode_into_libs=yes
8694   # ldd complains unless libraries are executable
8695   postinstall_cmds='chmod +x $lib'
8696   ;;
8697
8698 sunos4*)
8699   version_type=sunos
8700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8701   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8702   shlibpath_var=LD_LIBRARY_PATH
8703   shlibpath_overrides_runpath=yes
8704   if test "$with_gnu_ld" = yes; then
8705     need_lib_prefix=no
8706   fi
8707   need_version=yes
8708   ;;
8709
8710 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8711   version_type=linux
8712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8713   soname_spec='${libname}${release}${shared_ext}$major'
8714   shlibpath_var=LD_LIBRARY_PATH
8715   case $host_vendor in
8716     sni)
8717       shlibpath_overrides_runpath=no
8718       need_lib_prefix=no
8719       export_dynamic_flag_spec='${wl}-Blargedynsym'
8720       runpath_var=LD_RUN_PATH
8721       ;;
8722     siemens)
8723       need_lib_prefix=no
8724       ;;
8725     motorola)
8726       need_lib_prefix=no
8727       need_version=no
8728       shlibpath_overrides_runpath=no
8729       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8730       ;;
8731   esac
8732   ;;
8733
8734 sysv4*MP*)
8735   if test -d /usr/nec ;then
8736     version_type=linux
8737     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8738     soname_spec='$libname${shared_ext}.$major'
8739     shlibpath_var=LD_LIBRARY_PATH
8740   fi
8741   ;;
8742
8743 uts4*)
8744   version_type=linux
8745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746   soname_spec='${libname}${release}${shared_ext}$major'
8747   shlibpath_var=LD_LIBRARY_PATH
8748   ;;
8749
8750 *)
8751   dynamic_linker=no
8752   ;;
8753 esac
8754 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8755 echo "${ECHO_T}$dynamic_linker" >&6
8756 test "$dynamic_linker" = no && can_build_shared=no
8757
8758 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8759 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8760 hardcode_action=
8761 if test -n "$hardcode_libdir_flag_spec" || \
8762    test -n "$runpath_var" || \
8763    test "X$hardcode_automatic" = "Xyes" ; then
8764
8765   # We can hardcode non-existant directories.
8766   if test "$hardcode_direct" != no &&
8767      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8768      # have to relink, otherwise we might link with an installed library
8769      # when we should be linking with a yet-to-be-installed one
8770      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8771      test "$hardcode_minus_L" != no; then
8772     # Linking always hardcodes the temporary library directory.
8773     hardcode_action=relink
8774   else
8775     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8776     hardcode_action=immediate
8777   fi
8778 else
8779   # We cannot hardcode anything, or else we can only hardcode existing
8780   # directories.
8781   hardcode_action=unsupported
8782 fi
8783 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8784 echo "${ECHO_T}$hardcode_action" >&6
8785
8786 if test "$hardcode_action" = relink; then
8787   # Fast installation is not supported
8788   enable_fast_install=no
8789 elif test "$shlibpath_overrides_runpath" = yes ||
8790      test "$enable_shared" = no; then
8791   # Fast installation is not necessary
8792   enable_fast_install=needless
8793 fi
8794
8795 striplib=
8796 old_striplib=
8797 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8798 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8799 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8800   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8801   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8802   echo "$as_me:$LINENO: result: yes" >&5
8803 echo "${ECHO_T}yes" >&6
8804 else
8805 # FIXME - insert some real tests, host_os isn't really good enough
8806   case $host_os in
8807    darwin*)
8808        if test -n "$STRIP" ; then
8809          striplib="$STRIP -x"
8810          echo "$as_me:$LINENO: result: yes" >&5
8811 echo "${ECHO_T}yes" >&6
8812        else
8813   echo "$as_me:$LINENO: result: no" >&5
8814 echo "${ECHO_T}no" >&6
8815 fi
8816        ;;
8817    *)
8818   echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6
8820     ;;
8821   esac
8822 fi
8823
8824 if test "x$enable_dlopen" != xyes; then
8825   enable_dlopen=unknown
8826   enable_dlopen_self=unknown
8827   enable_dlopen_self_static=unknown
8828 else
8829   lt_cv_dlopen=no
8830   lt_cv_dlopen_libs=
8831
8832   case $host_os in
8833   beos*)
8834     lt_cv_dlopen="load_add_on"
8835     lt_cv_dlopen_libs=
8836     lt_cv_dlopen_self=yes
8837     ;;
8838
8839   mingw* | pw32*)
8840     lt_cv_dlopen="LoadLibrary"
8841     lt_cv_dlopen_libs=
8842    ;;
8843
8844   cygwin*)
8845     lt_cv_dlopen="dlopen"
8846     lt_cv_dlopen_libs=
8847    ;;
8848
8849   darwin*)
8850   # if libdl is installed we need to link against it
8851     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8852 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8853 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8854   echo $ECHO_N "(cached) $ECHO_C" >&6
8855 else
8856   ac_check_lib_save_LIBS=$LIBS
8857 LIBS="-ldl  $LIBS"
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h.  */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h.  */
8864
8865 /* Override any gcc2 internal prototype to avoid an error.  */
8866 #ifdef __cplusplus
8867 extern "C"
8868 #endif
8869 /* We use char because int might match the return type of a gcc2
8870    builtin and then its argument prototype would still apply.  */
8871 char dlopen ();
8872 int
8873 main ()
8874 {
8875 dlopen ();
8876   ;
8877   return 0;
8878 }
8879 _ACEOF
8880 rm -f conftest.$ac_objext conftest$ac_exeext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882   (eval $ac_link) 2>conftest.er1
8883   ac_status=$?
8884   grep -v '^ *+' conftest.er1 >conftest.err
8885   rm -f conftest.er1
8886   cat conftest.err >&5
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); } &&
8889          { ac_try='test -z "$ac_c_werror_flag"
8890                          || test ! -s conftest.err'
8891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892   (eval $ac_try) 2>&5
8893   ac_status=$?
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); }; } &&
8896          { ac_try='test -s conftest$ac_exeext'
8897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898   (eval $ac_try) 2>&5
8899   ac_status=$?
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); }; }; then
8902   ac_cv_lib_dl_dlopen=yes
8903 else
8904   echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8906
8907 ac_cv_lib_dl_dlopen=no
8908 fi
8909 rm -f conftest.err conftest.$ac_objext \
8910       conftest$ac_exeext conftest.$ac_ext
8911 LIBS=$ac_check_lib_save_LIBS
8912 fi
8913 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8914 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8915 if test $ac_cv_lib_dl_dlopen = yes; then
8916   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8917 else
8918
8919     lt_cv_dlopen="dyld"
8920     lt_cv_dlopen_libs=
8921     lt_cv_dlopen_self=yes
8922
8923 fi
8924
8925    ;;
8926
8927   *)
8928     echo "$as_me:$LINENO: checking for shl_load" >&5
8929 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8930 if test "${ac_cv_func_shl_load+set}" = set; then
8931   echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933   cat >conftest.$ac_ext <<_ACEOF
8934 /* confdefs.h.  */
8935 _ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h.  */
8939 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8941 #define shl_load innocuous_shl_load
8942
8943 /* System header to define __stub macros and hopefully few prototypes,
8944     which can conflict with char shl_load (); below.
8945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8946     <limits.h> exists even on freestanding compilers.  */
8947
8948 #ifdef __STDC__
8949 # include <limits.h>
8950 #else
8951 # include <assert.h>
8952 #endif
8953
8954 #undef shl_load
8955
8956 /* Override any gcc2 internal prototype to avoid an error.  */
8957 #ifdef __cplusplus
8958 extern "C"
8959 {
8960 #endif
8961 /* We use char because int might match the return type of a gcc2
8962    builtin and then its argument prototype would still apply.  */
8963 char shl_load ();
8964 /* The GNU C library defines this for functions which it implements
8965     to always fail with ENOSYS.  Some functions are actually named
8966     something starting with __ and the normal name is an alias.  */
8967 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8968 choke me
8969 #else
8970 char (*f) () = shl_load;
8971 #endif
8972 #ifdef __cplusplus
8973 }
8974 #endif
8975
8976 int
8977 main ()
8978 {
8979 return f != shl_load;
8980   ;
8981   return 0;
8982 }
8983 _ACEOF
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986   (eval $ac_link) 2>conftest.er1
8987   ac_status=$?
8988   grep -v '^ *+' conftest.er1 >conftest.err
8989   rm -f conftest.er1
8990   cat conftest.err >&5
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); } &&
8993          { ac_try='test -z "$ac_c_werror_flag"
8994                          || test ! -s conftest.err'
8995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996   (eval $ac_try) 2>&5
8997   ac_status=$?
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); }; } &&
9000          { ac_try='test -s conftest$ac_exeext'
9001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002   (eval $ac_try) 2>&5
9003   ac_status=$?
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); }; }; then
9006   ac_cv_func_shl_load=yes
9007 else
9008   echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011 ac_cv_func_shl_load=no
9012 fi
9013 rm -f conftest.err conftest.$ac_objext \
9014       conftest$ac_exeext conftest.$ac_ext
9015 fi
9016 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9017 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9018 if test $ac_cv_func_shl_load = yes; then
9019   lt_cv_dlopen="shl_load"
9020 else
9021   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9022 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9023 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   ac_check_lib_save_LIBS=$LIBS
9027 LIBS="-ldld  $LIBS"
9028 cat >conftest.$ac_ext <<_ACEOF
9029 /* confdefs.h.  */
9030 _ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h.  */
9034
9035 /* Override any gcc2 internal prototype to avoid an error.  */
9036 #ifdef __cplusplus
9037 extern "C"
9038 #endif
9039 /* We use char because int might match the return type of a gcc2
9040    builtin and then its argument prototype would still apply.  */
9041 char shl_load ();
9042 int
9043 main ()
9044 {
9045 shl_load ();
9046   ;
9047   return 0;
9048 }
9049 _ACEOF
9050 rm -f conftest.$ac_objext conftest$ac_exeext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052   (eval $ac_link) 2>conftest.er1
9053   ac_status=$?
9054   grep -v '^ *+' conftest.er1 >conftest.err
9055   rm -f conftest.er1
9056   cat conftest.err >&5
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); } &&
9059          { ac_try='test -z "$ac_c_werror_flag"
9060                          || test ! -s conftest.err'
9061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062   (eval $ac_try) 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); }; } &&
9066          { ac_try='test -s conftest$ac_exeext'
9067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068   (eval $ac_try) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); }; }; then
9072   ac_cv_lib_dld_shl_load=yes
9073 else
9074   echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9076
9077 ac_cv_lib_dld_shl_load=no
9078 fi
9079 rm -f conftest.err conftest.$ac_objext \
9080       conftest$ac_exeext conftest.$ac_ext
9081 LIBS=$ac_check_lib_save_LIBS
9082 fi
9083 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9084 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9085 if test $ac_cv_lib_dld_shl_load = yes; then
9086   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9087 else
9088   echo "$as_me:$LINENO: checking for dlopen" >&5
9089 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9090 if test "${ac_cv_func_dlopen+set}" = set; then
9091   echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9093   cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9101 #define dlopen innocuous_dlopen
9102
9103 /* System header to define __stub macros and hopefully few prototypes,
9104     which can conflict with char dlopen (); below.
9105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9106     <limits.h> exists even on freestanding compilers.  */
9107
9108 #ifdef __STDC__
9109 # include <limits.h>
9110 #else
9111 # include <assert.h>
9112 #endif
9113
9114 #undef dlopen
9115
9116 /* Override any gcc2 internal prototype to avoid an error.  */
9117 #ifdef __cplusplus
9118 extern "C"
9119 {
9120 #endif
9121 /* We use char because int might match the return type of a gcc2
9122    builtin and then its argument prototype would still apply.  */
9123 char dlopen ();
9124 /* The GNU C library defines this for functions which it implements
9125     to always fail with ENOSYS.  Some functions are actually named
9126     something starting with __ and the normal name is an alias.  */
9127 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9128 choke me
9129 #else
9130 char (*f) () = dlopen;
9131 #endif
9132 #ifdef __cplusplus
9133 }
9134 #endif
9135
9136 int
9137 main ()
9138 {
9139 return f != dlopen;
9140   ;
9141   return 0;
9142 }
9143 _ACEOF
9144 rm -f conftest.$ac_objext conftest$ac_exeext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9146   (eval $ac_link) 2>conftest.er1
9147   ac_status=$?
9148   grep -v '^ *+' conftest.er1 >conftest.err
9149   rm -f conftest.er1
9150   cat conftest.err >&5
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); } &&
9153          { ac_try='test -z "$ac_c_werror_flag"
9154                          || test ! -s conftest.err'
9155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156   (eval $ac_try) 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); }; } &&
9160          { ac_try='test -s conftest$ac_exeext'
9161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162   (eval $ac_try) 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; }; then
9166   ac_cv_func_dlopen=yes
9167 else
9168   echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171 ac_cv_func_dlopen=no
9172 fi
9173 rm -f conftest.err conftest.$ac_objext \
9174       conftest$ac_exeext conftest.$ac_ext
9175 fi
9176 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9177 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9178 if test $ac_cv_func_dlopen = yes; then
9179   lt_cv_dlopen="dlopen"
9180 else
9181   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9182 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9183 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9184   echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186   ac_check_lib_save_LIBS=$LIBS
9187 LIBS="-ldl  $LIBS"
9188 cat >conftest.$ac_ext <<_ACEOF
9189 /* confdefs.h.  */
9190 _ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h.  */
9194
9195 /* Override any gcc2 internal prototype to avoid an error.  */
9196 #ifdef __cplusplus
9197 extern "C"
9198 #endif
9199 /* We use char because int might match the return type of a gcc2
9200    builtin and then its argument prototype would still apply.  */
9201 char dlopen ();
9202 int
9203 main ()
9204 {
9205 dlopen ();
9206   ;
9207   return 0;
9208 }
9209 _ACEOF
9210 rm -f conftest.$ac_objext conftest$ac_exeext
9211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9212   (eval $ac_link) 2>conftest.er1
9213   ac_status=$?
9214   grep -v '^ *+' conftest.er1 >conftest.err
9215   rm -f conftest.er1
9216   cat conftest.err >&5
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   (exit $ac_status); } &&
9219          { ac_try='test -z "$ac_c_werror_flag"
9220                          || test ! -s conftest.err'
9221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222   (eval $ac_try) 2>&5
9223   ac_status=$?
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); }; } &&
9226          { ac_try='test -s conftest$ac_exeext'
9227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228   (eval $ac_try) 2>&5
9229   ac_status=$?
9230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231   (exit $ac_status); }; }; then
9232   ac_cv_lib_dl_dlopen=yes
9233 else
9234   echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9236
9237 ac_cv_lib_dl_dlopen=no
9238 fi
9239 rm -f conftest.err conftest.$ac_objext \
9240       conftest$ac_exeext conftest.$ac_ext
9241 LIBS=$ac_check_lib_save_LIBS
9242 fi
9243 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9244 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9245 if test $ac_cv_lib_dl_dlopen = yes; then
9246   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9247 else
9248   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9249 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9250 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9251   echo $ECHO_N "(cached) $ECHO_C" >&6
9252 else
9253   ac_check_lib_save_LIBS=$LIBS
9254 LIBS="-lsvld  $LIBS"
9255 cat >conftest.$ac_ext <<_ACEOF
9256 /* confdefs.h.  */
9257 _ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h.  */
9261
9262 /* Override any gcc2 internal prototype to avoid an error.  */
9263 #ifdef __cplusplus
9264 extern "C"
9265 #endif
9266 /* We use char because int might match the return type of a gcc2
9267    builtin and then its argument prototype would still apply.  */
9268 char dlopen ();
9269 int
9270 main ()
9271 {
9272 dlopen ();
9273   ;
9274   return 0;
9275 }
9276 _ACEOF
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9279   (eval $ac_link) 2>conftest.er1
9280   ac_status=$?
9281   grep -v '^ *+' conftest.er1 >conftest.err
9282   rm -f conftest.er1
9283   cat conftest.err >&5
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   (exit $ac_status); } &&
9286          { ac_try='test -z "$ac_c_werror_flag"
9287                          || test ! -s conftest.err'
9288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289   (eval $ac_try) 2>&5
9290   ac_status=$?
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); }; } &&
9293          { ac_try='test -s conftest$ac_exeext'
9294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295   (eval $ac_try) 2>&5
9296   ac_status=$?
9297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298   (exit $ac_status); }; }; then
9299   ac_cv_lib_svld_dlopen=yes
9300 else
9301   echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 ac_cv_lib_svld_dlopen=no
9305 fi
9306 rm -f conftest.err conftest.$ac_objext \
9307       conftest$ac_exeext conftest.$ac_ext
9308 LIBS=$ac_check_lib_save_LIBS
9309 fi
9310 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9311 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9312 if test $ac_cv_lib_svld_dlopen = yes; then
9313   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9314 else
9315   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9316 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9317 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9318   echo $ECHO_N "(cached) $ECHO_C" >&6
9319 else
9320   ac_check_lib_save_LIBS=$LIBS
9321 LIBS="-ldld  $LIBS"
9322 cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h.  */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h.  */
9328
9329 /* Override any gcc2 internal prototype to avoid an error.  */
9330 #ifdef __cplusplus
9331 extern "C"
9332 #endif
9333 /* We use char because int might match the return type of a gcc2
9334    builtin and then its argument prototype would still apply.  */
9335 char dld_link ();
9336 int
9337 main ()
9338 {
9339 dld_link ();
9340   ;
9341   return 0;
9342 }
9343 _ACEOF
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346   (eval $ac_link) 2>conftest.er1
9347   ac_status=$?
9348   grep -v '^ *+' conftest.er1 >conftest.err
9349   rm -f conftest.er1
9350   cat conftest.err >&5
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); } &&
9353          { ac_try='test -z "$ac_c_werror_flag"
9354                          || test ! -s conftest.err'
9355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356   (eval $ac_try) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); }; } &&
9360          { ac_try='test -s conftest$ac_exeext'
9361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362   (eval $ac_try) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; }; then
9366   ac_cv_lib_dld_dld_link=yes
9367 else
9368   echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371 ac_cv_lib_dld_dld_link=no
9372 fi
9373 rm -f conftest.err conftest.$ac_objext \
9374       conftest$ac_exeext conftest.$ac_ext
9375 LIBS=$ac_check_lib_save_LIBS
9376 fi
9377 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9378 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9379 if test $ac_cv_lib_dld_dld_link = yes; then
9380   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9381 fi
9382
9383
9384 fi
9385
9386
9387 fi
9388
9389
9390 fi
9391
9392
9393 fi
9394
9395
9396 fi
9397
9398     ;;
9399   esac
9400
9401   if test "x$lt_cv_dlopen" != xno; then
9402     enable_dlopen=yes
9403   else
9404     enable_dlopen=no
9405   fi
9406
9407   case $lt_cv_dlopen in
9408   dlopen)
9409     save_CPPFLAGS="$CPPFLAGS"
9410     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9411
9412     save_LDFLAGS="$LDFLAGS"
9413     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9414
9415     save_LIBS="$LIBS"
9416     LIBS="$lt_cv_dlopen_libs $LIBS"
9417
9418     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9419 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9420 if test "${lt_cv_dlopen_self+set}" = set; then
9421   echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423           if test "$cross_compiling" = yes; then :
9424   lt_cv_dlopen_self=cross
9425 else
9426   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9427   lt_status=$lt_dlunknown
9428   cat > conftest.$ac_ext <<EOF
9429 #line 9429 "configure"
9430 #include "confdefs.h"
9431
9432 #if HAVE_DLFCN_H
9433 #include <dlfcn.h>
9434 #endif
9435
9436 #include <stdio.h>
9437
9438 #ifdef RTLD_GLOBAL
9439 #  define LT_DLGLOBAL           RTLD_GLOBAL
9440 #else
9441 #  ifdef DL_GLOBAL
9442 #    define LT_DLGLOBAL         DL_GLOBAL
9443 #  else
9444 #    define LT_DLGLOBAL         0
9445 #  endif
9446 #endif
9447
9448 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9449    find out it does not work in some platform. */
9450 #ifndef LT_DLLAZY_OR_NOW
9451 #  ifdef RTLD_LAZY
9452 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9453 #  else
9454 #    ifdef DL_LAZY
9455 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9456 #    else
9457 #      ifdef RTLD_NOW
9458 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9459 #      else
9460 #        ifdef DL_NOW
9461 #          define LT_DLLAZY_OR_NOW      DL_NOW
9462 #        else
9463 #          define LT_DLLAZY_OR_NOW      0
9464 #        endif
9465 #      endif
9466 #    endif
9467 #  endif
9468 #endif
9469
9470 #ifdef __cplusplus
9471 extern "C" void exit (int);
9472 #endif
9473
9474 void fnord() { int i=42;}
9475 int main ()
9476 {
9477   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9478   int status = $lt_dlunknown;
9479
9480   if (self)
9481     {
9482       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9483       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9484       /* dlclose (self); */
9485     }
9486
9487     exit (status);
9488 }
9489 EOF
9490   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491   (eval $ac_link) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9495     (./conftest; exit; ) 2>/dev/null
9496     lt_status=$?
9497     case x$lt_status in
9498       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9499       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9500       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9501     esac
9502   else :
9503     # compilation failed
9504     lt_cv_dlopen_self=no
9505   fi
9506 fi
9507 rm -fr conftest*
9508
9509
9510 fi
9511 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9512 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9513
9514     if test "x$lt_cv_dlopen_self" = xyes; then
9515       LDFLAGS="$LDFLAGS $link_static_flag"
9516       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9517 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9518 if test "${lt_cv_dlopen_self_static+set}" = set; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521           if test "$cross_compiling" = yes; then :
9522   lt_cv_dlopen_self_static=cross
9523 else
9524   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9525   lt_status=$lt_dlunknown
9526   cat > conftest.$ac_ext <<EOF
9527 #line 9527 "configure"
9528 #include "confdefs.h"
9529
9530 #if HAVE_DLFCN_H
9531 #include <dlfcn.h>
9532 #endif
9533
9534 #include <stdio.h>
9535
9536 #ifdef RTLD_GLOBAL
9537 #  define LT_DLGLOBAL           RTLD_GLOBAL
9538 #else
9539 #  ifdef DL_GLOBAL
9540 #    define LT_DLGLOBAL         DL_GLOBAL
9541 #  else
9542 #    define LT_DLGLOBAL         0
9543 #  endif
9544 #endif
9545
9546 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9547    find out it does not work in some platform. */
9548 #ifndef LT_DLLAZY_OR_NOW
9549 #  ifdef RTLD_LAZY
9550 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9551 #  else
9552 #    ifdef DL_LAZY
9553 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9554 #    else
9555 #      ifdef RTLD_NOW
9556 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9557 #      else
9558 #        ifdef DL_NOW
9559 #          define LT_DLLAZY_OR_NOW      DL_NOW
9560 #        else
9561 #          define LT_DLLAZY_OR_NOW      0
9562 #        endif
9563 #      endif
9564 #    endif
9565 #  endif
9566 #endif
9567
9568 #ifdef __cplusplus
9569 extern "C" void exit (int);
9570 #endif
9571
9572 void fnord() { int i=42;}
9573 int main ()
9574 {
9575   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9576   int status = $lt_dlunknown;
9577
9578   if (self)
9579     {
9580       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9581       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9582       /* dlclose (self); */
9583     }
9584
9585     exit (status);
9586 }
9587 EOF
9588   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9589   (eval $ac_link) 2>&5
9590   ac_status=$?
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9593     (./conftest; exit; ) 2>/dev/null
9594     lt_status=$?
9595     case x$lt_status in
9596       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9597       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9598       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9599     esac
9600   else :
9601     # compilation failed
9602     lt_cv_dlopen_self_static=no
9603   fi
9604 fi
9605 rm -fr conftest*
9606
9607
9608 fi
9609 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9610 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9611     fi
9612
9613     CPPFLAGS="$save_CPPFLAGS"
9614     LDFLAGS="$save_LDFLAGS"
9615     LIBS="$save_LIBS"
9616     ;;
9617   esac
9618
9619   case $lt_cv_dlopen_self in
9620   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9621   *) enable_dlopen_self=unknown ;;
9622   esac
9623
9624   case $lt_cv_dlopen_self_static in
9625   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9626   *) enable_dlopen_self_static=unknown ;;
9627   esac
9628 fi
9629
9630
9631 # Report which librarie types wil actually be built
9632 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9633 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9634 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9635 echo "${ECHO_T}$can_build_shared" >&6
9636
9637 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9638 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9639 test "$can_build_shared" = "no" && enable_shared=no
9640
9641 # On AIX, shared libraries and static libraries use the same namespace, and
9642 # are all built from PIC.
9643 case "$host_os" in
9644 aix3*)
9645   test "$enable_shared" = yes && enable_static=no
9646   if test -n "$RANLIB"; then
9647     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9648     postinstall_cmds='$RANLIB $lib'
9649   fi
9650   ;;
9651
9652 aix4* | aix5*)
9653   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9654     test "$enable_shared" = yes && enable_static=no
9655   fi
9656     ;;
9657 esac
9658 echo "$as_me:$LINENO: result: $enable_shared" >&5
9659 echo "${ECHO_T}$enable_shared" >&6
9660
9661 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9662 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9663 # Make sure either enable_shared or enable_static is yes.
9664 test "$enable_shared" = yes || enable_static=yes
9665 echo "$as_me:$LINENO: result: $enable_static" >&5
9666 echo "${ECHO_T}$enable_static" >&6
9667
9668 # The else clause should only fire when bootstrapping the
9669 # libtool distribution, otherwise you forgot to ship ltmain.sh
9670 # with your package, and you will get complaints that there are
9671 # no rules to generate ltmain.sh.
9672 if test -f "$ltmain"; then
9673   # See if we are running on zsh, and set the options which allow our commands through
9674   # without removal of \ escapes.
9675   if test -n "${ZSH_VERSION+set}" ; then
9676     setopt NO_GLOB_SUBST
9677   fi
9678   # Now quote all the things that may contain metacharacters while being
9679   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9680   # variables and quote the copies for generation of the libtool script.
9681   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9682     SED SHELL STRIP \
9683     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9684     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9685     deplibs_check_method reload_flag reload_cmds need_locks \
9686     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9687     lt_cv_sys_global_symbol_to_c_name_address \
9688     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9689     old_postinstall_cmds old_postuninstall_cmds \
9690     compiler \
9691     CC \
9692     LD \
9693     lt_prog_compiler_wl \
9694     lt_prog_compiler_pic \
9695     lt_prog_compiler_static \
9696     lt_prog_compiler_no_builtin_flag \
9697     export_dynamic_flag_spec \
9698     thread_safe_flag_spec \
9699     whole_archive_flag_spec \
9700     enable_shared_with_static_runtimes \
9701     old_archive_cmds \
9702     old_archive_from_new_cmds \
9703     predep_objects \
9704     postdep_objects \
9705     predeps \
9706     postdeps \
9707     compiler_lib_search_path \
9708     archive_cmds \
9709     archive_expsym_cmds \
9710     postinstall_cmds \
9711     postuninstall_cmds \
9712     old_archive_from_expsyms_cmds \
9713     allow_undefined_flag \
9714     no_undefined_flag \
9715     export_symbols_cmds \
9716     hardcode_libdir_flag_spec \
9717     hardcode_libdir_flag_spec_ld \
9718     hardcode_libdir_separator \
9719     hardcode_automatic \
9720     module_cmds \
9721     module_expsym_cmds \
9722     lt_cv_prog_compiler_c_o \
9723     exclude_expsyms \
9724     include_expsyms; do
9725
9726     case $var in
9727     old_archive_cmds | \
9728     old_archive_from_new_cmds | \
9729     archive_cmds | \
9730     archive_expsym_cmds | \
9731     module_cmds | \
9732     module_expsym_cmds | \
9733     old_archive_from_expsyms_cmds | \
9734     export_symbols_cmds | \
9735     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9736     postinstall_cmds | postuninstall_cmds | \
9737     old_postinstall_cmds | old_postuninstall_cmds | \
9738     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9739       # Double-quote double-evaled strings.
9740       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9741       ;;
9742     *)
9743       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9744       ;;
9745     esac
9746   done
9747
9748   case $lt_echo in
9749   *'\$0 --fallback-echo"')
9750     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9751     ;;
9752   esac
9753
9754 cfgfile="${ofile}T"
9755   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9756   $rm -f "$cfgfile"
9757   { echo "$as_me:$LINENO: creating $ofile" >&5
9758 echo "$as_me: creating $ofile" >&6;}
9759
9760   cat <<__EOF__ >> "$cfgfile"
9761 #! $SHELL
9762
9763 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9764 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9765 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9766 #
9767 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9768 # Free Software Foundation, Inc.
9769 #
9770 # This file is part of GNU Libtool:
9771 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9772 #
9773 # This program is free software; you can redistribute it and/or modify
9774 # it under the terms of the GNU General Public License as published by
9775 # the Free Software Foundation; either version 2 of the License, or
9776 # (at your option) any later version.
9777 #
9778 # This program is distributed in the hope that it will be useful, but
9779 # WITHOUT ANY WARRANTY; without even the implied warranty of
9780 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9781 # General Public License for more details.
9782 #
9783 # You should have received a copy of the GNU General Public License
9784 # along with this program; if not, write to the Free Software
9785 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9786 #
9787 # As a special exception to the GNU General Public License, if you
9788 # distribute this file as part of a program that contains a
9789 # configuration script generated by Autoconf, you may include it under
9790 # the same distribution terms that you use for the rest of that program.
9791
9792 # A sed program that does not truncate output.
9793 SED=$lt_SED
9794
9795 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9796 Xsed="$SED -e s/^X//"
9797
9798 # The HP-UX ksh and POSIX shell print the target directory to stdout
9799 # if CDPATH is set.
9800 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9801
9802 # The names of the tagged configurations supported by this script.
9803 available_tags=
9804
9805 # ### BEGIN LIBTOOL CONFIG
9806
9807 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9808
9809 # Shell to use when invoking shell scripts.
9810 SHELL=$lt_SHELL
9811
9812 # Whether or not to build shared libraries.
9813 build_libtool_libs=$enable_shared
9814
9815 # Whether or not to build static libraries.
9816 build_old_libs=$enable_static
9817
9818 # Whether or not to add -lc for building shared libraries.
9819 build_libtool_need_lc=$archive_cmds_need_lc
9820
9821 # Whether or not to disallow shared libs when runtime libs are static
9822 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9823
9824 # Whether or not to optimize for fast installation.
9825 fast_install=$enable_fast_install
9826
9827 # The host system.
9828 host_alias=$host_alias
9829 host=$host
9830
9831 # An echo program that does not interpret backslashes.
9832 echo=$lt_echo
9833
9834 # The archiver.
9835 AR=$lt_AR
9836 AR_FLAGS=$lt_AR_FLAGS
9837
9838 # A C compiler.
9839 LTCC=$lt_LTCC
9840
9841 # A language-specific compiler.
9842 CC=$lt_compiler
9843
9844 # Is the compiler the GNU C compiler?
9845 with_gcc=$GCC
9846
9847 # An ERE matcher.
9848 EGREP=$lt_EGREP
9849
9850 # The linker used to build libraries.
9851 LD=$lt_LD
9852
9853 # Whether we need hard or soft links.
9854 LN_S=$lt_LN_S
9855
9856 # A BSD-compatible nm program.
9857 NM=$lt_NM
9858
9859 # A symbol stripping program
9860 STRIP=$lt_STRIP
9861
9862 # Used to examine libraries when file_magic_cmd begins "file"
9863 MAGIC_CMD=$MAGIC_CMD
9864
9865 # Used on cygwin: DLL creation program.
9866 DLLTOOL="$DLLTOOL"
9867
9868 # Used on cygwin: object dumper.
9869 OBJDUMP="$OBJDUMP"
9870
9871 # Used on cygwin: assembler.
9872 AS="$AS"
9873
9874 # The name of the directory that contains temporary libtool files.
9875 objdir=$objdir
9876
9877 # How to create reloadable object files.
9878 reload_flag=$lt_reload_flag
9879 reload_cmds=$lt_reload_cmds
9880
9881 # How to pass a linker flag through the compiler.
9882 wl=$lt_lt_prog_compiler_wl
9883
9884 # Object file suffix (normally "o").
9885 objext="$ac_objext"
9886
9887 # Old archive suffix (normally "a").
9888 libext="$libext"
9889
9890 # Shared library suffix (normally ".so").
9891 shrext_cmds='$shrext_cmds'
9892
9893 # Executable file suffix (normally "").
9894 exeext="$exeext"
9895
9896 # Additional compiler flags for building library objects.
9897 pic_flag=$lt_lt_prog_compiler_pic
9898 pic_mode=$pic_mode
9899
9900 # What is the maximum length of a command?
9901 max_cmd_len=$lt_cv_sys_max_cmd_len
9902
9903 # Does compiler simultaneously support -c and -o options?
9904 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9905
9906 # Must we lock files when doing compilation ?
9907 need_locks=$lt_need_locks
9908
9909 # Do we need the lib prefix for modules?
9910 need_lib_prefix=$need_lib_prefix
9911
9912 # Do we need a version for libraries?
9913 need_version=$need_version
9914
9915 # Whether dlopen is supported.
9916 dlopen_support=$enable_dlopen
9917
9918 # Whether dlopen of programs is supported.
9919 dlopen_self=$enable_dlopen_self
9920
9921 # Whether dlopen of statically linked programs is supported.
9922 dlopen_self_static=$enable_dlopen_self_static
9923
9924 # Compiler flag to prevent dynamic linking.
9925 link_static_flag=$lt_lt_prog_compiler_static
9926
9927 # Compiler flag to turn off builtin functions.
9928 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9929
9930 # Compiler flag to allow reflexive dlopens.
9931 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9932
9933 # Compiler flag to generate shared objects directly from archives.
9934 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9935
9936 # Compiler flag to generate thread-safe objects.
9937 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9938
9939 # Library versioning type.
9940 version_type=$version_type
9941
9942 # Format of library name prefix.
9943 libname_spec=$lt_libname_spec
9944
9945 # List of archive names.  First name is the real one, the rest are links.
9946 # The last name is the one that the linker finds with -lNAME.
9947 library_names_spec=$lt_library_names_spec
9948
9949 # The coded name of the library, if different from the real name.
9950 soname_spec=$lt_soname_spec
9951
9952 # Commands used to build and install an old-style archive.
9953 RANLIB=$lt_RANLIB
9954 old_archive_cmds=$lt_old_archive_cmds
9955 old_postinstall_cmds=$lt_old_postinstall_cmds
9956 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9957
9958 # Create an old-style archive from a shared archive.
9959 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9960
9961 # Create a temporary old-style archive to link instead of a shared archive.
9962 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9963
9964 # Commands used to build and install a shared archive.
9965 archive_cmds=$lt_archive_cmds
9966 archive_expsym_cmds=$lt_archive_expsym_cmds
9967 postinstall_cmds=$lt_postinstall_cmds
9968 postuninstall_cmds=$lt_postuninstall_cmds
9969
9970 # Commands used to build a loadable module (assumed same as above if empty)
9971 module_cmds=$lt_module_cmds
9972 module_expsym_cmds=$lt_module_expsym_cmds
9973
9974 # Commands to strip libraries.
9975 old_striplib=$lt_old_striplib
9976 striplib=$lt_striplib
9977
9978 # Dependencies to place before the objects being linked to create a
9979 # shared library.
9980 predep_objects=$lt_predep_objects
9981
9982 # Dependencies to place after the objects being linked to create a
9983 # shared library.
9984 postdep_objects=$lt_postdep_objects
9985
9986 # Dependencies to place before the objects being linked to create a
9987 # shared library.
9988 predeps=$lt_predeps
9989
9990 # Dependencies to place after the objects being linked to create a
9991 # shared library.
9992 postdeps=$lt_postdeps
9993
9994 # The library search path used internally by the compiler when linking
9995 # a shared library.
9996 compiler_lib_search_path=$lt_compiler_lib_search_path
9997
9998 # Method to check whether dependent libraries are shared objects.
9999 deplibs_check_method=$lt_deplibs_check_method
10000
10001 # Command to use when deplibs_check_method == file_magic.
10002 file_magic_cmd=$lt_file_magic_cmd
10003
10004 # Flag that allows shared libraries with undefined symbols to be built.
10005 allow_undefined_flag=$lt_allow_undefined_flag
10006
10007 # Flag that forces no undefined symbols.
10008 no_undefined_flag=$lt_no_undefined_flag
10009
10010 # Commands used to finish a libtool library installation in a directory.
10011 finish_cmds=$lt_finish_cmds
10012
10013 # Same as above, but a single script fragment to be evaled but not shown.
10014 finish_eval=$lt_finish_eval
10015
10016 # Take the output of nm and produce a listing of raw symbols and C names.
10017 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10018
10019 # Transform the output of nm in a proper C declaration
10020 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10021
10022 # Transform the output of nm in a C name address pair
10023 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10024
10025 # This is the shared library runtime path variable.
10026 runpath_var=$runpath_var
10027
10028 # This is the shared library path variable.
10029 shlibpath_var=$shlibpath_var
10030
10031 # Is shlibpath searched before the hard-coded library search path?
10032 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10033
10034 # How to hardcode a shared library path into an executable.
10035 hardcode_action=$hardcode_action
10036
10037 # Whether we should hardcode library paths into libraries.
10038 hardcode_into_libs=$hardcode_into_libs
10039
10040 # Flag to hardcode \$libdir into a binary during linking.
10041 # This must work even if \$libdir does not exist.
10042 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10043
10044 # If ld is used when linking, flag to hardcode \$libdir into
10045 # a binary during linking. This must work even if \$libdir does
10046 # not exist.
10047 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10048
10049 # Whether we need a single -rpath flag with a separated argument.
10050 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10051
10052 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10053 # resulting binary.
10054 hardcode_direct=$hardcode_direct
10055
10056 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10057 # resulting binary.
10058 hardcode_minus_L=$hardcode_minus_L
10059
10060 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10061 # the resulting binary.
10062 hardcode_shlibpath_var=$hardcode_shlibpath_var
10063
10064 # Set to yes if building a shared library automatically hardcodes DIR into the library
10065 # and all subsequent libraries and executables linked against it.
10066 hardcode_automatic=$hardcode_automatic
10067
10068 # Variables whose values should be saved in libtool wrapper scripts and
10069 # restored at relink time.
10070 variables_saved_for_relink="$variables_saved_for_relink"
10071
10072 # Whether libtool must link a program against all its dependency libraries.
10073 link_all_deplibs=$link_all_deplibs
10074
10075 # Compile-time system search path for libraries
10076 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10077
10078 # Run-time system search path for libraries
10079 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10080
10081 # Fix the shell variable \$srcfile for the compiler.
10082 fix_srcfile_path="$fix_srcfile_path"
10083
10084 # Set to yes if exported symbols are required.
10085 always_export_symbols=$always_export_symbols
10086
10087 # The commands to list exported symbols.
10088 export_symbols_cmds=$lt_export_symbols_cmds
10089
10090 # The commands to extract the exported symbol list from a shared archive.
10091 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10092
10093 # Symbols that should not be listed in the preloaded symbols.
10094 exclude_expsyms=$lt_exclude_expsyms
10095
10096 # Symbols that must always be exported.
10097 include_expsyms=$lt_include_expsyms
10098
10099 # ### END LIBTOOL CONFIG
10100
10101 __EOF__
10102
10103
10104   case $host_os in
10105   aix3*)
10106     cat <<\EOF >> "$cfgfile"
10107
10108 # AIX sometimes has problems with the GCC collect2 program.  For some
10109 # reason, if we set the COLLECT_NAMES environment variable, the problems
10110 # vanish in a puff of smoke.
10111 if test "X${COLLECT_NAMES+set}" != Xset; then
10112   COLLECT_NAMES=
10113   export COLLECT_NAMES
10114 fi
10115 EOF
10116     ;;
10117   esac
10118
10119   # We use sed instead of cat because bash on DJGPP gets confused if
10120   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10121   # text mode, it properly converts lines to CR/LF.  This bash problem
10122   # is reportedly fixed, but why not run on old versions too?
10123   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10124
10125   mv -f "$cfgfile" "$ofile" || \
10126     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10127   chmod +x "$ofile"
10128
10129 else
10130   # If there is no Makefile yet, we rely on a make rule to execute
10131   # `config.status --recheck' to rerun these tests and create the
10132   # libtool script then.
10133   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10134   if test -f "$ltmain_in"; then
10135     test -f Makefile && make "$ltmain"
10136   fi
10137 fi
10138
10139
10140 ac_ext=c
10141 ac_cpp='$CPP $CPPFLAGS'
10142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10145
10146 CC="$lt_save_CC"
10147
10148
10149 # Check whether --with-tags or --without-tags was given.
10150 if test "${with_tags+set}" = set; then
10151   withval="$with_tags"
10152   tagnames="$withval"
10153 fi;
10154
10155 if test -f "$ltmain" && test -n "$tagnames"; then
10156   if test ! -f "${ofile}"; then
10157     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10158 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10159   fi
10160
10161   if test -z "$LTCC"; then
10162     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10163     if test -z "$LTCC"; then
10164       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10165 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10166     else
10167       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10168 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10169     fi
10170   fi
10171
10172   # Extract list of available tagged configurations in $ofile.
10173   # Note that this assumes the entire list is on one line.
10174   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10175
10176   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10177   for tagname in $tagnames; do
10178     IFS="$lt_save_ifs"
10179     # Check whether tagname contains only valid characters
10180     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10181     "") ;;
10182     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10183 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10184    { (exit 1); exit 1; }; }
10185         ;;
10186     esac
10187
10188     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10189     then
10190       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10191 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10192    { (exit 1); exit 1; }; }
10193     fi
10194
10195     # Update the list of available tags.
10196     if test -n "$tagname"; then
10197       echo appending configuration tag "$tagname" to $ofile
10198
10199       case $tagname in
10200       CXX)
10201         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10202             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10203             (test "X$CXX" != "Xg++"))) ; then
10204           ac_ext=cc
10205 ac_cpp='$CXXCPP $CPPFLAGS'
10206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10209
10210
10211
10212
10213 archive_cmds_need_lc_CXX=no
10214 allow_undefined_flag_CXX=
10215 always_export_symbols_CXX=no
10216 archive_expsym_cmds_CXX=
10217 export_dynamic_flag_spec_CXX=
10218 hardcode_direct_CXX=no
10219 hardcode_libdir_flag_spec_CXX=
10220 hardcode_libdir_flag_spec_ld_CXX=
10221 hardcode_libdir_separator_CXX=
10222 hardcode_minus_L_CXX=no
10223 hardcode_automatic_CXX=no
10224 module_cmds_CXX=
10225 module_expsym_cmds_CXX=
10226 link_all_deplibs_CXX=unknown
10227 old_archive_cmds_CXX=$old_archive_cmds
10228 no_undefined_flag_CXX=
10229 whole_archive_flag_spec_CXX=
10230 enable_shared_with_static_runtimes_CXX=no
10231
10232 # Dependencies to place before and after the object being linked:
10233 predep_objects_CXX=
10234 postdep_objects_CXX=
10235 predeps_CXX=
10236 postdeps_CXX=
10237 compiler_lib_search_path_CXX=
10238
10239 # Source file extension for C++ test sources.
10240 ac_ext=cc
10241
10242 # Object file extension for compiled C++ test sources.
10243 objext=o
10244 objext_CXX=$objext
10245
10246 # Code to be used in simple compile tests
10247 lt_simple_compile_test_code="int some_variable = 0;\n"
10248
10249 # Code to be used in simple link tests
10250 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10251
10252 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10253
10254 # If no C compiler was specified, use CC.
10255 LTCC=${LTCC-"$CC"}
10256
10257 # Allow CC to be a program name with arguments.
10258 compiler=$CC
10259
10260
10261 # Allow CC to be a program name with arguments.
10262 lt_save_CC=$CC
10263 lt_save_LD=$LD
10264 lt_save_GCC=$GCC
10265 GCC=$GXX
10266 lt_save_with_gnu_ld=$with_gnu_ld
10267 lt_save_path_LD=$lt_cv_path_LD
10268 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10269   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10270 else
10271   unset lt_cv_prog_gnu_ld
10272 fi
10273 if test -n "${lt_cv_path_LDCXX+set}"; then
10274   lt_cv_path_LD=$lt_cv_path_LDCXX
10275 else
10276   unset lt_cv_path_LD
10277 fi
10278 test -z "${LDCXX+set}" || LD=$LDCXX
10279 CC=${CXX-"c++"}
10280 compiler=$CC
10281 compiler_CXX=$CC
10282 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10283
10284 # We don't want -fno-exception wen compiling C++ code, so set the
10285 # no_builtin_flag separately
10286 if test "$GXX" = yes; then
10287   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10288 else
10289   lt_prog_compiler_no_builtin_flag_CXX=
10290 fi
10291
10292 if test "$GXX" = yes; then
10293   # Set up default GNU C++ configuration
10294
10295
10296 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10297 if test "${with_gnu_ld+set}" = set; then
10298   withval="$with_gnu_ld"
10299   test "$withval" = no || with_gnu_ld=yes
10300 else
10301   with_gnu_ld=no
10302 fi;
10303 ac_prog=ld
10304 if test "$GCC" = yes; then
10305   # Check if gcc -print-prog-name=ld gives a path.
10306   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10307 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10308   case $host in
10309   *-*-mingw*)
10310     # gcc leaves a trailing carriage return which upsets mingw
10311     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10312   *)
10313     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10314   esac
10315   case $ac_prog in
10316     # Accept absolute paths.
10317     [\\/]* | ?:[\\/]*)
10318       re_direlt='/[^/][^/]*/\.\./'
10319       # Canonicalize the pathname of ld
10320       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10321       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10322         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10323       done
10324       test -z "$LD" && LD="$ac_prog"
10325       ;;
10326   "")
10327     # If it fails, then pretend we aren't using GCC.
10328     ac_prog=ld
10329     ;;
10330   *)
10331     # If it is relative, then search for the first ld in PATH.
10332     with_gnu_ld=unknown
10333     ;;
10334   esac
10335 elif test "$with_gnu_ld" = yes; then
10336   echo "$as_me:$LINENO: checking for GNU ld" >&5
10337 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10338 else
10339   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10340 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10341 fi
10342 if test "${lt_cv_path_LD+set}" = set; then
10343   echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345   if test -z "$LD"; then
10346   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10347   for ac_dir in $PATH; do
10348     IFS="$lt_save_ifs"
10349     test -z "$ac_dir" && ac_dir=.
10350     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10351       lt_cv_path_LD="$ac_dir/$ac_prog"
10352       # Check to see if the program is GNU ld.  I'd rather use --version,
10353       # but apparently some GNU ld's only accept -v.
10354       # Break only if it was the GNU/non-GNU ld that we prefer.
10355       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10356       *GNU* | *'with BFD'*)
10357         test "$with_gnu_ld" != no && break
10358         ;;
10359       *)
10360         test "$with_gnu_ld" != yes && break
10361         ;;
10362       esac
10363     fi
10364   done
10365   IFS="$lt_save_ifs"
10366 else
10367   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10368 fi
10369 fi
10370
10371 LD="$lt_cv_path_LD"
10372 if test -n "$LD"; then
10373   echo "$as_me:$LINENO: result: $LD" >&5
10374 echo "${ECHO_T}$LD" >&6
10375 else
10376   echo "$as_me:$LINENO: result: no" >&5
10377 echo "${ECHO_T}no" >&6
10378 fi
10379 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10380 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10381    { (exit 1); exit 1; }; }
10382 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10383 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10384 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10385   echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10388 case `$LD -v 2>&1 </dev/null` in
10389 *GNU* | *'with BFD'*)
10390   lt_cv_prog_gnu_ld=yes
10391   ;;
10392 *)
10393   lt_cv_prog_gnu_ld=no
10394   ;;
10395 esac
10396 fi
10397 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10398 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10399 with_gnu_ld=$lt_cv_prog_gnu_ld
10400
10401
10402
10403   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10404   # archiving commands below assume that GNU ld is being used.
10405   if test "$with_gnu_ld" = yes; then
10406     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10407     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'
10408
10409     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10410     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10411
10412     # If archive_cmds runs LD, not CC, wlarc should be empty
10413     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10414     #     investigate it a little bit more. (MM)
10415     wlarc='${wl}'
10416
10417     # ancient GNU ld didn't support --whole-archive et. al.
10418     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10419         grep 'no-whole-archive' > /dev/null; then
10420       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10421     else
10422       whole_archive_flag_spec_CXX=
10423     fi
10424   else
10425     with_gnu_ld=no
10426     wlarc=
10427
10428     # A generic and very simple default shared library creation
10429     # command for GNU C++ for the case where it uses the native
10430     # linker, instead of GNU ld.  If possible, this setting should
10431     # overridden to take advantage of the native linker features on
10432     # the platform it is being used on.
10433     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10434   fi
10435
10436   # Commands to make compiler produce verbose output that lists
10437   # what "hidden" libraries, object files and flags are used when
10438   # linking a shared library.
10439   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10440
10441 else
10442   GXX=no
10443   with_gnu_ld=no
10444   wlarc=
10445 fi
10446
10447 # PORTME: fill in a description of your system's C++ link characteristics
10448 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10449 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10450 ld_shlibs_CXX=yes
10451 case $host_os in
10452   aix3*)
10453     # FIXME: insert proper C++ library support
10454     ld_shlibs_CXX=no
10455     ;;
10456   aix4* | aix5*)
10457     if test "$host_cpu" = ia64; then
10458       # On IA64, the linker does run time linking by default, so we don't
10459       # have to do anything special.
10460       aix_use_runtimelinking=no
10461       exp_sym_flag='-Bexport'
10462       no_entry_flag=""
10463     else
10464       aix_use_runtimelinking=no
10465
10466       # Test if we are trying to use run time linking or normal
10467       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10468       # need to do runtime linking.
10469       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10470         for ld_flag in $LDFLAGS; do
10471           case $ld_flag in
10472           *-brtl*)
10473             aix_use_runtimelinking=yes
10474             break
10475             ;;
10476           esac
10477         done
10478       esac
10479
10480       exp_sym_flag='-bexport'
10481       no_entry_flag='-bnoentry'
10482     fi
10483
10484     # When large executables or shared objects are built, AIX ld can
10485     # have problems creating the table of contents.  If linking a library
10486     # or program results in "error TOC overflow" add -mminimal-toc to
10487     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10488     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10489
10490     archive_cmds_CXX=''
10491     hardcode_direct_CXX=yes
10492     hardcode_libdir_separator_CXX=':'
10493     link_all_deplibs_CXX=yes
10494
10495     if test "$GXX" = yes; then
10496       case $host_os in aix4.012|aix4.012.*)
10497       # We only want to do this on AIX 4.2 and lower, the check
10498       # below for broken collect2 doesn't work under 4.3+
10499         collect2name=`${CC} -print-prog-name=collect2`
10500         if test -f "$collect2name" && \
10501            strings "$collect2name" | grep resolve_lib_name >/dev/null
10502         then
10503           # We have reworked collect2
10504           hardcode_direct_CXX=yes
10505         else
10506           # We have old collect2
10507           hardcode_direct_CXX=unsupported
10508           # It fails to find uninstalled libraries when the uninstalled
10509           # path is not listed in the libpath.  Setting hardcode_minus_L
10510           # to unsupported forces relinking
10511           hardcode_minus_L_CXX=yes
10512           hardcode_libdir_flag_spec_CXX='-L$libdir'
10513           hardcode_libdir_separator_CXX=
10514         fi
10515       esac
10516       shared_flag='-shared'
10517     else
10518       # not using gcc
10519       if test "$host_cpu" = ia64; then
10520         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10521         # chokes on -Wl,-G. The following line is correct:
10522         shared_flag='-G'
10523       else
10524         if test "$aix_use_runtimelinking" = yes; then
10525           shared_flag='${wl}-G'
10526         else
10527           shared_flag='${wl}-bM:SRE'
10528         fi
10529       fi
10530     fi
10531
10532     # It seems that -bexpall does not export symbols beginning with
10533     # underscore (_), so it is better to generate a list of symbols to export.
10534     always_export_symbols_CXX=yes
10535     if test "$aix_use_runtimelinking" = yes; then
10536       # Warning - without using the other runtime loading flags (-brtl),
10537       # -berok will link without error, but may produce a broken library.
10538       allow_undefined_flag_CXX='-berok'
10539       # Determine the default libpath from the value encoded in an empty executable.
10540       cat >conftest.$ac_ext <<_ACEOF
10541 /* confdefs.h.  */
10542 _ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h.  */
10546
10547 int
10548 main ()
10549 {
10550
10551   ;
10552   return 0;
10553 }
10554 _ACEOF
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557   (eval $ac_link) 2>conftest.er1
10558   ac_status=$?
10559   grep -v '^ *+' conftest.er1 >conftest.err
10560   rm -f conftest.er1
10561   cat conftest.err >&5
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); } &&
10564          { ac_try='test -z "$ac_cxx_werror_flag"
10565                          || test ! -s conftest.err'
10566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567   (eval $ac_try) 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); }; } &&
10571          { ac_try='test -s conftest$ac_exeext'
10572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573   (eval $ac_try) 2>&5
10574   ac_status=$?
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); }; }; then
10577
10578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10579 }'`
10580 # Check for a 64-bit object if we didn't find anything.
10581 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; }
10582 }'`; fi
10583 else
10584   echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10586
10587 fi
10588 rm -f conftest.err conftest.$ac_objext \
10589       conftest$ac_exeext conftest.$ac_ext
10590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10591
10592       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10593
10594       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"
10595      else
10596       if test "$host_cpu" = ia64; then
10597         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10598         allow_undefined_flag_CXX="-z nodefs"
10599         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"
10600       else
10601         # Determine the default libpath from the value encoded in an empty executable.
10602         cat >conftest.$ac_ext <<_ACEOF
10603 /* confdefs.h.  */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h.  */
10608
10609 int
10610 main ()
10611 {
10612
10613   ;
10614   return 0;
10615 }
10616 _ACEOF
10617 rm -f conftest.$ac_objext conftest$ac_exeext
10618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10619   (eval $ac_link) 2>conftest.er1
10620   ac_status=$?
10621   grep -v '^ *+' conftest.er1 >conftest.err
10622   rm -f conftest.er1
10623   cat conftest.err >&5
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); } &&
10626          { ac_try='test -z "$ac_cxx_werror_flag"
10627                          || test ! -s conftest.err'
10628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629   (eval $ac_try) 2>&5
10630   ac_status=$?
10631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632   (exit $ac_status); }; } &&
10633          { ac_try='test -s conftest$ac_exeext'
10634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635   (eval $ac_try) 2>&5
10636   ac_status=$?
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); }; }; then
10639
10640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10641 }'`
10642 # Check for a 64-bit object if we didn't find anything.
10643 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; }
10644 }'`; fi
10645 else
10646   echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10648
10649 fi
10650 rm -f conftest.err conftest.$ac_objext \
10651       conftest$ac_exeext conftest.$ac_ext
10652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10653
10654         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10655         # Warning - without using the other run time loading flags,
10656         # -berok will link without error, but may produce a broken library.
10657         no_undefined_flag_CXX=' ${wl}-bernotok'
10658         allow_undefined_flag_CXX=' ${wl}-berok'
10659         # -bexpall does not export symbols beginning with underscore (_)
10660         always_export_symbols_CXX=yes
10661         # Exported symbols can be pulled into shared objects from archives
10662         whole_archive_flag_spec_CXX=' '
10663         archive_cmds_need_lc_CXX=yes
10664         # This is similar to how AIX traditionally builds it's shared libraries.
10665         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'
10666       fi
10667     fi
10668     ;;
10669   chorus*)
10670     case $cc_basename in
10671       *)
10672         # FIXME: insert proper C++ library support
10673         ld_shlibs_CXX=no
10674         ;;
10675     esac
10676     ;;
10677
10678
10679   cygwin* | mingw* | pw32*)
10680     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10681     # as there is no search path for DLLs.
10682     hardcode_libdir_flag_spec_CXX='-L$libdir'
10683     allow_undefined_flag_CXX=unsupported
10684     always_export_symbols_CXX=no
10685     enable_shared_with_static_runtimes_CXX=yes
10686
10687     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10688       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'
10689       # If the export-symbols file already is a .def file (1st line
10690       # is EXPORTS), use it as is; otherwise, prepend...
10691       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10692         cp $export_symbols $output_objdir/$soname.def;
10693       else
10694         echo EXPORTS > $output_objdir/$soname.def;
10695         cat $export_symbols >> $output_objdir/$soname.def;
10696       fi~
10697       $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'
10698     else
10699       ld_shlibs_CXX=no
10700     fi
10701   ;;
10702       darwin* | rhapsody*)
10703         case "$host_os" in
10704         rhapsody* | darwin1.[012])
10705          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10706          ;;
10707        *) # Darwin 1.3 on
10708          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10709            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10710          else
10711            case ${MACOSX_DEPLOYMENT_TARGET} in
10712              10.[012])
10713                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10714                ;;
10715              10.*)
10716                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10717                ;;
10718            esac
10719          fi
10720          ;;
10721         esac
10722       archive_cmds_need_lc_CXX=no
10723       hardcode_direct_CXX=no
10724       hardcode_automatic_CXX=yes
10725       hardcode_shlibpath_var_CXX=unsupported
10726       whole_archive_flag_spec_CXX=''
10727       link_all_deplibs_CXX=yes
10728
10729     if test "$GXX" = yes ; then
10730       lt_int_apple_cc_single_mod=no
10731       output_verbose_link_cmd='echo'
10732       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10733        lt_int_apple_cc_single_mod=yes
10734       fi
10735       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10736        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10737       else
10738           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'
10739         fi
10740         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10741         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10742           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10743             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}'
10744           else
10745             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}'
10746           fi
10747             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}'
10748       else
10749       case "$cc_basename" in
10750         xlc*)
10751          output_verbose_link_cmd='echo'
10752           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'
10753           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10754           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10755           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}'
10756           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}'
10757           ;;
10758        *)
10759          ld_shlibs_CXX=no
10760           ;;
10761       esac
10762       fi
10763         ;;
10764
10765   dgux*)
10766     case $cc_basename in
10767       ec++)
10768         # FIXME: insert proper C++ library support
10769         ld_shlibs_CXX=no
10770         ;;
10771       ghcx)
10772         # Green Hills C++ Compiler
10773         # FIXME: insert proper C++ library support
10774         ld_shlibs_CXX=no
10775         ;;
10776       *)
10777         # FIXME: insert proper C++ library support
10778         ld_shlibs_CXX=no
10779         ;;
10780     esac
10781     ;;
10782   freebsd12*)
10783     # C++ shared libraries reported to be fairly broken before switch to ELF
10784     ld_shlibs_CXX=no
10785     ;;
10786   freebsd-elf*)
10787     archive_cmds_need_lc_CXX=no
10788     ;;
10789   freebsd* | kfreebsd*-gnu)
10790     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10791     # conventions
10792     ld_shlibs_CXX=yes
10793     ;;
10794   gnu*)
10795     ;;
10796   hpux9*)
10797     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10798     hardcode_libdir_separator_CXX=:
10799     export_dynamic_flag_spec_CXX='${wl}-E'
10800     hardcode_direct_CXX=yes
10801     hardcode_minus_L_CXX=yes # Not in the search PATH,
10802                                 # but as the default
10803                                 # location of the library.
10804
10805     case $cc_basename in
10806     CC)
10807       # FIXME: insert proper C++ library support
10808       ld_shlibs_CXX=no
10809       ;;
10810     aCC)
10811       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'
10812       # Commands to make compiler produce verbose output that lists
10813       # what "hidden" libraries, object files and flags are used when
10814       # linking a shared library.
10815       #
10816       # There doesn't appear to be a way to prevent this compiler from
10817       # explicitly linking system object files so we need to strip them
10818       # from the output so that they don't get included in the library
10819       # dependencies.
10820       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'
10821       ;;
10822     *)
10823       if test "$GXX" = yes; then
10824         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'
10825       else
10826         # FIXME: insert proper C++ library support
10827         ld_shlibs_CXX=no
10828       fi
10829       ;;
10830     esac
10831     ;;
10832   hpux10*|hpux11*)
10833     if test $with_gnu_ld = no; then
10834       case "$host_cpu" in
10835       hppa*64*)
10836         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10837         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10838         hardcode_libdir_separator_CXX=:
10839         ;;
10840       ia64*)
10841         hardcode_libdir_flag_spec_CXX='-L$libdir'
10842         ;;
10843       *)
10844         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10845         hardcode_libdir_separator_CXX=:
10846         export_dynamic_flag_spec_CXX='${wl}-E'
10847         ;;
10848       esac
10849     fi
10850     case "$host_cpu" in
10851     hppa*64*)
10852       hardcode_direct_CXX=no
10853       hardcode_shlibpath_var_CXX=no
10854       ;;
10855     ia64*)
10856       hardcode_direct_CXX=no
10857       hardcode_shlibpath_var_CXX=no
10858       hardcode_minus_L_CXX=yes # Not in the search PATH,
10859                                               # but as the default
10860                                               # location of the library.
10861       ;;
10862     *)
10863       hardcode_direct_CXX=yes
10864       hardcode_minus_L_CXX=yes # Not in the search PATH,
10865                                               # but as the default
10866                                               # location of the library.
10867       ;;
10868     esac
10869
10870     case $cc_basename in
10871       CC)
10872         # FIXME: insert proper C++ library support
10873         ld_shlibs_CXX=no
10874         ;;
10875       aCC)
10876         case "$host_cpu" in
10877         hppa*64*|ia64*)
10878           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10879           ;;
10880         *)
10881           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10882           ;;
10883         esac
10884         # Commands to make compiler produce verbose output that lists
10885         # what "hidden" libraries, object files and flags are used when
10886         # linking a shared library.
10887         #
10888         # There doesn't appear to be a way to prevent this compiler from
10889         # explicitly linking system object files so we need to strip them
10890         # from the output so that they don't get included in the library
10891         # dependencies.
10892         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'
10893         ;;
10894       *)
10895         if test "$GXX" = yes; then
10896           if test $with_gnu_ld = no; then
10897             case "$host_cpu" in
10898             ia64*|hppa*64*)
10899               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10900               ;;
10901             *)
10902               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'
10903               ;;
10904             esac
10905           fi
10906         else
10907           # FIXME: insert proper C++ library support
10908           ld_shlibs_CXX=no
10909         fi
10910         ;;
10911     esac
10912     ;;
10913   irix5* | irix6*)
10914     case $cc_basename in
10915       CC)
10916         # SGI C++
10917         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'
10918
10919         # Archives containing C++ object files must be created using
10920         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10921         # necessary to make sure instantiated templates are included
10922         # in the archive.
10923         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10924         ;;
10925       *)
10926         if test "$GXX" = yes; then
10927           if test "$with_gnu_ld" = no; then
10928             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'
10929           else
10930             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'
10931           fi
10932         fi
10933         link_all_deplibs_CXX=yes
10934         ;;
10935     esac
10936     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10937     hardcode_libdir_separator_CXX=:
10938     ;;
10939   linux*)
10940     case $cc_basename in
10941       KCC)
10942         # Kuck and Associates, Inc. (KAI) C++ Compiler
10943
10944         # KCC will only create a shared library if the output file
10945         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10946         # to its proper name (with version) after linking.
10947         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'
10948         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'
10949         # Commands to make compiler produce verbose output that lists
10950         # what "hidden" libraries, object files and flags are used when
10951         # linking a shared library.
10952         #
10953         # There doesn't appear to be a way to prevent this compiler from
10954         # explicitly linking system object files so we need to strip them
10955         # from the output so that they don't get included in the library
10956         # dependencies.
10957         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'
10958
10959         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10960         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10961
10962         # Archives containing C++ object files must be created using
10963         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10964         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10965         ;;
10966       icpc)
10967         # Intel C++
10968         with_gnu_ld=yes
10969         # version 8.0 and above of icpc choke on multiply defined symbols
10970         # if we add $predep_objects and $postdep_objects, however 7.1 and
10971         # earlier do not add the objects themselves.
10972         case `$CC -V 2>&1` in
10973         *"Version 7."*)
10974           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10975           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'
10976           ;;
10977         *)  # Version 8.0 or newer
10978           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10979         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10980           ;;
10981         esac
10982         archive_cmds_need_lc_CXX=no
10983         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10984         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10985         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10986         ;;
10987       cxx)
10988         # Compaq C++
10989         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10990         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'
10991
10992         runpath_var=LD_RUN_PATH
10993         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10994         hardcode_libdir_separator_CXX=:
10995
10996         # Commands to make compiler produce verbose output that lists
10997         # what "hidden" libraries, object files and flags are used when
10998         # linking a shared library.
10999         #
11000         # There doesn't appear to be a way to prevent this compiler from
11001         # explicitly linking system object files so we need to strip them
11002         # from the output so that they don't get included in the library
11003         # dependencies.
11004         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'
11005         ;;
11006     esac
11007     ;;
11008   lynxos*)
11009     # FIXME: insert proper C++ library support
11010     ld_shlibs_CXX=no
11011     ;;
11012   m88k*)
11013     # FIXME: insert proper C++ library support
11014     ld_shlibs_CXX=no
11015     ;;
11016   mvs*)
11017     case $cc_basename in
11018       cxx)
11019         # FIXME: insert proper C++ library support
11020         ld_shlibs_CXX=no
11021         ;;
11022       *)
11023         # FIXME: insert proper C++ library support
11024         ld_shlibs_CXX=no
11025         ;;
11026     esac
11027     ;;
11028   netbsd*)
11029     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11030       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11031       wlarc=
11032       hardcode_libdir_flag_spec_CXX='-R$libdir'
11033       hardcode_direct_CXX=yes
11034       hardcode_shlibpath_var_CXX=no
11035     fi
11036     # Workaround some broken pre-1.5 toolchains
11037     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11038     ;;
11039   openbsd2*)
11040     # C++ shared libraries are fairly broken
11041     ld_shlibs_CXX=no
11042     ;;
11043   openbsd*)
11044     hardcode_direct_CXX=yes
11045     hardcode_shlibpath_var_CXX=no
11046     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11047     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11048     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11049       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11050       export_dynamic_flag_spec_CXX='${wl}-E'
11051       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11052     fi
11053     output_verbose_link_cmd='echo'
11054     ;;
11055   osf3*)
11056     case $cc_basename in
11057       KCC)
11058         # Kuck and Associates, Inc. (KAI) C++ Compiler
11059
11060         # KCC will only create a shared library if the output file
11061         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11062         # to its proper name (with version) after linking.
11063         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'
11064
11065         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11066         hardcode_libdir_separator_CXX=:
11067
11068         # Archives containing C++ object files must be created using
11069         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11070         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11071
11072         ;;
11073       RCC)
11074         # Rational C++ 2.4.1
11075         # FIXME: insert proper C++ library support
11076         ld_shlibs_CXX=no
11077         ;;
11078       cxx)
11079         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11080         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'
11081
11082         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11083         hardcode_libdir_separator_CXX=:
11084
11085         # Commands to make compiler produce verbose output that lists
11086         # what "hidden" libraries, object files and flags are used when
11087         # linking a shared library.
11088         #
11089         # There doesn't appear to be a way to prevent this compiler from
11090         # explicitly linking system object files so we need to strip them
11091         # from the output so that they don't get included in the library
11092         # dependencies.
11093         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'
11094         ;;
11095       *)
11096         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11097           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11098           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'
11099
11100           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11101           hardcode_libdir_separator_CXX=:
11102
11103           # Commands to make compiler produce verbose output that lists
11104           # what "hidden" libraries, object files and flags are used when
11105           # linking a shared library.
11106           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11107
11108         else
11109           # FIXME: insert proper C++ library support
11110           ld_shlibs_CXX=no
11111         fi
11112         ;;
11113     esac
11114     ;;
11115   osf4* | osf5*)
11116     case $cc_basename in
11117       KCC)
11118         # Kuck and Associates, Inc. (KAI) C++ Compiler
11119
11120         # KCC will only create a shared library if the output file
11121         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11122         # to its proper name (with version) after linking.
11123         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'
11124
11125         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11126         hardcode_libdir_separator_CXX=:
11127
11128         # Archives containing C++ object files must be created using
11129         # the KAI C++ compiler.
11130         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11131         ;;
11132       RCC)
11133         # Rational C++ 2.4.1
11134         # FIXME: insert proper C++ library support
11135         ld_shlibs_CXX=no
11136         ;;
11137       cxx)
11138         allow_undefined_flag_CXX=' -expect_unresolved \*'
11139         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'
11140         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11141           echo "-hidden">> $lib.exp~
11142           $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~
11143           $rm $lib.exp'
11144
11145         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11146         hardcode_libdir_separator_CXX=:
11147
11148         # Commands to make compiler produce verbose output that lists
11149         # what "hidden" libraries, object files and flags are used when
11150         # linking a shared library.
11151         #
11152         # There doesn't appear to be a way to prevent this compiler from
11153         # explicitly linking system object files so we need to strip them
11154         # from the output so that they don't get included in the library
11155         # dependencies.
11156         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'
11157         ;;
11158       *)
11159         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11160           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11161          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'
11162
11163           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11164           hardcode_libdir_separator_CXX=:
11165
11166           # Commands to make compiler produce verbose output that lists
11167           # what "hidden" libraries, object files and flags are used when
11168           # linking a shared library.
11169           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11170
11171         else
11172           # FIXME: insert proper C++ library support
11173           ld_shlibs_CXX=no
11174         fi
11175         ;;
11176     esac
11177     ;;
11178   psos*)
11179     # FIXME: insert proper C++ library support
11180     ld_shlibs_CXX=no
11181     ;;
11182   sco*)
11183     archive_cmds_need_lc_CXX=no
11184     case $cc_basename in
11185       CC)
11186         # FIXME: insert proper C++ library support
11187         ld_shlibs_CXX=no
11188         ;;
11189       *)
11190         # FIXME: insert proper C++ library support
11191         ld_shlibs_CXX=no
11192         ;;
11193     esac
11194     ;;
11195   sunos4*)
11196     case $cc_basename in
11197       CC)
11198         # Sun C++ 4.x
11199         # FIXME: insert proper C++ library support
11200         ld_shlibs_CXX=no
11201         ;;
11202       lcc)
11203         # Lucid
11204         # FIXME: insert proper C++ library support
11205         ld_shlibs_CXX=no
11206         ;;
11207       *)
11208         # FIXME: insert proper C++ library support
11209         ld_shlibs_CXX=no
11210         ;;
11211     esac
11212     ;;
11213   solaris*)
11214     case $cc_basename in
11215       CC)
11216         # Sun C++ 4.2, 5.x and Centerline C++
11217         no_undefined_flag_CXX=' -zdefs'
11218         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11219         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11220         $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'
11221
11222         hardcode_libdir_flag_spec_CXX='-R$libdir'
11223         hardcode_shlibpath_var_CXX=no
11224         case $host_os in
11225           solaris2.0-5 | solaris2.0-5.*) ;;
11226           *)
11227             # The C++ compiler is used as linker so we must use $wl
11228             # flag to pass the commands to the underlying system
11229             # linker.
11230             # Supported since Solaris 2.6 (maybe 2.5.1?)
11231             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11232             ;;
11233         esac
11234         link_all_deplibs_CXX=yes
11235
11236         # Commands to make compiler produce verbose output that lists
11237         # what "hidden" libraries, object files and flags are used when
11238         # linking a shared library.
11239         #
11240         # There doesn't appear to be a way to prevent this compiler from
11241         # explicitly linking system object files so we need to strip them
11242         # from the output so that they don't get included in the library
11243         # dependencies.
11244         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'
11245
11246         # Archives containing C++ object files must be created using
11247         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11248         # necessary to make sure instantiated templates are included
11249         # in the archive.
11250         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11251         ;;
11252       gcx)
11253         # Green Hills C++ Compiler
11254         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11255
11256         # The C++ compiler must be used to create the archive.
11257         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11258         ;;
11259       *)
11260         # GNU C++ compiler with Solaris linker
11261         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11262           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11263           if $CC --version | grep -v '^2\.7' > /dev/null; then
11264             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11265             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11266                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11267
11268             # Commands to make compiler produce verbose output that lists
11269             # what "hidden" libraries, object files and flags are used when
11270             # linking a shared library.
11271             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11272           else
11273             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11274             # platform.
11275             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11276             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11277                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11278
11279             # Commands to make compiler produce verbose output that lists
11280             # what "hidden" libraries, object files and flags are used when
11281             # linking a shared library.
11282             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11283           fi
11284
11285           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11286         fi
11287         ;;
11288     esac
11289     ;;
11290   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11291     archive_cmds_need_lc_CXX=no
11292     ;;
11293   tandem*)
11294     case $cc_basename in
11295       NCC)
11296         # NonStop-UX NCC 3.20
11297         # FIXME: insert proper C++ library support
11298         ld_shlibs_CXX=no
11299         ;;
11300       *)
11301         # FIXME: insert proper C++ library support
11302         ld_shlibs_CXX=no
11303         ;;
11304     esac
11305     ;;
11306   vxworks*)
11307     # FIXME: insert proper C++ library support
11308     ld_shlibs_CXX=no
11309     ;;
11310   *)
11311     # FIXME: insert proper C++ library support
11312     ld_shlibs_CXX=no
11313     ;;
11314 esac
11315 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11316 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11317 test "$ld_shlibs_CXX" = no && can_build_shared=no
11318
11319 GCC_CXX="$GXX"
11320 LD_CXX="$LD"
11321
11322
11323 cat > conftest.$ac_ext <<EOF
11324 class Foo
11325 {
11326 public:
11327   Foo (void) { a = 0; }
11328 private:
11329   int a;
11330 };
11331 EOF
11332
11333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11334   (eval $ac_compile) 2>&5
11335   ac_status=$?
11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); }; then
11338   # Parse the compiler output and extract the necessary
11339   # objects, libraries and library flags.
11340
11341   # Sentinel used to keep track of whether or not we are before
11342   # the conftest object file.
11343   pre_test_object_deps_done=no
11344
11345   # The `*' in the case matches for architectures that use `case' in
11346   # $output_verbose_cmd can trigger glob expansion during the loop
11347   # eval without this substitution.
11348   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11349
11350   for p in `eval $output_verbose_link_cmd`; do
11351     case $p in
11352
11353     -L* | -R* | -l*)
11354        # Some compilers place space between "-{L,R}" and the path.
11355        # Remove the space.
11356        if test $p = "-L" \
11357           || test $p = "-R"; then
11358          prev=$p
11359          continue
11360        else
11361          prev=
11362        fi
11363
11364        if test "$pre_test_object_deps_done" = no; then
11365          case $p in
11366          -L* | -R*)
11367            # Internal compiler library paths should come after those
11368            # provided the user.  The postdeps already come after the
11369            # user supplied libs so there is no need to process them.
11370            if test -z "$compiler_lib_search_path_CXX"; then
11371              compiler_lib_search_path_CXX="${prev}${p}"
11372            else
11373              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11374            fi
11375            ;;
11376          # The "-l" case would never come before the object being
11377          # linked, so don't bother handling this case.
11378          esac
11379        else
11380          if test -z "$postdeps_CXX"; then
11381            postdeps_CXX="${prev}${p}"
11382          else
11383            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11384          fi
11385        fi
11386        ;;
11387
11388     *.$objext)
11389        # This assumes that the test object file only shows up
11390        # once in the compiler output.
11391        if test "$p" = "conftest.$objext"; then
11392          pre_test_object_deps_done=yes
11393          continue
11394        fi
11395
11396        if test "$pre_test_object_deps_done" = no; then
11397          if test -z "$predep_objects_CXX"; then
11398            predep_objects_CXX="$p"
11399          else
11400            predep_objects_CXX="$predep_objects_CXX $p"
11401          fi
11402        else
11403          if test -z "$postdep_objects_CXX"; then
11404            postdep_objects_CXX="$p"
11405          else
11406            postdep_objects_CXX="$postdep_objects_CXX $p"
11407          fi
11408        fi
11409        ;;
11410
11411     *) ;; # Ignore the rest.
11412
11413     esac
11414   done
11415
11416   # Clean up.
11417   rm -f a.out a.exe
11418 else
11419   echo "libtool.m4: error: problem compiling CXX test program"
11420 fi
11421
11422 $rm -f confest.$objext
11423
11424 case " $postdeps_CXX " in
11425 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11426 esac
11427
11428 lt_prog_compiler_wl_CXX=
11429 lt_prog_compiler_pic_CXX=
11430 lt_prog_compiler_static_CXX=
11431
11432 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11433 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11434
11435   # C++ specific cases for pic, static, wl, etc.
11436   if test "$GXX" = yes; then
11437     lt_prog_compiler_wl_CXX='-Wl,'
11438     lt_prog_compiler_static_CXX='-static'
11439
11440     case $host_os in
11441     aix*)
11442       # All AIX code is PIC.
11443       if test "$host_cpu" = ia64; then
11444         # AIX 5 now supports IA64 processor
11445         lt_prog_compiler_static_CXX='-Bstatic'
11446       fi
11447       ;;
11448     amigaos*)
11449       # FIXME: we need at least 68020 code to build shared libraries, but
11450       # adding the `-m68020' flag to GCC prevents building anything better,
11451       # like `-m68040'.
11452       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11453       ;;
11454     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11455       # PIC is the default for these OSes.
11456       ;;
11457     mingw* | os2* | pw32*)
11458       # This hack is so that the source file can tell whether it is being
11459       # built for inclusion in a dll (and should export symbols for example).
11460       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11461       ;;
11462     darwin* | rhapsody*)
11463       # PIC is the default on this platform
11464       # Common symbols not allowed in MH_DYLIB files
11465       lt_prog_compiler_pic_CXX='-fno-common'
11466       ;;
11467     *djgpp*)
11468       # DJGPP does not support shared libraries at all
11469       lt_prog_compiler_pic_CXX=
11470       ;;
11471     sysv4*MP*)
11472       if test -d /usr/nec; then
11473         lt_prog_compiler_pic_CXX=-Kconform_pic
11474       fi
11475       ;;
11476     hpux*)
11477       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11478       # not for PA HP-UX.
11479       case "$host_cpu" in
11480       hppa*64*|ia64*)
11481         ;;
11482       *)
11483         lt_prog_compiler_pic_CXX='-fPIC'
11484         ;;
11485       esac
11486       ;;
11487     *)
11488       lt_prog_compiler_pic_CXX='-fPIC'
11489       ;;
11490     esac
11491   else
11492     case $host_os in
11493       aix4* | aix5*)
11494         # All AIX code is PIC.
11495         if test "$host_cpu" = ia64; then
11496           # AIX 5 now supports IA64 processor
11497           lt_prog_compiler_static_CXX='-Bstatic'
11498         else
11499           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11500         fi
11501         ;;
11502       chorus*)
11503         case $cc_basename in
11504         cxch68)
11505           # Green Hills C++ Compiler
11506           # _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"
11507           ;;
11508         esac
11509         ;;
11510        darwin*)
11511          # PIC is the default on this platform
11512          # Common symbols not allowed in MH_DYLIB files
11513          case "$cc_basename" in
11514            xlc*)
11515            lt_prog_compiler_pic_CXX='-qnocommon'
11516            lt_prog_compiler_wl_CXX='-Wl,'
11517            ;;
11518          esac
11519        ;;
11520       dgux*)
11521         case $cc_basename in
11522           ec++)
11523             lt_prog_compiler_pic_CXX='-KPIC'
11524             ;;
11525           ghcx)
11526             # Green Hills C++ Compiler
11527             lt_prog_compiler_pic_CXX='-pic'
11528             ;;
11529           *)
11530             ;;
11531         esac
11532         ;;
11533       freebsd* | kfreebsd*-gnu)
11534         # FreeBSD uses GNU C++
11535         ;;
11536       hpux9* | hpux10* | hpux11*)
11537         case $cc_basename in
11538           CC)
11539             lt_prog_compiler_wl_CXX='-Wl,'
11540             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11541             if test "$host_cpu" != ia64; then
11542               lt_prog_compiler_pic_CXX='+Z'
11543             fi
11544             ;;
11545           aCC)
11546             lt_prog_compiler_wl_CXX='-Wl,'
11547             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11548             case "$host_cpu" in
11549             hppa*64*|ia64*)
11550               # +Z the default
11551               ;;
11552             *)
11553               lt_prog_compiler_pic_CXX='+Z'
11554               ;;
11555             esac
11556             ;;
11557           *)
11558             ;;
11559         esac
11560         ;;
11561       irix5* | irix6* | nonstopux*)
11562         case $cc_basename in
11563           CC)
11564             lt_prog_compiler_wl_CXX='-Wl,'
11565             lt_prog_compiler_static_CXX='-non_shared'
11566             # CC pic flag -KPIC is the default.
11567             ;;
11568           *)
11569             ;;
11570         esac
11571         ;;
11572       linux*)
11573         case $cc_basename in
11574           KCC)
11575             # KAI C++ Compiler
11576             lt_prog_compiler_wl_CXX='--backend -Wl,'
11577             lt_prog_compiler_pic_CXX='-fPIC'
11578             ;;
11579           icpc)
11580             # Intel C++
11581             lt_prog_compiler_wl_CXX='-Wl,'
11582             lt_prog_compiler_pic_CXX='-KPIC'
11583             lt_prog_compiler_static_CXX='-static'
11584             ;;
11585           cxx)
11586             # Compaq C++
11587             # Make sure the PIC flag is empty.  It appears that all Alpha
11588             # Linux and Compaq Tru64 Unix objects are PIC.
11589             lt_prog_compiler_pic_CXX=
11590             lt_prog_compiler_static_CXX='-non_shared'
11591             ;;
11592           *)
11593             ;;
11594         esac
11595         ;;
11596       lynxos*)
11597         ;;
11598       m88k*)
11599         ;;
11600       mvs*)
11601         case $cc_basename in
11602           cxx)
11603             lt_prog_compiler_pic_CXX='-W c,exportall'
11604             ;;
11605           *)
11606             ;;
11607         esac
11608         ;;
11609       netbsd*)
11610         ;;
11611       osf3* | osf4* | osf5*)
11612         case $cc_basename in
11613           KCC)
11614             lt_prog_compiler_wl_CXX='--backend -Wl,'
11615             ;;
11616           RCC)
11617             # Rational C++ 2.4.1
11618             lt_prog_compiler_pic_CXX='-pic'
11619             ;;
11620           cxx)
11621             # Digital/Compaq C++
11622             lt_prog_compiler_wl_CXX='-Wl,'
11623             # Make sure the PIC flag is empty.  It appears that all Alpha
11624             # Linux and Compaq Tru64 Unix objects are PIC.
11625             lt_prog_compiler_pic_CXX=
11626             lt_prog_compiler_static_CXX='-non_shared'
11627             ;;
11628           *)
11629             ;;
11630         esac
11631         ;;
11632       psos*)
11633         ;;
11634       sco*)
11635         case $cc_basename in
11636           CC)
11637             lt_prog_compiler_pic_CXX='-fPIC'
11638             ;;
11639           *)
11640             ;;
11641         esac
11642         ;;
11643       solaris*)
11644         case $cc_basename in
11645           CC)
11646             # Sun C++ 4.2, 5.x and Centerline C++
11647             lt_prog_compiler_pic_CXX='-KPIC'
11648             lt_prog_compiler_static_CXX='-Bstatic'
11649             lt_prog_compiler_wl_CXX='-Qoption ld '
11650             ;;
11651           gcx)
11652             # Green Hills C++ Compiler
11653             lt_prog_compiler_pic_CXX='-PIC'
11654             ;;
11655           *)
11656             ;;
11657         esac
11658         ;;
11659       sunos4*)
11660         case $cc_basename in
11661           CC)
11662             # Sun C++ 4.x
11663             lt_prog_compiler_pic_CXX='-pic'
11664             lt_prog_compiler_static_CXX='-Bstatic'
11665             ;;
11666           lcc)
11667             # Lucid
11668             lt_prog_compiler_pic_CXX='-pic'
11669             ;;
11670           *)
11671             ;;
11672         esac
11673         ;;
11674       tandem*)
11675         case $cc_basename in
11676           NCC)
11677             # NonStop-UX NCC 3.20
11678             lt_prog_compiler_pic_CXX='-KPIC'
11679             ;;
11680           *)
11681             ;;
11682         esac
11683         ;;
11684       unixware*)
11685         ;;
11686       vxworks*)
11687         ;;
11688       *)
11689         lt_prog_compiler_can_build_shared_CXX=no
11690         ;;
11691     esac
11692   fi
11693
11694 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11695 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11696
11697 #
11698 # Check to make sure the PIC flag actually works.
11699 #
11700 if test -n "$lt_prog_compiler_pic_CXX"; then
11701
11702 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11703 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11704 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11705   echo $ECHO_N "(cached) $ECHO_C" >&6
11706 else
11707   lt_prog_compiler_pic_works_CXX=no
11708   ac_outfile=conftest.$ac_objext
11709    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11710    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11711    # Insert the option either (1) after the last *FLAGS variable, or
11712    # (2) before a word containing "conftest.", or (3) at the end.
11713    # Note that $ac_compile itself does not contain backslashes and begins
11714    # with a dollar sign (not a hyphen), so the echo should work correctly.
11715    # The option is referenced via a variable to avoid confusing sed.
11716    lt_compile=`echo "$ac_compile" | $SED \
11717    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11718    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11719    -e 's:$: $lt_compiler_flag:'`
11720    (eval echo "\"\$as_me:11720: $lt_compile\"" >&5)
11721    (eval "$lt_compile" 2>conftest.err)
11722    ac_status=$?
11723    cat conftest.err >&5
11724    echo "$as_me:11724: \$? = $ac_status" >&5
11725    if (exit $ac_status) && test -s "$ac_outfile"; then
11726      # The compiler can only warn and ignore the option if not recognized
11727      # So say no if there are warnings
11728      if test ! -s conftest.err; then
11729        lt_prog_compiler_pic_works_CXX=yes
11730      fi
11731    fi
11732    $rm conftest*
11733
11734 fi
11735 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11736 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11737
11738 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11739     case $lt_prog_compiler_pic_CXX in
11740      "" | " "*) ;;
11741      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11742      esac
11743 else
11744     lt_prog_compiler_pic_CXX=
11745      lt_prog_compiler_can_build_shared_CXX=no
11746 fi
11747
11748 fi
11749 case "$host_os" in
11750   # For platforms which do not support PIC, -DPIC is meaningless:
11751   *djgpp*)
11752     lt_prog_compiler_pic_CXX=
11753     ;;
11754   *)
11755     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11756     ;;
11757 esac
11758
11759 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11760 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11761 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11762   echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764   lt_cv_prog_compiler_c_o_CXX=no
11765    $rm -r conftest 2>/dev/null
11766    mkdir conftest
11767    cd conftest
11768    mkdir out
11769    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11770
11771    lt_compiler_flag="-o out/conftest2.$ac_objext"
11772    # Insert the option either (1) after the last *FLAGS variable, or
11773    # (2) before a word containing "conftest.", or (3) at the end.
11774    # Note that $ac_compile itself does not contain backslashes and begins
11775    # with a dollar sign (not a hyphen), so the echo should work correctly.
11776    lt_compile=`echo "$ac_compile" | $SED \
11777    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11778    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11779    -e 's:$: $lt_compiler_flag:'`
11780    (eval echo "\"\$as_me:11780: $lt_compile\"" >&5)
11781    (eval "$lt_compile" 2>out/conftest.err)
11782    ac_status=$?
11783    cat out/conftest.err >&5
11784    echo "$as_me:11784: \$? = $ac_status" >&5
11785    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11786    then
11787      # The compiler can only warn and ignore the option if not recognized
11788      # So say no if there are warnings
11789      if test ! -s out/conftest.err; then
11790        lt_cv_prog_compiler_c_o_CXX=yes
11791      fi
11792    fi
11793    chmod u+w .
11794    $rm conftest*
11795    # SGI C++ compiler will create directory out/ii_files/ for
11796    # template instantiation
11797    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11798    $rm out/* && rmdir out
11799    cd ..
11800    rmdir conftest
11801    $rm conftest*
11802
11803 fi
11804 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11805 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11806
11807
11808 hard_links="nottested"
11809 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11810   # do not overwrite the value of need_locks provided by the user
11811   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11812 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11813   hard_links=yes
11814   $rm conftest*
11815   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11816   touch conftest.a
11817   ln conftest.a conftest.b 2>&5 || hard_links=no
11818   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11819   echo "$as_me:$LINENO: result: $hard_links" >&5
11820 echo "${ECHO_T}$hard_links" >&6
11821   if test "$hard_links" = no; then
11822     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11823 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11824     need_locks=warn
11825   fi
11826 else
11827   need_locks=no
11828 fi
11829
11830 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11831 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11832
11833   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11834   case $host_os in
11835   aix4* | aix5*)
11836     # If we're using GNU nm, then we don't want the "-C" option.
11837     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11838     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11839       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'
11840     else
11841       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'
11842     fi
11843     ;;
11844   pw32*)
11845     export_symbols_cmds_CXX="$ltdll_cmds"
11846   ;;
11847   cygwin* | mingw*)
11848     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11849   ;;
11850   *)
11851     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11852   ;;
11853   esac
11854
11855 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11856 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11857 test "$ld_shlibs_CXX" = no && can_build_shared=no
11858
11859 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11860 if test "$GCC" = yes; then
11861   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11862 fi
11863
11864 #
11865 # Do we need to explicitly link libc?
11866 #
11867 case "x$archive_cmds_need_lc_CXX" in
11868 x|xyes)
11869   # Assume -lc should be added
11870   archive_cmds_need_lc_CXX=yes
11871
11872   if test "$enable_shared" = yes && test "$GCC" = yes; then
11873     case $archive_cmds_CXX in
11874     *'~'*)
11875       # FIXME: we may have to deal with multi-command sequences.
11876       ;;
11877     '$CC '*)
11878       # Test whether the compiler implicitly links with -lc since on some
11879       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11880       # to ld, don't add -lc before -lgcc.
11881       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11882 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11883       $rm conftest*
11884       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11885
11886       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11887   (eval $ac_compile) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); } 2>conftest.err; then
11891         soname=conftest
11892         lib=conftest
11893         libobjs=conftest.$ac_objext
11894         deplibs=
11895         wl=$lt_prog_compiler_wl_CXX
11896         compiler_flags=-v
11897         linker_flags=-v
11898         verstring=
11899         output_objdir=.
11900         libname=conftest
11901         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11902         allow_undefined_flag_CXX=
11903         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11904   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); }
11908         then
11909           archive_cmds_need_lc_CXX=no
11910         else
11911           archive_cmds_need_lc_CXX=yes
11912         fi
11913         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11914       else
11915         cat conftest.err 1>&5
11916       fi
11917       $rm conftest*
11918       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11919 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11920       ;;
11921     esac
11922   fi
11923   ;;
11924 esac
11925
11926 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11927 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11928 library_names_spec=
11929 libname_spec='lib$name'
11930 soname_spec=
11931 shrext_cmds=".so"
11932 postinstall_cmds=
11933 postuninstall_cmds=
11934 finish_cmds=
11935 finish_eval=
11936 shlibpath_var=
11937 shlibpath_overrides_runpath=unknown
11938 version_type=none
11939 dynamic_linker="$host_os ld.so"
11940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11941 if test "$GCC" = yes; then
11942   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11943   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11944     # if the path contains ";" then we assume it to be the separator
11945     # otherwise default to the standard path separator (i.e. ":") - it is
11946     # assumed that no part of a normal pathname contains ";" but that should
11947     # okay in the real world where ";" in dirpaths is itself problematic.
11948     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11949   else
11950     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11951   fi
11952 else
11953   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11954 fi
11955 need_lib_prefix=unknown
11956 hardcode_into_libs=no
11957
11958 # when you set need_version to no, make sure it does not cause -set_version
11959 # flags to be left without arguments
11960 need_version=unknown
11961
11962 case $host_os in
11963 aix3*)
11964   version_type=linux
11965   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11966   shlibpath_var=LIBPATH
11967
11968   # AIX 3 has no versioning support, so we append a major version to the name.
11969   soname_spec='${libname}${release}${shared_ext}$major'
11970   ;;
11971
11972 aix4* | aix5*)
11973   version_type=linux
11974   need_lib_prefix=no
11975   need_version=no
11976   hardcode_into_libs=yes
11977   if test "$host_cpu" = ia64; then
11978     # AIX 5 supports IA64
11979     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11980     shlibpath_var=LD_LIBRARY_PATH
11981   else
11982     # With GCC up to 2.95.x, collect2 would create an import file
11983     # for dependence libraries.  The import file would start with
11984     # the line `#! .'.  This would cause the generated library to
11985     # depend on `.', always an invalid library.  This was fixed in
11986     # development snapshots of GCC prior to 3.0.
11987     case $host_os in
11988       aix4 | aix4.[01] | aix4.[01].*)
11989       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11990            echo ' yes '
11991            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11992         :
11993       else
11994         can_build_shared=no
11995       fi
11996       ;;
11997     esac
11998     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11999     # soname into executable. Probably we can add versioning support to
12000     # collect2, so additional links can be useful in future.
12001     if test "$aix_use_runtimelinking" = yes; then
12002       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12003       # instead of lib<name>.a to let people know that these are not
12004       # typical AIX shared libraries.
12005       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006     else
12007       # We preserve .a as extension for shared libraries through AIX4.2
12008       # and later when we are not doing run time linking.
12009       library_names_spec='${libname}${release}.a $libname.a'
12010       soname_spec='${libname}${release}${shared_ext}$major'
12011     fi
12012     shlibpath_var=LIBPATH
12013   fi
12014   ;;
12015
12016 amigaos*)
12017   library_names_spec='$libname.ixlibrary $libname.a'
12018   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12019   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'
12020   ;;
12021
12022 beos*)
12023   library_names_spec='${libname}${shared_ext}'
12024   dynamic_linker="$host_os ld.so"
12025   shlibpath_var=LIBRARY_PATH
12026   ;;
12027
12028 bsdi[45]*)
12029   version_type=linux
12030   need_version=no
12031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12032   soname_spec='${libname}${release}${shared_ext}$major'
12033   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12034   shlibpath_var=LD_LIBRARY_PATH
12035   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12036   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12037   # the default ld.so.conf also contains /usr/contrib/lib and
12038   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12039   # libtool to hard-code these into programs
12040   ;;
12041
12042 cygwin* | mingw* | pw32*)
12043   version_type=windows
12044   shrext_cmds=".dll"
12045   need_version=no
12046   need_lib_prefix=no
12047
12048   case $GCC,$host_os in
12049   yes,cygwin* | yes,mingw* | yes,pw32*)
12050     library_names_spec='$libname.dll.a'
12051     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12052     postinstall_cmds='base_file=`basename \${file}`~
12053       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12054       dldir=$destdir/`dirname \$dlpath`~
12055       test -d \$dldir || mkdir -p \$dldir~
12056       $install_prog $dir/$dlname \$dldir/$dlname'
12057     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12058       dlpath=$dir/\$dldll~
12059        $rm \$dlpath'
12060     shlibpath_overrides_runpath=yes
12061
12062     case $host_os in
12063     cygwin*)
12064       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12065       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12066       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12067       ;;
12068     mingw*)
12069       # MinGW DLLs use traditional 'lib' prefix
12070       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12071       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12072       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12073         # It is most probably a Windows format PATH printed by
12074         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12075         # path with ; separators, and with drive letters. We can handle the
12076         # drive letters (cygwin fileutils understands them), so leave them,
12077         # especially as we might pass files found there to a mingw objdump,
12078         # which wouldn't understand a cygwinified path. Ahh.
12079         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12080       else
12081         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12082       fi
12083       ;;
12084     pw32*)
12085       # pw32 DLLs use 'pw' prefix rather than 'lib'
12086       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12087       ;;
12088     esac
12089     ;;
12090
12091   *)
12092     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12093     ;;
12094   esac
12095   dynamic_linker='Win32 ld.exe'
12096   # FIXME: first we should search . and the directory the executable is in
12097   shlibpath_var=PATH
12098   ;;
12099
12100 darwin* | rhapsody*)
12101   dynamic_linker="$host_os dyld"
12102   version_type=darwin
12103   need_lib_prefix=no
12104   need_version=no
12105   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12106   soname_spec='${libname}${release}${major}$shared_ext'
12107   shlibpath_overrides_runpath=yes
12108   shlibpath_var=DYLD_LIBRARY_PATH
12109   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12110   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12111   if test "$GCC" = yes; then
12112     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"`
12113   else
12114     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12115   fi
12116   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12117   ;;
12118
12119 dgux*)
12120   version_type=linux
12121   need_lib_prefix=no
12122   need_version=no
12123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12124   soname_spec='${libname}${release}${shared_ext}$major'
12125   shlibpath_var=LD_LIBRARY_PATH
12126   ;;
12127
12128 freebsd1*)
12129   dynamic_linker=no
12130   ;;
12131
12132 kfreebsd*-gnu)
12133   version_type=linux
12134   need_lib_prefix=no
12135   need_version=no
12136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12137   soname_spec='${libname}${release}${shared_ext}$major'
12138   shlibpath_var=LD_LIBRARY_PATH
12139   shlibpath_overrides_runpath=no
12140   hardcode_into_libs=yes
12141   dynamic_linker='GNU ld.so'
12142   ;;
12143
12144 freebsd*)
12145   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12146   version_type=freebsd-$objformat
12147   case $version_type in
12148     freebsd-elf*)
12149       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12150       need_version=no
12151       need_lib_prefix=no
12152       ;;
12153     freebsd-*)
12154       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12155       need_version=yes
12156       ;;
12157   esac
12158   shlibpath_var=LD_LIBRARY_PATH
12159   case $host_os in
12160   freebsd2*)
12161     shlibpath_overrides_runpath=yes
12162     ;;
12163   freebsd3.01* | freebsdelf3.01*)
12164     shlibpath_overrides_runpath=yes
12165     hardcode_into_libs=yes
12166     ;;
12167   *) # from 3.2 on
12168     shlibpath_overrides_runpath=no
12169     hardcode_into_libs=yes
12170     ;;
12171   esac
12172   ;;
12173
12174 gnu*)
12175   version_type=linux
12176   need_lib_prefix=no
12177   need_version=no
12178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12179   soname_spec='${libname}${release}${shared_ext}$major'
12180   shlibpath_var=LD_LIBRARY_PATH
12181   hardcode_into_libs=yes
12182   ;;
12183
12184 hpux9* | hpux10* | hpux11*)
12185   # Give a soname corresponding to the major version so that dld.sl refuses to
12186   # link against other versions.
12187   version_type=sunos
12188   need_lib_prefix=no
12189   need_version=no
12190   case "$host_cpu" in
12191   ia64*)
12192     shrext_cmds='.so'
12193     hardcode_into_libs=yes
12194     dynamic_linker="$host_os dld.so"
12195     shlibpath_var=LD_LIBRARY_PATH
12196     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12198     soname_spec='${libname}${release}${shared_ext}$major'
12199     if test "X$HPUX_IA64_MODE" = X32; then
12200       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12201     else
12202       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12203     fi
12204     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12205     ;;
12206    hppa*64*)
12207      shrext_cmds='.sl'
12208      hardcode_into_libs=yes
12209      dynamic_linker="$host_os dld.sl"
12210      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12211      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12212      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12213      soname_spec='${libname}${release}${shared_ext}$major'
12214      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12215      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12216      ;;
12217    *)
12218     shrext_cmds='.sl'
12219     dynamic_linker="$host_os dld.sl"
12220     shlibpath_var=SHLIB_PATH
12221     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12223     soname_spec='${libname}${release}${shared_ext}$major'
12224     ;;
12225   esac
12226   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12227   postinstall_cmds='chmod 555 $lib'
12228   ;;
12229
12230 irix5* | irix6* | nonstopux*)
12231   case $host_os in
12232     nonstopux*) version_type=nonstopux ;;
12233     *)
12234         if test "$lt_cv_prog_gnu_ld" = yes; then
12235                 version_type=linux
12236         else
12237                 version_type=irix
12238         fi ;;
12239   esac
12240   need_lib_prefix=no
12241   need_version=no
12242   soname_spec='${libname}${release}${shared_ext}$major'
12243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12244   case $host_os in
12245   irix5* | nonstopux*)
12246     libsuff= shlibsuff=
12247     ;;
12248   *)
12249     case $LD in # libtool.m4 will add one of these switches to LD
12250     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12251       libsuff= shlibsuff= libmagic=32-bit;;
12252     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12253       libsuff=32 shlibsuff=N32 libmagic=N32;;
12254     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12255       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12256     *) libsuff= shlibsuff= libmagic=never-match;;
12257     esac
12258     ;;
12259   esac
12260   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12261   shlibpath_overrides_runpath=no
12262   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12263   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12264   hardcode_into_libs=yes
12265   ;;
12266
12267 # No shared lib support for Linux oldld, aout, or coff.
12268 linux*oldld* | linux*aout* | linux*coff*)
12269   dynamic_linker=no
12270   ;;
12271
12272 # This must be Linux ELF.
12273 linux*)
12274   version_type=linux
12275   need_lib_prefix=no
12276   need_version=no
12277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12278   soname_spec='${libname}${release}${shared_ext}$major'
12279   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12280   shlibpath_var=LD_LIBRARY_PATH
12281   shlibpath_overrides_runpath=no
12282   # This implies no fast_install, which is unacceptable.
12283   # Some rework will be needed to allow for fast_install
12284   # before this can be enabled.
12285   hardcode_into_libs=yes
12286
12287   # Append ld.so.conf contents to the search path
12288   if test -f /etc/ld.so.conf; then
12289     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12290     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12291   fi
12292
12293   # We used to test for /lib/ld.so.1 and disable shared libraries on
12294   # powerpc, because MkLinux only supported shared libraries with the
12295   # GNU dynamic linker.  Since this was broken with cross compilers,
12296   # most powerpc-linux boxes support dynamic linking these days and
12297   # people can always --disable-shared, the test was removed, and we
12298   # assume the GNU/Linux dynamic linker is in use.
12299   dynamic_linker='GNU/Linux ld.so'
12300   ;;
12301
12302 knetbsd*-gnu)
12303   version_type=linux
12304   need_lib_prefix=no
12305   need_version=no
12306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12307   soname_spec='${libname}${release}${shared_ext}$major'
12308   shlibpath_var=LD_LIBRARY_PATH
12309   shlibpath_overrides_runpath=no
12310   hardcode_into_libs=yes
12311   dynamic_linker='GNU ld.so'
12312   ;;
12313
12314 netbsd*)
12315   version_type=sunos
12316   need_lib_prefix=no
12317   need_version=no
12318   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12319     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12320     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12321     dynamic_linker='NetBSD (a.out) ld.so'
12322   else
12323     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12324     soname_spec='${libname}${release}${shared_ext}$major'
12325     dynamic_linker='NetBSD ld.elf_so'
12326   fi
12327   shlibpath_var=LD_LIBRARY_PATH
12328   shlibpath_overrides_runpath=yes
12329   hardcode_into_libs=yes
12330   ;;
12331
12332 newsos6)
12333   version_type=linux
12334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12335   shlibpath_var=LD_LIBRARY_PATH
12336   shlibpath_overrides_runpath=yes
12337   ;;
12338
12339 nto-qnx*)
12340   version_type=linux
12341   need_lib_prefix=no
12342   need_version=no
12343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12344   soname_spec='${libname}${release}${shared_ext}$major'
12345   shlibpath_var=LD_LIBRARY_PATH
12346   shlibpath_overrides_runpath=yes
12347   ;;
12348
12349 openbsd*)
12350   version_type=sunos
12351   need_lib_prefix=no
12352   need_version=no
12353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12354   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12355   shlibpath_var=LD_LIBRARY_PATH
12356   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12357     case $host_os in
12358       openbsd2.[89] | openbsd2.[89].*)
12359         shlibpath_overrides_runpath=no
12360         ;;
12361       *)
12362         shlibpath_overrides_runpath=yes
12363         ;;
12364       esac
12365   else
12366     shlibpath_overrides_runpath=yes
12367   fi
12368   ;;
12369
12370 os2*)
12371   libname_spec='$name'
12372   shrext_cmds=".dll"
12373   need_lib_prefix=no
12374   library_names_spec='$libname${shared_ext} $libname.a'
12375   dynamic_linker='OS/2 ld.exe'
12376   shlibpath_var=LIBPATH
12377   ;;
12378
12379 osf3* | osf4* | osf5*)
12380   version_type=osf
12381   need_lib_prefix=no
12382   need_version=no
12383   soname_spec='${libname}${release}${shared_ext}$major'
12384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12385   shlibpath_var=LD_LIBRARY_PATH
12386   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12387   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12388   ;;
12389
12390 sco3.2v5*)
12391   version_type=osf
12392   soname_spec='${libname}${release}${shared_ext}$major'
12393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394   shlibpath_var=LD_LIBRARY_PATH
12395   ;;
12396
12397 solaris*)
12398   version_type=linux
12399   need_lib_prefix=no
12400   need_version=no
12401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12402   soname_spec='${libname}${release}${shared_ext}$major'
12403   shlibpath_var=LD_LIBRARY_PATH
12404   shlibpath_overrides_runpath=yes
12405   hardcode_into_libs=yes
12406   # ldd complains unless libraries are executable
12407   postinstall_cmds='chmod +x $lib'
12408   ;;
12409
12410 sunos4*)
12411   version_type=sunos
12412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12413   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12414   shlibpath_var=LD_LIBRARY_PATH
12415   shlibpath_overrides_runpath=yes
12416   if test "$with_gnu_ld" = yes; then
12417     need_lib_prefix=no
12418   fi
12419   need_version=yes
12420   ;;
12421
12422 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12423   version_type=linux
12424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12425   soname_spec='${libname}${release}${shared_ext}$major'
12426   shlibpath_var=LD_LIBRARY_PATH
12427   case $host_vendor in
12428     sni)
12429       shlibpath_overrides_runpath=no
12430       need_lib_prefix=no
12431       export_dynamic_flag_spec='${wl}-Blargedynsym'
12432       runpath_var=LD_RUN_PATH
12433       ;;
12434     siemens)
12435       need_lib_prefix=no
12436       ;;
12437     motorola)
12438       need_lib_prefix=no
12439       need_version=no
12440       shlibpath_overrides_runpath=no
12441       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12442       ;;
12443   esac
12444   ;;
12445
12446 sysv4*MP*)
12447   if test -d /usr/nec ;then
12448     version_type=linux
12449     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12450     soname_spec='$libname${shared_ext}.$major'
12451     shlibpath_var=LD_LIBRARY_PATH
12452   fi
12453   ;;
12454
12455 uts4*)
12456   version_type=linux
12457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12458   soname_spec='${libname}${release}${shared_ext}$major'
12459   shlibpath_var=LD_LIBRARY_PATH
12460   ;;
12461
12462 *)
12463   dynamic_linker=no
12464   ;;
12465 esac
12466 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12467 echo "${ECHO_T}$dynamic_linker" >&6
12468 test "$dynamic_linker" = no && can_build_shared=no
12469
12470 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12471 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12472 hardcode_action_CXX=
12473 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12474    test -n "$runpath_var_CXX" || \
12475    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12476
12477   # We can hardcode non-existant directories.
12478   if test "$hardcode_direct_CXX" != no &&
12479      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12480      # have to relink, otherwise we might link with an installed library
12481      # when we should be linking with a yet-to-be-installed one
12482      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12483      test "$hardcode_minus_L_CXX" != no; then
12484     # Linking always hardcodes the temporary library directory.
12485     hardcode_action_CXX=relink
12486   else
12487     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12488     hardcode_action_CXX=immediate
12489   fi
12490 else
12491   # We cannot hardcode anything, or else we can only hardcode existing
12492   # directories.
12493   hardcode_action_CXX=unsupported
12494 fi
12495 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12496 echo "${ECHO_T}$hardcode_action_CXX" >&6
12497
12498 if test "$hardcode_action_CXX" = relink; then
12499   # Fast installation is not supported
12500   enable_fast_install=no
12501 elif test "$shlibpath_overrides_runpath" = yes ||
12502      test "$enable_shared" = no; then
12503   # Fast installation is not necessary
12504   enable_fast_install=needless
12505 fi
12506
12507 striplib=
12508 old_striplib=
12509 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12510 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12511 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12512   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12513   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12514   echo "$as_me:$LINENO: result: yes" >&5
12515 echo "${ECHO_T}yes" >&6
12516 else
12517 # FIXME - insert some real tests, host_os isn't really good enough
12518   case $host_os in
12519    darwin*)
12520        if test -n "$STRIP" ; then
12521          striplib="$STRIP -x"
12522          echo "$as_me:$LINENO: result: yes" >&5
12523 echo "${ECHO_T}yes" >&6
12524        else
12525   echo "$as_me:$LINENO: result: no" >&5
12526 echo "${ECHO_T}no" >&6
12527 fi
12528        ;;
12529    *)
12530   echo "$as_me:$LINENO: result: no" >&5
12531 echo "${ECHO_T}no" >&6
12532     ;;
12533   esac
12534 fi
12535
12536 if test "x$enable_dlopen" != xyes; then
12537   enable_dlopen=unknown
12538   enable_dlopen_self=unknown
12539   enable_dlopen_self_static=unknown
12540 else
12541   lt_cv_dlopen=no
12542   lt_cv_dlopen_libs=
12543
12544   case $host_os in
12545   beos*)
12546     lt_cv_dlopen="load_add_on"
12547     lt_cv_dlopen_libs=
12548     lt_cv_dlopen_self=yes
12549     ;;
12550
12551   mingw* | pw32*)
12552     lt_cv_dlopen="LoadLibrary"
12553     lt_cv_dlopen_libs=
12554    ;;
12555
12556   cygwin*)
12557     lt_cv_dlopen="dlopen"
12558     lt_cv_dlopen_libs=
12559    ;;
12560
12561   darwin*)
12562   # if libdl is installed we need to link against it
12563     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12564 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12565 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12566   echo $ECHO_N "(cached) $ECHO_C" >&6
12567 else
12568   ac_check_lib_save_LIBS=$LIBS
12569 LIBS="-ldl  $LIBS"
12570 cat >conftest.$ac_ext <<_ACEOF
12571 /* confdefs.h.  */
12572 _ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h.  */
12576
12577 /* Override any gcc2 internal prototype to avoid an error.  */
12578 #ifdef __cplusplus
12579 extern "C"
12580 #endif
12581 /* We use char because int might match the return type of a gcc2
12582    builtin and then its argument prototype would still apply.  */
12583 char dlopen ();
12584 int
12585 main ()
12586 {
12587 dlopen ();
12588   ;
12589   return 0;
12590 }
12591 _ACEOF
12592 rm -f conftest.$ac_objext conftest$ac_exeext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12594   (eval $ac_link) 2>conftest.er1
12595   ac_status=$?
12596   grep -v '^ *+' conftest.er1 >conftest.err
12597   rm -f conftest.er1
12598   cat conftest.err >&5
12599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); } &&
12601          { ac_try='test -z "$ac_cxx_werror_flag"
12602                          || test ! -s conftest.err'
12603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604   (eval $ac_try) 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; } &&
12608          { ac_try='test -s conftest$ac_exeext'
12609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610   (eval $ac_try) 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); }; }; then
12614   ac_cv_lib_dl_dlopen=yes
12615 else
12616   echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12618
12619 ac_cv_lib_dl_dlopen=no
12620 fi
12621 rm -f conftest.err conftest.$ac_objext \
12622       conftest$ac_exeext conftest.$ac_ext
12623 LIBS=$ac_check_lib_save_LIBS
12624 fi
12625 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12626 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12627 if test $ac_cv_lib_dl_dlopen = yes; then
12628   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12629 else
12630
12631     lt_cv_dlopen="dyld"
12632     lt_cv_dlopen_libs=
12633     lt_cv_dlopen_self=yes
12634
12635 fi
12636
12637    ;;
12638
12639   *)
12640     echo "$as_me:$LINENO: checking for shl_load" >&5
12641 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12642 if test "${ac_cv_func_shl_load+set}" = set; then
12643   echo $ECHO_N "(cached) $ECHO_C" >&6
12644 else
12645   cat >conftest.$ac_ext <<_ACEOF
12646 /* confdefs.h.  */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h.  */
12651 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12653 #define shl_load innocuous_shl_load
12654
12655 /* System header to define __stub macros and hopefully few prototypes,
12656     which can conflict with char shl_load (); below.
12657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12658     <limits.h> exists even on freestanding compilers.  */
12659
12660 #ifdef __STDC__
12661 # include <limits.h>
12662 #else
12663 # include <assert.h>
12664 #endif
12665
12666 #undef shl_load
12667
12668 /* Override any gcc2 internal prototype to avoid an error.  */
12669 #ifdef __cplusplus
12670 extern "C"
12671 {
12672 #endif
12673 /* We use char because int might match the return type of a gcc2
12674    builtin and then its argument prototype would still apply.  */
12675 char shl_load ();
12676 /* The GNU C library defines this for functions which it implements
12677     to always fail with ENOSYS.  Some functions are actually named
12678     something starting with __ and the normal name is an alias.  */
12679 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12680 choke me
12681 #else
12682 char (*f) () = shl_load;
12683 #endif
12684 #ifdef __cplusplus
12685 }
12686 #endif
12687
12688 int
12689 main ()
12690 {
12691 return f != shl_load;
12692   ;
12693   return 0;
12694 }
12695 _ACEOF
12696 rm -f conftest.$ac_objext conftest$ac_exeext
12697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12698   (eval $ac_link) 2>conftest.er1
12699   ac_status=$?
12700   grep -v '^ *+' conftest.er1 >conftest.err
12701   rm -f conftest.er1
12702   cat conftest.err >&5
12703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704   (exit $ac_status); } &&
12705          { ac_try='test -z "$ac_cxx_werror_flag"
12706                          || test ! -s conftest.err'
12707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708   (eval $ac_try) 2>&5
12709   ac_status=$?
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); }; } &&
12712          { ac_try='test -s conftest$ac_exeext'
12713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714   (eval $ac_try) 2>&5
12715   ac_status=$?
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); }; }; then
12718   ac_cv_func_shl_load=yes
12719 else
12720   echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 ac_cv_func_shl_load=no
12724 fi
12725 rm -f conftest.err conftest.$ac_objext \
12726       conftest$ac_exeext conftest.$ac_ext
12727 fi
12728 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12729 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12730 if test $ac_cv_func_shl_load = yes; then
12731   lt_cv_dlopen="shl_load"
12732 else
12733   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12734 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12735 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12736   echo $ECHO_N "(cached) $ECHO_C" >&6
12737 else
12738   ac_check_lib_save_LIBS=$LIBS
12739 LIBS="-ldld  $LIBS"
12740 cat >conftest.$ac_ext <<_ACEOF
12741 /* confdefs.h.  */
12742 _ACEOF
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h.  */
12746
12747 /* Override any gcc2 internal prototype to avoid an error.  */
12748 #ifdef __cplusplus
12749 extern "C"
12750 #endif
12751 /* We use char because int might match the return type of a gcc2
12752    builtin and then its argument prototype would still apply.  */
12753 char shl_load ();
12754 int
12755 main ()
12756 {
12757 shl_load ();
12758   ;
12759   return 0;
12760 }
12761 _ACEOF
12762 rm -f conftest.$ac_objext conftest$ac_exeext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12764   (eval $ac_link) 2>conftest.er1
12765   ac_status=$?
12766   grep -v '^ *+' conftest.er1 >conftest.err
12767   rm -f conftest.er1
12768   cat conftest.err >&5
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); } &&
12771          { ac_try='test -z "$ac_cxx_werror_flag"
12772                          || test ! -s conftest.err'
12773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774   (eval $ac_try) 2>&5
12775   ac_status=$?
12776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777   (exit $ac_status); }; } &&
12778          { ac_try='test -s conftest$ac_exeext'
12779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780   (eval $ac_try) 2>&5
12781   ac_status=$?
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); }; }; then
12784   ac_cv_lib_dld_shl_load=yes
12785 else
12786   echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12788
12789 ac_cv_lib_dld_shl_load=no
12790 fi
12791 rm -f conftest.err conftest.$ac_objext \
12792       conftest$ac_exeext conftest.$ac_ext
12793 LIBS=$ac_check_lib_save_LIBS
12794 fi
12795 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12796 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12797 if test $ac_cv_lib_dld_shl_load = yes; then
12798   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12799 else
12800   echo "$as_me:$LINENO: checking for dlopen" >&5
12801 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12802 if test "${ac_cv_func_dlopen+set}" = set; then
12803   echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12805   cat >conftest.$ac_ext <<_ACEOF
12806 /* confdefs.h.  */
12807 _ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h.  */
12811 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12813 #define dlopen innocuous_dlopen
12814
12815 /* System header to define __stub macros and hopefully few prototypes,
12816     which can conflict with char dlopen (); below.
12817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818     <limits.h> exists even on freestanding compilers.  */
12819
12820 #ifdef __STDC__
12821 # include <limits.h>
12822 #else
12823 # include <assert.h>
12824 #endif
12825
12826 #undef dlopen
12827
12828 /* Override any gcc2 internal prototype to avoid an error.  */
12829 #ifdef __cplusplus
12830 extern "C"
12831 {
12832 #endif
12833 /* We use char because int might match the return type of a gcc2
12834    builtin and then its argument prototype would still apply.  */
12835 char dlopen ();
12836 /* The GNU C library defines this for functions which it implements
12837     to always fail with ENOSYS.  Some functions are actually named
12838     something starting with __ and the normal name is an alias.  */
12839 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12840 choke me
12841 #else
12842 char (*f) () = dlopen;
12843 #endif
12844 #ifdef __cplusplus
12845 }
12846 #endif
12847
12848 int
12849 main ()
12850 {
12851 return f != dlopen;
12852   ;
12853   return 0;
12854 }
12855 _ACEOF
12856 rm -f conftest.$ac_objext conftest$ac_exeext
12857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12858   (eval $ac_link) 2>conftest.er1
12859   ac_status=$?
12860   grep -v '^ *+' conftest.er1 >conftest.err
12861   rm -f conftest.er1
12862   cat conftest.err >&5
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); } &&
12865          { ac_try='test -z "$ac_cxx_werror_flag"
12866                          || test ! -s conftest.err'
12867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868   (eval $ac_try) 2>&5
12869   ac_status=$?
12870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); }; } &&
12872          { ac_try='test -s conftest$ac_exeext'
12873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874   (eval $ac_try) 2>&5
12875   ac_status=$?
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); }; }; then
12878   ac_cv_func_dlopen=yes
12879 else
12880   echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12882
12883 ac_cv_func_dlopen=no
12884 fi
12885 rm -f conftest.err conftest.$ac_objext \
12886       conftest$ac_exeext conftest.$ac_ext
12887 fi
12888 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12889 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12890 if test $ac_cv_func_dlopen = yes; then
12891   lt_cv_dlopen="dlopen"
12892 else
12893   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12894 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12895 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12896   echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898   ac_check_lib_save_LIBS=$LIBS
12899 LIBS="-ldl  $LIBS"
12900 cat >conftest.$ac_ext <<_ACEOF
12901 /* confdefs.h.  */
12902 _ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h.  */
12906
12907 /* Override any gcc2 internal prototype to avoid an error.  */
12908 #ifdef __cplusplus
12909 extern "C"
12910 #endif
12911 /* We use char because int might match the return type of a gcc2
12912    builtin and then its argument prototype would still apply.  */
12913 char dlopen ();
12914 int
12915 main ()
12916 {
12917 dlopen ();
12918   ;
12919   return 0;
12920 }
12921 _ACEOF
12922 rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924   (eval $ac_link) 2>conftest.er1
12925   ac_status=$?
12926   grep -v '^ *+' conftest.er1 >conftest.err
12927   rm -f conftest.er1
12928   cat conftest.err >&5
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); } &&
12931          { ac_try='test -z "$ac_cxx_werror_flag"
12932                          || test ! -s conftest.err'
12933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934   (eval $ac_try) 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); }; } &&
12938          { ac_try='test -s conftest$ac_exeext'
12939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940   (eval $ac_try) 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); }; }; then
12944   ac_cv_lib_dl_dlopen=yes
12945 else
12946   echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 ac_cv_lib_dl_dlopen=no
12950 fi
12951 rm -f conftest.err conftest.$ac_objext \
12952       conftest$ac_exeext conftest.$ac_ext
12953 LIBS=$ac_check_lib_save_LIBS
12954 fi
12955 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12956 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12957 if test $ac_cv_lib_dl_dlopen = yes; then
12958   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12959 else
12960   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12961 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12962 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12963   echo $ECHO_N "(cached) $ECHO_C" >&6
12964 else
12965   ac_check_lib_save_LIBS=$LIBS
12966 LIBS="-lsvld  $LIBS"
12967 cat >conftest.$ac_ext <<_ACEOF
12968 /* confdefs.h.  */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h.  */
12973
12974 /* Override any gcc2 internal prototype to avoid an error.  */
12975 #ifdef __cplusplus
12976 extern "C"
12977 #endif
12978 /* We use char because int might match the return type of a gcc2
12979    builtin and then its argument prototype would still apply.  */
12980 char dlopen ();
12981 int
12982 main ()
12983 {
12984 dlopen ();
12985   ;
12986   return 0;
12987 }
12988 _ACEOF
12989 rm -f conftest.$ac_objext conftest$ac_exeext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991   (eval $ac_link) 2>conftest.er1
12992   ac_status=$?
12993   grep -v '^ *+' conftest.er1 >conftest.err
12994   rm -f conftest.er1
12995   cat conftest.err >&5
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); } &&
12998          { ac_try='test -z "$ac_cxx_werror_flag"
12999                          || test ! -s conftest.err'
13000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001   (eval $ac_try) 2>&5
13002   ac_status=$?
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); }; } &&
13005          { ac_try='test -s conftest$ac_exeext'
13006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007   (eval $ac_try) 2>&5
13008   ac_status=$?
13009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010   (exit $ac_status); }; }; then
13011   ac_cv_lib_svld_dlopen=yes
13012 else
13013   echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13015
13016 ac_cv_lib_svld_dlopen=no
13017 fi
13018 rm -f conftest.err conftest.$ac_objext \
13019       conftest$ac_exeext conftest.$ac_ext
13020 LIBS=$ac_check_lib_save_LIBS
13021 fi
13022 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13023 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13024 if test $ac_cv_lib_svld_dlopen = yes; then
13025   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13026 else
13027   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13028 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13029 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13030   echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032   ac_check_lib_save_LIBS=$LIBS
13033 LIBS="-ldld  $LIBS"
13034 cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h.  */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h.  */
13040
13041 /* Override any gcc2 internal prototype to avoid an error.  */
13042 #ifdef __cplusplus
13043 extern "C"
13044 #endif
13045 /* We use char because int might match the return type of a gcc2
13046    builtin and then its argument prototype would still apply.  */
13047 char dld_link ();
13048 int
13049 main ()
13050 {
13051 dld_link ();
13052   ;
13053   return 0;
13054 }
13055 _ACEOF
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058   (eval $ac_link) 2>conftest.er1
13059   ac_status=$?
13060   grep -v '^ *+' conftest.er1 >conftest.err
13061   rm -f conftest.er1
13062   cat conftest.err >&5
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); } &&
13065          { ac_try='test -z "$ac_cxx_werror_flag"
13066                          || test ! -s conftest.err'
13067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068   (eval $ac_try) 2>&5
13069   ac_status=$?
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); }; } &&
13072          { ac_try='test -s conftest$ac_exeext'
13073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074   (eval $ac_try) 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); }; }; then
13078   ac_cv_lib_dld_dld_link=yes
13079 else
13080   echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13082
13083 ac_cv_lib_dld_dld_link=no
13084 fi
13085 rm -f conftest.err conftest.$ac_objext \
13086       conftest$ac_exeext conftest.$ac_ext
13087 LIBS=$ac_check_lib_save_LIBS
13088 fi
13089 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13090 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13091 if test $ac_cv_lib_dld_dld_link = yes; then
13092   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13093 fi
13094
13095
13096 fi
13097
13098
13099 fi
13100
13101
13102 fi
13103
13104
13105 fi
13106
13107
13108 fi
13109
13110     ;;
13111   esac
13112
13113   if test "x$lt_cv_dlopen" != xno; then
13114     enable_dlopen=yes
13115   else
13116     enable_dlopen=no
13117   fi
13118
13119   case $lt_cv_dlopen in
13120   dlopen)
13121     save_CPPFLAGS="$CPPFLAGS"
13122     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13123
13124     save_LDFLAGS="$LDFLAGS"
13125     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13126
13127     save_LIBS="$LIBS"
13128     LIBS="$lt_cv_dlopen_libs $LIBS"
13129
13130     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13131 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13132 if test "${lt_cv_dlopen_self+set}" = set; then
13133   echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135           if test "$cross_compiling" = yes; then :
13136   lt_cv_dlopen_self=cross
13137 else
13138   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13139   lt_status=$lt_dlunknown
13140   cat > conftest.$ac_ext <<EOF
13141 #line 13141 "configure"
13142 #include "confdefs.h"
13143
13144 #if HAVE_DLFCN_H
13145 #include <dlfcn.h>
13146 #endif
13147
13148 #include <stdio.h>
13149
13150 #ifdef RTLD_GLOBAL
13151 #  define LT_DLGLOBAL           RTLD_GLOBAL
13152 #else
13153 #  ifdef DL_GLOBAL
13154 #    define LT_DLGLOBAL         DL_GLOBAL
13155 #  else
13156 #    define LT_DLGLOBAL         0
13157 #  endif
13158 #endif
13159
13160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13161    find out it does not work in some platform. */
13162 #ifndef LT_DLLAZY_OR_NOW
13163 #  ifdef RTLD_LAZY
13164 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13165 #  else
13166 #    ifdef DL_LAZY
13167 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13168 #    else
13169 #      ifdef RTLD_NOW
13170 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13171 #      else
13172 #        ifdef DL_NOW
13173 #          define LT_DLLAZY_OR_NOW      DL_NOW
13174 #        else
13175 #          define LT_DLLAZY_OR_NOW      0
13176 #        endif
13177 #      endif
13178 #    endif
13179 #  endif
13180 #endif
13181
13182 #ifdef __cplusplus
13183 extern "C" void exit (int);
13184 #endif
13185
13186 void fnord() { int i=42;}
13187 int main ()
13188 {
13189   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13190   int status = $lt_dlunknown;
13191
13192   if (self)
13193     {
13194       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13195       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13196       /* dlclose (self); */
13197     }
13198
13199     exit (status);
13200 }
13201 EOF
13202   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13203   (eval $ac_link) 2>&5
13204   ac_status=$?
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13207     (./conftest; exit; ) 2>/dev/null
13208     lt_status=$?
13209     case x$lt_status in
13210       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13211       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13212       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13213     esac
13214   else :
13215     # compilation failed
13216     lt_cv_dlopen_self=no
13217   fi
13218 fi
13219 rm -fr conftest*
13220
13221
13222 fi
13223 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13224 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13225
13226     if test "x$lt_cv_dlopen_self" = xyes; then
13227       LDFLAGS="$LDFLAGS $link_static_flag"
13228       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13229 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13230 if test "${lt_cv_dlopen_self_static+set}" = set; then
13231   echo $ECHO_N "(cached) $ECHO_C" >&6
13232 else
13233           if test "$cross_compiling" = yes; then :
13234   lt_cv_dlopen_self_static=cross
13235 else
13236   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13237   lt_status=$lt_dlunknown
13238   cat > conftest.$ac_ext <<EOF
13239 #line 13239 "configure"
13240 #include "confdefs.h"
13241
13242 #if HAVE_DLFCN_H
13243 #include <dlfcn.h>
13244 #endif
13245
13246 #include <stdio.h>
13247
13248 #ifdef RTLD_GLOBAL
13249 #  define LT_DLGLOBAL           RTLD_GLOBAL
13250 #else
13251 #  ifdef DL_GLOBAL
13252 #    define LT_DLGLOBAL         DL_GLOBAL
13253 #  else
13254 #    define LT_DLGLOBAL         0
13255 #  endif
13256 #endif
13257
13258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13259    find out it does not work in some platform. */
13260 #ifndef LT_DLLAZY_OR_NOW
13261 #  ifdef RTLD_LAZY
13262 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13263 #  else
13264 #    ifdef DL_LAZY
13265 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13266 #    else
13267 #      ifdef RTLD_NOW
13268 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13269 #      else
13270 #        ifdef DL_NOW
13271 #          define LT_DLLAZY_OR_NOW      DL_NOW
13272 #        else
13273 #          define LT_DLLAZY_OR_NOW      0
13274 #        endif
13275 #      endif
13276 #    endif
13277 #  endif
13278 #endif
13279
13280 #ifdef __cplusplus
13281 extern "C" void exit (int);
13282 #endif
13283
13284 void fnord() { int i=42;}
13285 int main ()
13286 {
13287   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13288   int status = $lt_dlunknown;
13289
13290   if (self)
13291     {
13292       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13293       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13294       /* dlclose (self); */
13295     }
13296
13297     exit (status);
13298 }
13299 EOF
13300   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13301   (eval $ac_link) 2>&5
13302   ac_status=$?
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13305     (./conftest; exit; ) 2>/dev/null
13306     lt_status=$?
13307     case x$lt_status in
13308       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13309       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13310       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13311     esac
13312   else :
13313     # compilation failed
13314     lt_cv_dlopen_self_static=no
13315   fi
13316 fi
13317 rm -fr conftest*
13318
13319
13320 fi
13321 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13322 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13323     fi
13324
13325     CPPFLAGS="$save_CPPFLAGS"
13326     LDFLAGS="$save_LDFLAGS"
13327     LIBS="$save_LIBS"
13328     ;;
13329   esac
13330
13331   case $lt_cv_dlopen_self in
13332   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13333   *) enable_dlopen_self=unknown ;;
13334   esac
13335
13336   case $lt_cv_dlopen_self_static in
13337   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13338   *) enable_dlopen_self_static=unknown ;;
13339   esac
13340 fi
13341
13342
13343 # The else clause should only fire when bootstrapping the
13344 # libtool distribution, otherwise you forgot to ship ltmain.sh
13345 # with your package, and you will get complaints that there are
13346 # no rules to generate ltmain.sh.
13347 if test -f "$ltmain"; then
13348   # See if we are running on zsh, and set the options which allow our commands through
13349   # without removal of \ escapes.
13350   if test -n "${ZSH_VERSION+set}" ; then
13351     setopt NO_GLOB_SUBST
13352   fi
13353   # Now quote all the things that may contain metacharacters while being
13354   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13355   # variables and quote the copies for generation of the libtool script.
13356   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13357     SED SHELL STRIP \
13358     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13359     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13360     deplibs_check_method reload_flag reload_cmds need_locks \
13361     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13362     lt_cv_sys_global_symbol_to_c_name_address \
13363     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13364     old_postinstall_cmds old_postuninstall_cmds \
13365     compiler_CXX \
13366     CC_CXX \
13367     LD_CXX \
13368     lt_prog_compiler_wl_CXX \
13369     lt_prog_compiler_pic_CXX \
13370     lt_prog_compiler_static_CXX \
13371     lt_prog_compiler_no_builtin_flag_CXX \
13372     export_dynamic_flag_spec_CXX \
13373     thread_safe_flag_spec_CXX \
13374     whole_archive_flag_spec_CXX \
13375     enable_shared_with_static_runtimes_CXX \
13376     old_archive_cmds_CXX \
13377     old_archive_from_new_cmds_CXX \
13378     predep_objects_CXX \
13379     postdep_objects_CXX \
13380     predeps_CXX \
13381     postdeps_CXX \
13382     compiler_lib_search_path_CXX \
13383     archive_cmds_CXX \
13384     archive_expsym_cmds_CXX \
13385     postinstall_cmds_CXX \
13386     postuninstall_cmds_CXX \
13387     old_archive_from_expsyms_cmds_CXX \
13388     allow_undefined_flag_CXX \
13389     no_undefined_flag_CXX \
13390     export_symbols_cmds_CXX \
13391     hardcode_libdir_flag_spec_CXX \
13392     hardcode_libdir_flag_spec_ld_CXX \
13393     hardcode_libdir_separator_CXX \
13394     hardcode_automatic_CXX \
13395     module_cmds_CXX \
13396     module_expsym_cmds_CXX \
13397     lt_cv_prog_compiler_c_o_CXX \
13398     exclude_expsyms_CXX \
13399     include_expsyms_CXX; do
13400
13401     case $var in
13402     old_archive_cmds_CXX | \
13403     old_archive_from_new_cmds_CXX | \
13404     archive_cmds_CXX | \
13405     archive_expsym_cmds_CXX | \
13406     module_cmds_CXX | \
13407     module_expsym_cmds_CXX | \
13408     old_archive_from_expsyms_cmds_CXX | \
13409     export_symbols_cmds_CXX | \
13410     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13411     postinstall_cmds | postuninstall_cmds | \
13412     old_postinstall_cmds | old_postuninstall_cmds | \
13413     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13414       # Double-quote double-evaled strings.
13415       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13416       ;;
13417     *)
13418       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13419       ;;
13420     esac
13421   done
13422
13423   case $lt_echo in
13424   *'\$0 --fallback-echo"')
13425     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13426     ;;
13427   esac
13428
13429 cfgfile="$ofile"
13430
13431   cat <<__EOF__ >> "$cfgfile"
13432 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13433
13434 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13435
13436 # Shell to use when invoking shell scripts.
13437 SHELL=$lt_SHELL
13438
13439 # Whether or not to build shared libraries.
13440 build_libtool_libs=$enable_shared
13441
13442 # Whether or not to build static libraries.
13443 build_old_libs=$enable_static
13444
13445 # Whether or not to add -lc for building shared libraries.
13446 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13447
13448 # Whether or not to disallow shared libs when runtime libs are static
13449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13450
13451 # Whether or not to optimize for fast installation.
13452 fast_install=$enable_fast_install
13453
13454 # The host system.
13455 host_alias=$host_alias
13456 host=$host
13457
13458 # An echo program that does not interpret backslashes.
13459 echo=$lt_echo
13460
13461 # The archiver.
13462 AR=$lt_AR
13463 AR_FLAGS=$lt_AR_FLAGS
13464
13465 # A C compiler.
13466 LTCC=$lt_LTCC
13467
13468 # A language-specific compiler.
13469 CC=$lt_compiler_CXX
13470
13471 # Is the compiler the GNU C compiler?
13472 with_gcc=$GCC_CXX
13473
13474 # An ERE matcher.
13475 EGREP=$lt_EGREP
13476
13477 # The linker used to build libraries.
13478 LD=$lt_LD_CXX
13479
13480 # Whether we need hard or soft links.
13481 LN_S=$lt_LN_S
13482
13483 # A BSD-compatible nm program.
13484 NM=$lt_NM
13485
13486 # A symbol stripping program
13487 STRIP=$lt_STRIP
13488
13489 # Used to examine libraries when file_magic_cmd begins "file"
13490 MAGIC_CMD=$MAGIC_CMD
13491
13492 # Used on cygwin: DLL creation program.
13493 DLLTOOL="$DLLTOOL"
13494
13495 # Used on cygwin: object dumper.
13496 OBJDUMP="$OBJDUMP"
13497
13498 # Used on cygwin: assembler.
13499 AS="$AS"
13500
13501 # The name of the directory that contains temporary libtool files.
13502 objdir=$objdir
13503
13504 # How to create reloadable object files.
13505 reload_flag=$lt_reload_flag
13506 reload_cmds=$lt_reload_cmds
13507
13508 # How to pass a linker flag through the compiler.
13509 wl=$lt_lt_prog_compiler_wl_CXX
13510
13511 # Object file suffix (normally "o").
13512 objext="$ac_objext"
13513
13514 # Old archive suffix (normally "a").
13515 libext="$libext"
13516
13517 # Shared library suffix (normally ".so").
13518 shrext_cmds='$shrext_cmds'
13519
13520 # Executable file suffix (normally "").
13521 exeext="$exeext"
13522
13523 # Additional compiler flags for building library objects.
13524 pic_flag=$lt_lt_prog_compiler_pic_CXX
13525 pic_mode=$pic_mode
13526
13527 # What is the maximum length of a command?
13528 max_cmd_len=$lt_cv_sys_max_cmd_len
13529
13530 # Does compiler simultaneously support -c and -o options?
13531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13532
13533 # Must we lock files when doing compilation ?
13534 need_locks=$lt_need_locks
13535
13536 # Do we need the lib prefix for modules?
13537 need_lib_prefix=$need_lib_prefix
13538
13539 # Do we need a version for libraries?
13540 need_version=$need_version
13541
13542 # Whether dlopen is supported.
13543 dlopen_support=$enable_dlopen
13544
13545 # Whether dlopen of programs is supported.
13546 dlopen_self=$enable_dlopen_self
13547
13548 # Whether dlopen of statically linked programs is supported.
13549 dlopen_self_static=$enable_dlopen_self_static
13550
13551 # Compiler flag to prevent dynamic linking.
13552 link_static_flag=$lt_lt_prog_compiler_static_CXX
13553
13554 # Compiler flag to turn off builtin functions.
13555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13556
13557 # Compiler flag to allow reflexive dlopens.
13558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13559
13560 # Compiler flag to generate shared objects directly from archives.
13561 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13562
13563 # Compiler flag to generate thread-safe objects.
13564 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13565
13566 # Library versioning type.
13567 version_type=$version_type
13568
13569 # Format of library name prefix.
13570 libname_spec=$lt_libname_spec
13571
13572 # List of archive names.  First name is the real one, the rest are links.
13573 # The last name is the one that the linker finds with -lNAME.
13574 library_names_spec=$lt_library_names_spec
13575
13576 # The coded name of the library, if different from the real name.
13577 soname_spec=$lt_soname_spec
13578
13579 # Commands used to build and install an old-style archive.
13580 RANLIB=$lt_RANLIB
13581 old_archive_cmds=$lt_old_archive_cmds_CXX
13582 old_postinstall_cmds=$lt_old_postinstall_cmds
13583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13584
13585 # Create an old-style archive from a shared archive.
13586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13587
13588 # Create a temporary old-style archive to link instead of a shared archive.
13589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13590
13591 # Commands used to build and install a shared archive.
13592 archive_cmds=$lt_archive_cmds_CXX
13593 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13594 postinstall_cmds=$lt_postinstall_cmds
13595 postuninstall_cmds=$lt_postuninstall_cmds
13596
13597 # Commands used to build a loadable module (assumed same as above if empty)
13598 module_cmds=$lt_module_cmds_CXX
13599 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13600
13601 # Commands to strip libraries.
13602 old_striplib=$lt_old_striplib
13603 striplib=$lt_striplib
13604
13605 # Dependencies to place before the objects being linked to create a
13606 # shared library.
13607 predep_objects=$lt_predep_objects_CXX
13608
13609 # Dependencies to place after the objects being linked to create a
13610 # shared library.
13611 postdep_objects=$lt_postdep_objects_CXX
13612
13613 # Dependencies to place before the objects being linked to create a
13614 # shared library.
13615 predeps=$lt_predeps_CXX
13616
13617 # Dependencies to place after the objects being linked to create a
13618 # shared library.
13619 postdeps=$lt_postdeps_CXX
13620
13621 # The library search path used internally by the compiler when linking
13622 # a shared library.
13623 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13624
13625 # Method to check whether dependent libraries are shared objects.
13626 deplibs_check_method=$lt_deplibs_check_method
13627
13628 # Command to use when deplibs_check_method == file_magic.
13629 file_magic_cmd=$lt_file_magic_cmd
13630
13631 # Flag that allows shared libraries with undefined symbols to be built.
13632 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13633
13634 # Flag that forces no undefined symbols.
13635 no_undefined_flag=$lt_no_undefined_flag_CXX
13636
13637 # Commands used to finish a libtool library installation in a directory.
13638 finish_cmds=$lt_finish_cmds
13639
13640 # Same as above, but a single script fragment to be evaled but not shown.
13641 finish_eval=$lt_finish_eval
13642
13643 # Take the output of nm and produce a listing of raw symbols and C names.
13644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13645
13646 # Transform the output of nm in a proper C declaration
13647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13648
13649 # Transform the output of nm in a C name address pair
13650 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13651
13652 # This is the shared library runtime path variable.
13653 runpath_var=$runpath_var
13654
13655 # This is the shared library path variable.
13656 shlibpath_var=$shlibpath_var
13657
13658 # Is shlibpath searched before the hard-coded library search path?
13659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13660
13661 # How to hardcode a shared library path into an executable.
13662 hardcode_action=$hardcode_action_CXX
13663
13664 # Whether we should hardcode library paths into libraries.
13665 hardcode_into_libs=$hardcode_into_libs
13666
13667 # Flag to hardcode \$libdir into a binary during linking.
13668 # This must work even if \$libdir does not exist.
13669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13670
13671 # If ld is used when linking, flag to hardcode \$libdir into
13672 # a binary during linking. This must work even if \$libdir does
13673 # not exist.
13674 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13675
13676 # Whether we need a single -rpath flag with a separated argument.
13677 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13678
13679 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13680 # resulting binary.
13681 hardcode_direct=$hardcode_direct_CXX
13682
13683 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13684 # resulting binary.
13685 hardcode_minus_L=$hardcode_minus_L_CXX
13686
13687 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13688 # the resulting binary.
13689 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13690
13691 # Set to yes if building a shared library automatically hardcodes DIR into the library
13692 # and all subsequent libraries and executables linked against it.
13693 hardcode_automatic=$hardcode_automatic_CXX
13694
13695 # Variables whose values should be saved in libtool wrapper scripts and
13696 # restored at relink time.
13697 variables_saved_for_relink="$variables_saved_for_relink"
13698
13699 # Whether libtool must link a program against all its dependency libraries.
13700 link_all_deplibs=$link_all_deplibs_CXX
13701
13702 # Compile-time system search path for libraries
13703 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13704
13705 # Run-time system search path for libraries
13706 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13707
13708 # Fix the shell variable \$srcfile for the compiler.
13709 fix_srcfile_path="$fix_srcfile_path_CXX"
13710
13711 # Set to yes if exported symbols are required.
13712 always_export_symbols=$always_export_symbols_CXX
13713
13714 # The commands to list exported symbols.
13715 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13716
13717 # The commands to extract the exported symbol list from a shared archive.
13718 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13719
13720 # Symbols that should not be listed in the preloaded symbols.
13721 exclude_expsyms=$lt_exclude_expsyms_CXX
13722
13723 # Symbols that must always be exported.
13724 include_expsyms=$lt_include_expsyms_CXX
13725
13726 # ### END LIBTOOL TAG CONFIG: $tagname
13727
13728 __EOF__
13729
13730
13731 else
13732   # If there is no Makefile yet, we rely on a make rule to execute
13733   # `config.status --recheck' to rerun these tests and create the
13734   # libtool script then.
13735   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13736   if test -f "$ltmain_in"; then
13737     test -f Makefile && make "$ltmain"
13738   fi
13739 fi
13740
13741
13742 ac_ext=c
13743 ac_cpp='$CPP $CPPFLAGS'
13744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13747
13748 CC=$lt_save_CC
13749 LDCXX=$LD
13750 LD=$lt_save_LD
13751 GCC=$lt_save_GCC
13752 with_gnu_ldcxx=$with_gnu_ld
13753 with_gnu_ld=$lt_save_with_gnu_ld
13754 lt_cv_path_LDCXX=$lt_cv_path_LD
13755 lt_cv_path_LD=$lt_save_path_LD
13756 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13757 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13758
13759         else
13760           tagname=""
13761         fi
13762         ;;
13763
13764       F77)
13765         if test -n "$F77" && test "X$F77" != "Xno"; then
13766
13767 ac_ext=f
13768 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13769 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13770 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13771
13772
13773 archive_cmds_need_lc_F77=no
13774 allow_undefined_flag_F77=
13775 always_export_symbols_F77=no
13776 archive_expsym_cmds_F77=
13777 export_dynamic_flag_spec_F77=
13778 hardcode_direct_F77=no
13779 hardcode_libdir_flag_spec_F77=
13780 hardcode_libdir_flag_spec_ld_F77=
13781 hardcode_libdir_separator_F77=
13782 hardcode_minus_L_F77=no
13783 hardcode_automatic_F77=no
13784 module_cmds_F77=
13785 module_expsym_cmds_F77=
13786 link_all_deplibs_F77=unknown
13787 old_archive_cmds_F77=$old_archive_cmds
13788 no_undefined_flag_F77=
13789 whole_archive_flag_spec_F77=
13790 enable_shared_with_static_runtimes_F77=no
13791
13792 # Source file extension for f77 test sources.
13793 ac_ext=f
13794
13795 # Object file extension for compiled f77 test sources.
13796 objext=o
13797 objext_F77=$objext
13798
13799 # Code to be used in simple compile tests
13800 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13801
13802 # Code to be used in simple link tests
13803 lt_simple_link_test_code="      program t\n      end\n"
13804
13805 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13806
13807 # If no C compiler was specified, use CC.
13808 LTCC=${LTCC-"$CC"}
13809
13810 # Allow CC to be a program name with arguments.
13811 compiler=$CC
13812
13813
13814 # Allow CC to be a program name with arguments.
13815 lt_save_CC="$CC"
13816 CC=${F77-"f77"}
13817 compiler=$CC
13818 compiler_F77=$CC
13819 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13820
13821 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13822 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13823 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13824 echo "${ECHO_T}$can_build_shared" >&6
13825
13826 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13827 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13828 test "$can_build_shared" = "no" && enable_shared=no
13829
13830 # On AIX, shared libraries and static libraries use the same namespace, and
13831 # are all built from PIC.
13832 case "$host_os" in
13833 aix3*)
13834   test "$enable_shared" = yes && enable_static=no
13835   if test -n "$RANLIB"; then
13836     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13837     postinstall_cmds='$RANLIB $lib'
13838   fi
13839   ;;
13840 aix4* | aix5*)
13841   test "$enable_shared" = yes && enable_static=no
13842   ;;
13843 esac
13844 echo "$as_me:$LINENO: result: $enable_shared" >&5
13845 echo "${ECHO_T}$enable_shared" >&6
13846
13847 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13848 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13849 # Make sure either enable_shared or enable_static is yes.
13850 test "$enable_shared" = yes || enable_static=yes
13851 echo "$as_me:$LINENO: result: $enable_static" >&5
13852 echo "${ECHO_T}$enable_static" >&6
13853
13854 test "$ld_shlibs_F77" = no && can_build_shared=no
13855
13856 GCC_F77="$G77"
13857 LD_F77="$LD"
13858
13859 lt_prog_compiler_wl_F77=
13860 lt_prog_compiler_pic_F77=
13861 lt_prog_compiler_static_F77=
13862
13863 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13864 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13865
13866   if test "$GCC" = yes; then
13867     lt_prog_compiler_wl_F77='-Wl,'
13868     lt_prog_compiler_static_F77='-static'
13869
13870     case $host_os in
13871       aix*)
13872       # All AIX code is PIC.
13873       if test "$host_cpu" = ia64; then
13874         # AIX 5 now supports IA64 processor
13875         lt_prog_compiler_static_F77='-Bstatic'
13876       fi
13877       ;;
13878
13879     amigaos*)
13880       # FIXME: we need at least 68020 code to build shared libraries, but
13881       # adding the `-m68020' flag to GCC prevents building anything better,
13882       # like `-m68040'.
13883       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13884       ;;
13885
13886     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13887       # PIC is the default for these OSes.
13888       ;;
13889
13890     mingw* | pw32* | os2*)
13891       # This hack is so that the source file can tell whether it is being
13892       # built for inclusion in a dll (and should export symbols for example).
13893       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13894       ;;
13895
13896     darwin* | rhapsody*)
13897       # PIC is the default on this platform
13898       # Common symbols not allowed in MH_DYLIB files
13899       lt_prog_compiler_pic_F77='-fno-common'
13900       ;;
13901
13902     msdosdjgpp*)
13903       # Just because we use GCC doesn't mean we suddenly get shared libraries
13904       # on systems that don't support them.
13905       lt_prog_compiler_can_build_shared_F77=no
13906       enable_shared=no
13907       ;;
13908
13909     sysv4*MP*)
13910       if test -d /usr/nec; then
13911         lt_prog_compiler_pic_F77=-Kconform_pic
13912       fi
13913       ;;
13914
13915     hpux*)
13916       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13917       # not for PA HP-UX.
13918       case "$host_cpu" in
13919       hppa*64*|ia64*)
13920         # +Z the default
13921         ;;
13922       *)
13923         lt_prog_compiler_pic_F77='-fPIC'
13924         ;;
13925       esac
13926       ;;
13927
13928     *)
13929       lt_prog_compiler_pic_F77='-fPIC'
13930       ;;
13931     esac
13932   else
13933     # PORTME Check for flag to pass linker flags through the system compiler.
13934     case $host_os in
13935     aix*)
13936       lt_prog_compiler_wl_F77='-Wl,'
13937       if test "$host_cpu" = ia64; then
13938         # AIX 5 now supports IA64 processor
13939         lt_prog_compiler_static_F77='-Bstatic'
13940       else
13941         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13942       fi
13943       ;;
13944       darwin*)
13945         # PIC is the default on this platform
13946         # Common symbols not allowed in MH_DYLIB files
13947        case "$cc_basename" in
13948          xlc*)
13949          lt_prog_compiler_pic_F77='-qnocommon'
13950          lt_prog_compiler_wl_F77='-Wl,'
13951          ;;
13952        esac
13953        ;;
13954
13955     mingw* | pw32* | os2*)
13956       # This hack is so that the source file can tell whether it is being
13957       # built for inclusion in a dll (and should export symbols for example).
13958       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13959       ;;
13960
13961     hpux9* | hpux10* | hpux11*)
13962       lt_prog_compiler_wl_F77='-Wl,'
13963       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13964       # not for PA HP-UX.
13965       case "$host_cpu" in
13966       hppa*64*|ia64*)
13967         # +Z the default
13968         ;;
13969       *)
13970         lt_prog_compiler_pic_F77='+Z'
13971         ;;
13972       esac
13973       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13974       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13975       ;;
13976
13977     irix5* | irix6* | nonstopux*)
13978       lt_prog_compiler_wl_F77='-Wl,'
13979       # PIC (with -KPIC) is the default.
13980       lt_prog_compiler_static_F77='-non_shared'
13981       ;;
13982
13983     newsos6)
13984       lt_prog_compiler_pic_F77='-KPIC'
13985       lt_prog_compiler_static_F77='-Bstatic'
13986       ;;
13987
13988     linux*)
13989       case $CC in
13990       icc* | ecc*)
13991         lt_prog_compiler_wl_F77='-Wl,'
13992         lt_prog_compiler_pic_F77='-KPIC'
13993         lt_prog_compiler_static_F77='-static'
13994         ;;
13995       ccc*)
13996         lt_prog_compiler_wl_F77='-Wl,'
13997         # All Alpha code is PIC.
13998         lt_prog_compiler_static_F77='-non_shared'
13999         ;;
14000       esac
14001       ;;
14002
14003     osf3* | osf4* | osf5*)
14004       lt_prog_compiler_wl_F77='-Wl,'
14005       # All OSF/1 code is PIC.
14006       lt_prog_compiler_static_F77='-non_shared'
14007       ;;
14008
14009     sco3.2v5*)
14010       lt_prog_compiler_pic_F77='-Kpic'
14011       lt_prog_compiler_static_F77='-dn'
14012       ;;
14013
14014     solaris*)
14015       lt_prog_compiler_wl_F77='-Wl,'
14016       lt_prog_compiler_pic_F77='-KPIC'
14017       lt_prog_compiler_static_F77='-Bstatic'
14018       ;;
14019
14020     sunos4*)
14021       lt_prog_compiler_wl_F77='-Qoption ld '
14022       lt_prog_compiler_pic_F77='-PIC'
14023       lt_prog_compiler_static_F77='-Bstatic'
14024       ;;
14025
14026     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14027       lt_prog_compiler_wl_F77='-Wl,'
14028       lt_prog_compiler_pic_F77='-KPIC'
14029       lt_prog_compiler_static_F77='-Bstatic'
14030       ;;
14031
14032     sysv4*MP*)
14033       if test -d /usr/nec ;then
14034         lt_prog_compiler_pic_F77='-Kconform_pic'
14035         lt_prog_compiler_static_F77='-Bstatic'
14036       fi
14037       ;;
14038
14039     uts4*)
14040       lt_prog_compiler_pic_F77='-pic'
14041       lt_prog_compiler_static_F77='-Bstatic'
14042       ;;
14043
14044     *)
14045       lt_prog_compiler_can_build_shared_F77=no
14046       ;;
14047     esac
14048   fi
14049
14050 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14051 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14052
14053 #
14054 # Check to make sure the PIC flag actually works.
14055 #
14056 if test -n "$lt_prog_compiler_pic_F77"; then
14057
14058 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14059 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14060 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14061   echo $ECHO_N "(cached) $ECHO_C" >&6
14062 else
14063   lt_prog_compiler_pic_works_F77=no
14064   ac_outfile=conftest.$ac_objext
14065    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14066    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14067    # Insert the option either (1) after the last *FLAGS variable, or
14068    # (2) before a word containing "conftest.", or (3) at the end.
14069    # Note that $ac_compile itself does not contain backslashes and begins
14070    # with a dollar sign (not a hyphen), so the echo should work correctly.
14071    # The option is referenced via a variable to avoid confusing sed.
14072    lt_compile=`echo "$ac_compile" | $SED \
14073    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14074    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14075    -e 's:$: $lt_compiler_flag:'`
14076    (eval echo "\"\$as_me:14076: $lt_compile\"" >&5)
14077    (eval "$lt_compile" 2>conftest.err)
14078    ac_status=$?
14079    cat conftest.err >&5
14080    echo "$as_me:14080: \$? = $ac_status" >&5
14081    if (exit $ac_status) && test -s "$ac_outfile"; then
14082      # The compiler can only warn and ignore the option if not recognized
14083      # So say no if there are warnings
14084      if test ! -s conftest.err; then
14085        lt_prog_compiler_pic_works_F77=yes
14086      fi
14087    fi
14088    $rm conftest*
14089
14090 fi
14091 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14092 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14093
14094 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14095     case $lt_prog_compiler_pic_F77 in
14096      "" | " "*) ;;
14097      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14098      esac
14099 else
14100     lt_prog_compiler_pic_F77=
14101      lt_prog_compiler_can_build_shared_F77=no
14102 fi
14103
14104 fi
14105 case "$host_os" in
14106   # For platforms which do not support PIC, -DPIC is meaningless:
14107   *djgpp*)
14108     lt_prog_compiler_pic_F77=
14109     ;;
14110   *)
14111     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14112     ;;
14113 esac
14114
14115 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14116 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14117 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14118   echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14120   lt_cv_prog_compiler_c_o_F77=no
14121    $rm -r conftest 2>/dev/null
14122    mkdir conftest
14123    cd conftest
14124    mkdir out
14125    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14126
14127    lt_compiler_flag="-o out/conftest2.$ac_objext"
14128    # Insert the option either (1) after the last *FLAGS variable, or
14129    # (2) before a word containing "conftest.", or (3) at the end.
14130    # Note that $ac_compile itself does not contain backslashes and begins
14131    # with a dollar sign (not a hyphen), so the echo should work correctly.
14132    lt_compile=`echo "$ac_compile" | $SED \
14133    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14134    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14135    -e 's:$: $lt_compiler_flag:'`
14136    (eval echo "\"\$as_me:14136: $lt_compile\"" >&5)
14137    (eval "$lt_compile" 2>out/conftest.err)
14138    ac_status=$?
14139    cat out/conftest.err >&5
14140    echo "$as_me:14140: \$? = $ac_status" >&5
14141    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14142    then
14143      # The compiler can only warn and ignore the option if not recognized
14144      # So say no if there are warnings
14145      if test ! -s out/conftest.err; then
14146        lt_cv_prog_compiler_c_o_F77=yes
14147      fi
14148    fi
14149    chmod u+w .
14150    $rm conftest*
14151    # SGI C++ compiler will create directory out/ii_files/ for
14152    # template instantiation
14153    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14154    $rm out/* && rmdir out
14155    cd ..
14156    rmdir conftest
14157    $rm conftest*
14158
14159 fi
14160 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14161 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14162
14163
14164 hard_links="nottested"
14165 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14166   # do not overwrite the value of need_locks provided by the user
14167   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14168 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14169   hard_links=yes
14170   $rm conftest*
14171   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14172   touch conftest.a
14173   ln conftest.a conftest.b 2>&5 || hard_links=no
14174   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14175   echo "$as_me:$LINENO: result: $hard_links" >&5
14176 echo "${ECHO_T}$hard_links" >&6
14177   if test "$hard_links" = no; then
14178     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14179 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14180     need_locks=warn
14181   fi
14182 else
14183   need_locks=no
14184 fi
14185
14186 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14187 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14188
14189   runpath_var=
14190   allow_undefined_flag_F77=
14191   enable_shared_with_static_runtimes_F77=no
14192   archive_cmds_F77=
14193   archive_expsym_cmds_F77=
14194   old_archive_From_new_cmds_F77=
14195   old_archive_from_expsyms_cmds_F77=
14196   export_dynamic_flag_spec_F77=
14197   whole_archive_flag_spec_F77=
14198   thread_safe_flag_spec_F77=
14199   hardcode_libdir_flag_spec_F77=
14200   hardcode_libdir_flag_spec_ld_F77=
14201   hardcode_libdir_separator_F77=
14202   hardcode_direct_F77=no
14203   hardcode_minus_L_F77=no
14204   hardcode_shlibpath_var_F77=unsupported
14205   link_all_deplibs_F77=unknown
14206   hardcode_automatic_F77=no
14207   module_cmds_F77=
14208   module_expsym_cmds_F77=
14209   always_export_symbols_F77=no
14210   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14211   # include_expsyms should be a list of space-separated symbols to be *always*
14212   # included in the symbol list
14213   include_expsyms_F77=
14214   # exclude_expsyms can be an extended regexp of symbols to exclude
14215   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14216   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14217   # as well as any symbol that contains `d'.
14218   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14219   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14220   # platforms (ab)use it in PIC code, but their linkers get confused if
14221   # the symbol is explicitly referenced.  Since portable code cannot
14222   # rely on this symbol name, it's probably fine to never include it in
14223   # preloaded symbol tables.
14224   extract_expsyms_cmds=
14225
14226   case $host_os in
14227   cygwin* | mingw* | pw32*)
14228     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14229     # When not using gcc, we currently assume that we are using
14230     # Microsoft Visual C++.
14231     if test "$GCC" != yes; then
14232       with_gnu_ld=no
14233     fi
14234     ;;
14235   openbsd*)
14236     with_gnu_ld=no
14237     ;;
14238   esac
14239
14240   ld_shlibs_F77=yes
14241   if test "$with_gnu_ld" = yes; then
14242     # If archive_cmds runs LD, not CC, wlarc should be empty
14243     wlarc='${wl}'
14244
14245     # See if GNU ld supports shared libraries.
14246     case $host_os in
14247     aix3* | aix4* | aix5*)
14248       # On AIX/PPC, the GNU linker is very broken
14249       if test "$host_cpu" != ia64; then
14250         ld_shlibs_F77=no
14251         cat <<EOF 1>&2
14252
14253 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14254 *** to be unable to reliably create shared libraries on AIX.
14255 *** Therefore, libtool is disabling shared libraries support.  If you
14256 *** really care for shared libraries, you may want to modify your PATH
14257 *** so that a non-GNU linker is found, and then restart.
14258
14259 EOF
14260       fi
14261       ;;
14262
14263     amigaos*)
14264       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)'
14265       hardcode_libdir_flag_spec_F77='-L$libdir'
14266       hardcode_minus_L_F77=yes
14267
14268       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14269       # that the semantics of dynamic libraries on AmigaOS, at least up
14270       # to version 4, is to share data among multiple programs linked
14271       # with the same dynamic library.  Since this doesn't match the
14272       # behavior of shared libraries on other platforms, we can't use
14273       # them.
14274       ld_shlibs_F77=no
14275       ;;
14276
14277     beos*)
14278       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14279         allow_undefined_flag_F77=unsupported
14280         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14281         # support --undefined.  This deserves some investigation.  FIXME
14282         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14283       else
14284         ld_shlibs_F77=no
14285       fi
14286       ;;
14287
14288     cygwin* | mingw* | pw32*)
14289       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14290       # as there is no search path for DLLs.
14291       hardcode_libdir_flag_spec_F77='-L$libdir'
14292       allow_undefined_flag_F77=unsupported
14293       always_export_symbols_F77=no
14294       enable_shared_with_static_runtimes_F77=yes
14295       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14296
14297       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14298         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14299         # If the export-symbols file already is a .def file (1st line
14300         # is EXPORTS), use it as is; otherwise, prepend...
14301         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14302           cp $export_symbols $output_objdir/$soname.def;
14303         else
14304           echo EXPORTS > $output_objdir/$soname.def;
14305           cat $export_symbols >> $output_objdir/$soname.def;
14306         fi~
14307         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14308       else
14309         ld_shlibs=no
14310       fi
14311       ;;
14312
14313     netbsd*)
14314       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14315         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14316         wlarc=
14317       else
14318         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14319         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14320       fi
14321       ;;
14322
14323     solaris* | sysv5*)
14324       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14325         ld_shlibs_F77=no
14326         cat <<EOF 1>&2
14327
14328 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14329 *** create shared libraries on Solaris systems.  Therefore, libtool
14330 *** is disabling shared libraries support.  We urge you to upgrade GNU
14331 *** binutils to release 2.9.1 or newer.  Another option is to modify
14332 *** your PATH or compiler configuration so that the native linker is
14333 *** used, and then restart.
14334
14335 EOF
14336       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14337         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14338         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14339       else
14340         ld_shlibs_F77=no
14341       fi
14342       ;;
14343
14344     sunos4*)
14345       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14346       wlarc=
14347       hardcode_direct_F77=yes
14348       hardcode_shlibpath_var_F77=no
14349       ;;
14350
14351   linux*)
14352     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14353         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14354         archive_cmds_F77="$tmp_archive_cmds"
14355       supports_anon_versioning=no
14356       case `$LD -v 2>/dev/null` in
14357         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14358         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14359         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14360         *\ 2.11.*) ;; # other 2.11 versions
14361         *) supports_anon_versioning=yes ;;
14362       esac
14363       if test $supports_anon_versioning = yes; then
14364         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14365 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14366 $echo "local: *; };" >> $output_objdir/$libname.ver~
14367         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14368       else
14369         archive_expsym_cmds_F77="$tmp_archive_cmds"
14370       fi
14371     else
14372       ld_shlibs_F77=no
14373     fi
14374     ;;
14375
14376     *)
14377       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14378         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14379         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14380       else
14381         ld_shlibs_F77=no
14382       fi
14383       ;;
14384     esac
14385
14386     if test "$ld_shlibs_F77" = yes; then
14387       runpath_var=LD_RUN_PATH
14388       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14389       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14390       # ancient GNU ld didn't support --whole-archive et. al.
14391       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14392         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14393       else
14394         whole_archive_flag_spec_F77=
14395       fi
14396     fi
14397   else
14398     # PORTME fill in a description of your system's linker (not GNU ld)
14399     case $host_os in
14400     aix3*)
14401       allow_undefined_flag_F77=unsupported
14402       always_export_symbols_F77=yes
14403       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'
14404       # Note: this linker hardcodes the directories in LIBPATH if there
14405       # are no directories specified by -L.
14406       hardcode_minus_L_F77=yes
14407       if test "$GCC" = yes && test -z "$link_static_flag"; then
14408         # Neither direct hardcoding nor static linking is supported with a
14409         # broken collect2.
14410         hardcode_direct_F77=unsupported
14411       fi
14412       ;;
14413
14414     aix4* | aix5*)
14415       if test "$host_cpu" = ia64; then
14416         # On IA64, the linker does run time linking by default, so we don't
14417         # have to do anything special.
14418         aix_use_runtimelinking=no
14419         exp_sym_flag='-Bexport'
14420         no_entry_flag=""
14421       else
14422         # If we're using GNU nm, then we don't want the "-C" option.
14423         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14424         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14425           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'
14426         else
14427           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'
14428         fi
14429         aix_use_runtimelinking=no
14430
14431         # Test if we are trying to use run time linking or normal
14432         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14433         # need to do runtime linking.
14434         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14435           for ld_flag in $LDFLAGS; do
14436           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14437             aix_use_runtimelinking=yes
14438             break
14439           fi
14440           done
14441         esac
14442
14443         exp_sym_flag='-bexport'
14444         no_entry_flag='-bnoentry'
14445       fi
14446
14447       # When large executables or shared objects are built, AIX ld can
14448       # have problems creating the table of contents.  If linking a library
14449       # or program results in "error TOC overflow" add -mminimal-toc to
14450       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14451       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14452
14453       archive_cmds_F77=''
14454       hardcode_direct_F77=yes
14455       hardcode_libdir_separator_F77=':'
14456       link_all_deplibs_F77=yes
14457
14458       if test "$GCC" = yes; then
14459         case $host_os in aix4.012|aix4.012.*)
14460         # We only want to do this on AIX 4.2 and lower, the check
14461         # below for broken collect2 doesn't work under 4.3+
14462           collect2name=`${CC} -print-prog-name=collect2`
14463           if test -f "$collect2name" && \
14464            strings "$collect2name" | grep resolve_lib_name >/dev/null
14465           then
14466           # We have reworked collect2
14467           hardcode_direct_F77=yes
14468           else
14469           # We have old collect2
14470           hardcode_direct_F77=unsupported
14471           # It fails to find uninstalled libraries when the uninstalled
14472           # path is not listed in the libpath.  Setting hardcode_minus_L
14473           # to unsupported forces relinking
14474           hardcode_minus_L_F77=yes
14475           hardcode_libdir_flag_spec_F77='-L$libdir'
14476           hardcode_libdir_separator_F77=
14477           fi
14478         esac
14479         shared_flag='-shared'
14480       else
14481         # not using gcc
14482         if test "$host_cpu" = ia64; then
14483         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14484         # chokes on -Wl,-G. The following line is correct:
14485           shared_flag='-G'
14486         else
14487         if test "$aix_use_runtimelinking" = yes; then
14488             shared_flag='${wl}-G'
14489           else
14490             shared_flag='${wl}-bM:SRE'
14491         fi
14492         fi
14493       fi
14494
14495       # It seems that -bexpall does not export symbols beginning with
14496       # underscore (_), so it is better to generate a list of symbols to export.
14497       always_export_symbols_F77=yes
14498       if test "$aix_use_runtimelinking" = yes; then
14499         # Warning - without using the other runtime loading flags (-brtl),
14500         # -berok will link without error, but may produce a broken library.
14501         allow_undefined_flag_F77='-berok'
14502        # Determine the default libpath from the value encoded in an empty executable.
14503        cat >conftest.$ac_ext <<_ACEOF
14504       program main
14505
14506       end
14507 _ACEOF
14508 rm -f conftest.$ac_objext conftest$ac_exeext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14510   (eval $ac_link) 2>conftest.er1
14511   ac_status=$?
14512   grep -v '^ *+' conftest.er1 >conftest.err
14513   rm -f conftest.er1
14514   cat conftest.err >&5
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); } &&
14517          { ac_try='test -z "$ac_f77_werror_flag"
14518                          || test ! -s conftest.err'
14519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520   (eval $ac_try) 2>&5
14521   ac_status=$?
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); }; } &&
14524          { ac_try='test -s conftest$ac_exeext'
14525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526   (eval $ac_try) 2>&5
14527   ac_status=$?
14528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529   (exit $ac_status); }; }; then
14530
14531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14532 }'`
14533 # Check for a 64-bit object if we didn't find anything.
14534 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; }
14535 }'`; fi
14536 else
14537   echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14539
14540 fi
14541 rm -f conftest.err conftest.$ac_objext \
14542       conftest$ac_exeext conftest.$ac_ext
14543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14544
14545        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14546         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"
14547        else
14548         if test "$host_cpu" = ia64; then
14549           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14550           allow_undefined_flag_F77="-z nodefs"
14551           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"
14552         else
14553          # Determine the default libpath from the value encoded in an empty executable.
14554          cat >conftest.$ac_ext <<_ACEOF
14555       program main
14556
14557       end
14558 _ACEOF
14559 rm -f conftest.$ac_objext conftest$ac_exeext
14560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561   (eval $ac_link) 2>conftest.er1
14562   ac_status=$?
14563   grep -v '^ *+' conftest.er1 >conftest.err
14564   rm -f conftest.er1
14565   cat conftest.err >&5
14566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567   (exit $ac_status); } &&
14568          { ac_try='test -z "$ac_f77_werror_flag"
14569                          || test ! -s conftest.err'
14570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571   (eval $ac_try) 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); }; } &&
14575          { ac_try='test -s conftest$ac_exeext'
14576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577   (eval $ac_try) 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); }; }; then
14581
14582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14583 }'`
14584 # Check for a 64-bit object if we didn't find anything.
14585 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; }
14586 }'`; fi
14587 else
14588   echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14590
14591 fi
14592 rm -f conftest.err conftest.$ac_objext \
14593       conftest$ac_exeext conftest.$ac_ext
14594 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14595
14596          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14597           # Warning - without using the other run time loading flags,
14598           # -berok will link without error, but may produce a broken library.
14599           no_undefined_flag_F77=' ${wl}-bernotok'
14600           allow_undefined_flag_F77=' ${wl}-berok'
14601           # -bexpall does not export symbols beginning with underscore (_)
14602           always_export_symbols_F77=yes
14603           # Exported symbols can be pulled into shared objects from archives
14604           whole_archive_flag_spec_F77=' '
14605           archive_cmds_need_lc_F77=yes
14606           # This is similar to how AIX traditionally builds it's shared libraries.
14607           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'
14608         fi
14609       fi
14610       ;;
14611
14612     amigaos*)
14613       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)'
14614       hardcode_libdir_flag_spec_F77='-L$libdir'
14615       hardcode_minus_L_F77=yes
14616       # see comment about different semantics on the GNU ld section
14617       ld_shlibs_F77=no
14618       ;;
14619
14620     bsdi[45]*)
14621       export_dynamic_flag_spec_F77=-rdynamic
14622       ;;
14623
14624     cygwin* | mingw* | pw32*)
14625       # When not using gcc, we currently assume that we are using
14626       # Microsoft Visual C++.
14627       # hardcode_libdir_flag_spec is actually meaningless, as there is
14628       # no search path for DLLs.
14629       hardcode_libdir_flag_spec_F77=' '
14630       allow_undefined_flag_F77=unsupported
14631       # Tell ltmain to make .lib files, not .a files.
14632       libext=lib
14633       # Tell ltmain to make .dll files, not .so files.
14634       shrext_cmds=".dll"
14635       # FIXME: Setting linknames here is a bad hack.
14636       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14637       # The linker will automatically build a .lib file if we build a DLL.
14638       old_archive_From_new_cmds_F77='true'
14639       # FIXME: Should let the user specify the lib program.
14640       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14641       fix_srcfile_path='`cygpath -w "$srcfile"`'
14642       enable_shared_with_static_runtimes_F77=yes
14643       ;;
14644
14645     darwin* | rhapsody*)
14646       case "$host_os" in
14647         rhapsody* | darwin1.[012])
14648          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14649          ;;
14650        *) # Darwin 1.3 on
14651          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14652            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14653          else
14654            case ${MACOSX_DEPLOYMENT_TARGET} in
14655              10.[012])
14656                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14657                ;;
14658              10.*)
14659                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14660                ;;
14661            esac
14662          fi
14663          ;;
14664       esac
14665       archive_cmds_need_lc_F77=no
14666       hardcode_direct_F77=no
14667       hardcode_automatic_F77=yes
14668       hardcode_shlibpath_var_F77=unsupported
14669       whole_archive_flag_spec_F77=''
14670       link_all_deplibs_F77=yes
14671     if test "$GCC" = yes ; then
14672         output_verbose_link_cmd='echo'
14673         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14674       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14675       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14676       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}'
14677       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}'
14678     else
14679       case "$cc_basename" in
14680         xlc*)
14681          output_verbose_link_cmd='echo'
14682          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14683          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14684           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14685          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}'
14686           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}'
14687           ;;
14688        *)
14689          ld_shlibs_F77=no
14690           ;;
14691       esac
14692     fi
14693       ;;
14694
14695     dgux*)
14696       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14697       hardcode_libdir_flag_spec_F77='-L$libdir'
14698       hardcode_shlibpath_var_F77=no
14699       ;;
14700
14701     freebsd1*)
14702       ld_shlibs_F77=no
14703       ;;
14704
14705     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14706     # support.  Future versions do this automatically, but an explicit c++rt0.o
14707     # does not break anything, and helps significantly (at the cost of a little
14708     # extra space).
14709     freebsd2.2*)
14710       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14711       hardcode_libdir_flag_spec_F77='-R$libdir'
14712       hardcode_direct_F77=yes
14713       hardcode_shlibpath_var_F77=no
14714       ;;
14715
14716     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14717     freebsd2*)
14718       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14719       hardcode_direct_F77=yes
14720       hardcode_minus_L_F77=yes
14721       hardcode_shlibpath_var_F77=no
14722       ;;
14723
14724     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14725     freebsd* | kfreebsd*-gnu)
14726       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14727       hardcode_libdir_flag_spec_F77='-R$libdir'
14728       hardcode_direct_F77=yes
14729       hardcode_shlibpath_var_F77=no
14730       ;;
14731
14732     hpux9*)
14733       if test "$GCC" = yes; then
14734         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'
14735       else
14736         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'
14737       fi
14738       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14739       hardcode_libdir_separator_F77=:
14740       hardcode_direct_F77=yes
14741
14742       # hardcode_minus_L: Not really in the search PATH,
14743       # but as the default location of the library.
14744       hardcode_minus_L_F77=yes
14745       export_dynamic_flag_spec_F77='${wl}-E'
14746       ;;
14747
14748     hpux10* | hpux11*)
14749       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14750         case "$host_cpu" in
14751         hppa*64*|ia64*)
14752           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14753           ;;
14754         *)
14755           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14756           ;;
14757         esac
14758       else
14759         case "$host_cpu" in
14760         hppa*64*|ia64*)
14761           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14762           ;;
14763         *)
14764           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14765           ;;
14766         esac
14767       fi
14768       if test "$with_gnu_ld" = no; then
14769         case "$host_cpu" in
14770         hppa*64*)
14771           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14772           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14773           hardcode_libdir_separator_F77=:
14774           hardcode_direct_F77=no
14775           hardcode_shlibpath_var_F77=no
14776           ;;
14777         ia64*)
14778           hardcode_libdir_flag_spec_F77='-L$libdir'
14779           hardcode_direct_F77=no
14780           hardcode_shlibpath_var_F77=no
14781
14782           # hardcode_minus_L: Not really in the search PATH,
14783           # but as the default location of the library.
14784           hardcode_minus_L_F77=yes
14785           ;;
14786         *)
14787           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14788           hardcode_libdir_separator_F77=:
14789           hardcode_direct_F77=yes
14790           export_dynamic_flag_spec_F77='${wl}-E'
14791
14792           # hardcode_minus_L: Not really in the search PATH,
14793           # but as the default location of the library.
14794           hardcode_minus_L_F77=yes
14795           ;;
14796         esac
14797       fi
14798       ;;
14799
14800     irix5* | irix6* | nonstopux*)
14801       if test "$GCC" = yes; then
14802         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'
14803       else
14804         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'
14805         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14806       fi
14807       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14808       hardcode_libdir_separator_F77=:
14809       link_all_deplibs_F77=yes
14810       ;;
14811
14812     netbsd*)
14813       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14814         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14815       else
14816         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14817       fi
14818       hardcode_libdir_flag_spec_F77='-R$libdir'
14819       hardcode_direct_F77=yes
14820       hardcode_shlibpath_var_F77=no
14821       ;;
14822
14823     newsos6)
14824       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14825       hardcode_direct_F77=yes
14826       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14827       hardcode_libdir_separator_F77=:
14828       hardcode_shlibpath_var_F77=no
14829       ;;
14830
14831     openbsd*)
14832       hardcode_direct_F77=yes
14833       hardcode_shlibpath_var_F77=no
14834       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14835         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14836         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14837         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14838         export_dynamic_flag_spec_F77='${wl}-E'
14839       else
14840        case $host_os in
14841          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14842            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14843            hardcode_libdir_flag_spec_F77='-R$libdir'
14844            ;;
14845          *)
14846            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14847            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14848            ;;
14849        esac
14850       fi
14851       ;;
14852
14853     os2*)
14854       hardcode_libdir_flag_spec_F77='-L$libdir'
14855       hardcode_minus_L_F77=yes
14856       allow_undefined_flag_F77=unsupported
14857       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'
14858       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14859       ;;
14860
14861     osf3*)
14862       if test "$GCC" = yes; then
14863         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14864         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'
14865       else
14866         allow_undefined_flag_F77=' -expect_unresolved \*'
14867         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'
14868       fi
14869       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14870       hardcode_libdir_separator_F77=:
14871       ;;
14872
14873     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14874       if test "$GCC" = yes; then
14875         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14876         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'
14877         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14878       else
14879         allow_undefined_flag_F77=' -expect_unresolved \*'
14880         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'
14881         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~
14882         $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'
14883
14884         # Both c and cxx compiler support -rpath directly
14885         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14886       fi
14887       hardcode_libdir_separator_F77=:
14888       ;;
14889
14890     sco3.2v5*)
14891       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14892       hardcode_shlibpath_var_F77=no
14893       export_dynamic_flag_spec_F77='${wl}-Bexport'
14894       runpath_var=LD_RUN_PATH
14895       hardcode_runpath_var=yes
14896       ;;
14897
14898     solaris*)
14899       no_undefined_flag_F77=' -z text'
14900       if test "$GCC" = yes; then
14901         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14902         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14903           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14904       else
14905         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14906         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14907         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14908       fi
14909       hardcode_libdir_flag_spec_F77='-R$libdir'
14910       hardcode_shlibpath_var_F77=no
14911       case $host_os in
14912       solaris2.[0-5] | solaris2.[0-5].*) ;;
14913       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14914         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14915       esac
14916       link_all_deplibs_F77=yes
14917       ;;
14918
14919     sunos4*)
14920       if test "x$host_vendor" = xsequent; then
14921         # Use $CC to link under sequent, because it throws in some extra .o
14922         # files that make .init and .fini sections work.
14923         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14924       else
14925         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14926       fi
14927       hardcode_libdir_flag_spec_F77='-L$libdir'
14928       hardcode_direct_F77=yes
14929       hardcode_minus_L_F77=yes
14930       hardcode_shlibpath_var_F77=no
14931       ;;
14932
14933     sysv4)
14934       case $host_vendor in
14935         sni)
14936           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14937           hardcode_direct_F77=yes # is this really true???
14938         ;;
14939         siemens)
14940           ## LD is ld it makes a PLAMLIB
14941           ## CC just makes a GrossModule.
14942           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14943           reload_cmds_F77='$CC -r -o $output$reload_objs'
14944           hardcode_direct_F77=no
14945         ;;
14946         motorola)
14947           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14948           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14949         ;;
14950       esac
14951       runpath_var='LD_RUN_PATH'
14952       hardcode_shlibpath_var_F77=no
14953       ;;
14954
14955     sysv4.3*)
14956       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14957       hardcode_shlibpath_var_F77=no
14958       export_dynamic_flag_spec_F77='-Bexport'
14959       ;;
14960
14961     sysv4*MP*)
14962       if test -d /usr/nec; then
14963         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14964         hardcode_shlibpath_var_F77=no
14965         runpath_var=LD_RUN_PATH
14966         hardcode_runpath_var=yes
14967         ld_shlibs_F77=yes
14968       fi
14969       ;;
14970
14971     sysv4.2uw2*)
14972       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14973       hardcode_direct_F77=yes
14974       hardcode_minus_L_F77=no
14975       hardcode_shlibpath_var_F77=no
14976       hardcode_runpath_var=yes
14977       runpath_var=LD_RUN_PATH
14978       ;;
14979
14980    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14981       no_undefined_flag_F77='${wl}-z ${wl}text'
14982       if test "$GCC" = yes; then
14983         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14984       else
14985         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14986       fi
14987       runpath_var='LD_RUN_PATH'
14988       hardcode_shlibpath_var_F77=no
14989       ;;
14990
14991     sysv5*)
14992       no_undefined_flag_F77=' -z text'
14993       # $CC -shared without GNU ld will not create a library from C++
14994       # object files and a static libstdc++, better avoid it by now
14995       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14996       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14997                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14998       hardcode_libdir_flag_spec_F77=
14999       hardcode_shlibpath_var_F77=no
15000       runpath_var='LD_RUN_PATH'
15001       ;;
15002
15003     uts4*)
15004       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15005       hardcode_libdir_flag_spec_F77='-L$libdir'
15006       hardcode_shlibpath_var_F77=no
15007       ;;
15008
15009     *)
15010       ld_shlibs_F77=no
15011       ;;
15012     esac
15013   fi
15014
15015 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15016 echo "${ECHO_T}$ld_shlibs_F77" >&6
15017 test "$ld_shlibs_F77" = no && can_build_shared=no
15018
15019 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15020 if test "$GCC" = yes; then
15021   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15022 fi
15023
15024 #
15025 # Do we need to explicitly link libc?
15026 #
15027 case "x$archive_cmds_need_lc_F77" in
15028 x|xyes)
15029   # Assume -lc should be added
15030   archive_cmds_need_lc_F77=yes
15031
15032   if test "$enable_shared" = yes && test "$GCC" = yes; then
15033     case $archive_cmds_F77 in
15034     *'~'*)
15035       # FIXME: we may have to deal with multi-command sequences.
15036       ;;
15037     '$CC '*)
15038       # Test whether the compiler implicitly links with -lc since on some
15039       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15040       # to ld, don't add -lc before -lgcc.
15041       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15042 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15043       $rm conftest*
15044       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15045
15046       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047   (eval $ac_compile) 2>&5
15048   ac_status=$?
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); } 2>conftest.err; then
15051         soname=conftest
15052         lib=conftest
15053         libobjs=conftest.$ac_objext
15054         deplibs=
15055         wl=$lt_prog_compiler_wl_F77
15056         compiler_flags=-v
15057         linker_flags=-v
15058         verstring=
15059         output_objdir=.
15060         libname=conftest
15061         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15062         allow_undefined_flag_F77=
15063         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15064   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); }
15068         then
15069           archive_cmds_need_lc_F77=no
15070         else
15071           archive_cmds_need_lc_F77=yes
15072         fi
15073         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15074       else
15075         cat conftest.err 1>&5
15076       fi
15077       $rm conftest*
15078       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15079 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15080       ;;
15081     esac
15082   fi
15083   ;;
15084 esac
15085
15086 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15087 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15088 library_names_spec=
15089 libname_spec='lib$name'
15090 soname_spec=
15091 shrext_cmds=".so"
15092 postinstall_cmds=
15093 postuninstall_cmds=
15094 finish_cmds=
15095 finish_eval=
15096 shlibpath_var=
15097 shlibpath_overrides_runpath=unknown
15098 version_type=none
15099 dynamic_linker="$host_os ld.so"
15100 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15101 if test "$GCC" = yes; then
15102   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15103   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15104     # if the path contains ";" then we assume it to be the separator
15105     # otherwise default to the standard path separator (i.e. ":") - it is
15106     # assumed that no part of a normal pathname contains ";" but that should
15107     # okay in the real world where ";" in dirpaths is itself problematic.
15108     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15109   else
15110     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15111   fi
15112 else
15113   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15114 fi
15115 need_lib_prefix=unknown
15116 hardcode_into_libs=no
15117
15118 # when you set need_version to no, make sure it does not cause -set_version
15119 # flags to be left without arguments
15120 need_version=unknown
15121
15122 case $host_os in
15123 aix3*)
15124   version_type=linux
15125   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15126   shlibpath_var=LIBPATH
15127
15128   # AIX 3 has no versioning support, so we append a major version to the name.
15129   soname_spec='${libname}${release}${shared_ext}$major'
15130   ;;
15131
15132 aix4* | aix5*)
15133   version_type=linux
15134   need_lib_prefix=no
15135   need_version=no
15136   hardcode_into_libs=yes
15137   if test "$host_cpu" = ia64; then
15138     # AIX 5 supports IA64
15139     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15140     shlibpath_var=LD_LIBRARY_PATH
15141   else
15142     # With GCC up to 2.95.x, collect2 would create an import file
15143     # for dependence libraries.  The import file would start with
15144     # the line `#! .'.  This would cause the generated library to
15145     # depend on `.', always an invalid library.  This was fixed in
15146     # development snapshots of GCC prior to 3.0.
15147     case $host_os in
15148       aix4 | aix4.[01] | aix4.[01].*)
15149       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15150            echo ' yes '
15151            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15152         :
15153       else
15154         can_build_shared=no
15155       fi
15156       ;;
15157     esac
15158     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15159     # soname into executable. Probably we can add versioning support to
15160     # collect2, so additional links can be useful in future.
15161     if test "$aix_use_runtimelinking" = yes; then
15162       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15163       # instead of lib<name>.a to let people know that these are not
15164       # typical AIX shared libraries.
15165       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15166     else
15167       # We preserve .a as extension for shared libraries through AIX4.2
15168       # and later when we are not doing run time linking.
15169       library_names_spec='${libname}${release}.a $libname.a'
15170       soname_spec='${libname}${release}${shared_ext}$major'
15171     fi
15172     shlibpath_var=LIBPATH
15173   fi
15174   ;;
15175
15176 amigaos*)
15177   library_names_spec='$libname.ixlibrary $libname.a'
15178   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15179   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'
15180   ;;
15181
15182 beos*)
15183   library_names_spec='${libname}${shared_ext}'
15184   dynamic_linker="$host_os ld.so"
15185   shlibpath_var=LIBRARY_PATH
15186   ;;
15187
15188 bsdi[45]*)
15189   version_type=linux
15190   need_version=no
15191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192   soname_spec='${libname}${release}${shared_ext}$major'
15193   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15194   shlibpath_var=LD_LIBRARY_PATH
15195   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15196   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15197   # the default ld.so.conf also contains /usr/contrib/lib and
15198   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15199   # libtool to hard-code these into programs
15200   ;;
15201
15202 cygwin* | mingw* | pw32*)
15203   version_type=windows
15204   shrext_cmds=".dll"
15205   need_version=no
15206   need_lib_prefix=no
15207
15208   case $GCC,$host_os in
15209   yes,cygwin* | yes,mingw* | yes,pw32*)
15210     library_names_spec='$libname.dll.a'
15211     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15212     postinstall_cmds='base_file=`basename \${file}`~
15213       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15214       dldir=$destdir/`dirname \$dlpath`~
15215       test -d \$dldir || mkdir -p \$dldir~
15216       $install_prog $dir/$dlname \$dldir/$dlname'
15217     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15218       dlpath=$dir/\$dldll~
15219        $rm \$dlpath'
15220     shlibpath_overrides_runpath=yes
15221
15222     case $host_os in
15223     cygwin*)
15224       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15225       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15226       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15227       ;;
15228     mingw*)
15229       # MinGW DLLs use traditional 'lib' prefix
15230       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15231       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15232       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15233         # It is most probably a Windows format PATH printed by
15234         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15235         # path with ; separators, and with drive letters. We can handle the
15236         # drive letters (cygwin fileutils understands them), so leave them,
15237         # especially as we might pass files found there to a mingw objdump,
15238         # which wouldn't understand a cygwinified path. Ahh.
15239         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15240       else
15241         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15242       fi
15243       ;;
15244     pw32*)
15245       # pw32 DLLs use 'pw' prefix rather than 'lib'
15246       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15247       ;;
15248     esac
15249     ;;
15250
15251   *)
15252     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15253     ;;
15254   esac
15255   dynamic_linker='Win32 ld.exe'
15256   # FIXME: first we should search . and the directory the executable is in
15257   shlibpath_var=PATH
15258   ;;
15259
15260 darwin* | rhapsody*)
15261   dynamic_linker="$host_os dyld"
15262   version_type=darwin
15263   need_lib_prefix=no
15264   need_version=no
15265   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15266   soname_spec='${libname}${release}${major}$shared_ext'
15267   shlibpath_overrides_runpath=yes
15268   shlibpath_var=DYLD_LIBRARY_PATH
15269   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15270   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15271   if test "$GCC" = yes; then
15272     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"`
15273   else
15274     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15275   fi
15276   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15277   ;;
15278
15279 dgux*)
15280   version_type=linux
15281   need_lib_prefix=no
15282   need_version=no
15283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15284   soname_spec='${libname}${release}${shared_ext}$major'
15285   shlibpath_var=LD_LIBRARY_PATH
15286   ;;
15287
15288 freebsd1*)
15289   dynamic_linker=no
15290   ;;
15291
15292 kfreebsd*-gnu)
15293   version_type=linux
15294   need_lib_prefix=no
15295   need_version=no
15296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15297   soname_spec='${libname}${release}${shared_ext}$major'
15298   shlibpath_var=LD_LIBRARY_PATH
15299   shlibpath_overrides_runpath=no
15300   hardcode_into_libs=yes
15301   dynamic_linker='GNU ld.so'
15302   ;;
15303
15304 freebsd*)
15305   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15306   version_type=freebsd-$objformat
15307   case $version_type in
15308     freebsd-elf*)
15309       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15310       need_version=no
15311       need_lib_prefix=no
15312       ;;
15313     freebsd-*)
15314       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15315       need_version=yes
15316       ;;
15317   esac
15318   shlibpath_var=LD_LIBRARY_PATH
15319   case $host_os in
15320   freebsd2*)
15321     shlibpath_overrides_runpath=yes
15322     ;;
15323   freebsd3.01* | freebsdelf3.01*)
15324     shlibpath_overrides_runpath=yes
15325     hardcode_into_libs=yes
15326     ;;
15327   *) # from 3.2 on
15328     shlibpath_overrides_runpath=no
15329     hardcode_into_libs=yes
15330     ;;
15331   esac
15332   ;;
15333
15334 gnu*)
15335   version_type=linux
15336   need_lib_prefix=no
15337   need_version=no
15338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15339   soname_spec='${libname}${release}${shared_ext}$major'
15340   shlibpath_var=LD_LIBRARY_PATH
15341   hardcode_into_libs=yes
15342   ;;
15343
15344 hpux9* | hpux10* | hpux11*)
15345   # Give a soname corresponding to the major version so that dld.sl refuses to
15346   # link against other versions.
15347   version_type=sunos
15348   need_lib_prefix=no
15349   need_version=no
15350   case "$host_cpu" in
15351   ia64*)
15352     shrext_cmds='.so'
15353     hardcode_into_libs=yes
15354     dynamic_linker="$host_os dld.so"
15355     shlibpath_var=LD_LIBRARY_PATH
15356     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358     soname_spec='${libname}${release}${shared_ext}$major'
15359     if test "X$HPUX_IA64_MODE" = X32; then
15360       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15361     else
15362       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15363     fi
15364     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15365     ;;
15366    hppa*64*)
15367      shrext_cmds='.sl'
15368      hardcode_into_libs=yes
15369      dynamic_linker="$host_os dld.sl"
15370      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15371      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15372      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373      soname_spec='${libname}${release}${shared_ext}$major'
15374      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15375      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15376      ;;
15377    *)
15378     shrext_cmds='.sl'
15379     dynamic_linker="$host_os dld.sl"
15380     shlibpath_var=SHLIB_PATH
15381     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383     soname_spec='${libname}${release}${shared_ext}$major'
15384     ;;
15385   esac
15386   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15387   postinstall_cmds='chmod 555 $lib'
15388   ;;
15389
15390 irix5* | irix6* | nonstopux*)
15391   case $host_os in
15392     nonstopux*) version_type=nonstopux ;;
15393     *)
15394         if test "$lt_cv_prog_gnu_ld" = yes; then
15395                 version_type=linux
15396         else
15397                 version_type=irix
15398         fi ;;
15399   esac
15400   need_lib_prefix=no
15401   need_version=no
15402   soname_spec='${libname}${release}${shared_ext}$major'
15403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15404   case $host_os in
15405   irix5* | nonstopux*)
15406     libsuff= shlibsuff=
15407     ;;
15408   *)
15409     case $LD in # libtool.m4 will add one of these switches to LD
15410     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15411       libsuff= shlibsuff= libmagic=32-bit;;
15412     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15413       libsuff=32 shlibsuff=N32 libmagic=N32;;
15414     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15415       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15416     *) libsuff= shlibsuff= libmagic=never-match;;
15417     esac
15418     ;;
15419   esac
15420   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15421   shlibpath_overrides_runpath=no
15422   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15423   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15424   hardcode_into_libs=yes
15425   ;;
15426
15427 # No shared lib support for Linux oldld, aout, or coff.
15428 linux*oldld* | linux*aout* | linux*coff*)
15429   dynamic_linker=no
15430   ;;
15431
15432 # This must be Linux ELF.
15433 linux*)
15434   version_type=linux
15435   need_lib_prefix=no
15436   need_version=no
15437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438   soname_spec='${libname}${release}${shared_ext}$major'
15439   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15440   shlibpath_var=LD_LIBRARY_PATH
15441   shlibpath_overrides_runpath=no
15442   # This implies no fast_install, which is unacceptable.
15443   # Some rework will be needed to allow for fast_install
15444   # before this can be enabled.
15445   hardcode_into_libs=yes
15446
15447   # Append ld.so.conf contents to the search path
15448   if test -f /etc/ld.so.conf; then
15449     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15450     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15451   fi
15452
15453   # We used to test for /lib/ld.so.1 and disable shared libraries on
15454   # powerpc, because MkLinux only supported shared libraries with the
15455   # GNU dynamic linker.  Since this was broken with cross compilers,
15456   # most powerpc-linux boxes support dynamic linking these days and
15457   # people can always --disable-shared, the test was removed, and we
15458   # assume the GNU/Linux dynamic linker is in use.
15459   dynamic_linker='GNU/Linux ld.so'
15460   ;;
15461
15462 knetbsd*-gnu)
15463   version_type=linux
15464   need_lib_prefix=no
15465   need_version=no
15466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15467   soname_spec='${libname}${release}${shared_ext}$major'
15468   shlibpath_var=LD_LIBRARY_PATH
15469   shlibpath_overrides_runpath=no
15470   hardcode_into_libs=yes
15471   dynamic_linker='GNU ld.so'
15472   ;;
15473
15474 netbsd*)
15475   version_type=sunos
15476   need_lib_prefix=no
15477   need_version=no
15478   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15479     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15480     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15481     dynamic_linker='NetBSD (a.out) ld.so'
15482   else
15483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15484     soname_spec='${libname}${release}${shared_ext}$major'
15485     dynamic_linker='NetBSD ld.elf_so'
15486   fi
15487   shlibpath_var=LD_LIBRARY_PATH
15488   shlibpath_overrides_runpath=yes
15489   hardcode_into_libs=yes
15490   ;;
15491
15492 newsos6)
15493   version_type=linux
15494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495   shlibpath_var=LD_LIBRARY_PATH
15496   shlibpath_overrides_runpath=yes
15497   ;;
15498
15499 nto-qnx*)
15500   version_type=linux
15501   need_lib_prefix=no
15502   need_version=no
15503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504   soname_spec='${libname}${release}${shared_ext}$major'
15505   shlibpath_var=LD_LIBRARY_PATH
15506   shlibpath_overrides_runpath=yes
15507   ;;
15508
15509 openbsd*)
15510   version_type=sunos
15511   need_lib_prefix=no
15512   need_version=no
15513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15514   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15515   shlibpath_var=LD_LIBRARY_PATH
15516   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15517     case $host_os in
15518       openbsd2.[89] | openbsd2.[89].*)
15519         shlibpath_overrides_runpath=no
15520         ;;
15521       *)
15522         shlibpath_overrides_runpath=yes
15523         ;;
15524       esac
15525   else
15526     shlibpath_overrides_runpath=yes
15527   fi
15528   ;;
15529
15530 os2*)
15531   libname_spec='$name'
15532   shrext_cmds=".dll"
15533   need_lib_prefix=no
15534   library_names_spec='$libname${shared_ext} $libname.a'
15535   dynamic_linker='OS/2 ld.exe'
15536   shlibpath_var=LIBPATH
15537   ;;
15538
15539 osf3* | osf4* | osf5*)
15540   version_type=osf
15541   need_lib_prefix=no
15542   need_version=no
15543   soname_spec='${libname}${release}${shared_ext}$major'
15544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15545   shlibpath_var=LD_LIBRARY_PATH
15546   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15547   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15548   ;;
15549
15550 sco3.2v5*)
15551   version_type=osf
15552   soname_spec='${libname}${release}${shared_ext}$major'
15553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15554   shlibpath_var=LD_LIBRARY_PATH
15555   ;;
15556
15557 solaris*)
15558   version_type=linux
15559   need_lib_prefix=no
15560   need_version=no
15561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15562   soname_spec='${libname}${release}${shared_ext}$major'
15563   shlibpath_var=LD_LIBRARY_PATH
15564   shlibpath_overrides_runpath=yes
15565   hardcode_into_libs=yes
15566   # ldd complains unless libraries are executable
15567   postinstall_cmds='chmod +x $lib'
15568   ;;
15569
15570 sunos4*)
15571   version_type=sunos
15572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15573   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15574   shlibpath_var=LD_LIBRARY_PATH
15575   shlibpath_overrides_runpath=yes
15576   if test "$with_gnu_ld" = yes; then
15577     need_lib_prefix=no
15578   fi
15579   need_version=yes
15580   ;;
15581
15582 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15583   version_type=linux
15584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585   soname_spec='${libname}${release}${shared_ext}$major'
15586   shlibpath_var=LD_LIBRARY_PATH
15587   case $host_vendor in
15588     sni)
15589       shlibpath_overrides_runpath=no
15590       need_lib_prefix=no
15591       export_dynamic_flag_spec='${wl}-Blargedynsym'
15592       runpath_var=LD_RUN_PATH
15593       ;;
15594     siemens)
15595       need_lib_prefix=no
15596       ;;
15597     motorola)
15598       need_lib_prefix=no
15599       need_version=no
15600       shlibpath_overrides_runpath=no
15601       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15602       ;;
15603   esac
15604   ;;
15605
15606 sysv4*MP*)
15607   if test -d /usr/nec ;then
15608     version_type=linux
15609     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15610     soname_spec='$libname${shared_ext}.$major'
15611     shlibpath_var=LD_LIBRARY_PATH
15612   fi
15613   ;;
15614
15615 uts4*)
15616   version_type=linux
15617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618   soname_spec='${libname}${release}${shared_ext}$major'
15619   shlibpath_var=LD_LIBRARY_PATH
15620   ;;
15621
15622 *)
15623   dynamic_linker=no
15624   ;;
15625 esac
15626 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15627 echo "${ECHO_T}$dynamic_linker" >&6
15628 test "$dynamic_linker" = no && can_build_shared=no
15629
15630 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15631 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15632 hardcode_action_F77=
15633 if test -n "$hardcode_libdir_flag_spec_F77" || \
15634    test -n "$runpath_var_F77" || \
15635    test "X$hardcode_automatic_F77" = "Xyes" ; then
15636
15637   # We can hardcode non-existant directories.
15638   if test "$hardcode_direct_F77" != no &&
15639      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15640      # have to relink, otherwise we might link with an installed library
15641      # when we should be linking with a yet-to-be-installed one
15642      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15643      test "$hardcode_minus_L_F77" != no; then
15644     # Linking always hardcodes the temporary library directory.
15645     hardcode_action_F77=relink
15646   else
15647     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15648     hardcode_action_F77=immediate
15649   fi
15650 else
15651   # We cannot hardcode anything, or else we can only hardcode existing
15652   # directories.
15653   hardcode_action_F77=unsupported
15654 fi
15655 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15656 echo "${ECHO_T}$hardcode_action_F77" >&6
15657
15658 if test "$hardcode_action_F77" = relink; then
15659   # Fast installation is not supported
15660   enable_fast_install=no
15661 elif test "$shlibpath_overrides_runpath" = yes ||
15662      test "$enable_shared" = no; then
15663   # Fast installation is not necessary
15664   enable_fast_install=needless
15665 fi
15666
15667 striplib=
15668 old_striplib=
15669 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15670 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15671 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15672   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15673   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15674   echo "$as_me:$LINENO: result: yes" >&5
15675 echo "${ECHO_T}yes" >&6
15676 else
15677 # FIXME - insert some real tests, host_os isn't really good enough
15678   case $host_os in
15679    darwin*)
15680        if test -n "$STRIP" ; then
15681          striplib="$STRIP -x"
15682          echo "$as_me:$LINENO: result: yes" >&5
15683 echo "${ECHO_T}yes" >&6
15684        else
15685   echo "$as_me:$LINENO: result: no" >&5
15686 echo "${ECHO_T}no" >&6
15687 fi
15688        ;;
15689    *)
15690   echo "$as_me:$LINENO: result: no" >&5
15691 echo "${ECHO_T}no" >&6
15692     ;;
15693   esac
15694 fi
15695
15696
15697
15698 # The else clause should only fire when bootstrapping the
15699 # libtool distribution, otherwise you forgot to ship ltmain.sh
15700 # with your package, and you will get complaints that there are
15701 # no rules to generate ltmain.sh.
15702 if test -f "$ltmain"; then
15703   # See if we are running on zsh, and set the options which allow our commands through
15704   # without removal of \ escapes.
15705   if test -n "${ZSH_VERSION+set}" ; then
15706     setopt NO_GLOB_SUBST
15707   fi
15708   # Now quote all the things that may contain metacharacters while being
15709   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15710   # variables and quote the copies for generation of the libtool script.
15711   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15712     SED SHELL STRIP \
15713     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15714     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15715     deplibs_check_method reload_flag reload_cmds need_locks \
15716     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15717     lt_cv_sys_global_symbol_to_c_name_address \
15718     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15719     old_postinstall_cmds old_postuninstall_cmds \
15720     compiler_F77 \
15721     CC_F77 \
15722     LD_F77 \
15723     lt_prog_compiler_wl_F77 \
15724     lt_prog_compiler_pic_F77 \
15725     lt_prog_compiler_static_F77 \
15726     lt_prog_compiler_no_builtin_flag_F77 \
15727     export_dynamic_flag_spec_F77 \
15728     thread_safe_flag_spec_F77 \
15729     whole_archive_flag_spec_F77 \
15730     enable_shared_with_static_runtimes_F77 \
15731     old_archive_cmds_F77 \
15732     old_archive_from_new_cmds_F77 \
15733     predep_objects_F77 \
15734     postdep_objects_F77 \
15735     predeps_F77 \
15736     postdeps_F77 \
15737     compiler_lib_search_path_F77 \
15738     archive_cmds_F77 \
15739     archive_expsym_cmds_F77 \
15740     postinstall_cmds_F77 \
15741     postuninstall_cmds_F77 \
15742     old_archive_from_expsyms_cmds_F77 \
15743     allow_undefined_flag_F77 \
15744     no_undefined_flag_F77 \
15745     export_symbols_cmds_F77 \
15746     hardcode_libdir_flag_spec_F77 \
15747     hardcode_libdir_flag_spec_ld_F77 \
15748     hardcode_libdir_separator_F77 \
15749     hardcode_automatic_F77 \
15750     module_cmds_F77 \
15751     module_expsym_cmds_F77 \
15752     lt_cv_prog_compiler_c_o_F77 \
15753     exclude_expsyms_F77 \
15754     include_expsyms_F77; do
15755
15756     case $var in
15757     old_archive_cmds_F77 | \
15758     old_archive_from_new_cmds_F77 | \
15759     archive_cmds_F77 | \
15760     archive_expsym_cmds_F77 | \
15761     module_cmds_F77 | \
15762     module_expsym_cmds_F77 | \
15763     old_archive_from_expsyms_cmds_F77 | \
15764     export_symbols_cmds_F77 | \
15765     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15766     postinstall_cmds | postuninstall_cmds | \
15767     old_postinstall_cmds | old_postuninstall_cmds | \
15768     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15769       # Double-quote double-evaled strings.
15770       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15771       ;;
15772     *)
15773       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15774       ;;
15775     esac
15776   done
15777
15778   case $lt_echo in
15779   *'\$0 --fallback-echo"')
15780     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15781     ;;
15782   esac
15783
15784 cfgfile="$ofile"
15785
15786   cat <<__EOF__ >> "$cfgfile"
15787 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15788
15789 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15790
15791 # Shell to use when invoking shell scripts.
15792 SHELL=$lt_SHELL
15793
15794 # Whether or not to build shared libraries.
15795 build_libtool_libs=$enable_shared
15796
15797 # Whether or not to build static libraries.
15798 build_old_libs=$enable_static
15799
15800 # Whether or not to add -lc for building shared libraries.
15801 build_libtool_need_lc=$archive_cmds_need_lc_F77
15802
15803 # Whether or not to disallow shared libs when runtime libs are static
15804 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15805
15806 # Whether or not to optimize for fast installation.
15807 fast_install=$enable_fast_install
15808
15809 # The host system.
15810 host_alias=$host_alias
15811 host=$host
15812
15813 # An echo program that does not interpret backslashes.
15814 echo=$lt_echo
15815
15816 # The archiver.
15817 AR=$lt_AR
15818 AR_FLAGS=$lt_AR_FLAGS
15819
15820 # A C compiler.
15821 LTCC=$lt_LTCC
15822
15823 # A language-specific compiler.
15824 CC=$lt_compiler_F77
15825
15826 # Is the compiler the GNU C compiler?
15827 with_gcc=$GCC_F77
15828
15829 # An ERE matcher.
15830 EGREP=$lt_EGREP
15831
15832 # The linker used to build libraries.
15833 LD=$lt_LD_F77
15834
15835 # Whether we need hard or soft links.
15836 LN_S=$lt_LN_S
15837
15838 # A BSD-compatible nm program.
15839 NM=$lt_NM
15840
15841 # A symbol stripping program
15842 STRIP=$lt_STRIP
15843
15844 # Used to examine libraries when file_magic_cmd begins "file"
15845 MAGIC_CMD=$MAGIC_CMD
15846
15847 # Used on cygwin: DLL creation program.
15848 DLLTOOL="$DLLTOOL"
15849
15850 # Used on cygwin: object dumper.
15851 OBJDUMP="$OBJDUMP"
15852
15853 # Used on cygwin: assembler.
15854 AS="$AS"
15855
15856 # The name of the directory that contains temporary libtool files.
15857 objdir=$objdir
15858
15859 # How to create reloadable object files.
15860 reload_flag=$lt_reload_flag
15861 reload_cmds=$lt_reload_cmds
15862
15863 # How to pass a linker flag through the compiler.
15864 wl=$lt_lt_prog_compiler_wl_F77
15865
15866 # Object file suffix (normally "o").
15867 objext="$ac_objext"
15868
15869 # Old archive suffix (normally "a").
15870 libext="$libext"
15871
15872 # Shared library suffix (normally ".so").
15873 shrext_cmds='$shrext_cmds'
15874
15875 # Executable file suffix (normally "").
15876 exeext="$exeext"
15877
15878 # Additional compiler flags for building library objects.
15879 pic_flag=$lt_lt_prog_compiler_pic_F77
15880 pic_mode=$pic_mode
15881
15882 # What is the maximum length of a command?
15883 max_cmd_len=$lt_cv_sys_max_cmd_len
15884
15885 # Does compiler simultaneously support -c and -o options?
15886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15887
15888 # Must we lock files when doing compilation ?
15889 need_locks=$lt_need_locks
15890
15891 # Do we need the lib prefix for modules?
15892 need_lib_prefix=$need_lib_prefix
15893
15894 # Do we need a version for libraries?
15895 need_version=$need_version
15896
15897 # Whether dlopen is supported.
15898 dlopen_support=$enable_dlopen
15899
15900 # Whether dlopen of programs is supported.
15901 dlopen_self=$enable_dlopen_self
15902
15903 # Whether dlopen of statically linked programs is supported.
15904 dlopen_self_static=$enable_dlopen_self_static
15905
15906 # Compiler flag to prevent dynamic linking.
15907 link_static_flag=$lt_lt_prog_compiler_static_F77
15908
15909 # Compiler flag to turn off builtin functions.
15910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15911
15912 # Compiler flag to allow reflexive dlopens.
15913 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15914
15915 # Compiler flag to generate shared objects directly from archives.
15916 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15917
15918 # Compiler flag to generate thread-safe objects.
15919 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15920
15921 # Library versioning type.
15922 version_type=$version_type
15923
15924 # Format of library name prefix.
15925 libname_spec=$lt_libname_spec
15926
15927 # List of archive names.  First name is the real one, the rest are links.
15928 # The last name is the one that the linker finds with -lNAME.
15929 library_names_spec=$lt_library_names_spec
15930
15931 # The coded name of the library, if different from the real name.
15932 soname_spec=$lt_soname_spec
15933
15934 # Commands used to build and install an old-style archive.
15935 RANLIB=$lt_RANLIB
15936 old_archive_cmds=$lt_old_archive_cmds_F77
15937 old_postinstall_cmds=$lt_old_postinstall_cmds
15938 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15939
15940 # Create an old-style archive from a shared archive.
15941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15942
15943 # Create a temporary old-style archive to link instead of a shared archive.
15944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15945
15946 # Commands used to build and install a shared archive.
15947 archive_cmds=$lt_archive_cmds_F77
15948 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15949 postinstall_cmds=$lt_postinstall_cmds
15950 postuninstall_cmds=$lt_postuninstall_cmds
15951
15952 # Commands used to build a loadable module (assumed same as above if empty)
15953 module_cmds=$lt_module_cmds_F77
15954 module_expsym_cmds=$lt_module_expsym_cmds_F77
15955
15956 # Commands to strip libraries.
15957 old_striplib=$lt_old_striplib
15958 striplib=$lt_striplib
15959
15960 # Dependencies to place before the objects being linked to create a
15961 # shared library.
15962 predep_objects=$lt_predep_objects_F77
15963
15964 # Dependencies to place after the objects being linked to create a
15965 # shared library.
15966 postdep_objects=$lt_postdep_objects_F77
15967
15968 # Dependencies to place before the objects being linked to create a
15969 # shared library.
15970 predeps=$lt_predeps_F77
15971
15972 # Dependencies to place after the objects being linked to create a
15973 # shared library.
15974 postdeps=$lt_postdeps_F77
15975
15976 # The library search path used internally by the compiler when linking
15977 # a shared library.
15978 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15979
15980 # Method to check whether dependent libraries are shared objects.
15981 deplibs_check_method=$lt_deplibs_check_method
15982
15983 # Command to use when deplibs_check_method == file_magic.
15984 file_magic_cmd=$lt_file_magic_cmd
15985
15986 # Flag that allows shared libraries with undefined symbols to be built.
15987 allow_undefined_flag=$lt_allow_undefined_flag_F77
15988
15989 # Flag that forces no undefined symbols.
15990 no_undefined_flag=$lt_no_undefined_flag_F77
15991
15992 # Commands used to finish a libtool library installation in a directory.
15993 finish_cmds=$lt_finish_cmds
15994
15995 # Same as above, but a single script fragment to be evaled but not shown.
15996 finish_eval=$lt_finish_eval
15997
15998 # Take the output of nm and produce a listing of raw symbols and C names.
15999 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16000
16001 # Transform the output of nm in a proper C declaration
16002 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16003
16004 # Transform the output of nm in a C name address pair
16005 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16006
16007 # This is the shared library runtime path variable.
16008 runpath_var=$runpath_var
16009
16010 # This is the shared library path variable.
16011 shlibpath_var=$shlibpath_var
16012
16013 # Is shlibpath searched before the hard-coded library search path?
16014 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16015
16016 # How to hardcode a shared library path into an executable.
16017 hardcode_action=$hardcode_action_F77
16018
16019 # Whether we should hardcode library paths into libraries.
16020 hardcode_into_libs=$hardcode_into_libs
16021
16022 # Flag to hardcode \$libdir into a binary during linking.
16023 # This must work even if \$libdir does not exist.
16024 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16025
16026 # If ld is used when linking, flag to hardcode \$libdir into
16027 # a binary during linking. This must work even if \$libdir does
16028 # not exist.
16029 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16030
16031 # Whether we need a single -rpath flag with a separated argument.
16032 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16033
16034 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16035 # resulting binary.
16036 hardcode_direct=$hardcode_direct_F77
16037
16038 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16039 # resulting binary.
16040 hardcode_minus_L=$hardcode_minus_L_F77
16041
16042 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16043 # the resulting binary.
16044 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16045
16046 # Set to yes if building a shared library automatically hardcodes DIR into the library
16047 # and all subsequent libraries and executables linked against it.
16048 hardcode_automatic=$hardcode_automatic_F77
16049
16050 # Variables whose values should be saved in libtool wrapper scripts and
16051 # restored at relink time.
16052 variables_saved_for_relink="$variables_saved_for_relink"
16053
16054 # Whether libtool must link a program against all its dependency libraries.
16055 link_all_deplibs=$link_all_deplibs_F77
16056
16057 # Compile-time system search path for libraries
16058 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16059
16060 # Run-time system search path for libraries
16061 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16062
16063 # Fix the shell variable \$srcfile for the compiler.
16064 fix_srcfile_path="$fix_srcfile_path_F77"
16065
16066 # Set to yes if exported symbols are required.
16067 always_export_symbols=$always_export_symbols_F77
16068
16069 # The commands to list exported symbols.
16070 export_symbols_cmds=$lt_export_symbols_cmds_F77
16071
16072 # The commands to extract the exported symbol list from a shared archive.
16073 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16074
16075 # Symbols that should not be listed in the preloaded symbols.
16076 exclude_expsyms=$lt_exclude_expsyms_F77
16077
16078 # Symbols that must always be exported.
16079 include_expsyms=$lt_include_expsyms_F77
16080
16081 # ### END LIBTOOL TAG CONFIG: $tagname
16082
16083 __EOF__
16084
16085
16086 else
16087   # If there is no Makefile yet, we rely on a make rule to execute
16088   # `config.status --recheck' to rerun these tests and create the
16089   # libtool script then.
16090   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16091   if test -f "$ltmain_in"; then
16092     test -f Makefile && make "$ltmain"
16093   fi
16094 fi
16095
16096
16097 ac_ext=c
16098 ac_cpp='$CPP $CPPFLAGS'
16099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16102
16103 CC="$lt_save_CC"
16104
16105         else
16106           tagname=""
16107         fi
16108         ;;
16109
16110       GCJ)
16111         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16112           ac_ext=c
16113 ac_cpp='$CPP $CPPFLAGS'
16114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16117
16118
16119 # Source file extension for Java test sources.
16120 ac_ext=java
16121
16122 # Object file extension for compiled Java test sources.
16123 objext=o
16124 objext_GCJ=$objext
16125
16126 # Code to be used in simple compile tests
16127 lt_simple_compile_test_code="class foo {}\n"
16128
16129 # Code to be used in simple link tests
16130 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16131
16132 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16133
16134 # If no C compiler was specified, use CC.
16135 LTCC=${LTCC-"$CC"}
16136
16137 # Allow CC to be a program name with arguments.
16138 compiler=$CC
16139
16140
16141 # Allow CC to be a program name with arguments.
16142 lt_save_CC="$CC"
16143 CC=${GCJ-"gcj"}
16144 compiler=$CC
16145 compiler_GCJ=$CC
16146
16147 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16148 archive_cmds_need_lc_GCJ=no
16149
16150
16151 lt_prog_compiler_no_builtin_flag_GCJ=
16152
16153 if test "$GCC" = yes; then
16154   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16155
16156
16157 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16158 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16159 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16160   echo $ECHO_N "(cached) $ECHO_C" >&6
16161 else
16162   lt_cv_prog_compiler_rtti_exceptions=no
16163   ac_outfile=conftest.$ac_objext
16164    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16165    lt_compiler_flag="-fno-rtti -fno-exceptions"
16166    # Insert the option either (1) after the last *FLAGS variable, or
16167    # (2) before a word containing "conftest.", or (3) at the end.
16168    # Note that $ac_compile itself does not contain backslashes and begins
16169    # with a dollar sign (not a hyphen), so the echo should work correctly.
16170    # The option is referenced via a variable to avoid confusing sed.
16171    lt_compile=`echo "$ac_compile" | $SED \
16172    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16174    -e 's:$: $lt_compiler_flag:'`
16175    (eval echo "\"\$as_me:16175: $lt_compile\"" >&5)
16176    (eval "$lt_compile" 2>conftest.err)
16177    ac_status=$?
16178    cat conftest.err >&5
16179    echo "$as_me:16179: \$? = $ac_status" >&5
16180    if (exit $ac_status) && test -s "$ac_outfile"; then
16181      # The compiler can only warn and ignore the option if not recognized
16182      # So say no if there are warnings
16183      if test ! -s conftest.err; then
16184        lt_cv_prog_compiler_rtti_exceptions=yes
16185      fi
16186    fi
16187    $rm conftest*
16188
16189 fi
16190 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16191 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16192
16193 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16194     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16195 else
16196     :
16197 fi
16198
16199 fi
16200
16201 lt_prog_compiler_wl_GCJ=
16202 lt_prog_compiler_pic_GCJ=
16203 lt_prog_compiler_static_GCJ=
16204
16205 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16206 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16207
16208   if test "$GCC" = yes; then
16209     lt_prog_compiler_wl_GCJ='-Wl,'
16210     lt_prog_compiler_static_GCJ='-static'
16211
16212     case $host_os in
16213       aix*)
16214       # All AIX code is PIC.
16215       if test "$host_cpu" = ia64; then
16216         # AIX 5 now supports IA64 processor
16217         lt_prog_compiler_static_GCJ='-Bstatic'
16218       fi
16219       ;;
16220
16221     amigaos*)
16222       # FIXME: we need at least 68020 code to build shared libraries, but
16223       # adding the `-m68020' flag to GCC prevents building anything better,
16224       # like `-m68040'.
16225       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16226       ;;
16227
16228     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16229       # PIC is the default for these OSes.
16230       ;;
16231
16232     mingw* | pw32* | os2*)
16233       # This hack is so that the source file can tell whether it is being
16234       # built for inclusion in a dll (and should export symbols for example).
16235       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16236       ;;
16237
16238     darwin* | rhapsody*)
16239       # PIC is the default on this platform
16240       # Common symbols not allowed in MH_DYLIB files
16241       lt_prog_compiler_pic_GCJ='-fno-common'
16242       ;;
16243
16244     msdosdjgpp*)
16245       # Just because we use GCC doesn't mean we suddenly get shared libraries
16246       # on systems that don't support them.
16247       lt_prog_compiler_can_build_shared_GCJ=no
16248       enable_shared=no
16249       ;;
16250
16251     sysv4*MP*)
16252       if test -d /usr/nec; then
16253         lt_prog_compiler_pic_GCJ=-Kconform_pic
16254       fi
16255       ;;
16256
16257     hpux*)
16258       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16259       # not for PA HP-UX.
16260       case "$host_cpu" in
16261       hppa*64*|ia64*)
16262         # +Z the default
16263         ;;
16264       *)
16265         lt_prog_compiler_pic_GCJ='-fPIC'
16266         ;;
16267       esac
16268       ;;
16269
16270     *)
16271       lt_prog_compiler_pic_GCJ='-fPIC'
16272       ;;
16273     esac
16274   else
16275     # PORTME Check for flag to pass linker flags through the system compiler.
16276     case $host_os in
16277     aix*)
16278       lt_prog_compiler_wl_GCJ='-Wl,'
16279       if test "$host_cpu" = ia64; then
16280         # AIX 5 now supports IA64 processor
16281         lt_prog_compiler_static_GCJ='-Bstatic'
16282       else
16283         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16284       fi
16285       ;;
16286       darwin*)
16287         # PIC is the default on this platform
16288         # Common symbols not allowed in MH_DYLIB files
16289        case "$cc_basename" in
16290          xlc*)
16291          lt_prog_compiler_pic_GCJ='-qnocommon'
16292          lt_prog_compiler_wl_GCJ='-Wl,'
16293          ;;
16294        esac
16295        ;;
16296
16297     mingw* | pw32* | os2*)
16298       # This hack is so that the source file can tell whether it is being
16299       # built for inclusion in a dll (and should export symbols for example).
16300       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16301       ;;
16302
16303     hpux9* | hpux10* | hpux11*)
16304       lt_prog_compiler_wl_GCJ='-Wl,'
16305       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16306       # not for PA HP-UX.
16307       case "$host_cpu" in
16308       hppa*64*|ia64*)
16309         # +Z the default
16310         ;;
16311       *)
16312         lt_prog_compiler_pic_GCJ='+Z'
16313         ;;
16314       esac
16315       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16316       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16317       ;;
16318
16319     irix5* | irix6* | nonstopux*)
16320       lt_prog_compiler_wl_GCJ='-Wl,'
16321       # PIC (with -KPIC) is the default.
16322       lt_prog_compiler_static_GCJ='-non_shared'
16323       ;;
16324
16325     newsos6)
16326       lt_prog_compiler_pic_GCJ='-KPIC'
16327       lt_prog_compiler_static_GCJ='-Bstatic'
16328       ;;
16329
16330     linux*)
16331       case $CC in
16332       icc* | ecc*)
16333         lt_prog_compiler_wl_GCJ='-Wl,'
16334         lt_prog_compiler_pic_GCJ='-KPIC'
16335         lt_prog_compiler_static_GCJ='-static'
16336         ;;
16337       ccc*)
16338         lt_prog_compiler_wl_GCJ='-Wl,'
16339         # All Alpha code is PIC.
16340         lt_prog_compiler_static_GCJ='-non_shared'
16341         ;;
16342       esac
16343       ;;
16344
16345     osf3* | osf4* | osf5*)
16346       lt_prog_compiler_wl_GCJ='-Wl,'
16347       # All OSF/1 code is PIC.
16348       lt_prog_compiler_static_GCJ='-non_shared'
16349       ;;
16350
16351     sco3.2v5*)
16352       lt_prog_compiler_pic_GCJ='-Kpic'
16353       lt_prog_compiler_static_GCJ='-dn'
16354       ;;
16355
16356     solaris*)
16357       lt_prog_compiler_wl_GCJ='-Wl,'
16358       lt_prog_compiler_pic_GCJ='-KPIC'
16359       lt_prog_compiler_static_GCJ='-Bstatic'
16360       ;;
16361
16362     sunos4*)
16363       lt_prog_compiler_wl_GCJ='-Qoption ld '
16364       lt_prog_compiler_pic_GCJ='-PIC'
16365       lt_prog_compiler_static_GCJ='-Bstatic'
16366       ;;
16367
16368     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16369       lt_prog_compiler_wl_GCJ='-Wl,'
16370       lt_prog_compiler_pic_GCJ='-KPIC'
16371       lt_prog_compiler_static_GCJ='-Bstatic'
16372       ;;
16373
16374     sysv4*MP*)
16375       if test -d /usr/nec ;then
16376         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16377         lt_prog_compiler_static_GCJ='-Bstatic'
16378       fi
16379       ;;
16380
16381     uts4*)
16382       lt_prog_compiler_pic_GCJ='-pic'
16383       lt_prog_compiler_static_GCJ='-Bstatic'
16384       ;;
16385
16386     *)
16387       lt_prog_compiler_can_build_shared_GCJ=no
16388       ;;
16389     esac
16390   fi
16391
16392 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16393 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16394
16395 #
16396 # Check to make sure the PIC flag actually works.
16397 #
16398 if test -n "$lt_prog_compiler_pic_GCJ"; then
16399
16400 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16401 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16402 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16403   echo $ECHO_N "(cached) $ECHO_C" >&6
16404 else
16405   lt_prog_compiler_pic_works_GCJ=no
16406   ac_outfile=conftest.$ac_objext
16407    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16408    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16409    # Insert the option either (1) after the last *FLAGS variable, or
16410    # (2) before a word containing "conftest.", or (3) at the end.
16411    # Note that $ac_compile itself does not contain backslashes and begins
16412    # with a dollar sign (not a hyphen), so the echo should work correctly.
16413    # The option is referenced via a variable to avoid confusing sed.
16414    lt_compile=`echo "$ac_compile" | $SED \
16415    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16416    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16417    -e 's:$: $lt_compiler_flag:'`
16418    (eval echo "\"\$as_me:16418: $lt_compile\"" >&5)
16419    (eval "$lt_compile" 2>conftest.err)
16420    ac_status=$?
16421    cat conftest.err >&5
16422    echo "$as_me:16422: \$? = $ac_status" >&5
16423    if (exit $ac_status) && test -s "$ac_outfile"; then
16424      # The compiler can only warn and ignore the option if not recognized
16425      # So say no if there are warnings
16426      if test ! -s conftest.err; then
16427        lt_prog_compiler_pic_works_GCJ=yes
16428      fi
16429    fi
16430    $rm conftest*
16431
16432 fi
16433 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16434 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16435
16436 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16437     case $lt_prog_compiler_pic_GCJ in
16438      "" | " "*) ;;
16439      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16440      esac
16441 else
16442     lt_prog_compiler_pic_GCJ=
16443      lt_prog_compiler_can_build_shared_GCJ=no
16444 fi
16445
16446 fi
16447 case "$host_os" in
16448   # For platforms which do not support PIC, -DPIC is meaningless:
16449   *djgpp*)
16450     lt_prog_compiler_pic_GCJ=
16451     ;;
16452   *)
16453     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16454     ;;
16455 esac
16456
16457 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16458 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16459 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16460   echo $ECHO_N "(cached) $ECHO_C" >&6
16461 else
16462   lt_cv_prog_compiler_c_o_GCJ=no
16463    $rm -r conftest 2>/dev/null
16464    mkdir conftest
16465    cd conftest
16466    mkdir out
16467    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16468
16469    lt_compiler_flag="-o out/conftest2.$ac_objext"
16470    # Insert the option either (1) after the last *FLAGS variable, or
16471    # (2) before a word containing "conftest.", or (3) at the end.
16472    # Note that $ac_compile itself does not contain backslashes and begins
16473    # with a dollar sign (not a hyphen), so the echo should work correctly.
16474    lt_compile=`echo "$ac_compile" | $SED \
16475    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16476    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16477    -e 's:$: $lt_compiler_flag:'`
16478    (eval echo "\"\$as_me:16478: $lt_compile\"" >&5)
16479    (eval "$lt_compile" 2>out/conftest.err)
16480    ac_status=$?
16481    cat out/conftest.err >&5
16482    echo "$as_me:16482: \$? = $ac_status" >&5
16483    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16484    then
16485      # The compiler can only warn and ignore the option if not recognized
16486      # So say no if there are warnings
16487      if test ! -s out/conftest.err; then
16488        lt_cv_prog_compiler_c_o_GCJ=yes
16489      fi
16490    fi
16491    chmod u+w .
16492    $rm conftest*
16493    # SGI C++ compiler will create directory out/ii_files/ for
16494    # template instantiation
16495    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16496    $rm out/* && rmdir out
16497    cd ..
16498    rmdir conftest
16499    $rm conftest*
16500
16501 fi
16502 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16503 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16504
16505
16506 hard_links="nottested"
16507 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16508   # do not overwrite the value of need_locks provided by the user
16509   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16510 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16511   hard_links=yes
16512   $rm conftest*
16513   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16514   touch conftest.a
16515   ln conftest.a conftest.b 2>&5 || hard_links=no
16516   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16517   echo "$as_me:$LINENO: result: $hard_links" >&5
16518 echo "${ECHO_T}$hard_links" >&6
16519   if test "$hard_links" = no; then
16520     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16521 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16522     need_locks=warn
16523   fi
16524 else
16525   need_locks=no
16526 fi
16527
16528 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16529 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16530
16531   runpath_var=
16532   allow_undefined_flag_GCJ=
16533   enable_shared_with_static_runtimes_GCJ=no
16534   archive_cmds_GCJ=
16535   archive_expsym_cmds_GCJ=
16536   old_archive_From_new_cmds_GCJ=
16537   old_archive_from_expsyms_cmds_GCJ=
16538   export_dynamic_flag_spec_GCJ=
16539   whole_archive_flag_spec_GCJ=
16540   thread_safe_flag_spec_GCJ=
16541   hardcode_libdir_flag_spec_GCJ=
16542   hardcode_libdir_flag_spec_ld_GCJ=
16543   hardcode_libdir_separator_GCJ=
16544   hardcode_direct_GCJ=no
16545   hardcode_minus_L_GCJ=no
16546   hardcode_shlibpath_var_GCJ=unsupported
16547   link_all_deplibs_GCJ=unknown
16548   hardcode_automatic_GCJ=no
16549   module_cmds_GCJ=
16550   module_expsym_cmds_GCJ=
16551   always_export_symbols_GCJ=no
16552   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16553   # include_expsyms should be a list of space-separated symbols to be *always*
16554   # included in the symbol list
16555   include_expsyms_GCJ=
16556   # exclude_expsyms can be an extended regexp of symbols to exclude
16557   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16558   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16559   # as well as any symbol that contains `d'.
16560   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16561   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16562   # platforms (ab)use it in PIC code, but their linkers get confused if
16563   # the symbol is explicitly referenced.  Since portable code cannot
16564   # rely on this symbol name, it's probably fine to never include it in
16565   # preloaded symbol tables.
16566   extract_expsyms_cmds=
16567
16568   case $host_os in
16569   cygwin* | mingw* | pw32*)
16570     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16571     # When not using gcc, we currently assume that we are using
16572     # Microsoft Visual C++.
16573     if test "$GCC" != yes; then
16574       with_gnu_ld=no
16575     fi
16576     ;;
16577   openbsd*)
16578     with_gnu_ld=no
16579     ;;
16580   esac
16581
16582   ld_shlibs_GCJ=yes
16583   if test "$with_gnu_ld" = yes; then
16584     # If archive_cmds runs LD, not CC, wlarc should be empty
16585     wlarc='${wl}'
16586
16587     # See if GNU ld supports shared libraries.
16588     case $host_os in
16589     aix3* | aix4* | aix5*)
16590       # On AIX/PPC, the GNU linker is very broken
16591       if test "$host_cpu" != ia64; then
16592         ld_shlibs_GCJ=no
16593         cat <<EOF 1>&2
16594
16595 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16596 *** to be unable to reliably create shared libraries on AIX.
16597 *** Therefore, libtool is disabling shared libraries support.  If you
16598 *** really care for shared libraries, you may want to modify your PATH
16599 *** so that a non-GNU linker is found, and then restart.
16600
16601 EOF
16602       fi
16603       ;;
16604
16605     amigaos*)
16606       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)'
16607       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16608       hardcode_minus_L_GCJ=yes
16609
16610       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16611       # that the semantics of dynamic libraries on AmigaOS, at least up
16612       # to version 4, is to share data among multiple programs linked
16613       # with the same dynamic library.  Since this doesn't match the
16614       # behavior of shared libraries on other platforms, we can't use
16615       # them.
16616       ld_shlibs_GCJ=no
16617       ;;
16618
16619     beos*)
16620       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16621         allow_undefined_flag_GCJ=unsupported
16622         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16623         # support --undefined.  This deserves some investigation.  FIXME
16624         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16625       else
16626         ld_shlibs_GCJ=no
16627       fi
16628       ;;
16629
16630     cygwin* | mingw* | pw32*)
16631       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16632       # as there is no search path for DLLs.
16633       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16634       allow_undefined_flag_GCJ=unsupported
16635       always_export_symbols_GCJ=no
16636       enable_shared_with_static_runtimes_GCJ=yes
16637       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16638
16639       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16640         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16641         # If the export-symbols file already is a .def file (1st line
16642         # is EXPORTS), use it as is; otherwise, prepend...
16643         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16644           cp $export_symbols $output_objdir/$soname.def;
16645         else
16646           echo EXPORTS > $output_objdir/$soname.def;
16647           cat $export_symbols >> $output_objdir/$soname.def;
16648         fi~
16649         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16650       else
16651         ld_shlibs=no
16652       fi
16653       ;;
16654
16655     netbsd*)
16656       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16657         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16658         wlarc=
16659       else
16660         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16661         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16662       fi
16663       ;;
16664
16665     solaris* | sysv5*)
16666       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16667         ld_shlibs_GCJ=no
16668         cat <<EOF 1>&2
16669
16670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16671 *** create shared libraries on Solaris systems.  Therefore, libtool
16672 *** is disabling shared libraries support.  We urge you to upgrade GNU
16673 *** binutils to release 2.9.1 or newer.  Another option is to modify
16674 *** your PATH or compiler configuration so that the native linker is
16675 *** used, and then restart.
16676
16677 EOF
16678       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16679         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16680         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16681       else
16682         ld_shlibs_GCJ=no
16683       fi
16684       ;;
16685
16686     sunos4*)
16687       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16688       wlarc=
16689       hardcode_direct_GCJ=yes
16690       hardcode_shlibpath_var_GCJ=no
16691       ;;
16692
16693   linux*)
16694     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16695         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16696         archive_cmds_GCJ="$tmp_archive_cmds"
16697       supports_anon_versioning=no
16698       case `$LD -v 2>/dev/null` in
16699         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16700         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16701         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16702         *\ 2.11.*) ;; # other 2.11 versions
16703         *) supports_anon_versioning=yes ;;
16704       esac
16705       if test $supports_anon_versioning = yes; then
16706         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16707 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16708 $echo "local: *; };" >> $output_objdir/$libname.ver~
16709         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16710       else
16711         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16712       fi
16713     else
16714       ld_shlibs_GCJ=no
16715     fi
16716     ;;
16717
16718     *)
16719       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16720         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16721         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16722       else
16723         ld_shlibs_GCJ=no
16724       fi
16725       ;;
16726     esac
16727
16728     if test "$ld_shlibs_GCJ" = yes; then
16729       runpath_var=LD_RUN_PATH
16730       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16731       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16732       # ancient GNU ld didn't support --whole-archive et. al.
16733       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16734         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16735       else
16736         whole_archive_flag_spec_GCJ=
16737       fi
16738     fi
16739   else
16740     # PORTME fill in a description of your system's linker (not GNU ld)
16741     case $host_os in
16742     aix3*)
16743       allow_undefined_flag_GCJ=unsupported
16744       always_export_symbols_GCJ=yes
16745       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'
16746       # Note: this linker hardcodes the directories in LIBPATH if there
16747       # are no directories specified by -L.
16748       hardcode_minus_L_GCJ=yes
16749       if test "$GCC" = yes && test -z "$link_static_flag"; then
16750         # Neither direct hardcoding nor static linking is supported with a
16751         # broken collect2.
16752         hardcode_direct_GCJ=unsupported
16753       fi
16754       ;;
16755
16756     aix4* | aix5*)
16757       if test "$host_cpu" = ia64; then
16758         # On IA64, the linker does run time linking by default, so we don't
16759         # have to do anything special.
16760         aix_use_runtimelinking=no
16761         exp_sym_flag='-Bexport'
16762         no_entry_flag=""
16763       else
16764         # If we're using GNU nm, then we don't want the "-C" option.
16765         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16766         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16767           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'
16768         else
16769           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'
16770         fi
16771         aix_use_runtimelinking=no
16772
16773         # Test if we are trying to use run time linking or normal
16774         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16775         # need to do runtime linking.
16776         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16777           for ld_flag in $LDFLAGS; do
16778           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16779             aix_use_runtimelinking=yes
16780             break
16781           fi
16782           done
16783         esac
16784
16785         exp_sym_flag='-bexport'
16786         no_entry_flag='-bnoentry'
16787       fi
16788
16789       # When large executables or shared objects are built, AIX ld can
16790       # have problems creating the table of contents.  If linking a library
16791       # or program results in "error TOC overflow" add -mminimal-toc to
16792       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16793       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16794
16795       archive_cmds_GCJ=''
16796       hardcode_direct_GCJ=yes
16797       hardcode_libdir_separator_GCJ=':'
16798       link_all_deplibs_GCJ=yes
16799
16800       if test "$GCC" = yes; then
16801         case $host_os in aix4.012|aix4.012.*)
16802         # We only want to do this on AIX 4.2 and lower, the check
16803         # below for broken collect2 doesn't work under 4.3+
16804           collect2name=`${CC} -print-prog-name=collect2`
16805           if test -f "$collect2name" && \
16806            strings "$collect2name" | grep resolve_lib_name >/dev/null
16807           then
16808           # We have reworked collect2
16809           hardcode_direct_GCJ=yes
16810           else
16811           # We have old collect2
16812           hardcode_direct_GCJ=unsupported
16813           # It fails to find uninstalled libraries when the uninstalled
16814           # path is not listed in the libpath.  Setting hardcode_minus_L
16815           # to unsupported forces relinking
16816           hardcode_minus_L_GCJ=yes
16817           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16818           hardcode_libdir_separator_GCJ=
16819           fi
16820         esac
16821         shared_flag='-shared'
16822       else
16823         # not using gcc
16824         if test "$host_cpu" = ia64; then
16825         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16826         # chokes on -Wl,-G. The following line is correct:
16827           shared_flag='-G'
16828         else
16829         if test "$aix_use_runtimelinking" = yes; then
16830             shared_flag='${wl}-G'
16831           else
16832             shared_flag='${wl}-bM:SRE'
16833         fi
16834         fi
16835       fi
16836
16837       # It seems that -bexpall does not export symbols beginning with
16838       # underscore (_), so it is better to generate a list of symbols to export.
16839       always_export_symbols_GCJ=yes
16840       if test "$aix_use_runtimelinking" = yes; then
16841         # Warning - without using the other runtime loading flags (-brtl),
16842         # -berok will link without error, but may produce a broken library.
16843         allow_undefined_flag_GCJ='-berok'
16844        # Determine the default libpath from the value encoded in an empty executable.
16845        cat >conftest.$ac_ext <<_ACEOF
16846 /* confdefs.h.  */
16847 _ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h.  */
16851
16852 int
16853 main ()
16854 {
16855
16856   ;
16857   return 0;
16858 }
16859 _ACEOF
16860 rm -f conftest.$ac_objext conftest$ac_exeext
16861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16862   (eval $ac_link) 2>conftest.er1
16863   ac_status=$?
16864   grep -v '^ *+' conftest.er1 >conftest.err
16865   rm -f conftest.er1
16866   cat conftest.err >&5
16867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868   (exit $ac_status); } &&
16869          { ac_try='test -z "$ac_c_werror_flag"
16870                          || test ! -s conftest.err'
16871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872   (eval $ac_try) 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); }; } &&
16876          { ac_try='test -s conftest$ac_exeext'
16877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878   (eval $ac_try) 2>&5
16879   ac_status=$?
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); }; }; then
16882
16883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16884 }'`
16885 # Check for a 64-bit object if we didn't find anything.
16886 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; }
16887 }'`; fi
16888 else
16889   echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16891
16892 fi
16893 rm -f conftest.err conftest.$ac_objext \
16894       conftest$ac_exeext conftest.$ac_ext
16895 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16896
16897        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16898         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"
16899        else
16900         if test "$host_cpu" = ia64; then
16901           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16902           allow_undefined_flag_GCJ="-z nodefs"
16903           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"
16904         else
16905          # Determine the default libpath from the value encoded in an empty executable.
16906          cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h.  */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h.  */
16912
16913 int
16914 main ()
16915 {
16916
16917   ;
16918   return 0;
16919 }
16920 _ACEOF
16921 rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16923   (eval $ac_link) 2>conftest.er1
16924   ac_status=$?
16925   grep -v '^ *+' conftest.er1 >conftest.err
16926   rm -f conftest.er1
16927   cat conftest.err >&5
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); } &&
16930          { ac_try='test -z "$ac_c_werror_flag"
16931                          || test ! -s conftest.err'
16932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933   (eval $ac_try) 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); }; } &&
16937          { ac_try='test -s conftest$ac_exeext'
16938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939   (eval $ac_try) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; }; then
16943
16944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16945 }'`
16946 # Check for a 64-bit object if we didn't find anything.
16947 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; }
16948 }'`; fi
16949 else
16950   echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16952
16953 fi
16954 rm -f conftest.err conftest.$ac_objext \
16955       conftest$ac_exeext conftest.$ac_ext
16956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16957
16958          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16959           # Warning - without using the other run time loading flags,
16960           # -berok will link without error, but may produce a broken library.
16961           no_undefined_flag_GCJ=' ${wl}-bernotok'
16962           allow_undefined_flag_GCJ=' ${wl}-berok'
16963           # -bexpall does not export symbols beginning with underscore (_)
16964           always_export_symbols_GCJ=yes
16965           # Exported symbols can be pulled into shared objects from archives
16966           whole_archive_flag_spec_GCJ=' '
16967           archive_cmds_need_lc_GCJ=yes
16968           # This is similar to how AIX traditionally builds it's shared libraries.
16969           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'
16970         fi
16971       fi
16972       ;;
16973
16974     amigaos*)
16975       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)'
16976       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16977       hardcode_minus_L_GCJ=yes
16978       # see comment about different semantics on the GNU ld section
16979       ld_shlibs_GCJ=no
16980       ;;
16981
16982     bsdi[45]*)
16983       export_dynamic_flag_spec_GCJ=-rdynamic
16984       ;;
16985
16986     cygwin* | mingw* | pw32*)
16987       # When not using gcc, we currently assume that we are using
16988       # Microsoft Visual C++.
16989       # hardcode_libdir_flag_spec is actually meaningless, as there is
16990       # no search path for DLLs.
16991       hardcode_libdir_flag_spec_GCJ=' '
16992       allow_undefined_flag_GCJ=unsupported
16993       # Tell ltmain to make .lib files, not .a files.
16994       libext=lib
16995       # Tell ltmain to make .dll files, not .so files.
16996       shrext_cmds=".dll"
16997       # FIXME: Setting linknames here is a bad hack.
16998       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16999       # The linker will automatically build a .lib file if we build a DLL.
17000       old_archive_From_new_cmds_GCJ='true'
17001       # FIXME: Should let the user specify the lib program.
17002       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17003       fix_srcfile_path='`cygpath -w "$srcfile"`'
17004       enable_shared_with_static_runtimes_GCJ=yes
17005       ;;
17006
17007     darwin* | rhapsody*)
17008       case "$host_os" in
17009         rhapsody* | darwin1.[012])
17010          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17011          ;;
17012        *) # Darwin 1.3 on
17013          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17014            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17015          else
17016            case ${MACOSX_DEPLOYMENT_TARGET} in
17017              10.[012])
17018                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17019                ;;
17020              10.*)
17021                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17022                ;;
17023            esac
17024          fi
17025          ;;
17026       esac
17027       archive_cmds_need_lc_GCJ=no
17028       hardcode_direct_GCJ=no
17029       hardcode_automatic_GCJ=yes
17030       hardcode_shlibpath_var_GCJ=unsupported
17031       whole_archive_flag_spec_GCJ=''
17032       link_all_deplibs_GCJ=yes
17033     if test "$GCC" = yes ; then
17034         output_verbose_link_cmd='echo'
17035         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17036       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17037       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17038       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}'
17039       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}'
17040     else
17041       case "$cc_basename" in
17042         xlc*)
17043          output_verbose_link_cmd='echo'
17044          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17045          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17046           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17047          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}'
17048           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}'
17049           ;;
17050        *)
17051          ld_shlibs_GCJ=no
17052           ;;
17053       esac
17054     fi
17055       ;;
17056
17057     dgux*)
17058       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17059       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17060       hardcode_shlibpath_var_GCJ=no
17061       ;;
17062
17063     freebsd1*)
17064       ld_shlibs_GCJ=no
17065       ;;
17066
17067     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17068     # support.  Future versions do this automatically, but an explicit c++rt0.o
17069     # does not break anything, and helps significantly (at the cost of a little
17070     # extra space).
17071     freebsd2.2*)
17072       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17073       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17074       hardcode_direct_GCJ=yes
17075       hardcode_shlibpath_var_GCJ=no
17076       ;;
17077
17078     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17079     freebsd2*)
17080       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17081       hardcode_direct_GCJ=yes
17082       hardcode_minus_L_GCJ=yes
17083       hardcode_shlibpath_var_GCJ=no
17084       ;;
17085
17086     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17087     freebsd* | kfreebsd*-gnu)
17088       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17089       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17090       hardcode_direct_GCJ=yes
17091       hardcode_shlibpath_var_GCJ=no
17092       ;;
17093
17094     hpux9*)
17095       if test "$GCC" = yes; then
17096         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'
17097       else
17098         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'
17099       fi
17100       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17101       hardcode_libdir_separator_GCJ=:
17102       hardcode_direct_GCJ=yes
17103
17104       # hardcode_minus_L: Not really in the search PATH,
17105       # but as the default location of the library.
17106       hardcode_minus_L_GCJ=yes
17107       export_dynamic_flag_spec_GCJ='${wl}-E'
17108       ;;
17109
17110     hpux10* | hpux11*)
17111       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17112         case "$host_cpu" in
17113         hppa*64*|ia64*)
17114           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17115           ;;
17116         *)
17117           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17118           ;;
17119         esac
17120       else
17121         case "$host_cpu" in
17122         hppa*64*|ia64*)
17123           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17124           ;;
17125         *)
17126           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17127           ;;
17128         esac
17129       fi
17130       if test "$with_gnu_ld" = no; then
17131         case "$host_cpu" in
17132         hppa*64*)
17133           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17134           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17135           hardcode_libdir_separator_GCJ=:
17136           hardcode_direct_GCJ=no
17137           hardcode_shlibpath_var_GCJ=no
17138           ;;
17139         ia64*)
17140           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17141           hardcode_direct_GCJ=no
17142           hardcode_shlibpath_var_GCJ=no
17143
17144           # hardcode_minus_L: Not really in the search PATH,
17145           # but as the default location of the library.
17146           hardcode_minus_L_GCJ=yes
17147           ;;
17148         *)
17149           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17150           hardcode_libdir_separator_GCJ=:
17151           hardcode_direct_GCJ=yes
17152           export_dynamic_flag_spec_GCJ='${wl}-E'
17153
17154           # hardcode_minus_L: Not really in the search PATH,
17155           # but as the default location of the library.
17156           hardcode_minus_L_GCJ=yes
17157           ;;
17158         esac
17159       fi
17160       ;;
17161
17162     irix5* | irix6* | nonstopux*)
17163       if test "$GCC" = yes; then
17164         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'
17165       else
17166         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'
17167         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17168       fi
17169       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17170       hardcode_libdir_separator_GCJ=:
17171       link_all_deplibs_GCJ=yes
17172       ;;
17173
17174     netbsd*)
17175       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17176         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17177       else
17178         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17179       fi
17180       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17181       hardcode_direct_GCJ=yes
17182       hardcode_shlibpath_var_GCJ=no
17183       ;;
17184
17185     newsos6)
17186       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17187       hardcode_direct_GCJ=yes
17188       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17189       hardcode_libdir_separator_GCJ=:
17190       hardcode_shlibpath_var_GCJ=no
17191       ;;
17192
17193     openbsd*)
17194       hardcode_direct_GCJ=yes
17195       hardcode_shlibpath_var_GCJ=no
17196       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17197         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17198         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17199         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17200         export_dynamic_flag_spec_GCJ='${wl}-E'
17201       else
17202        case $host_os in
17203          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17204            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17205            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17206            ;;
17207          *)
17208            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17209            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17210            ;;
17211        esac
17212       fi
17213       ;;
17214
17215     os2*)
17216       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17217       hardcode_minus_L_GCJ=yes
17218       allow_undefined_flag_GCJ=unsupported
17219       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'
17220       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17221       ;;
17222
17223     osf3*)
17224       if test "$GCC" = yes; then
17225         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17226         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'
17227       else
17228         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17229         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'
17230       fi
17231       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17232       hardcode_libdir_separator_GCJ=:
17233       ;;
17234
17235     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17236       if test "$GCC" = yes; then
17237         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17238         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'
17239         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17240       else
17241         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17242         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'
17243         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~
17244         $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'
17245
17246         # Both c and cxx compiler support -rpath directly
17247         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17248       fi
17249       hardcode_libdir_separator_GCJ=:
17250       ;;
17251
17252     sco3.2v5*)
17253       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17254       hardcode_shlibpath_var_GCJ=no
17255       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17256       runpath_var=LD_RUN_PATH
17257       hardcode_runpath_var=yes
17258       ;;
17259
17260     solaris*)
17261       no_undefined_flag_GCJ=' -z text'
17262       if test "$GCC" = yes; then
17263         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17264         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17265           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17266       else
17267         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17268         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17269         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17270       fi
17271       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17272       hardcode_shlibpath_var_GCJ=no
17273       case $host_os in
17274       solaris2.[0-5] | solaris2.[0-5].*) ;;
17275       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17276         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17277       esac
17278       link_all_deplibs_GCJ=yes
17279       ;;
17280
17281     sunos4*)
17282       if test "x$host_vendor" = xsequent; then
17283         # Use $CC to link under sequent, because it throws in some extra .o
17284         # files that make .init and .fini sections work.
17285         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17286       else
17287         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17288       fi
17289       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17290       hardcode_direct_GCJ=yes
17291       hardcode_minus_L_GCJ=yes
17292       hardcode_shlibpath_var_GCJ=no
17293       ;;
17294
17295     sysv4)
17296       case $host_vendor in
17297         sni)
17298           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17299           hardcode_direct_GCJ=yes # is this really true???
17300         ;;
17301         siemens)
17302           ## LD is ld it makes a PLAMLIB
17303           ## CC just makes a GrossModule.
17304           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17305           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17306           hardcode_direct_GCJ=no
17307         ;;
17308         motorola)
17309           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17310           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17311         ;;
17312       esac
17313       runpath_var='LD_RUN_PATH'
17314       hardcode_shlibpath_var_GCJ=no
17315       ;;
17316
17317     sysv4.3*)
17318       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17319       hardcode_shlibpath_var_GCJ=no
17320       export_dynamic_flag_spec_GCJ='-Bexport'
17321       ;;
17322
17323     sysv4*MP*)
17324       if test -d /usr/nec; then
17325         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17326         hardcode_shlibpath_var_GCJ=no
17327         runpath_var=LD_RUN_PATH
17328         hardcode_runpath_var=yes
17329         ld_shlibs_GCJ=yes
17330       fi
17331       ;;
17332
17333     sysv4.2uw2*)
17334       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17335       hardcode_direct_GCJ=yes
17336       hardcode_minus_L_GCJ=no
17337       hardcode_shlibpath_var_GCJ=no
17338       hardcode_runpath_var=yes
17339       runpath_var=LD_RUN_PATH
17340       ;;
17341
17342    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17343       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17344       if test "$GCC" = yes; then
17345         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17346       else
17347         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17348       fi
17349       runpath_var='LD_RUN_PATH'
17350       hardcode_shlibpath_var_GCJ=no
17351       ;;
17352
17353     sysv5*)
17354       no_undefined_flag_GCJ=' -z text'
17355       # $CC -shared without GNU ld will not create a library from C++
17356       # object files and a static libstdc++, better avoid it by now
17357       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17358       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17359                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17360       hardcode_libdir_flag_spec_GCJ=
17361       hardcode_shlibpath_var_GCJ=no
17362       runpath_var='LD_RUN_PATH'
17363       ;;
17364
17365     uts4*)
17366       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17367       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17368       hardcode_shlibpath_var_GCJ=no
17369       ;;
17370
17371     *)
17372       ld_shlibs_GCJ=no
17373       ;;
17374     esac
17375   fi
17376
17377 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17378 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17379 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17380
17381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17382 if test "$GCC" = yes; then
17383   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17384 fi
17385
17386 #
17387 # Do we need to explicitly link libc?
17388 #
17389 case "x$archive_cmds_need_lc_GCJ" in
17390 x|xyes)
17391   # Assume -lc should be added
17392   archive_cmds_need_lc_GCJ=yes
17393
17394   if test "$enable_shared" = yes && test "$GCC" = yes; then
17395     case $archive_cmds_GCJ in
17396     *'~'*)
17397       # FIXME: we may have to deal with multi-command sequences.
17398       ;;
17399     '$CC '*)
17400       # Test whether the compiler implicitly links with -lc since on some
17401       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17402       # to ld, don't add -lc before -lgcc.
17403       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17404 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17405       $rm conftest*
17406       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17407
17408       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17409   (eval $ac_compile) 2>&5
17410   ac_status=$?
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); } 2>conftest.err; then
17413         soname=conftest
17414         lib=conftest
17415         libobjs=conftest.$ac_objext
17416         deplibs=
17417         wl=$lt_prog_compiler_wl_GCJ
17418         compiler_flags=-v
17419         linker_flags=-v
17420         verstring=
17421         output_objdir=.
17422         libname=conftest
17423         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17424         allow_undefined_flag_GCJ=
17425         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17426   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17427   ac_status=$?
17428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429   (exit $ac_status); }
17430         then
17431           archive_cmds_need_lc_GCJ=no
17432         else
17433           archive_cmds_need_lc_GCJ=yes
17434         fi
17435         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17436       else
17437         cat conftest.err 1>&5
17438       fi
17439       $rm conftest*
17440       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17441 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17442       ;;
17443     esac
17444   fi
17445   ;;
17446 esac
17447
17448 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17449 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17450 library_names_spec=
17451 libname_spec='lib$name'
17452 soname_spec=
17453 shrext_cmds=".so"
17454 postinstall_cmds=
17455 postuninstall_cmds=
17456 finish_cmds=
17457 finish_eval=
17458 shlibpath_var=
17459 shlibpath_overrides_runpath=unknown
17460 version_type=none
17461 dynamic_linker="$host_os ld.so"
17462 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17463 if test "$GCC" = yes; then
17464   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17465   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17466     # if the path contains ";" then we assume it to be the separator
17467     # otherwise default to the standard path separator (i.e. ":") - it is
17468     # assumed that no part of a normal pathname contains ";" but that should
17469     # okay in the real world where ";" in dirpaths is itself problematic.
17470     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17471   else
17472     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17473   fi
17474 else
17475   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17476 fi
17477 need_lib_prefix=unknown
17478 hardcode_into_libs=no
17479
17480 # when you set need_version to no, make sure it does not cause -set_version
17481 # flags to be left without arguments
17482 need_version=unknown
17483
17484 case $host_os in
17485 aix3*)
17486   version_type=linux
17487   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17488   shlibpath_var=LIBPATH
17489
17490   # AIX 3 has no versioning support, so we append a major version to the name.
17491   soname_spec='${libname}${release}${shared_ext}$major'
17492   ;;
17493
17494 aix4* | aix5*)
17495   version_type=linux
17496   need_lib_prefix=no
17497   need_version=no
17498   hardcode_into_libs=yes
17499   if test "$host_cpu" = ia64; then
17500     # AIX 5 supports IA64
17501     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17502     shlibpath_var=LD_LIBRARY_PATH
17503   else
17504     # With GCC up to 2.95.x, collect2 would create an import file
17505     # for dependence libraries.  The import file would start with
17506     # the line `#! .'.  This would cause the generated library to
17507     # depend on `.', always an invalid library.  This was fixed in
17508     # development snapshots of GCC prior to 3.0.
17509     case $host_os in
17510       aix4 | aix4.[01] | aix4.[01].*)
17511       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17512            echo ' yes '
17513            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17514         :
17515       else
17516         can_build_shared=no
17517       fi
17518       ;;
17519     esac
17520     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17521     # soname into executable. Probably we can add versioning support to
17522     # collect2, so additional links can be useful in future.
17523     if test "$aix_use_runtimelinking" = yes; then
17524       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17525       # instead of lib<name>.a to let people know that these are not
17526       # typical AIX shared libraries.
17527       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17528     else
17529       # We preserve .a as extension for shared libraries through AIX4.2
17530       # and later when we are not doing run time linking.
17531       library_names_spec='${libname}${release}.a $libname.a'
17532       soname_spec='${libname}${release}${shared_ext}$major'
17533     fi
17534     shlibpath_var=LIBPATH
17535   fi
17536   ;;
17537
17538 amigaos*)
17539   library_names_spec='$libname.ixlibrary $libname.a'
17540   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17541   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'
17542   ;;
17543
17544 beos*)
17545   library_names_spec='${libname}${shared_ext}'
17546   dynamic_linker="$host_os ld.so"
17547   shlibpath_var=LIBRARY_PATH
17548   ;;
17549
17550 bsdi[45]*)
17551   version_type=linux
17552   need_version=no
17553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554   soname_spec='${libname}${release}${shared_ext}$major'
17555   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17556   shlibpath_var=LD_LIBRARY_PATH
17557   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17558   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17559   # the default ld.so.conf also contains /usr/contrib/lib and
17560   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17561   # libtool to hard-code these into programs
17562   ;;
17563
17564 cygwin* | mingw* | pw32*)
17565   version_type=windows
17566   shrext_cmds=".dll"
17567   need_version=no
17568   need_lib_prefix=no
17569
17570   case $GCC,$host_os in
17571   yes,cygwin* | yes,mingw* | yes,pw32*)
17572     library_names_spec='$libname.dll.a'
17573     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17574     postinstall_cmds='base_file=`basename \${file}`~
17575       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17576       dldir=$destdir/`dirname \$dlpath`~
17577       test -d \$dldir || mkdir -p \$dldir~
17578       $install_prog $dir/$dlname \$dldir/$dlname'
17579     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17580       dlpath=$dir/\$dldll~
17581        $rm \$dlpath'
17582     shlibpath_overrides_runpath=yes
17583
17584     case $host_os in
17585     cygwin*)
17586       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17587       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17588       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17589       ;;
17590     mingw*)
17591       # MinGW DLLs use traditional 'lib' prefix
17592       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17593       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17594       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17595         # It is most probably a Windows format PATH printed by
17596         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17597         # path with ; separators, and with drive letters. We can handle the
17598         # drive letters (cygwin fileutils understands them), so leave them,
17599         # especially as we might pass files found there to a mingw objdump,
17600         # which wouldn't understand a cygwinified path. Ahh.
17601         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17602       else
17603         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17604       fi
17605       ;;
17606     pw32*)
17607       # pw32 DLLs use 'pw' prefix rather than 'lib'
17608       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17609       ;;
17610     esac
17611     ;;
17612
17613   *)
17614     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17615     ;;
17616   esac
17617   dynamic_linker='Win32 ld.exe'
17618   # FIXME: first we should search . and the directory the executable is in
17619   shlibpath_var=PATH
17620   ;;
17621
17622 darwin* | rhapsody*)
17623   dynamic_linker="$host_os dyld"
17624   version_type=darwin
17625   need_lib_prefix=no
17626   need_version=no
17627   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17628   soname_spec='${libname}${release}${major}$shared_ext'
17629   shlibpath_overrides_runpath=yes
17630   shlibpath_var=DYLD_LIBRARY_PATH
17631   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17632   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17633   if test "$GCC" = yes; then
17634     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"`
17635   else
17636     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17637   fi
17638   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17639   ;;
17640
17641 dgux*)
17642   version_type=linux
17643   need_lib_prefix=no
17644   need_version=no
17645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17646   soname_spec='${libname}${release}${shared_ext}$major'
17647   shlibpath_var=LD_LIBRARY_PATH
17648   ;;
17649
17650 freebsd1*)
17651   dynamic_linker=no
17652   ;;
17653
17654 kfreebsd*-gnu)
17655   version_type=linux
17656   need_lib_prefix=no
17657   need_version=no
17658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17659   soname_spec='${libname}${release}${shared_ext}$major'
17660   shlibpath_var=LD_LIBRARY_PATH
17661   shlibpath_overrides_runpath=no
17662   hardcode_into_libs=yes
17663   dynamic_linker='GNU ld.so'
17664   ;;
17665
17666 freebsd*)
17667   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17668   version_type=freebsd-$objformat
17669   case $version_type in
17670     freebsd-elf*)
17671       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17672       need_version=no
17673       need_lib_prefix=no
17674       ;;
17675     freebsd-*)
17676       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17677       need_version=yes
17678       ;;
17679   esac
17680   shlibpath_var=LD_LIBRARY_PATH
17681   case $host_os in
17682   freebsd2*)
17683     shlibpath_overrides_runpath=yes
17684     ;;
17685   freebsd3.01* | freebsdelf3.01*)
17686     shlibpath_overrides_runpath=yes
17687     hardcode_into_libs=yes
17688     ;;
17689   *) # from 3.2 on
17690     shlibpath_overrides_runpath=no
17691     hardcode_into_libs=yes
17692     ;;
17693   esac
17694   ;;
17695
17696 gnu*)
17697   version_type=linux
17698   need_lib_prefix=no
17699   need_version=no
17700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17701   soname_spec='${libname}${release}${shared_ext}$major'
17702   shlibpath_var=LD_LIBRARY_PATH
17703   hardcode_into_libs=yes
17704   ;;
17705
17706 hpux9* | hpux10* | hpux11*)
17707   # Give a soname corresponding to the major version so that dld.sl refuses to
17708   # link against other versions.
17709   version_type=sunos
17710   need_lib_prefix=no
17711   need_version=no
17712   case "$host_cpu" in
17713   ia64*)
17714     shrext_cmds='.so'
17715     hardcode_into_libs=yes
17716     dynamic_linker="$host_os dld.so"
17717     shlibpath_var=LD_LIBRARY_PATH
17718     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17720     soname_spec='${libname}${release}${shared_ext}$major'
17721     if test "X$HPUX_IA64_MODE" = X32; then
17722       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17723     else
17724       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17725     fi
17726     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17727     ;;
17728    hppa*64*)
17729      shrext_cmds='.sl'
17730      hardcode_into_libs=yes
17731      dynamic_linker="$host_os dld.sl"
17732      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17733      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17734      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17735      soname_spec='${libname}${release}${shared_ext}$major'
17736      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17737      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17738      ;;
17739    *)
17740     shrext_cmds='.sl'
17741     dynamic_linker="$host_os dld.sl"
17742     shlibpath_var=SHLIB_PATH
17743     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17745     soname_spec='${libname}${release}${shared_ext}$major'
17746     ;;
17747   esac
17748   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17749   postinstall_cmds='chmod 555 $lib'
17750   ;;
17751
17752 irix5* | irix6* | nonstopux*)
17753   case $host_os in
17754     nonstopux*) version_type=nonstopux ;;
17755     *)
17756         if test "$lt_cv_prog_gnu_ld" = yes; then
17757                 version_type=linux
17758         else
17759                 version_type=irix
17760         fi ;;
17761   esac
17762   need_lib_prefix=no
17763   need_version=no
17764   soname_spec='${libname}${release}${shared_ext}$major'
17765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17766   case $host_os in
17767   irix5* | nonstopux*)
17768     libsuff= shlibsuff=
17769     ;;
17770   *)
17771     case $LD in # libtool.m4 will add one of these switches to LD
17772     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17773       libsuff= shlibsuff= libmagic=32-bit;;
17774     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17775       libsuff=32 shlibsuff=N32 libmagic=N32;;
17776     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17777       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17778     *) libsuff= shlibsuff= libmagic=never-match;;
17779     esac
17780     ;;
17781   esac
17782   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17783   shlibpath_overrides_runpath=no
17784   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17785   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17786   hardcode_into_libs=yes
17787   ;;
17788
17789 # No shared lib support for Linux oldld, aout, or coff.
17790 linux*oldld* | linux*aout* | linux*coff*)
17791   dynamic_linker=no
17792   ;;
17793
17794 # This must be Linux ELF.
17795 linux*)
17796   version_type=linux
17797   need_lib_prefix=no
17798   need_version=no
17799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800   soname_spec='${libname}${release}${shared_ext}$major'
17801   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17802   shlibpath_var=LD_LIBRARY_PATH
17803   shlibpath_overrides_runpath=no
17804   # This implies no fast_install, which is unacceptable.
17805   # Some rework will be needed to allow for fast_install
17806   # before this can be enabled.
17807   hardcode_into_libs=yes
17808
17809   # Append ld.so.conf contents to the search path
17810   if test -f /etc/ld.so.conf; then
17811     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17812     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17813   fi
17814
17815   # We used to test for /lib/ld.so.1 and disable shared libraries on
17816   # powerpc, because MkLinux only supported shared libraries with the
17817   # GNU dynamic linker.  Since this was broken with cross compilers,
17818   # most powerpc-linux boxes support dynamic linking these days and
17819   # people can always --disable-shared, the test was removed, and we
17820   # assume the GNU/Linux dynamic linker is in use.
17821   dynamic_linker='GNU/Linux ld.so'
17822   ;;
17823
17824 knetbsd*-gnu)
17825   version_type=linux
17826   need_lib_prefix=no
17827   need_version=no
17828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17829   soname_spec='${libname}${release}${shared_ext}$major'
17830   shlibpath_var=LD_LIBRARY_PATH
17831   shlibpath_overrides_runpath=no
17832   hardcode_into_libs=yes
17833   dynamic_linker='GNU ld.so'
17834   ;;
17835
17836 netbsd*)
17837   version_type=sunos
17838   need_lib_prefix=no
17839   need_version=no
17840   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17842     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17843     dynamic_linker='NetBSD (a.out) ld.so'
17844   else
17845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17846     soname_spec='${libname}${release}${shared_ext}$major'
17847     dynamic_linker='NetBSD ld.elf_so'
17848   fi
17849   shlibpath_var=LD_LIBRARY_PATH
17850   shlibpath_overrides_runpath=yes
17851   hardcode_into_libs=yes
17852   ;;
17853
17854 newsos6)
17855   version_type=linux
17856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857   shlibpath_var=LD_LIBRARY_PATH
17858   shlibpath_overrides_runpath=yes
17859   ;;
17860
17861 nto-qnx*)
17862   version_type=linux
17863   need_lib_prefix=no
17864   need_version=no
17865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17866   soname_spec='${libname}${release}${shared_ext}$major'
17867   shlibpath_var=LD_LIBRARY_PATH
17868   shlibpath_overrides_runpath=yes
17869   ;;
17870
17871 openbsd*)
17872   version_type=sunos
17873   need_lib_prefix=no
17874   need_version=no
17875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17876   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17877   shlibpath_var=LD_LIBRARY_PATH
17878   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17879     case $host_os in
17880       openbsd2.[89] | openbsd2.[89].*)
17881         shlibpath_overrides_runpath=no
17882         ;;
17883       *)
17884         shlibpath_overrides_runpath=yes
17885         ;;
17886       esac
17887   else
17888     shlibpath_overrides_runpath=yes
17889   fi
17890   ;;
17891
17892 os2*)
17893   libname_spec='$name'
17894   shrext_cmds=".dll"
17895   need_lib_prefix=no
17896   library_names_spec='$libname${shared_ext} $libname.a'
17897   dynamic_linker='OS/2 ld.exe'
17898   shlibpath_var=LIBPATH
17899   ;;
17900
17901 osf3* | osf4* | osf5*)
17902   version_type=osf
17903   need_lib_prefix=no
17904   need_version=no
17905   soname_spec='${libname}${release}${shared_ext}$major'
17906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17907   shlibpath_var=LD_LIBRARY_PATH
17908   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17909   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17910   ;;
17911
17912 sco3.2v5*)
17913   version_type=osf
17914   soname_spec='${libname}${release}${shared_ext}$major'
17915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17916   shlibpath_var=LD_LIBRARY_PATH
17917   ;;
17918
17919 solaris*)
17920   version_type=linux
17921   need_lib_prefix=no
17922   need_version=no
17923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17924   soname_spec='${libname}${release}${shared_ext}$major'
17925   shlibpath_var=LD_LIBRARY_PATH
17926   shlibpath_overrides_runpath=yes
17927   hardcode_into_libs=yes
17928   # ldd complains unless libraries are executable
17929   postinstall_cmds='chmod +x $lib'
17930   ;;
17931
17932 sunos4*)
17933   version_type=sunos
17934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17935   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17936   shlibpath_var=LD_LIBRARY_PATH
17937   shlibpath_overrides_runpath=yes
17938   if test "$with_gnu_ld" = yes; then
17939     need_lib_prefix=no
17940   fi
17941   need_version=yes
17942   ;;
17943
17944 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17945   version_type=linux
17946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17947   soname_spec='${libname}${release}${shared_ext}$major'
17948   shlibpath_var=LD_LIBRARY_PATH
17949   case $host_vendor in
17950     sni)
17951       shlibpath_overrides_runpath=no
17952       need_lib_prefix=no
17953       export_dynamic_flag_spec='${wl}-Blargedynsym'
17954       runpath_var=LD_RUN_PATH
17955       ;;
17956     siemens)
17957       need_lib_prefix=no
17958       ;;
17959     motorola)
17960       need_lib_prefix=no
17961       need_version=no
17962       shlibpath_overrides_runpath=no
17963       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17964       ;;
17965   esac
17966   ;;
17967
17968 sysv4*MP*)
17969   if test -d /usr/nec ;then
17970     version_type=linux
17971     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17972     soname_spec='$libname${shared_ext}.$major'
17973     shlibpath_var=LD_LIBRARY_PATH
17974   fi
17975   ;;
17976
17977 uts4*)
17978   version_type=linux
17979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980   soname_spec='${libname}${release}${shared_ext}$major'
17981   shlibpath_var=LD_LIBRARY_PATH
17982   ;;
17983
17984 *)
17985   dynamic_linker=no
17986   ;;
17987 esac
17988 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17989 echo "${ECHO_T}$dynamic_linker" >&6
17990 test "$dynamic_linker" = no && can_build_shared=no
17991
17992 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17993 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17994 hardcode_action_GCJ=
17995 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17996    test -n "$runpath_var_GCJ" || \
17997    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17998
17999   # We can hardcode non-existant directories.
18000   if test "$hardcode_direct_GCJ" != no &&
18001      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18002      # have to relink, otherwise we might link with an installed library
18003      # when we should be linking with a yet-to-be-installed one
18004      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18005      test "$hardcode_minus_L_GCJ" != no; then
18006     # Linking always hardcodes the temporary library directory.
18007     hardcode_action_GCJ=relink
18008   else
18009     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18010     hardcode_action_GCJ=immediate
18011   fi
18012 else
18013   # We cannot hardcode anything, or else we can only hardcode existing
18014   # directories.
18015   hardcode_action_GCJ=unsupported
18016 fi
18017 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18018 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18019
18020 if test "$hardcode_action_GCJ" = relink; then
18021   # Fast installation is not supported
18022   enable_fast_install=no
18023 elif test "$shlibpath_overrides_runpath" = yes ||
18024      test "$enable_shared" = no; then
18025   # Fast installation is not necessary
18026   enable_fast_install=needless
18027 fi
18028
18029 striplib=
18030 old_striplib=
18031 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18032 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18033 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18034   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18035   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18036   echo "$as_me:$LINENO: result: yes" >&5
18037 echo "${ECHO_T}yes" >&6
18038 else
18039 # FIXME - insert some real tests, host_os isn't really good enough
18040   case $host_os in
18041    darwin*)
18042        if test -n "$STRIP" ; then
18043          striplib="$STRIP -x"
18044          echo "$as_me:$LINENO: result: yes" >&5
18045 echo "${ECHO_T}yes" >&6
18046        else
18047   echo "$as_me:$LINENO: result: no" >&5
18048 echo "${ECHO_T}no" >&6
18049 fi
18050        ;;
18051    *)
18052   echo "$as_me:$LINENO: result: no" >&5
18053 echo "${ECHO_T}no" >&6
18054     ;;
18055   esac
18056 fi
18057
18058 if test "x$enable_dlopen" != xyes; then
18059   enable_dlopen=unknown
18060   enable_dlopen_self=unknown
18061   enable_dlopen_self_static=unknown
18062 else
18063   lt_cv_dlopen=no
18064   lt_cv_dlopen_libs=
18065
18066   case $host_os in
18067   beos*)
18068     lt_cv_dlopen="load_add_on"
18069     lt_cv_dlopen_libs=
18070     lt_cv_dlopen_self=yes
18071     ;;
18072
18073   mingw* | pw32*)
18074     lt_cv_dlopen="LoadLibrary"
18075     lt_cv_dlopen_libs=
18076    ;;
18077
18078   cygwin*)
18079     lt_cv_dlopen="dlopen"
18080     lt_cv_dlopen_libs=
18081    ;;
18082
18083   darwin*)
18084   # if libdl is installed we need to link against it
18085     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18086 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18087 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18088   echo $ECHO_N "(cached) $ECHO_C" >&6
18089 else
18090   ac_check_lib_save_LIBS=$LIBS
18091 LIBS="-ldl  $LIBS"
18092 cat >conftest.$ac_ext <<_ACEOF
18093 /* confdefs.h.  */
18094 _ACEOF
18095 cat confdefs.h >>conftest.$ac_ext
18096 cat >>conftest.$ac_ext <<_ACEOF
18097 /* end confdefs.h.  */
18098
18099 /* Override any gcc2 internal prototype to avoid an error.  */
18100 #ifdef __cplusplus
18101 extern "C"
18102 #endif
18103 /* We use char because int might match the return type of a gcc2
18104    builtin and then its argument prototype would still apply.  */
18105 char dlopen ();
18106 int
18107 main ()
18108 {
18109 dlopen ();
18110   ;
18111   return 0;
18112 }
18113 _ACEOF
18114 rm -f conftest.$ac_objext conftest$ac_exeext
18115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18116   (eval $ac_link) 2>conftest.er1
18117   ac_status=$?
18118   grep -v '^ *+' conftest.er1 >conftest.err
18119   rm -f conftest.er1
18120   cat conftest.err >&5
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); } &&
18123          { ac_try='test -z "$ac_c_werror_flag"
18124                          || test ! -s conftest.err'
18125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126   (eval $ac_try) 2>&5
18127   ac_status=$?
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); }; } &&
18130          { ac_try='test -s conftest$ac_exeext'
18131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132   (eval $ac_try) 2>&5
18133   ac_status=$?
18134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135   (exit $ac_status); }; }; then
18136   ac_cv_lib_dl_dlopen=yes
18137 else
18138   echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18140
18141 ac_cv_lib_dl_dlopen=no
18142 fi
18143 rm -f conftest.err conftest.$ac_objext \
18144       conftest$ac_exeext conftest.$ac_ext
18145 LIBS=$ac_check_lib_save_LIBS
18146 fi
18147 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18148 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18149 if test $ac_cv_lib_dl_dlopen = yes; then
18150   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18151 else
18152
18153     lt_cv_dlopen="dyld"
18154     lt_cv_dlopen_libs=
18155     lt_cv_dlopen_self=yes
18156
18157 fi
18158
18159    ;;
18160
18161   *)
18162     echo "$as_me:$LINENO: checking for shl_load" >&5
18163 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18164 if test "${ac_cv_func_shl_load+set}" = set; then
18165   echo $ECHO_N "(cached) $ECHO_C" >&6
18166 else
18167   cat >conftest.$ac_ext <<_ACEOF
18168 /* confdefs.h.  */
18169 _ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h.  */
18173 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18175 #define shl_load innocuous_shl_load
18176
18177 /* System header to define __stub macros and hopefully few prototypes,
18178     which can conflict with char shl_load (); below.
18179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180     <limits.h> exists even on freestanding compilers.  */
18181
18182 #ifdef __STDC__
18183 # include <limits.h>
18184 #else
18185 # include <assert.h>
18186 #endif
18187
18188 #undef shl_load
18189
18190 /* Override any gcc2 internal prototype to avoid an error.  */
18191 #ifdef __cplusplus
18192 extern "C"
18193 {
18194 #endif
18195 /* We use char because int might match the return type of a gcc2
18196    builtin and then its argument prototype would still apply.  */
18197 char shl_load ();
18198 /* The GNU C library defines this for functions which it implements
18199     to always fail with ENOSYS.  Some functions are actually named
18200     something starting with __ and the normal name is an alias.  */
18201 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18202 choke me
18203 #else
18204 char (*f) () = shl_load;
18205 #endif
18206 #ifdef __cplusplus
18207 }
18208 #endif
18209
18210 int
18211 main ()
18212 {
18213 return f != shl_load;
18214   ;
18215   return 0;
18216 }
18217 _ACEOF
18218 rm -f conftest.$ac_objext conftest$ac_exeext
18219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18220   (eval $ac_link) 2>conftest.er1
18221   ac_status=$?
18222   grep -v '^ *+' conftest.er1 >conftest.err
18223   rm -f conftest.er1
18224   cat conftest.err >&5
18225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226   (exit $ac_status); } &&
18227          { ac_try='test -z "$ac_c_werror_flag"
18228                          || test ! -s conftest.err'
18229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230   (eval $ac_try) 2>&5
18231   ac_status=$?
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); }; } &&
18234          { ac_try='test -s conftest$ac_exeext'
18235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236   (eval $ac_try) 2>&5
18237   ac_status=$?
18238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); }; }; then
18240   ac_cv_func_shl_load=yes
18241 else
18242   echo "$as_me: failed program was:" >&5
18243 sed 's/^/| /' conftest.$ac_ext >&5
18244
18245 ac_cv_func_shl_load=no
18246 fi
18247 rm -f conftest.err conftest.$ac_objext \
18248       conftest$ac_exeext conftest.$ac_ext
18249 fi
18250 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18251 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18252 if test $ac_cv_func_shl_load = yes; then
18253   lt_cv_dlopen="shl_load"
18254 else
18255   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18256 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18257 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18258   echo $ECHO_N "(cached) $ECHO_C" >&6
18259 else
18260   ac_check_lib_save_LIBS=$LIBS
18261 LIBS="-ldld  $LIBS"
18262 cat >conftest.$ac_ext <<_ACEOF
18263 /* confdefs.h.  */
18264 _ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h.  */
18268
18269 /* Override any gcc2 internal prototype to avoid an error.  */
18270 #ifdef __cplusplus
18271 extern "C"
18272 #endif
18273 /* We use char because int might match the return type of a gcc2
18274    builtin and then its argument prototype would still apply.  */
18275 char shl_load ();
18276 int
18277 main ()
18278 {
18279 shl_load ();
18280   ;
18281   return 0;
18282 }
18283 _ACEOF
18284 rm -f conftest.$ac_objext conftest$ac_exeext
18285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18286   (eval $ac_link) 2>conftest.er1
18287   ac_status=$?
18288   grep -v '^ *+' conftest.er1 >conftest.err
18289   rm -f conftest.er1
18290   cat conftest.err >&5
18291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292   (exit $ac_status); } &&
18293          { ac_try='test -z "$ac_c_werror_flag"
18294                          || test ! -s conftest.err'
18295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296   (eval $ac_try) 2>&5
18297   ac_status=$?
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); }; } &&
18300          { ac_try='test -s conftest$ac_exeext'
18301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302   (eval $ac_try) 2>&5
18303   ac_status=$?
18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); }; }; then
18306   ac_cv_lib_dld_shl_load=yes
18307 else
18308   echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18310
18311 ac_cv_lib_dld_shl_load=no
18312 fi
18313 rm -f conftest.err conftest.$ac_objext \
18314       conftest$ac_exeext conftest.$ac_ext
18315 LIBS=$ac_check_lib_save_LIBS
18316 fi
18317 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18318 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18319 if test $ac_cv_lib_dld_shl_load = yes; then
18320   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18321 else
18322   echo "$as_me:$LINENO: checking for dlopen" >&5
18323 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18324 if test "${ac_cv_func_dlopen+set}" = set; then
18325   echo $ECHO_N "(cached) $ECHO_C" >&6
18326 else
18327   cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h.  */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h.  */
18333 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18335 #define dlopen innocuous_dlopen
18336
18337 /* System header to define __stub macros and hopefully few prototypes,
18338     which can conflict with char dlopen (); below.
18339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18340     <limits.h> exists even on freestanding compilers.  */
18341
18342 #ifdef __STDC__
18343 # include <limits.h>
18344 #else
18345 # include <assert.h>
18346 #endif
18347
18348 #undef dlopen
18349
18350 /* Override any gcc2 internal prototype to avoid an error.  */
18351 #ifdef __cplusplus
18352 extern "C"
18353 {
18354 #endif
18355 /* We use char because int might match the return type of a gcc2
18356    builtin and then its argument prototype would still apply.  */
18357 char dlopen ();
18358 /* The GNU C library defines this for functions which it implements
18359     to always fail with ENOSYS.  Some functions are actually named
18360     something starting with __ and the normal name is an alias.  */
18361 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18362 choke me
18363 #else
18364 char (*f) () = dlopen;
18365 #endif
18366 #ifdef __cplusplus
18367 }
18368 #endif
18369
18370 int
18371 main ()
18372 {
18373 return f != dlopen;
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 rm -f conftest.$ac_objext conftest$ac_exeext
18379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18380   (eval $ac_link) 2>conftest.er1
18381   ac_status=$?
18382   grep -v '^ *+' conftest.er1 >conftest.err
18383   rm -f conftest.er1
18384   cat conftest.err >&5
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); } &&
18387          { ac_try='test -z "$ac_c_werror_flag"
18388                          || test ! -s conftest.err'
18389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390   (eval $ac_try) 2>&5
18391   ac_status=$?
18392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393   (exit $ac_status); }; } &&
18394          { ac_try='test -s conftest$ac_exeext'
18395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396   (eval $ac_try) 2>&5
18397   ac_status=$?
18398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399   (exit $ac_status); }; }; then
18400   ac_cv_func_dlopen=yes
18401 else
18402   echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18404
18405 ac_cv_func_dlopen=no
18406 fi
18407 rm -f conftest.err conftest.$ac_objext \
18408       conftest$ac_exeext conftest.$ac_ext
18409 fi
18410 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18411 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18412 if test $ac_cv_func_dlopen = yes; then
18413   lt_cv_dlopen="dlopen"
18414 else
18415   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18418   echo $ECHO_N "(cached) $ECHO_C" >&6
18419 else
18420   ac_check_lib_save_LIBS=$LIBS
18421 LIBS="-ldl  $LIBS"
18422 cat >conftest.$ac_ext <<_ACEOF
18423 /* confdefs.h.  */
18424 _ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h.  */
18428
18429 /* Override any gcc2 internal prototype to avoid an error.  */
18430 #ifdef __cplusplus
18431 extern "C"
18432 #endif
18433 /* We use char because int might match the return type of a gcc2
18434    builtin and then its argument prototype would still apply.  */
18435 char dlopen ();
18436 int
18437 main ()
18438 {
18439 dlopen ();
18440   ;
18441   return 0;
18442 }
18443 _ACEOF
18444 rm -f conftest.$ac_objext conftest$ac_exeext
18445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18446   (eval $ac_link) 2>conftest.er1
18447   ac_status=$?
18448   grep -v '^ *+' conftest.er1 >conftest.err
18449   rm -f conftest.er1
18450   cat conftest.err >&5
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); } &&
18453          { ac_try='test -z "$ac_c_werror_flag"
18454                          || test ! -s conftest.err'
18455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456   (eval $ac_try) 2>&5
18457   ac_status=$?
18458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459   (exit $ac_status); }; } &&
18460          { ac_try='test -s conftest$ac_exeext'
18461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462   (eval $ac_try) 2>&5
18463   ac_status=$?
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); }; }; then
18466   ac_cv_lib_dl_dlopen=yes
18467 else
18468   echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18470
18471 ac_cv_lib_dl_dlopen=no
18472 fi
18473 rm -f conftest.err conftest.$ac_objext \
18474       conftest$ac_exeext conftest.$ac_ext
18475 LIBS=$ac_check_lib_save_LIBS
18476 fi
18477 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18478 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18479 if test $ac_cv_lib_dl_dlopen = yes; then
18480   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18481 else
18482   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18483 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18484 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18485   echo $ECHO_N "(cached) $ECHO_C" >&6
18486 else
18487   ac_check_lib_save_LIBS=$LIBS
18488 LIBS="-lsvld  $LIBS"
18489 cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h.  */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h.  */
18495
18496 /* Override any gcc2 internal prototype to avoid an error.  */
18497 #ifdef __cplusplus
18498 extern "C"
18499 #endif
18500 /* We use char because int might match the return type of a gcc2
18501    builtin and then its argument prototype would still apply.  */
18502 char dlopen ();
18503 int
18504 main ()
18505 {
18506 dlopen ();
18507   ;
18508   return 0;
18509 }
18510 _ACEOF
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18513   (eval $ac_link) 2>conftest.er1
18514   ac_status=$?
18515   grep -v '^ *+' conftest.er1 >conftest.err
18516   rm -f conftest.er1
18517   cat conftest.err >&5
18518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519   (exit $ac_status); } &&
18520          { ac_try='test -z "$ac_c_werror_flag"
18521                          || test ! -s conftest.err'
18522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523   (eval $ac_try) 2>&5
18524   ac_status=$?
18525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526   (exit $ac_status); }; } &&
18527          { ac_try='test -s conftest$ac_exeext'
18528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529   (eval $ac_try) 2>&5
18530   ac_status=$?
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); }; }; then
18533   ac_cv_lib_svld_dlopen=yes
18534 else
18535   echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18537
18538 ac_cv_lib_svld_dlopen=no
18539 fi
18540 rm -f conftest.err conftest.$ac_objext \
18541       conftest$ac_exeext conftest.$ac_ext
18542 LIBS=$ac_check_lib_save_LIBS
18543 fi
18544 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18545 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18546 if test $ac_cv_lib_svld_dlopen = yes; then
18547   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18548 else
18549   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18550 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18551 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18552   echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554   ac_check_lib_save_LIBS=$LIBS
18555 LIBS="-ldld  $LIBS"
18556 cat >conftest.$ac_ext <<_ACEOF
18557 /* confdefs.h.  */
18558 _ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h.  */
18562
18563 /* Override any gcc2 internal prototype to avoid an error.  */
18564 #ifdef __cplusplus
18565 extern "C"
18566 #endif
18567 /* We use char because int might match the return type of a gcc2
18568    builtin and then its argument prototype would still apply.  */
18569 char dld_link ();
18570 int
18571 main ()
18572 {
18573 dld_link ();
18574   ;
18575   return 0;
18576 }
18577 _ACEOF
18578 rm -f conftest.$ac_objext conftest$ac_exeext
18579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18580   (eval $ac_link) 2>conftest.er1
18581   ac_status=$?
18582   grep -v '^ *+' conftest.er1 >conftest.err
18583   rm -f conftest.er1
18584   cat conftest.err >&5
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); } &&
18587          { ac_try='test -z "$ac_c_werror_flag"
18588                          || test ! -s conftest.err'
18589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590   (eval $ac_try) 2>&5
18591   ac_status=$?
18592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); }; } &&
18594          { ac_try='test -s conftest$ac_exeext'
18595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596   (eval $ac_try) 2>&5
18597   ac_status=$?
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); }; }; then
18600   ac_cv_lib_dld_dld_link=yes
18601 else
18602   echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18604
18605 ac_cv_lib_dld_dld_link=no
18606 fi
18607 rm -f conftest.err conftest.$ac_objext \
18608       conftest$ac_exeext conftest.$ac_ext
18609 LIBS=$ac_check_lib_save_LIBS
18610 fi
18611 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18612 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18613 if test $ac_cv_lib_dld_dld_link = yes; then
18614   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18615 fi
18616
18617
18618 fi
18619
18620
18621 fi
18622
18623
18624 fi
18625
18626
18627 fi
18628
18629
18630 fi
18631
18632     ;;
18633   esac
18634
18635   if test "x$lt_cv_dlopen" != xno; then
18636     enable_dlopen=yes
18637   else
18638     enable_dlopen=no
18639   fi
18640
18641   case $lt_cv_dlopen in
18642   dlopen)
18643     save_CPPFLAGS="$CPPFLAGS"
18644     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18645
18646     save_LDFLAGS="$LDFLAGS"
18647     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18648
18649     save_LIBS="$LIBS"
18650     LIBS="$lt_cv_dlopen_libs $LIBS"
18651
18652     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18653 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18654 if test "${lt_cv_dlopen_self+set}" = set; then
18655   echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657           if test "$cross_compiling" = yes; then :
18658   lt_cv_dlopen_self=cross
18659 else
18660   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18661   lt_status=$lt_dlunknown
18662   cat > conftest.$ac_ext <<EOF
18663 #line 18663 "configure"
18664 #include "confdefs.h"
18665
18666 #if HAVE_DLFCN_H
18667 #include <dlfcn.h>
18668 #endif
18669
18670 #include <stdio.h>
18671
18672 #ifdef RTLD_GLOBAL
18673 #  define LT_DLGLOBAL           RTLD_GLOBAL
18674 #else
18675 #  ifdef DL_GLOBAL
18676 #    define LT_DLGLOBAL         DL_GLOBAL
18677 #  else
18678 #    define LT_DLGLOBAL         0
18679 #  endif
18680 #endif
18681
18682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18683    find out it does not work in some platform. */
18684 #ifndef LT_DLLAZY_OR_NOW
18685 #  ifdef RTLD_LAZY
18686 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18687 #  else
18688 #    ifdef DL_LAZY
18689 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18690 #    else
18691 #      ifdef RTLD_NOW
18692 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18693 #      else
18694 #        ifdef DL_NOW
18695 #          define LT_DLLAZY_OR_NOW      DL_NOW
18696 #        else
18697 #          define LT_DLLAZY_OR_NOW      0
18698 #        endif
18699 #      endif
18700 #    endif
18701 #  endif
18702 #endif
18703
18704 #ifdef __cplusplus
18705 extern "C" void exit (int);
18706 #endif
18707
18708 void fnord() { int i=42;}
18709 int main ()
18710 {
18711   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18712   int status = $lt_dlunknown;
18713
18714   if (self)
18715     {
18716       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18717       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18718       /* dlclose (self); */
18719     }
18720
18721     exit (status);
18722 }
18723 EOF
18724   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725   (eval $ac_link) 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18729     (./conftest; exit; ) 2>/dev/null
18730     lt_status=$?
18731     case x$lt_status in
18732       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18733       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18734       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18735     esac
18736   else :
18737     # compilation failed
18738     lt_cv_dlopen_self=no
18739   fi
18740 fi
18741 rm -fr conftest*
18742
18743
18744 fi
18745 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18746 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18747
18748     if test "x$lt_cv_dlopen_self" = xyes; then
18749       LDFLAGS="$LDFLAGS $link_static_flag"
18750       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18751 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18752 if test "${lt_cv_dlopen_self_static+set}" = set; then
18753   echo $ECHO_N "(cached) $ECHO_C" >&6
18754 else
18755           if test "$cross_compiling" = yes; then :
18756   lt_cv_dlopen_self_static=cross
18757 else
18758   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18759   lt_status=$lt_dlunknown
18760   cat > conftest.$ac_ext <<EOF
18761 #line 18761 "configure"
18762 #include "confdefs.h"
18763
18764 #if HAVE_DLFCN_H
18765 #include <dlfcn.h>
18766 #endif
18767
18768 #include <stdio.h>
18769
18770 #ifdef RTLD_GLOBAL
18771 #  define LT_DLGLOBAL           RTLD_GLOBAL
18772 #else
18773 #  ifdef DL_GLOBAL
18774 #    define LT_DLGLOBAL         DL_GLOBAL
18775 #  else
18776 #    define LT_DLGLOBAL         0
18777 #  endif
18778 #endif
18779
18780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18781    find out it does not work in some platform. */
18782 #ifndef LT_DLLAZY_OR_NOW
18783 #  ifdef RTLD_LAZY
18784 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18785 #  else
18786 #    ifdef DL_LAZY
18787 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18788 #    else
18789 #      ifdef RTLD_NOW
18790 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18791 #      else
18792 #        ifdef DL_NOW
18793 #          define LT_DLLAZY_OR_NOW      DL_NOW
18794 #        else
18795 #          define LT_DLLAZY_OR_NOW      0
18796 #        endif
18797 #      endif
18798 #    endif
18799 #  endif
18800 #endif
18801
18802 #ifdef __cplusplus
18803 extern "C" void exit (int);
18804 #endif
18805
18806 void fnord() { int i=42;}
18807 int main ()
18808 {
18809   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18810   int status = $lt_dlunknown;
18811
18812   if (self)
18813     {
18814       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18815       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18816       /* dlclose (self); */
18817     }
18818
18819     exit (status);
18820 }
18821 EOF
18822   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18823   (eval $ac_link) 2>&5
18824   ac_status=$?
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18827     (./conftest; exit; ) 2>/dev/null
18828     lt_status=$?
18829     case x$lt_status in
18830       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18831       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18832       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18833     esac
18834   else :
18835     # compilation failed
18836     lt_cv_dlopen_self_static=no
18837   fi
18838 fi
18839 rm -fr conftest*
18840
18841
18842 fi
18843 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18844 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18845     fi
18846
18847     CPPFLAGS="$save_CPPFLAGS"
18848     LDFLAGS="$save_LDFLAGS"
18849     LIBS="$save_LIBS"
18850     ;;
18851   esac
18852
18853   case $lt_cv_dlopen_self in
18854   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18855   *) enable_dlopen_self=unknown ;;
18856   esac
18857
18858   case $lt_cv_dlopen_self_static in
18859   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18860   *) enable_dlopen_self_static=unknown ;;
18861   esac
18862 fi
18863
18864
18865 # The else clause should only fire when bootstrapping the
18866 # libtool distribution, otherwise you forgot to ship ltmain.sh
18867 # with your package, and you will get complaints that there are
18868 # no rules to generate ltmain.sh.
18869 if test -f "$ltmain"; then
18870   # See if we are running on zsh, and set the options which allow our commands through
18871   # without removal of \ escapes.
18872   if test -n "${ZSH_VERSION+set}" ; then
18873     setopt NO_GLOB_SUBST
18874   fi
18875   # Now quote all the things that may contain metacharacters while being
18876   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18877   # variables and quote the copies for generation of the libtool script.
18878   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18879     SED SHELL STRIP \
18880     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18881     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18882     deplibs_check_method reload_flag reload_cmds need_locks \
18883     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18884     lt_cv_sys_global_symbol_to_c_name_address \
18885     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18886     old_postinstall_cmds old_postuninstall_cmds \
18887     compiler_GCJ \
18888     CC_GCJ \
18889     LD_GCJ \
18890     lt_prog_compiler_wl_GCJ \
18891     lt_prog_compiler_pic_GCJ \
18892     lt_prog_compiler_static_GCJ \
18893     lt_prog_compiler_no_builtin_flag_GCJ \
18894     export_dynamic_flag_spec_GCJ \
18895     thread_safe_flag_spec_GCJ \
18896     whole_archive_flag_spec_GCJ \
18897     enable_shared_with_static_runtimes_GCJ \
18898     old_archive_cmds_GCJ \
18899     old_archive_from_new_cmds_GCJ \
18900     predep_objects_GCJ \
18901     postdep_objects_GCJ \
18902     predeps_GCJ \
18903     postdeps_GCJ \
18904     compiler_lib_search_path_GCJ \
18905     archive_cmds_GCJ \
18906     archive_expsym_cmds_GCJ \
18907     postinstall_cmds_GCJ \
18908     postuninstall_cmds_GCJ \
18909     old_archive_from_expsyms_cmds_GCJ \
18910     allow_undefined_flag_GCJ \
18911     no_undefined_flag_GCJ \
18912     export_symbols_cmds_GCJ \
18913     hardcode_libdir_flag_spec_GCJ \
18914     hardcode_libdir_flag_spec_ld_GCJ \
18915     hardcode_libdir_separator_GCJ \
18916     hardcode_automatic_GCJ \
18917     module_cmds_GCJ \
18918     module_expsym_cmds_GCJ \
18919     lt_cv_prog_compiler_c_o_GCJ \
18920     exclude_expsyms_GCJ \
18921     include_expsyms_GCJ; do
18922
18923     case $var in
18924     old_archive_cmds_GCJ | \
18925     old_archive_from_new_cmds_GCJ | \
18926     archive_cmds_GCJ | \
18927     archive_expsym_cmds_GCJ | \
18928     module_cmds_GCJ | \
18929     module_expsym_cmds_GCJ | \
18930     old_archive_from_expsyms_cmds_GCJ | \
18931     export_symbols_cmds_GCJ | \
18932     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18933     postinstall_cmds | postuninstall_cmds | \
18934     old_postinstall_cmds | old_postuninstall_cmds | \
18935     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18936       # Double-quote double-evaled strings.
18937       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18938       ;;
18939     *)
18940       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18941       ;;
18942     esac
18943   done
18944
18945   case $lt_echo in
18946   *'\$0 --fallback-echo"')
18947     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18948     ;;
18949   esac
18950
18951 cfgfile="$ofile"
18952
18953   cat <<__EOF__ >> "$cfgfile"
18954 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18955
18956 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18957
18958 # Shell to use when invoking shell scripts.
18959 SHELL=$lt_SHELL
18960
18961 # Whether or not to build shared libraries.
18962 build_libtool_libs=$enable_shared
18963
18964 # Whether or not to build static libraries.
18965 build_old_libs=$enable_static
18966
18967 # Whether or not to add -lc for building shared libraries.
18968 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18969
18970 # Whether or not to disallow shared libs when runtime libs are static
18971 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18972
18973 # Whether or not to optimize for fast installation.
18974 fast_install=$enable_fast_install
18975
18976 # The host system.
18977 host_alias=$host_alias
18978 host=$host
18979
18980 # An echo program that does not interpret backslashes.
18981 echo=$lt_echo
18982
18983 # The archiver.
18984 AR=$lt_AR
18985 AR_FLAGS=$lt_AR_FLAGS
18986
18987 # A C compiler.
18988 LTCC=$lt_LTCC
18989
18990 # A language-specific compiler.
18991 CC=$lt_compiler_GCJ
18992
18993 # Is the compiler the GNU C compiler?
18994 with_gcc=$GCC_GCJ
18995
18996 # An ERE matcher.
18997 EGREP=$lt_EGREP
18998
18999 # The linker used to build libraries.
19000 LD=$lt_LD_GCJ
19001
19002 # Whether we need hard or soft links.
19003 LN_S=$lt_LN_S
19004
19005 # A BSD-compatible nm program.
19006 NM=$lt_NM
19007
19008 # A symbol stripping program
19009 STRIP=$lt_STRIP
19010
19011 # Used to examine libraries when file_magic_cmd begins "file"
19012 MAGIC_CMD=$MAGIC_CMD
19013
19014 # Used on cygwin: DLL creation program.
19015 DLLTOOL="$DLLTOOL"
19016
19017 # Used on cygwin: object dumper.
19018 OBJDUMP="$OBJDUMP"
19019
19020 # Used on cygwin: assembler.
19021 AS="$AS"
19022
19023 # The name of the directory that contains temporary libtool files.
19024 objdir=$objdir
19025
19026 # How to create reloadable object files.
19027 reload_flag=$lt_reload_flag
19028 reload_cmds=$lt_reload_cmds
19029
19030 # How to pass a linker flag through the compiler.
19031 wl=$lt_lt_prog_compiler_wl_GCJ
19032
19033 # Object file suffix (normally "o").
19034 objext="$ac_objext"
19035
19036 # Old archive suffix (normally "a").
19037 libext="$libext"
19038
19039 # Shared library suffix (normally ".so").
19040 shrext_cmds='$shrext_cmds'
19041
19042 # Executable file suffix (normally "").
19043 exeext="$exeext"
19044
19045 # Additional compiler flags for building library objects.
19046 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19047 pic_mode=$pic_mode
19048
19049 # What is the maximum length of a command?
19050 max_cmd_len=$lt_cv_sys_max_cmd_len
19051
19052 # Does compiler simultaneously support -c and -o options?
19053 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19054
19055 # Must we lock files when doing compilation ?
19056 need_locks=$lt_need_locks
19057
19058 # Do we need the lib prefix for modules?
19059 need_lib_prefix=$need_lib_prefix
19060
19061 # Do we need a version for libraries?
19062 need_version=$need_version
19063
19064 # Whether dlopen is supported.
19065 dlopen_support=$enable_dlopen
19066
19067 # Whether dlopen of programs is supported.
19068 dlopen_self=$enable_dlopen_self
19069
19070 # Whether dlopen of statically linked programs is supported.
19071 dlopen_self_static=$enable_dlopen_self_static
19072
19073 # Compiler flag to prevent dynamic linking.
19074 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19075
19076 # Compiler flag to turn off builtin functions.
19077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19078
19079 # Compiler flag to allow reflexive dlopens.
19080 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19081
19082 # Compiler flag to generate shared objects directly from archives.
19083 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19084
19085 # Compiler flag to generate thread-safe objects.
19086 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19087
19088 # Library versioning type.
19089 version_type=$version_type
19090
19091 # Format of library name prefix.
19092 libname_spec=$lt_libname_spec
19093
19094 # List of archive names.  First name is the real one, the rest are links.
19095 # The last name is the one that the linker finds with -lNAME.
19096 library_names_spec=$lt_library_names_spec
19097
19098 # The coded name of the library, if different from the real name.
19099 soname_spec=$lt_soname_spec
19100
19101 # Commands used to build and install an old-style archive.
19102 RANLIB=$lt_RANLIB
19103 old_archive_cmds=$lt_old_archive_cmds_GCJ
19104 old_postinstall_cmds=$lt_old_postinstall_cmds
19105 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19106
19107 # Create an old-style archive from a shared archive.
19108 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19109
19110 # Create a temporary old-style archive to link instead of a shared archive.
19111 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19112
19113 # Commands used to build and install a shared archive.
19114 archive_cmds=$lt_archive_cmds_GCJ
19115 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19116 postinstall_cmds=$lt_postinstall_cmds
19117 postuninstall_cmds=$lt_postuninstall_cmds
19118
19119 # Commands used to build a loadable module (assumed same as above if empty)
19120 module_cmds=$lt_module_cmds_GCJ
19121 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19122
19123 # Commands to strip libraries.
19124 old_striplib=$lt_old_striplib
19125 striplib=$lt_striplib
19126
19127 # Dependencies to place before the objects being linked to create a
19128 # shared library.
19129 predep_objects=$lt_predep_objects_GCJ
19130
19131 # Dependencies to place after the objects being linked to create a
19132 # shared library.
19133 postdep_objects=$lt_postdep_objects_GCJ
19134
19135 # Dependencies to place before the objects being linked to create a
19136 # shared library.
19137 predeps=$lt_predeps_GCJ
19138
19139 # Dependencies to place after the objects being linked to create a
19140 # shared library.
19141 postdeps=$lt_postdeps_GCJ
19142
19143 # The library search path used internally by the compiler when linking
19144 # a shared library.
19145 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19146
19147 # Method to check whether dependent libraries are shared objects.
19148 deplibs_check_method=$lt_deplibs_check_method
19149
19150 # Command to use when deplibs_check_method == file_magic.
19151 file_magic_cmd=$lt_file_magic_cmd
19152
19153 # Flag that allows shared libraries with undefined symbols to be built.
19154 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19155
19156 # Flag that forces no undefined symbols.
19157 no_undefined_flag=$lt_no_undefined_flag_GCJ
19158
19159 # Commands used to finish a libtool library installation in a directory.
19160 finish_cmds=$lt_finish_cmds
19161
19162 # Same as above, but a single script fragment to be evaled but not shown.
19163 finish_eval=$lt_finish_eval
19164
19165 # Take the output of nm and produce a listing of raw symbols and C names.
19166 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19167
19168 # Transform the output of nm in a proper C declaration
19169 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19170
19171 # Transform the output of nm in a C name address pair
19172 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19173
19174 # This is the shared library runtime path variable.
19175 runpath_var=$runpath_var
19176
19177 # This is the shared library path variable.
19178 shlibpath_var=$shlibpath_var
19179
19180 # Is shlibpath searched before the hard-coded library search path?
19181 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19182
19183 # How to hardcode a shared library path into an executable.
19184 hardcode_action=$hardcode_action_GCJ
19185
19186 # Whether we should hardcode library paths into libraries.
19187 hardcode_into_libs=$hardcode_into_libs
19188
19189 # Flag to hardcode \$libdir into a binary during linking.
19190 # This must work even if \$libdir does not exist.
19191 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19192
19193 # If ld is used when linking, flag to hardcode \$libdir into
19194 # a binary during linking. This must work even if \$libdir does
19195 # not exist.
19196 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19197
19198 # Whether we need a single -rpath flag with a separated argument.
19199 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19200
19201 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19202 # resulting binary.
19203 hardcode_direct=$hardcode_direct_GCJ
19204
19205 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19206 # resulting binary.
19207 hardcode_minus_L=$hardcode_minus_L_GCJ
19208
19209 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19210 # the resulting binary.
19211 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19212
19213 # Set to yes if building a shared library automatically hardcodes DIR into the library
19214 # and all subsequent libraries and executables linked against it.
19215 hardcode_automatic=$hardcode_automatic_GCJ
19216
19217 # Variables whose values should be saved in libtool wrapper scripts and
19218 # restored at relink time.
19219 variables_saved_for_relink="$variables_saved_for_relink"
19220
19221 # Whether libtool must link a program against all its dependency libraries.
19222 link_all_deplibs=$link_all_deplibs_GCJ
19223
19224 # Compile-time system search path for libraries
19225 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19226
19227 # Run-time system search path for libraries
19228 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19229
19230 # Fix the shell variable \$srcfile for the compiler.
19231 fix_srcfile_path="$fix_srcfile_path_GCJ"
19232
19233 # Set to yes if exported symbols are required.
19234 always_export_symbols=$always_export_symbols_GCJ
19235
19236 # The commands to list exported symbols.
19237 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19238
19239 # The commands to extract the exported symbol list from a shared archive.
19240 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19241
19242 # Symbols that should not be listed in the preloaded symbols.
19243 exclude_expsyms=$lt_exclude_expsyms_GCJ
19244
19245 # Symbols that must always be exported.
19246 include_expsyms=$lt_include_expsyms_GCJ
19247
19248 # ### END LIBTOOL TAG CONFIG: $tagname
19249
19250 __EOF__
19251
19252
19253 else
19254   # If there is no Makefile yet, we rely on a make rule to execute
19255   # `config.status --recheck' to rerun these tests and create the
19256   # libtool script then.
19257   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19258   if test -f "$ltmain_in"; then
19259     test -f Makefile && make "$ltmain"
19260   fi
19261 fi
19262
19263
19264 ac_ext=c
19265 ac_cpp='$CPP $CPPFLAGS'
19266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19269
19270 CC="$lt_save_CC"
19271
19272         else
19273           tagname=""
19274         fi
19275         ;;
19276
19277       RC)
19278         ac_ext=c
19279 ac_cpp='$CPP $CPPFLAGS'
19280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19283
19284
19285 # Source file extension for RC test sources.
19286 ac_ext=rc
19287
19288 # Object file extension for compiled RC test sources.
19289 objext=o
19290 objext_RC=$objext
19291
19292 # Code to be used in simple compile tests
19293 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19294
19295 # Code to be used in simple link tests
19296 lt_simple_link_test_code="$lt_simple_compile_test_code"
19297
19298 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19299
19300 # If no C compiler was specified, use CC.
19301 LTCC=${LTCC-"$CC"}
19302
19303 # Allow CC to be a program name with arguments.
19304 compiler=$CC
19305
19306
19307 # Allow CC to be a program name with arguments.
19308 lt_save_CC="$CC"
19309 CC=${RC-"windres"}
19310 compiler=$CC
19311 compiler_RC=$CC
19312 lt_cv_prog_compiler_c_o_RC=yes
19313
19314 # The else clause should only fire when bootstrapping the
19315 # libtool distribution, otherwise you forgot to ship ltmain.sh
19316 # with your package, and you will get complaints that there are
19317 # no rules to generate ltmain.sh.
19318 if test -f "$ltmain"; then
19319   # See if we are running on zsh, and set the options which allow our commands through
19320   # without removal of \ escapes.
19321   if test -n "${ZSH_VERSION+set}" ; then
19322     setopt NO_GLOB_SUBST
19323   fi
19324   # Now quote all the things that may contain metacharacters while being
19325   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19326   # variables and quote the copies for generation of the libtool script.
19327   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19328     SED SHELL STRIP \
19329     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19330     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19331     deplibs_check_method reload_flag reload_cmds need_locks \
19332     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19333     lt_cv_sys_global_symbol_to_c_name_address \
19334     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19335     old_postinstall_cmds old_postuninstall_cmds \
19336     compiler_RC \
19337     CC_RC \
19338     LD_RC \
19339     lt_prog_compiler_wl_RC \
19340     lt_prog_compiler_pic_RC \
19341     lt_prog_compiler_static_RC \
19342     lt_prog_compiler_no_builtin_flag_RC \
19343     export_dynamic_flag_spec_RC \
19344     thread_safe_flag_spec_RC \
19345     whole_archive_flag_spec_RC \
19346     enable_shared_with_static_runtimes_RC \
19347     old_archive_cmds_RC \
19348     old_archive_from_new_cmds_RC \
19349     predep_objects_RC \
19350     postdep_objects_RC \
19351     predeps_RC \
19352     postdeps_RC \
19353     compiler_lib_search_path_RC \
19354     archive_cmds_RC \
19355     archive_expsym_cmds_RC \
19356     postinstall_cmds_RC \
19357     postuninstall_cmds_RC \
19358     old_archive_from_expsyms_cmds_RC \
19359     allow_undefined_flag_RC \
19360     no_undefined_flag_RC \
19361     export_symbols_cmds_RC \
19362     hardcode_libdir_flag_spec_RC \
19363     hardcode_libdir_flag_spec_ld_RC \
19364     hardcode_libdir_separator_RC \
19365     hardcode_automatic_RC \
19366     module_cmds_RC \
19367     module_expsym_cmds_RC \
19368     lt_cv_prog_compiler_c_o_RC \
19369     exclude_expsyms_RC \
19370     include_expsyms_RC; do
19371
19372     case $var in
19373     old_archive_cmds_RC | \
19374     old_archive_from_new_cmds_RC | \
19375     archive_cmds_RC | \
19376     archive_expsym_cmds_RC | \
19377     module_cmds_RC | \
19378     module_expsym_cmds_RC | \
19379     old_archive_from_expsyms_cmds_RC | \
19380     export_symbols_cmds_RC | \
19381     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19382     postinstall_cmds | postuninstall_cmds | \
19383     old_postinstall_cmds | old_postuninstall_cmds | \
19384     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19385       # Double-quote double-evaled strings.
19386       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19387       ;;
19388     *)
19389       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19390       ;;
19391     esac
19392   done
19393
19394   case $lt_echo in
19395   *'\$0 --fallback-echo"')
19396     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19397     ;;
19398   esac
19399
19400 cfgfile="$ofile"
19401
19402   cat <<__EOF__ >> "$cfgfile"
19403 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19404
19405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19406
19407 # Shell to use when invoking shell scripts.
19408 SHELL=$lt_SHELL
19409
19410 # Whether or not to build shared libraries.
19411 build_libtool_libs=$enable_shared
19412
19413 # Whether or not to build static libraries.
19414 build_old_libs=$enable_static
19415
19416 # Whether or not to add -lc for building shared libraries.
19417 build_libtool_need_lc=$archive_cmds_need_lc_RC
19418
19419 # Whether or not to disallow shared libs when runtime libs are static
19420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19421
19422 # Whether or not to optimize for fast installation.
19423 fast_install=$enable_fast_install
19424
19425 # The host system.
19426 host_alias=$host_alias
19427 host=$host
19428
19429 # An echo program that does not interpret backslashes.
19430 echo=$lt_echo
19431
19432 # The archiver.
19433 AR=$lt_AR
19434 AR_FLAGS=$lt_AR_FLAGS
19435
19436 # A C compiler.
19437 LTCC=$lt_LTCC
19438
19439 # A language-specific compiler.
19440 CC=$lt_compiler_RC
19441
19442 # Is the compiler the GNU C compiler?
19443 with_gcc=$GCC_RC
19444
19445 # An ERE matcher.
19446 EGREP=$lt_EGREP
19447
19448 # The linker used to build libraries.
19449 LD=$lt_LD_RC
19450
19451 # Whether we need hard or soft links.
19452 LN_S=$lt_LN_S
19453
19454 # A BSD-compatible nm program.
19455 NM=$lt_NM
19456
19457 # A symbol stripping program
19458 STRIP=$lt_STRIP
19459
19460 # Used to examine libraries when file_magic_cmd begins "file"
19461 MAGIC_CMD=$MAGIC_CMD
19462
19463 # Used on cygwin: DLL creation program.
19464 DLLTOOL="$DLLTOOL"
19465
19466 # Used on cygwin: object dumper.
19467 OBJDUMP="$OBJDUMP"
19468
19469 # Used on cygwin: assembler.
19470 AS="$AS"
19471
19472 # The name of the directory that contains temporary libtool files.
19473 objdir=$objdir
19474
19475 # How to create reloadable object files.
19476 reload_flag=$lt_reload_flag
19477 reload_cmds=$lt_reload_cmds
19478
19479 # How to pass a linker flag through the compiler.
19480 wl=$lt_lt_prog_compiler_wl_RC
19481
19482 # Object file suffix (normally "o").
19483 objext="$ac_objext"
19484
19485 # Old archive suffix (normally "a").
19486 libext="$libext"
19487
19488 # Shared library suffix (normally ".so").
19489 shrext_cmds='$shrext_cmds'
19490
19491 # Executable file suffix (normally "").
19492 exeext="$exeext"
19493
19494 # Additional compiler flags for building library objects.
19495 pic_flag=$lt_lt_prog_compiler_pic_RC
19496 pic_mode=$pic_mode
19497
19498 # What is the maximum length of a command?
19499 max_cmd_len=$lt_cv_sys_max_cmd_len
19500
19501 # Does compiler simultaneously support -c and -o options?
19502 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19503
19504 # Must we lock files when doing compilation ?
19505 need_locks=$lt_need_locks
19506
19507 # Do we need the lib prefix for modules?
19508 need_lib_prefix=$need_lib_prefix
19509
19510 # Do we need a version for libraries?
19511 need_version=$need_version
19512
19513 # Whether dlopen is supported.
19514 dlopen_support=$enable_dlopen
19515
19516 # Whether dlopen of programs is supported.
19517 dlopen_self=$enable_dlopen_self
19518
19519 # Whether dlopen of statically linked programs is supported.
19520 dlopen_self_static=$enable_dlopen_self_static
19521
19522 # Compiler flag to prevent dynamic linking.
19523 link_static_flag=$lt_lt_prog_compiler_static_RC
19524
19525 # Compiler flag to turn off builtin functions.
19526 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19527
19528 # Compiler flag to allow reflexive dlopens.
19529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19530
19531 # Compiler flag to generate shared objects directly from archives.
19532 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19533
19534 # Compiler flag to generate thread-safe objects.
19535 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19536
19537 # Library versioning type.
19538 version_type=$version_type
19539
19540 # Format of library name prefix.
19541 libname_spec=$lt_libname_spec
19542
19543 # List of archive names.  First name is the real one, the rest are links.
19544 # The last name is the one that the linker finds with -lNAME.
19545 library_names_spec=$lt_library_names_spec
19546
19547 # The coded name of the library, if different from the real name.
19548 soname_spec=$lt_soname_spec
19549
19550 # Commands used to build and install an old-style archive.
19551 RANLIB=$lt_RANLIB
19552 old_archive_cmds=$lt_old_archive_cmds_RC
19553 old_postinstall_cmds=$lt_old_postinstall_cmds
19554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19555
19556 # Create an old-style archive from a shared archive.
19557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19558
19559 # Create a temporary old-style archive to link instead of a shared archive.
19560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19561
19562 # Commands used to build and install a shared archive.
19563 archive_cmds=$lt_archive_cmds_RC
19564 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19565 postinstall_cmds=$lt_postinstall_cmds
19566 postuninstall_cmds=$lt_postuninstall_cmds
19567
19568 # Commands used to build a loadable module (assumed same as above if empty)
19569 module_cmds=$lt_module_cmds_RC
19570 module_expsym_cmds=$lt_module_expsym_cmds_RC
19571
19572 # Commands to strip libraries.
19573 old_striplib=$lt_old_striplib
19574 striplib=$lt_striplib
19575
19576 # Dependencies to place before the objects being linked to create a
19577 # shared library.
19578 predep_objects=$lt_predep_objects_RC
19579
19580 # Dependencies to place after the objects being linked to create a
19581 # shared library.
19582 postdep_objects=$lt_postdep_objects_RC
19583
19584 # Dependencies to place before the objects being linked to create a
19585 # shared library.
19586 predeps=$lt_predeps_RC
19587
19588 # Dependencies to place after the objects being linked to create a
19589 # shared library.
19590 postdeps=$lt_postdeps_RC
19591
19592 # The library search path used internally by the compiler when linking
19593 # a shared library.
19594 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19595
19596 # Method to check whether dependent libraries are shared objects.
19597 deplibs_check_method=$lt_deplibs_check_method
19598
19599 # Command to use when deplibs_check_method == file_magic.
19600 file_magic_cmd=$lt_file_magic_cmd
19601
19602 # Flag that allows shared libraries with undefined symbols to be built.
19603 allow_undefined_flag=$lt_allow_undefined_flag_RC
19604
19605 # Flag that forces no undefined symbols.
19606 no_undefined_flag=$lt_no_undefined_flag_RC
19607
19608 # Commands used to finish a libtool library installation in a directory.
19609 finish_cmds=$lt_finish_cmds
19610
19611 # Same as above, but a single script fragment to be evaled but not shown.
19612 finish_eval=$lt_finish_eval
19613
19614 # Take the output of nm and produce a listing of raw symbols and C names.
19615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19616
19617 # Transform the output of nm in a proper C declaration
19618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19619
19620 # Transform the output of nm in a C name address pair
19621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19622
19623 # This is the shared library runtime path variable.
19624 runpath_var=$runpath_var
19625
19626 # This is the shared library path variable.
19627 shlibpath_var=$shlibpath_var
19628
19629 # Is shlibpath searched before the hard-coded library search path?
19630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19631
19632 # How to hardcode a shared library path into an executable.
19633 hardcode_action=$hardcode_action_RC
19634
19635 # Whether we should hardcode library paths into libraries.
19636 hardcode_into_libs=$hardcode_into_libs
19637
19638 # Flag to hardcode \$libdir into a binary during linking.
19639 # This must work even if \$libdir does not exist.
19640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19641
19642 # If ld is used when linking, flag to hardcode \$libdir into
19643 # a binary during linking. This must work even if \$libdir does
19644 # not exist.
19645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19646
19647 # Whether we need a single -rpath flag with a separated argument.
19648 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19649
19650 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19651 # resulting binary.
19652 hardcode_direct=$hardcode_direct_RC
19653
19654 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19655 # resulting binary.
19656 hardcode_minus_L=$hardcode_minus_L_RC
19657
19658 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19659 # the resulting binary.
19660 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19661
19662 # Set to yes if building a shared library automatically hardcodes DIR into the library
19663 # and all subsequent libraries and executables linked against it.
19664 hardcode_automatic=$hardcode_automatic_RC
19665
19666 # Variables whose values should be saved in libtool wrapper scripts and
19667 # restored at relink time.
19668 variables_saved_for_relink="$variables_saved_for_relink"
19669
19670 # Whether libtool must link a program against all its dependency libraries.
19671 link_all_deplibs=$link_all_deplibs_RC
19672
19673 # Compile-time system search path for libraries
19674 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19675
19676 # Run-time system search path for libraries
19677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19678
19679 # Fix the shell variable \$srcfile for the compiler.
19680 fix_srcfile_path="$fix_srcfile_path_RC"
19681
19682 # Set to yes if exported symbols are required.
19683 always_export_symbols=$always_export_symbols_RC
19684
19685 # The commands to list exported symbols.
19686 export_symbols_cmds=$lt_export_symbols_cmds_RC
19687
19688 # The commands to extract the exported symbol list from a shared archive.
19689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19690
19691 # Symbols that should not be listed in the preloaded symbols.
19692 exclude_expsyms=$lt_exclude_expsyms_RC
19693
19694 # Symbols that must always be exported.
19695 include_expsyms=$lt_include_expsyms_RC
19696
19697 # ### END LIBTOOL TAG CONFIG: $tagname
19698
19699 __EOF__
19700
19701
19702 else
19703   # If there is no Makefile yet, we rely on a make rule to execute
19704   # `config.status --recheck' to rerun these tests and create the
19705   # libtool script then.
19706   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19707   if test -f "$ltmain_in"; then
19708     test -f Makefile && make "$ltmain"
19709   fi
19710 fi
19711
19712
19713 ac_ext=c
19714 ac_cpp='$CPP $CPPFLAGS'
19715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19718
19719 CC="$lt_save_CC"
19720
19721         ;;
19722
19723       *)
19724         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19725 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19726    { (exit 1); exit 1; }; }
19727         ;;
19728       esac
19729
19730       # Append the new tag name to the list of available tags.
19731       if test -n "$tagname" ; then
19732       available_tags="$available_tags $tagname"
19733     fi
19734     fi
19735   done
19736   IFS="$lt_save_ifs"
19737
19738   # Now substitute the updated list of available tags.
19739   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19740     mv "${ofile}T" "$ofile"
19741     chmod +x "$ofile"
19742   else
19743     rm -f "${ofile}T"
19744     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19745 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19746    { (exit 1); exit 1; }; }
19747   fi
19748 fi
19749
19750
19751
19752 # This can be used to rebuild libtool when needed
19753 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19754
19755 # Always use our own libtool.
19756 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
19757
19758 # Prevent multiple expansion
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780 echo "$as_me:$LINENO: checking for GNU make" >&5
19781 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
19782 if test "${llvm_cv_gnu_make_command+set}" = set; then
19783   echo $ECHO_N "(cached) $ECHO_C" >&6
19784 else
19785   llvm_cv_gnu_make_command=''
19786  for a in "$MAKE" make gmake gnumake ; do
19787   if test -z "$a" ; then continue ; fi ;
19788   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
19789   then
19790    llvm_cv_gnu_make_command=$a ;
19791    break;
19792   fi
19793  done
19794 fi
19795 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
19796 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
19797  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
19798    ifGNUmake='' ;
19799  else
19800    ifGNUmake='#' ;
19801    echo "$as_me:$LINENO: result: \"Not found\"" >&5
19802 echo "${ECHO_T}\"Not found\"" >&6;
19803  fi
19804
19805
19806 echo "$as_me:$LINENO: checking whether ln -s works" >&5
19807 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
19808 LN_S=$as_ln_s
19809 if test "$LN_S" = "ln -s"; then
19810   echo "$as_me:$LINENO: result: yes" >&5
19811 echo "${ECHO_T}yes" >&6
19812 else
19813   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19814 echo "${ECHO_T}no, using $LN_S" >&6
19815 fi
19816
19817 # Extract the first word of "date", so it can be a program name with args.
19818 set dummy date; ac_word=$2
19819 echo "$as_me:$LINENO: checking for $ac_word" >&5
19820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19821 if test "${ac_cv_path_DATE+set}" = set; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   case $DATE in
19825   [\\/]* | ?:[\\/]*)
19826   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
19827   ;;
19828   *)
19829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19830 for as_dir in $PATH
19831 do
19832   IFS=$as_save_IFS
19833   test -z "$as_dir" && as_dir=.
19834   for ac_exec_ext in '' $ac_executable_extensions; do
19835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19836     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
19837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19838     break 2
19839   fi
19840 done
19841 done
19842
19843   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
19844   ;;
19845 esac
19846 fi
19847 DATE=$ac_cv_path_DATE
19848
19849 if test -n "$DATE"; then
19850   echo "$as_me:$LINENO: result: $DATE" >&5
19851 echo "${ECHO_T}$DATE" >&6
19852 else
19853   echo "$as_me:$LINENO: result: no" >&5
19854 echo "${ECHO_T}no" >&6
19855 fi
19856
19857 # Extract the first word of "find", so it can be a program name with args.
19858 set dummy find; ac_word=$2
19859 echo "$as_me:$LINENO: checking for $ac_word" >&5
19860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19861 if test "${ac_cv_path_FIND+set}" = set; then
19862   echo $ECHO_N "(cached) $ECHO_C" >&6
19863 else
19864   case $FIND in
19865   [\\/]* | ?:[\\/]*)
19866   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
19867   ;;
19868   *)
19869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19870 for as_dir in $PATH
19871 do
19872   IFS=$as_save_IFS
19873   test -z "$as_dir" && as_dir=.
19874   for ac_exec_ext in '' $ac_executable_extensions; do
19875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19876     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
19877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19878     break 2
19879   fi
19880 done
19881 done
19882
19883   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
19884   ;;
19885 esac
19886 fi
19887 FIND=$ac_cv_path_FIND
19888
19889 if test -n "$FIND"; then
19890   echo "$as_me:$LINENO: result: $FIND" >&5
19891 echo "${ECHO_T}$FIND" >&6
19892 else
19893   echo "$as_me:$LINENO: result: no" >&5
19894 echo "${ECHO_T}no" >&6
19895 fi
19896
19897 # Extract the first word of "grep", so it can be a program name with args.
19898 set dummy grep; ac_word=$2
19899 echo "$as_me:$LINENO: checking for $ac_word" >&5
19900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19901 if test "${ac_cv_path_GREP+set}" = set; then
19902   echo $ECHO_N "(cached) $ECHO_C" >&6
19903 else
19904   case $GREP in
19905   [\\/]* | ?:[\\/]*)
19906   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19907   ;;
19908   *)
19909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19910 for as_dir in $PATH
19911 do
19912   IFS=$as_save_IFS
19913   test -z "$as_dir" && as_dir=.
19914   for ac_exec_ext in '' $ac_executable_extensions; do
19915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19916     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19918     break 2
19919   fi
19920 done
19921 done
19922
19923   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
19924   ;;
19925 esac
19926 fi
19927 GREP=$ac_cv_path_GREP
19928
19929 if test -n "$GREP"; then
19930   echo "$as_me:$LINENO: result: $GREP" >&5
19931 echo "${ECHO_T}$GREP" >&6
19932 else
19933   echo "$as_me:$LINENO: result: no" >&5
19934 echo "${ECHO_T}no" >&6
19935 fi
19936
19937 # Extract the first word of "mkdir", so it can be a program name with args.
19938 set dummy mkdir; ac_word=$2
19939 echo "$as_me:$LINENO: checking for $ac_word" >&5
19940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19941 if test "${ac_cv_path_MKDIR+set}" = set; then
19942   echo $ECHO_N "(cached) $ECHO_C" >&6
19943 else
19944   case $MKDIR in
19945   [\\/]* | ?:[\\/]*)
19946   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
19947   ;;
19948   *)
19949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19950 for as_dir in $PATH
19951 do
19952   IFS=$as_save_IFS
19953   test -z "$as_dir" && as_dir=.
19954   for ac_exec_ext in '' $ac_executable_extensions; do
19955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19956     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
19957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19958     break 2
19959   fi
19960 done
19961 done
19962
19963   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
19964   ;;
19965 esac
19966 fi
19967 MKDIR=$ac_cv_path_MKDIR
19968
19969 if test -n "$MKDIR"; then
19970   echo "$as_me:$LINENO: result: $MKDIR" >&5
19971 echo "${ECHO_T}$MKDIR" >&6
19972 else
19973   echo "$as_me:$LINENO: result: no" >&5
19974 echo "${ECHO_T}no" >&6
19975 fi
19976
19977 # Extract the first word of "mv", so it can be a program name with args.
19978 set dummy mv; ac_word=$2
19979 echo "$as_me:$LINENO: checking for $ac_word" >&5
19980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19981 if test "${ac_cv_path_MV+set}" = set; then
19982   echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984   case $MV in
19985   [\\/]* | ?:[\\/]*)
19986   ac_cv_path_MV="$MV" # Let the user override the test with a path.
19987   ;;
19988   *)
19989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19990 for as_dir in $PATH
19991 do
19992   IFS=$as_save_IFS
19993   test -z "$as_dir" && as_dir=.
19994   for ac_exec_ext in '' $ac_executable_extensions; do
19995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19996     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
19997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19998     break 2
19999   fi
20000 done
20001 done
20002
20003   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
20004   ;;
20005 esac
20006 fi
20007 MV=$ac_cv_path_MV
20008
20009 if test -n "$MV"; then
20010   echo "$as_me:$LINENO: result: $MV" >&5
20011 echo "${ECHO_T}$MV" >&6
20012 else
20013   echo "$as_me:$LINENO: result: no" >&5
20014 echo "${ECHO_T}no" >&6
20015 fi
20016
20017 # Extract the first word of "pax", so it can be a program name with args.
20018 set dummy pax; ac_word=$2
20019 echo "$as_me:$LINENO: checking for $ac_word" >&5
20020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20021 if test "${ac_cv_path_PAX+set}" = set; then
20022   echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024   case $PAX in
20025   [\\/]* | ?:[\\/]*)
20026   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
20027   ;;
20028   *)
20029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20030 for as_dir in $PATH
20031 do
20032   IFS=$as_save_IFS
20033   test -z "$as_dir" && as_dir=.
20034   for ac_exec_ext in '' $ac_executable_extensions; do
20035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20036     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
20037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20038     break 2
20039   fi
20040 done
20041 done
20042
20043   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
20044   ;;
20045 esac
20046 fi
20047 PAX=$ac_cv_path_PAX
20048
20049 if test -n "$PAX"; then
20050   echo "$as_me:$LINENO: result: $PAX" >&5
20051 echo "${ECHO_T}$PAX" >&6
20052 else
20053   echo "$as_me:$LINENO: result: no" >&5
20054 echo "${ECHO_T}no" >&6
20055 fi
20056
20057 if test -n "$ac_tool_prefix"; then
20058   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20060 echo "$as_me:$LINENO: checking for $ac_word" >&5
20061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20062 if test "${ac_cv_prog_RANLIB+set}" = set; then
20063   echo $ECHO_N "(cached) $ECHO_C" >&6
20064 else
20065   if test -n "$RANLIB"; then
20066   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20067 else
20068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20069 for as_dir in $PATH
20070 do
20071   IFS=$as_save_IFS
20072   test -z "$as_dir" && as_dir=.
20073   for ac_exec_ext in '' $ac_executable_extensions; do
20074   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20075     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20077     break 2
20078   fi
20079 done
20080 done
20081
20082 fi
20083 fi
20084 RANLIB=$ac_cv_prog_RANLIB
20085 if test -n "$RANLIB"; then
20086   echo "$as_me:$LINENO: result: $RANLIB" >&5
20087 echo "${ECHO_T}$RANLIB" >&6
20088 else
20089   echo "$as_me:$LINENO: result: no" >&5
20090 echo "${ECHO_T}no" >&6
20091 fi
20092
20093 fi
20094 if test -z "$ac_cv_prog_RANLIB"; then
20095   ac_ct_RANLIB=$RANLIB
20096   # Extract the first word of "ranlib", so it can be a program name with args.
20097 set dummy ranlib; ac_word=$2
20098 echo "$as_me:$LINENO: checking for $ac_word" >&5
20099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20100 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20101   echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103   if test -n "$ac_ct_RANLIB"; then
20104   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20105 else
20106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20107 for as_dir in $PATH
20108 do
20109   IFS=$as_save_IFS
20110   test -z "$as_dir" && as_dir=.
20111   for ac_exec_ext in '' $ac_executable_extensions; do
20112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20113     ac_cv_prog_ac_ct_RANLIB="ranlib"
20114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20115     break 2
20116   fi
20117 done
20118 done
20119
20120   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
20121 fi
20122 fi
20123 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20124 if test -n "$ac_ct_RANLIB"; then
20125   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
20126 echo "${ECHO_T}$ac_ct_RANLIB" >&6
20127 else
20128   echo "$as_me:$LINENO: result: no" >&5
20129 echo "${ECHO_T}no" >&6
20130 fi
20131
20132   RANLIB=$ac_ct_RANLIB
20133 else
20134   RANLIB="$ac_cv_prog_RANLIB"
20135 fi
20136
20137 # Extract the first word of "rm", so it can be a program name with args.
20138 set dummy rm; ac_word=$2
20139 echo "$as_me:$LINENO: checking for $ac_word" >&5
20140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20141 if test "${ac_cv_path_RM+set}" = set; then
20142   echo $ECHO_N "(cached) $ECHO_C" >&6
20143 else
20144   case $RM in
20145   [\\/]* | ?:[\\/]*)
20146   ac_cv_path_RM="$RM" # Let the user override the test with a path.
20147   ;;
20148   *)
20149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20150 for as_dir in $PATH
20151 do
20152   IFS=$as_save_IFS
20153   test -z "$as_dir" && as_dir=.
20154   for ac_exec_ext in '' $ac_executable_extensions; do
20155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20156     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
20157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20158     break 2
20159   fi
20160 done
20161 done
20162
20163   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
20164   ;;
20165 esac
20166 fi
20167 RM=$ac_cv_path_RM
20168
20169 if test -n "$RM"; then
20170   echo "$as_me:$LINENO: result: $RM" >&5
20171 echo "${ECHO_T}$RM" >&6
20172 else
20173   echo "$as_me:$LINENO: result: no" >&5
20174 echo "${ECHO_T}no" >&6
20175 fi
20176
20177 # Extract the first word of "sed", so it can be a program name with args.
20178 set dummy sed; ac_word=$2
20179 echo "$as_me:$LINENO: checking for $ac_word" >&5
20180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20181 if test "${ac_cv_path_SED+set}" = set; then
20182   echo $ECHO_N "(cached) $ECHO_C" >&6
20183 else
20184   case $SED in
20185   [\\/]* | ?:[\\/]*)
20186   ac_cv_path_SED="$SED" # Let the user override the test with a path.
20187   ;;
20188   *)
20189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20190 for as_dir in $PATH
20191 do
20192   IFS=$as_save_IFS
20193   test -z "$as_dir" && as_dir=.
20194   for ac_exec_ext in '' $ac_executable_extensions; do
20195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20196     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
20197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20198     break 2
20199   fi
20200 done
20201 done
20202
20203   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
20204   ;;
20205 esac
20206 fi
20207 SED=$ac_cv_path_SED
20208
20209 if test -n "$SED"; then
20210   echo "$as_me:$LINENO: result: $SED" >&5
20211 echo "${ECHO_T}$SED" >&6
20212 else
20213   echo "$as_me:$LINENO: result: no" >&5
20214 echo "${ECHO_T}no" >&6
20215 fi
20216
20217 # Extract the first word of "tar", so it can be a program name with args.
20218 set dummy tar; ac_word=$2
20219 echo "$as_me:$LINENO: checking for $ac_word" >&5
20220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20221 if test "${ac_cv_path_TAR+set}" = set; then
20222   echo $ECHO_N "(cached) $ECHO_C" >&6
20223 else
20224   case $TAR in
20225   [\\/]* | ?:[\\/]*)
20226   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
20227   ;;
20228   *)
20229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20230 for as_dir in $PATH
20231 do
20232   IFS=$as_save_IFS
20233   test -z "$as_dir" && as_dir=.
20234   for ac_exec_ext in '' $ac_executable_extensions; do
20235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20236     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
20237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20238     break 2
20239   fi
20240 done
20241 done
20242
20243   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
20244   ;;
20245 esac
20246 fi
20247 TAR=$ac_cv_path_TAR
20248
20249 if test -n "$TAR"; then
20250   echo "$as_me:$LINENO: result: $TAR" >&5
20251 echo "${ECHO_T}$TAR" >&6
20252 else
20253   echo "$as_me:$LINENO: result: no" >&5
20254 echo "${ECHO_T}no" >&6
20255 fi
20256
20257
20258 # Find a good install program.  We prefer a C program (faster),
20259 # so one script is as good as another.  But avoid the broken or
20260 # incompatible versions:
20261 # SysV /etc/install, /usr/sbin/install
20262 # SunOS /usr/etc/install
20263 # IRIX /sbin/install
20264 # AIX /bin/install
20265 # AmigaOS /C/install, which installs bootblocks on floppy discs
20266 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20267 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20268 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20269 # OS/2's system install, which has a completely different semantic
20270 # ./install, which can be erroneously created by make from ./install.sh.
20271 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20272 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
20273 if test -z "$INSTALL"; then
20274 if test "${ac_cv_path_install+set}" = set; then
20275   echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20278 for as_dir in $PATH
20279 do
20280   IFS=$as_save_IFS
20281   test -z "$as_dir" && as_dir=.
20282   # Account for people who put trailing slashes in PATH elements.
20283 case $as_dir/ in
20284   ./ | .// | /cC/* | \
20285   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20286   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20287   /usr/ucb/* ) ;;
20288   *)
20289     # OSF1 and SCO ODT 3.0 have their own names for install.
20290     # Don't use installbsd from OSF since it installs stuff as root
20291     # by default.
20292     for ac_prog in ginstall scoinst install; do
20293       for ac_exec_ext in '' $ac_executable_extensions; do
20294         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20295           if test $ac_prog = install &&
20296             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20297             # AIX install.  It has an incompatible calling convention.
20298             :
20299           elif test $ac_prog = install &&
20300             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20301             # program-specific install script used by HP pwplus--don't use.
20302             :
20303           else
20304             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20305             break 3
20306           fi
20307         fi
20308       done
20309     done
20310     ;;
20311 esac
20312 done
20313
20314
20315 fi
20316   if test "${ac_cv_path_install+set}" = set; then
20317     INSTALL=$ac_cv_path_install
20318   else
20319     # As a last resort, use the slow shell script.  We don't cache a
20320     # path for INSTALL within a source directory, because that will
20321     # break other packages using the cache if that directory is
20322     # removed, or if the path is relative.
20323     INSTALL=$ac_install_sh
20324   fi
20325 fi
20326 echo "$as_me:$LINENO: result: $INSTALL" >&5
20327 echo "${ECHO_T}$INSTALL" >&6
20328
20329 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20330 # It thinks the first close brace ends the variable substitution.
20331 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20332
20333 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20334
20335 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20336
20337
20338 # Extract the first word of "bzip2", so it can be a program name with args.
20339 set dummy bzip2; ac_word=$2
20340 echo "$as_me:$LINENO: checking for $ac_word" >&5
20341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20342 if test "${ac_cv_path_BZIP2+set}" = set; then
20343   echo $ECHO_N "(cached) $ECHO_C" >&6
20344 else
20345   case $BZIP2 in
20346   [\\/]* | ?:[\\/]*)
20347   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
20348   ;;
20349   *)
20350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20351 for as_dir in $PATH
20352 do
20353   IFS=$as_save_IFS
20354   test -z "$as_dir" && as_dir=.
20355   for ac_exec_ext in '' $ac_executable_extensions; do
20356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20357     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
20358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20359     break 2
20360   fi
20361 done
20362 done
20363
20364   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
20365   ;;
20366 esac
20367 fi
20368 BZIP2=$ac_cv_path_BZIP2
20369
20370 if test -n "$BZIP2"; then
20371   echo "$as_me:$LINENO: result: $BZIP2" >&5
20372 echo "${ECHO_T}$BZIP2" >&6
20373 else
20374   echo "$as_me:$LINENO: result: no" >&5
20375 echo "${ECHO_T}no" >&6
20376 fi
20377
20378 # Extract the first word of "dot", so it can be a program name with args.
20379 set dummy dot; ac_word=$2
20380 echo "$as_me:$LINENO: checking for $ac_word" >&5
20381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20382 if test "${ac_cv_path_DOT+set}" = set; then
20383   echo $ECHO_N "(cached) $ECHO_C" >&6
20384 else
20385   case $DOT in
20386   [\\/]* | ?:[\\/]*)
20387   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20388   ;;
20389   *)
20390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20391 for as_dir in $PATH
20392 do
20393   IFS=$as_save_IFS
20394   test -z "$as_dir" && as_dir=.
20395   for ac_exec_ext in '' $ac_executable_extensions; do
20396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20397     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
20398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20399     break 2
20400   fi
20401 done
20402 done
20403
20404   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
20405   ;;
20406 esac
20407 fi
20408 DOT=$ac_cv_path_DOT
20409
20410 if test -n "$DOT"; then
20411   echo "$as_me:$LINENO: result: $DOT" >&5
20412 echo "${ECHO_T}$DOT" >&6
20413 else
20414   echo "$as_me:$LINENO: result: no" >&5
20415 echo "${ECHO_T}no" >&6
20416 fi
20417
20418 # Extract the first word of "doxygen", so it can be a program name with args.
20419 set dummy doxygen; ac_word=$2
20420 echo "$as_me:$LINENO: checking for $ac_word" >&5
20421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20422 if test "${ac_cv_path_DOXYGEN+set}" = set; then
20423   echo $ECHO_N "(cached) $ECHO_C" >&6
20424 else
20425   case $DOXYGEN in
20426   [\\/]* | ?:[\\/]*)
20427   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
20428   ;;
20429   *)
20430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20431 for as_dir in $PATH
20432 do
20433   IFS=$as_save_IFS
20434   test -z "$as_dir" && as_dir=.
20435   for ac_exec_ext in '' $ac_executable_extensions; do
20436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20437     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
20438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20439     break 2
20440   fi
20441 done
20442 done
20443
20444   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
20445   ;;
20446 esac
20447 fi
20448 DOXYGEN=$ac_cv_path_DOXYGEN
20449
20450 if test -n "$DOXYGEN"; then
20451   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
20452 echo "${ECHO_T}$DOXYGEN" >&6
20453 else
20454   echo "$as_me:$LINENO: result: no" >&5
20455 echo "${ECHO_T}no" >&6
20456 fi
20457
20458 # Extract the first word of "etags", so it can be a program name with args.
20459 set dummy etags; ac_word=$2
20460 echo "$as_me:$LINENO: checking for $ac_word" >&5
20461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20462 if test "${ac_cv_path_ETAGS+set}" = set; then
20463   echo $ECHO_N "(cached) $ECHO_C" >&6
20464 else
20465   case $ETAGS in
20466   [\\/]* | ?:[\\/]*)
20467   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
20468   ;;
20469   *)
20470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20471 for as_dir in $PATH
20472 do
20473   IFS=$as_save_IFS
20474   test -z "$as_dir" && as_dir=.
20475   for ac_exec_ext in '' $ac_executable_extensions; do
20476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20477     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
20478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20479     break 2
20480   fi
20481 done
20482 done
20483
20484   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
20485   ;;
20486 esac
20487 fi
20488 ETAGS=$ac_cv_path_ETAGS
20489
20490 if test -n "$ETAGS"; then
20491   echo "$as_me:$LINENO: result: $ETAGS" >&5
20492 echo "${ECHO_T}$ETAGS" >&6
20493 else
20494   echo "$as_me:$LINENO: result: no" >&5
20495 echo "${ECHO_T}no" >&6
20496 fi
20497
20498 # Extract the first word of "groff", so it can be a program name with args.
20499 set dummy groff; ac_word=$2
20500 echo "$as_me:$LINENO: checking for $ac_word" >&5
20501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20502 if test "${ac_cv_path_GROFF+set}" = set; then
20503   echo $ECHO_N "(cached) $ECHO_C" >&6
20504 else
20505   case $GROFF in
20506   [\\/]* | ?:[\\/]*)
20507   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
20508   ;;
20509   *)
20510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20511 for as_dir in $PATH
20512 do
20513   IFS=$as_save_IFS
20514   test -z "$as_dir" && as_dir=.
20515   for ac_exec_ext in '' $ac_executable_extensions; do
20516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20517     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
20518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20519     break 2
20520   fi
20521 done
20522 done
20523
20524   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
20525   ;;
20526 esac
20527 fi
20528 GROFF=$ac_cv_path_GROFF
20529
20530 if test -n "$GROFF"; then
20531   echo "$as_me:$LINENO: result: $GROFF" >&5
20532 echo "${ECHO_T}$GROFF" >&6
20533 else
20534   echo "$as_me:$LINENO: result: no" >&5
20535 echo "${ECHO_T}no" >&6
20536 fi
20537
20538 # Extract the first word of "gzip", so it can be a program name with args.
20539 set dummy gzip; ac_word=$2
20540 echo "$as_me:$LINENO: checking for $ac_word" >&5
20541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20542 if test "${ac_cv_path_GZIP+set}" = set; then
20543   echo $ECHO_N "(cached) $ECHO_C" >&6
20544 else
20545   case $GZIP in
20546   [\\/]* | ?:[\\/]*)
20547   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
20548   ;;
20549   *)
20550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20551 for as_dir in $PATH
20552 do
20553   IFS=$as_save_IFS
20554   test -z "$as_dir" && as_dir=.
20555   for ac_exec_ext in '' $ac_executable_extensions; do
20556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20557     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
20558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20559     break 2
20560   fi
20561 done
20562 done
20563
20564   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
20565   ;;
20566 esac
20567 fi
20568 GZIP=$ac_cv_path_GZIP
20569
20570 if test -n "$GZIP"; then
20571   echo "$as_me:$LINENO: result: $GZIP" >&5
20572 echo "${ECHO_T}$GZIP" >&6
20573 else
20574   echo "$as_me:$LINENO: result: no" >&5
20575 echo "${ECHO_T}no" >&6
20576 fi
20577
20578 # Extract the first word of "pod2html", so it can be a program name with args.
20579 set dummy pod2html; ac_word=$2
20580 echo "$as_me:$LINENO: checking for $ac_word" >&5
20581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20582 if test "${ac_cv_path_POD2HTML+set}" = set; then
20583   echo $ECHO_N "(cached) $ECHO_C" >&6
20584 else
20585   case $POD2HTML in
20586   [\\/]* | ?:[\\/]*)
20587   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
20588   ;;
20589   *)
20590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20591 for as_dir in $PATH
20592 do
20593   IFS=$as_save_IFS
20594   test -z "$as_dir" && as_dir=.
20595   for ac_exec_ext in '' $ac_executable_extensions; do
20596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20597     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
20598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20599     break 2
20600   fi
20601 done
20602 done
20603
20604   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
20605   ;;
20606 esac
20607 fi
20608 POD2HTML=$ac_cv_path_POD2HTML
20609
20610 if test -n "$POD2HTML"; then
20611   echo "$as_me:$LINENO: result: $POD2HTML" >&5
20612 echo "${ECHO_T}$POD2HTML" >&6
20613 else
20614   echo "$as_me:$LINENO: result: no" >&5
20615 echo "${ECHO_T}no" >&6
20616 fi
20617
20618 # Extract the first word of "pod2man", so it can be a program name with args.
20619 set dummy pod2man; ac_word=$2
20620 echo "$as_me:$LINENO: checking for $ac_word" >&5
20621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20622 if test "${ac_cv_path_POD2MAN+set}" = set; then
20623   echo $ECHO_N "(cached) $ECHO_C" >&6
20624 else
20625   case $POD2MAN in
20626   [\\/]* | ?:[\\/]*)
20627   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
20628   ;;
20629   *)
20630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20631 for as_dir in $PATH
20632 do
20633   IFS=$as_save_IFS
20634   test -z "$as_dir" && as_dir=.
20635   for ac_exec_ext in '' $ac_executable_extensions; do
20636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20637     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
20638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20639     break 2
20640   fi
20641 done
20642 done
20643
20644   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
20645   ;;
20646 esac
20647 fi
20648 POD2MAN=$ac_cv_path_POD2MAN
20649
20650 if test -n "$POD2MAN"; then
20651   echo "$as_me:$LINENO: result: $POD2MAN" >&5
20652 echo "${ECHO_T}$POD2MAN" >&6
20653 else
20654   echo "$as_me:$LINENO: result: no" >&5
20655 echo "${ECHO_T}no" >&6
20656 fi
20657
20658 # Extract the first word of "python", so it can be a program name with args.
20659 set dummy python; ac_word=$2
20660 echo "$as_me:$LINENO: checking for $ac_word" >&5
20661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20662 if test "${ac_cv_path_PYTHON+set}" = set; then
20663   echo $ECHO_N "(cached) $ECHO_C" >&6
20664 else
20665   case $PYTHON in
20666   [\\/]* | ?:[\\/]*)
20667   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20668   ;;
20669   *)
20670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20671 for as_dir in $PATH
20672 do
20673   IFS=$as_save_IFS
20674   test -z "$as_dir" && as_dir=.
20675   for ac_exec_ext in '' $ac_executable_extensions; do
20676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20677     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20679     break 2
20680   fi
20681 done
20682 done
20683
20684   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
20685   ;;
20686 esac
20687 fi
20688 PYTHON=$ac_cv_path_PYTHON
20689
20690 if test -n "$PYTHON"; then
20691   echo "$as_me:$LINENO: result: $PYTHON" >&5
20692 echo "${ECHO_T}$PYTHON" >&6
20693 else
20694   echo "$as_me:$LINENO: result: no" >&5
20695 echo "${ECHO_T}no" >&6
20696 fi
20697
20698 # Extract the first word of "qmtest", so it can be a program name with args.
20699 set dummy qmtest; ac_word=$2
20700 echo "$as_me:$LINENO: checking for $ac_word" >&5
20701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20702 if test "${ac_cv_path_QMTEST+set}" = set; then
20703   echo $ECHO_N "(cached) $ECHO_C" >&6
20704 else
20705   case $QMTEST in
20706   [\\/]* | ?:[\\/]*)
20707   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
20708   ;;
20709   *)
20710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20711 for as_dir in $PATH
20712 do
20713   IFS=$as_save_IFS
20714   test -z "$as_dir" && as_dir=.
20715   for ac_exec_ext in '' $ac_executable_extensions; do
20716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20717     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
20718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20719     break 2
20720   fi
20721 done
20722 done
20723
20724   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
20725   ;;
20726 esac
20727 fi
20728 QMTEST=$ac_cv_path_QMTEST
20729
20730 if test -n "$QMTEST"; then
20731   echo "$as_me:$LINENO: result: $QMTEST" >&5
20732 echo "${ECHO_T}$QMTEST" >&6
20733 else
20734   echo "$as_me:$LINENO: result: no" >&5
20735 echo "${ECHO_T}no" >&6
20736 fi
20737
20738 # Extract the first word of "runtest", so it can be a program name with args.
20739 set dummy runtest; ac_word=$2
20740 echo "$as_me:$LINENO: checking for $ac_word" >&5
20741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20742 if test "${ac_cv_path_RUNTEST+set}" = set; then
20743   echo $ECHO_N "(cached) $ECHO_C" >&6
20744 else
20745   case $RUNTEST in
20746   [\\/]* | ?:[\\/]*)
20747   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
20748   ;;
20749   *)
20750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20751 for as_dir in $PATH
20752 do
20753   IFS=$as_save_IFS
20754   test -z "$as_dir" && as_dir=.
20755   for ac_exec_ext in '' $ac_executable_extensions; do
20756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20757     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
20758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20759     break 2
20760   fi
20761 done
20762 done
20763
20764   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
20765   ;;
20766 esac
20767 fi
20768 RUNTEST=$ac_cv_path_RUNTEST
20769
20770 if test -n "$RUNTEST"; then
20771   echo "$as_me:$LINENO: result: $RUNTEST" >&5
20772 echo "${ECHO_T}$RUNTEST" >&6
20773 else
20774   echo "$as_me:$LINENO: result: no" >&5
20775 echo "${ECHO_T}no" >&6
20776 fi
20777
20778 # Extract the first word of "zip", so it can be a program name with args.
20779 set dummy zip; ac_word=$2
20780 echo "$as_me:$LINENO: checking for $ac_word" >&5
20781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20782 if test "${ac_cv_path_ZIP+set}" = set; then
20783   echo $ECHO_N "(cached) $ECHO_C" >&6
20784 else
20785   case $ZIP in
20786   [\\/]* | ?:[\\/]*)
20787   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20788   ;;
20789   *)
20790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20791 for as_dir in $PATH
20792 do
20793   IFS=$as_save_IFS
20794   test -z "$as_dir" && as_dir=.
20795   for ac_exec_ext in '' $ac_executable_extensions; do
20796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20797     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20799     break 2
20800   fi
20801 done
20802 done
20803
20804   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
20805   ;;
20806 esac
20807 fi
20808 ZIP=$ac_cv_path_ZIP
20809
20810 if test -n "$ZIP"; then
20811   echo "$as_me:$LINENO: result: $ZIP" >&5
20812 echo "${ECHO_T}$ZIP" >&6
20813 else
20814   echo "$as_me:$LINENO: result: no" >&5
20815 echo "${ECHO_T}no" >&6
20816 fi
20817
20818
20819 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
20820 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
20821 if test "${llvm_cv_link_use_r+set}" = set; then
20822   echo $ECHO_N "(cached) $ECHO_C" >&6
20823 else
20824    ac_ext=c
20825 ac_cpp='$CPP $CPPFLAGS'
20826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20829
20830   oldcflags="$CFLAGS"
20831   CFLAGS="$CFLAGS -Wl,-R."
20832   cat >conftest.$ac_ext <<_ACEOF
20833 /* confdefs.h.  */
20834 _ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h.  */
20838
20839 int
20840 main ()
20841 {
20842 int main() { return 0; }
20843   ;
20844   return 0;
20845 }
20846 _ACEOF
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20849   (eval $ac_link) 2>conftest.er1
20850   ac_status=$?
20851   grep -v '^ *+' conftest.er1 >conftest.err
20852   rm -f conftest.er1
20853   cat conftest.err >&5
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); } &&
20856          { ac_try='test -z "$ac_c_werror_flag"
20857                          || test ! -s conftest.err'
20858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859   (eval $ac_try) 2>&5
20860   ac_status=$?
20861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); }; } &&
20863          { ac_try='test -s conftest$ac_exeext'
20864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865   (eval $ac_try) 2>&5
20866   ac_status=$?
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); }; }; then
20869   llvm_cv_link_use_r=yes
20870 else
20871   echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20873
20874 llvm_cv_link_use_r=no
20875 fi
20876 rm -f conftest.err conftest.$ac_objext \
20877       conftest$ac_exeext conftest.$ac_ext
20878   CFLAGS="$oldcflags"
20879   ac_ext=c
20880 ac_cpp='$CPP $CPPFLAGS'
20881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20884
20885
20886 fi
20887 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
20888 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
20889 if test "$llvm_cv_link_use_r" = yes ; then
20890
20891 cat >>confdefs.h <<\_ACEOF
20892 #define HAVE_LINK_R 1
20893 _ACEOF
20894
20895   fi
20896
20897
20898 etags_version=`$ETAGS --version 2>&1`
20899 case "$etags_version" in
20900         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
20901         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
20902         *) ETAGSFLAGS="" ;;
20903 esac
20904 ETAGSFLAGS=$ETAGSFLAGS
20905
20906
20907 echo "$as_me:$LINENO: checking tool compatibility" >&5
20908 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
20909
20910 if test "$GCC" != "yes"
20911 then
20912   { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
20913 echo "$as_me: error: gcc required but not found" >&2;}
20914    { (exit 1); exit 1; }; }
20915 fi
20916 if test "$GXX" != "yes"
20917 then
20918   { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
20919 echo "$as_me: error: g++ required but not found" >&2;}
20920    { (exit 1); exit 1; }; }
20921 fi
20922
20923 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
20924 if test "$gccmajor" -lt "3"
20925 then
20926   { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
20927 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
20928    { (exit 1); exit 1; }; }
20929 fi
20930
20931 if test -z "$llvm_cv_gnu_make_command"
20932 then
20933   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
20934 echo "$as_me: error: GNU Make required but not found" >&2;}
20935    { (exit 1); exit 1; }; }
20936 fi
20937
20938 echo "$as_me:$LINENO: result: ok" >&5
20939 echo "${ECHO_T}ok" >&6
20940
20941 if test "$PYTHON" = "false" ; then
20942   { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
20943 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
20944 fi
20945 if test "$QMTEST" = "false" ; then
20946   { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
20947 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
20948 fi
20949 if test "$RUNTEST" = "false" ; then
20950   { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
20951 echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
20952 fi
20953 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
20954 pymajor=`echo $pyversion | cut -d. -f1`
20955 pyminor=`echo $pyversion | cut -d. -f2`
20956 if test "$pymajor" -ge "2" ; then
20957   if test "$pymajor" -eq "2" ; then
20958     if test "$pyminor" -lt "2" ; then
20959       { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20960 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20961     fi
20962   fi
20963 else
20964   { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20965 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20966 fi
20967
20968 echo "$as_me:$LINENO: result: " >&5
20969 echo "${ECHO_T}" >&6
20970
20971
20972
20973 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
20974 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
20975 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
20976   echo $ECHO_N "(cached) $ECHO_C" >&6
20977 else
20978   ac_check_lib_save_LIBS=$LIBS
20979 LIBS="-lelf  $LIBS"
20980 cat >conftest.$ac_ext <<_ACEOF
20981 /* confdefs.h.  */
20982 _ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h.  */
20986
20987 /* Override any gcc2 internal prototype to avoid an error.  */
20988 #ifdef __cplusplus
20989 extern "C"
20990 #endif
20991 /* We use char because int might match the return type of a gcc2
20992    builtin and then its argument prototype would still apply.  */
20993 char elf_begin ();
20994 int
20995 main ()
20996 {
20997 elf_begin ();
20998   ;
20999   return 0;
21000 }
21001 _ACEOF
21002 rm -f conftest.$ac_objext conftest$ac_exeext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004   (eval $ac_link) 2>conftest.er1
21005   ac_status=$?
21006   grep -v '^ *+' conftest.er1 >conftest.err
21007   rm -f conftest.er1
21008   cat conftest.err >&5
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); } &&
21011          { ac_try='test -z "$ac_c_werror_flag"
21012                          || test ! -s conftest.err'
21013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014   (eval $ac_try) 2>&5
21015   ac_status=$?
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); }; } &&
21018          { ac_try='test -s conftest$ac_exeext'
21019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020   (eval $ac_try) 2>&5
21021   ac_status=$?
21022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023   (exit $ac_status); }; }; then
21024   ac_cv_lib_elf_elf_begin=yes
21025 else
21026   echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21028
21029 ac_cv_lib_elf_elf_begin=no
21030 fi
21031 rm -f conftest.err conftest.$ac_objext \
21032       conftest$ac_exeext conftest.$ac_ext
21033 LIBS=$ac_check_lib_save_LIBS
21034 fi
21035 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
21036 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
21037 if test $ac_cv_lib_elf_elf_begin = yes; then
21038   cat >>confdefs.h <<_ACEOF
21039 #define HAVE_LIBELF 1
21040 _ACEOF
21041
21042   LIBS="-lelf $LIBS"
21043
21044 fi
21045
21046
21047 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
21048 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
21049 if test "${ac_cv_search_lt_dlopen+set}" = set; then
21050   echo $ECHO_N "(cached) $ECHO_C" >&6
21051 else
21052   ac_func_search_save_LIBS=$LIBS
21053 ac_cv_search_lt_dlopen=no
21054 cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h.  */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h.  */
21060
21061 /* Override any gcc2 internal prototype to avoid an error.  */
21062 #ifdef __cplusplus
21063 extern "C"
21064 #endif
21065 /* We use char because int might match the return type of a gcc2
21066    builtin and then its argument prototype would still apply.  */
21067 char lt_dlopen ();
21068 int
21069 main ()
21070 {
21071 lt_dlopen ();
21072   ;
21073   return 0;
21074 }
21075 _ACEOF
21076 rm -f conftest.$ac_objext conftest$ac_exeext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21078   (eval $ac_link) 2>conftest.er1
21079   ac_status=$?
21080   grep -v '^ *+' conftest.er1 >conftest.err
21081   rm -f conftest.er1
21082   cat conftest.err >&5
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); } &&
21085          { ac_try='test -z "$ac_c_werror_flag"
21086                          || test ! -s conftest.err'
21087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088   (eval $ac_try) 2>&5
21089   ac_status=$?
21090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); }; } &&
21092          { ac_try='test -s conftest$ac_exeext'
21093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094   (eval $ac_try) 2>&5
21095   ac_status=$?
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); }; }; then
21098   ac_cv_search_lt_dlopen="none required"
21099 else
21100   echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21102
21103 fi
21104 rm -f conftest.err conftest.$ac_objext \
21105       conftest$ac_exeext conftest.$ac_ext
21106 if test "$ac_cv_search_lt_dlopen" = no; then
21107   for ac_lib in ltdl; do
21108     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21109     cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h.  */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h.  */
21115
21116 /* Override any gcc2 internal prototype to avoid an error.  */
21117 #ifdef __cplusplus
21118 extern "C"
21119 #endif
21120 /* We use char because int might match the return type of a gcc2
21121    builtin and then its argument prototype would still apply.  */
21122 char lt_dlopen ();
21123 int
21124 main ()
21125 {
21126 lt_dlopen ();
21127   ;
21128   return 0;
21129 }
21130 _ACEOF
21131 rm -f conftest.$ac_objext conftest$ac_exeext
21132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21133   (eval $ac_link) 2>conftest.er1
21134   ac_status=$?
21135   grep -v '^ *+' conftest.er1 >conftest.err
21136   rm -f conftest.er1
21137   cat conftest.err >&5
21138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139   (exit $ac_status); } &&
21140          { ac_try='test -z "$ac_c_werror_flag"
21141                          || test ! -s conftest.err'
21142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143   (eval $ac_try) 2>&5
21144   ac_status=$?
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); }; } &&
21147          { ac_try='test -s conftest$ac_exeext'
21148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149   (eval $ac_try) 2>&5
21150   ac_status=$?
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); }; }; then
21153   ac_cv_search_lt_dlopen="-l$ac_lib"
21154 break
21155 else
21156   echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21158
21159 fi
21160 rm -f conftest.err conftest.$ac_objext \
21161       conftest$ac_exeext conftest.$ac_ext
21162   done
21163 fi
21164 LIBS=$ac_func_search_save_LIBS
21165 fi
21166 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
21167 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
21168 if test "$ac_cv_search_lt_dlopen" != no; then
21169   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
21170
21171 cat >>confdefs.h <<\_ACEOF
21172 #define HAVE_LT_DLOPEN 1
21173 _ACEOF
21174
21175 else
21176   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
21177                            not be available" >&5
21178 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
21179                            not be available" >&2;}
21180 fi
21181
21182
21183 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21184 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
21185 if test "${ac_cv_search_dlopen+set}" = set; then
21186   echo $ECHO_N "(cached) $ECHO_C" >&6
21187 else
21188   ac_func_search_save_LIBS=$LIBS
21189 ac_cv_search_dlopen=no
21190 cat >conftest.$ac_ext <<_ACEOF
21191 /* confdefs.h.  */
21192 _ACEOF
21193 cat confdefs.h >>conftest.$ac_ext
21194 cat >>conftest.$ac_ext <<_ACEOF
21195 /* end confdefs.h.  */
21196
21197 /* Override any gcc2 internal prototype to avoid an error.  */
21198 #ifdef __cplusplus
21199 extern "C"
21200 #endif
21201 /* We use char because int might match the return type of a gcc2
21202    builtin and then its argument prototype would still apply.  */
21203 char dlopen ();
21204 int
21205 main ()
21206 {
21207 dlopen ();
21208   ;
21209   return 0;
21210 }
21211 _ACEOF
21212 rm -f conftest.$ac_objext conftest$ac_exeext
21213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21214   (eval $ac_link) 2>conftest.er1
21215   ac_status=$?
21216   grep -v '^ *+' conftest.er1 >conftest.err
21217   rm -f conftest.er1
21218   cat conftest.err >&5
21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); } &&
21221          { ac_try='test -z "$ac_c_werror_flag"
21222                          || test ! -s conftest.err'
21223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224   (eval $ac_try) 2>&5
21225   ac_status=$?
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); }; } &&
21228          { ac_try='test -s conftest$ac_exeext'
21229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230   (eval $ac_try) 2>&5
21231   ac_status=$?
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); }; }; then
21234   ac_cv_search_dlopen="none required"
21235 else
21236   echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239 fi
21240 rm -f conftest.err conftest.$ac_objext \
21241       conftest$ac_exeext conftest.$ac_ext
21242 if test "$ac_cv_search_dlopen" = no; then
21243   for ac_lib in dl; do
21244     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21245     cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h.  */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h.  */
21251
21252 /* Override any gcc2 internal prototype to avoid an error.  */
21253 #ifdef __cplusplus
21254 extern "C"
21255 #endif
21256 /* We use char because int might match the return type of a gcc2
21257    builtin and then its argument prototype would still apply.  */
21258 char dlopen ();
21259 int
21260 main ()
21261 {
21262 dlopen ();
21263   ;
21264   return 0;
21265 }
21266 _ACEOF
21267 rm -f conftest.$ac_objext conftest$ac_exeext
21268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21269   (eval $ac_link) 2>conftest.er1
21270   ac_status=$?
21271   grep -v '^ *+' conftest.er1 >conftest.err
21272   rm -f conftest.er1
21273   cat conftest.err >&5
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); } &&
21276          { ac_try='test -z "$ac_c_werror_flag"
21277                          || test ! -s conftest.err'
21278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279   (eval $ac_try) 2>&5
21280   ac_status=$?
21281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282   (exit $ac_status); }; } &&
21283          { ac_try='test -s conftest$ac_exeext'
21284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285   (eval $ac_try) 2>&5
21286   ac_status=$?
21287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288   (exit $ac_status); }; }; then
21289   ac_cv_search_dlopen="-l$ac_lib"
21290 break
21291 else
21292   echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21294
21295 fi
21296 rm -f conftest.err conftest.$ac_objext \
21297       conftest$ac_exeext conftest.$ac_ext
21298   done
21299 fi
21300 LIBS=$ac_func_search_save_LIBS
21301 fi
21302 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21303 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
21304 if test "$ac_cv_search_dlopen" != no; then
21305   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
21306
21307 cat >>confdefs.h <<\_ACEOF
21308 #define HAVE_DLOPEN 1
21309 _ACEOF
21310
21311 else
21312   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
21313 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
21314 fi
21315
21316
21317 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
21318 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
21319 if test "${ac_cv_search_mallinfo+set}" = set; then
21320   echo $ECHO_N "(cached) $ECHO_C" >&6
21321 else
21322   ac_func_search_save_LIBS=$LIBS
21323 ac_cv_search_mallinfo=no
21324 cat >conftest.$ac_ext <<_ACEOF
21325 /* confdefs.h.  */
21326 _ACEOF
21327 cat confdefs.h >>conftest.$ac_ext
21328 cat >>conftest.$ac_ext <<_ACEOF
21329 /* end confdefs.h.  */
21330
21331 /* Override any gcc2 internal prototype to avoid an error.  */
21332 #ifdef __cplusplus
21333 extern "C"
21334 #endif
21335 /* We use char because int might match the return type of a gcc2
21336    builtin and then its argument prototype would still apply.  */
21337 char mallinfo ();
21338 int
21339 main ()
21340 {
21341 mallinfo ();
21342   ;
21343   return 0;
21344 }
21345 _ACEOF
21346 rm -f conftest.$ac_objext conftest$ac_exeext
21347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21348   (eval $ac_link) 2>conftest.er1
21349   ac_status=$?
21350   grep -v '^ *+' conftest.er1 >conftest.err
21351   rm -f conftest.er1
21352   cat conftest.err >&5
21353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354   (exit $ac_status); } &&
21355          { ac_try='test -z "$ac_c_werror_flag"
21356                          || test ! -s conftest.err'
21357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21358   (eval $ac_try) 2>&5
21359   ac_status=$?
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); }; } &&
21362          { ac_try='test -s conftest$ac_exeext'
21363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364   (eval $ac_try) 2>&5
21365   ac_status=$?
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   (exit $ac_status); }; }; then
21368   ac_cv_search_mallinfo="none required"
21369 else
21370   echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21372
21373 fi
21374 rm -f conftest.err conftest.$ac_objext \
21375       conftest$ac_exeext conftest.$ac_ext
21376 if test "$ac_cv_search_mallinfo" = no; then
21377   for ac_lib in malloc; do
21378     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21379     cat >conftest.$ac_ext <<_ACEOF
21380 /* confdefs.h.  */
21381 _ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h.  */
21385
21386 /* Override any gcc2 internal prototype to avoid an error.  */
21387 #ifdef __cplusplus
21388 extern "C"
21389 #endif
21390 /* We use char because int might match the return type of a gcc2
21391    builtin and then its argument prototype would still apply.  */
21392 char mallinfo ();
21393 int
21394 main ()
21395 {
21396 mallinfo ();
21397   ;
21398   return 0;
21399 }
21400 _ACEOF
21401 rm -f conftest.$ac_objext conftest$ac_exeext
21402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21403   (eval $ac_link) 2>conftest.er1
21404   ac_status=$?
21405   grep -v '^ *+' conftest.er1 >conftest.err
21406   rm -f conftest.er1
21407   cat conftest.err >&5
21408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); } &&
21410          { ac_try='test -z "$ac_c_werror_flag"
21411                          || test ! -s conftest.err'
21412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413   (eval $ac_try) 2>&5
21414   ac_status=$?
21415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); }; } &&
21417          { ac_try='test -s conftest$ac_exeext'
21418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419   (eval $ac_try) 2>&5
21420   ac_status=$?
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); }; }; then
21423   ac_cv_search_mallinfo="-l$ac_lib"
21424 break
21425 else
21426   echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21428
21429 fi
21430 rm -f conftest.err conftest.$ac_objext \
21431       conftest$ac_exeext conftest.$ac_ext
21432   done
21433 fi
21434 LIBS=$ac_func_search_save_LIBS
21435 fi
21436 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
21437 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
21438 if test "$ac_cv_search_mallinfo" != no; then
21439   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
21440
21441 cat >>confdefs.h <<\_ACEOF
21442 #define HAVE_MALLINFO 1
21443 _ACEOF
21444
21445 fi
21446
21447
21448 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
21449 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
21450 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21451   echo $ECHO_N "(cached) $ECHO_C" >&6
21452 else
21453   ac_func_search_save_LIBS=$LIBS
21454 ac_cv_search_pthread_mutex_lock=no
21455 cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h.  */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h.  */
21461
21462 /* Override any gcc2 internal prototype to avoid an error.  */
21463 #ifdef __cplusplus
21464 extern "C"
21465 #endif
21466 /* We use char because int might match the return type of a gcc2
21467    builtin and then its argument prototype would still apply.  */
21468 char pthread_mutex_lock ();
21469 int
21470 main ()
21471 {
21472 pthread_mutex_lock ();
21473   ;
21474   return 0;
21475 }
21476 _ACEOF
21477 rm -f conftest.$ac_objext conftest$ac_exeext
21478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21479   (eval $ac_link) 2>conftest.er1
21480   ac_status=$?
21481   grep -v '^ *+' conftest.er1 >conftest.err
21482   rm -f conftest.er1
21483   cat conftest.err >&5
21484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485   (exit $ac_status); } &&
21486          { ac_try='test -z "$ac_c_werror_flag"
21487                          || test ! -s conftest.err'
21488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489   (eval $ac_try) 2>&5
21490   ac_status=$?
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); }; } &&
21493          { ac_try='test -s conftest$ac_exeext'
21494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495   (eval $ac_try) 2>&5
21496   ac_status=$?
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); }; }; then
21499   ac_cv_search_pthread_mutex_lock="none required"
21500 else
21501   echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21503
21504 fi
21505 rm -f conftest.err conftest.$ac_objext \
21506       conftest$ac_exeext conftest.$ac_ext
21507 if test "$ac_cv_search_pthread_mutex_lock" = no; then
21508   for ac_lib in pthread; do
21509     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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 pthread_mutex_lock ();
21524 int
21525 main ()
21526 {
21527 pthread_mutex_lock ();
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_pthread_mutex_lock="-l$ac_lib"
21555 break
21556 else
21557   echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560 fi
21561 rm -f conftest.err conftest.$ac_objext \
21562       conftest$ac_exeext conftest.$ac_ext
21563   done
21564 fi
21565 LIBS=$ac_func_search_save_LIBS
21566 fi
21567 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
21568 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
21569 if test "$ac_cv_search_pthread_mutex_lock" != no; then
21570   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
21571
21572 cat >>confdefs.h <<\_ACEOF
21573 #define HAVE_PTHREAD_MUTEX_LOCK 1
21574 _ACEOF
21575
21576 fi
21577
21578
21579
21580 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21581 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21582 if test "${ac_cv_header_stdc+set}" = set; then
21583   echo $ECHO_N "(cached) $ECHO_C" >&6
21584 else
21585   cat >conftest.$ac_ext <<_ACEOF
21586 /* confdefs.h.  */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h.  */
21591 #include <stdlib.h>
21592 #include <stdarg.h>
21593 #include <string.h>
21594 #include <float.h>
21595
21596 int
21597 main ()
21598 {
21599
21600   ;
21601   return 0;
21602 }
21603 _ACEOF
21604 rm -f conftest.$ac_objext
21605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21606   (eval $ac_compile) 2>conftest.er1
21607   ac_status=$?
21608   grep -v '^ *+' conftest.er1 >conftest.err
21609   rm -f conftest.er1
21610   cat conftest.err >&5
21611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612   (exit $ac_status); } &&
21613          { ac_try='test -z "$ac_c_werror_flag"
21614                          || test ! -s conftest.err'
21615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21616   (eval $ac_try) 2>&5
21617   ac_status=$?
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); }; } &&
21620          { ac_try='test -s conftest.$ac_objext'
21621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21622   (eval $ac_try) 2>&5
21623   ac_status=$?
21624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625   (exit $ac_status); }; }; then
21626   ac_cv_header_stdc=yes
21627 else
21628   echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21630
21631 ac_cv_header_stdc=no
21632 fi
21633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21634
21635 if test $ac_cv_header_stdc = yes; then
21636   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21637   cat >conftest.$ac_ext <<_ACEOF
21638 /* confdefs.h.  */
21639 _ACEOF
21640 cat confdefs.h >>conftest.$ac_ext
21641 cat >>conftest.$ac_ext <<_ACEOF
21642 /* end confdefs.h.  */
21643 #include <string.h>
21644
21645 _ACEOF
21646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21647   $EGREP "memchr" >/dev/null 2>&1; then
21648   :
21649 else
21650   ac_cv_header_stdc=no
21651 fi
21652 rm -f conftest*
21653
21654 fi
21655
21656 if test $ac_cv_header_stdc = yes; then
21657   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21658   cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h.  */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h.  */
21664 #include <stdlib.h>
21665
21666 _ACEOF
21667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21668   $EGREP "free" >/dev/null 2>&1; then
21669   :
21670 else
21671   ac_cv_header_stdc=no
21672 fi
21673 rm -f conftest*
21674
21675 fi
21676
21677 if test $ac_cv_header_stdc = yes; then
21678   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21679   if test "$cross_compiling" = yes; then
21680   :
21681 else
21682   cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h.  */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h.  */
21688 #include <ctype.h>
21689 #if ((' ' & 0x0FF) == 0x020)
21690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21692 #else
21693 # define ISLOWER(c) \
21694                    (('a' <= (c) && (c) <= 'i') \
21695                      || ('j' <= (c) && (c) <= 'r') \
21696                      || ('s' <= (c) && (c) <= 'z'))
21697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21698 #endif
21699
21700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21701 int
21702 main ()
21703 {
21704   int i;
21705   for (i = 0; i < 256; i++)
21706     if (XOR (islower (i), ISLOWER (i))
21707         || toupper (i) != TOUPPER (i))
21708       exit(2);
21709   exit (0);
21710 }
21711 _ACEOF
21712 rm -f conftest$ac_exeext
21713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21714   (eval $ac_link) 2>&5
21715   ac_status=$?
21716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719   (eval $ac_try) 2>&5
21720   ac_status=$?
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); }; }; then
21723   :
21724 else
21725   echo "$as_me: program exited with status $ac_status" >&5
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21728
21729 ( exit $ac_status )
21730 ac_cv_header_stdc=no
21731 fi
21732 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21733 fi
21734 fi
21735 fi
21736 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21737 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21738 if test $ac_cv_header_stdc = yes; then
21739
21740 cat >>confdefs.h <<\_ACEOF
21741 #define STDC_HEADERS 1
21742 _ACEOF
21743
21744 fi
21745
21746
21747 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21748 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21749 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21750   echo $ECHO_N "(cached) $ECHO_C" >&6
21751 else
21752   cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h.  */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h.  */
21758 #include <sys/types.h>
21759 #include <sys/wait.h>
21760 #ifndef WEXITSTATUS
21761 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21762 #endif
21763 #ifndef WIFEXITED
21764 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21765 #endif
21766
21767 int
21768 main ()
21769 {
21770   int s;
21771   wait (&s);
21772   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21773   ;
21774   return 0;
21775 }
21776 _ACEOF
21777 rm -f conftest.$ac_objext
21778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21779   (eval $ac_compile) 2>conftest.er1
21780   ac_status=$?
21781   grep -v '^ *+' conftest.er1 >conftest.err
21782   rm -f conftest.er1
21783   cat conftest.err >&5
21784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785   (exit $ac_status); } &&
21786          { ac_try='test -z "$ac_c_werror_flag"
21787                          || test ! -s conftest.err'
21788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789   (eval $ac_try) 2>&5
21790   ac_status=$?
21791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792   (exit $ac_status); }; } &&
21793          { ac_try='test -s conftest.$ac_objext'
21794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795   (eval $ac_try) 2>&5
21796   ac_status=$?
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); }; }; then
21799   ac_cv_header_sys_wait_h=yes
21800 else
21801   echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21803
21804 ac_cv_header_sys_wait_h=no
21805 fi
21806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21807 fi
21808 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21809 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21810 if test $ac_cv_header_sys_wait_h = yes; then
21811
21812 cat >>confdefs.h <<\_ACEOF
21813 #define HAVE_SYS_WAIT_H 1
21814 _ACEOF
21815
21816 fi
21817
21818
21819
21820
21821
21822
21823 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
21824 do
21825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21827   echo "$as_me:$LINENO: checking for $ac_header" >&5
21828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21830   echo $ECHO_N "(cached) $ECHO_C" >&6
21831 fi
21832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21834 else
21835   # Is the header compilable?
21836 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21838 cat >conftest.$ac_ext <<_ACEOF
21839 /* confdefs.h.  */
21840 _ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h.  */
21844 $ac_includes_default
21845 #include <$ac_header>
21846 _ACEOF
21847 rm -f conftest.$ac_objext
21848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21849   (eval $ac_compile) 2>conftest.er1
21850   ac_status=$?
21851   grep -v '^ *+' conftest.er1 >conftest.err
21852   rm -f conftest.er1
21853   cat conftest.err >&5
21854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855   (exit $ac_status); } &&
21856          { ac_try='test -z "$ac_c_werror_flag"
21857                          || test ! -s conftest.err'
21858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859   (eval $ac_try) 2>&5
21860   ac_status=$?
21861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862   (exit $ac_status); }; } &&
21863          { ac_try='test -s conftest.$ac_objext'
21864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21865   (eval $ac_try) 2>&5
21866   ac_status=$?
21867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868   (exit $ac_status); }; }; then
21869   ac_header_compiler=yes
21870 else
21871   echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21873
21874 ac_header_compiler=no
21875 fi
21876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21878 echo "${ECHO_T}$ac_header_compiler" >&6
21879
21880 # Is the header present?
21881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21883 cat >conftest.$ac_ext <<_ACEOF
21884 /* confdefs.h.  */
21885 _ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h.  */
21889 #include <$ac_header>
21890 _ACEOF
21891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21892   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21893   ac_status=$?
21894   grep -v '^ *+' conftest.er1 >conftest.err
21895   rm -f conftest.er1
21896   cat conftest.err >&5
21897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898   (exit $ac_status); } >/dev/null; then
21899   if test -s conftest.err; then
21900     ac_cpp_err=$ac_c_preproc_warn_flag
21901     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21902   else
21903     ac_cpp_err=
21904   fi
21905 else
21906   ac_cpp_err=yes
21907 fi
21908 if test -z "$ac_cpp_err"; then
21909   ac_header_preproc=yes
21910 else
21911   echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21913
21914   ac_header_preproc=no
21915 fi
21916 rm -f conftest.err conftest.$ac_ext
21917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21918 echo "${ECHO_T}$ac_header_preproc" >&6
21919
21920 # So?  What about this header?
21921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21922   yes:no: )
21923     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21927     ac_header_preproc=yes
21928     ;;
21929   no:yes:* )
21930     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21932     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21933 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21934     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21936     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21937 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21940     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21942     (
21943       cat <<\_ASBOX
21944 ## ----------------------------------- ##
21945 ## Report this to llvmbugs@cs.uiuc.edu ##
21946 ## ----------------------------------- ##
21947 _ASBOX
21948     ) |
21949       sed "s/^/$as_me: WARNING:     /" >&2
21950     ;;
21951 esac
21952 echo "$as_me:$LINENO: checking for $ac_header" >&5
21953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21955   echo $ECHO_N "(cached) $ECHO_C" >&6
21956 else
21957   eval "$as_ac_Header=\$ac_header_preproc"
21958 fi
21959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21961
21962 fi
21963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21964   cat >>confdefs.h <<_ACEOF
21965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21966 _ACEOF
21967
21968 fi
21969
21970 done
21971
21972
21973
21974
21975
21976
21977
21978
21979 for ac_header in bzlib.h dlfcn.h execinfo.h fcntl.h limits.h link.h ltdl.h
21980 do
21981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21983   echo "$as_me:$LINENO: checking for $ac_header" >&5
21984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21986   echo $ECHO_N "(cached) $ECHO_C" >&6
21987 fi
21988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21990 else
21991   # Is the header compilable?
21992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21994 cat >conftest.$ac_ext <<_ACEOF
21995 /* confdefs.h.  */
21996 _ACEOF
21997 cat confdefs.h >>conftest.$ac_ext
21998 cat >>conftest.$ac_ext <<_ACEOF
21999 /* end confdefs.h.  */
22000 $ac_includes_default
22001 #include <$ac_header>
22002 _ACEOF
22003 rm -f conftest.$ac_objext
22004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22005   (eval $ac_compile) 2>conftest.er1
22006   ac_status=$?
22007   grep -v '^ *+' conftest.er1 >conftest.err
22008   rm -f conftest.er1
22009   cat conftest.err >&5
22010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011   (exit $ac_status); } &&
22012          { ac_try='test -z "$ac_c_werror_flag"
22013                          || test ! -s conftest.err'
22014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22015   (eval $ac_try) 2>&5
22016   ac_status=$?
22017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018   (exit $ac_status); }; } &&
22019          { ac_try='test -s conftest.$ac_objext'
22020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22021   (eval $ac_try) 2>&5
22022   ac_status=$?
22023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024   (exit $ac_status); }; }; then
22025   ac_header_compiler=yes
22026 else
22027   echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22029
22030 ac_header_compiler=no
22031 fi
22032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22034 echo "${ECHO_T}$ac_header_compiler" >&6
22035
22036 # Is the header present?
22037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22039 cat >conftest.$ac_ext <<_ACEOF
22040 /* confdefs.h.  */
22041 _ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h.  */
22045 #include <$ac_header>
22046 _ACEOF
22047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22048   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22049   ac_status=$?
22050   grep -v '^ *+' conftest.er1 >conftest.err
22051   rm -f conftest.er1
22052   cat conftest.err >&5
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); } >/dev/null; then
22055   if test -s conftest.err; then
22056     ac_cpp_err=$ac_c_preproc_warn_flag
22057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22058   else
22059     ac_cpp_err=
22060   fi
22061 else
22062   ac_cpp_err=yes
22063 fi
22064 if test -z "$ac_cpp_err"; then
22065   ac_header_preproc=yes
22066 else
22067   echo "$as_me: failed program was:" >&5
22068 sed 's/^/| /' conftest.$ac_ext >&5
22069
22070   ac_header_preproc=no
22071 fi
22072 rm -f conftest.err conftest.$ac_ext
22073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22074 echo "${ECHO_T}$ac_header_preproc" >&6
22075
22076 # So?  What about this header?
22077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22078   yes:no: )
22079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22083     ac_header_preproc=yes
22084     ;;
22085   no:yes:* )
22086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22098     (
22099       cat <<\_ASBOX
22100 ## ----------------------------------- ##
22101 ## Report this to llvmbugs@cs.uiuc.edu ##
22102 ## ----------------------------------- ##
22103 _ASBOX
22104     ) |
22105       sed "s/^/$as_me: WARNING:     /" >&2
22106     ;;
22107 esac
22108 echo "$as_me:$LINENO: checking for $ac_header" >&5
22109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22111   echo $ECHO_N "(cached) $ECHO_C" >&6
22112 else
22113   eval "$as_ac_Header=\$ac_header_preproc"
22114 fi
22115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22117
22118 fi
22119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22120   cat >>confdefs.h <<_ACEOF
22121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22122 _ACEOF
22123
22124 fi
22125
22126 done
22127
22128
22129
22130
22131
22132 for ac_header in malloc.h unistd.h windows.h zlib.h
22133 do
22134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22136   echo "$as_me:$LINENO: checking for $ac_header" >&5
22137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22139   echo $ECHO_N "(cached) $ECHO_C" >&6
22140 fi
22141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22143 else
22144   # Is the header compilable?
22145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22147 cat >conftest.$ac_ext <<_ACEOF
22148 /* confdefs.h.  */
22149 _ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h.  */
22153 $ac_includes_default
22154 #include <$ac_header>
22155 _ACEOF
22156 rm -f conftest.$ac_objext
22157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22158   (eval $ac_compile) 2>conftest.er1
22159   ac_status=$?
22160   grep -v '^ *+' conftest.er1 >conftest.err
22161   rm -f conftest.er1
22162   cat conftest.err >&5
22163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164   (exit $ac_status); } &&
22165          { ac_try='test -z "$ac_c_werror_flag"
22166                          || test ! -s conftest.err'
22167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168   (eval $ac_try) 2>&5
22169   ac_status=$?
22170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171   (exit $ac_status); }; } &&
22172          { ac_try='test -s conftest.$ac_objext'
22173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174   (eval $ac_try) 2>&5
22175   ac_status=$?
22176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); }; }; then
22178   ac_header_compiler=yes
22179 else
22180   echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22182
22183 ac_header_compiler=no
22184 fi
22185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22187 echo "${ECHO_T}$ac_header_compiler" >&6
22188
22189 # Is the header present?
22190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22192 cat >conftest.$ac_ext <<_ACEOF
22193 /* confdefs.h.  */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h.  */
22198 #include <$ac_header>
22199 _ACEOF
22200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22201   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22202   ac_status=$?
22203   grep -v '^ *+' conftest.er1 >conftest.err
22204   rm -f conftest.er1
22205   cat conftest.err >&5
22206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207   (exit $ac_status); } >/dev/null; then
22208   if test -s conftest.err; then
22209     ac_cpp_err=$ac_c_preproc_warn_flag
22210     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22211   else
22212     ac_cpp_err=
22213   fi
22214 else
22215   ac_cpp_err=yes
22216 fi
22217 if test -z "$ac_cpp_err"; then
22218   ac_header_preproc=yes
22219 else
22220   echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22222
22223   ac_header_preproc=no
22224 fi
22225 rm -f conftest.err conftest.$ac_ext
22226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22227 echo "${ECHO_T}$ac_header_preproc" >&6
22228
22229 # So?  What about this header?
22230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22231   yes:no: )
22232     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22236     ac_header_preproc=yes
22237     ;;
22238   no:yes:* )
22239     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22241     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22242 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22243     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22245     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22246 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22249     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22251     (
22252       cat <<\_ASBOX
22253 ## ----------------------------------- ##
22254 ## Report this to llvmbugs@cs.uiuc.edu ##
22255 ## ----------------------------------- ##
22256 _ASBOX
22257     ) |
22258       sed "s/^/$as_me: WARNING:     /" >&2
22259     ;;
22260 esac
22261 echo "$as_me:$LINENO: checking for $ac_header" >&5
22262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22264   echo $ECHO_N "(cached) $ECHO_C" >&6
22265 else
22266   eval "$as_ac_Header=\$ac_header_preproc"
22267 fi
22268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22270
22271 fi
22272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22273   cat >>confdefs.h <<_ACEOF
22274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22275 _ACEOF
22276
22277 fi
22278
22279 done
22280
22281 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22282 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22283 if test "${ac_cv_header_time+set}" = set; then
22284   echo $ECHO_N "(cached) $ECHO_C" >&6
22285 else
22286   cat >conftest.$ac_ext <<_ACEOF
22287 /* confdefs.h.  */
22288 _ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h.  */
22292 #include <sys/types.h>
22293 #include <sys/time.h>
22294 #include <time.h>
22295
22296 int
22297 main ()
22298 {
22299 if ((struct tm *) 0)
22300 return 0;
22301   ;
22302   return 0;
22303 }
22304 _ACEOF
22305 rm -f conftest.$ac_objext
22306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22307   (eval $ac_compile) 2>conftest.er1
22308   ac_status=$?
22309   grep -v '^ *+' conftest.er1 >conftest.err
22310   rm -f conftest.er1
22311   cat conftest.err >&5
22312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313   (exit $ac_status); } &&
22314          { ac_try='test -z "$ac_c_werror_flag"
22315                          || test ! -s conftest.err'
22316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22317   (eval $ac_try) 2>&5
22318   ac_status=$?
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); }; } &&
22321          { ac_try='test -s conftest.$ac_objext'
22322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323   (eval $ac_try) 2>&5
22324   ac_status=$?
22325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); }; }; then
22327   ac_cv_header_time=yes
22328 else
22329   echo "$as_me: failed program was:" >&5
22330 sed 's/^/| /' conftest.$ac_ext >&5
22331
22332 ac_cv_header_time=no
22333 fi
22334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22335 fi
22336 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22337 echo "${ECHO_T}$ac_cv_header_time" >&6
22338 if test $ac_cv_header_time = yes; then
22339
22340 cat >>confdefs.h <<\_ACEOF
22341 #define TIME_WITH_SYS_TIME 1
22342 _ACEOF
22343
22344 fi
22345
22346 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22347 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22348 if test "${ac_cv_header_mmap_anon+set}" = set; then
22349   echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351    ac_ext=c
22352 ac_cpp='$CPP $CPPFLAGS'
22353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22356
22357   cat >conftest.$ac_ext <<_ACEOF
22358 /* confdefs.h.  */
22359 _ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h.  */
22363 #include <sys/mman.h>
22364 #include <unistd.h>
22365 #include <fcntl.h>
22366 int
22367 main ()
22368 {
22369 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22370   ;
22371   return 0;
22372 }
22373 _ACEOF
22374 rm -f conftest.$ac_objext
22375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22376   (eval $ac_compile) 2>conftest.er1
22377   ac_status=$?
22378   grep -v '^ *+' conftest.er1 >conftest.err
22379   rm -f conftest.er1
22380   cat conftest.err >&5
22381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); } &&
22383          { ac_try='test -z "$ac_c_werror_flag"
22384                          || test ! -s conftest.err'
22385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386   (eval $ac_try) 2>&5
22387   ac_status=$?
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; } &&
22390          { ac_try='test -s conftest.$ac_objext'
22391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392   (eval $ac_try) 2>&5
22393   ac_status=$?
22394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395   (exit $ac_status); }; }; then
22396   ac_cv_header_mmap_anon=yes
22397 else
22398   echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22400
22401 ac_cv_header_mmap_anon=no
22402 fi
22403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22404   ac_ext=c
22405 ac_cpp='$CPP $CPPFLAGS'
22406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22409
22410
22411 fi
22412 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22413 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22414 if test "$ac_cv_header_mmap_anon" = yes; then
22415
22416 cat >>confdefs.h <<\_ACEOF
22417 #define HAVE_MMAP_ANONYMOUS
22418 _ACEOF
22419
22420 fi
22421
22422
22423
22424
22425 for ac_header in inttypes.h stdint.h
22426 do
22427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22429   echo "$as_me:$LINENO: checking for $ac_header" >&5
22430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22432   echo $ECHO_N "(cached) $ECHO_C" >&6
22433 fi
22434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22436 else
22437   # Is the header compilable?
22438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22440 cat >conftest.$ac_ext <<_ACEOF
22441 /* confdefs.h.  */
22442 _ACEOF
22443 cat confdefs.h >>conftest.$ac_ext
22444 cat >>conftest.$ac_ext <<_ACEOF
22445 /* end confdefs.h.  */
22446 $ac_includes_default
22447 #include <$ac_header>
22448 _ACEOF
22449 rm -f conftest.$ac_objext
22450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22451   (eval $ac_compile) 2>conftest.er1
22452   ac_status=$?
22453   grep -v '^ *+' conftest.er1 >conftest.err
22454   rm -f conftest.er1
22455   cat conftest.err >&5
22456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); } &&
22458          { ac_try='test -z "$ac_c_werror_flag"
22459                          || test ! -s conftest.err'
22460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22461   (eval $ac_try) 2>&5
22462   ac_status=$?
22463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464   (exit $ac_status); }; } &&
22465          { ac_try='test -s conftest.$ac_objext'
22466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22467   (eval $ac_try) 2>&5
22468   ac_status=$?
22469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470   (exit $ac_status); }; }; then
22471   ac_header_compiler=yes
22472 else
22473   echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22475
22476 ac_header_compiler=no
22477 fi
22478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22480 echo "${ECHO_T}$ac_header_compiler" >&6
22481
22482 # Is the header present?
22483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22485 cat >conftest.$ac_ext <<_ACEOF
22486 /* confdefs.h.  */
22487 _ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h.  */
22491 #include <$ac_header>
22492 _ACEOF
22493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22494   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22495   ac_status=$?
22496   grep -v '^ *+' conftest.er1 >conftest.err
22497   rm -f conftest.er1
22498   cat conftest.err >&5
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); } >/dev/null; then
22501   if test -s conftest.err; then
22502     ac_cpp_err=$ac_c_preproc_warn_flag
22503     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22504   else
22505     ac_cpp_err=
22506   fi
22507 else
22508   ac_cpp_err=yes
22509 fi
22510 if test -z "$ac_cpp_err"; then
22511   ac_header_preproc=yes
22512 else
22513   echo "$as_me: failed program was:" >&5
22514 sed 's/^/| /' conftest.$ac_ext >&5
22515
22516   ac_header_preproc=no
22517 fi
22518 rm -f conftest.err conftest.$ac_ext
22519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22520 echo "${ECHO_T}$ac_header_preproc" >&6
22521
22522 # So?  What about this header?
22523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22524   yes:no: )
22525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22529     ac_header_preproc=yes
22530     ;;
22531   no:yes:* )
22532     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22534     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22535 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22536     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22538     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22539 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22542     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22544     (
22545       cat <<\_ASBOX
22546 ## ----------------------------------- ##
22547 ## Report this to llvmbugs@cs.uiuc.edu ##
22548 ## ----------------------------------- ##
22549 _ASBOX
22550     ) |
22551       sed "s/^/$as_me: WARNING:     /" >&2
22552     ;;
22553 esac
22554 echo "$as_me:$LINENO: checking for $ac_header" >&5
22555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22557   echo $ECHO_N "(cached) $ECHO_C" >&6
22558 else
22559   eval "$as_ac_Header=\$ac_header_preproc"
22560 fi
22561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22563
22564 fi
22565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22566   cat >>confdefs.h <<_ACEOF
22567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22568 _ACEOF
22569
22570 fi
22571
22572 done
22573
22574
22575
22576 echo "$as_me:$LINENO: checking for pid_t" >&5
22577 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22578 if test "${ac_cv_type_pid_t+set}" = set; then
22579   echo $ECHO_N "(cached) $ECHO_C" >&6
22580 else
22581   cat >conftest.$ac_ext <<_ACEOF
22582 /* confdefs.h.  */
22583 _ACEOF
22584 cat confdefs.h >>conftest.$ac_ext
22585 cat >>conftest.$ac_ext <<_ACEOF
22586 /* end confdefs.h.  */
22587 $ac_includes_default
22588 int
22589 main ()
22590 {
22591 if ((pid_t *) 0)
22592   return 0;
22593 if (sizeof (pid_t))
22594   return 0;
22595   ;
22596   return 0;
22597 }
22598 _ACEOF
22599 rm -f conftest.$ac_objext
22600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22601   (eval $ac_compile) 2>conftest.er1
22602   ac_status=$?
22603   grep -v '^ *+' conftest.er1 >conftest.err
22604   rm -f conftest.er1
22605   cat conftest.err >&5
22606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607   (exit $ac_status); } &&
22608          { ac_try='test -z "$ac_c_werror_flag"
22609                          || test ! -s conftest.err'
22610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22611   (eval $ac_try) 2>&5
22612   ac_status=$?
22613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614   (exit $ac_status); }; } &&
22615          { ac_try='test -s conftest.$ac_objext'
22616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22617   (eval $ac_try) 2>&5
22618   ac_status=$?
22619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620   (exit $ac_status); }; }; then
22621   ac_cv_type_pid_t=yes
22622 else
22623   echo "$as_me: failed program was:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22625
22626 ac_cv_type_pid_t=no
22627 fi
22628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22629 fi
22630 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22631 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22632 if test $ac_cv_type_pid_t = yes; then
22633   :
22634 else
22635
22636 cat >>confdefs.h <<_ACEOF
22637 #define pid_t int
22638 _ACEOF
22639
22640 fi
22641
22642 echo "$as_me:$LINENO: checking for size_t" >&5
22643 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22644 if test "${ac_cv_type_size_t+set}" = set; then
22645   echo $ECHO_N "(cached) $ECHO_C" >&6
22646 else
22647   cat >conftest.$ac_ext <<_ACEOF
22648 /* confdefs.h.  */
22649 _ACEOF
22650 cat confdefs.h >>conftest.$ac_ext
22651 cat >>conftest.$ac_ext <<_ACEOF
22652 /* end confdefs.h.  */
22653 $ac_includes_default
22654 int
22655 main ()
22656 {
22657 if ((size_t *) 0)
22658   return 0;
22659 if (sizeof (size_t))
22660   return 0;
22661   ;
22662   return 0;
22663 }
22664 _ACEOF
22665 rm -f conftest.$ac_objext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22667   (eval $ac_compile) 2>conftest.er1
22668   ac_status=$?
22669   grep -v '^ *+' conftest.er1 >conftest.err
22670   rm -f conftest.er1
22671   cat conftest.err >&5
22672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673   (exit $ac_status); } &&
22674          { ac_try='test -z "$ac_c_werror_flag"
22675                          || test ! -s conftest.err'
22676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677   (eval $ac_try) 2>&5
22678   ac_status=$?
22679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680   (exit $ac_status); }; } &&
22681          { ac_try='test -s conftest.$ac_objext'
22682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683   (eval $ac_try) 2>&5
22684   ac_status=$?
22685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); }; }; then
22687   ac_cv_type_size_t=yes
22688 else
22689   echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22691
22692 ac_cv_type_size_t=no
22693 fi
22694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22695 fi
22696 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22697 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22698 if test $ac_cv_type_size_t = yes; then
22699   :
22700 else
22701
22702 cat >>confdefs.h <<_ACEOF
22703 #define size_t unsigned
22704 _ACEOF
22705
22706 fi
22707
22708 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22709 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22710 if test "${ac_cv_type_signal+set}" = set; then
22711   echo $ECHO_N "(cached) $ECHO_C" >&6
22712 else
22713   cat >conftest.$ac_ext <<_ACEOF
22714 /* confdefs.h.  */
22715 _ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h.  */
22719 #include <sys/types.h>
22720 #include <signal.h>
22721 #ifdef signal
22722 # undef signal
22723 #endif
22724 #ifdef __cplusplus
22725 extern "C" void (*signal (int, void (*)(int)))(int);
22726 #else
22727 void (*signal ()) ();
22728 #endif
22729
22730 int
22731 main ()
22732 {
22733 int i;
22734   ;
22735   return 0;
22736 }
22737 _ACEOF
22738 rm -f conftest.$ac_objext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22740   (eval $ac_compile) 2>conftest.er1
22741   ac_status=$?
22742   grep -v '^ *+' conftest.er1 >conftest.err
22743   rm -f conftest.er1
22744   cat conftest.err >&5
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); } &&
22747          { ac_try='test -z "$ac_c_werror_flag"
22748                          || test ! -s conftest.err'
22749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750   (eval $ac_try) 2>&5
22751   ac_status=$?
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); }; } &&
22754          { ac_try='test -s conftest.$ac_objext'
22755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756   (eval $ac_try) 2>&5
22757   ac_status=$?
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); }; }; then
22760   ac_cv_type_signal=void
22761 else
22762   echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22764
22765 ac_cv_type_signal=int
22766 fi
22767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22768 fi
22769 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22770 echo "${ECHO_T}$ac_cv_type_signal" >&6
22771
22772 cat >>confdefs.h <<_ACEOF
22773 #define RETSIGTYPE $ac_cv_type_signal
22774 _ACEOF
22775
22776
22777 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22778 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22779 if test "${ac_cv_struct_tm+set}" = set; then
22780   echo $ECHO_N "(cached) $ECHO_C" >&6
22781 else
22782   cat >conftest.$ac_ext <<_ACEOF
22783 /* confdefs.h.  */
22784 _ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h.  */
22788 #include <sys/types.h>
22789 #include <time.h>
22790
22791 int
22792 main ()
22793 {
22794 struct tm *tp; tp->tm_sec;
22795   ;
22796   return 0;
22797 }
22798 _ACEOF
22799 rm -f conftest.$ac_objext
22800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22801   (eval $ac_compile) 2>conftest.er1
22802   ac_status=$?
22803   grep -v '^ *+' conftest.er1 >conftest.err
22804   rm -f conftest.er1
22805   cat conftest.err >&5
22806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807   (exit $ac_status); } &&
22808          { ac_try='test -z "$ac_c_werror_flag"
22809                          || test ! -s conftest.err'
22810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22811   (eval $ac_try) 2>&5
22812   ac_status=$?
22813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814   (exit $ac_status); }; } &&
22815          { ac_try='test -s conftest.$ac_objext'
22816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22817   (eval $ac_try) 2>&5
22818   ac_status=$?
22819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820   (exit $ac_status); }; }; then
22821   ac_cv_struct_tm=time.h
22822 else
22823   echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22825
22826 ac_cv_struct_tm=sys/time.h
22827 fi
22828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22829 fi
22830 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22831 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22832 if test $ac_cv_struct_tm = sys/time.h; then
22833
22834 cat >>confdefs.h <<\_ACEOF
22835 #define TM_IN_SYS_TIME 1
22836 _ACEOF
22837
22838 fi
22839
22840 echo "$as_me:$LINENO: checking for int64_t" >&5
22841 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
22842 if test "${ac_cv_type_int64_t+set}" = set; then
22843   echo $ECHO_N "(cached) $ECHO_C" >&6
22844 else
22845   cat >conftest.$ac_ext <<_ACEOF
22846 /* confdefs.h.  */
22847 _ACEOF
22848 cat confdefs.h >>conftest.$ac_ext
22849 cat >>conftest.$ac_ext <<_ACEOF
22850 /* end confdefs.h.  */
22851 $ac_includes_default
22852 int
22853 main ()
22854 {
22855 if ((int64_t *) 0)
22856   return 0;
22857 if (sizeof (int64_t))
22858   return 0;
22859   ;
22860   return 0;
22861 }
22862 _ACEOF
22863 rm -f conftest.$ac_objext
22864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22865   (eval $ac_compile) 2>conftest.er1
22866   ac_status=$?
22867   grep -v '^ *+' conftest.er1 >conftest.err
22868   rm -f conftest.er1
22869   cat conftest.err >&5
22870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871   (exit $ac_status); } &&
22872          { ac_try='test -z "$ac_c_werror_flag"
22873                          || test ! -s conftest.err'
22874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22875   (eval $ac_try) 2>&5
22876   ac_status=$?
22877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878   (exit $ac_status); }; } &&
22879          { ac_try='test -s conftest.$ac_objext'
22880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881   (eval $ac_try) 2>&5
22882   ac_status=$?
22883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884   (exit $ac_status); }; }; then
22885   ac_cv_type_int64_t=yes
22886 else
22887   echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22889
22890 ac_cv_type_int64_t=no
22891 fi
22892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22893 fi
22894 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
22895 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
22896 if test $ac_cv_type_int64_t = yes; then
22897
22898 cat >>confdefs.h <<_ACEOF
22899 #define HAVE_INT64_T 1
22900 _ACEOF
22901
22902
22903 else
22904   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
22905 echo "$as_me: error: Type int64_t required but not found" >&2;}
22906    { (exit 1); exit 1; }; }
22907 fi
22908
22909 echo "$as_me:$LINENO: checking for uint64_t" >&5
22910 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
22911 if test "${ac_cv_type_uint64_t+set}" = set; then
22912   echo $ECHO_N "(cached) $ECHO_C" >&6
22913 else
22914   cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h.  */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h.  */
22920 $ac_includes_default
22921 int
22922 main ()
22923 {
22924 if ((uint64_t *) 0)
22925   return 0;
22926 if (sizeof (uint64_t))
22927   return 0;
22928   ;
22929   return 0;
22930 }
22931 _ACEOF
22932 rm -f conftest.$ac_objext
22933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22934   (eval $ac_compile) 2>conftest.er1
22935   ac_status=$?
22936   grep -v '^ *+' conftest.er1 >conftest.err
22937   rm -f conftest.er1
22938   cat conftest.err >&5
22939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940   (exit $ac_status); } &&
22941          { ac_try='test -z "$ac_c_werror_flag"
22942                          || test ! -s conftest.err'
22943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944   (eval $ac_try) 2>&5
22945   ac_status=$?
22946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947   (exit $ac_status); }; } &&
22948          { ac_try='test -s conftest.$ac_objext'
22949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950   (eval $ac_try) 2>&5
22951   ac_status=$?
22952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953   (exit $ac_status); }; }; then
22954   ac_cv_type_uint64_t=yes
22955 else
22956   echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22958
22959 ac_cv_type_uint64_t=no
22960 fi
22961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22962 fi
22963 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
22964 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
22965 if test $ac_cv_type_uint64_t = yes; then
22966
22967 cat >>confdefs.h <<_ACEOF
22968 #define HAVE_UINT64_T 1
22969 _ACEOF
22970
22971
22972 else
22973   echo "$as_me:$LINENO: checking for u_int64_t" >&5
22974 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
22975 if test "${ac_cv_type_u_int64_t+set}" = set; then
22976   echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978   cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984 $ac_includes_default
22985 int
22986 main ()
22987 {
22988 if ((u_int64_t *) 0)
22989   return 0;
22990 if (sizeof (u_int64_t))
22991   return 0;
22992   ;
22993   return 0;
22994 }
22995 _ACEOF
22996 rm -f conftest.$ac_objext
22997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22998   (eval $ac_compile) 2>conftest.er1
22999   ac_status=$?
23000   grep -v '^ *+' conftest.er1 >conftest.err
23001   rm -f conftest.er1
23002   cat conftest.err >&5
23003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); } &&
23005          { ac_try='test -z "$ac_c_werror_flag"
23006                          || test ! -s conftest.err'
23007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23008   (eval $ac_try) 2>&5
23009   ac_status=$?
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); }; } &&
23012          { ac_try='test -s conftest.$ac_objext'
23013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014   (eval $ac_try) 2>&5
23015   ac_status=$?
23016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017   (exit $ac_status); }; }; then
23018   ac_cv_type_u_int64_t=yes
23019 else
23020   echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23022
23023 ac_cv_type_u_int64_t=no
23024 fi
23025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23026 fi
23027 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
23028 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
23029 if test $ac_cv_type_u_int64_t = yes; then
23030
23031 cat >>confdefs.h <<_ACEOF
23032 #define HAVE_U_INT64_T 1
23033 _ACEOF
23034
23035
23036 else
23037   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
23038 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
23039    { (exit 1); exit 1; }; }
23040 fi
23041
23042 fi
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052 for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
23053 do
23054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23055 echo "$as_me:$LINENO: checking for $ac_func" >&5
23056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23057 if eval "test \"\${$as_ac_var+set}\" = set"; then
23058   echo $ECHO_N "(cached) $ECHO_C" >&6
23059 else
23060   cat >conftest.$ac_ext <<_ACEOF
23061 /* confdefs.h.  */
23062 _ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h.  */
23066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23068 #define $ac_func innocuous_$ac_func
23069
23070 /* System header to define __stub macros and hopefully few prototypes,
23071     which can conflict with char $ac_func (); below.
23072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23073     <limits.h> exists even on freestanding compilers.  */
23074
23075 #ifdef __STDC__
23076 # include <limits.h>
23077 #else
23078 # include <assert.h>
23079 #endif
23080
23081 #undef $ac_func
23082
23083 /* Override any gcc2 internal prototype to avoid an error.  */
23084 #ifdef __cplusplus
23085 extern "C"
23086 {
23087 #endif
23088 /* We use char because int might match the return type of a gcc2
23089    builtin and then its argument prototype would still apply.  */
23090 char $ac_func ();
23091 /* The GNU C library defines this for functions which it implements
23092     to always fail with ENOSYS.  Some functions are actually named
23093     something starting with __ and the normal name is an alias.  */
23094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23095 choke me
23096 #else
23097 char (*f) () = $ac_func;
23098 #endif
23099 #ifdef __cplusplus
23100 }
23101 #endif
23102
23103 int
23104 main ()
23105 {
23106 return f != $ac_func;
23107   ;
23108   return 0;
23109 }
23110 _ACEOF
23111 rm -f conftest.$ac_objext conftest$ac_exeext
23112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23113   (eval $ac_link) 2>conftest.er1
23114   ac_status=$?
23115   grep -v '^ *+' conftest.er1 >conftest.err
23116   rm -f conftest.er1
23117   cat conftest.err >&5
23118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119   (exit $ac_status); } &&
23120          { ac_try='test -z "$ac_c_werror_flag"
23121                          || test ! -s conftest.err'
23122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123   (eval $ac_try) 2>&5
23124   ac_status=$?
23125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126   (exit $ac_status); }; } &&
23127          { ac_try='test -s conftest$ac_exeext'
23128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129   (eval $ac_try) 2>&5
23130   ac_status=$?
23131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132   (exit $ac_status); }; }; then
23133   eval "$as_ac_var=yes"
23134 else
23135   echo "$as_me: failed program was:" >&5
23136 sed 's/^/| /' conftest.$ac_ext >&5
23137
23138 eval "$as_ac_var=no"
23139 fi
23140 rm -f conftest.err conftest.$ac_objext \
23141       conftest$ac_exeext conftest.$ac_ext
23142 fi
23143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23145 if test `eval echo '${'$as_ac_var'}'` = yes; then
23146   cat >>confdefs.h <<_ACEOF
23147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23148 _ACEOF
23149
23150 fi
23151 done
23152
23153
23154
23155
23156 for ac_func in strdup strtoq strtoll
23157 do
23158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23159 echo "$as_me:$LINENO: checking for $ac_func" >&5
23160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23161 if eval "test \"\${$as_ac_var+set}\" = set"; then
23162   echo $ECHO_N "(cached) $ECHO_C" >&6
23163 else
23164   cat >conftest.$ac_ext <<_ACEOF
23165 /* confdefs.h.  */
23166 _ACEOF
23167 cat confdefs.h >>conftest.$ac_ext
23168 cat >>conftest.$ac_ext <<_ACEOF
23169 /* end confdefs.h.  */
23170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23172 #define $ac_func innocuous_$ac_func
23173
23174 /* System header to define __stub macros and hopefully few prototypes,
23175     which can conflict with char $ac_func (); below.
23176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23177     <limits.h> exists even on freestanding compilers.  */
23178
23179 #ifdef __STDC__
23180 # include <limits.h>
23181 #else
23182 # include <assert.h>
23183 #endif
23184
23185 #undef $ac_func
23186
23187 /* Override any gcc2 internal prototype to avoid an error.  */
23188 #ifdef __cplusplus
23189 extern "C"
23190 {
23191 #endif
23192 /* We use char because int might match the return type of a gcc2
23193    builtin and then its argument prototype would still apply.  */
23194 char $ac_func ();
23195 /* The GNU C library defines this for functions which it implements
23196     to always fail with ENOSYS.  Some functions are actually named
23197     something starting with __ and the normal name is an alias.  */
23198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23199 choke me
23200 #else
23201 char (*f) () = $ac_func;
23202 #endif
23203 #ifdef __cplusplus
23204 }
23205 #endif
23206
23207 int
23208 main ()
23209 {
23210 return f != $ac_func;
23211   ;
23212   return 0;
23213 }
23214 _ACEOF
23215 rm -f conftest.$ac_objext conftest$ac_exeext
23216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23217   (eval $ac_link) 2>conftest.er1
23218   ac_status=$?
23219   grep -v '^ *+' conftest.er1 >conftest.err
23220   rm -f conftest.er1
23221   cat conftest.err >&5
23222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223   (exit $ac_status); } &&
23224          { ac_try='test -z "$ac_c_werror_flag"
23225                          || test ! -s conftest.err'
23226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227   (eval $ac_try) 2>&5
23228   ac_status=$?
23229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230   (exit $ac_status); }; } &&
23231          { ac_try='test -s conftest$ac_exeext'
23232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233   (eval $ac_try) 2>&5
23234   ac_status=$?
23235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); }; }; then
23237   eval "$as_ac_var=yes"
23238 else
23239   echo "$as_me: failed program was:" >&5
23240 sed 's/^/| /' conftest.$ac_ext >&5
23241
23242 eval "$as_ac_var=no"
23243 fi
23244 rm -f conftest.err conftest.$ac_objext \
23245       conftest$ac_exeext conftest.$ac_ext
23246 fi
23247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23249 if test `eval echo '${'$as_ac_var'}'` = yes; then
23250   cat >>confdefs.h <<_ACEOF
23251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23252 _ACEOF
23253
23254 fi
23255 done
23256
23257 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
23258 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
23259 if test "${llvm_cv_c_printf_a+set}" = set; then
23260   echo $ECHO_N "(cached) $ECHO_C" >&6
23261 else
23262   ac_ext=c
23263 ac_cpp='$CPP $CPPFLAGS'
23264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23267
23268  if test "$cross_compiling" = yes; then
23269   llvmac_cv_c_printf_a=no
23270 else
23271   cat >conftest.$ac_ext <<_ACEOF
23272
23273   /* confdefs.h.  */
23274 _ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h.  */
23278
23279 #include <stdio.h>
23280 #include <stdlib.h>
23281
23282 int
23283 main ()
23284 {
23285
23286 volatile double A, B;
23287 char Buffer[100];
23288 A = 1;
23289 A /= 10.0;
23290 sprintf(Buffer, "%a", A);
23291 B = atof(Buffer);
23292 if (A != B)
23293   return (1);
23294 if (A != 0x1.999999999999ap-4)
23295   return (1);
23296 return (0);
23297   ;
23298   return 0;
23299 }
23300 _ACEOF
23301 rm -f conftest$ac_exeext
23302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23303   (eval $ac_link) 2>&5
23304   ac_status=$?
23305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23308   (eval $ac_try) 2>&5
23309   ac_status=$?
23310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311   (exit $ac_status); }; }; then
23312   llvm_cv_c_printf_a=yes
23313 else
23314   echo "$as_me: program exited with status $ac_status" >&5
23315 echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23317
23318 ( exit $ac_status )
23319 llvmac_cv_c_printf_a=no
23320 fi
23321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23322 fi
23323  ac_ext=c
23324 ac_cpp='$CPP $CPPFLAGS'
23325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23328
23329 fi
23330 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
23331 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
23332  if test "$llvm_cv_c_printf_a" = "yes"; then
23333
23334 cat >>confdefs.h <<\_ACEOF
23335 #define HAVE_PRINTF_A 1
23336 _ACEOF
23337
23338  fi
23339
23340 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23341 # for constant arguments.  Useless!
23342 echo "$as_me:$LINENO: checking for working alloca.h" >&5
23343 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23344 if test "${ac_cv_working_alloca_h+set}" = set; then
23345   echo $ECHO_N "(cached) $ECHO_C" >&6
23346 else
23347   cat >conftest.$ac_ext <<_ACEOF
23348 /* confdefs.h.  */
23349 _ACEOF
23350 cat confdefs.h >>conftest.$ac_ext
23351 cat >>conftest.$ac_ext <<_ACEOF
23352 /* end confdefs.h.  */
23353 #include <alloca.h>
23354 int
23355 main ()
23356 {
23357 char *p = (char *) alloca (2 * sizeof (int));
23358   ;
23359   return 0;
23360 }
23361 _ACEOF
23362 rm -f conftest.$ac_objext conftest$ac_exeext
23363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23364   (eval $ac_link) 2>conftest.er1
23365   ac_status=$?
23366   grep -v '^ *+' conftest.er1 >conftest.err
23367   rm -f conftest.er1
23368   cat conftest.err >&5
23369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370   (exit $ac_status); } &&
23371          { ac_try='test -z "$ac_c_werror_flag"
23372                          || test ! -s conftest.err'
23373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374   (eval $ac_try) 2>&5
23375   ac_status=$?
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); }; } &&
23378          { ac_try='test -s conftest$ac_exeext'
23379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380   (eval $ac_try) 2>&5
23381   ac_status=$?
23382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383   (exit $ac_status); }; }; then
23384   ac_cv_working_alloca_h=yes
23385 else
23386   echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23388
23389 ac_cv_working_alloca_h=no
23390 fi
23391 rm -f conftest.err conftest.$ac_objext \
23392       conftest$ac_exeext conftest.$ac_ext
23393 fi
23394 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23395 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23396 if test $ac_cv_working_alloca_h = yes; then
23397
23398 cat >>confdefs.h <<\_ACEOF
23399 #define HAVE_ALLOCA_H 1
23400 _ACEOF
23401
23402 fi
23403
23404 echo "$as_me:$LINENO: checking for alloca" >&5
23405 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23406 if test "${ac_cv_func_alloca_works+set}" = set; then
23407   echo $ECHO_N "(cached) $ECHO_C" >&6
23408 else
23409   cat >conftest.$ac_ext <<_ACEOF
23410 /* confdefs.h.  */
23411 _ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h.  */
23415 #ifdef __GNUC__
23416 # define alloca __builtin_alloca
23417 #else
23418 # ifdef _MSC_VER
23419 #  include <malloc.h>
23420 #  define alloca _alloca
23421 # else
23422 #  if HAVE_ALLOCA_H
23423 #   include <alloca.h>
23424 #  else
23425 #   ifdef _AIX
23426  #pragma alloca
23427 #   else
23428 #    ifndef alloca /* predefined by HP cc +Olibcalls */
23429 char *alloca ();
23430 #    endif
23431 #   endif
23432 #  endif
23433 # endif
23434 #endif
23435
23436 int
23437 main ()
23438 {
23439 char *p = (char *) alloca (1);
23440   ;
23441   return 0;
23442 }
23443 _ACEOF
23444 rm -f conftest.$ac_objext conftest$ac_exeext
23445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23446   (eval $ac_link) 2>conftest.er1
23447   ac_status=$?
23448   grep -v '^ *+' conftest.er1 >conftest.err
23449   rm -f conftest.er1
23450   cat conftest.err >&5
23451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452   (exit $ac_status); } &&
23453          { ac_try='test -z "$ac_c_werror_flag"
23454                          || test ! -s conftest.err'
23455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456   (eval $ac_try) 2>&5
23457   ac_status=$?
23458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459   (exit $ac_status); }; } &&
23460          { ac_try='test -s conftest$ac_exeext'
23461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462   (eval $ac_try) 2>&5
23463   ac_status=$?
23464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465   (exit $ac_status); }; }; then
23466   ac_cv_func_alloca_works=yes
23467 else
23468   echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23470
23471 ac_cv_func_alloca_works=no
23472 fi
23473 rm -f conftest.err conftest.$ac_objext \
23474       conftest$ac_exeext conftest.$ac_ext
23475 fi
23476 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23477 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23478
23479 if test $ac_cv_func_alloca_works = yes; then
23480
23481 cat >>confdefs.h <<\_ACEOF
23482 #define HAVE_ALLOCA 1
23483 _ACEOF
23484
23485 else
23486   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23487 # that cause trouble.  Some versions do not even contain alloca or
23488 # contain a buggy version.  If you still want to use their alloca,
23489 # use ar to extract alloca.o from them instead of compiling alloca.c.
23490
23491 ALLOCA=alloca.$ac_objext
23492
23493 cat >>confdefs.h <<\_ACEOF
23494 #define C_ALLOCA 1
23495 _ACEOF
23496
23497
23498 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23499 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23500 if test "${ac_cv_os_cray+set}" = set; then
23501   echo $ECHO_N "(cached) $ECHO_C" >&6
23502 else
23503   cat >conftest.$ac_ext <<_ACEOF
23504 /* confdefs.h.  */
23505 _ACEOF
23506 cat confdefs.h >>conftest.$ac_ext
23507 cat >>conftest.$ac_ext <<_ACEOF
23508 /* end confdefs.h.  */
23509 #if defined(CRAY) && ! defined(CRAY2)
23510 webecray
23511 #else
23512 wenotbecray
23513 #endif
23514
23515 _ACEOF
23516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23517   $EGREP "webecray" >/dev/null 2>&1; then
23518   ac_cv_os_cray=yes
23519 else
23520   ac_cv_os_cray=no
23521 fi
23522 rm -f conftest*
23523
23524 fi
23525 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23526 echo "${ECHO_T}$ac_cv_os_cray" >&6
23527 if test $ac_cv_os_cray = yes; then
23528   for ac_func in _getb67 GETB67 getb67; do
23529     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23530 echo "$as_me:$LINENO: checking for $ac_func" >&5
23531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23532 if eval "test \"\${$as_ac_var+set}\" = set"; then
23533   echo $ECHO_N "(cached) $ECHO_C" >&6
23534 else
23535   cat >conftest.$ac_ext <<_ACEOF
23536 /* confdefs.h.  */
23537 _ACEOF
23538 cat confdefs.h >>conftest.$ac_ext
23539 cat >>conftest.$ac_ext <<_ACEOF
23540 /* end confdefs.h.  */
23541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23543 #define $ac_func innocuous_$ac_func
23544
23545 /* System header to define __stub macros and hopefully few prototypes,
23546     which can conflict with char $ac_func (); below.
23547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23548     <limits.h> exists even on freestanding compilers.  */
23549
23550 #ifdef __STDC__
23551 # include <limits.h>
23552 #else
23553 # include <assert.h>
23554 #endif
23555
23556 #undef $ac_func
23557
23558 /* Override any gcc2 internal prototype to avoid an error.  */
23559 #ifdef __cplusplus
23560 extern "C"
23561 {
23562 #endif
23563 /* We use char because int might match the return type of a gcc2
23564    builtin and then its argument prototype would still apply.  */
23565 char $ac_func ();
23566 /* The GNU C library defines this for functions which it implements
23567     to always fail with ENOSYS.  Some functions are actually named
23568     something starting with __ and the normal name is an alias.  */
23569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23570 choke me
23571 #else
23572 char (*f) () = $ac_func;
23573 #endif
23574 #ifdef __cplusplus
23575 }
23576 #endif
23577
23578 int
23579 main ()
23580 {
23581 return f != $ac_func;
23582   ;
23583   return 0;
23584 }
23585 _ACEOF
23586 rm -f conftest.$ac_objext conftest$ac_exeext
23587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23588   (eval $ac_link) 2>conftest.er1
23589   ac_status=$?
23590   grep -v '^ *+' conftest.er1 >conftest.err
23591   rm -f conftest.er1
23592   cat conftest.err >&5
23593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594   (exit $ac_status); } &&
23595          { ac_try='test -z "$ac_c_werror_flag"
23596                          || test ! -s conftest.err'
23597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598   (eval $ac_try) 2>&5
23599   ac_status=$?
23600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601   (exit $ac_status); }; } &&
23602          { ac_try='test -s conftest$ac_exeext'
23603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23604   (eval $ac_try) 2>&5
23605   ac_status=$?
23606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607   (exit $ac_status); }; }; then
23608   eval "$as_ac_var=yes"
23609 else
23610   echo "$as_me: failed program was:" >&5
23611 sed 's/^/| /' conftest.$ac_ext >&5
23612
23613 eval "$as_ac_var=no"
23614 fi
23615 rm -f conftest.err conftest.$ac_objext \
23616       conftest$ac_exeext conftest.$ac_ext
23617 fi
23618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23620 if test `eval echo '${'$as_ac_var'}'` = yes; then
23621
23622 cat >>confdefs.h <<_ACEOF
23623 #define CRAY_STACKSEG_END $ac_func
23624 _ACEOF
23625
23626     break
23627 fi
23628
23629   done
23630 fi
23631
23632 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23633 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23634 if test "${ac_cv_c_stack_direction+set}" = set; then
23635   echo $ECHO_N "(cached) $ECHO_C" >&6
23636 else
23637   if test "$cross_compiling" = yes; then
23638   ac_cv_c_stack_direction=0
23639 else
23640   cat >conftest.$ac_ext <<_ACEOF
23641 /* confdefs.h.  */
23642 _ACEOF
23643 cat confdefs.h >>conftest.$ac_ext
23644 cat >>conftest.$ac_ext <<_ACEOF
23645 /* end confdefs.h.  */
23646 int
23647 find_stack_direction ()
23648 {
23649   static char *addr = 0;
23650   auto char dummy;
23651   if (addr == 0)
23652     {
23653       addr = &dummy;
23654       return find_stack_direction ();
23655     }
23656   else
23657     return (&dummy > addr) ? 1 : -1;
23658 }
23659
23660 int
23661 main ()
23662 {
23663   exit (find_stack_direction () < 0);
23664 }
23665 _ACEOF
23666 rm -f conftest$ac_exeext
23667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23668   (eval $ac_link) 2>&5
23669   ac_status=$?
23670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23673   (eval $ac_try) 2>&5
23674   ac_status=$?
23675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); }; }; then
23677   ac_cv_c_stack_direction=1
23678 else
23679   echo "$as_me: program exited with status $ac_status" >&5
23680 echo "$as_me: failed program was:" >&5
23681 sed 's/^/| /' conftest.$ac_ext >&5
23682
23683 ( exit $ac_status )
23684 ac_cv_c_stack_direction=-1
23685 fi
23686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23687 fi
23688 fi
23689 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23690 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23691
23692 cat >>confdefs.h <<_ACEOF
23693 #define STACK_DIRECTION $ac_cv_c_stack_direction
23694 _ACEOF
23695
23696
23697 fi
23698
23699
23700 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
23701 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
23702 if test "${ac_cv_func_rand48+set}" = set; then
23703   echo $ECHO_N "(cached) $ECHO_C" >&6
23704 else
23705   ac_ext=cc
23706 ac_cpp='$CXXCPP $CPPFLAGS'
23707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23710
23711    cat >conftest.$ac_ext <<_ACEOF
23712 /* confdefs.h.  */
23713 _ACEOF
23714 cat confdefs.h >>conftest.$ac_ext
23715 cat >>conftest.$ac_ext <<_ACEOF
23716 /* end confdefs.h.  */
23717 #include <stdlib.h>
23718 int
23719 main ()
23720 {
23721 srand48(0);lrand48();drand48();
23722   ;
23723   return 0;
23724 }
23725 _ACEOF
23726 rm -f conftest.$ac_objext
23727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23728   (eval $ac_compile) 2>conftest.er1
23729   ac_status=$?
23730   grep -v '^ *+' conftest.er1 >conftest.err
23731   rm -f conftest.er1
23732   cat conftest.err >&5
23733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734   (exit $ac_status); } &&
23735          { ac_try='test -z "$ac_cxx_werror_flag"
23736                          || test ! -s conftest.err'
23737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23738   (eval $ac_try) 2>&5
23739   ac_status=$?
23740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741   (exit $ac_status); }; } &&
23742          { ac_try='test -s conftest.$ac_objext'
23743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23744   (eval $ac_try) 2>&5
23745   ac_status=$?
23746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747   (exit $ac_status); }; }; then
23748   ac_cv_func_rand48=yes
23749 else
23750   echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23752
23753 ac_cv_func_rand48=no
23754 fi
23755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23756   ac_ext=c
23757 ac_cpp='$CPP $CPPFLAGS'
23758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23761
23762 fi
23763 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
23764 echo "${ECHO_T}$ac_cv_func_rand48" >&6
23765
23766 if test "$ac_cv_func_rand48" = "yes" ; then
23767
23768 cat >>confdefs.h <<\_ACEOF
23769 #define HAVE_RAND48 1
23770 _ACEOF
23771
23772 fi
23773
23774
23775 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
23776 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
23777 if test "${ac_cv_cxx_namespaces+set}" = set; then
23778   echo $ECHO_N "(cached) $ECHO_C" >&6
23779 else
23780   ac_ext=cc
23781 ac_cpp='$CXXCPP $CPPFLAGS'
23782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23785
23786  cat >conftest.$ac_ext <<_ACEOF
23787 /* confdefs.h.  */
23788 _ACEOF
23789 cat confdefs.h >>conftest.$ac_ext
23790 cat >>conftest.$ac_ext <<_ACEOF
23791 /* end confdefs.h.  */
23792 namespace Outer { namespace Inner { int i = 0; }}
23793 int
23794 main ()
23795 {
23796 using namespace Outer::Inner; return i;
23797   ;
23798   return 0;
23799 }
23800 _ACEOF
23801 rm -f conftest.$ac_objext
23802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23803   (eval $ac_compile) 2>conftest.er1
23804   ac_status=$?
23805   grep -v '^ *+' conftest.er1 >conftest.err
23806   rm -f conftest.er1
23807   cat conftest.err >&5
23808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809   (exit $ac_status); } &&
23810          { ac_try='test -z "$ac_cxx_werror_flag"
23811                          || test ! -s conftest.err'
23812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813   (eval $ac_try) 2>&5
23814   ac_status=$?
23815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816   (exit $ac_status); }; } &&
23817          { ac_try='test -s conftest.$ac_objext'
23818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819   (eval $ac_try) 2>&5
23820   ac_status=$?
23821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822   (exit $ac_status); }; }; then
23823   ac_cv_cxx_namespaces=yes
23824 else
23825   echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23827
23828 ac_cv_cxx_namespaces=no
23829 fi
23830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23831  ac_ext=c
23832 ac_cpp='$CPP $CPPFLAGS'
23833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23836
23837
23838 fi
23839 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
23840 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
23841 if test "$ac_cv_cxx_namespaces" = yes; then
23842
23843 cat >>confdefs.h <<\_ACEOF
23844 #define HAVE_NAMESPACES
23845 _ACEOF
23846
23847 fi
23848
23849 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
23850 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
23851 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
23852   echo $ECHO_N "(cached) $ECHO_C" >&6
23853 else
23854
23855   ac_ext=cc
23856 ac_cpp='$CXXCPP $CPPFLAGS'
23857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23860
23861   cat >conftest.$ac_ext <<_ACEOF
23862 /* confdefs.h.  */
23863 _ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h.  */
23867 #include <ext/hash_map>
23868 #ifdef HAVE_NAMESPACES
23869 using namespace std;
23870 #endif
23871 int
23872 main ()
23873 {
23874 hash_map<int, int> t;
23875   ;
23876   return 0;
23877 }
23878 _ACEOF
23879 rm -f conftest.$ac_objext
23880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23881   (eval $ac_compile) 2>conftest.er1
23882   ac_status=$?
23883   grep -v '^ *+' conftest.er1 >conftest.err
23884   rm -f conftest.er1
23885   cat conftest.err >&5
23886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887   (exit $ac_status); } &&
23888          { ac_try='test -z "$ac_cxx_werror_flag"
23889                          || test ! -s conftest.err'
23890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23891   (eval $ac_try) 2>&5
23892   ac_status=$?
23893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894   (exit $ac_status); }; } &&
23895          { ac_try='test -s conftest.$ac_objext'
23896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23897   (eval $ac_try) 2>&5
23898   ac_status=$?
23899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900   (exit $ac_status); }; }; then
23901   ac_cv_cxx_have_std_ext_hash_map=yes
23902 else
23903   echo "$as_me: failed program was:" >&5
23904 sed 's/^/| /' conftest.$ac_ext >&5
23905
23906 ac_cv_cxx_have_std_ext_hash_map=no
23907 fi
23908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23909   ac_ext=c
23910 ac_cpp='$CPP $CPPFLAGS'
23911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23914
23915 fi
23916 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
23917 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
23918  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
23919  then
23920
23921 cat >>confdefs.h <<\_ACEOF
23922 #define HAVE_STD_EXT_HASH_MAP 1
23923 _ACEOF
23924
23925  else
23926
23927 cat >>confdefs.h <<\_ACEOF
23928 #define HAVE_STD_EXT_HASH_MAP 0
23929 _ACEOF
23930
23931  fi
23932
23933  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
23934 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
23935 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
23936   echo $ECHO_N "(cached) $ECHO_C" >&6
23937 else
23938
23939   ac_ext=cc
23940 ac_cpp='$CXXCPP $CPPFLAGS'
23941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23944
23945   cat >conftest.$ac_ext <<_ACEOF
23946 /* confdefs.h.  */
23947 _ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h.  */
23951 #include <ext/hash_map>
23952 #ifdef HAVE_NAMESPACES
23953 using namespace __gnu_cxx;
23954 #endif
23955 int
23956 main ()
23957 {
23958 hash_map<int,int> t;
23959   ;
23960   return 0;
23961 }
23962 _ACEOF
23963 rm -f conftest.$ac_objext
23964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23965   (eval $ac_compile) 2>conftest.er1
23966   ac_status=$?
23967   grep -v '^ *+' conftest.er1 >conftest.err
23968   rm -f conftest.er1
23969   cat conftest.err >&5
23970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971   (exit $ac_status); } &&
23972          { ac_try='test -z "$ac_cxx_werror_flag"
23973                          || test ! -s conftest.err'
23974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23975   (eval $ac_try) 2>&5
23976   ac_status=$?
23977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978   (exit $ac_status); }; } &&
23979          { ac_try='test -s conftest.$ac_objext'
23980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23981   (eval $ac_try) 2>&5
23982   ac_status=$?
23983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984   (exit $ac_status); }; }; then
23985   ac_cv_cxx_have_gnu_ext_hash_map=yes
23986 else
23987   echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23989
23990 ac_cv_cxx_have_gnu_ext_hash_map=no
23991 fi
23992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23993   ac_ext=c
23994 ac_cpp='$CPP $CPPFLAGS'
23995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23998
23999 fi
24000 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
24001 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
24002  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
24003  then
24004
24005 cat >>confdefs.h <<\_ACEOF
24006 #define HAVE_GNU_EXT_HASH_MAP 1
24007 _ACEOF
24008
24009  else
24010
24011 cat >>confdefs.h <<\_ACEOF
24012 #define HAVE_GNU_EXT_HASH_MAP 0
24013 _ACEOF
24014
24015  fi
24016
24017  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
24018 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
24019 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
24020   echo $ECHO_N "(cached) $ECHO_C" >&6
24021 else
24022
24023   ac_ext=cc
24024 ac_cpp='$CXXCPP $CPPFLAGS'
24025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24028
24029   cat >conftest.$ac_ext <<_ACEOF
24030 /* confdefs.h.  */
24031 _ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h.  */
24035 #include <hash_map>
24036 int
24037 main ()
24038 {
24039 hash_map<int,int> t;
24040   ;
24041   return 0;
24042 }
24043 _ACEOF
24044 rm -f conftest.$ac_objext
24045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24046   (eval $ac_compile) 2>conftest.er1
24047   ac_status=$?
24048   grep -v '^ *+' conftest.er1 >conftest.err
24049   rm -f conftest.er1
24050   cat conftest.err >&5
24051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052   (exit $ac_status); } &&
24053          { ac_try='test -z "$ac_cxx_werror_flag"
24054                          || test ! -s conftest.err'
24055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056   (eval $ac_try) 2>&5
24057   ac_status=$?
24058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059   (exit $ac_status); }; } &&
24060          { ac_try='test -s conftest.$ac_objext'
24061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24062   (eval $ac_try) 2>&5
24063   ac_status=$?
24064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065   (exit $ac_status); }; }; then
24066   ac_cv_cxx_have_global_hash_map=yes
24067 else
24068   echo "$as_me: failed program was:" >&5
24069 sed 's/^/| /' conftest.$ac_ext >&5
24070
24071 ac_cv_cxx_have_global_hash_map=no
24072 fi
24073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24074   ac_ext=c
24075 ac_cpp='$CPP $CPPFLAGS'
24076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24079
24080 fi
24081 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
24082 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
24083  if test "$ac_cv_cxx_have_global_hash_map" = yes
24084  then
24085
24086 cat >>confdefs.h <<\_ACEOF
24087 #define HAVE_GLOBAL_HASH_MAP 1
24088 _ACEOF
24089
24090  else
24091
24092 cat >>confdefs.h <<\_ACEOF
24093 #define HAVE_GLOBAL_HASH_MAP 0
24094 _ACEOF
24095
24096  fi
24097
24098 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
24099 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
24100 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
24101   echo $ECHO_N "(cached) $ECHO_C" >&6
24102 else
24103
24104   ac_ext=cc
24105 ac_cpp='$CXXCPP $CPPFLAGS'
24106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24109
24110   cat >conftest.$ac_ext <<_ACEOF
24111 /* confdefs.h.  */
24112 _ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h.  */
24116 #include <ext/hash_set>
24117 #ifdef HAVE_NAMESPACES
24118 using namespace std;
24119 #endif
24120 int
24121 main ()
24122 {
24123 hash_set<int> t;
24124   ;
24125   return 0;
24126 }
24127 _ACEOF
24128 rm -f conftest.$ac_objext
24129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24130   (eval $ac_compile) 2>conftest.er1
24131   ac_status=$?
24132   grep -v '^ *+' conftest.er1 >conftest.err
24133   rm -f conftest.er1
24134   cat conftest.err >&5
24135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136   (exit $ac_status); } &&
24137          { ac_try='test -z "$ac_cxx_werror_flag"
24138                          || test ! -s conftest.err'
24139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140   (eval $ac_try) 2>&5
24141   ac_status=$?
24142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143   (exit $ac_status); }; } &&
24144          { ac_try='test -s conftest.$ac_objext'
24145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24146   (eval $ac_try) 2>&5
24147   ac_status=$?
24148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149   (exit $ac_status); }; }; then
24150   ac_cv_cxx_have_std_ext_hash_set=yes
24151 else
24152   echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24154
24155 ac_cv_cxx_have_std_ext_hash_set=no
24156 fi
24157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24158   ac_ext=c
24159 ac_cpp='$CPP $CPPFLAGS'
24160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24163
24164 fi
24165 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
24166 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
24167  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
24168  then
24169
24170 cat >>confdefs.h <<\_ACEOF
24171 #define HAVE_STD_EXT_HASH_SET 1
24172 _ACEOF
24173
24174  else
24175
24176 cat >>confdefs.h <<\_ACEOF
24177 #define HAVE_STD_EXT_HASH_SET 0
24178 _ACEOF
24179
24180  fi
24181
24182  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
24183 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
24184 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
24185   echo $ECHO_N "(cached) $ECHO_C" >&6
24186 else
24187
24188   ac_ext=cc
24189 ac_cpp='$CXXCPP $CPPFLAGS'
24190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24193
24194   cat >conftest.$ac_ext <<_ACEOF
24195 /* confdefs.h.  */
24196 _ACEOF
24197 cat confdefs.h >>conftest.$ac_ext
24198 cat >>conftest.$ac_ext <<_ACEOF
24199 /* end confdefs.h.  */
24200 #include <ext/hash_set>
24201 #ifdef HAVE_NAMESPACES
24202 using namespace __gnu_cxx;
24203 #endif
24204 int
24205 main ()
24206 {
24207 hash_set<int> t;
24208   ;
24209   return 0;
24210 }
24211 _ACEOF
24212 rm -f conftest.$ac_objext
24213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24214   (eval $ac_compile) 2>conftest.er1
24215   ac_status=$?
24216   grep -v '^ *+' conftest.er1 >conftest.err
24217   rm -f conftest.er1
24218   cat conftest.err >&5
24219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220   (exit $ac_status); } &&
24221          { ac_try='test -z "$ac_cxx_werror_flag"
24222                          || test ! -s conftest.err'
24223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24224   (eval $ac_try) 2>&5
24225   ac_status=$?
24226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227   (exit $ac_status); }; } &&
24228          { ac_try='test -s conftest.$ac_objext'
24229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24230   (eval $ac_try) 2>&5
24231   ac_status=$?
24232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233   (exit $ac_status); }; }; then
24234   ac_cv_cxx_have_gnu_ext_hash_set=yes
24235 else
24236   echo "$as_me: failed program was:" >&5
24237 sed 's/^/| /' conftest.$ac_ext >&5
24238
24239 ac_cv_cxx_have_gnu_ext_hash_set=no
24240 fi
24241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24242   ac_ext=c
24243 ac_cpp='$CPP $CPPFLAGS'
24244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24247
24248 fi
24249 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
24250 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
24251  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
24252  then
24253
24254 cat >>confdefs.h <<\_ACEOF
24255 #define HAVE_GNU_EXT_HASH_SET 1
24256 _ACEOF
24257
24258  else
24259
24260 cat >>confdefs.h <<\_ACEOF
24261 #define HAVE_GNU_EXT_HASH_SET 0
24262 _ACEOF
24263
24264  fi
24265
24266  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
24267 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
24268 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
24269   echo $ECHO_N "(cached) $ECHO_C" >&6
24270 else
24271
24272   ac_ext=cc
24273 ac_cpp='$CXXCPP $CPPFLAGS'
24274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24277
24278   cat >conftest.$ac_ext <<_ACEOF
24279 /* confdefs.h.  */
24280 _ACEOF
24281 cat confdefs.h >>conftest.$ac_ext
24282 cat >>conftest.$ac_ext <<_ACEOF
24283 /* end confdefs.h.  */
24284 #include <hash_set>
24285 int
24286 main ()
24287 {
24288 hash_set<int> t; return 0;
24289   ;
24290   return 0;
24291 }
24292 _ACEOF
24293 rm -f conftest.$ac_objext
24294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24295   (eval $ac_compile) 2>conftest.er1
24296   ac_status=$?
24297   grep -v '^ *+' conftest.er1 >conftest.err
24298   rm -f conftest.er1
24299   cat conftest.err >&5
24300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301   (exit $ac_status); } &&
24302          { ac_try='test -z "$ac_cxx_werror_flag"
24303                          || test ! -s conftest.err'
24304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24305   (eval $ac_try) 2>&5
24306   ac_status=$?
24307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308   (exit $ac_status); }; } &&
24309          { ac_try='test -s conftest.$ac_objext'
24310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24311   (eval $ac_try) 2>&5
24312   ac_status=$?
24313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); }; }; then
24315   ac_cv_cxx_have_global_hash_set=yes
24316 else
24317   echo "$as_me: failed program was:" >&5
24318 sed 's/^/| /' conftest.$ac_ext >&5
24319
24320 ac_cv_cxx_have_global_hash_set=no
24321 fi
24322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24323   ac_ext=c
24324 ac_cpp='$CPP $CPPFLAGS'
24325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24328
24329 fi
24330 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
24331 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
24332  if test "$ac_cv_cxx_have_global_hash_set" = yes
24333  then
24334
24335 cat >>confdefs.h <<\_ACEOF
24336 #define HAVE_GLOBAL_HASH_SET 1
24337 _ACEOF
24338
24339  else
24340
24341 cat >>confdefs.h <<\_ACEOF
24342 #define HAVE_GLOBAL_HASH_SET 0
24343 _ACEOF
24344
24345  fi
24346
24347 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
24348 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
24349 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
24350   echo $ECHO_N "(cached) $ECHO_C" >&6
24351 else
24352
24353   ac_ext=cc
24354 ac_cpp='$CXXCPP $CPPFLAGS'
24355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24358
24359   cat >conftest.$ac_ext <<_ACEOF
24360 /* confdefs.h.  */
24361 _ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h.  */
24365 #include <iterator>
24366 #ifdef HAVE_NAMESPACES
24367 using namespace std;
24368 #endif
24369 int
24370 main ()
24371 {
24372 iterator<int,int,int> t; return 0;
24373   ;
24374   return 0;
24375 }
24376 _ACEOF
24377 rm -f conftest.$ac_objext
24378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24379   (eval $ac_compile) 2>conftest.er1
24380   ac_status=$?
24381   grep -v '^ *+' conftest.er1 >conftest.err
24382   rm -f conftest.er1
24383   cat conftest.err >&5
24384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385   (exit $ac_status); } &&
24386          { ac_try='test -z "$ac_cxx_werror_flag"
24387                          || test ! -s conftest.err'
24388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24389   (eval $ac_try) 2>&5
24390   ac_status=$?
24391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392   (exit $ac_status); }; } &&
24393          { ac_try='test -s conftest.$ac_objext'
24394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395   (eval $ac_try) 2>&5
24396   ac_status=$?
24397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398   (exit $ac_status); }; }; then
24399   ac_cv_cxx_have_std_iterator=yes
24400 else
24401   echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.$ac_ext >&5
24403
24404 ac_cv_cxx_have_std_iterator=no
24405 fi
24406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24407   ac_ext=c
24408 ac_cpp='$CPP $CPPFLAGS'
24409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24412
24413
24414 fi
24415 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
24416 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
24417 if test "$ac_cv_cxx_have_std_iterator" = yes
24418 then
24419
24420 cat >>confdefs.h <<\_ACEOF
24421 #define HAVE_STD_ITERATOR 1
24422 _ACEOF
24423
24424 else
24425
24426 cat >>confdefs.h <<\_ACEOF
24427 #define HAVE_STD_ITERATOR 0
24428 _ACEOF
24429
24430 fi
24431
24432 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
24433 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
24434 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
24435   echo $ECHO_N "(cached) $ECHO_C" >&6
24436 else
24437
24438   ac_ext=cc
24439 ac_cpp='$CXXCPP $CPPFLAGS'
24440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24443
24444   cat >conftest.$ac_ext <<_ACEOF
24445 /* confdefs.h.  */
24446 _ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h.  */
24450 #include <iterator>
24451 #ifdef HAVE_NAMESPACES
24452 using namespace std;
24453 #endif
24454 int
24455 main ()
24456 {
24457 bidirectional_iterator<int,int> t; return 0;
24458   ;
24459   return 0;
24460 }
24461 _ACEOF
24462 rm -f conftest.$ac_objext
24463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24464   (eval $ac_compile) 2>conftest.er1
24465   ac_status=$?
24466   grep -v '^ *+' conftest.er1 >conftest.err
24467   rm -f conftest.er1
24468   cat conftest.err >&5
24469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470   (exit $ac_status); } &&
24471          { ac_try='test -z "$ac_cxx_werror_flag"
24472                          || test ! -s conftest.err'
24473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24474   (eval $ac_try) 2>&5
24475   ac_status=$?
24476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477   (exit $ac_status); }; } &&
24478          { ac_try='test -s conftest.$ac_objext'
24479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480   (eval $ac_try) 2>&5
24481   ac_status=$?
24482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483   (exit $ac_status); }; }; then
24484   ac_cv_cxx_have_bi_iterator=yes
24485 else
24486   echo "$as_me: failed program was:" >&5
24487 sed 's/^/| /' conftest.$ac_ext >&5
24488
24489 ac_cv_cxx_have_bi_iterator=no
24490 fi
24491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24492   ac_ext=c
24493 ac_cpp='$CPP $CPPFLAGS'
24494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24497
24498
24499 fi
24500 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
24501 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
24502 if test "$ac_cv_cxx_have_bi_iterator" = yes
24503 then
24504
24505 cat >>confdefs.h <<\_ACEOF
24506 #define HAVE_BI_ITERATOR 1
24507 _ACEOF
24508
24509 else
24510
24511 cat >>confdefs.h <<\_ACEOF
24512 #define HAVE_BI_ITERATOR 0
24513 _ACEOF
24514
24515 fi
24516
24517 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
24518 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
24519 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
24520   echo $ECHO_N "(cached) $ECHO_C" >&6
24521 else
24522
24523   ac_ext=cc
24524 ac_cpp='$CXXCPP $CPPFLAGS'
24525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24528
24529   cat >conftest.$ac_ext <<_ACEOF
24530 /* confdefs.h.  */
24531 _ACEOF
24532 cat confdefs.h >>conftest.$ac_ext
24533 cat >>conftest.$ac_ext <<_ACEOF
24534 /* end confdefs.h.  */
24535 #include <iterator>
24536 #ifdef HAVE_NAMESPACES
24537 using namespace std;
24538 #endif
24539 int
24540 main ()
24541 {
24542 forward_iterator<int,int> t; return 0;
24543   ;
24544   return 0;
24545 }
24546 _ACEOF
24547 rm -f conftest.$ac_objext
24548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24549   (eval $ac_compile) 2>conftest.er1
24550   ac_status=$?
24551   grep -v '^ *+' conftest.er1 >conftest.err
24552   rm -f conftest.er1
24553   cat conftest.err >&5
24554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555   (exit $ac_status); } &&
24556          { ac_try='test -z "$ac_cxx_werror_flag"
24557                          || test ! -s conftest.err'
24558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24559   (eval $ac_try) 2>&5
24560   ac_status=$?
24561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562   (exit $ac_status); }; } &&
24563          { ac_try='test -s conftest.$ac_objext'
24564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565   (eval $ac_try) 2>&5
24566   ac_status=$?
24567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568   (exit $ac_status); }; }; then
24569   ac_cv_cxx_have_fwd_iterator=yes
24570 else
24571   echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24573
24574 ac_cv_cxx_have_fwd_iterator=no
24575 fi
24576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24577   ac_ext=c
24578 ac_cpp='$CPP $CPPFLAGS'
24579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24582
24583
24584 fi
24585 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
24586 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
24587 if test "$ac_cv_cxx_have_fwd_iterator" = yes
24588 then
24589
24590 cat >>confdefs.h <<\_ACEOF
24591 #define HAVE_FWD_ITERATOR 1
24592 _ACEOF
24593
24594 else
24595
24596 cat >>confdefs.h <<\_ACEOF
24597 #define HAVE_FWD_ITERATOR 0
24598 _ACEOF
24599
24600 fi
24601
24602
24603 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
24604 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
24605 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
24606   echo $ECHO_N "(cached) $ECHO_C" >&6
24607 else
24608   ac_ext=cc
24609 ac_cpp='$CXXCPP $CPPFLAGS'
24610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24613
24614    cat >conftest.$ac_ext <<_ACEOF
24615 /* confdefs.h.  */
24616 _ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h.  */
24620 #include <math.h>
24621 int
24622 main ()
24623 {
24624 float f; isnan(f);
24625   ;
24626   return 0;
24627 }
24628 _ACEOF
24629 rm -f conftest.$ac_objext
24630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24631   (eval $ac_compile) 2>conftest.er1
24632   ac_status=$?
24633   grep -v '^ *+' conftest.er1 >conftest.err
24634   rm -f conftest.er1
24635   cat conftest.err >&5
24636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637   (exit $ac_status); } &&
24638          { ac_try='test -z "$ac_cxx_werror_flag"
24639                          || test ! -s conftest.err'
24640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24641   (eval $ac_try) 2>&5
24642   ac_status=$?
24643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644   (exit $ac_status); }; } &&
24645          { ac_try='test -s conftest.$ac_objext'
24646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24647   (eval $ac_try) 2>&5
24648   ac_status=$?
24649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650   (exit $ac_status); }; }; then
24651   ac_cv_func_isnan_in_math_h=yes
24652 else
24653   echo "$as_me: failed program was:" >&5
24654 sed 's/^/| /' conftest.$ac_ext >&5
24655
24656 ac_cv_func_isnan_in_math_h=no
24657 fi
24658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24659   ac_ext=c
24660 ac_cpp='$CPP $CPPFLAGS'
24661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24664
24665 fi
24666 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
24667 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
24668
24669
24670 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
24671
24672 cat >>confdefs.h <<\_ACEOF
24673 #define HAVE_ISNAN_IN_MATH_H 1
24674 _ACEOF
24675
24676 fi
24677
24678 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
24679 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
24680 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
24681   echo $ECHO_N "(cached) $ECHO_C" >&6
24682 else
24683   ac_ext=cc
24684 ac_cpp='$CXXCPP $CPPFLAGS'
24685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24688
24689    cat >conftest.$ac_ext <<_ACEOF
24690 /* confdefs.h.  */
24691 _ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h.  */
24695 #include <cmath>
24696 int
24697 main ()
24698 {
24699 float f; isnan(f);
24700   ;
24701   return 0;
24702 }
24703 _ACEOF
24704 rm -f conftest.$ac_objext
24705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24706   (eval $ac_compile) 2>conftest.er1
24707   ac_status=$?
24708   grep -v '^ *+' conftest.er1 >conftest.err
24709   rm -f conftest.er1
24710   cat conftest.err >&5
24711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712   (exit $ac_status); } &&
24713          { ac_try='test -z "$ac_cxx_werror_flag"
24714                          || test ! -s conftest.err'
24715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716   (eval $ac_try) 2>&5
24717   ac_status=$?
24718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719   (exit $ac_status); }; } &&
24720          { ac_try='test -s conftest.$ac_objext'
24721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24722   (eval $ac_try) 2>&5
24723   ac_status=$?
24724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725   (exit $ac_status); }; }; then
24726   ac_cv_func_isnan_in_cmath=yes
24727 else
24728   echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24730
24731 ac_cv_func_isnan_in_cmath=no
24732 fi
24733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24734   ac_ext=c
24735 ac_cpp='$CPP $CPPFLAGS'
24736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24739
24740 fi
24741 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
24742 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
24743
24744 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
24745
24746 cat >>confdefs.h <<\_ACEOF
24747 #define HAVE_ISNAN_IN_CMATH 1
24748 _ACEOF
24749
24750 fi
24751
24752 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
24753 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
24754 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
24755   echo $ECHO_N "(cached) $ECHO_C" >&6
24756 else
24757   ac_ext=cc
24758 ac_cpp='$CXXCPP $CPPFLAGS'
24759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24762
24763    cat >conftest.$ac_ext <<_ACEOF
24764 /* confdefs.h.  */
24765 _ACEOF
24766 cat confdefs.h >>conftest.$ac_ext
24767 cat >>conftest.$ac_ext <<_ACEOF
24768 /* end confdefs.h.  */
24769 #include <cmath>
24770 int
24771 main ()
24772 {
24773 float f; std::isnan(f);
24774   ;
24775   return 0;
24776 }
24777 _ACEOF
24778 rm -f conftest.$ac_objext
24779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24780   (eval $ac_compile) 2>conftest.er1
24781   ac_status=$?
24782   grep -v '^ *+' conftest.er1 >conftest.err
24783   rm -f conftest.er1
24784   cat conftest.err >&5
24785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786   (exit $ac_status); } &&
24787          { ac_try='test -z "$ac_cxx_werror_flag"
24788                          || test ! -s conftest.err'
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); }; } &&
24794          { ac_try='test -s conftest.$ac_objext'
24795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24796   (eval $ac_try) 2>&5
24797   ac_status=$?
24798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799   (exit $ac_status); }; }; then
24800   ac_cv_func_std_isnan_in_cmath=yes
24801 else
24802   echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24804
24805 ac_cv_func_std_isnan_in_cmath=no
24806 fi
24807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24808   ac_ext=c
24809 ac_cpp='$CPP $CPPFLAGS'
24810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24813
24814 fi
24815 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
24816 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
24817
24818 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
24819
24820 cat >>confdefs.h <<\_ACEOF
24821 #define HAVE_STD_ISNAN_IN_CMATH 1
24822 _ACEOF
24823
24824 fi
24825
24826
24827 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
24828 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
24829 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
24830   echo $ECHO_N "(cached) $ECHO_C" >&6
24831 else
24832   ac_ext=cc
24833 ac_cpp='$CXXCPP $CPPFLAGS'
24834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24837
24838    cat >conftest.$ac_ext <<_ACEOF
24839 /* confdefs.h.  */
24840 _ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h.  */
24844 #include <math.h>
24845 int
24846 main ()
24847 {
24848 float f; isinf(f);
24849   ;
24850   return 0;
24851 }
24852 _ACEOF
24853 rm -f conftest.$ac_objext
24854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24855   (eval $ac_compile) 2>conftest.er1
24856   ac_status=$?
24857   grep -v '^ *+' conftest.er1 >conftest.err
24858   rm -f conftest.er1
24859   cat conftest.err >&5
24860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861   (exit $ac_status); } &&
24862          { ac_try='test -z "$ac_cxx_werror_flag"
24863                          || test ! -s conftest.err'
24864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24865   (eval $ac_try) 2>&5
24866   ac_status=$?
24867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868   (exit $ac_status); }; } &&
24869          { ac_try='test -s conftest.$ac_objext'
24870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24871   (eval $ac_try) 2>&5
24872   ac_status=$?
24873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874   (exit $ac_status); }; }; then
24875   ac_cv_func_isinf_in_math_h=yes
24876 else
24877   echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24879
24880 ac_cv_func_isinf_in_math_h=no
24881 fi
24882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24883   ac_ext=c
24884 ac_cpp='$CPP $CPPFLAGS'
24885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24888
24889 fi
24890 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
24891 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
24892
24893 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
24894
24895 cat >>confdefs.h <<\_ACEOF
24896 #define HAVE_ISINF_IN_MATH_H 1
24897 _ACEOF
24898
24899 fi
24900
24901 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
24902 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
24903 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
24904   echo $ECHO_N "(cached) $ECHO_C" >&6
24905 else
24906   ac_ext=cc
24907 ac_cpp='$CXXCPP $CPPFLAGS'
24908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24911
24912    cat >conftest.$ac_ext <<_ACEOF
24913 /* confdefs.h.  */
24914 _ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h.  */
24918 #include <cmath>
24919 int
24920 main ()
24921 {
24922 float f; isinf(f);
24923   ;
24924   return 0;
24925 }
24926 _ACEOF
24927 rm -f conftest.$ac_objext
24928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24929   (eval $ac_compile) 2>conftest.er1
24930   ac_status=$?
24931   grep -v '^ *+' conftest.er1 >conftest.err
24932   rm -f conftest.er1
24933   cat conftest.err >&5
24934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935   (exit $ac_status); } &&
24936          { ac_try='test -z "$ac_cxx_werror_flag"
24937                          || test ! -s conftest.err'
24938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939   (eval $ac_try) 2>&5
24940   ac_status=$?
24941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942   (exit $ac_status); }; } &&
24943          { ac_try='test -s conftest.$ac_objext'
24944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24945   (eval $ac_try) 2>&5
24946   ac_status=$?
24947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948   (exit $ac_status); }; }; then
24949   ac_cv_func_isinf_in_cmath=yes
24950 else
24951   echo "$as_me: failed program was:" >&5
24952 sed 's/^/| /' conftest.$ac_ext >&5
24953
24954 ac_cv_func_isinf_in_cmath=no
24955 fi
24956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24957   ac_ext=c
24958 ac_cpp='$CPP $CPPFLAGS'
24959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24962
24963 fi
24964 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
24965 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
24966
24967 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
24968
24969 cat >>confdefs.h <<\_ACEOF
24970 #define HAVE_ISINF_IN_CMATH 1
24971 _ACEOF
24972
24973 fi
24974
24975 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
24976 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
24977 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
24978   echo $ECHO_N "(cached) $ECHO_C" >&6
24979 else
24980   ac_ext=cc
24981 ac_cpp='$CXXCPP $CPPFLAGS'
24982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24985
24986    cat >conftest.$ac_ext <<_ACEOF
24987 /* confdefs.h.  */
24988 _ACEOF
24989 cat confdefs.h >>conftest.$ac_ext
24990 cat >>conftest.$ac_ext <<_ACEOF
24991 /* end confdefs.h.  */
24992 #include <cmath>
24993 int
24994 main ()
24995 {
24996 float f; std::isinf(f)}
24997   ;
24998   return 0;
24999 }
25000 _ACEOF
25001 rm -f conftest.$ac_objext
25002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25003   (eval $ac_compile) 2>conftest.er1
25004   ac_status=$?
25005   grep -v '^ *+' conftest.er1 >conftest.err
25006   rm -f conftest.er1
25007   cat conftest.err >&5
25008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009   (exit $ac_status); } &&
25010          { ac_try='test -z "$ac_cxx_werror_flag"
25011                          || test ! -s conftest.err'
25012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013   (eval $ac_try) 2>&5
25014   ac_status=$?
25015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); }; } &&
25017          { ac_try='test -s conftest.$ac_objext'
25018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019   (eval $ac_try) 2>&5
25020   ac_status=$?
25021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022   (exit $ac_status); }; }; then
25023   ac_cv_func_std_isinf_in_cmath=yes
25024 else
25025   echo "$as_me: failed program was:" >&5
25026 sed 's/^/| /' conftest.$ac_ext >&5
25027
25028 ac_cv_func_std_isinf_in_cmath=no
25029 fi
25030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25031   ac_ext=c
25032 ac_cpp='$CPP $CPPFLAGS'
25033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25036
25037 fi
25038 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
25039 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
25040
25041 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
25042
25043 cat >>confdefs.h <<\_ACEOF
25044 #define HAVE_STD_ISINF_IN_CMATH 1
25045 _ACEOF
25046
25047 fi
25048
25049 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
25050 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
25051 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
25052   echo $ECHO_N "(cached) $ECHO_C" >&6
25053 else
25054   ac_ext=cc
25055 ac_cpp='$CXXCPP $CPPFLAGS'
25056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25059
25060    cat >conftest.$ac_ext <<_ACEOF
25061 /* confdefs.h.  */
25062 _ACEOF
25063 cat confdefs.h >>conftest.$ac_ext
25064 cat >>conftest.$ac_ext <<_ACEOF
25065 /* end confdefs.h.  */
25066 #include <ieeefp.h>
25067 int
25068 main ()
25069 {
25070 float f; finite(f);
25071   ;
25072   return 0;
25073 }
25074 _ACEOF
25075 rm -f conftest.$ac_objext
25076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25077   (eval $ac_compile) 2>conftest.er1
25078   ac_status=$?
25079   grep -v '^ *+' conftest.er1 >conftest.err
25080   rm -f conftest.er1
25081   cat conftest.err >&5
25082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083   (exit $ac_status); } &&
25084          { ac_try='test -z "$ac_cxx_werror_flag"
25085                          || test ! -s conftest.err'
25086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25087   (eval $ac_try) 2>&5
25088   ac_status=$?
25089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090   (exit $ac_status); }; } &&
25091          { ac_try='test -s conftest.$ac_objext'
25092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093   (eval $ac_try) 2>&5
25094   ac_status=$?
25095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096   (exit $ac_status); }; }; then
25097   ac_cv_func_finite_in_ieeefp_h=yes
25098 else
25099   echo "$as_me: failed program was:" >&5
25100 sed 's/^/| /' conftest.$ac_ext >&5
25101
25102 ac_cv_func_finite_in_ieeefp_h=no
25103 fi
25104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25105   ac_ext=c
25106 ac_cpp='$CPP $CPPFLAGS'
25107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25110
25111 fi
25112 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
25113 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
25114
25115 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
25116
25117 cat >>confdefs.h <<\_ACEOF
25118 #define HAVE_FINITE_IN_IEEEFP_H 1
25119 _ACEOF
25120
25121 fi
25122
25123
25124
25125
25126
25127 for ac_header in stdlib.h unistd.h
25128 do
25129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25131   echo "$as_me:$LINENO: checking for $ac_header" >&5
25132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25134   echo $ECHO_N "(cached) $ECHO_C" >&6
25135 fi
25136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25138 else
25139   # Is the header compilable?
25140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25142 cat >conftest.$ac_ext <<_ACEOF
25143 /* confdefs.h.  */
25144 _ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h.  */
25148 $ac_includes_default
25149 #include <$ac_header>
25150 _ACEOF
25151 rm -f conftest.$ac_objext
25152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25153   (eval $ac_compile) 2>conftest.er1
25154   ac_status=$?
25155   grep -v '^ *+' conftest.er1 >conftest.err
25156   rm -f conftest.er1
25157   cat conftest.err >&5
25158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159   (exit $ac_status); } &&
25160          { ac_try='test -z "$ac_c_werror_flag"
25161                          || test ! -s conftest.err'
25162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25163   (eval $ac_try) 2>&5
25164   ac_status=$?
25165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166   (exit $ac_status); }; } &&
25167          { ac_try='test -s conftest.$ac_objext'
25168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169   (eval $ac_try) 2>&5
25170   ac_status=$?
25171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172   (exit $ac_status); }; }; then
25173   ac_header_compiler=yes
25174 else
25175   echo "$as_me: failed program was:" >&5
25176 sed 's/^/| /' conftest.$ac_ext >&5
25177
25178 ac_header_compiler=no
25179 fi
25180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25182 echo "${ECHO_T}$ac_header_compiler" >&6
25183
25184 # Is the header present?
25185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25187 cat >conftest.$ac_ext <<_ACEOF
25188 /* confdefs.h.  */
25189 _ACEOF
25190 cat confdefs.h >>conftest.$ac_ext
25191 cat >>conftest.$ac_ext <<_ACEOF
25192 /* end confdefs.h.  */
25193 #include <$ac_header>
25194 _ACEOF
25195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25196   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25197   ac_status=$?
25198   grep -v '^ *+' conftest.er1 >conftest.err
25199   rm -f conftest.er1
25200   cat conftest.err >&5
25201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202   (exit $ac_status); } >/dev/null; then
25203   if test -s conftest.err; then
25204     ac_cpp_err=$ac_c_preproc_warn_flag
25205     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25206   else
25207     ac_cpp_err=
25208   fi
25209 else
25210   ac_cpp_err=yes
25211 fi
25212 if test -z "$ac_cpp_err"; then
25213   ac_header_preproc=yes
25214 else
25215   echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25217
25218   ac_header_preproc=no
25219 fi
25220 rm -f conftest.err conftest.$ac_ext
25221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25222 echo "${ECHO_T}$ac_header_preproc" >&6
25223
25224 # So?  What about this header?
25225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25226   yes:no: )
25227     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25231     ac_header_preproc=yes
25232     ;;
25233   no:yes:* )
25234     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25236     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25237 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25238     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25240     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25241 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25244     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25246     (
25247       cat <<\_ASBOX
25248 ## ----------------------------------- ##
25249 ## Report this to llvmbugs@cs.uiuc.edu ##
25250 ## ----------------------------------- ##
25251 _ASBOX
25252     ) |
25253       sed "s/^/$as_me: WARNING:     /" >&2
25254     ;;
25255 esac
25256 echo "$as_me:$LINENO: checking for $ac_header" >&5
25257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25259   echo $ECHO_N "(cached) $ECHO_C" >&6
25260 else
25261   eval "$as_ac_Header=\$ac_header_preproc"
25262 fi
25263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25265
25266 fi
25267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25268   cat >>confdefs.h <<_ACEOF
25269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25270 _ACEOF
25271
25272 fi
25273
25274 done
25275
25276
25277 for ac_func in getpagesize
25278 do
25279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25280 echo "$as_me:$LINENO: checking for $ac_func" >&5
25281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25282 if eval "test \"\${$as_ac_var+set}\" = set"; then
25283   echo $ECHO_N "(cached) $ECHO_C" >&6
25284 else
25285   cat >conftest.$ac_ext <<_ACEOF
25286 /* confdefs.h.  */
25287 _ACEOF
25288 cat confdefs.h >>conftest.$ac_ext
25289 cat >>conftest.$ac_ext <<_ACEOF
25290 /* end confdefs.h.  */
25291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25293 #define $ac_func innocuous_$ac_func
25294
25295 /* System header to define __stub macros and hopefully few prototypes,
25296     which can conflict with char $ac_func (); below.
25297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25298     <limits.h> exists even on freestanding compilers.  */
25299
25300 #ifdef __STDC__
25301 # include <limits.h>
25302 #else
25303 # include <assert.h>
25304 #endif
25305
25306 #undef $ac_func
25307
25308 /* Override any gcc2 internal prototype to avoid an error.  */
25309 #ifdef __cplusplus
25310 extern "C"
25311 {
25312 #endif
25313 /* We use char because int might match the return type of a gcc2
25314    builtin and then its argument prototype would still apply.  */
25315 char $ac_func ();
25316 /* The GNU C library defines this for functions which it implements
25317     to always fail with ENOSYS.  Some functions are actually named
25318     something starting with __ and the normal name is an alias.  */
25319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25320 choke me
25321 #else
25322 char (*f) () = $ac_func;
25323 #endif
25324 #ifdef __cplusplus
25325 }
25326 #endif
25327
25328 int
25329 main ()
25330 {
25331 return f != $ac_func;
25332   ;
25333   return 0;
25334 }
25335 _ACEOF
25336 rm -f conftest.$ac_objext conftest$ac_exeext
25337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25338   (eval $ac_link) 2>conftest.er1
25339   ac_status=$?
25340   grep -v '^ *+' conftest.er1 >conftest.err
25341   rm -f conftest.er1
25342   cat conftest.err >&5
25343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344   (exit $ac_status); } &&
25345          { ac_try='test -z "$ac_c_werror_flag"
25346                          || test ! -s conftest.err'
25347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25348   (eval $ac_try) 2>&5
25349   ac_status=$?
25350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351   (exit $ac_status); }; } &&
25352          { ac_try='test -s conftest$ac_exeext'
25353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354   (eval $ac_try) 2>&5
25355   ac_status=$?
25356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357   (exit $ac_status); }; }; then
25358   eval "$as_ac_var=yes"
25359 else
25360   echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25362
25363 eval "$as_ac_var=no"
25364 fi
25365 rm -f conftest.err conftest.$ac_objext \
25366       conftest$ac_exeext conftest.$ac_ext
25367 fi
25368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25370 if test `eval echo '${'$as_ac_var'}'` = yes; then
25371   cat >>confdefs.h <<_ACEOF
25372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25373 _ACEOF
25374
25375 fi
25376 done
25377
25378 echo "$as_me:$LINENO: checking for working mmap" >&5
25379 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
25380 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25381   echo $ECHO_N "(cached) $ECHO_C" >&6
25382 else
25383   if test "$cross_compiling" = yes; then
25384   ac_cv_func_mmap_fixed_mapped=no
25385 else
25386   cat >conftest.$ac_ext <<_ACEOF
25387 /* confdefs.h.  */
25388 _ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h.  */
25392 $ac_includes_default
25393 /* malloc might have been renamed as rpl_malloc. */
25394 #undef malloc
25395
25396 /* Thanks to Mike Haertel and Jim Avera for this test.
25397    Here is a matrix of mmap possibilities:
25398         mmap private not fixed
25399         mmap private fixed at somewhere currently unmapped
25400         mmap private fixed at somewhere already mapped
25401         mmap shared not fixed
25402         mmap shared fixed at somewhere currently unmapped
25403         mmap shared fixed at somewhere already mapped
25404    For private mappings, we should verify that changes cannot be read()
25405    back from the file, nor mmap's back from the file at a different
25406    address.  (There have been systems where private was not correctly
25407    implemented like the infamous i386 svr4.0, and systems where the
25408    VM page cache was not coherent with the file system buffer cache
25409    like early versions of FreeBSD and possibly contemporary NetBSD.)
25410    For shared mappings, we should conversely verify that changes get
25411    propagated back to all the places they're supposed to be.
25412
25413    Grep wants private fixed already mapped.
25414    The main things grep needs to know about mmap are:
25415    * does it exist and is it safe to write into the mmap'd area
25416    * how to use it (BSD variants)  */
25417
25418 #include <fcntl.h>
25419 #include <sys/mman.h>
25420
25421 #if !STDC_HEADERS && !HAVE_STDLIB_H
25422 char *malloc ();
25423 #endif
25424
25425 /* This mess was copied from the GNU getpagesize.h.  */
25426 #if !HAVE_GETPAGESIZE
25427 /* Assume that all systems that can run configure have sys/param.h.  */
25428 # if !HAVE_SYS_PARAM_H
25429 #  define HAVE_SYS_PARAM_H 1
25430 # endif
25431
25432 # ifdef _SC_PAGESIZE
25433 #  define getpagesize() sysconf(_SC_PAGESIZE)
25434 # else /* no _SC_PAGESIZE */
25435 #  if HAVE_SYS_PARAM_H
25436 #   include <sys/param.h>
25437 #   ifdef EXEC_PAGESIZE
25438 #    define getpagesize() EXEC_PAGESIZE
25439 #   else /* no EXEC_PAGESIZE */
25440 #    ifdef NBPG
25441 #     define getpagesize() NBPG * CLSIZE
25442 #     ifndef CLSIZE
25443 #      define CLSIZE 1
25444 #     endif /* no CLSIZE */
25445 #    else /* no NBPG */
25446 #     ifdef NBPC
25447 #      define getpagesize() NBPC
25448 #     else /* no NBPC */
25449 #      ifdef PAGESIZE
25450 #       define getpagesize() PAGESIZE
25451 #      endif /* PAGESIZE */
25452 #     endif /* no NBPC */
25453 #    endif /* no NBPG */
25454 #   endif /* no EXEC_PAGESIZE */
25455 #  else /* no HAVE_SYS_PARAM_H */
25456 #   define getpagesize() 8192   /* punt totally */
25457 #  endif /* no HAVE_SYS_PARAM_H */
25458 # endif /* no _SC_PAGESIZE */
25459
25460 #endif /* no HAVE_GETPAGESIZE */
25461
25462 int
25463 main ()
25464 {
25465   char *data, *data2, *data3;
25466   int i, pagesize;
25467   int fd;
25468
25469   pagesize = getpagesize ();
25470
25471   /* First, make a file with some known garbage in it. */
25472   data = (char *) malloc (pagesize);
25473   if (!data)
25474     exit (1);
25475   for (i = 0; i < pagesize; ++i)
25476     *(data + i) = rand ();
25477   umask (0);
25478   fd = creat ("conftest.mmap", 0600);
25479   if (fd < 0)
25480     exit (1);
25481   if (write (fd, data, pagesize) != pagesize)
25482     exit (1);
25483   close (fd);
25484
25485   /* Next, try to mmap the file at a fixed address which already has
25486      something else allocated at it.  If we can, also make sure that
25487      we see the same garbage.  */
25488   fd = open ("conftest.mmap", O_RDWR);
25489   if (fd < 0)
25490     exit (1);
25491   data2 = (char *) malloc (2 * pagesize);
25492   if (!data2)
25493     exit (1);
25494   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
25495   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25496                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
25497     exit (1);
25498   for (i = 0; i < pagesize; ++i)
25499     if (*(data + i) != *(data2 + i))
25500       exit (1);
25501
25502   /* Finally, make sure that changes to the mapped area do not
25503      percolate back to the file as seen by read().  (This is a bug on
25504      some variants of i386 svr4.0.)  */
25505   for (i = 0; i < pagesize; ++i)
25506     *(data2 + i) = *(data2 + i) + 1;
25507   data3 = (char *) malloc (pagesize);
25508   if (!data3)
25509     exit (1);
25510   if (read (fd, data3, pagesize) != pagesize)
25511     exit (1);
25512   for (i = 0; i < pagesize; ++i)
25513     if (*(data + i) != *(data3 + i))
25514       exit (1);
25515   close (fd);
25516   exit (0);
25517 }
25518 _ACEOF
25519 rm -f conftest$ac_exeext
25520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25521   (eval $ac_link) 2>&5
25522   ac_status=$?
25523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526   (eval $ac_try) 2>&5
25527   ac_status=$?
25528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529   (exit $ac_status); }; }; then
25530   ac_cv_func_mmap_fixed_mapped=yes
25531 else
25532   echo "$as_me: program exited with status $ac_status" >&5
25533 echo "$as_me: failed program was:" >&5
25534 sed 's/^/| /' conftest.$ac_ext >&5
25535
25536 ( exit $ac_status )
25537 ac_cv_func_mmap_fixed_mapped=no
25538 fi
25539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25540 fi
25541 fi
25542 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25543 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
25544 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25545
25546 cat >>confdefs.h <<\_ACEOF
25547 #define HAVE_MMAP 1
25548 _ACEOF
25549
25550 fi
25551 rm -f conftest.mmap
25552
25553 echo "$as_me:$LINENO: checking for mmap of files" >&5
25554 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
25555 if test "${ac_cv_func_mmap_file+set}" = set; then
25556   echo $ECHO_N "(cached) $ECHO_C" >&6
25557 else
25558    ac_ext=c
25559 ac_cpp='$CPP $CPPFLAGS'
25560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25563
25564   if test "$cross_compiling" = yes; then
25565   ac_cv_func_mmap_file=no
25566 else
25567   cat >conftest.$ac_ext <<_ACEOF
25568
25569     /* confdefs.h.  */
25570 _ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h.  */
25574
25575 #include <sys/types.h>
25576 #include <sys/mman.h>
25577 #include <fcntl.h>
25578
25579 int
25580 main ()
25581 {
25582
25583   int fd;
25584   fd = creat ("foo",0777);
25585   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
25586   unlink ("foo");
25587   return (fd != (int) MAP_FAILED);
25588   ;
25589   return 0;
25590 }
25591 _ACEOF
25592 rm -f conftest$ac_exeext
25593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25594   (eval $ac_link) 2>&5
25595   ac_status=$?
25596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25599   (eval $ac_try) 2>&5
25600   ac_status=$?
25601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602   (exit $ac_status); }; }; then
25603   ac_cv_func_mmap_file=yes
25604 else
25605   echo "$as_me: program exited with status $ac_status" >&5
25606 echo "$as_me: failed program was:" >&5
25607 sed 's/^/| /' conftest.$ac_ext >&5
25608
25609 ( exit $ac_status )
25610 ac_cv_func_mmap_file=no
25611 fi
25612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25613 fi
25614   ac_ext=c
25615 ac_cpp='$CPP $CPPFLAGS'
25616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25619
25620
25621 fi
25622 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
25623 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
25624 if test "$ac_cv_func_mmap_file" = yes; then
25625
25626 cat >>confdefs.h <<\_ACEOF
25627 #define HAVE_MMAP_FILE
25628 _ACEOF
25629
25630    MMAP_FILE=yes
25631
25632 fi
25633
25634 echo "$as_me:$LINENO: checking for mprotect" >&5
25635 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
25636 if test "${ac_cv_func_mprotect+set}" = set; then
25637   echo $ECHO_N "(cached) $ECHO_C" >&6
25638 else
25639   cat >conftest.$ac_ext <<_ACEOF
25640 /* confdefs.h.  */
25641 _ACEOF
25642 cat confdefs.h >>conftest.$ac_ext
25643 cat >>conftest.$ac_ext <<_ACEOF
25644 /* end confdefs.h.  */
25645 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
25646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25647 #define mprotect innocuous_mprotect
25648
25649 /* System header to define __stub macros and hopefully few prototypes,
25650     which can conflict with char mprotect (); below.
25651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25652     <limits.h> exists even on freestanding compilers.  */
25653
25654 #ifdef __STDC__
25655 # include <limits.h>
25656 #else
25657 # include <assert.h>
25658 #endif
25659
25660 #undef mprotect
25661
25662 /* Override any gcc2 internal prototype to avoid an error.  */
25663 #ifdef __cplusplus
25664 extern "C"
25665 {
25666 #endif
25667 /* We use char because int might match the return type of a gcc2
25668    builtin and then its argument prototype would still apply.  */
25669 char mprotect ();
25670 /* The GNU C library defines this for functions which it implements
25671     to always fail with ENOSYS.  Some functions are actually named
25672     something starting with __ and the normal name is an alias.  */
25673 #if defined (__stub_mprotect) || defined (__stub___mprotect)
25674 choke me
25675 #else
25676 char (*f) () = mprotect;
25677 #endif
25678 #ifdef __cplusplus
25679 }
25680 #endif
25681
25682 int
25683 main ()
25684 {
25685 return f != mprotect;
25686   ;
25687   return 0;
25688 }
25689 _ACEOF
25690 rm -f conftest.$ac_objext conftest$ac_exeext
25691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25692   (eval $ac_link) 2>conftest.er1
25693   ac_status=$?
25694   grep -v '^ *+' conftest.er1 >conftest.err
25695   rm -f conftest.er1
25696   cat conftest.err >&5
25697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698   (exit $ac_status); } &&
25699          { ac_try='test -z "$ac_c_werror_flag"
25700                          || test ! -s conftest.err'
25701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702   (eval $ac_try) 2>&5
25703   ac_status=$?
25704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); }; } &&
25706          { ac_try='test -s conftest$ac_exeext'
25707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25708   (eval $ac_try) 2>&5
25709   ac_status=$?
25710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711   (exit $ac_status); }; }; then
25712   ac_cv_func_mprotect=yes
25713 else
25714   echo "$as_me: failed program was:" >&5
25715 sed 's/^/| /' conftest.$ac_ext >&5
25716
25717 ac_cv_func_mprotect=no
25718 fi
25719 rm -f conftest.err conftest.$ac_objext \
25720       conftest$ac_exeext conftest.$ac_ext
25721 fi
25722 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
25723 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
25724 if test $ac_cv_func_mprotect = yes; then
25725   :
25726 else
25727   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
25728 echo "$as_me: error: Function mprotect() required but not found" >&2;}
25729    { (exit 1); exit 1; }; }
25730 fi
25731
25732
25733 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
25734 then
25735   { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
25736 echo "$as_me: WARNING: mmap() required but not found" >&2;}
25737 fi
25738 if test "$ac_cv_func_mmap_file" = "no"
25739 then
25740   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
25741 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
25742 fi
25743
25744
25745 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
25746 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
25747 if test "${llvm_cv_llvmgcc+set}" = set; then
25748   echo $ECHO_N "(cached) $ECHO_C" >&6
25749 else
25750   llvm_cv_llvmgcc='llvmgcc_not_found'
25751 if test -d "$LLVMGCCDIR" ; then
25752   if test -x "$LLVMGCCDIR/bin/gcc" ; then
25753     llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
25754   fi
25755 fi
25756 fi
25757 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
25758 echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
25759
25760 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
25761 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
25762 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
25763   echo $ECHO_N "(cached) $ECHO_C" >&6
25764 else
25765   llvm_cv_llvmgcc_sanity="no"
25766 if test -x "$llvm_cv_llvmgcc" ; then
25767   cp /dev/null conftest.c
25768   "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
25769   if test $? -eq 0 ; then
25770     llvm_cv_llvmgcc_sanity="yes"
25771   fi
25772   rm conftest.c
25773 fi
25774 fi
25775 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
25776 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
25777
25778 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
25779   LLVMGCC="$llvm_cv_llvmgcc"
25780
25781   llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
25782   LLVMCC1=$llvmcc1path
25783
25784   llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
25785   LLVMCC1PLUS=$llvmcc1pluspath
25786
25787 fi
25788
25789 echo "$as_me:$LINENO: checking for shared library suffix" >&5
25790 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
25791 eval "SHLIBEXT=$shrext_cmds"
25792 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
25793 echo "${ECHO_T}$SHLIBEXT" >&6
25794 SHLIBEXT=$SHLIBEXT
25795
25796
25797 cat >>confdefs.h <<_ACEOF
25798 #define SHLIBEXT "$SHLIBEXT"
25799 _ACEOF
25800
25801
25802 # Translate the various configuration directories and other basic
25803 # information into substitutions that will end up in Makefile.config.in
25804 # that these configured values can be used by the makefiles
25805 eval LLVM_PREFIX="${prefix}";
25806 eval LLVM_BINDIR="${prefix}/bin";
25807 eval LLVM_LIBDIR="${prefix}/lib";
25808 eval LLVM_DATADIR="${prefix}/share/llvm";
25809 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
25810 eval LLVM_ETCDIR="${prefix}/etc/llvm";
25811 eval LLVM_INCLUDEDIR="${prefix}/include";
25812 eval LLVM_INFODIR="${prefix}/info";
25813 eval LLVM_MANDIR="${prefix}/man";
25814 LLVM_CONFIGTIME=`date`
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826 # Place the various directores into the config.h file as #defines so that we
25827 # can know about the installation paths within LLVM.
25828
25829 cat >>confdefs.h <<_ACEOF
25830 #define LLVM_PREFIX "$LLVM_PREFIX"
25831 _ACEOF
25832
25833
25834 cat >>confdefs.h <<_ACEOF
25835 #define LLVM_BINDIR "$LLVM_BINDIR"
25836 _ACEOF
25837
25838
25839 cat >>confdefs.h <<_ACEOF
25840 #define LLVM_LIBDIR "$LLVM_LIBDIR"
25841 _ACEOF
25842
25843
25844 cat >>confdefs.h <<_ACEOF
25845 #define LLVM_DATADIR "$LLVM_DATADIR"
25846 _ACEOF
25847
25848
25849 cat >>confdefs.h <<_ACEOF
25850 #define LLVM_DATADIR "$LLVM_DOCSDIR"
25851 _ACEOF
25852
25853
25854 cat >>confdefs.h <<_ACEOF
25855 #define LLVM_ETCDIR "$LLVM_ETCDIR"
25856 _ACEOF
25857
25858
25859 cat >>confdefs.h <<_ACEOF
25860 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
25861 _ACEOF
25862
25863
25864 cat >>confdefs.h <<_ACEOF
25865 #define LLVM_INFODIR "$LLVM_INFODIR"
25866 _ACEOF
25867
25868
25869 cat >>confdefs.h <<_ACEOF
25870 #define LLVM_MANDIR "$LLVM_MANDIR"
25871 _ACEOF
25872
25873
25874 cat >>confdefs.h <<_ACEOF
25875 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
25876 _ACEOF
25877
25878
25879
25880           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
25881
25882
25883           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
25884
25885           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
25886
25887           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
25888
25889           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
25890
25891           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
25892
25893
25894           ac_config_files="$ac_config_files Makefile.config"
25895
25896
25897                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
25898
25899
25900           ac_config_files="$ac_config_files docs/doxygen.cfg"
25901
25902
25903           ac_config_commands="$ac_config_commands Makefile"
25904
25905
25906           ac_config_commands="$ac_config_commands Makefile.common"
25907
25908
25909           ac_config_commands="$ac_config_commands examples/Makefile"
25910
25911
25912           ac_config_commands="$ac_config_commands lib/Makefile"
25913
25914
25915           ac_config_commands="$ac_config_commands runtime/Makefile"
25916
25917
25918           ac_config_commands="$ac_config_commands test/Makefile"
25919
25920
25921           ac_config_commands="$ac_config_commands test/Makefile.tests"
25922
25923
25924           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
25925
25926
25927           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
25928
25929
25930           ac_config_commands="$ac_config_commands tools/Makefile"
25931
25932
25933           ac_config_commands="$ac_config_commands tools/Makefile.JIT"
25934
25935
25936           ac_config_commands="$ac_config_commands utils/Makefile"
25937
25938
25939           ac_config_commands="$ac_config_commands projects/Makefile"
25940
25941
25942
25943 cat >confcache <<\_ACEOF
25944 # This file is a shell script that caches the results of configure
25945 # tests run on this system so they can be shared between configure
25946 # scripts and configure runs, see configure's option --config-cache.
25947 # It is not useful on other systems.  If it contains results you don't
25948 # want to keep, you may remove or edit it.
25949 #
25950 # config.status only pays attention to the cache file if you give it
25951 # the --recheck option to rerun configure.
25952 #
25953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25955 # following values.
25956
25957 _ACEOF
25958
25959 # The following way of writing the cache mishandles newlines in values,
25960 # but we know of no workaround that is simple, portable, and efficient.
25961 # So, don't put newlines in cache variables' values.
25962 # Ultrix sh set writes to stderr and can't be redirected directly,
25963 # and sets the high bit in the cache file unless we assign to the vars.
25964 {
25965   (set) 2>&1 |
25966     case `(ac_space=' '; set | grep ac_space) 2>&1` in
25967     *ac_space=\ *)
25968       # `set' does not quote correctly, so add quotes (double-quote
25969       # substitution turns \\\\ into \\, and sed turns \\ into \).
25970       sed -n \
25971         "s/'/'\\\\''/g;
25972           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25973       ;;
25974     *)
25975       # `set' quotes correctly as required by POSIX, so do not add quotes.
25976       sed -n \
25977         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25978       ;;
25979     esac;
25980 } |
25981   sed '
25982      t clear
25983      : clear
25984      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25985      t end
25986      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25987      : end' >>confcache
25988 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25989   if test -w $cache_file; then
25990     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25991     cat confcache >$cache_file
25992   else
25993     echo "not updating unwritable cache $cache_file"
25994   fi
25995 fi
25996 rm -f confcache
25997
25998 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25999 # Let make expand exec_prefix.
26000 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26001
26002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26004 # trailing colons and then remove the whole line if VPATH becomes empty
26005 # (actually we leave an empty line to preserve line numbers).
26006 if test "x$srcdir" = x.; then
26007   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26008 s/:*\$(srcdir):*/:/;
26009 s/:*\${srcdir}:*/:/;
26010 s/:*@srcdir@:*/:/;
26011 s/^\([^=]*=[     ]*\):*/\1/;
26012 s/:*$//;
26013 s/^[^=]*=[       ]*$//;
26014 }'
26015 fi
26016
26017 DEFS=-DHAVE_CONFIG_H
26018
26019 ac_libobjs=
26020 ac_ltlibobjs=
26021 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26022   # 1. Remove the extension, and $U if already installed.
26023   ac_i=`echo "$ac_i" |
26024          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26025   # 2. Add them.
26026   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26027   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26028 done
26029 LIBOBJS=$ac_libobjs
26030
26031 LTLIBOBJS=$ac_ltlibobjs
26032
26033
26034
26035 : ${CONFIG_STATUS=./config.status}
26036 ac_clean_files_save=$ac_clean_files
26037 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26038 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26039 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26040 cat >$CONFIG_STATUS <<_ACEOF
26041 #! $SHELL
26042 # Generated by $as_me.
26043 # Run this file to recreate the current configuration.
26044 # Compiler output produced by configure, useful for debugging
26045 # configure, is in config.log if it exists.
26046
26047 debug=false
26048 ac_cs_recheck=false
26049 ac_cs_silent=false
26050 SHELL=\${CONFIG_SHELL-$SHELL}
26051 _ACEOF
26052
26053 cat >>$CONFIG_STATUS <<\_ACEOF
26054 ## --------------------- ##
26055 ## M4sh Initialization.  ##
26056 ## --------------------- ##
26057
26058 # Be Bourne compatible
26059 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26060   emulate sh
26061   NULLCMD=:
26062   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26063   # is contrary to our usage.  Disable this feature.
26064   alias -g '${1+"$@"}'='"$@"'
26065 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26066   set -o posix
26067 fi
26068 DUALCASE=1; export DUALCASE # for MKS sh
26069
26070 # Support unset when possible.
26071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26072   as_unset=unset
26073 else
26074   as_unset=false
26075 fi
26076
26077
26078 # Work around bugs in pre-3.0 UWIN ksh.
26079 $as_unset ENV MAIL MAILPATH
26080 PS1='$ '
26081 PS2='> '
26082 PS4='+ '
26083
26084 # NLS nuisances.
26085 for as_var in \
26086   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26087   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26088   LC_TELEPHONE LC_TIME
26089 do
26090   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26091     eval $as_var=C; export $as_var
26092   else
26093     $as_unset $as_var
26094   fi
26095 done
26096
26097 # Required to use basename.
26098 if expr a : '\(a\)' >/dev/null 2>&1; then
26099   as_expr=expr
26100 else
26101   as_expr=false
26102 fi
26103
26104 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26105   as_basename=basename
26106 else
26107   as_basename=false
26108 fi
26109
26110
26111 # Name of the executable.
26112 as_me=`$as_basename "$0" ||
26113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26114          X"$0" : 'X\(//\)$' \| \
26115          X"$0" : 'X\(/\)$' \| \
26116          .     : '\(.\)' 2>/dev/null ||
26117 echo X/"$0" |
26118     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26119           /^X\/\(\/\/\)$/{ s//\1/; q; }
26120           /^X\/\(\/\).*/{ s//\1/; q; }
26121           s/.*/./; q'`
26122
26123
26124 # PATH needs CR, and LINENO needs CR and PATH.
26125 # Avoid depending upon Character Ranges.
26126 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26127 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26128 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26129 as_cr_digits='0123456789'
26130 as_cr_alnum=$as_cr_Letters$as_cr_digits
26131
26132 # The user is always right.
26133 if test "${PATH_SEPARATOR+set}" != set; then
26134   echo "#! /bin/sh" >conf$$.sh
26135   echo  "exit 0"   >>conf$$.sh
26136   chmod +x conf$$.sh
26137   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26138     PATH_SEPARATOR=';'
26139   else
26140     PATH_SEPARATOR=:
26141   fi
26142   rm -f conf$$.sh
26143 fi
26144
26145
26146   as_lineno_1=$LINENO
26147   as_lineno_2=$LINENO
26148   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26149   test "x$as_lineno_1" != "x$as_lineno_2" &&
26150   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26151   # Find who we are.  Look in the path if we contain no path at all
26152   # relative or not.
26153   case $0 in
26154     *[\\/]* ) as_myself=$0 ;;
26155     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26156 for as_dir in $PATH
26157 do
26158   IFS=$as_save_IFS
26159   test -z "$as_dir" && as_dir=.
26160   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26161 done
26162
26163        ;;
26164   esac
26165   # We did not find ourselves, most probably we were run as `sh COMMAND'
26166   # in which case we are not to be found in the path.
26167   if test "x$as_myself" = x; then
26168     as_myself=$0
26169   fi
26170   if test ! -f "$as_myself"; then
26171     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26172 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26173    { (exit 1); exit 1; }; }
26174   fi
26175   case $CONFIG_SHELL in
26176   '')
26177     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26178 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26179 do
26180   IFS=$as_save_IFS
26181   test -z "$as_dir" && as_dir=.
26182   for as_base in sh bash ksh sh5; do
26183          case $as_dir in
26184          /*)
26185            if ("$as_dir/$as_base" -c '
26186   as_lineno_1=$LINENO
26187   as_lineno_2=$LINENO
26188   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26189   test "x$as_lineno_1" != "x$as_lineno_2" &&
26190   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26191              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26192              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26193              CONFIG_SHELL=$as_dir/$as_base
26194              export CONFIG_SHELL
26195              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26196            fi;;
26197          esac
26198        done
26199 done
26200 ;;
26201   esac
26202
26203   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26204   # uniformly replaced by the line number.  The first 'sed' inserts a
26205   # line-number line before each line; the second 'sed' does the real
26206   # work.  The second script uses 'N' to pair each line-number line
26207   # with the numbered line, and appends trailing '-' during
26208   # substitution so that $LINENO is not a special case at line end.
26209   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26210   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26211   sed '=' <$as_myself |
26212     sed '
26213       N
26214       s,$,-,
26215       : loop
26216       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26217       t loop
26218       s,-$,,
26219       s,^['$as_cr_digits']*\n,,
26220     ' >$as_me.lineno &&
26221   chmod +x $as_me.lineno ||
26222     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26223 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26224    { (exit 1); exit 1; }; }
26225
26226   # Don't try to exec as it changes $[0], causing all sort of problems
26227   # (the dirname of $[0] is not the place where we might find the
26228   # original and so on.  Autoconf is especially sensible to this).
26229   . ./$as_me.lineno
26230   # Exit status is that of the last command.
26231   exit
26232 }
26233
26234
26235 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26236   *c*,-n*) ECHO_N= ECHO_C='
26237 ' ECHO_T='      ' ;;
26238   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26239   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26240 esac
26241
26242 if expr a : '\(a\)' >/dev/null 2>&1; then
26243   as_expr=expr
26244 else
26245   as_expr=false
26246 fi
26247
26248 rm -f conf$$ conf$$.exe conf$$.file
26249 echo >conf$$.file
26250 if ln -s conf$$.file conf$$ 2>/dev/null; then
26251   # We could just check for DJGPP; but this test a) works b) is more generic
26252   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26253   if test -f conf$$.exe; then
26254     # Don't use ln at all; we don't have any links
26255     as_ln_s='cp -p'
26256   else
26257     as_ln_s='ln -s'
26258   fi
26259 elif ln conf$$.file conf$$ 2>/dev/null; then
26260   as_ln_s=ln
26261 else
26262   as_ln_s='cp -p'
26263 fi
26264 rm -f conf$$ conf$$.exe conf$$.file
26265
26266 if mkdir -p . 2>/dev/null; then
26267   as_mkdir_p=:
26268 else
26269   test -d ./-p && rmdir ./-p
26270   as_mkdir_p=false
26271 fi
26272
26273 as_executable_p="test -f"
26274
26275 # Sed expression to map a string onto a valid CPP name.
26276 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26277
26278 # Sed expression to map a string onto a valid variable name.
26279 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26280
26281
26282 # IFS
26283 # We need space, tab and new line, in precisely that order.
26284 as_nl='
26285 '
26286 IFS="   $as_nl"
26287
26288 # CDPATH.
26289 $as_unset CDPATH
26290
26291 exec 6>&1
26292
26293 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26294 # report actual input values of CONFIG_FILES etc. instead of their
26295 # values after options handling.  Logging --version etc. is OK.
26296 exec 5>>config.log
26297 {
26298   echo
26299   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26300 ## Running $as_me. ##
26301 _ASBOX
26302 } >&5
26303 cat >&5 <<_CSEOF
26304
26305 This file was extended by llvm $as_me 1.4, which was
26306 generated by GNU Autoconf 2.59.  Invocation command line was
26307
26308   CONFIG_FILES    = $CONFIG_FILES
26309   CONFIG_HEADERS  = $CONFIG_HEADERS
26310   CONFIG_LINKS    = $CONFIG_LINKS
26311   CONFIG_COMMANDS = $CONFIG_COMMANDS
26312   $ $0 $@
26313
26314 _CSEOF
26315 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26316 echo >&5
26317 _ACEOF
26318
26319 # Files that config.status was made for.
26320 if test -n "$ac_config_files"; then
26321   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26322 fi
26323
26324 if test -n "$ac_config_headers"; then
26325   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26326 fi
26327
26328 if test -n "$ac_config_links"; then
26329   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26330 fi
26331
26332 if test -n "$ac_config_commands"; then
26333   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26334 fi
26335
26336 cat >>$CONFIG_STATUS <<\_ACEOF
26337
26338 ac_cs_usage="\
26339 \`$as_me' instantiates files from templates according to the
26340 current configuration.
26341
26342 Usage: $0 [OPTIONS] [FILE]...
26343
26344   -h, --help       print this help, then exit
26345   -V, --version    print version number, then exit
26346   -q, --quiet      do not print progress messages
26347   -d, --debug      don't remove temporary files
26348       --recheck    update $as_me by reconfiguring in the same conditions
26349   --file=FILE[:TEMPLATE]
26350                    instantiate the configuration file FILE
26351   --header=FILE[:TEMPLATE]
26352                    instantiate the configuration header FILE
26353
26354 Configuration files:
26355 $config_files
26356
26357 Configuration headers:
26358 $config_headers
26359
26360 Configuration links:
26361 $config_links
26362
26363 Configuration commands:
26364 $config_commands
26365
26366 Report bugs to <bug-autoconf@gnu.org>."
26367 _ACEOF
26368
26369 cat >>$CONFIG_STATUS <<_ACEOF
26370 ac_cs_version="\\
26371 llvm config.status 1.4
26372 configured by $0, generated by GNU Autoconf 2.59,
26373   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26374
26375 Copyright (C) 2003 Free Software Foundation, Inc.
26376 This config.status script is free software; the Free Software Foundation
26377 gives unlimited permission to copy, distribute and modify it."
26378 srcdir=$srcdir
26379 INSTALL="$INSTALL"
26380 _ACEOF
26381
26382 cat >>$CONFIG_STATUS <<\_ACEOF
26383 # If no file are specified by the user, then we need to provide default
26384 # value.  By we need to know if files were specified by the user.
26385 ac_need_defaults=:
26386 while test $# != 0
26387 do
26388   case $1 in
26389   --*=*)
26390     ac_option=`expr "x$1" : 'x\([^=]*\)='`
26391     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26392     ac_shift=:
26393     ;;
26394   -*)
26395     ac_option=$1
26396     ac_optarg=$2
26397     ac_shift=shift
26398     ;;
26399   *) # This is not an option, so the user has probably given explicit
26400      # arguments.
26401      ac_option=$1
26402      ac_need_defaults=false;;
26403   esac
26404
26405   case $ac_option in
26406   # Handling of the options.
26407 _ACEOF
26408 cat >>$CONFIG_STATUS <<\_ACEOF
26409   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26410     ac_cs_recheck=: ;;
26411   --version | --vers* | -V )
26412     echo "$ac_cs_version"; exit 0 ;;
26413   --he | --h)
26414     # Conflict between --help and --header
26415     { { echo "$as_me:$LINENO: error: ambiguous option: $1
26416 Try \`$0 --help' for more information." >&5
26417 echo "$as_me: error: ambiguous option: $1
26418 Try \`$0 --help' for more information." >&2;}
26419    { (exit 1); exit 1; }; };;
26420   --help | --hel | -h )
26421     echo "$ac_cs_usage"; exit 0 ;;
26422   --debug | --d* | -d )
26423     debug=: ;;
26424   --file | --fil | --fi | --f )
26425     $ac_shift
26426     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26427     ac_need_defaults=false;;
26428   --header | --heade | --head | --hea )
26429     $ac_shift
26430     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26431     ac_need_defaults=false;;
26432   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26433   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26434     ac_cs_silent=: ;;
26435
26436   # This is an error.
26437   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26438 Try \`$0 --help' for more information." >&5
26439 echo "$as_me: error: unrecognized option: $1
26440 Try \`$0 --help' for more information." >&2;}
26441    { (exit 1); exit 1; }; } ;;
26442
26443   *) ac_config_targets="$ac_config_targets $1" ;;
26444
26445   esac
26446   shift
26447 done
26448
26449 ac_configure_extra_args=
26450
26451 if $ac_cs_silent; then
26452   exec 6>/dev/null
26453   ac_configure_extra_args="$ac_configure_extra_args --silent"
26454 fi
26455
26456 _ACEOF
26457 cat >>$CONFIG_STATUS <<_ACEOF
26458 if \$ac_cs_recheck; then
26459   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26460   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26461 fi
26462
26463 _ACEOF
26464
26465 cat >>$CONFIG_STATUS <<_ACEOF
26466 #
26467 # INIT-COMMANDS section.
26468 #
26469
26470 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
26471 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
26472 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
26473 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
26474 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
26475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
26476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
26477 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
26478 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
26479 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
26480 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
26481 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
26482 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
26483
26484 _ACEOF
26485
26486
26487
26488 cat >>$CONFIG_STATUS <<\_ACEOF
26489 for ac_config_target in $ac_config_targets
26490 do
26491   case "$ac_config_target" in
26492   # Handling of arguments.
26493   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
26494   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
26495   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
26496   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
26497   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
26498   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
26499   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
26500   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
26501   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
26502   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
26503   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
26504   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
26505   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
26506   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
26507   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
26508   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
26509   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
26510   "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
26511   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
26512   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
26513   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
26514   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
26515   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
26516   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
26517   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
26518   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
26519   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26520 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26521    { (exit 1); exit 1; }; };;
26522   esac
26523 done
26524
26525 # If the user did not use the arguments to specify the items to instantiate,
26526 # then the envvar interface is used.  Set only those that are not.
26527 # We use the long form for the default assignment because of an extremely
26528 # bizarre bug on SunOS 4.1.3.
26529 if $ac_need_defaults; then
26530   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26531   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26532   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26533   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26534 fi
26535
26536 # Have a temporary directory for convenience.  Make it in the build tree
26537 # simply because there is no reason to put it here, and in addition,
26538 # creating and moving files from /tmp can sometimes cause problems.
26539 # Create a temporary directory, and hook for its removal unless debugging.
26540 $debug ||
26541 {
26542   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26543   trap '{ (exit 1); exit 1; }' 1 2 13 15
26544 }
26545
26546 # Create a (secure) tmp directory for tmp files.
26547
26548 {
26549   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26550   test -n "$tmp" && test -d "$tmp"
26551 }  ||
26552 {
26553   tmp=./confstat$$-$RANDOM
26554   (umask 077 && mkdir $tmp)
26555 } ||
26556 {
26557    echo "$me: cannot create a temporary directory in ." >&2
26558    { (exit 1); exit 1; }
26559 }
26560
26561 _ACEOF
26562
26563 cat >>$CONFIG_STATUS <<_ACEOF
26564
26565 #
26566 # CONFIG_FILES section.
26567 #
26568
26569 # No need to generate the scripts if there are no CONFIG_FILES.
26570 # This happens for instance when ./config.status config.h
26571 if test -n "\$CONFIG_FILES"; then
26572   # Protect against being on the right side of a sed subst in config.status.
26573   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26574    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26575 s,@SHELL@,$SHELL,;t t
26576 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26577 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26578 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26579 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26580 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26581 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26582 s,@exec_prefix@,$exec_prefix,;t t
26583 s,@prefix@,$prefix,;t t
26584 s,@program_transform_name@,$program_transform_name,;t t
26585 s,@bindir@,$bindir,;t t
26586 s,@sbindir@,$sbindir,;t t
26587 s,@libexecdir@,$libexecdir,;t t
26588 s,@datadir@,$datadir,;t t
26589 s,@sysconfdir@,$sysconfdir,;t t
26590 s,@sharedstatedir@,$sharedstatedir,;t t
26591 s,@localstatedir@,$localstatedir,;t t
26592 s,@libdir@,$libdir,;t t
26593 s,@includedir@,$includedir,;t t
26594 s,@oldincludedir@,$oldincludedir,;t t
26595 s,@infodir@,$infodir,;t t
26596 s,@mandir@,$mandir,;t t
26597 s,@build_alias@,$build_alias,;t t
26598 s,@host_alias@,$host_alias,;t t
26599 s,@target_alias@,$target_alias,;t t
26600 s,@DEFS@,$DEFS,;t t
26601 s,@ECHO_C@,$ECHO_C,;t t
26602 s,@ECHO_N@,$ECHO_N,;t t
26603 s,@ECHO_T@,$ECHO_T,;t t
26604 s,@LIBS@,$LIBS,;t t
26605 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
26606 s,@subdirs@,$subdirs,;t t
26607 s,@build@,$build,;t t
26608 s,@build_cpu@,$build_cpu,;t t
26609 s,@build_vendor@,$build_vendor,;t t
26610 s,@build_os@,$build_os,;t t
26611 s,@host@,$host,;t t
26612 s,@host_cpu@,$host_cpu,;t t
26613 s,@host_vendor@,$host_vendor,;t t
26614 s,@host_os@,$host_os,;t t
26615 s,@target@,$target,;t t
26616 s,@target_cpu@,$target_cpu,;t t
26617 s,@target_vendor@,$target_vendor,;t t
26618 s,@target_os@,$target_os,;t t
26619 s,@OS@,$OS,;t t
26620 s,@ARCH@,$ARCH,;t t
26621 s,@ENDIAN@,$ENDIAN,;t t
26622 s,@CC@,$CC,;t t
26623 s,@CFLAGS@,$CFLAGS,;t t
26624 s,@LDFLAGS@,$LDFLAGS,;t t
26625 s,@CPPFLAGS@,$CPPFLAGS,;t t
26626 s,@ac_ct_CC@,$ac_ct_CC,;t t
26627 s,@EXEEXT@,$EXEEXT,;t t
26628 s,@OBJEXT@,$OBJEXT,;t t
26629 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
26630 s,@JIT@,$JIT,;t t
26631 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
26632 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
26633 s,@CPP@,$CPP,;t t
26634 s,@CXX@,$CXX,;t t
26635 s,@CXXFLAGS@,$CXXFLAGS,;t t
26636 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26637 s,@LEX@,$LEX,;t t
26638 s,@LEXLIB@,$LEXLIB,;t t
26639 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
26640 s,@FLEX@,$FLEX,;t t
26641 s,@YACC@,$YACC,;t t
26642 s,@BISON@,$BISON,;t t
26643 s,@EGREP@,$EGREP,;t t
26644 s,@LN_S@,$LN_S,;t t
26645 s,@ECHO@,$ECHO,;t t
26646 s,@AR@,$AR,;t t
26647 s,@ac_ct_AR@,$ac_ct_AR,;t t
26648 s,@RANLIB@,$RANLIB,;t t
26649 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26650 s,@STRIP@,$STRIP,;t t
26651 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26652 s,@CXXCPP@,$CXXCPP,;t t
26653 s,@F77@,$F77,;t t
26654 s,@FFLAGS@,$FFLAGS,;t t
26655 s,@ac_ct_F77@,$ac_ct_F77,;t t
26656 s,@LIBTOOL@,$LIBTOOL,;t t
26657 s,@ifGNUmake@,$ifGNUmake,;t t
26658 s,@DATE@,$DATE,;t t
26659 s,@FIND@,$FIND,;t t
26660 s,@GREP@,$GREP,;t t
26661 s,@MKDIR@,$MKDIR,;t t
26662 s,@MV@,$MV,;t t
26663 s,@PAX@,$PAX,;t t
26664 s,@RM@,$RM,;t t
26665 s,@SED@,$SED,;t t
26666 s,@TAR@,$TAR,;t t
26667 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26668 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26669 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26670 s,@BZIP2@,$BZIP2,;t t
26671 s,@DOT@,$DOT,;t t
26672 s,@DOXYGEN@,$DOXYGEN,;t t
26673 s,@ETAGS@,$ETAGS,;t t
26674 s,@GROFF@,$GROFF,;t t
26675 s,@GZIP@,$GZIP,;t t
26676 s,@POD2HTML@,$POD2HTML,;t t
26677 s,@POD2MAN@,$POD2MAN,;t t
26678 s,@PYTHON@,$PYTHON,;t t
26679 s,@QMTEST@,$QMTEST,;t t
26680 s,@RUNTEST@,$RUNTEST,;t t
26681 s,@ZIP@,$ZIP,;t t
26682 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
26683 s,@ALLOCA@,$ALLOCA,;t t
26684 s,@MMAP_FILE@,$MMAP_FILE,;t t
26685 s,@LLVMGCC@,$LLVMGCC,;t t
26686 s,@LLVMCC1@,$LLVMCC1,;t t
26687 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
26688 s,@SHLIBEXT@,$SHLIBEXT,;t t
26689 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
26690 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
26691 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
26692 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
26693 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
26694 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
26695 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
26696 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
26697 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
26698 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
26699 s,@LIBOBJS@,$LIBOBJS,;t t
26700 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26701 CEOF
26702
26703 _ACEOF
26704
26705   cat >>$CONFIG_STATUS <<\_ACEOF
26706   # Split the substitutions into bite-sized pieces for seds with
26707   # small command number limits, like on Digital OSF/1 and HP-UX.
26708   ac_max_sed_lines=48
26709   ac_sed_frag=1 # Number of current file.
26710   ac_beg=1 # First line for current file.
26711   ac_end=$ac_max_sed_lines # Line after last line for current file.
26712   ac_more_lines=:
26713   ac_sed_cmds=
26714   while $ac_more_lines; do
26715     if test $ac_beg -gt 1; then
26716       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26717     else
26718       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26719     fi
26720     if test ! -s $tmp/subs.frag; then
26721       ac_more_lines=false
26722     else
26723       # The purpose of the label and of the branching condition is to
26724       # speed up the sed processing (if there are no `@' at all, there
26725       # is no need to browse any of the substitutions).
26726       # These are the two extra sed commands mentioned above.
26727       (echo ':t
26728   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26729       if test -z "$ac_sed_cmds"; then
26730         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26731       else
26732         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26733       fi
26734       ac_sed_frag=`expr $ac_sed_frag + 1`
26735       ac_beg=$ac_end
26736       ac_end=`expr $ac_end + $ac_max_sed_lines`
26737     fi
26738   done
26739   if test -z "$ac_sed_cmds"; then
26740     ac_sed_cmds=cat
26741   fi
26742 fi # test -n "$CONFIG_FILES"
26743
26744 _ACEOF
26745 cat >>$CONFIG_STATUS <<\_ACEOF
26746 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26747   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26748   case $ac_file in
26749   - | *:- | *:-:* ) # input from stdin
26750         cat >$tmp/stdin
26751         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26752         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26753   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26754         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26755   * )   ac_file_in=$ac_file.in ;;
26756   esac
26757
26758   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26759   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26760 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26761          X"$ac_file" : 'X\(//\)[^/]' \| \
26762          X"$ac_file" : 'X\(//\)$' \| \
26763          X"$ac_file" : 'X\(/\)' \| \
26764          .     : '\(.\)' 2>/dev/null ||
26765 echo X"$ac_file" |
26766     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26767           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26768           /^X\(\/\/\)$/{ s//\1/; q; }
26769           /^X\(\/\).*/{ s//\1/; q; }
26770           s/.*/./; q'`
26771   { if $as_mkdir_p; then
26772     mkdir -p "$ac_dir"
26773   else
26774     as_dir="$ac_dir"
26775     as_dirs=
26776     while test ! -d "$as_dir"; do
26777       as_dirs="$as_dir $as_dirs"
26778       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26779 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26780          X"$as_dir" : 'X\(//\)[^/]' \| \
26781          X"$as_dir" : 'X\(//\)$' \| \
26782          X"$as_dir" : 'X\(/\)' \| \
26783          .     : '\(.\)' 2>/dev/null ||
26784 echo X"$as_dir" |
26785     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26786           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26787           /^X\(\/\/\)$/{ s//\1/; q; }
26788           /^X\(\/\).*/{ s//\1/; q; }
26789           s/.*/./; q'`
26790     done
26791     test ! -n "$as_dirs" || mkdir $as_dirs
26792   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26793 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26794    { (exit 1); exit 1; }; }; }
26795
26796   ac_builddir=.
26797
26798 if test "$ac_dir" != .; then
26799   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26800   # A "../" for each directory in $ac_dir_suffix.
26801   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26802 else
26803   ac_dir_suffix= ac_top_builddir=
26804 fi
26805
26806 case $srcdir in
26807   .)  # No --srcdir option.  We are building in place.
26808     ac_srcdir=.
26809     if test -z "$ac_top_builddir"; then
26810        ac_top_srcdir=.
26811     else
26812        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26813     fi ;;
26814   [\\/]* | ?:[\\/]* )  # Absolute path.
26815     ac_srcdir=$srcdir$ac_dir_suffix;
26816     ac_top_srcdir=$srcdir ;;
26817   *) # Relative path.
26818     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26819     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26820 esac
26821
26822 # Do not use `cd foo && pwd` to compute absolute paths, because
26823 # the directories may not exist.
26824 case `pwd` in
26825 .) ac_abs_builddir="$ac_dir";;
26826 *)
26827   case "$ac_dir" in
26828   .) ac_abs_builddir=`pwd`;;
26829   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26830   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26831   esac;;
26832 esac
26833 case $ac_abs_builddir in
26834 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26835 *)
26836   case ${ac_top_builddir}. in
26837   .) ac_abs_top_builddir=$ac_abs_builddir;;
26838   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26839   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26840   esac;;
26841 esac
26842 case $ac_abs_builddir in
26843 .) ac_abs_srcdir=$ac_srcdir;;
26844 *)
26845   case $ac_srcdir in
26846   .) ac_abs_srcdir=$ac_abs_builddir;;
26847   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26848   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26849   esac;;
26850 esac
26851 case $ac_abs_builddir in
26852 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26853 *)
26854   case $ac_top_srcdir in
26855   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26856   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26857   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26858   esac;;
26859 esac
26860
26861
26862   case $INSTALL in
26863   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26864   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26865   esac
26866
26867   if test x"$ac_file" != x-; then
26868     { echo "$as_me:$LINENO: creating $ac_file" >&5
26869 echo "$as_me: creating $ac_file" >&6;}
26870     rm -f "$ac_file"
26871   fi
26872   # Let's still pretend it is `configure' which instantiates (i.e., don't
26873   # use $as_me), people would be surprised to read:
26874   #    /* config.h.  Generated by config.status.  */
26875   if test x"$ac_file" = x-; then
26876     configure_input=
26877   else
26878     configure_input="$ac_file.  "
26879   fi
26880   configure_input=$configure_input"Generated from `echo $ac_file_in |
26881                                      sed 's,.*/,,'` by configure."
26882
26883   # First look for the input files in the build tree, otherwise in the
26884   # src tree.
26885   ac_file_inputs=`IFS=:
26886     for f in $ac_file_in; do
26887       case $f in
26888       -) echo $tmp/stdin ;;
26889       [\\/$]*)
26890          # Absolute (can't be DOS-style, as IFS=:)
26891          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26892 echo "$as_me: error: cannot find input file: $f" >&2;}
26893    { (exit 1); exit 1; }; }
26894          echo "$f";;
26895       *) # Relative
26896          if test -f "$f"; then
26897            # Build tree
26898            echo "$f"
26899          elif test -f "$srcdir/$f"; then
26900            # Source tree
26901            echo "$srcdir/$f"
26902          else
26903            # /dev/null tree
26904            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26905 echo "$as_me: error: cannot find input file: $f" >&2;}
26906    { (exit 1); exit 1; }; }
26907          fi;;
26908       esac
26909     done` || { (exit 1); exit 1; }
26910 _ACEOF
26911 cat >>$CONFIG_STATUS <<_ACEOF
26912   sed "$ac_vpsub
26913 $extrasub
26914 _ACEOF
26915 cat >>$CONFIG_STATUS <<\_ACEOF
26916 :t
26917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26918 s,@configure_input@,$configure_input,;t t
26919 s,@srcdir@,$ac_srcdir,;t t
26920 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26921 s,@top_srcdir@,$ac_top_srcdir,;t t
26922 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26923 s,@builddir@,$ac_builddir,;t t
26924 s,@abs_builddir@,$ac_abs_builddir,;t t
26925 s,@top_builddir@,$ac_top_builddir,;t t
26926 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26927 s,@INSTALL@,$ac_INSTALL,;t t
26928 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26929   rm -f $tmp/stdin
26930   if test x"$ac_file" != x-; then
26931     mv $tmp/out $ac_file
26932   else
26933     cat $tmp/out
26934     rm -f $tmp/out
26935   fi
26936
26937 done
26938 _ACEOF
26939 cat >>$CONFIG_STATUS <<\_ACEOF
26940
26941 #
26942 # CONFIG_HEADER section.
26943 #
26944
26945 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26946 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26947 #
26948 # ac_d sets the value in "#define NAME VALUE" lines.
26949 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
26950 ac_dB='[         ].*$,\1#\2'
26951 ac_dC=' '
26952 ac_dD=',;t'
26953 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26954 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
26955 ac_uB='$,\1#\2define\3'
26956 ac_uC=' '
26957 ac_uD=',;t'
26958
26959 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26960   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26961   case $ac_file in
26962   - | *:- | *:-:* ) # input from stdin
26963         cat >$tmp/stdin
26964         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26965         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26966   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26967         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26968   * )   ac_file_in=$ac_file.in ;;
26969   esac
26970
26971   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26972 echo "$as_me: creating $ac_file" >&6;}
26973
26974   # First look for the input files in the build tree, otherwise in the
26975   # src tree.
26976   ac_file_inputs=`IFS=:
26977     for f in $ac_file_in; do
26978       case $f in
26979       -) echo $tmp/stdin ;;
26980       [\\/$]*)
26981          # Absolute (can't be DOS-style, as IFS=:)
26982          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26983 echo "$as_me: error: cannot find input file: $f" >&2;}
26984    { (exit 1); exit 1; }; }
26985          # Do quote $f, to prevent DOS paths from being IFS'd.
26986          echo "$f";;
26987       *) # Relative
26988          if test -f "$f"; then
26989            # Build tree
26990            echo "$f"
26991          elif test -f "$srcdir/$f"; then
26992            # Source tree
26993            echo "$srcdir/$f"
26994          else
26995            # /dev/null tree
26996            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26997 echo "$as_me: error: cannot find input file: $f" >&2;}
26998    { (exit 1); exit 1; }; }
26999          fi;;
27000       esac
27001     done` || { (exit 1); exit 1; }
27002   # Remove the trailing spaces.
27003   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27004
27005 _ACEOF
27006
27007 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27008 # `conftest.undefs', that substitutes the proper values into
27009 # config.h.in to produce config.h.  The first handles `#define'
27010 # templates, and the second `#undef' templates.
27011 # And first: Protect against being on the right side of a sed subst in
27012 # config.status.  Protect against being in an unquoted here document
27013 # in config.status.
27014 rm -f conftest.defines conftest.undefs
27015 # Using a here document instead of a string reduces the quoting nightmare.
27016 # Putting comments in sed scripts is not portable.
27017 #
27018 # `end' is used to avoid that the second main sed command (meant for
27019 # 0-ary CPP macros) applies to n-ary macro definitions.
27020 # See the Autoconf documentation for `clear'.
27021 cat >confdef2sed.sed <<\_ACEOF
27022 s/[\\&,]/\\&/g
27023 s,[\\$`],\\&,g
27024 t clear
27025 : clear
27026 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27027 t end
27028 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27029 : end
27030 _ACEOF
27031 # If some macros were called several times there might be several times
27032 # the same #defines, which is useless.  Nevertheless, we may not want to
27033 # sort them, since we want the *last* AC-DEFINE to be honored.
27034 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27035 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27036 rm -f confdef2sed.sed
27037
27038 # This sed command replaces #undef with comments.  This is necessary, for
27039 # example, in the case of _POSIX_SOURCE, which is predefined and required
27040 # on some systems where configure will not decide to define it.
27041 cat >>conftest.undefs <<\_ACEOF
27042 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27043 _ACEOF
27044
27045 # Break up conftest.defines because some shells have a limit on the size
27046 # of here documents, and old seds have small limits too (100 cmds).
27047 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27048 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27049 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27050 echo '  :' >>$CONFIG_STATUS
27051 rm -f conftest.tail
27052 while grep . conftest.defines >/dev/null
27053 do
27054   # Write a limited-size here document to $tmp/defines.sed.
27055   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27056   # Speed up: don't consider the non `#define' lines.
27057   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27058   # Work around the forget-to-reset-the-flag bug.
27059   echo 't clr' >>$CONFIG_STATUS
27060   echo ': clr' >>$CONFIG_STATUS
27061   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27062   echo 'CEOF
27063   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27064   rm -f $tmp/in
27065   mv $tmp/out $tmp/in
27066 ' >>$CONFIG_STATUS
27067   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27068   rm -f conftest.defines
27069   mv conftest.tail conftest.defines
27070 done
27071 rm -f conftest.defines
27072 echo '  fi # grep' >>$CONFIG_STATUS
27073 echo >>$CONFIG_STATUS
27074
27075 # Break up conftest.undefs because some shells have a limit on the size
27076 # of here documents, and old seds have small limits too (100 cmds).
27077 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27078 rm -f conftest.tail
27079 while grep . conftest.undefs >/dev/null
27080 do
27081   # Write a limited-size here document to $tmp/undefs.sed.
27082   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27083   # Speed up: don't consider the non `#undef'
27084   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27085   # Work around the forget-to-reset-the-flag bug.
27086   echo 't clr' >>$CONFIG_STATUS
27087   echo ': clr' >>$CONFIG_STATUS
27088   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27089   echo 'CEOF
27090   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27091   rm -f $tmp/in
27092   mv $tmp/out $tmp/in
27093 ' >>$CONFIG_STATUS
27094   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27095   rm -f conftest.undefs
27096   mv conftest.tail conftest.undefs
27097 done
27098 rm -f conftest.undefs
27099
27100 cat >>$CONFIG_STATUS <<\_ACEOF
27101   # Let's still pretend it is `configure' which instantiates (i.e., don't
27102   # use $as_me), people would be surprised to read:
27103   #    /* config.h.  Generated by config.status.  */
27104   if test x"$ac_file" = x-; then
27105     echo "/* Generated by configure.  */" >$tmp/config.h
27106   else
27107     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27108   fi
27109   cat $tmp/in >>$tmp/config.h
27110   rm -f $tmp/in
27111   if test x"$ac_file" != x-; then
27112     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27113       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27114 echo "$as_me: $ac_file is unchanged" >&6;}
27115     else
27116       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27117 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27118          X"$ac_file" : 'X\(//\)[^/]' \| \
27119          X"$ac_file" : 'X\(//\)$' \| \
27120          X"$ac_file" : 'X\(/\)' \| \
27121          .     : '\(.\)' 2>/dev/null ||
27122 echo X"$ac_file" |
27123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27124           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27125           /^X\(\/\/\)$/{ s//\1/; q; }
27126           /^X\(\/\).*/{ s//\1/; q; }
27127           s/.*/./; q'`
27128       { if $as_mkdir_p; then
27129     mkdir -p "$ac_dir"
27130   else
27131     as_dir="$ac_dir"
27132     as_dirs=
27133     while test ! -d "$as_dir"; do
27134       as_dirs="$as_dir $as_dirs"
27135       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27137          X"$as_dir" : 'X\(//\)[^/]' \| \
27138          X"$as_dir" : 'X\(//\)$' \| \
27139          X"$as_dir" : 'X\(/\)' \| \
27140          .     : '\(.\)' 2>/dev/null ||
27141 echo X"$as_dir" |
27142     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27143           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27144           /^X\(\/\/\)$/{ s//\1/; q; }
27145           /^X\(\/\).*/{ s//\1/; q; }
27146           s/.*/./; q'`
27147     done
27148     test ! -n "$as_dirs" || mkdir $as_dirs
27149   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27150 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27151    { (exit 1); exit 1; }; }; }
27152
27153       rm -f $ac_file
27154       mv $tmp/config.h $ac_file
27155     fi
27156   else
27157     cat $tmp/config.h
27158     rm -f $tmp/config.h
27159   fi
27160 done
27161 _ACEOF
27162 cat >>$CONFIG_STATUS <<\_ACEOF
27163
27164 #
27165 # CONFIG_LINKS section.
27166 #
27167
27168 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27169   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27170   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27171
27172   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27173 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27174
27175   if test ! -r $srcdir/$ac_source; then
27176     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27177 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27178    { (exit 1); exit 1; }; }
27179   fi
27180   rm -f $ac_dest
27181
27182   # Make relative symlinks.
27183   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27184 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27185          X"$ac_dest" : 'X\(//\)[^/]' \| \
27186          X"$ac_dest" : 'X\(//\)$' \| \
27187          X"$ac_dest" : 'X\(/\)' \| \
27188          .     : '\(.\)' 2>/dev/null ||
27189 echo X"$ac_dest" |
27190     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27191           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27192           /^X\(\/\/\)$/{ s//\1/; q; }
27193           /^X\(\/\).*/{ s//\1/; q; }
27194           s/.*/./; q'`
27195   { if $as_mkdir_p; then
27196     mkdir -p "$ac_dest_dir"
27197   else
27198     as_dir="$ac_dest_dir"
27199     as_dirs=
27200     while test ! -d "$as_dir"; do
27201       as_dirs="$as_dir $as_dirs"
27202       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27204          X"$as_dir" : 'X\(//\)[^/]' \| \
27205          X"$as_dir" : 'X\(//\)$' \| \
27206          X"$as_dir" : 'X\(/\)' \| \
27207          .     : '\(.\)' 2>/dev/null ||
27208 echo X"$as_dir" |
27209     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27210           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27211           /^X\(\/\/\)$/{ s//\1/; q; }
27212           /^X\(\/\).*/{ s//\1/; q; }
27213           s/.*/./; q'`
27214     done
27215     test ! -n "$as_dirs" || mkdir $as_dirs
27216   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27217 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27218    { (exit 1); exit 1; }; }; }
27219
27220   ac_builddir=.
27221
27222 if test "$ac_dest_dir" != .; then
27223   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27224   # A "../" for each directory in $ac_dir_suffix.
27225   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27226 else
27227   ac_dir_suffix= ac_top_builddir=
27228 fi
27229
27230 case $srcdir in
27231   .)  # No --srcdir option.  We are building in place.
27232     ac_srcdir=.
27233     if test -z "$ac_top_builddir"; then
27234        ac_top_srcdir=.
27235     else
27236        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27237     fi ;;
27238   [\\/]* | ?:[\\/]* )  # Absolute path.
27239     ac_srcdir=$srcdir$ac_dir_suffix;
27240     ac_top_srcdir=$srcdir ;;
27241   *) # Relative path.
27242     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27243     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27244 esac
27245
27246 # Do not use `cd foo && pwd` to compute absolute paths, because
27247 # the directories may not exist.
27248 case `pwd` in
27249 .) ac_abs_builddir="$ac_dest_dir";;
27250 *)
27251   case "$ac_dest_dir" in
27252   .) ac_abs_builddir=`pwd`;;
27253   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27254   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27255   esac;;
27256 esac
27257 case $ac_abs_builddir in
27258 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27259 *)
27260   case ${ac_top_builddir}. in
27261   .) ac_abs_top_builddir=$ac_abs_builddir;;
27262   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27263   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27264   esac;;
27265 esac
27266 case $ac_abs_builddir in
27267 .) ac_abs_srcdir=$ac_srcdir;;
27268 *)
27269   case $ac_srcdir in
27270   .) ac_abs_srcdir=$ac_abs_builddir;;
27271   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27272   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27273   esac;;
27274 esac
27275 case $ac_abs_builddir in
27276 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27277 *)
27278   case $ac_top_srcdir in
27279   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27280   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27281   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27282   esac;;
27283 esac
27284
27285
27286   case $srcdir in
27287   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27288       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27289   esac
27290
27291   # Try a symlink, then a hard link, then a copy.
27292   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27293     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27294     cp -p $srcdir/$ac_source $ac_dest ||
27295     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27296 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27297    { (exit 1); exit 1; }; }
27298 done
27299 _ACEOF
27300 cat >>$CONFIG_STATUS <<\_ACEOF
27301
27302 #
27303 # CONFIG_COMMANDS section.
27304 #
27305 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27306   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27307   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27308   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27309 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27310          X"$ac_dest" : 'X\(//\)[^/]' \| \
27311          X"$ac_dest" : 'X\(//\)$' \| \
27312          X"$ac_dest" : 'X\(/\)' \| \
27313          .     : '\(.\)' 2>/dev/null ||
27314 echo X"$ac_dest" |
27315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27316           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27317           /^X\(\/\/\)$/{ s//\1/; q; }
27318           /^X\(\/\).*/{ s//\1/; q; }
27319           s/.*/./; q'`
27320   { if $as_mkdir_p; then
27321     mkdir -p "$ac_dir"
27322   else
27323     as_dir="$ac_dir"
27324     as_dirs=
27325     while test ! -d "$as_dir"; do
27326       as_dirs="$as_dir $as_dirs"
27327       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27329          X"$as_dir" : 'X\(//\)[^/]' \| \
27330          X"$as_dir" : 'X\(//\)$' \| \
27331          X"$as_dir" : 'X\(/\)' \| \
27332          .     : '\(.\)' 2>/dev/null ||
27333 echo X"$as_dir" |
27334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27335           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27336           /^X\(\/\/\)$/{ s//\1/; q; }
27337           /^X\(\/\).*/{ s//\1/; q; }
27338           s/.*/./; q'`
27339     done
27340     test ! -n "$as_dirs" || mkdir $as_dirs
27341   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27342 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27343    { (exit 1); exit 1; }; }; }
27344
27345   ac_builddir=.
27346
27347 if test "$ac_dir" != .; then
27348   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27349   # A "../" for each directory in $ac_dir_suffix.
27350   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27351 else
27352   ac_dir_suffix= ac_top_builddir=
27353 fi
27354
27355 case $srcdir in
27356   .)  # No --srcdir option.  We are building in place.
27357     ac_srcdir=.
27358     if test -z "$ac_top_builddir"; then
27359        ac_top_srcdir=.
27360     else
27361        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27362     fi ;;
27363   [\\/]* | ?:[\\/]* )  # Absolute path.
27364     ac_srcdir=$srcdir$ac_dir_suffix;
27365     ac_top_srcdir=$srcdir ;;
27366   *) # Relative path.
27367     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27368     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27369 esac
27370
27371 # Do not use `cd foo && pwd` to compute absolute paths, because
27372 # the directories may not exist.
27373 case `pwd` in
27374 .) ac_abs_builddir="$ac_dir";;
27375 *)
27376   case "$ac_dir" in
27377   .) ac_abs_builddir=`pwd`;;
27378   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27379   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27380   esac;;
27381 esac
27382 case $ac_abs_builddir in
27383 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27384 *)
27385   case ${ac_top_builddir}. in
27386   .) ac_abs_top_builddir=$ac_abs_builddir;;
27387   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27388   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27389   esac;;
27390 esac
27391 case $ac_abs_builddir in
27392 .) ac_abs_srcdir=$ac_srcdir;;
27393 *)
27394   case $ac_srcdir in
27395   .) ac_abs_srcdir=$ac_abs_builddir;;
27396   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27397   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27398   esac;;
27399 esac
27400 case $ac_abs_builddir in
27401 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27402 *)
27403   case $ac_top_srcdir in
27404   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27405   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27406   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27407   esac;;
27408 esac
27409
27410
27411   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27412 echo "$as_me: executing $ac_dest commands" >&6;}
27413   case $ac_dest in
27414     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
27415     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
27416     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
27417     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
27418     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
27419     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
27420     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
27421     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
27422     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
27423     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
27424     tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
27425     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
27426     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
27427   esac
27428 done
27429 _ACEOF
27430
27431 cat >>$CONFIG_STATUS <<\_ACEOF
27432
27433 { (exit 0); exit 0; }
27434 _ACEOF
27435 chmod +x $CONFIG_STATUS
27436 ac_clean_files=$ac_clean_files_save
27437
27438
27439 # configure is writing to config.log, and then calls config.status.
27440 # config.status does its own redirection, appending to config.log.
27441 # Unfortunately, on DOS this fails, as config.log is still kept open
27442 # by configure, so config.status won't be able to write to it; its
27443 # output is simply discarded.  So we exec the FD to /dev/null,
27444 # effectively closing config.log, so it can be properly (re)opened and
27445 # appended to by config.status.  When coming back to configure, we
27446 # need to make the FD available again.
27447 if test "$no_create" != yes; then
27448   ac_cs_success=:
27449   ac_config_status_args=
27450   test "$silent" = yes &&
27451     ac_config_status_args="$ac_config_status_args --quiet"
27452   exec 5>/dev/null
27453   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27454   exec 5>>config.log
27455   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27456   # would make configure fail if this is the last instruction.
27457   $ac_cs_success || { (exit 1); exit 1; }
27458 fi
27459
27460 #
27461 # CONFIG_SUBDIRS section.
27462 #
27463 if test "$no_recursion" != yes; then
27464
27465   # Remove --cache-file and --srcdir arguments so they do not pile up.
27466   ac_sub_configure_args=
27467   ac_prev=
27468   for ac_arg in $ac_configure_args; do
27469     if test -n "$ac_prev"; then
27470       ac_prev=
27471       continue
27472     fi
27473     case $ac_arg in
27474     -cache-file | --cache-file | --cache-fil | --cache-fi \
27475     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27476       ac_prev=cache_file ;;
27477     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27478     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27479     | --c=*)
27480       ;;
27481     --config-cache | -C)
27482       ;;
27483     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27484       ac_prev=srcdir ;;
27485     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27486       ;;
27487     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27488       ac_prev=prefix ;;
27489     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27490       ;;
27491     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
27492     esac
27493   done
27494
27495   # Always prepend --prefix to ensure using the same prefix
27496   # in subdir configurations.
27497   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
27498
27499   ac_popdir=`pwd`
27500   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27501
27502     # Do not complain, so a configure script can configure whichever
27503     # parts of a large source tree are present.
27504     test -d $srcdir/$ac_dir || continue
27505
27506     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27507 echo "$as_me: configuring in $ac_dir" >&6;}
27508     { if $as_mkdir_p; then
27509     mkdir -p "$ac_dir"
27510   else
27511     as_dir="$ac_dir"
27512     as_dirs=
27513     while test ! -d "$as_dir"; do
27514       as_dirs="$as_dir $as_dirs"
27515       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27517          X"$as_dir" : 'X\(//\)[^/]' \| \
27518          X"$as_dir" : 'X\(//\)$' \| \
27519          X"$as_dir" : 'X\(/\)' \| \
27520          .     : '\(.\)' 2>/dev/null ||
27521 echo X"$as_dir" |
27522     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27523           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27524           /^X\(\/\/\)$/{ s//\1/; q; }
27525           /^X\(\/\).*/{ s//\1/; q; }
27526           s/.*/./; q'`
27527     done
27528     test ! -n "$as_dirs" || mkdir $as_dirs
27529   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27530 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27531    { (exit 1); exit 1; }; }; }
27532
27533     ac_builddir=.
27534
27535 if test "$ac_dir" != .; then
27536   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27537   # A "../" for each directory in $ac_dir_suffix.
27538   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27539 else
27540   ac_dir_suffix= ac_top_builddir=
27541 fi
27542
27543 case $srcdir in
27544   .)  # No --srcdir option.  We are building in place.
27545     ac_srcdir=.
27546     if test -z "$ac_top_builddir"; then
27547        ac_top_srcdir=.
27548     else
27549        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27550     fi ;;
27551   [\\/]* | ?:[\\/]* )  # Absolute path.
27552     ac_srcdir=$srcdir$ac_dir_suffix;
27553     ac_top_srcdir=$srcdir ;;
27554   *) # Relative path.
27555     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27556     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27557 esac
27558
27559 # Do not use `cd foo && pwd` to compute absolute paths, because
27560 # the directories may not exist.
27561 case `pwd` in
27562 .) ac_abs_builddir="$ac_dir";;
27563 *)
27564   case "$ac_dir" in
27565   .) ac_abs_builddir=`pwd`;;
27566   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27567   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27568   esac;;
27569 esac
27570 case $ac_abs_builddir in
27571 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27572 *)
27573   case ${ac_top_builddir}. in
27574   .) ac_abs_top_builddir=$ac_abs_builddir;;
27575   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27576   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27577   esac;;
27578 esac
27579 case $ac_abs_builddir in
27580 .) ac_abs_srcdir=$ac_srcdir;;
27581 *)
27582   case $ac_srcdir in
27583   .) ac_abs_srcdir=$ac_abs_builddir;;
27584   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27585   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27586   esac;;
27587 esac
27588 case $ac_abs_builddir in
27589 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27590 *)
27591   case $ac_top_srcdir in
27592   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27593   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27594   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27595   esac;;
27596 esac
27597
27598
27599     cd $ac_dir
27600
27601     # Check for guested configure; otherwise get Cygnus style configure.
27602     if test -f $ac_srcdir/configure.gnu; then
27603       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
27604     elif test -f $ac_srcdir/configure; then
27605       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
27606     elif test -f $ac_srcdir/configure.in; then
27607       ac_sub_configure=$ac_configure
27608     else
27609       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27610 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27611       ac_sub_configure=
27612     fi
27613
27614     # The recursion is here.
27615     if test -n "$ac_sub_configure"; then
27616       # Make the cache file name correct relative to the subdirectory.
27617       case $cache_file in
27618       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27619       *) # Relative path.
27620         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27621       esac
27622
27623       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27624 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27625       # The eval makes quoting arguments work.
27626       eval $ac_sub_configure $ac_sub_configure_args \
27627            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
27628         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27629 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27630    { (exit 1); exit 1; }; }
27631     fi
27632
27633     cd $ac_popdir
27634   done
27635 fi
27636
27637
27638 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
27639  { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
27640 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
27641  { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
27642 echo "$as_me: WARNING: ***** appear to be working." >&2;}
27643  { echo "$as_me:$LINENO: WARNING: ***** " >&5
27644 echo "$as_me: WARNING: ***** " >&2;}
27645  { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
27646 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
27647  { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
27648 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
27649  { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
27650 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
27651 fi