Don't create symbolic links for lib/System any more. It doesn't need them.
[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 CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR 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-ltdl-install   install libltdl
1041   --enable-shared[=PKGS]
1042                           build shared libraries [default=yes]
1043   --enable-static[=PKGS]
1044                           build static libraries [default=yes]
1045   --enable-fast-install[=PKGS]
1046                           optimize for fast installation [default=yes]
1047   --disable-libtool-lock  avoid locking (might break parallel builds)
1048
1049 Optional Packages:
1050   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1051   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1052   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1053                           searches PATH)
1054   --with-tclinclude       directory where tcl headers are
1055   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1056   --with-pic              try to use only PIC/non-PIC objects [default=use
1057                           both]
1058   --with-tags[=TAGS]
1059                           include additional configurations [automatic]
1060
1061 Some influential environment variables:
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1065               nonstandard directory <lib dir>
1066   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067               headers in a nonstandard directory <include dir>
1068   CPP         C preprocessor
1069   CXX         C++ compiler command
1070   CXXFLAGS    C++ compiler flags
1071   CXXCPP      C++ preprocessor
1072   F77         Fortran 77 compiler command
1073   FFLAGS      Fortran 77 compiler flags
1074
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1077
1078 Report bugs to <llvmbugs@cs.uiuc.edu>.
1079 _ACEOF
1080 fi
1081
1082 if test "$ac_init_help" = "recursive"; then
1083   # If there are subdirs, report their specific --help.
1084   ac_popdir=`pwd`
1085   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086     test -d $ac_dir || continue
1087     ac_builddir=.
1088
1089 if test "$ac_dir" != .; then
1090   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091   # A "../" for each directory in $ac_dir_suffix.
1092   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 else
1094   ac_dir_suffix= ac_top_builddir=
1095 fi
1096
1097 case $srcdir in
1098   .)  # No --srcdir option.  We are building in place.
1099     ac_srcdir=.
1100     if test -z "$ac_top_builddir"; then
1101        ac_top_srcdir=.
1102     else
1103        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104     fi ;;
1105   [\\/]* | ?:[\\/]* )  # Absolute path.
1106     ac_srcdir=$srcdir$ac_dir_suffix;
1107     ac_top_srcdir=$srcdir ;;
1108   *) # Relative path.
1109     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 esac
1112
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1115 case `pwd` in
1116 .) ac_abs_builddir="$ac_dir";;
1117 *)
1118   case "$ac_dir" in
1119   .) ac_abs_builddir=`pwd`;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122   esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *)
1127   case ${ac_top_builddir}. in
1128   .) ac_abs_top_builddir=$ac_abs_builddir;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1135 *)
1136   case $ac_srcdir in
1137   .) ac_abs_srcdir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140   esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *)
1145   case $ac_top_srcdir in
1146   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149   esac;;
1150 esac
1151
1152     cd $ac_dir
1153     # Check for guested configure; otherwise get Cygnus style configure.
1154     if test -f $ac_srcdir/configure.gnu; then
1155       echo
1156       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1157     elif test -f $ac_srcdir/configure; then
1158       echo
1159       $SHELL $ac_srcdir/configure  --help=recursive
1160     elif test -f $ac_srcdir/configure.ac ||
1161            test -f $ac_srcdir/configure.in; then
1162       echo
1163       $ac_configure --help
1164     else
1165       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166     fi
1167     cd $ac_popdir
1168   done
1169 fi
1170
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1173   cat <<\_ACEOF
1174 llvm configure 1.4
1175 generated by GNU Autoconf 2.59
1176
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1180
1181 $LLVM_COPYRIGHT
1182 _ACEOF
1183   exit 0
1184 fi
1185 exec 5>config.log
1186 cat >&5 <<_ACEOF
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1189
1190 It was created by llvm $as_me 1.4, which was
1191 generated by GNU Autoconf 2.59.  Invocation command line was
1192
1193   $ $0 $@
1194
1195 _ACEOF
1196 {
1197 cat <<_ASUNAME
1198 ## --------- ##
1199 ## Platform. ##
1200 ## --------- ##
1201
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1210
1211 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1212 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1215 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1216 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1217 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1218
1219 _ASUNAME
1220
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222 for as_dir in $PATH
1223 do
1224   IFS=$as_save_IFS
1225   test -z "$as_dir" && as_dir=.
1226   echo "PATH: $as_dir"
1227 done
1228
1229 } >&5
1230
1231 cat >&5 <<_ACEOF
1232
1233
1234 ## ----------- ##
1235 ## Core tests. ##
1236 ## ----------- ##
1237
1238 _ACEOF
1239
1240
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1246 ac_configure_args=
1247 ac_configure_args0=
1248 ac_configure_args1=
1249 ac_sep=
1250 ac_must_keep_next=false
1251 for ac_pass in 1 2
1252 do
1253   for ac_arg
1254   do
1255     case $ac_arg in
1256     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258     | -silent | --silent | --silen | --sile | --sil)
1259       continue ;;
1260     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262     esac
1263     case $ac_pass in
1264     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265     2)
1266       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267       if test $ac_must_keep_next = true; then
1268         ac_must_keep_next=false # Got value, back to normal.
1269       else
1270         case $ac_arg in
1271           *=* | --config-cache | -C | -disable-* | --disable-* \
1272           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274           | -with-* | --with-* | -without-* | --without-* | --x)
1275             case "$ac_configure_args0 " in
1276               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277             esac
1278             ;;
1279           -* ) ac_must_keep_next=true ;;
1280         esac
1281       fi
1282       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283       # Get rid of the leading space.
1284       ac_sep=" "
1285       ;;
1286     esac
1287   done
1288 done
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log.  We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298   # Save into config.log some information that might help in debugging.
1299   {
1300     echo
1301
1302     cat <<\_ASBOX
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1306 _ASBOX
1307     echo
1308     # The following way of writing the cache mishandles newlines in values,
1309 {
1310   (set) 2>&1 |
1311     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312     *ac_space=\ *)
1313       sed -n \
1314         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1316       ;;
1317     *)
1318       sed -n \
1319         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1320       ;;
1321     esac;
1322 }
1323     echo
1324
1325     cat <<\_ASBOX
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1329 _ASBOX
1330     echo
1331     for ac_var in $ac_subst_vars
1332     do
1333       eval ac_val=$`echo $ac_var`
1334       echo "$ac_var='"'"'$ac_val'"'"'"
1335     done | sort
1336     echo
1337
1338     if test -n "$ac_subst_files"; then
1339       cat <<\_ASBOX
1340 ## ------------- ##
1341 ## Output files. ##
1342 ## ------------- ##
1343 _ASBOX
1344       echo
1345       for ac_var in $ac_subst_files
1346       do
1347         eval ac_val=$`echo $ac_var`
1348         echo "$ac_var='"'"'$ac_val'"'"'"
1349       done | sort
1350       echo
1351     fi
1352
1353     if test -s confdefs.h; then
1354       cat <<\_ASBOX
1355 ## ----------- ##
1356 ## confdefs.h. ##
1357 ## ----------- ##
1358 _ASBOX
1359       echo
1360       sed "/^$/d" confdefs.h | sort
1361       echo
1362     fi
1363     test "$ac_signal" != 0 &&
1364       echo "$as_me: caught signal $ac_signal"
1365     echo "$as_me: exit $exit_status"
1366   } >&5
1367   rm -f core *.core &&
1368   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369     exit $exit_status
1370      ' 0
1371 for ac_signal in 1 2 13 15; do
1372   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373 done
1374 ac_signal=0
1375
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 echo >confdefs.h
1380
1381 # Predefined preprocessor variables.
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405 _ACEOF
1406
1407
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411   if test "x$prefix" != xNONE; then
1412     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413   else
1414     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415   fi
1416 fi
1417 for ac_site_file in $CONFIG_SITE; do
1418   if test -r "$ac_site_file"; then
1419     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421     sed 's/^/| /' "$ac_site_file" >&5
1422     . "$ac_site_file"
1423   fi
1424 done
1425
1426 if test -r "$cache_file"; then
1427   # Some versions of bash will fail to source /dev/null (special
1428   # files actually), so we avoid doing that.
1429   if test -f "$cache_file"; then
1430     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1432     case $cache_file in
1433       [\\/]* | ?:[\\/]* ) . $cache_file;;
1434       *)                      . ./$cache_file;;
1435     esac
1436   fi
1437 else
1438   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1440   >$cache_file
1441 fi
1442
1443 # Check that the precious variables saved in the cache have kept the same
1444 # value.
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449   eval ac_new_set=\$ac_env_${ac_var}_set
1450   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451   eval ac_new_val="\$ac_env_${ac_var}_value"
1452   case $ac_old_set,$ac_new_set in
1453     set,)
1454       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456       ac_cache_corrupted=: ;;
1457     ,set)
1458       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460       ac_cache_corrupted=: ;;
1461     ,);;
1462     *)
1463       if test "x$ac_old_val" != "x$ac_new_val"; then
1464         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1467 echo "$as_me:   former value:  $ac_old_val" >&2;}
1468         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1469 echo "$as_me:   current value: $ac_new_val" >&2;}
1470         ac_cache_corrupted=:
1471       fi;;
1472   esac
1473   # Pass precious variables to config.status.
1474   if test "$ac_new_set" = set; then
1475     case $ac_new_val in
1476     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478     *) ac_arg=$ac_var=$ac_new_val ;;
1479     esac
1480     case " $ac_configure_args " in
1481       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1482       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483     esac
1484   fi
1485 done
1486 if $ac_cache_corrupted; then
1487   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491    { (exit 1); exit 1; }; }
1492 fi
1493
1494 ac_ext=c
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1528
1529
1530
1531
1532
1533
1534
1535 ac_aux_dir=
1536 for ac_dir in autoconf $srcdir/autoconf; do
1537   if test -f $ac_dir/install-sh; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/install-sh -c"
1540     break
1541   elif test -f $ac_dir/install.sh; then
1542     ac_aux_dir=$ac_dir
1543     ac_install_sh="$ac_aux_dir/install.sh -c"
1544     break
1545   elif test -f $ac_dir/shtool; then
1546     ac_aux_dir=$ac_dir
1547     ac_install_sh="$ac_aux_dir/shtool install -c"
1548     break
1549   fi
1550 done
1551 if test -z "$ac_aux_dir"; then
1552   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1553 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1554    { (exit 1); exit 1; }; }
1555 fi
1556 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
1560
1561 if test ${srcdir} != "." ; then
1562   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1563     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1564 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1565    { (exit 1); exit 1; }; }
1566   fi
1567 fi
1568
1569 for i in `ls ${srcdir}/projects`
1570 do
1571   if test -d ${srcdir}/projects/${i} ; then
1572     case ${i} in
1573       "CVS") ;;
1574       "sample")
1575
1576 subdirs="$subdirs projects/sample"
1577     ;;
1578       "Stacker")
1579
1580 subdirs="$subdirs projects/Stacker"
1581    ;;
1582       "llvm-test")
1583
1584 subdirs="$subdirs projects/llvm-test"
1585  ;;
1586       "llvm-reopt")
1587
1588 subdirs="$subdirs projects/llvm-reopt"
1589 ;;
1590       "llvm-gcc")
1591
1592 subdirs="$subdirs projects/llvm-gcc"
1593   ;;
1594       "Java")
1595
1596 subdirs="$subdirs projects/Java"
1597       ;;
1598       "llvm-tv")
1599
1600 subdirs="$subdirs projects/llvm-tv"
1601    ;;
1602       "llvm-fefw")
1603
1604 subdirs="$subdirs projects/llvm-fefw"
1605  ;;
1606       "poolalloc")
1607
1608 subdirs="$subdirs projects/poolalloc"
1609  ;;
1610       *)
1611         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1612 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1613         ;;
1614     esac
1615   fi
1616 done
1617
1618
1619 # Make sure we can run config.sub.
1620 $ac_config_sub sun4 >/dev/null 2>&1 ||
1621   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623    { (exit 1); exit 1; }; }
1624
1625 echo "$as_me:$LINENO: checking build system type" >&5
1626 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627 if test "${ac_cv_build+set}" = set; then
1628   echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630   ac_cv_build_alias=$build_alias
1631 test -z "$ac_cv_build_alias" &&
1632   ac_cv_build_alias=`$ac_config_guess`
1633 test -z "$ac_cv_build_alias" &&
1634   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636    { (exit 1); exit 1; }; }
1637 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640    { (exit 1); exit 1; }; }
1641
1642 fi
1643 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644 echo "${ECHO_T}$ac_cv_build" >&6
1645 build=$ac_cv_build
1646 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649
1650
1651 echo "$as_me:$LINENO: checking host system type" >&5
1652 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1653 if test "${ac_cv_host+set}" = set; then
1654   echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656   ac_cv_host_alias=$host_alias
1657 test -z "$ac_cv_host_alias" &&
1658   ac_cv_host_alias=$ac_cv_build_alias
1659 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1660   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1661 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1662    { (exit 1); exit 1; }; }
1663
1664 fi
1665 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1666 echo "${ECHO_T}$ac_cv_host" >&6
1667 host=$ac_cv_host
1668 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671
1672
1673 echo "$as_me:$LINENO: checking target system type" >&5
1674 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1675 if test "${ac_cv_target+set}" = set; then
1676   echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678   ac_cv_target_alias=$target_alias
1679 test "x$ac_cv_target_alias" = "x" &&
1680   ac_cv_target_alias=$ac_cv_host_alias
1681 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1682   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1683 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1684    { (exit 1); exit 1; }; }
1685
1686 fi
1687 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1688 echo "${ECHO_T}$ac_cv_target" >&6
1689 target=$ac_cv_target
1690 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693
1694
1695 # The aliases save the names the user supplied, while $host etc.
1696 # will get canonicalized.
1697 test -n "$target_alias" &&
1698   test "$program_prefix$program_suffix$program_transform_name" = \
1699     NONENONEs,x,x, &&
1700   program_prefix=${target_alias}-
1701
1702 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1703 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1704 if test "${llvm_cv_os_type+set}" = set; then
1705   echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707   case $build in
1708   *-*-aix*)
1709     llvm_cv_os_type="AIX"
1710     llvm_cv_platform_type="Unix" ;;
1711   *-*-cygwin*)
1712     llvm_cv_os_type="Cygwin"
1713     llvm_cv_platform_type="Unix" ;;
1714   *-*-darwin*)
1715     llvm_cv_os_type="Darwin"
1716     llvm_cv_platform_type="Unix" ;;
1717   *-*-freebsd*)
1718     llvm_cv_os_type="FreeBSD"
1719     llvm_cv_platform_type="Unix" ;;
1720   *-*-interix*)
1721     llvm_cv_os_type="Interix"
1722     llvm_cv_platform_type="Unix" ;;
1723   *-*-linux*)
1724     llvm_cv_os_type="Linux"
1725     llvm_cv_platform_type="Unix" ;;
1726   *-*-solaris*)
1727     llvm_cv_os_type="SunOS"
1728     llvm_cv_platform_type="Unix" ;;
1729   *-*-win32*)
1730     llvm_cv_os_type="Win32"
1731     llvm_cv_platform_type="Win32" ;;
1732   *-*-mingw*)
1733     llvm_cv_os_type="MingW"
1734     llvm_cv_platform_type="Win32" ;;
1735   *)
1736     llvm_cv_os_type="Unknown"
1737     llvm_cv_platform_type="Unknown" ;;
1738 esac
1739 fi
1740 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741 echo "${ECHO_T}$llvm_cv_os_type" >&6
1742
1743 if test "$llvm_cv_os_type" = "Unknown" ; then
1744   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1746    { (exit 1); exit 1; }; }
1747 fi
1748
1749 OS=$llvm_cv_os_type
1750
1751
1752 case $llvm_cv_platform_type in
1753   Unix)
1754
1755 cat >>confdefs.h <<\_ACEOF
1756 #define LLVM_ON_UNIX 1
1757 _ACEOF
1758
1759     ;;
1760   Win32)
1761
1762 cat >>confdefs.h <<\_ACEOF
1763 #define LLVM_ON_WIN32 1
1764 _ACEOF
1765
1766     ;;
1767 esac
1768
1769 case $target in
1770   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1771
1772   ;;
1773 esac
1774
1775 echo "$as_me:$LINENO: checking target architecture" >&5
1776 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1777 if test "${llvm_cv_target_arch+set}" = set; then
1778   echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780   case $target in
1781   i?86-*)                 llvm_cv_target_arch="x86" ;;
1782   amd64-* | x86_64-*)     llvm_cv_target_arch="AMD64" ;;
1783   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1784   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1785   *)                      llvm_cv_target_arch="Unknown" ;;
1786 esac
1787 fi
1788 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1789 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1790
1791 if test "$llvm_cv_target_arch" = "Unknown" ; then
1792   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1793 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1794 fi
1795
1796 ARCH=$llvm_cv_target_arch
1797
1798
1799 ac_ext=c
1800 ac_cpp='$CPP $CPPFLAGS'
1801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1804 if test -n "$ac_tool_prefix"; then
1805   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1806 set dummy ${ac_tool_prefix}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_CC+set}" = set; then
1810   echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812   if test -n "$CC"; then
1813   ac_cv_prog_CC="$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_CC="${ac_tool_prefix}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 CC=$ac_cv_prog_CC
1832 if test -n "$CC"; then
1833   echo "$as_me:$LINENO: result: $CC" >&5
1834 echo "${ECHO_T}$CC" >&6
1835 else
1836   echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6
1838 fi
1839
1840 fi
1841 if test -z "$ac_cv_prog_CC"; then
1842   ac_ct_CC=$CC
1843   # Extract the first word of "gcc", so it can be a program name with args.
1844 set dummy gcc; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1848   echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850   if test -n "$ac_ct_CC"; then
1851   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1852 else
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1855 do
1856   IFS=$as_save_IFS
1857   test -z "$as_dir" && as_dir=.
1858   for ac_exec_ext in '' $ac_executable_extensions; do
1859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860     ac_cv_prog_ac_ct_CC="gcc"
1861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862     break 2
1863   fi
1864 done
1865 done
1866
1867 fi
1868 fi
1869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1870 if test -n "$ac_ct_CC"; then
1871   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1872 echo "${ECHO_T}$ac_ct_CC" >&6
1873 else
1874   echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1876 fi
1877
1878   CC=$ac_ct_CC
1879 else
1880   CC="$ac_cv_prog_CC"
1881 fi
1882
1883 if test -z "$CC"; then
1884   if test -n "$ac_tool_prefix"; then
1885   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1886 set dummy ${ac_tool_prefix}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_CC+set}" = set; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   if test -n "$CC"; then
1893   ac_cv_prog_CC="$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_CC="${ac_tool_prefix}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 CC=$ac_cv_prog_CC
1912 if test -n "$CC"; then
1913   echo "$as_me:$LINENO: result: $CC" >&5
1914 echo "${ECHO_T}$CC" >&6
1915 else
1916   echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920 fi
1921 if test -z "$ac_cv_prog_CC"; then
1922   ac_ct_CC=$CC
1923   # Extract the first word of "cc", so it can be a program name with args.
1924 set dummy cc; ac_word=$2
1925 echo "$as_me:$LINENO: checking for $ac_word" >&5
1926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1928   echo $ECHO_N "(cached) $ECHO_C" >&6
1929 else
1930   if test -n "$ac_ct_CC"; then
1931   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1932 else
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936   IFS=$as_save_IFS
1937   test -z "$as_dir" && as_dir=.
1938   for ac_exec_ext in '' $ac_executable_extensions; do
1939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940     ac_cv_prog_ac_ct_CC="cc"
1941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942     break 2
1943   fi
1944 done
1945 done
1946
1947 fi
1948 fi
1949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1950 if test -n "$ac_ct_CC"; then
1951   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1952 echo "${ECHO_T}$ac_ct_CC" >&6
1953 else
1954   echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1956 fi
1957
1958   CC=$ac_ct_CC
1959 else
1960   CC="$ac_cv_prog_CC"
1961 fi
1962
1963 fi
1964 if test -z "$CC"; then
1965   # Extract the first word of "cc", so it can be a program name with args.
1966 set dummy cc; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970   echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972   if test -n "$CC"; then
1973   ac_cv_prog_CC="$CC" # Let the user override the test.
1974 else
1975   ac_prog_rejected=no
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1978 do
1979   IFS=$as_save_IFS
1980   test -z "$as_dir" && as_dir=.
1981   for ac_exec_ext in '' $ac_executable_extensions; do
1982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1984        ac_prog_rejected=yes
1985        continue
1986      fi
1987     ac_cv_prog_CC="cc"
1988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989     break 2
1990   fi
1991 done
1992 done
1993
1994 if test $ac_prog_rejected = yes; then
1995   # We found a bogon in the path, so make sure we never use it.
1996   set dummy $ac_cv_prog_CC
1997   shift
1998   if test $# != 0; then
1999     # We chose a different compiler from the bogus one.
2000     # However, it has the same basename, so the bogon will be chosen
2001     # first if we set CC to just the basename; use the full file name.
2002     shift
2003     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2004   fi
2005 fi
2006 fi
2007 fi
2008 CC=$ac_cv_prog_CC
2009 if test -n "$CC"; then
2010   echo "$as_me:$LINENO: result: $CC" >&5
2011 echo "${ECHO_T}$CC" >&6
2012 else
2013   echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2015 fi
2016
2017 fi
2018 if test -z "$CC"; then
2019   if test -n "$ac_tool_prefix"; then
2020   for ac_prog in cl
2021   do
2022     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2023 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2024 echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2026 if test "${ac_cv_prog_CC+set}" = set; then
2027   echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029   if test -n "$CC"; then
2030   ac_cv_prog_CC="$CC" # Let the user override the test.
2031 else
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035   IFS=$as_save_IFS
2036   test -z "$as_dir" && as_dir=.
2037   for ac_exec_ext in '' $ac_executable_extensions; do
2038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2039     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041     break 2
2042   fi
2043 done
2044 done
2045
2046 fi
2047 fi
2048 CC=$ac_cv_prog_CC
2049 if test -n "$CC"; then
2050   echo "$as_me:$LINENO: result: $CC" >&5
2051 echo "${ECHO_T}$CC" >&6
2052 else
2053   echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6
2055 fi
2056
2057     test -n "$CC" && break
2058   done
2059 fi
2060 if test -z "$CC"; then
2061   ac_ct_CC=$CC
2062   for ac_prog in cl
2063 do
2064   # Extract the first word of "$ac_prog", so it can be a program name with args.
2065 set dummy $ac_prog; ac_word=$2
2066 echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2069   echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071   if test -n "$ac_ct_CC"; then
2072   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2076 do
2077   IFS=$as_save_IFS
2078   test -z "$as_dir" && as_dir=.
2079   for ac_exec_ext in '' $ac_executable_extensions; do
2080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081     ac_cv_prog_ac_ct_CC="$ac_prog"
2082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083     break 2
2084   fi
2085 done
2086 done
2087
2088 fi
2089 fi
2090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2091 if test -n "$ac_ct_CC"; then
2092   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2093 echo "${ECHO_T}$ac_ct_CC" >&6
2094 else
2095   echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2097 fi
2098
2099   test -n "$ac_ct_CC" && break
2100 done
2101
2102   CC=$ac_ct_CC
2103 fi
2104
2105 fi
2106
2107
2108 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2109 See \`config.log' for more details." >&5
2110 echo "$as_me: error: no acceptable C compiler found in \$PATH
2111 See \`config.log' for more details." >&2;}
2112    { (exit 1); exit 1; }; }
2113
2114 # Provide some information about the compiler.
2115 echo "$as_me:$LINENO:" \
2116      "checking for C compiler version" >&5
2117 ac_compiler=`set X $ac_compile; echo $2`
2118 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2119   (eval $ac_compiler --version </dev/null >&5) 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }
2123 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2124   (eval $ac_compiler -v </dev/null >&5) 2>&5
2125   ac_status=$?
2126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127   (exit $ac_status); }
2128 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2129   (eval $ac_compiler -V </dev/null >&5) 2>&5
2130   ac_status=$?
2131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132   (exit $ac_status); }
2133
2134 cat >conftest.$ac_ext <<_ACEOF
2135 /* confdefs.h.  */
2136 _ACEOF
2137 cat confdefs.h >>conftest.$ac_ext
2138 cat >>conftest.$ac_ext <<_ACEOF
2139 /* end confdefs.h.  */
2140
2141 int
2142 main ()
2143 {
2144
2145   ;
2146   return 0;
2147 }
2148 _ACEOF
2149 ac_clean_files_save=$ac_clean_files
2150 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2151 # Try to create an executable without -o first, disregard a.out.
2152 # It will help us diagnose broken compilers, and finding out an intuition
2153 # of exeext.
2154 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2155 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2156 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2157 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2158   (eval $ac_link_default) 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; then
2162   # Find the output, starting from the most likely.  This scheme is
2163 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2164 # resort.
2165
2166 # Be careful to initialize this variable, since it used to be cached.
2167 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2168 ac_cv_exeext=
2169 # b.out is created by i960 compilers.
2170 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2171 do
2172   test -f "$ac_file" || continue
2173   case $ac_file in
2174     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2175         ;;
2176     conftest.$ac_ext )
2177         # This is the source file.
2178         ;;
2179     [ab].out )
2180         # We found the default executable, but exeext='' is most
2181         # certainly right.
2182         break;;
2183     *.* )
2184         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2185         # FIXME: I believe we export ac_cv_exeext for Libtool,
2186         # but it would be cool to find out if it's true.  Does anybody
2187         # maintain Libtool? --akim.
2188         export ac_cv_exeext
2189         break;;
2190     * )
2191         break;;
2192   esac
2193 done
2194 else
2195   echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2197
2198 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2199 See \`config.log' for more details." >&5
2200 echo "$as_me: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&2;}
2202    { (exit 77); exit 77; }; }
2203 fi
2204
2205 ac_exeext=$ac_cv_exeext
2206 echo "$as_me:$LINENO: result: $ac_file" >&5
2207 echo "${ECHO_T}$ac_file" >&6
2208
2209 # Check the compiler produces executables we can run.  If not, either
2210 # the compiler is broken, or we cross compile.
2211 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2212 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2213 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2214 # If not cross compiling, check that we can run a simple program.
2215 if test "$cross_compiling" != yes; then
2216   if { ac_try='./$ac_file'
2217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218   (eval $ac_try) 2>&5
2219   ac_status=$?
2220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221   (exit $ac_status); }; }; then
2222     cross_compiling=no
2223   else
2224     if test "$cross_compiling" = maybe; then
2225         cross_compiling=yes
2226     else
2227         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2228 If you meant to cross compile, use \`--host'.
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: cannot run C compiled programs.
2231 If you meant to cross compile, use \`--host'.
2232 See \`config.log' for more details." >&2;}
2233    { (exit 1); exit 1; }; }
2234     fi
2235   fi
2236 fi
2237 echo "$as_me:$LINENO: result: yes" >&5
2238 echo "${ECHO_T}yes" >&6
2239
2240 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2241 ac_clean_files=$ac_clean_files_save
2242 # Check the compiler produces executables we can run.  If not, either
2243 # the compiler is broken, or we cross compile.
2244 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2245 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2246 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2247 echo "${ECHO_T}$cross_compiling" >&6
2248
2249 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2250 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2252   (eval $ac_link) 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); }; then
2256   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2258 # work properly (i.e., refer to `conftest.exe'), while it won't with
2259 # `rm'.
2260 for ac_file in conftest.exe conftest conftest.*; do
2261   test -f "$ac_file" || continue
2262   case $ac_file in
2263     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2264     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265           export ac_cv_exeext
2266           break;;
2267     * ) break;;
2268   esac
2269 done
2270 else
2271   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&2;}
2275    { (exit 1); exit 1; }; }
2276 fi
2277
2278 rm -f conftest$ac_cv_exeext
2279 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2280 echo "${ECHO_T}$ac_cv_exeext" >&6
2281
2282 rm -f conftest.$ac_ext
2283 EXEEXT=$ac_cv_exeext
2284 ac_exeext=$EXEEXT
2285 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2286 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2287 if test "${ac_cv_objext+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h.  */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h.  */
2296
2297 int
2298 main ()
2299 {
2300
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.o conftest.obj
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); }; then
2311   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2312   case $ac_file in
2313     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2314     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2315        break;;
2316   esac
2317 done
2318 else
2319   echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&2;}
2326    { (exit 1); exit 1; }; }
2327 fi
2328
2329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2330 fi
2331 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2332 echo "${ECHO_T}$ac_cv_objext" >&6
2333 OBJEXT=$ac_cv_objext
2334 ac_objext=$OBJEXT
2335 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2336 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2337 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   cat >conftest.$ac_ext <<_ACEOF
2341 /* confdefs.h.  */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h.  */
2346
2347 int
2348 main ()
2349 {
2350 #ifndef __GNUC__
2351        choke me
2352 #endif
2353
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 rm -f conftest.$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360   (eval $ac_compile) 2>conftest.er1
2361   ac_status=$?
2362   grep -v '^ *+' conftest.er1 >conftest.err
2363   rm -f conftest.er1
2364   cat conftest.err >&5
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); } &&
2367          { ac_try='test -z "$ac_c_werror_flag"
2368                          || test ! -s conftest.err'
2369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370   (eval $ac_try) 2>&5
2371   ac_status=$?
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); }; } &&
2374          { ac_try='test -s conftest.$ac_objext'
2375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376   (eval $ac_try) 2>&5
2377   ac_status=$?
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); }; }; then
2380   ac_compiler_gnu=yes
2381 else
2382   echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2384
2385 ac_compiler_gnu=no
2386 fi
2387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2388 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2389
2390 fi
2391 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2392 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2393 GCC=`test $ac_compiler_gnu = yes && echo yes`
2394 ac_test_CFLAGS=${CFLAGS+set}
2395 ac_save_CFLAGS=$CFLAGS
2396 CFLAGS="-g"
2397 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2398 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2399 if test "${ac_cv_prog_cc_g+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   cat >conftest.$ac_ext <<_ACEOF
2403 /* confdefs.h.  */
2404 _ACEOF
2405 cat confdefs.h >>conftest.$ac_ext
2406 cat >>conftest.$ac_ext <<_ACEOF
2407 /* end confdefs.h.  */
2408
2409 int
2410 main ()
2411 {
2412
2413   ;
2414   return 0;
2415 }
2416 _ACEOF
2417 rm -f conftest.$ac_objext
2418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419   (eval $ac_compile) 2>conftest.er1
2420   ac_status=$?
2421   grep -v '^ *+' conftest.er1 >conftest.err
2422   rm -f conftest.er1
2423   cat conftest.err >&5
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); } &&
2426          { ac_try='test -z "$ac_c_werror_flag"
2427                          || test ! -s conftest.err'
2428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429   (eval $ac_try) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; } &&
2433          { ac_try='test -s conftest.$ac_objext'
2434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435   (eval $ac_try) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   ac_cv_prog_cc_g=yes
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444 ac_cv_prog_cc_g=no
2445 fi
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447 fi
2448 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2449 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2450 if test "$ac_test_CFLAGS" = set; then
2451   CFLAGS=$ac_save_CFLAGS
2452 elif test $ac_cv_prog_cc_g = yes; then
2453   if test "$GCC" = yes; then
2454     CFLAGS="-g -O2"
2455   else
2456     CFLAGS="-g"
2457   fi
2458 else
2459   if test "$GCC" = yes; then
2460     CFLAGS="-O2"
2461   else
2462     CFLAGS=
2463   fi
2464 fi
2465 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2466 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2467 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2468   echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470   ac_cv_prog_cc_stdc=no
2471 ac_save_CC=$CC
2472 cat >conftest.$ac_ext <<_ACEOF
2473 /* confdefs.h.  */
2474 _ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h.  */
2478 #include <stdarg.h>
2479 #include <stdio.h>
2480 #include <sys/types.h>
2481 #include <sys/stat.h>
2482 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2483 struct buf { int x; };
2484 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2485 static char *e (p, i)
2486      char **p;
2487      int i;
2488 {
2489   return p[i];
2490 }
2491 static char *f (char * (*g) (char **, int), char **p, ...)
2492 {
2493   char *s;
2494   va_list v;
2495   va_start (v,p);
2496   s = g (p, va_arg (v,int));
2497   va_end (v);
2498   return s;
2499 }
2500
2501 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2502    function prototypes and stuff, but not '\xHH' hex character constants.
2503    These don't provoke an error unfortunately, instead are silently treated
2504    as 'x'.  The following induces an error, until -std1 is added to get
2505    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2506    array size at least.  It's necessary to write '\x00'==0 to get something
2507    that's true only with -std1.  */
2508 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2509
2510 int test (int i, double x);
2511 struct s1 {int (*f) (int a);};
2512 struct s2 {int (*f) (double a);};
2513 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2514 int argc;
2515 char **argv;
2516 int
2517 main ()
2518 {
2519 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 # Don't try gcc -ansi; that turns off useful extensions and
2525 # breaks some systems' header files.
2526 # AIX                   -qlanglvl=ansi
2527 # Ultrix and OSF/1      -std1
2528 # HP-UX 10.20 and later -Ae
2529 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2530 # SVR4                  -Xc -D__EXTENSIONS__
2531 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2532 do
2533   CC="$ac_save_CC $ac_arg"
2534   rm -f conftest.$ac_objext
2535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536   (eval $ac_compile) 2>conftest.er1
2537   ac_status=$?
2538   grep -v '^ *+' conftest.er1 >conftest.err
2539   rm -f conftest.er1
2540   cat conftest.err >&5
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); } &&
2543          { ac_try='test -z "$ac_c_werror_flag"
2544                          || test ! -s conftest.err'
2545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546   (eval $ac_try) 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); }; } &&
2550          { ac_try='test -s conftest.$ac_objext'
2551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552   (eval $ac_try) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; }; then
2556   ac_cv_prog_cc_stdc=$ac_arg
2557 break
2558 else
2559   echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561
2562 fi
2563 rm -f conftest.err conftest.$ac_objext
2564 done
2565 rm -f conftest.$ac_ext conftest.$ac_objext
2566 CC=$ac_save_CC
2567
2568 fi
2569
2570 case "x$ac_cv_prog_cc_stdc" in
2571   x|xno)
2572     echo "$as_me:$LINENO: result: none needed" >&5
2573 echo "${ECHO_T}none needed" >&6 ;;
2574   *)
2575     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2576 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2577     CC="$CC $ac_cv_prog_cc_stdc" ;;
2578 esac
2579
2580 # Some people use a C++ compiler to compile C.  Since we use `exit',
2581 # in C++ we need to declare it.  In case someone uses the same compiler
2582 # for both compiling C and C++ we need to have the C++ compiler decide
2583 # the declaration of exit, since it's the most demanding environment.
2584 cat >conftest.$ac_ext <<_ACEOF
2585 #ifndef __cplusplus
2586   choke me
2587 #endif
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591   (eval $ac_compile) 2>conftest.er1
2592   ac_status=$?
2593   grep -v '^ *+' conftest.er1 >conftest.err
2594   rm -f conftest.er1
2595   cat conftest.err >&5
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); } &&
2598          { ac_try='test -z "$ac_c_werror_flag"
2599                          || test ! -s conftest.err'
2600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601   (eval $ac_try) 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; } &&
2605          { ac_try='test -s conftest.$ac_objext'
2606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; }; then
2611   for ac_declaration in \
2612    '' \
2613    'extern "C" void std::exit (int) throw (); using std::exit;' \
2614    'extern "C" void std::exit (int); using std::exit;' \
2615    'extern "C" void exit (int) throw ();' \
2616    'extern "C" void exit (int);' \
2617    'void exit (int);'
2618 do
2619   cat >conftest.$ac_ext <<_ACEOF
2620 /* confdefs.h.  */
2621 _ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h.  */
2625 $ac_declaration
2626 #include <stdlib.h>
2627 int
2628 main ()
2629 {
2630 exit (42);
2631   ;
2632   return 0;
2633 }
2634 _ACEOF
2635 rm -f conftest.$ac_objext
2636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637   (eval $ac_compile) 2>conftest.er1
2638   ac_status=$?
2639   grep -v '^ *+' conftest.er1 >conftest.err
2640   rm -f conftest.er1
2641   cat conftest.err >&5
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); } &&
2644          { ac_try='test -z "$ac_c_werror_flag"
2645                          || test ! -s conftest.err'
2646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647   (eval $ac_try) 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); }; } &&
2651          { ac_try='test -s conftest.$ac_objext'
2652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653   (eval $ac_try) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; }; then
2657   :
2658 else
2659   echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662 continue
2663 fi
2664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2665   cat >conftest.$ac_ext <<_ACEOF
2666 /* confdefs.h.  */
2667 _ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h.  */
2671 $ac_declaration
2672 int
2673 main ()
2674 {
2675 exit (42);
2676   ;
2677   return 0;
2678 }
2679 _ACEOF
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682   (eval $ac_compile) 2>conftest.er1
2683   ac_status=$?
2684   grep -v '^ *+' conftest.er1 >conftest.err
2685   rm -f conftest.er1
2686   cat conftest.err >&5
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); } &&
2689          { ac_try='test -z "$ac_c_werror_flag"
2690                          || test ! -s conftest.err'
2691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692   (eval $ac_try) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); }; } &&
2696          { ac_try='test -s conftest.$ac_objext'
2697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); }; }; then
2702   break
2703 else
2704   echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2706
2707 fi
2708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2709 done
2710 rm -f conftest*
2711 if test -n "$ac_declaration"; then
2712   echo '#ifdef __cplusplus' >>confdefs.h
2713   echo $ac_declaration      >>confdefs.h
2714   echo '#endif'             >>confdefs.h
2715 fi
2716
2717 else
2718   echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2720
2721 fi
2722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723 ac_ext=c
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728
2729
2730 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2731 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2732 if test "${ac_cv_c_bigendian+set}" = set; then
2733   echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735   # See if sys/param.h defines the BYTE_ORDER macro.
2736 cat >conftest.$ac_ext <<_ACEOF
2737 /* confdefs.h.  */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h.  */
2742 #include <sys/types.h>
2743 #include <sys/param.h>
2744
2745 int
2746 main ()
2747 {
2748 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2749  bogus endian macros
2750 #endif
2751
2752   ;
2753   return 0;
2754 }
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758   (eval $ac_compile) 2>conftest.er1
2759   ac_status=$?
2760   grep -v '^ *+' conftest.er1 >conftest.err
2761   rm -f conftest.er1
2762   cat conftest.err >&5
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } &&
2765          { ac_try='test -z "$ac_c_werror_flag"
2766                          || test ! -s conftest.err'
2767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; } &&
2772          { ac_try='test -s conftest.$ac_objext'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; }; then
2778   # It does; now see whether it defined to BIG_ENDIAN or not.
2779 cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785 #include <sys/types.h>
2786 #include <sys/param.h>
2787
2788 int
2789 main ()
2790 {
2791 #if BYTE_ORDER != BIG_ENDIAN
2792  not big endian
2793 #endif
2794
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801   (eval $ac_compile) 2>conftest.er1
2802   ac_status=$?
2803   grep -v '^ *+' conftest.er1 >conftest.err
2804   rm -f conftest.er1
2805   cat conftest.err >&5
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); } &&
2808          { ac_try='test -z "$ac_c_werror_flag"
2809                          || test ! -s conftest.err'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; } &&
2815          { ac_try='test -s conftest.$ac_objext'
2816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817   (eval $ac_try) 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); }; }; then
2821   ac_cv_c_bigendian=yes
2822 else
2823   echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2825
2826 ac_cv_c_bigendian=no
2827 fi
2828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2829 else
2830   echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2832
2833 # It does not; compile a test program.
2834 if test "$cross_compiling" = yes; then
2835   # try to guess the endianness by grepping values into an object file
2836   ac_cv_c_bigendian=unknown
2837   cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h.  */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h.  */
2843 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2844 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2845 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2846 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2847 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2848 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2849 int
2850 main ()
2851 {
2852  _ascii (); _ebcdic ();
2853   ;
2854   return 0;
2855 }
2856 _ACEOF
2857 rm -f conftest.$ac_objext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859   (eval $ac_compile) 2>conftest.er1
2860   ac_status=$?
2861   grep -v '^ *+' conftest.er1 >conftest.err
2862   rm -f conftest.er1
2863   cat conftest.err >&5
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); } &&
2866          { ac_try='test -z "$ac_c_werror_flag"
2867                          || test ! -s conftest.err'
2868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869   (eval $ac_try) 2>&5
2870   ac_status=$?
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); }; } &&
2873          { ac_try='test -s conftest.$ac_objext'
2874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875   (eval $ac_try) 2>&5
2876   ac_status=$?
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); }; }; then
2879   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2880   ac_cv_c_bigendian=yes
2881 fi
2882 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2883   if test "$ac_cv_c_bigendian" = unknown; then
2884     ac_cv_c_bigendian=no
2885   else
2886     # finding both strings is unlikely to happen, but who knows?
2887     ac_cv_c_bigendian=unknown
2888   fi
2889 fi
2890 else
2891   echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2893
2894 fi
2895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2896 else
2897   cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h.  */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h.  */
2903 int
2904 main ()
2905 {
2906   /* Are we little or big endian?  From Harbison&Steele.  */
2907   union
2908   {
2909     long l;
2910     char c[sizeof (long)];
2911   } u;
2912   u.l = 1;
2913   exit (u.c[sizeof (long) - 1] == 1);
2914 }
2915 _ACEOF
2916 rm -f conftest$ac_exeext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2918   (eval $ac_link) 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923   (eval $ac_try) 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }; }; then
2927   ac_cv_c_bigendian=no
2928 else
2929   echo "$as_me: program exited with status $ac_status" >&5
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 ( exit $ac_status )
2934 ac_cv_c_bigendian=yes
2935 fi
2936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2937 fi
2938 fi
2939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2940 fi
2941 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2942 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2943 case $ac_cv_c_bigendian in
2944   yes)
2945     ENDIAN=big
2946  ;;
2947   no)
2948     ENDIAN=little
2949  ;;
2950   *)
2951     { { echo "$as_me:$LINENO: error: unknown endianness
2952 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2953 echo "$as_me: error: unknown endianness
2954 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2955    { (exit 1); exit 1; }; } ;;
2956 esac
2957
2958
2959
2960 # Check whether --enable-optimized or --disable-optimized was given.
2961 if test "${enable_optimized+set}" = set; then
2962   enableval="$enable_optimized"
2963
2964 else
2965   enableval=no
2966 fi;
2967 if test ${enableval} = "no" ; then
2968   ENABLE_OPTIMIZED=
2969
2970 else
2971   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2972
2973 fi
2974
2975 # Check whether --enable-jit or --disable-jit was given.
2976 if test "${enable_jit+set}" = set; then
2977   enableval="$enable_jit"
2978
2979 else
2980   enableval=default
2981 fi;
2982 if test ${enableval} = "no"
2983 then
2984   JIT=
2985
2986 else
2987   case "$llvm_cv_target_arch" in
2988     x86)     JIT=TARGET_HAS_JIT=1
2989  ;;
2990     Sparc)   JIT=TARGET_HAS_JIT=1
2991  ;;
2992     PowerPC) JIT=TARGET_HAS_JIT=1
2993  ;;
2994     AMD64)   JIT=
2995  ;;
2996     *)       JIT=
2997  ;;
2998   esac
2999 fi
3000
3001 # Check whether --enable-doxygen or --disable-doxygen was given.
3002 if test "${enable_doxygen+set}" = set; then
3003   enableval="$enable_doxygen"
3004
3005 else
3006   enableval=default
3007 fi;
3008 case "$enableval" in
3009   yes) ENABLE_DOXYGEN=1
3010  ;;
3011   no)  ENABLE_DOXYGEN=0
3012  ;;
3013   default) ENABLE_DOXYGEN=0
3014  ;;
3015   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3016 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3017    { (exit 1); exit 1; }; } ;;
3018 esac
3019
3020
3021 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3022 if test "${with_llvmgccdir+set}" = set; then
3023   withval="$with_llvmgccdir"
3024
3025 else
3026   withval=default
3027 fi;
3028 case "$withval" in
3029   default) WITH_LLVMGCCDIR=default ;;
3030   /*)      WITH_LLVMGCCDIR=$withval ;;
3031   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3032 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3033    { (exit 1); exit 1; }; } ;;
3034 esac
3035
3036
3037 ac_ext=c
3038 ac_cpp='$CPP $CPPFLAGS'
3039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3043 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3044 # On Suns, sometimes $CPP names a directory.
3045 if test -n "$CPP" && test -d "$CPP"; then
3046   CPP=
3047 fi
3048 if test -z "$CPP"; then
3049   if test "${ac_cv_prog_CPP+set}" = set; then
3050   echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052       # Double quotes because CPP needs to be expanded
3053     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3054     do
3055       ac_preproc_ok=false
3056 for ac_c_preproc_warn_flag in '' yes
3057 do
3058   # Use a header file that comes with gcc, so configuring glibc
3059   # with a fresh cross-compiler works.
3060   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3061   # <limits.h> exists even on freestanding compilers.
3062   # On the NeXT, cc -E runs the code through the compiler's parser,
3063   # not just through cpp. "Syntax error" is here to catch this case.
3064   cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3070 #ifdef __STDC__
3071 # include <limits.h>
3072 #else
3073 # include <assert.h>
3074 #endif
3075                      Syntax error
3076 _ACEOF
3077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3078   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3079   ac_status=$?
3080   grep -v '^ *+' conftest.er1 >conftest.err
3081   rm -f conftest.er1
3082   cat conftest.err >&5
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); } >/dev/null; then
3085   if test -s conftest.err; then
3086     ac_cpp_err=$ac_c_preproc_warn_flag
3087     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3088   else
3089     ac_cpp_err=
3090   fi
3091 else
3092   ac_cpp_err=yes
3093 fi
3094 if test -z "$ac_cpp_err"; then
3095   :
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100   # Broken: fails on valid input.
3101 continue
3102 fi
3103 rm -f conftest.err conftest.$ac_ext
3104
3105   # OK, works on sane cases.  Now check whether non-existent headers
3106   # can be detected and how.
3107   cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h.  */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h.  */
3113 #include <ac_nonexistent.h>
3114 _ACEOF
3115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3117   ac_status=$?
3118   grep -v '^ *+' conftest.er1 >conftest.err
3119   rm -f conftest.er1
3120   cat conftest.err >&5
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); } >/dev/null; then
3123   if test -s conftest.err; then
3124     ac_cpp_err=$ac_c_preproc_warn_flag
3125     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3126   else
3127     ac_cpp_err=
3128   fi
3129 else
3130   ac_cpp_err=yes
3131 fi
3132 if test -z "$ac_cpp_err"; then
3133   # Broken: success on invalid input.
3134 continue
3135 else
3136   echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139   # Passes both tests.
3140 ac_preproc_ok=:
3141 break
3142 fi
3143 rm -f conftest.err conftest.$ac_ext
3144
3145 done
3146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3147 rm -f conftest.err conftest.$ac_ext
3148 if $ac_preproc_ok; then
3149   break
3150 fi
3151
3152     done
3153     ac_cv_prog_CPP=$CPP
3154
3155 fi
3156   CPP=$ac_cv_prog_CPP
3157 else
3158   ac_cv_prog_CPP=$CPP
3159 fi
3160 echo "$as_me:$LINENO: result: $CPP" >&5
3161 echo "${ECHO_T}$CPP" >&6
3162 ac_preproc_ok=false
3163 for ac_c_preproc_warn_flag in '' yes
3164 do
3165   # Use a header file that comes with gcc, so configuring glibc
3166   # with a fresh cross-compiler works.
3167   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3168   # <limits.h> exists even on freestanding compilers.
3169   # On the NeXT, cc -E runs the code through the compiler's parser,
3170   # not just through cpp. "Syntax error" is here to catch this case.
3171   cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h.  */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h.  */
3177 #ifdef __STDC__
3178 # include <limits.h>
3179 #else
3180 # include <assert.h>
3181 #endif
3182                      Syntax error
3183 _ACEOF
3184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3185   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3186   ac_status=$?
3187   grep -v '^ *+' conftest.er1 >conftest.err
3188   rm -f conftest.er1
3189   cat conftest.err >&5
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); } >/dev/null; then
3192   if test -s conftest.err; then
3193     ac_cpp_err=$ac_c_preproc_warn_flag
3194     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3195   else
3196     ac_cpp_err=
3197   fi
3198 else
3199   ac_cpp_err=yes
3200 fi
3201 if test -z "$ac_cpp_err"; then
3202   :
3203 else
3204   echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3206
3207   # Broken: fails on valid input.
3208 continue
3209 fi
3210 rm -f conftest.err conftest.$ac_ext
3211
3212   # OK, works on sane cases.  Now check whether non-existent headers
3213   # can be detected and how.
3214   cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h.  */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h.  */
3220 #include <ac_nonexistent.h>
3221 _ACEOF
3222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3223   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } >/dev/null; then
3230   if test -s conftest.err; then
3231     ac_cpp_err=$ac_c_preproc_warn_flag
3232     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3233   else
3234     ac_cpp_err=
3235   fi
3236 else
3237   ac_cpp_err=yes
3238 fi
3239 if test -z "$ac_cpp_err"; then
3240   # Broken: success on invalid input.
3241 continue
3242 else
3243   echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246   # Passes both tests.
3247 ac_preproc_ok=:
3248 break
3249 fi
3250 rm -f conftest.err conftest.$ac_ext
3251
3252 done
3253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3254 rm -f conftest.err conftest.$ac_ext
3255 if $ac_preproc_ok; then
3256   :
3257 else
3258   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3259 See \`config.log' for more details." >&5
3260 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3261 See \`config.log' for more details." >&2;}
3262    { (exit 1); exit 1; }; }
3263 fi
3264
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
3271 ac_ext=c
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 if test -n "$ac_tool_prefix"; then
3277   for ac_prog in gcc
3278   do
3279     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3281 echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3283 if test "${ac_cv_prog_CC+set}" = set; then
3284   echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286   if test -n "$CC"; then
3287   ac_cv_prog_CC="$CC" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294   for ac_exec_ext in '' $ac_executable_extensions; do
3295   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298     break 2
3299   fi
3300 done
3301 done
3302
3303 fi
3304 fi
3305 CC=$ac_cv_prog_CC
3306 if test -n "$CC"; then
3307   echo "$as_me:$LINENO: result: $CC" >&5
3308 echo "${ECHO_T}$CC" >&6
3309 else
3310   echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3312 fi
3313
3314     test -n "$CC" && break
3315   done
3316 fi
3317 if test -z "$CC"; then
3318   ac_ct_CC=$CC
3319   for ac_prog in gcc
3320 do
3321   # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   if test -n "$ac_ct_CC"; then
3329   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3333 do
3334   IFS=$as_save_IFS
3335   test -z "$as_dir" && as_dir=.
3336   for ac_exec_ext in '' $ac_executable_extensions; do
3337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338     ac_cv_prog_ac_ct_CC="$ac_prog"
3339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340     break 2
3341   fi
3342 done
3343 done
3344
3345 fi
3346 fi
3347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3348 if test -n "$ac_ct_CC"; then
3349   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3350 echo "${ECHO_T}$ac_ct_CC" >&6
3351 else
3352   echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3354 fi
3355
3356   test -n "$ac_ct_CC" && break
3357 done
3358
3359   CC=$ac_ct_CC
3360 fi
3361
3362
3363 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3364 See \`config.log' for more details." >&5
3365 echo "$as_me: error: no acceptable C compiler found in \$PATH
3366 See \`config.log' for more details." >&2;}
3367    { (exit 1); exit 1; }; }
3368
3369 # Provide some information about the compiler.
3370 echo "$as_me:$LINENO:" \
3371      "checking for C compiler version" >&5
3372 ac_compiler=`set X $ac_compile; echo $2`
3373 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3374   (eval $ac_compiler --version </dev/null >&5) 2>&5
3375   ac_status=$?
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); }
3378 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3379   (eval $ac_compiler -v </dev/null >&5) 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }
3383 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3384   (eval $ac_compiler -V </dev/null >&5) 2>&5
3385   ac_status=$?
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); }
3388
3389 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3390 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3391 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3392   echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394   cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h.  */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h.  */
3400
3401 int
3402 main ()
3403 {
3404 #ifndef __GNUC__
3405        choke me
3406 #endif
3407
3408   ;
3409   return 0;
3410 }
3411 _ACEOF
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414   (eval $ac_compile) 2>conftest.er1
3415   ac_status=$?
3416   grep -v '^ *+' conftest.er1 >conftest.err
3417   rm -f conftest.er1
3418   cat conftest.err >&5
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); } &&
3421          { ac_try='test -z "$ac_c_werror_flag"
3422                          || test ! -s conftest.err'
3423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424   (eval $ac_try) 2>&5
3425   ac_status=$?
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); }; } &&
3428          { ac_try='test -s conftest.$ac_objext'
3429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430   (eval $ac_try) 2>&5
3431   ac_status=$?
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); }; }; then
3434   ac_compiler_gnu=yes
3435 else
3436   echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 ac_compiler_gnu=no
3440 fi
3441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3442 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3443
3444 fi
3445 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3446 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3447 GCC=`test $ac_compiler_gnu = yes && echo yes`
3448 ac_test_CFLAGS=${CFLAGS+set}
3449 ac_save_CFLAGS=$CFLAGS
3450 CFLAGS="-g"
3451 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3452 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3453 if test "${ac_cv_prog_cc_g+set}" = set; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456   cat >conftest.$ac_ext <<_ACEOF
3457 /* confdefs.h.  */
3458 _ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h.  */
3462
3463 int
3464 main ()
3465 {
3466
3467   ;
3468   return 0;
3469 }
3470 _ACEOF
3471 rm -f conftest.$ac_objext
3472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3473   (eval $ac_compile) 2>conftest.er1
3474   ac_status=$?
3475   grep -v '^ *+' conftest.er1 >conftest.err
3476   rm -f conftest.er1
3477   cat conftest.err >&5
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); } &&
3480          { ac_try='test -z "$ac_c_werror_flag"
3481                          || test ! -s conftest.err'
3482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483   (eval $ac_try) 2>&5
3484   ac_status=$?
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); }; } &&
3487          { ac_try='test -s conftest.$ac_objext'
3488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489   (eval $ac_try) 2>&5
3490   ac_status=$?
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); }; }; then
3493   ac_cv_prog_cc_g=yes
3494 else
3495   echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 ac_cv_prog_cc_g=no
3499 fi
3500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3501 fi
3502 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3503 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3504 if test "$ac_test_CFLAGS" = set; then
3505   CFLAGS=$ac_save_CFLAGS
3506 elif test $ac_cv_prog_cc_g = yes; then
3507   if test "$GCC" = yes; then
3508     CFLAGS="-g -O2"
3509   else
3510     CFLAGS="-g"
3511   fi
3512 else
3513   if test "$GCC" = yes; then
3514     CFLAGS="-O2"
3515   else
3516     CFLAGS=
3517   fi
3518 fi
3519 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3520 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3521 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524   ac_cv_prog_cc_stdc=no
3525 ac_save_CC=$CC
3526 cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h.  */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h.  */
3532 #include <stdarg.h>
3533 #include <stdio.h>
3534 #include <sys/types.h>
3535 #include <sys/stat.h>
3536 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3537 struct buf { int x; };
3538 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3539 static char *e (p, i)
3540      char **p;
3541      int i;
3542 {
3543   return p[i];
3544 }
3545 static char *f (char * (*g) (char **, int), char **p, ...)
3546 {
3547   char *s;
3548   va_list v;
3549   va_start (v,p);
3550   s = g (p, va_arg (v,int));
3551   va_end (v);
3552   return s;
3553 }
3554
3555 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3556    function prototypes and stuff, but not '\xHH' hex character constants.
3557    These don't provoke an error unfortunately, instead are silently treated
3558    as 'x'.  The following induces an error, until -std1 is added to get
3559    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3560    array size at least.  It's necessary to write '\x00'==0 to get something
3561    that's true only with -std1.  */
3562 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3563
3564 int test (int i, double x);
3565 struct s1 {int (*f) (int a);};
3566 struct s2 {int (*f) (double a);};
3567 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3568 int argc;
3569 char **argv;
3570 int
3571 main ()
3572 {
3573 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3574   ;
3575   return 0;
3576 }
3577 _ACEOF
3578 # Don't try gcc -ansi; that turns off useful extensions and
3579 # breaks some systems' header files.
3580 # AIX                   -qlanglvl=ansi
3581 # Ultrix and OSF/1      -std1
3582 # HP-UX 10.20 and later -Ae
3583 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3584 # SVR4                  -Xc -D__EXTENSIONS__
3585 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3586 do
3587   CC="$ac_save_CC $ac_arg"
3588   rm -f conftest.$ac_objext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590   (eval $ac_compile) 2>conftest.er1
3591   ac_status=$?
3592   grep -v '^ *+' conftest.er1 >conftest.err
3593   rm -f conftest.er1
3594   cat conftest.err >&5
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); } &&
3597          { ac_try='test -z "$ac_c_werror_flag"
3598                          || test ! -s conftest.err'
3599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600   (eval $ac_try) 2>&5
3601   ac_status=$?
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); }; } &&
3604          { ac_try='test -s conftest.$ac_objext'
3605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606   (eval $ac_try) 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); }; }; then
3610   ac_cv_prog_cc_stdc=$ac_arg
3611 break
3612 else
3613   echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3615
3616 fi
3617 rm -f conftest.err conftest.$ac_objext
3618 done
3619 rm -f conftest.$ac_ext conftest.$ac_objext
3620 CC=$ac_save_CC
3621
3622 fi
3623
3624 case "x$ac_cv_prog_cc_stdc" in
3625   x|xno)
3626     echo "$as_me:$LINENO: result: none needed" >&5
3627 echo "${ECHO_T}none needed" >&6 ;;
3628   *)
3629     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3630 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3631     CC="$CC $ac_cv_prog_cc_stdc" ;;
3632 esac
3633
3634 # Some people use a C++ compiler to compile C.  Since we use `exit',
3635 # in C++ we need to declare it.  In case someone uses the same compiler
3636 # for both compiling C and C++ we need to have the C++ compiler decide
3637 # the declaration of exit, since it's the most demanding environment.
3638 cat >conftest.$ac_ext <<_ACEOF
3639 #ifndef __cplusplus
3640   choke me
3641 #endif
3642 _ACEOF
3643 rm -f conftest.$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645   (eval $ac_compile) 2>conftest.er1
3646   ac_status=$?
3647   grep -v '^ *+' conftest.er1 >conftest.err
3648   rm -f conftest.er1
3649   cat conftest.err >&5
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); } &&
3652          { ac_try='test -z "$ac_c_werror_flag"
3653                          || test ! -s conftest.err'
3654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655   (eval $ac_try) 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); }; } &&
3659          { ac_try='test -s conftest.$ac_objext'
3660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661   (eval $ac_try) 2>&5
3662   ac_status=$?
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); }; }; then
3665   for ac_declaration in \
3666    '' \
3667    'extern "C" void std::exit (int) throw (); using std::exit;' \
3668    'extern "C" void std::exit (int); using std::exit;' \
3669    'extern "C" void exit (int) throw ();' \
3670    'extern "C" void exit (int);' \
3671    'void exit (int);'
3672 do
3673   cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h.  */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h.  */
3679 $ac_declaration
3680 #include <stdlib.h>
3681 int
3682 main ()
3683 {
3684 exit (42);
3685   ;
3686   return 0;
3687 }
3688 _ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691   (eval $ac_compile) 2>conftest.er1
3692   ac_status=$?
3693   grep -v '^ *+' conftest.er1 >conftest.err
3694   rm -f conftest.er1
3695   cat conftest.err >&5
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); } &&
3698          { ac_try='test -z "$ac_c_werror_flag"
3699                          || test ! -s conftest.err'
3700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701   (eval $ac_try) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); }; } &&
3705          { ac_try='test -s conftest.$ac_objext'
3706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707   (eval $ac_try) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }; }; then
3711   :
3712 else
3713   echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 continue
3717 fi
3718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3719   cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h.  */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h.  */
3725 $ac_declaration
3726 int
3727 main ()
3728 {
3729 exit (42);
3730   ;
3731   return 0;
3732 }
3733 _ACEOF
3734 rm -f conftest.$ac_objext
3735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3736   (eval $ac_compile) 2>conftest.er1
3737   ac_status=$?
3738   grep -v '^ *+' conftest.er1 >conftest.err
3739   rm -f conftest.er1
3740   cat conftest.err >&5
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } &&
3743          { ac_try='test -z "$ac_c_werror_flag"
3744                          || test ! -s conftest.err'
3745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746   (eval $ac_try) 2>&5
3747   ac_status=$?
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); }; } &&
3750          { ac_try='test -s conftest.$ac_objext'
3751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752   (eval $ac_try) 2>&5
3753   ac_status=$?
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); }; }; then
3756   break
3757 else
3758   echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3760
3761 fi
3762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3763 done
3764 rm -f conftest*
3765 if test -n "$ac_declaration"; then
3766   echo '#ifdef __cplusplus' >>confdefs.h
3767   echo $ac_declaration      >>confdefs.h
3768   echo '#endif'             >>confdefs.h
3769 fi
3770
3771 else
3772   echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3774
3775 fi
3776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3777 ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
3783 ac_ext=cc
3784 ac_cpp='$CXXCPP $CPPFLAGS'
3785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3788 if test -n "$ac_tool_prefix"; then
3789   for ac_prog in $CCC g++
3790   do
3791     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3792 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3793 echo "$as_me:$LINENO: checking for $ac_word" >&5
3794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3795 if test "${ac_cv_prog_CXX+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   if test -n "$CXX"; then
3799   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3800 else
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804   IFS=$as_save_IFS
3805   test -z "$as_dir" && as_dir=.
3806   for ac_exec_ext in '' $ac_executable_extensions; do
3807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3810     break 2
3811   fi
3812 done
3813 done
3814
3815 fi
3816 fi
3817 CXX=$ac_cv_prog_CXX
3818 if test -n "$CXX"; then
3819   echo "$as_me:$LINENO: result: $CXX" >&5
3820 echo "${ECHO_T}$CXX" >&6
3821 else
3822   echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3824 fi
3825
3826     test -n "$CXX" && break
3827   done
3828 fi
3829 if test -z "$CXX"; then
3830   ac_ct_CXX=$CXX
3831   for ac_prog in $CCC g++
3832 do
3833   # Extract the first word of "$ac_prog", so it can be a program name with args.
3834 set dummy $ac_prog; ac_word=$2
3835 echo "$as_me:$LINENO: checking for $ac_word" >&5
3836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3837 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3838   echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840   if test -n "$ac_ct_CXX"; then
3841   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846   IFS=$as_save_IFS
3847   test -z "$as_dir" && as_dir=.
3848   for ac_exec_ext in '' $ac_executable_extensions; do
3849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3850     ac_cv_prog_ac_ct_CXX="$ac_prog"
3851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3852     break 2
3853   fi
3854 done
3855 done
3856
3857 fi
3858 fi
3859 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3860 if test -n "$ac_ct_CXX"; then
3861   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3862 echo "${ECHO_T}$ac_ct_CXX" >&6
3863 else
3864   echo "$as_me:$LINENO: result: no" >&5
3865 echo "${ECHO_T}no" >&6
3866 fi
3867
3868   test -n "$ac_ct_CXX" && break
3869 done
3870 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3871
3872   CXX=$ac_ct_CXX
3873 fi
3874
3875
3876 # Provide some information about the compiler.
3877 echo "$as_me:$LINENO:" \
3878      "checking for C++ compiler version" >&5
3879 ac_compiler=`set X $ac_compile; echo $2`
3880 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3881   (eval $ac_compiler --version </dev/null >&5) 2>&5
3882   ac_status=$?
3883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884   (exit $ac_status); }
3885 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3886   (eval $ac_compiler -v </dev/null >&5) 2>&5
3887   ac_status=$?
3888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889   (exit $ac_status); }
3890 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3891   (eval $ac_compiler -V </dev/null >&5) 2>&5
3892   ac_status=$?
3893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894   (exit $ac_status); }
3895
3896 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3897 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3898 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3899   echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901   cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h.  */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h.  */
3907
3908 int
3909 main ()
3910 {
3911 #ifndef __GNUC__
3912        choke me
3913 #endif
3914
3915   ;
3916   return 0;
3917 }
3918 _ACEOF
3919 rm -f conftest.$ac_objext
3920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3921   (eval $ac_compile) 2>conftest.er1
3922   ac_status=$?
3923   grep -v '^ *+' conftest.er1 >conftest.err
3924   rm -f conftest.er1
3925   cat conftest.err >&5
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); } &&
3928          { ac_try='test -z "$ac_cxx_werror_flag"
3929                          || test ! -s conftest.err'
3930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931   (eval $ac_try) 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); }; } &&
3935          { ac_try='test -s conftest.$ac_objext'
3936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937   (eval $ac_try) 2>&5
3938   ac_status=$?
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); }; }; then
3941   ac_compiler_gnu=yes
3942 else
3943   echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946 ac_compiler_gnu=no
3947 fi
3948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3949 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3950
3951 fi
3952 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3953 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3954 GXX=`test $ac_compiler_gnu = yes && echo yes`
3955 ac_test_CXXFLAGS=${CXXFLAGS+set}
3956 ac_save_CXXFLAGS=$CXXFLAGS
3957 CXXFLAGS="-g"
3958 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3959 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3960 if test "${ac_cv_prog_cxx_g+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h.  */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h.  */
3969
3970 int
3971 main ()
3972 {
3973
3974   ;
3975   return 0;
3976 }
3977 _ACEOF
3978 rm -f conftest.$ac_objext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980   (eval $ac_compile) 2>conftest.er1
3981   ac_status=$?
3982   grep -v '^ *+' conftest.er1 >conftest.err
3983   rm -f conftest.er1
3984   cat conftest.err >&5
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); } &&
3987          { ac_try='test -z "$ac_cxx_werror_flag"
3988                          || test ! -s conftest.err'
3989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990   (eval $ac_try) 2>&5
3991   ac_status=$?
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); }; } &&
3994          { ac_try='test -s conftest.$ac_objext'
3995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996   (eval $ac_try) 2>&5
3997   ac_status=$?
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); }; }; then
4000   ac_cv_prog_cxx_g=yes
4001 else
4002   echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4004
4005 ac_cv_prog_cxx_g=no
4006 fi
4007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4008 fi
4009 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4010 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4011 if test "$ac_test_CXXFLAGS" = set; then
4012   CXXFLAGS=$ac_save_CXXFLAGS
4013 elif test $ac_cv_prog_cxx_g = yes; then
4014   if test "$GXX" = yes; then
4015     CXXFLAGS="-g -O2"
4016   else
4017     CXXFLAGS="-g"
4018   fi
4019 else
4020   if test "$GXX" = yes; then
4021     CXXFLAGS="-O2"
4022   else
4023     CXXFLAGS=
4024   fi
4025 fi
4026 for ac_declaration in \
4027    '' \
4028    'extern "C" void std::exit (int) throw (); using std::exit;' \
4029    'extern "C" void std::exit (int); using std::exit;' \
4030    'extern "C" void exit (int) throw ();' \
4031    'extern "C" void exit (int);' \
4032    'void exit (int);'
4033 do
4034   cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h.  */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h.  */
4040 $ac_declaration
4041 #include <stdlib.h>
4042 int
4043 main ()
4044 {
4045 exit (42);
4046   ;
4047   return 0;
4048 }
4049 _ACEOF
4050 rm -f conftest.$ac_objext
4051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4052   (eval $ac_compile) 2>conftest.er1
4053   ac_status=$?
4054   grep -v '^ *+' conftest.er1 >conftest.err
4055   rm -f conftest.er1
4056   cat conftest.err >&5
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); } &&
4059          { ac_try='test -z "$ac_cxx_werror_flag"
4060                          || test ! -s conftest.err'
4061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062   (eval $ac_try) 2>&5
4063   ac_status=$?
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); }; } &&
4066          { ac_try='test -s conftest.$ac_objext'
4067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068   (eval $ac_try) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; }; then
4072   :
4073 else
4074   echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4076
4077 continue
4078 fi
4079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4080   cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h.  */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h.  */
4086 $ac_declaration
4087 int
4088 main ()
4089 {
4090 exit (42);
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097   (eval $ac_compile) 2>conftest.er1
4098   ac_status=$?
4099   grep -v '^ *+' conftest.er1 >conftest.err
4100   rm -f conftest.er1
4101   cat conftest.err >&5
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); } &&
4104          { ac_try='test -z "$ac_cxx_werror_flag"
4105                          || test ! -s conftest.err'
4106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107   (eval $ac_try) 2>&5
4108   ac_status=$?
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); }; } &&
4111          { ac_try='test -s conftest.$ac_objext'
4112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113   (eval $ac_try) 2>&5
4114   ac_status=$?
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); }; }; then
4117   break
4118 else
4119   echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4121
4122 fi
4123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4124 done
4125 rm -f conftest*
4126 if test -n "$ac_declaration"; then
4127   echo '#ifdef __cplusplus' >>confdefs.h
4128   echo $ac_declaration      >>confdefs.h
4129   echo '#endif'             >>confdefs.h
4130 fi
4131
4132 ac_ext=c
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137
4138 echo "$as_me:$LINENO: checking " >&5
4139 echo $ECHO_N "checking ... $ECHO_C" >&6
4140 if test "${ac_cv_has_flex+set}" = set; then
4141   echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143   for ac_prog in flex lex
4144 do
4145   # Extract the first word of "$ac_prog", so it can be a program name with args.
4146 set dummy $ac_prog; ac_word=$2
4147 echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_prog_LEX+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   if test -n "$LEX"; then
4153   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158   IFS=$as_save_IFS
4159   test -z "$as_dir" && as_dir=.
4160   for ac_exec_ext in '' $ac_executable_extensions; do
4161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162     ac_cv_prog_LEX="$ac_prog"
4163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164     break 2
4165   fi
4166 done
4167 done
4168
4169 fi
4170 fi
4171 LEX=$ac_cv_prog_LEX
4172 if test -n "$LEX"; then
4173   echo "$as_me:$LINENO: result: $LEX" >&5
4174 echo "${ECHO_T}$LEX" >&6
4175 else
4176   echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4178 fi
4179
4180   test -n "$LEX" && break
4181 done
4182 test -n "$LEX" || LEX=":"
4183
4184 if test -z "$LEXLIB"
4185 then
4186   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4187 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4188 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4189   echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191   ac_check_lib_save_LIBS=$LIBS
4192 LIBS="-lfl  $LIBS"
4193 cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199
4200 /* Override any gcc2 internal prototype to avoid an error.  */
4201 #ifdef __cplusplus
4202 extern "C"
4203 #endif
4204 /* We use char because int might match the return type of a gcc2
4205    builtin and then its argument prototype would still apply.  */
4206 char yywrap ();
4207 int
4208 main ()
4209 {
4210 yywrap ();
4211   ;
4212   return 0;
4213 }
4214 _ACEOF
4215 rm -f conftest.$ac_objext conftest$ac_exeext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217   (eval $ac_link) 2>conftest.er1
4218   ac_status=$?
4219   grep -v '^ *+' conftest.er1 >conftest.err
4220   rm -f conftest.er1
4221   cat conftest.err >&5
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } &&
4224          { ac_try='test -z "$ac_c_werror_flag"
4225                          || test ! -s conftest.err'
4226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227   (eval $ac_try) 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }; } &&
4231          { ac_try='test -s conftest$ac_exeext'
4232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233   (eval $ac_try) 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; }; then
4237   ac_cv_lib_fl_yywrap=yes
4238 else
4239   echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 ac_cv_lib_fl_yywrap=no
4243 fi
4244 rm -f conftest.err conftest.$ac_objext \
4245       conftest$ac_exeext conftest.$ac_ext
4246 LIBS=$ac_check_lib_save_LIBS
4247 fi
4248 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4249 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4250 if test $ac_cv_lib_fl_yywrap = yes; then
4251   LEXLIB="-lfl"
4252 else
4253   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4254 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4255 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4256   echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258   ac_check_lib_save_LIBS=$LIBS
4259 LIBS="-ll  $LIBS"
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h.  */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h.  */
4266
4267 /* Override any gcc2 internal prototype to avoid an error.  */
4268 #ifdef __cplusplus
4269 extern "C"
4270 #endif
4271 /* We use char because int might match the return type of a gcc2
4272    builtin and then its argument prototype would still apply.  */
4273 char yywrap ();
4274 int
4275 main ()
4276 {
4277 yywrap ();
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.$ac_objext conftest$ac_exeext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284   (eval $ac_link) 2>conftest.er1
4285   ac_status=$?
4286   grep -v '^ *+' conftest.er1 >conftest.err
4287   rm -f conftest.er1
4288   cat conftest.err >&5
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); } &&
4291          { ac_try='test -z "$ac_c_werror_flag"
4292                          || test ! -s conftest.err'
4293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294   (eval $ac_try) 2>&5
4295   ac_status=$?
4296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297   (exit $ac_status); }; } &&
4298          { ac_try='test -s conftest$ac_exeext'
4299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300   (eval $ac_try) 2>&5
4301   ac_status=$?
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); }; }; then
4304   ac_cv_lib_l_yywrap=yes
4305 else
4306   echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4308
4309 ac_cv_lib_l_yywrap=no
4310 fi
4311 rm -f conftest.err conftest.$ac_objext \
4312       conftest$ac_exeext conftest.$ac_ext
4313 LIBS=$ac_check_lib_save_LIBS
4314 fi
4315 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4316 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4317 if test $ac_cv_lib_l_yywrap = yes; then
4318   LEXLIB="-ll"
4319 fi
4320
4321 fi
4322
4323 fi
4324
4325 if test "x$LEX" != "x:"; then
4326   echo "$as_me:$LINENO: checking lex output file root" >&5
4327 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4328 if test "${ac_cv_prog_lex_root+set}" = set; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331   # The minimal lex program is just a single line: %%.  But some broken lexes
4332 # (Solaris, I think it was) want two %% lines, so accommodate them.
4333 cat >conftest.l <<_ACEOF
4334 %%
4335 %%
4336 _ACEOF
4337 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4338   (eval $LEX conftest.l) 2>&5
4339   ac_status=$?
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); }
4342 if test -f lex.yy.c; then
4343   ac_cv_prog_lex_root=lex.yy
4344 elif test -f lexyy.c; then
4345   ac_cv_prog_lex_root=lexyy
4346 else
4347   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4348 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4349    { (exit 1); exit 1; }; }
4350 fi
4351 fi
4352 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4353 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4354 rm -f conftest.l
4355 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4356
4357 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4358 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4359 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4360   echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362   # POSIX says lex can declare yytext either as a pointer or an array; the
4363 # default is implementation-dependent. Figure out which it is, since
4364 # not all implementations provide the %pointer and %array declarations.
4365 ac_cv_prog_lex_yytext_pointer=no
4366 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4367 ac_save_LIBS=$LIBS
4368 LIBS="$LIBS $LEXLIB"
4369 cat >conftest.$ac_ext <<_ACEOF
4370 `cat $LEX_OUTPUT_ROOT.c`
4371 _ACEOF
4372 rm -f conftest.$ac_objext conftest$ac_exeext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374   (eval $ac_link) 2>conftest.er1
4375   ac_status=$?
4376   grep -v '^ *+' conftest.er1 >conftest.err
4377   rm -f conftest.er1
4378   cat conftest.err >&5
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); } &&
4381          { ac_try='test -z "$ac_c_werror_flag"
4382                          || test ! -s conftest.err'
4383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384   (eval $ac_try) 2>&5
4385   ac_status=$?
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); }; } &&
4388          { ac_try='test -s conftest$ac_exeext'
4389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390   (eval $ac_try) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); }; }; then
4394   ac_cv_prog_lex_yytext_pointer=yes
4395 else
4396   echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4398
4399 fi
4400 rm -f conftest.err conftest.$ac_objext \
4401       conftest$ac_exeext conftest.$ac_ext
4402 LIBS=$ac_save_LIBS
4403 rm -f "${LEX_OUTPUT_ROOT}.c"
4404
4405 fi
4406 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4407 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4408 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4409
4410 cat >>confdefs.h <<\_ACEOF
4411 #define YYTEXT_POINTER 1
4412 _ACEOF
4413
4414 fi
4415
4416 fi
4417
4418 fi
4419 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4420 echo "${ECHO_T}$ac_cv_has_flex" >&6
4421 if test "$LEX" != "flex"; then
4422   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4423 echo "$as_me: error: flex not found but required" >&2;}
4424    { (exit 1); exit 1; }; }
4425 else
4426   FLEX=flex
4427
4428 fi
4429
4430 echo "$as_me:$LINENO: checking " >&5
4431 echo $ECHO_N "checking ... $ECHO_C" >&6
4432 if test "${llvm_cv_has_bison+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   for ac_prog in 'bison -y' byacc
4436 do
4437   # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 echo "$as_me:$LINENO: checking for $ac_word" >&5
4440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441 if test "${ac_cv_prog_YACC+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   if test -n "$YACC"; then
4445   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450   IFS=$as_save_IFS
4451   test -z "$as_dir" && as_dir=.
4452   for ac_exec_ext in '' $ac_executable_extensions; do
4453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454     ac_cv_prog_YACC="$ac_prog"
4455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456     break 2
4457   fi
4458 done
4459 done
4460
4461 fi
4462 fi
4463 YACC=$ac_cv_prog_YACC
4464 if test -n "$YACC"; then
4465   echo "$as_me:$LINENO: result: $YACC" >&5
4466 echo "${ECHO_T}$YACC" >&6
4467 else
4468   echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6
4470 fi
4471
4472   test -n "$YACC" && break
4473 done
4474 test -n "$YACC" || YACC="yacc"
4475
4476 fi
4477 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4478 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4479 if test "$YACC" != "bison -y"; then
4480   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4481 echo "$as_me: error: bison not found but required" >&2;}
4482    { (exit 1); exit 1; }; }
4483 else
4484   BISON=bison
4485
4486 fi
4487
4488 echo "$as_me:$LINENO: checking for GNU make" >&5
4489 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4490 if test "${llvm_cv_gnu_make_command+set}" = set; then
4491   echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493   llvm_cv_gnu_make_command=''
4494  for a in "$MAKE" make gmake gnumake ; do
4495   if test -z "$a" ; then continue ; fi ;
4496   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4497   then
4498    llvm_cv_gnu_make_command=$a ;
4499    break;
4500   fi
4501  done
4502 fi
4503 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4504 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4505  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4506    ifGNUmake='' ;
4507  else
4508    ifGNUmake='#' ;
4509    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4510 echo "${ECHO_T}\"Not found\"" >&6;
4511  fi
4512
4513
4514 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4515 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4516 LN_S=$as_ln_s
4517 if test "$LN_S" = "ln -s"; then
4518   echo "$as_me:$LINENO: result: yes" >&5
4519 echo "${ECHO_T}yes" >&6
4520 else
4521   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4522 echo "${ECHO_T}no, using $LN_S" >&6
4523 fi
4524
4525 # Extract the first word of "cmp", so it can be a program name with args.
4526 set dummy cmp; ac_word=$2
4527 echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4529 if test "${ac_cv_path_CMP+set}" = set; then
4530   echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532   case $CMP in
4533   [\\/]* | ?:[\\/]*)
4534   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4535   ;;
4536   *)
4537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540   IFS=$as_save_IFS
4541   test -z "$as_dir" && as_dir=.
4542   for ac_exec_ext in '' $ac_executable_extensions; do
4543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546     break 2
4547   fi
4548 done
4549 done
4550
4551   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4552   ;;
4553 esac
4554 fi
4555 CMP=$ac_cv_path_CMP
4556
4557 if test -n "$CMP"; then
4558   echo "$as_me:$LINENO: result: $CMP" >&5
4559 echo "${ECHO_T}$CMP" >&6
4560 else
4561   echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6
4563 fi
4564
4565 # Extract the first word of "cp", so it can be a program name with args.
4566 set dummy cp; ac_word=$2
4567 echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569 if test "${ac_cv_path_CP+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572   case $CP in
4573   [\\/]* | ?:[\\/]*)
4574   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4575   ;;
4576   *)
4577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582   for ac_exec_ext in '' $ac_executable_extensions; do
4583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586     break 2
4587   fi
4588 done
4589 done
4590
4591   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4592   ;;
4593 esac
4594 fi
4595 CP=$ac_cv_path_CP
4596
4597 if test -n "$CP"; then
4598   echo "$as_me:$LINENO: result: $CP" >&5
4599 echo "${ECHO_T}$CP" >&6
4600 else
4601   echo "$as_me:$LINENO: result: no" >&5
4602 echo "${ECHO_T}no" >&6
4603 fi
4604
4605 # Extract the first word of "date", so it can be a program name with args.
4606 set dummy date; ac_word=$2
4607 echo "$as_me:$LINENO: checking for $ac_word" >&5
4608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4609 if test "${ac_cv_path_DATE+set}" = set; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   case $DATE in
4613   [\\/]* | ?:[\\/]*)
4614   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4615   ;;
4616   *)
4617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620   IFS=$as_save_IFS
4621   test -z "$as_dir" && as_dir=.
4622   for ac_exec_ext in '' $ac_executable_extensions; do
4623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626     break 2
4627   fi
4628 done
4629 done
4630
4631   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4632   ;;
4633 esac
4634 fi
4635 DATE=$ac_cv_path_DATE
4636
4637 if test -n "$DATE"; then
4638   echo "$as_me:$LINENO: result: $DATE" >&5
4639 echo "${ECHO_T}$DATE" >&6
4640 else
4641   echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6
4643 fi
4644
4645 # Extract the first word of "find", so it can be a program name with args.
4646 set dummy find; ac_word=$2
4647 echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649 if test "${ac_cv_path_FIND+set}" = set; then
4650   echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652   case $FIND in
4653   [\\/]* | ?:[\\/]*)
4654   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4655   ;;
4656   *)
4657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662   for ac_exec_ext in '' $ac_executable_extensions; do
4663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666     break 2
4667   fi
4668 done
4669 done
4670
4671   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4672   ;;
4673 esac
4674 fi
4675 FIND=$ac_cv_path_FIND
4676
4677 if test -n "$FIND"; then
4678   echo "$as_me:$LINENO: result: $FIND" >&5
4679 echo "${ECHO_T}$FIND" >&6
4680 else
4681   echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6
4683 fi
4684
4685 # Extract the first word of "grep", so it can be a program name with args.
4686 set dummy grep; ac_word=$2
4687 echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4689 if test "${ac_cv_path_GREP+set}" = set; then
4690   echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692   case $GREP in
4693   [\\/]* | ?:[\\/]*)
4694   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4695   ;;
4696   *)
4697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702   for ac_exec_ext in '' $ac_executable_extensions; do
4703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706     break 2
4707   fi
4708 done
4709 done
4710
4711   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4712   ;;
4713 esac
4714 fi
4715 GREP=$ac_cv_path_GREP
4716
4717 if test -n "$GREP"; then
4718   echo "$as_me:$LINENO: result: $GREP" >&5
4719 echo "${ECHO_T}$GREP" >&6
4720 else
4721   echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6
4723 fi
4724
4725 # Extract the first word of "mkdir", so it can be a program name with args.
4726 set dummy mkdir; ac_word=$2
4727 echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4729 if test "${ac_cv_path_MKDIR+set}" = set; then
4730   echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732   case $MKDIR in
4733   [\\/]* | ?:[\\/]*)
4734   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4735   ;;
4736   *)
4737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740   IFS=$as_save_IFS
4741   test -z "$as_dir" && as_dir=.
4742   for ac_exec_ext in '' $ac_executable_extensions; do
4743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746     break 2
4747   fi
4748 done
4749 done
4750
4751   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4752   ;;
4753 esac
4754 fi
4755 MKDIR=$ac_cv_path_MKDIR
4756
4757 if test -n "$MKDIR"; then
4758   echo "$as_me:$LINENO: result: $MKDIR" >&5
4759 echo "${ECHO_T}$MKDIR" >&6
4760 else
4761   echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4763 fi
4764
4765 # Extract the first word of "mv", so it can be a program name with args.
4766 set dummy mv; ac_word=$2
4767 echo "$as_me:$LINENO: checking for $ac_word" >&5
4768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4769 if test "${ac_cv_path_MV+set}" = set; then
4770   echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772   case $MV in
4773   [\\/]* | ?:[\\/]*)
4774   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4775   ;;
4776   *)
4777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780   IFS=$as_save_IFS
4781   test -z "$as_dir" && as_dir=.
4782   for ac_exec_ext in '' $ac_executable_extensions; do
4783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4784     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786     break 2
4787   fi
4788 done
4789 done
4790
4791   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4792   ;;
4793 esac
4794 fi
4795 MV=$ac_cv_path_MV
4796
4797 if test -n "$MV"; then
4798   echo "$as_me:$LINENO: result: $MV" >&5
4799 echo "${ECHO_T}$MV" >&6
4800 else
4801   echo "$as_me:$LINENO: result: no" >&5
4802 echo "${ECHO_T}no" >&6
4803 fi
4804
4805 # Extract the first word of "pax", so it can be a program name with args.
4806 set dummy pax; ac_word=$2
4807 echo "$as_me:$LINENO: checking for $ac_word" >&5
4808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4809 if test "${ac_cv_path_PAX+set}" = set; then
4810   echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812   case $PAX in
4813   [\\/]* | ?:[\\/]*)
4814   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4815   ;;
4816   *)
4817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4819 do
4820   IFS=$as_save_IFS
4821   test -z "$as_dir" && as_dir=.
4822   for ac_exec_ext in '' $ac_executable_extensions; do
4823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826     break 2
4827   fi
4828 done
4829 done
4830
4831   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4832   ;;
4833 esac
4834 fi
4835 PAX=$ac_cv_path_PAX
4836
4837 if test -n "$PAX"; then
4838   echo "$as_me:$LINENO: result: $PAX" >&5
4839 echo "${ECHO_T}$PAX" >&6
4840 else
4841   echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6
4843 fi
4844
4845 if test -n "$ac_tool_prefix"; then
4846   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_prog_RANLIB+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   if test -n "$RANLIB"; then
4854   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859   IFS=$as_save_IFS
4860   test -z "$as_dir" && as_dir=.
4861   for ac_exec_ext in '' $ac_executable_extensions; do
4862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865     break 2
4866   fi
4867 done
4868 done
4869
4870 fi
4871 fi
4872 RANLIB=$ac_cv_prog_RANLIB
4873 if test -n "$RANLIB"; then
4874   echo "$as_me:$LINENO: result: $RANLIB" >&5
4875 echo "${ECHO_T}$RANLIB" >&6
4876 else
4877   echo "$as_me:$LINENO: result: no" >&5
4878 echo "${ECHO_T}no" >&6
4879 fi
4880
4881 fi
4882 if test -z "$ac_cv_prog_RANLIB"; then
4883   ac_ct_RANLIB=$RANLIB
4884   # Extract the first word of "ranlib", so it can be a program name with args.
4885 set dummy ranlib; ac_word=$2
4886 echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4888 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4889   echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891   if test -n "$ac_ct_RANLIB"; then
4892   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897   IFS=$as_save_IFS
4898   test -z "$as_dir" && as_dir=.
4899   for ac_exec_ext in '' $ac_executable_extensions; do
4900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901     ac_cv_prog_ac_ct_RANLIB="ranlib"
4902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903     break 2
4904   fi
4905 done
4906 done
4907
4908   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4909 fi
4910 fi
4911 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4912 if test -n "$ac_ct_RANLIB"; then
4913   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4914 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4915 else
4916   echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6
4918 fi
4919
4920   RANLIB=$ac_ct_RANLIB
4921 else
4922   RANLIB="$ac_cv_prog_RANLIB"
4923 fi
4924
4925 # Extract the first word of "rm", so it can be a program name with args.
4926 set dummy rm; ac_word=$2
4927 echo "$as_me:$LINENO: checking for $ac_word" >&5
4928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4929 if test "${ac_cv_path_RM+set}" = set; then
4930   echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932   case $RM in
4933   [\\/]* | ?:[\\/]*)
4934   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4935   ;;
4936   *)
4937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4939 do
4940   IFS=$as_save_IFS
4941   test -z "$as_dir" && as_dir=.
4942   for ac_exec_ext in '' $ac_executable_extensions; do
4943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946     break 2
4947   fi
4948 done
4949 done
4950
4951   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4952   ;;
4953 esac
4954 fi
4955 RM=$ac_cv_path_RM
4956
4957 if test -n "$RM"; then
4958   echo "$as_me:$LINENO: result: $RM" >&5
4959 echo "${ECHO_T}$RM" >&6
4960 else
4961   echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6
4963 fi
4964
4965 # Extract the first word of "sed", so it can be a program name with args.
4966 set dummy sed; ac_word=$2
4967 echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4969 if test "${ac_cv_path_SED+set}" = set; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972   case $SED in
4973   [\\/]* | ?:[\\/]*)
4974   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4975   ;;
4976   *)
4977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980   IFS=$as_save_IFS
4981   test -z "$as_dir" && as_dir=.
4982   for ac_exec_ext in '' $ac_executable_extensions; do
4983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986     break 2
4987   fi
4988 done
4989 done
4990
4991   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4992   ;;
4993 esac
4994 fi
4995 SED=$ac_cv_path_SED
4996
4997 if test -n "$SED"; then
4998   echo "$as_me:$LINENO: result: $SED" >&5
4999 echo "${ECHO_T}$SED" >&6
5000 else
5001   echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6
5003 fi
5004
5005 # Extract the first word of "tar", so it can be a program name with args.
5006 set dummy tar; ac_word=$2
5007 echo "$as_me:$LINENO: checking for $ac_word" >&5
5008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009 if test "${ac_cv_path_TAR+set}" = set; then
5010   echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012   case $TAR in
5013   [\\/]* | ?:[\\/]*)
5014   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5015   ;;
5016   *)
5017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5019 do
5020   IFS=$as_save_IFS
5021   test -z "$as_dir" && as_dir=.
5022   for ac_exec_ext in '' $ac_executable_extensions; do
5023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026     break 2
5027   fi
5028 done
5029 done
5030
5031   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5032   ;;
5033 esac
5034 fi
5035 TAR=$ac_cv_path_TAR
5036
5037 if test -n "$TAR"; then
5038   echo "$as_me:$LINENO: result: $TAR" >&5
5039 echo "${ECHO_T}$TAR" >&6
5040 else
5041   echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6
5043 fi
5044
5045
5046 # Find a good install program.  We prefer a C program (faster),
5047 # so one script is as good as another.  But avoid the broken or
5048 # incompatible versions:
5049 # SysV /etc/install, /usr/sbin/install
5050 # SunOS /usr/etc/install
5051 # IRIX /sbin/install
5052 # AIX /bin/install
5053 # AmigaOS /C/install, which installs bootblocks on floppy discs
5054 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5055 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5056 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5057 # OS/2's system install, which has a completely different semantic
5058 # ./install, which can be erroneously created by make from ./install.sh.
5059 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5060 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5061 if test -z "$INSTALL"; then
5062 if test "${ac_cv_path_install+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068   IFS=$as_save_IFS
5069   test -z "$as_dir" && as_dir=.
5070   # Account for people who put trailing slashes in PATH elements.
5071 case $as_dir/ in
5072   ./ | .// | /cC/* | \
5073   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5074   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5075   /usr/ucb/* ) ;;
5076   *)
5077     # OSF1 and SCO ODT 3.0 have their own names for install.
5078     # Don't use installbsd from OSF since it installs stuff as root
5079     # by default.
5080     for ac_prog in ginstall scoinst install; do
5081       for ac_exec_ext in '' $ac_executable_extensions; do
5082         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5083           if test $ac_prog = install &&
5084             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5085             # AIX install.  It has an incompatible calling convention.
5086             :
5087           elif test $ac_prog = install &&
5088             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5089             # program-specific install script used by HP pwplus--don't use.
5090             :
5091           else
5092             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5093             break 3
5094           fi
5095         fi
5096       done
5097     done
5098     ;;
5099 esac
5100 done
5101
5102
5103 fi
5104   if test "${ac_cv_path_install+set}" = set; then
5105     INSTALL=$ac_cv_path_install
5106   else
5107     # As a last resort, use the slow shell script.  We don't cache a
5108     # path for INSTALL within a source directory, because that will
5109     # break other packages using the cache if that directory is
5110     # removed, or if the path is relative.
5111     INSTALL=$ac_install_sh
5112   fi
5113 fi
5114 echo "$as_me:$LINENO: result: $INSTALL" >&5
5115 echo "${ECHO_T}$INSTALL" >&6
5116
5117 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5118 # It thinks the first close brace ends the variable substitution.
5119 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5120
5121 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5122
5123 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5124
5125
5126 # Extract the first word of "bzip2", so it can be a program name with args.
5127 set dummy bzip2; ac_word=$2
5128 echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5130 if test "${ac_cv_path_BZIP2+set}" = set; then
5131   echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133   case $BZIP2 in
5134   [\\/]* | ?:[\\/]*)
5135   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5136   ;;
5137   *)
5138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5140 do
5141   IFS=$as_save_IFS
5142   test -z "$as_dir" && as_dir=.
5143   for ac_exec_ext in '' $ac_executable_extensions; do
5144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147     break 2
5148   fi
5149 done
5150 done
5151
5152   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5153   ;;
5154 esac
5155 fi
5156 BZIP2=$ac_cv_path_BZIP2
5157
5158 if test -n "$BZIP2"; then
5159   echo "$as_me:$LINENO: result: $BZIP2" >&5
5160 echo "${ECHO_T}$BZIP2" >&6
5161 else
5162   echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6
5164 fi
5165
5166 # Extract the first word of "dot", so it can be a program name with args.
5167 set dummy dot; ac_word=$2
5168 echo "$as_me:$LINENO: checking for $ac_word" >&5
5169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5170 if test "${ac_cv_path_DOT+set}" = set; then
5171   echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173   case $DOT in
5174   [\\/]* | ?:[\\/]*)
5175   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5176   ;;
5177   *)
5178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181   IFS=$as_save_IFS
5182   test -z "$as_dir" && as_dir=.
5183   for ac_exec_ext in '' $ac_executable_extensions; do
5184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187     break 2
5188   fi
5189 done
5190 done
5191
5192   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5193   ;;
5194 esac
5195 fi
5196 DOT=$ac_cv_path_DOT
5197
5198 if test -n "$DOT"; then
5199   echo "$as_me:$LINENO: result: $DOT" >&5
5200 echo "${ECHO_T}$DOT" >&6
5201 else
5202   echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6
5204 fi
5205
5206 # Extract the first word of "doxygen", so it can be a program name with args.
5207 set dummy doxygen; ac_word=$2
5208 echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5210 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213   case $DOXYGEN in
5214   [\\/]* | ?:[\\/]*)
5215   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5216   ;;
5217   *)
5218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223   for ac_exec_ext in '' $ac_executable_extensions; do
5224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230 done
5231
5232   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5233   ;;
5234 esac
5235 fi
5236 DOXYGEN=$ac_cv_path_DOXYGEN
5237
5238 if test -n "$DOXYGEN"; then
5239   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5240 echo "${ECHO_T}$DOXYGEN" >&6
5241 else
5242   echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6
5244 fi
5245
5246 # Extract the first word of "etags", so it can be a program name with args.
5247 set dummy etags; ac_word=$2
5248 echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5250 if test "${ac_cv_path_ETAGS+set}" = set; then
5251   echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253   case $ETAGS in
5254   [\\/]* | ?:[\\/]*)
5255   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5256   ;;
5257   *)
5258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261   IFS=$as_save_IFS
5262   test -z "$as_dir" && as_dir=.
5263   for ac_exec_ext in '' $ac_executable_extensions; do
5264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267     break 2
5268   fi
5269 done
5270 done
5271
5272   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5273   ;;
5274 esac
5275 fi
5276 ETAGS=$ac_cv_path_ETAGS
5277
5278 if test -n "$ETAGS"; then
5279   echo "$as_me:$LINENO: result: $ETAGS" >&5
5280 echo "${ECHO_T}$ETAGS" >&6
5281 else
5282   echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6
5284 fi
5285
5286 # Extract the first word of "groff", so it can be a program name with args.
5287 set dummy groff; ac_word=$2
5288 echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290 if test "${ac_cv_path_GROFF+set}" = set; then
5291   echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293   case $GROFF in
5294   [\\/]* | ?:[\\/]*)
5295   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5296   ;;
5297   *)
5298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301   IFS=$as_save_IFS
5302   test -z "$as_dir" && as_dir=.
5303   for ac_exec_ext in '' $ac_executable_extensions; do
5304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307     break 2
5308   fi
5309 done
5310 done
5311
5312   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5313   ;;
5314 esac
5315 fi
5316 GROFF=$ac_cv_path_GROFF
5317
5318 if test -n "$GROFF"; then
5319   echo "$as_me:$LINENO: result: $GROFF" >&5
5320 echo "${ECHO_T}$GROFF" >&6
5321 else
5322   echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6
5324 fi
5325
5326 # Extract the first word of "gzip", so it can be a program name with args.
5327 set dummy gzip; ac_word=$2
5328 echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330 if test "${ac_cv_path_GZIP+set}" = set; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   case $GZIP in
5334   [\\/]* | ?:[\\/]*)
5335   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5336   ;;
5337   *)
5338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341   IFS=$as_save_IFS
5342   test -z "$as_dir" && as_dir=.
5343   for ac_exec_ext in '' $ac_executable_extensions; do
5344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347     break 2
5348   fi
5349 done
5350 done
5351
5352   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5353   ;;
5354 esac
5355 fi
5356 GZIP=$ac_cv_path_GZIP
5357
5358 if test -n "$GZIP"; then
5359   echo "$as_me:$LINENO: result: $GZIP" >&5
5360 echo "${ECHO_T}$GZIP" >&6
5361 else
5362   echo "$as_me:$LINENO: result: no" >&5
5363 echo "${ECHO_T}no" >&6
5364 fi
5365
5366 # Extract the first word of "pod2html", so it can be a program name with args.
5367 set dummy pod2html; ac_word=$2
5368 echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370 if test "${ac_cv_path_POD2HTML+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   case $POD2HTML in
5374   [\\/]* | ?:[\\/]*)
5375   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5376   ;;
5377   *)
5378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381   IFS=$as_save_IFS
5382   test -z "$as_dir" && as_dir=.
5383   for ac_exec_ext in '' $ac_executable_extensions; do
5384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387     break 2
5388   fi
5389 done
5390 done
5391
5392   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5393   ;;
5394 esac
5395 fi
5396 POD2HTML=$ac_cv_path_POD2HTML
5397
5398 if test -n "$POD2HTML"; then
5399   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5400 echo "${ECHO_T}$POD2HTML" >&6
5401 else
5402   echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6
5404 fi
5405
5406 # Extract the first word of "pod2man", so it can be a program name with args.
5407 set dummy pod2man; ac_word=$2
5408 echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410 if test "${ac_cv_path_POD2MAN+set}" = set; then
5411   echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413   case $POD2MAN in
5414   [\\/]* | ?:[\\/]*)
5415   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5416   ;;
5417   *)
5418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5420 do
5421   IFS=$as_save_IFS
5422   test -z "$as_dir" && as_dir=.
5423   for ac_exec_ext in '' $ac_executable_extensions; do
5424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427     break 2
5428   fi
5429 done
5430 done
5431
5432   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5433   ;;
5434 esac
5435 fi
5436 POD2MAN=$ac_cv_path_POD2MAN
5437
5438 if test -n "$POD2MAN"; then
5439   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5440 echo "${ECHO_T}$POD2MAN" >&6
5441 else
5442   echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6
5444 fi
5445
5446 # Extract the first word of "runtest", so it can be a program name with args.
5447 set dummy runtest; ac_word=$2
5448 echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450 if test "${ac_cv_path_RUNTEST+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   case $RUNTEST in
5454   [\\/]* | ?:[\\/]*)
5455   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5456   ;;
5457   *)
5458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461   IFS=$as_save_IFS
5462   test -z "$as_dir" && as_dir=.
5463   for ac_exec_ext in '' $ac_executable_extensions; do
5464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467     break 2
5468   fi
5469 done
5470 done
5471
5472   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5473   ;;
5474 esac
5475 fi
5476 RUNTEST=$ac_cv_path_RUNTEST
5477
5478 if test -n "$RUNTEST"; then
5479   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5480 echo "${ECHO_T}$RUNTEST" >&6
5481 else
5482   echo "$as_me:$LINENO: result: no" >&5
5483 echo "${ECHO_T}no" >&6
5484 fi
5485
5486
5487 no_itcl=true
5488 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5489 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5490
5491 # Check whether --with-tclinclude or --without-tclinclude was given.
5492 if test "${with_tclinclude+set}" = set; then
5493   withval="$with_tclinclude"
5494   with_tclinclude=${withval}
5495 else
5496   with_tclinclude=''
5497 fi;
5498 if test "${ac_cv_path_tclsh+set}" = set; then
5499   echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501
5502 if test x"${with_tclinclude}" != x ; then
5503   if test -f ${with_tclinclude}/tclsh ; then
5504     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5505   elif test -f ${with_tclinclude}/src/tclsh ; then
5506     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5507   else
5508     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5509 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5510    { (exit 1); exit 1; }; }
5511   fi
5512 fi
5513
5514 if test x"${ac_cv_path_tclsh}" = x ; then
5515   echo "$as_me:$LINENO: result: none" >&5
5516 echo "${ECHO_T}none" >&6
5517   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 .tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
5518 do
5519   # Extract the first word of "$ac_prog", so it can be a program name with args.
5520 set dummy $ac_prog; ac_word=$2
5521 echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5523 if test "${ac_cv_path_TCLSH+set}" = set; then
5524   echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526   case $TCLSH in
5527   [\\/]* | ?:[\\/]*)
5528   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5529   ;;
5530   *)
5531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534   IFS=$as_save_IFS
5535   test -z "$as_dir" && as_dir=.
5536   for ac_exec_ext in '' $ac_executable_extensions; do
5537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540     break 2
5541   fi
5542 done
5543 done
5544
5545   ;;
5546 esac
5547 fi
5548 TCLSH=$ac_cv_path_TCLSH
5549
5550 if test -n "$TCLSH"; then
5551   echo "$as_me:$LINENO: result: $TCLSH" >&5
5552 echo "${ECHO_T}$TCLSH" >&6
5553 else
5554   echo "$as_me:$LINENO: result: no" >&5
5555 echo "${ECHO_T}no" >&6
5556 fi
5557
5558   test -n "$TCLSH" && break
5559 done
5560
5561   if test x"${TCLSH}" = x ; then
5562     ac_cv_path_tclsh='';
5563   else
5564     ac_cv_path_tclsh="${TCLSH}";
5565   fi
5566 else
5567   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5568 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5569   TCLSH="${ac_cv_path_tclsh}"
5570
5571 fi
5572
5573 fi
5574
5575 # Extract the first word of "zip", so it can be a program name with args.
5576 set dummy zip; ac_word=$2
5577 echo "$as_me:$LINENO: checking for $ac_word" >&5
5578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5579 if test "${ac_cv_path_ZIP+set}" = set; then
5580   echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582   case $ZIP in
5583   [\\/]* | ?:[\\/]*)
5584   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5585   ;;
5586   *)
5587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 for as_dir in $PATH
5589 do
5590   IFS=$as_save_IFS
5591   test -z "$as_dir" && as_dir=.
5592   for ac_exec_ext in '' $ac_executable_extensions; do
5593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5596     break 2
5597   fi
5598 done
5599 done
5600
5601   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5602   ;;
5603 esac
5604 fi
5605 ZIP=$ac_cv_path_ZIP
5606
5607 if test -n "$ZIP"; then
5608   echo "$as_me:$LINENO: result: $ZIP" >&5
5609 echo "${ECHO_T}$ZIP" >&6
5610 else
5611   echo "$as_me:$LINENO: result: no" >&5
5612 echo "${ECHO_T}no" >&6
5613 fi
5614
5615
5616 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5617 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5618 if test "${llvm_cv_link_use_r+set}" = set; then
5619   echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621    ac_ext=c
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626
5627   oldcflags="$CFLAGS"
5628   CFLAGS="$CFLAGS -Wl,-R."
5629   cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h.  */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h.  */
5635
5636 int
5637 main ()
5638 {
5639 int main() { return 0; }
5640   ;
5641   return 0;
5642 }
5643 _ACEOF
5644 rm -f conftest.$ac_objext conftest$ac_exeext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5646   (eval $ac_link) 2>conftest.er1
5647   ac_status=$?
5648   grep -v '^ *+' conftest.er1 >conftest.err
5649   rm -f conftest.er1
5650   cat conftest.err >&5
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } &&
5653          { ac_try='test -z "$ac_c_werror_flag"
5654                          || test ! -s conftest.err'
5655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656   (eval $ac_try) 2>&5
5657   ac_status=$?
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); }; } &&
5660          { ac_try='test -s conftest$ac_exeext'
5661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662   (eval $ac_try) 2>&5
5663   ac_status=$?
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); }; }; then
5666   llvm_cv_link_use_r=yes
5667 else
5668   echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5670
5671 llvm_cv_link_use_r=no
5672 fi
5673 rm -f conftest.err conftest.$ac_objext \
5674       conftest$ac_exeext conftest.$ac_ext
5675   CFLAGS="$oldcflags"
5676   ac_ext=c
5677 ac_cpp='$CPP $CPPFLAGS'
5678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681
5682
5683 fi
5684 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5685 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5686 if test "$llvm_cv_link_use_r" = yes ; then
5687
5688 cat >>confdefs.h <<\_ACEOF
5689 #define HAVE_LINK_R 1
5690 _ACEOF
5691
5692   fi
5693
5694
5695
5696
5697 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5698 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5699 if test "${ac_cv_c_const+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h.  */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h.  */
5708
5709 int
5710 main ()
5711 {
5712 /* FIXME: Include the comments suggested by Paul. */
5713 #ifndef __cplusplus
5714   /* Ultrix mips cc rejects this.  */
5715   typedef int charset[2];
5716   const charset x;
5717   /* SunOS 4.1.1 cc rejects this.  */
5718   char const *const *ccp;
5719   char **p;
5720   /* NEC SVR4.0.2 mips cc rejects this.  */
5721   struct point {int x, y;};
5722   static struct point const zero = {0,0};
5723   /* AIX XL C 1.02.0.0 rejects this.
5724      It does not let you subtract one const X* pointer from another in
5725      an arm of an if-expression whose if-part is not a constant
5726      expression */
5727   const char *g = "string";
5728   ccp = &g + (g ? g-g : 0);
5729   /* HPUX 7.0 cc rejects these. */
5730   ++ccp;
5731   p = (char**) ccp;
5732   ccp = (char const *const *) p;
5733   { /* SCO 3.2v4 cc rejects this.  */
5734     char *t;
5735     char const *s = 0 ? (char *) 0 : (char const *) 0;
5736
5737     *t++ = 0;
5738   }
5739   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5740     int x[] = {25, 17};
5741     const int *foo = &x[0];
5742     ++foo;
5743   }
5744   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5745     typedef const int *iptr;
5746     iptr p = 0;
5747     ++p;
5748   }
5749   { /* AIX XL C 1.02.0.0 rejects this saying
5750        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5751     struct s { int j; const int *ap[3]; };
5752     struct s *b; b->j = 5;
5753   }
5754   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5755     const int foo = 10;
5756   }
5757 #endif
5758
5759   ;
5760   return 0;
5761 }
5762 _ACEOF
5763 rm -f conftest.$ac_objext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5765   (eval $ac_compile) 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } &&
5772          { ac_try='test -z "$ac_c_werror_flag"
5773                          || test ! -s conftest.err'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; } &&
5779          { ac_try='test -s conftest.$ac_objext'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; }; then
5785   ac_cv_c_const=yes
5786 else
5787   echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5789
5790 ac_cv_c_const=no
5791 fi
5792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5793 fi
5794 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5795 echo "${ECHO_T}$ac_cv_c_const" >&6
5796 if test $ac_cv_c_const = no; then
5797
5798 cat >>confdefs.h <<\_ACEOF
5799 #define const
5800 _ACEOF
5801
5802 fi
5803
5804
5805 echo "$as_me:$LINENO: checking for egrep" >&5
5806 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5807 if test "${ac_cv_prog_egrep+set}" = set; then
5808   echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5811     then ac_cv_prog_egrep='grep -E'
5812     else ac_cv_prog_egrep='egrep'
5813     fi
5814 fi
5815 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5816 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5817  EGREP=$ac_cv_prog_egrep
5818
5819
5820 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5821 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5822 if test "${ac_cv_header_stdc+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h.  */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h.  */
5831 #include <stdlib.h>
5832 #include <stdarg.h>
5833 #include <string.h>
5834 #include <float.h>
5835
5836 int
5837 main ()
5838 {
5839
5840   ;
5841   return 0;
5842 }
5843 _ACEOF
5844 rm -f conftest.$ac_objext
5845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5846   (eval $ac_compile) 2>conftest.er1
5847   ac_status=$?
5848   grep -v '^ *+' conftest.er1 >conftest.err
5849   rm -f conftest.er1
5850   cat conftest.err >&5
5851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852   (exit $ac_status); } &&
5853          { ac_try='test -z "$ac_c_werror_flag"
5854                          || test ! -s conftest.err'
5855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856   (eval $ac_try) 2>&5
5857   ac_status=$?
5858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859   (exit $ac_status); }; } &&
5860          { ac_try='test -s conftest.$ac_objext'
5861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862   (eval $ac_try) 2>&5
5863   ac_status=$?
5864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865   (exit $ac_status); }; }; then
5866   ac_cv_header_stdc=yes
5867 else
5868   echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5870
5871 ac_cv_header_stdc=no
5872 fi
5873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5874
5875 if test $ac_cv_header_stdc = yes; then
5876   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5877   cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h.  */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h.  */
5883 #include <string.h>
5884
5885 _ACEOF
5886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5887   $EGREP "memchr" >/dev/null 2>&1; then
5888   :
5889 else
5890   ac_cv_header_stdc=no
5891 fi
5892 rm -f conftest*
5893
5894 fi
5895
5896 if test $ac_cv_header_stdc = yes; then
5897   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5898   cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h.  */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h.  */
5904 #include <stdlib.h>
5905
5906 _ACEOF
5907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5908   $EGREP "free" >/dev/null 2>&1; then
5909   :
5910 else
5911   ac_cv_header_stdc=no
5912 fi
5913 rm -f conftest*
5914
5915 fi
5916
5917 if test $ac_cv_header_stdc = yes; then
5918   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5919   if test "$cross_compiling" = yes; then
5920   :
5921 else
5922   cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h.  */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h.  */
5928 #include <ctype.h>
5929 #if ((' ' & 0x0FF) == 0x020)
5930 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5931 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5932 #else
5933 # define ISLOWER(c) \
5934                    (('a' <= (c) && (c) <= 'i') \
5935                      || ('j' <= (c) && (c) <= 'r') \
5936                      || ('s' <= (c) && (c) <= 'z'))
5937 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5938 #endif
5939
5940 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5941 int
5942 main ()
5943 {
5944   int i;
5945   for (i = 0; i < 256; i++)
5946     if (XOR (islower (i), ISLOWER (i))
5947         || toupper (i) != TOUPPER (i))
5948       exit(2);
5949   exit (0);
5950 }
5951 _ACEOF
5952 rm -f conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954   (eval $ac_link) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959   (eval $ac_try) 2>&5
5960   ac_status=$?
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); }; }; then
5963   :
5964 else
5965   echo "$as_me: program exited with status $ac_status" >&5
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969 ( exit $ac_status )
5970 ac_cv_header_stdc=no
5971 fi
5972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5973 fi
5974 fi
5975 fi
5976 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5977 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5978 if test $ac_cv_header_stdc = yes; then
5979
5980 cat >>confdefs.h <<\_ACEOF
5981 #define STDC_HEADERS 1
5982 _ACEOF
5983
5984 fi
5985
5986
5987
5988
5989
5990
5991 ac_header_dirent=no
5992 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5993   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5994 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5995 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h.  */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h.  */
6005 #include <sys/types.h>
6006 #include <$ac_hdr>
6007
6008 int
6009 main ()
6010 {
6011 if ((DIR *) 0)
6012 return 0;
6013   ;
6014   return 0;
6015 }
6016 _ACEOF
6017 rm -f conftest.$ac_objext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019   (eval $ac_compile) 2>conftest.er1
6020   ac_status=$?
6021   grep -v '^ *+' conftest.er1 >conftest.err
6022   rm -f conftest.er1
6023   cat conftest.err >&5
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); } &&
6026          { ac_try='test -z "$ac_c_werror_flag"
6027                          || test ! -s conftest.err'
6028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029   (eval $ac_try) 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; } &&
6033          { ac_try='test -s conftest.$ac_objext'
6034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035   (eval $ac_try) 2>&5
6036   ac_status=$?
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); }; }; then
6039   eval "$as_ac_Header=yes"
6040 else
6041   echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6043
6044 eval "$as_ac_Header=no"
6045 fi
6046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6047 fi
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6051   cat >>confdefs.h <<_ACEOF
6052 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6053 _ACEOF
6054
6055 ac_header_dirent=$ac_hdr; break
6056 fi
6057
6058 done
6059 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6060 if test $ac_header_dirent = dirent.h; then
6061   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6062 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6063 if test "${ac_cv_search_opendir+set}" = set; then
6064   echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066   ac_func_search_save_LIBS=$LIBS
6067 ac_cv_search_opendir=no
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h.  */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h.  */
6074
6075 /* Override any gcc2 internal prototype to avoid an error.  */
6076 #ifdef __cplusplus
6077 extern "C"
6078 #endif
6079 /* We use char because int might match the return type of a gcc2
6080    builtin and then its argument prototype would still apply.  */
6081 char opendir ();
6082 int
6083 main ()
6084 {
6085 opendir ();
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092   (eval $ac_link) 2>conftest.er1
6093   ac_status=$?
6094   grep -v '^ *+' conftest.er1 >conftest.err
6095   rm -f conftest.er1
6096   cat conftest.err >&5
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); } &&
6099          { ac_try='test -z "$ac_c_werror_flag"
6100                          || test ! -s conftest.err'
6101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102   (eval $ac_try) 2>&5
6103   ac_status=$?
6104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105   (exit $ac_status); }; } &&
6106          { ac_try='test -s conftest$ac_exeext'
6107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108   (eval $ac_try) 2>&5
6109   ac_status=$?
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); }; }; then
6112   ac_cv_search_opendir="none required"
6113 else
6114   echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 fi
6118 rm -f conftest.err conftest.$ac_objext \
6119       conftest$ac_exeext conftest.$ac_ext
6120 if test "$ac_cv_search_opendir" = no; then
6121   for ac_lib in dir; do
6122     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6123     cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h.  */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h.  */
6129
6130 /* Override any gcc2 internal prototype to avoid an error.  */
6131 #ifdef __cplusplus
6132 extern "C"
6133 #endif
6134 /* We use char because int might match the return type of a gcc2
6135    builtin and then its argument prototype would still apply.  */
6136 char opendir ();
6137 int
6138 main ()
6139 {
6140 opendir ();
6141   ;
6142   return 0;
6143 }
6144 _ACEOF
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147   (eval $ac_link) 2>conftest.er1
6148   ac_status=$?
6149   grep -v '^ *+' conftest.er1 >conftest.err
6150   rm -f conftest.er1
6151   cat conftest.err >&5
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); } &&
6154          { ac_try='test -z "$ac_c_werror_flag"
6155                          || test ! -s conftest.err'
6156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157   (eval $ac_try) 2>&5
6158   ac_status=$?
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); }; } &&
6161          { ac_try='test -s conftest$ac_exeext'
6162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163   (eval $ac_try) 2>&5
6164   ac_status=$?
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); }; }; then
6167   ac_cv_search_opendir="-l$ac_lib"
6168 break
6169 else
6170   echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6172
6173 fi
6174 rm -f conftest.err conftest.$ac_objext \
6175       conftest$ac_exeext conftest.$ac_ext
6176   done
6177 fi
6178 LIBS=$ac_func_search_save_LIBS
6179 fi
6180 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6181 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6182 if test "$ac_cv_search_opendir" != no; then
6183   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6184
6185 fi
6186
6187 else
6188   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6189 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6190 if test "${ac_cv_search_opendir+set}" = set; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193   ac_func_search_save_LIBS=$LIBS
6194 ac_cv_search_opendir=no
6195 cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h.  */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h.  */
6201
6202 /* Override any gcc2 internal prototype to avoid an error.  */
6203 #ifdef __cplusplus
6204 extern "C"
6205 #endif
6206 /* We use char because int might match the return type of a gcc2
6207    builtin and then its argument prototype would still apply.  */
6208 char opendir ();
6209 int
6210 main ()
6211 {
6212 opendir ();
6213   ;
6214   return 0;
6215 }
6216 _ACEOF
6217 rm -f conftest.$ac_objext conftest$ac_exeext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6219   (eval $ac_link) 2>conftest.er1
6220   ac_status=$?
6221   grep -v '^ *+' conftest.er1 >conftest.err
6222   rm -f conftest.er1
6223   cat conftest.err >&5
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); } &&
6226          { ac_try='test -z "$ac_c_werror_flag"
6227                          || test ! -s conftest.err'
6228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229   (eval $ac_try) 2>&5
6230   ac_status=$?
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); }; } &&
6233          { ac_try='test -s conftest$ac_exeext'
6234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235   (eval $ac_try) 2>&5
6236   ac_status=$?
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); }; }; then
6239   ac_cv_search_opendir="none required"
6240 else
6241   echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6243
6244 fi
6245 rm -f conftest.err conftest.$ac_objext \
6246       conftest$ac_exeext conftest.$ac_ext
6247 if test "$ac_cv_search_opendir" = no; then
6248   for ac_lib in x; do
6249     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6250     cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h.  */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h.  */
6256
6257 /* Override any gcc2 internal prototype to avoid an error.  */
6258 #ifdef __cplusplus
6259 extern "C"
6260 #endif
6261 /* We use char because int might match the return type of a gcc2
6262    builtin and then its argument prototype would still apply.  */
6263 char opendir ();
6264 int
6265 main ()
6266 {
6267 opendir ();
6268   ;
6269   return 0;
6270 }
6271 _ACEOF
6272 rm -f conftest.$ac_objext conftest$ac_exeext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274   (eval $ac_link) 2>conftest.er1
6275   ac_status=$?
6276   grep -v '^ *+' conftest.er1 >conftest.err
6277   rm -f conftest.er1
6278   cat conftest.err >&5
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); } &&
6281          { ac_try='test -z "$ac_c_werror_flag"
6282                          || test ! -s conftest.err'
6283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284   (eval $ac_try) 2>&5
6285   ac_status=$?
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); }; } &&
6288          { ac_try='test -s conftest$ac_exeext'
6289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290   (eval $ac_try) 2>&5
6291   ac_status=$?
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); }; }; then
6294   ac_cv_search_opendir="-l$ac_lib"
6295 break
6296 else
6297   echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 fi
6301 rm -f conftest.err conftest.$ac_objext \
6302       conftest$ac_exeext conftest.$ac_ext
6303   done
6304 fi
6305 LIBS=$ac_func_search_save_LIBS
6306 fi
6307 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6308 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6309 if test "$ac_cv_search_opendir" != no; then
6310   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6311
6312 fi
6313
6314 fi
6315
6316 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6327                   inttypes.h stdint.h unistd.h
6328 do
6329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330 echo "$as_me:$LINENO: checking for $ac_header" >&5
6331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341 $ac_includes_default
6342
6343 #include <$ac_header>
6344 _ACEOF
6345 rm -f conftest.$ac_objext
6346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347   (eval $ac_compile) 2>conftest.er1
6348   ac_status=$?
6349   grep -v '^ *+' conftest.er1 >conftest.err
6350   rm -f conftest.er1
6351   cat conftest.err >&5
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); } &&
6354          { ac_try='test -z "$ac_c_werror_flag"
6355                          || test ! -s conftest.err'
6356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357   (eval $ac_try) 2>&5
6358   ac_status=$?
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); }; } &&
6361          { ac_try='test -s conftest.$ac_objext'
6362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363   (eval $ac_try) 2>&5
6364   ac_status=$?
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); }; }; then
6367   eval "$as_ac_Header=yes"
6368 else
6369   echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6371
6372 eval "$as_ac_Header=no"
6373 fi
6374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6375 fi
6376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6379   cat >>confdefs.h <<_ACEOF
6380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6381 _ACEOF
6382
6383 fi
6384
6385 done
6386
6387
6388
6389 for ac_header in dlfcn.h
6390 do
6391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6393   echo "$as_me:$LINENO: checking for $ac_header" >&5
6394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 fi
6398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6400 else
6401   # Is the header compilable?
6402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6404 cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h.  */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h.  */
6410 $ac_includes_default
6411 #include <$ac_header>
6412 _ACEOF
6413 rm -f conftest.$ac_objext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6415   (eval $ac_compile) 2>conftest.er1
6416   ac_status=$?
6417   grep -v '^ *+' conftest.er1 >conftest.err
6418   rm -f conftest.er1
6419   cat conftest.err >&5
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); } &&
6422          { ac_try='test -z "$ac_c_werror_flag"
6423                          || test ! -s conftest.err'
6424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425   (eval $ac_try) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); }; } &&
6429          { ac_try='test -s conftest.$ac_objext'
6430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431   (eval $ac_try) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); }; }; then
6435   ac_header_compiler=yes
6436 else
6437   echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6439
6440 ac_header_compiler=no
6441 fi
6442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6444 echo "${ECHO_T}$ac_header_compiler" >&6
6445
6446 # Is the header present?
6447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h.  */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h.  */
6455 #include <$ac_header>
6456 _ACEOF
6457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6458   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6459   ac_status=$?
6460   grep -v '^ *+' conftest.er1 >conftest.err
6461   rm -f conftest.er1
6462   cat conftest.err >&5
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); } >/dev/null; then
6465   if test -s conftest.err; then
6466     ac_cpp_err=$ac_c_preproc_warn_flag
6467     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6468   else
6469     ac_cpp_err=
6470   fi
6471 else
6472   ac_cpp_err=yes
6473 fi
6474 if test -z "$ac_cpp_err"; then
6475   ac_header_preproc=yes
6476 else
6477   echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6479
6480   ac_header_preproc=no
6481 fi
6482 rm -f conftest.err conftest.$ac_ext
6483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6484 echo "${ECHO_T}$ac_header_preproc" >&6
6485
6486 # So?  What about this header?
6487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6488   yes:no: )
6489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6493     ac_header_preproc=yes
6494     ;;
6495   no:yes:* )
6496     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6498     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6499 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6500     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6502     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6503 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6506     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6508     (
6509       cat <<\_ASBOX
6510 ## ----------------------------------- ##
6511 ## Report this to llvmbugs@cs.uiuc.edu ##
6512 ## ----------------------------------- ##
6513 _ASBOX
6514     ) |
6515       sed "s/^/$as_me: WARNING:     /" >&2
6516     ;;
6517 esac
6518 echo "$as_me:$LINENO: checking for $ac_header" >&5
6519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6521   echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523   eval "$as_ac_Header=\$ac_header_preproc"
6524 fi
6525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6527
6528 fi
6529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6530   cat >>confdefs.h <<_ACEOF
6531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6532 _ACEOF
6533
6534 fi
6535
6536 done
6537
6538 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6539 if test "${enable_ltdl_install+set}" = set; then
6540   enableval="$enable_ltdl_install"
6541
6542 fi;
6543
6544
6545
6546 if test x"${enable_ltdl_install-no}" != xno; then
6547   INSTALL_LTDL_TRUE=
6548   INSTALL_LTDL_FALSE='#'
6549 else
6550   INSTALL_LTDL_TRUE='#'
6551   INSTALL_LTDL_FALSE=
6552 fi
6553
6554
6555
6556 if test x"${enable_ltdl_convenience-no}" != xno; then
6557   CONVENIENCE_LTDL_TRUE=
6558   CONVENIENCE_LTDL_FALSE='#'
6559 else
6560   CONVENIENCE_LTDL_TRUE='#'
6561   CONVENIENCE_LTDL_FALSE=
6562 fi
6563
6564
6565 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6566 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6567 library_names_spec=
6568 libname_spec='lib$name'
6569 soname_spec=
6570 shrext_cmds=".so"
6571 postinstall_cmds=
6572 postuninstall_cmds=
6573 finish_cmds=
6574 finish_eval=
6575 shlibpath_var=
6576 shlibpath_overrides_runpath=unknown
6577 version_type=none
6578 dynamic_linker="$host_os ld.so"
6579 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6580 if test "$GCC" = yes; then
6581   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6582   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6583     # if the path contains ";" then we assume it to be the separator
6584     # otherwise default to the standard path separator (i.e. ":") - it is
6585     # assumed that no part of a normal pathname contains ";" but that should
6586     # okay in the real world where ";" in dirpaths is itself problematic.
6587     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6588   else
6589     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6590   fi
6591 else
6592   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6593 fi
6594 need_lib_prefix=unknown
6595 hardcode_into_libs=no
6596
6597 # when you set need_version to no, make sure it does not cause -set_version
6598 # flags to be left without arguments
6599 need_version=unknown
6600
6601 case $host_os in
6602 aix3*)
6603   version_type=linux
6604   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6605   shlibpath_var=LIBPATH
6606
6607   # AIX 3 has no versioning support, so we append a major version to the name.
6608   soname_spec='${libname}${release}${shared_ext}$major'
6609   ;;
6610
6611 aix4* | aix5*)
6612   version_type=linux
6613   need_lib_prefix=no
6614   need_version=no
6615   hardcode_into_libs=yes
6616   if test "$host_cpu" = ia64; then
6617     # AIX 5 supports IA64
6618     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6619     shlibpath_var=LD_LIBRARY_PATH
6620   else
6621     # With GCC up to 2.95.x, collect2 would create an import file
6622     # for dependence libraries.  The import file would start with
6623     # the line `#! .'.  This would cause the generated library to
6624     # depend on `.', always an invalid library.  This was fixed in
6625     # development snapshots of GCC prior to 3.0.
6626     case $host_os in
6627       aix4 | aix4.[01] | aix4.[01].*)
6628       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6629            echo ' yes '
6630            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6631         :
6632       else
6633         can_build_shared=no
6634       fi
6635       ;;
6636     esac
6637     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6638     # soname into executable. Probably we can add versioning support to
6639     # collect2, so additional links can be useful in future.
6640     if test "$aix_use_runtimelinking" = yes; then
6641       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6642       # instead of lib<name>.a to let people know that these are not
6643       # typical AIX shared libraries.
6644       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6645     else
6646       # We preserve .a as extension for shared libraries through AIX4.2
6647       # and later when we are not doing run time linking.
6648       library_names_spec='${libname}${release}.a $libname.a'
6649       soname_spec='${libname}${release}${shared_ext}$major'
6650     fi
6651     shlibpath_var=LIBPATH
6652   fi
6653   ;;
6654
6655 amigaos*)
6656   library_names_spec='$libname.ixlibrary $libname.a'
6657   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6658   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'
6659   ;;
6660
6661 beos*)
6662   library_names_spec='${libname}${shared_ext}'
6663   dynamic_linker="$host_os ld.so"
6664   shlibpath_var=LIBRARY_PATH
6665   ;;
6666
6667 bsdi[45]*)
6668   version_type=linux
6669   need_version=no
6670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6671   soname_spec='${libname}${release}${shared_ext}$major'
6672   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6673   shlibpath_var=LD_LIBRARY_PATH
6674   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6675   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6676   # the default ld.so.conf also contains /usr/contrib/lib and
6677   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6678   # libtool to hard-code these into programs
6679   ;;
6680
6681 cygwin* | mingw* | pw32*)
6682   version_type=windows
6683   shrext_cmds=".dll"
6684   need_version=no
6685   need_lib_prefix=no
6686
6687   case $GCC,$host_os in
6688   yes,cygwin* | yes,mingw* | yes,pw32*)
6689     library_names_spec='$libname.dll.a'
6690     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6691     postinstall_cmds='base_file=`basename \${file}`~
6692       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6693       dldir=$destdir/`dirname \$dlpath`~
6694       test -d \$dldir || mkdir -p \$dldir~
6695       $install_prog $dir/$dlname \$dldir/$dlname'
6696     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6697       dlpath=$dir/\$dldll~
6698        $rm \$dlpath'
6699     shlibpath_overrides_runpath=yes
6700
6701     case $host_os in
6702     cygwin*)
6703       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6704       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6705       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6706       ;;
6707     mingw*)
6708       # MinGW DLLs use traditional 'lib' prefix
6709       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6710       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6711       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6712         # It is most probably a Windows format PATH printed by
6713         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6714         # path with ; separators, and with drive letters. We can handle the
6715         # drive letters (cygwin fileutils understands them), so leave them,
6716         # especially as we might pass files found there to a mingw objdump,
6717         # which wouldn't understand a cygwinified path. Ahh.
6718         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6719       else
6720         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6721       fi
6722       ;;
6723     pw32*)
6724       # pw32 DLLs use 'pw' prefix rather than 'lib'
6725       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6726       ;;
6727     esac
6728     ;;
6729
6730   *)
6731     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6732     ;;
6733   esac
6734   dynamic_linker='Win32 ld.exe'
6735   # FIXME: first we should search . and the directory the executable is in
6736   shlibpath_var=PATH
6737   ;;
6738
6739 darwin* | rhapsody*)
6740   dynamic_linker="$host_os dyld"
6741   version_type=darwin
6742   need_lib_prefix=no
6743   need_version=no
6744   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6745   soname_spec='${libname}${release}${major}$shared_ext'
6746   shlibpath_overrides_runpath=yes
6747   shlibpath_var=DYLD_LIBRARY_PATH
6748   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6749   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6750   if test "$GCC" = yes; then
6751     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"`
6752   else
6753     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6754   fi
6755   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6756   ;;
6757
6758 dgux*)
6759   version_type=linux
6760   need_lib_prefix=no
6761   need_version=no
6762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6763   soname_spec='${libname}${release}${shared_ext}$major'
6764   shlibpath_var=LD_LIBRARY_PATH
6765   ;;
6766
6767 freebsd1*)
6768   dynamic_linker=no
6769   ;;
6770
6771 kfreebsd*-gnu)
6772   version_type=linux
6773   need_lib_prefix=no
6774   need_version=no
6775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6776   soname_spec='${libname}${release}${shared_ext}$major'
6777   shlibpath_var=LD_LIBRARY_PATH
6778   shlibpath_overrides_runpath=no
6779   hardcode_into_libs=yes
6780   dynamic_linker='GNU ld.so'
6781   ;;
6782
6783 freebsd*)
6784   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6785   version_type=freebsd-$objformat
6786   case $version_type in
6787     freebsd-elf*)
6788       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6789       need_version=no
6790       need_lib_prefix=no
6791       ;;
6792     freebsd-*)
6793       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6794       need_version=yes
6795       ;;
6796   esac
6797   shlibpath_var=LD_LIBRARY_PATH
6798   case $host_os in
6799   freebsd2*)
6800     shlibpath_overrides_runpath=yes
6801     ;;
6802   freebsd3.01* | freebsdelf3.01*)
6803     shlibpath_overrides_runpath=yes
6804     hardcode_into_libs=yes
6805     ;;
6806   *) # from 3.2 on
6807     shlibpath_overrides_runpath=no
6808     hardcode_into_libs=yes
6809     ;;
6810   esac
6811   ;;
6812
6813 gnu*)
6814   version_type=linux
6815   need_lib_prefix=no
6816   need_version=no
6817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6818   soname_spec='${libname}${release}${shared_ext}$major'
6819   shlibpath_var=LD_LIBRARY_PATH
6820   hardcode_into_libs=yes
6821   ;;
6822
6823 hpux9* | hpux10* | hpux11*)
6824   # Give a soname corresponding to the major version so that dld.sl refuses to
6825   # link against other versions.
6826   version_type=sunos
6827   need_lib_prefix=no
6828   need_version=no
6829   case "$host_cpu" in
6830   ia64*)
6831     shrext_cmds='.so'
6832     hardcode_into_libs=yes
6833     dynamic_linker="$host_os dld.so"
6834     shlibpath_var=LD_LIBRARY_PATH
6835     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6836     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6837     soname_spec='${libname}${release}${shared_ext}$major'
6838     if test "X$HPUX_IA64_MODE" = X32; then
6839       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6840     else
6841       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6842     fi
6843     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6844     ;;
6845    hppa*64*)
6846      shrext_cmds='.sl'
6847      hardcode_into_libs=yes
6848      dynamic_linker="$host_os dld.sl"
6849      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6850      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6851      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6852      soname_spec='${libname}${release}${shared_ext}$major'
6853      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6854      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6855      ;;
6856    *)
6857     shrext_cmds='.sl'
6858     dynamic_linker="$host_os dld.sl"
6859     shlibpath_var=SHLIB_PATH
6860     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6862     soname_spec='${libname}${release}${shared_ext}$major'
6863     ;;
6864   esac
6865   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6866   postinstall_cmds='chmod 555 $lib'
6867   ;;
6868
6869 irix5* | irix6* | nonstopux*)
6870   case $host_os in
6871     nonstopux*) version_type=nonstopux ;;
6872     *)
6873         if test "$lt_cv_prog_gnu_ld" = yes; then
6874                 version_type=linux
6875         else
6876                 version_type=irix
6877         fi ;;
6878   esac
6879   need_lib_prefix=no
6880   need_version=no
6881   soname_spec='${libname}${release}${shared_ext}$major'
6882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6883   case $host_os in
6884   irix5* | nonstopux*)
6885     libsuff= shlibsuff=
6886     ;;
6887   *)
6888     case $LD in # libtool.m4 will add one of these switches to LD
6889     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6890       libsuff= shlibsuff= libmagic=32-bit;;
6891     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6892       libsuff=32 shlibsuff=N32 libmagic=N32;;
6893     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6894       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6895     *) libsuff= shlibsuff= libmagic=never-match;;
6896     esac
6897     ;;
6898   esac
6899   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6900   shlibpath_overrides_runpath=no
6901   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6902   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6903   hardcode_into_libs=yes
6904   ;;
6905
6906 # No shared lib support for Linux oldld, aout, or coff.
6907 linux*oldld* | linux*aout* | linux*coff*)
6908   dynamic_linker=no
6909   ;;
6910
6911 # This must be Linux ELF.
6912 linux*)
6913   version_type=linux
6914   need_lib_prefix=no
6915   need_version=no
6916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6917   soname_spec='${libname}${release}${shared_ext}$major'
6918   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6919   shlibpath_var=LD_LIBRARY_PATH
6920   shlibpath_overrides_runpath=no
6921   # This implies no fast_install, which is unacceptable.
6922   # Some rework will be needed to allow for fast_install
6923   # before this can be enabled.
6924   hardcode_into_libs=yes
6925
6926   # Append ld.so.conf contents to the search path
6927   if test -f /etc/ld.so.conf; then
6928     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6929     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6930   fi
6931
6932   # We used to test for /lib/ld.so.1 and disable shared libraries on
6933   # powerpc, because MkLinux only supported shared libraries with the
6934   # GNU dynamic linker.  Since this was broken with cross compilers,
6935   # most powerpc-linux boxes support dynamic linking these days and
6936   # people can always --disable-shared, the test was removed, and we
6937   # assume the GNU/Linux dynamic linker is in use.
6938   dynamic_linker='GNU/Linux ld.so'
6939   ;;
6940
6941 knetbsd*-gnu)
6942   version_type=linux
6943   need_lib_prefix=no
6944   need_version=no
6945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6946   soname_spec='${libname}${release}${shared_ext}$major'
6947   shlibpath_var=LD_LIBRARY_PATH
6948   shlibpath_overrides_runpath=no
6949   hardcode_into_libs=yes
6950   dynamic_linker='GNU ld.so'
6951   ;;
6952
6953 netbsd*)
6954   version_type=sunos
6955   need_lib_prefix=no
6956   need_version=no
6957   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6958     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6959     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6960     dynamic_linker='NetBSD (a.out) ld.so'
6961   else
6962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6963     soname_spec='${libname}${release}${shared_ext}$major'
6964     dynamic_linker='NetBSD ld.elf_so'
6965   fi
6966   shlibpath_var=LD_LIBRARY_PATH
6967   shlibpath_overrides_runpath=yes
6968   hardcode_into_libs=yes
6969   ;;
6970
6971 newsos6)
6972   version_type=linux
6973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6974   shlibpath_var=LD_LIBRARY_PATH
6975   shlibpath_overrides_runpath=yes
6976   ;;
6977
6978 nto-qnx*)
6979   version_type=linux
6980   need_lib_prefix=no
6981   need_version=no
6982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6983   soname_spec='${libname}${release}${shared_ext}$major'
6984   shlibpath_var=LD_LIBRARY_PATH
6985   shlibpath_overrides_runpath=yes
6986   ;;
6987
6988 openbsd*)
6989   version_type=sunos
6990   need_lib_prefix=no
6991   need_version=no
6992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6993   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6994   shlibpath_var=LD_LIBRARY_PATH
6995   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6996     case $host_os in
6997       openbsd2.[89] | openbsd2.[89].*)
6998         shlibpath_overrides_runpath=no
6999         ;;
7000       *)
7001         shlibpath_overrides_runpath=yes
7002         ;;
7003       esac
7004   else
7005     shlibpath_overrides_runpath=yes
7006   fi
7007   ;;
7008
7009 os2*)
7010   libname_spec='$name'
7011   shrext_cmds=".dll"
7012   need_lib_prefix=no
7013   library_names_spec='$libname${shared_ext} $libname.a'
7014   dynamic_linker='OS/2 ld.exe'
7015   shlibpath_var=LIBPATH
7016   ;;
7017
7018 osf3* | osf4* | osf5*)
7019   version_type=osf
7020   need_lib_prefix=no
7021   need_version=no
7022   soname_spec='${libname}${release}${shared_ext}$major'
7023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7024   shlibpath_var=LD_LIBRARY_PATH
7025   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7026   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7027   ;;
7028
7029 sco3.2v5*)
7030   version_type=osf
7031   soname_spec='${libname}${release}${shared_ext}$major'
7032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033   shlibpath_var=LD_LIBRARY_PATH
7034   ;;
7035
7036 solaris*)
7037   version_type=linux
7038   need_lib_prefix=no
7039   need_version=no
7040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7041   soname_spec='${libname}${release}${shared_ext}$major'
7042   shlibpath_var=LD_LIBRARY_PATH
7043   shlibpath_overrides_runpath=yes
7044   hardcode_into_libs=yes
7045   # ldd complains unless libraries are executable
7046   postinstall_cmds='chmod +x $lib'
7047   ;;
7048
7049 sunos4*)
7050   version_type=sunos
7051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7052   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7053   shlibpath_var=LD_LIBRARY_PATH
7054   shlibpath_overrides_runpath=yes
7055   if test "$with_gnu_ld" = yes; then
7056     need_lib_prefix=no
7057   fi
7058   need_version=yes
7059   ;;
7060
7061 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7062   version_type=linux
7063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7064   soname_spec='${libname}${release}${shared_ext}$major'
7065   shlibpath_var=LD_LIBRARY_PATH
7066   case $host_vendor in
7067     sni)
7068       shlibpath_overrides_runpath=no
7069       need_lib_prefix=no
7070       export_dynamic_flag_spec='${wl}-Blargedynsym'
7071       runpath_var=LD_RUN_PATH
7072       ;;
7073     siemens)
7074       need_lib_prefix=no
7075       ;;
7076     motorola)
7077       need_lib_prefix=no
7078       need_version=no
7079       shlibpath_overrides_runpath=no
7080       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7081       ;;
7082   esac
7083   ;;
7084
7085 sysv4*MP*)
7086   if test -d /usr/nec ;then
7087     version_type=linux
7088     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7089     soname_spec='$libname${shared_ext}.$major'
7090     shlibpath_var=LD_LIBRARY_PATH
7091   fi
7092   ;;
7093
7094 uts4*)
7095   version_type=linux
7096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7097   soname_spec='${libname}${release}${shared_ext}$major'
7098   shlibpath_var=LD_LIBRARY_PATH
7099   ;;
7100
7101 *)
7102   dynamic_linker=no
7103   ;;
7104 esac
7105 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7106 echo "${ECHO_T}$dynamic_linker" >&6
7107 test "$dynamic_linker" = no && can_build_shared=no
7108
7109
7110 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7111 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7112 if test "${libltdl_cv_shlibext+set}" = set; then
7113   echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115
7116 module=yes
7117 eval libltdl_cv_shlibext=$shrext_cmds
7118
7119 fi
7120 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7121 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7122 if test -n "$libltdl_cv_shlibext"; then
7123
7124 cat >>confdefs.h <<_ACEOF
7125 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7126 _ACEOF
7127
7128 fi
7129
7130
7131 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7132 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7133 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136   libltdl_cv_shlibpath_var="$shlibpath_var"
7137 fi
7138 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7139 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7140 if test -n "$libltdl_cv_shlibpath_var"; then
7141
7142 cat >>confdefs.h <<_ACEOF
7143 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7144 _ACEOF
7145
7146 fi
7147
7148
7149 echo "$as_me:$LINENO: checking for the default library search path" >&5
7150 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7151 if test "${libltdl_cv_sys_search_path+set}" = set; then
7152   echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7155 fi
7156 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7157 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7158 if test -n "$libltdl_cv_sys_search_path"; then
7159   sys_search_path=
7160   for dir in $libltdl_cv_sys_search_path; do
7161     if test -z "$sys_search_path"; then
7162       sys_search_path="$dir"
7163     else
7164       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7165     fi
7166   done
7167
7168 cat >>confdefs.h <<_ACEOF
7169 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7170 _ACEOF
7171
7172 fi
7173
7174 echo "$as_me:$LINENO: checking for objdir" >&5
7175 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7176 if test "${libltdl_cv_objdir+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   libltdl_cv_objdir="$objdir"
7180   if test -n "$objdir"; then
7181     :
7182   else
7183     rm -f .libs 2>/dev/null
7184     mkdir .libs 2>/dev/null
7185     if test -d .libs; then
7186       libltdl_cv_objdir=.libs
7187     else
7188       # MS-DOS does not allow filenames that begin with a dot.
7189       libltdl_cv_objdir=_libs
7190     fi
7191   rmdir .libs 2>/dev/null
7192   fi
7193
7194 fi
7195 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7196 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7197
7198 cat >>confdefs.h <<_ACEOF
7199 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7200 _ACEOF
7201
7202
7203 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7204 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7205 if test "${lt_cv_path_NM+set}" = set; then
7206   echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208   if test -n "$NM"; then
7209   # Let the user override the test.
7210   lt_cv_path_NM="$NM"
7211 else
7212   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7213   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7214     IFS="$lt_save_ifs"
7215     test -z "$ac_dir" && ac_dir=.
7216     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7217     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7218       # Check to see if the nm accepts a BSD-compat flag.
7219       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7220       #   nm: unknown option "B" ignored
7221       # Tru64's nm complains that /dev/null is an invalid object file
7222       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7223       */dev/null* | *'Invalid file or object type'*)
7224         lt_cv_path_NM="$tmp_nm -B"
7225         break
7226         ;;
7227       *)
7228         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7229         */dev/null*)
7230           lt_cv_path_NM="$tmp_nm -p"
7231           break
7232           ;;
7233         *)
7234           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7235           continue # so that we can try to find one that supports BSD flags
7236           ;;
7237         esac
7238       esac
7239     fi
7240   done
7241   IFS="$lt_save_ifs"
7242   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7243 fi
7244 fi
7245 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7246 echo "${ECHO_T}$lt_cv_path_NM" >&6
7247 NM="$lt_cv_path_NM"
7248
7249
7250
7251
7252
7253 # Check for command to grab the raw symbol name followed by C symbol from nm.
7254 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7255 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7256 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259
7260 # These are sane defaults that work on at least a few old systems.
7261 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7262
7263 # Character class describing NM global symbol codes.
7264 symcode='[BCDEGRST]'
7265
7266 # Regexp to match symbols that can be accessed directly from C.
7267 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7268
7269 # Transform the above into a raw symbol and a C symbol.
7270 symxfrm='\1 \2\3 \3'
7271
7272 # Transform an extracted symbol line into a proper C declaration
7273 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7274
7275 # Transform an extracted symbol line into symbol name and symbol address
7276 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'"
7277
7278 # Define system-specific variables.
7279 case $host_os in
7280 aix*)
7281   symcode='[BCDT]'
7282   ;;
7283 cygwin* | mingw* | pw32*)
7284   symcode='[ABCDGISTW]'
7285   ;;
7286 hpux*) # Its linker distinguishes data from code symbols
7287   if test "$host_cpu" = ia64; then
7288     symcode='[ABCDEGRST]'
7289   fi
7290   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7291   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'"
7292   ;;
7293 linux*)
7294   if test "$host_cpu" = ia64; then
7295     symcode='[ABCDGIRSTW]'
7296     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7297     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'"
7298   fi
7299   ;;
7300 irix* | nonstopux*)
7301   symcode='[BCDEGRST]'
7302   ;;
7303 osf*)
7304   symcode='[BCDEGQRST]'
7305   ;;
7306 solaris* | sysv5*)
7307   symcode='[BDRT]'
7308   ;;
7309 sysv4)
7310   symcode='[DFNSTU]'
7311   ;;
7312 esac
7313
7314 # Handle CRLF in mingw tool chain
7315 opt_cr=
7316 case $build_os in
7317 mingw*)
7318   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7319   ;;
7320 esac
7321
7322 # If we're using GNU nm, then use its standard symbol codes.
7323 case `$NM -V 2>&1` in
7324 *GNU* | *'with BFD'*)
7325   symcode='[ABCDGIRSTW]' ;;
7326 esac
7327
7328 # Try without a prefix undercore, then with it.
7329 for ac_symprfx in "" "_"; do
7330
7331   # Write the raw and C identifiers.
7332   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7333
7334   # Check to see that the pipe works correctly.
7335   pipe_works=no
7336
7337   rm -f conftest*
7338   cat > conftest.$ac_ext <<EOF
7339 #ifdef __cplusplus
7340 extern "C" {
7341 #endif
7342 char nm_test_var;
7343 void nm_test_func(){}
7344 #ifdef __cplusplus
7345 }
7346 #endif
7347 int main(){nm_test_var='a';nm_test_func();return(0);}
7348 EOF
7349
7350   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351   (eval $ac_compile) 2>&5
7352   ac_status=$?
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); }; then
7355     # Now try to grab the symbols.
7356     nlist=conftest.nm
7357     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7358   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7359   ac_status=$?
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); } && test -s "$nlist"; then
7362       # Try sorting and uniquifying the output.
7363       if sort "$nlist" | uniq > "$nlist"T; then
7364         mv -f "$nlist"T "$nlist"
7365       else
7366         rm -f "$nlist"T
7367       fi
7368
7369       # Make sure that we snagged all the symbols we need.
7370       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7371         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7372           cat <<EOF > conftest.$ac_ext
7373 #ifdef __cplusplus
7374 extern "C" {
7375 #endif
7376
7377 EOF
7378           # Now generate the symbol file.
7379           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7380
7381           cat <<EOF >> conftest.$ac_ext
7382 #if defined (__STDC__) && __STDC__
7383 # define lt_ptr_t void *
7384 #else
7385 # define lt_ptr_t char *
7386 # define const
7387 #endif
7388
7389 /* The mapping between symbol names and symbols. */
7390 const struct {
7391   const char *name;
7392   lt_ptr_t address;
7393 }
7394 lt_preloaded_symbols[] =
7395 {
7396 EOF
7397           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7398           cat <<\EOF >> conftest.$ac_ext
7399   {0, (lt_ptr_t) 0}
7400 };
7401
7402 #ifdef __cplusplus
7403 }
7404 #endif
7405 EOF
7406           # Now try linking the two files.
7407           mv conftest.$ac_objext conftstm.$ac_objext
7408           lt_save_LIBS="$LIBS"
7409           lt_save_CFLAGS="$CFLAGS"
7410           LIBS="conftstm.$ac_objext"
7411           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7412           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413   (eval $ac_link) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7417             pipe_works=yes
7418           fi
7419           LIBS="$lt_save_LIBS"
7420           CFLAGS="$lt_save_CFLAGS"
7421         else
7422           echo "cannot find nm_test_func in $nlist" >&5
7423         fi
7424       else
7425         echo "cannot find nm_test_var in $nlist" >&5
7426       fi
7427     else
7428       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7429     fi
7430   else
7431     echo "$progname: failed program was:" >&5
7432     cat conftest.$ac_ext >&5
7433   fi
7434   rm -f conftest* conftst*
7435
7436   # Do not use the global_symbol_pipe unless it works.
7437   if test "$pipe_works" = yes; then
7438     break
7439   else
7440     lt_cv_sys_global_symbol_pipe=
7441   fi
7442 done
7443
7444 fi
7445
7446 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7447   lt_cv_sys_global_symbol_to_cdecl=
7448 fi
7449 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7450   echo "$as_me:$LINENO: result: failed" >&5
7451 echo "${ECHO_T}failed" >&6
7452 else
7453   echo "$as_me:$LINENO: result: ok" >&5
7454 echo "${ECHO_T}ok" >&6
7455 fi
7456
7457
7458 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7459 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7460 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7461   echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7464     libltdl_cv_preloaded_symbols=yes
7465   else
7466     libltdl_cv_preloaded_symbols=no
7467   fi
7468
7469 fi
7470 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7471 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7472 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7473
7474 cat >>confdefs.h <<\_ACEOF
7475 #define HAVE_PRELOADED_SYMBOLS 1
7476 _ACEOF
7477
7478 fi
7479
7480 LIBADD_DL=
7481
7482 ac_ext=c
7483 ac_cpp='$CPP $CPPFLAGS'
7484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7487
7488
7489 echo "$as_me:$LINENO: checking for shl_load" >&5
7490 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7491 if test "${ac_cv_func_shl_load+set}" = set; then
7492   echo $ECHO_N "(cached) $ECHO_C" >&6
7493 else
7494   cat >conftest.$ac_ext <<_ACEOF
7495 /* confdefs.h.  */
7496 _ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h.  */
7500 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7502 #define shl_load innocuous_shl_load
7503
7504 /* System header to define __stub macros and hopefully few prototypes,
7505     which can conflict with char shl_load (); below.
7506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7507     <limits.h> exists even on freestanding compilers.  */
7508
7509 #ifdef __STDC__
7510 # include <limits.h>
7511 #else
7512 # include <assert.h>
7513 #endif
7514
7515 #undef shl_load
7516
7517 /* Override any gcc2 internal prototype to avoid an error.  */
7518 #ifdef __cplusplus
7519 extern "C"
7520 {
7521 #endif
7522 /* We use char because int might match the return type of a gcc2
7523    builtin and then its argument prototype would still apply.  */
7524 char shl_load ();
7525 /* The GNU C library defines this for functions which it implements
7526     to always fail with ENOSYS.  Some functions are actually named
7527     something starting with __ and the normal name is an alias.  */
7528 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7529 choke me
7530 #else
7531 char (*f) () = shl_load;
7532 #endif
7533 #ifdef __cplusplus
7534 }
7535 #endif
7536
7537 int
7538 main ()
7539 {
7540 return f != shl_load;
7541   ;
7542   return 0;
7543 }
7544 _ACEOF
7545 rm -f conftest.$ac_objext conftest$ac_exeext
7546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7547   (eval $ac_link) 2>conftest.er1
7548   ac_status=$?
7549   grep -v '^ *+' conftest.er1 >conftest.err
7550   rm -f conftest.er1
7551   cat conftest.err >&5
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); } &&
7554          { ac_try='test -z "$ac_c_werror_flag"
7555                          || test ! -s conftest.err'
7556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557   (eval $ac_try) 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); }; } &&
7561          { ac_try='test -s conftest$ac_exeext'
7562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563   (eval $ac_try) 2>&5
7564   ac_status=$?
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); }; }; then
7567   ac_cv_func_shl_load=yes
7568 else
7569   echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7571
7572 ac_cv_func_shl_load=no
7573 fi
7574 rm -f conftest.err conftest.$ac_objext \
7575       conftest$ac_exeext conftest.$ac_ext
7576 fi
7577 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7578 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7579 if test $ac_cv_func_shl_load = yes; then
7580
7581 cat >>confdefs.h <<\_ACEOF
7582 #define HAVE_SHL_LOAD 1
7583 _ACEOF
7584
7585 else
7586   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7587 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7588 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7589   echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591   ac_check_lib_save_LIBS=$LIBS
7592 LIBS="-ldld  $LIBS"
7593 cat >conftest.$ac_ext <<_ACEOF
7594 /* confdefs.h.  */
7595 _ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h.  */
7599
7600 /* Override any gcc2 internal prototype to avoid an error.  */
7601 #ifdef __cplusplus
7602 extern "C"
7603 #endif
7604 /* We use char because int might match the return type of a gcc2
7605    builtin and then its argument prototype would still apply.  */
7606 char shl_load ();
7607 int
7608 main ()
7609 {
7610 shl_load ();
7611   ;
7612   return 0;
7613 }
7614 _ACEOF
7615 rm -f conftest.$ac_objext conftest$ac_exeext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617   (eval $ac_link) 2>conftest.er1
7618   ac_status=$?
7619   grep -v '^ *+' conftest.er1 >conftest.err
7620   rm -f conftest.er1
7621   cat conftest.err >&5
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); } &&
7624          { ac_try='test -z "$ac_c_werror_flag"
7625                          || test ! -s conftest.err'
7626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627   (eval $ac_try) 2>&5
7628   ac_status=$?
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); }; } &&
7631          { ac_try='test -s conftest$ac_exeext'
7632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633   (eval $ac_try) 2>&5
7634   ac_status=$?
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); }; }; then
7637   ac_cv_lib_dld_shl_load=yes
7638 else
7639   echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7641
7642 ac_cv_lib_dld_shl_load=no
7643 fi
7644 rm -f conftest.err conftest.$ac_objext \
7645       conftest$ac_exeext conftest.$ac_ext
7646 LIBS=$ac_check_lib_save_LIBS
7647 fi
7648 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7649 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7650 if test $ac_cv_lib_dld_shl_load = yes; then
7651
7652 cat >>confdefs.h <<\_ACEOF
7653 #define HAVE_SHL_LOAD 1
7654 _ACEOF
7655
7656         LIBADD_DL="$LIBADD_DL -ldld"
7657 else
7658   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7659 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7660 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   ac_check_lib_save_LIBS=$LIBS
7664 LIBS="-ldl  $LIBS"
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h.  */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h.  */
7671
7672 /* Override any gcc2 internal prototype to avoid an error.  */
7673 #ifdef __cplusplus
7674 extern "C"
7675 #endif
7676 /* We use char because int might match the return type of a gcc2
7677    builtin and then its argument prototype would still apply.  */
7678 char dlopen ();
7679 int
7680 main ()
7681 {
7682 dlopen ();
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   ac_cv_lib_dl_dlopen=yes
7710 else
7711   echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7713
7714 ac_cv_lib_dl_dlopen=no
7715 fi
7716 rm -f conftest.err conftest.$ac_objext \
7717       conftest$ac_exeext conftest.$ac_ext
7718 LIBS=$ac_check_lib_save_LIBS
7719 fi
7720 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7721 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7722 if test $ac_cv_lib_dl_dlopen = yes; then
7723
7724 cat >>confdefs.h <<\_ACEOF
7725 #define HAVE_LIBDL 1
7726 _ACEOF
7727
7728                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7729 else
7730   cat >conftest.$ac_ext <<_ACEOF
7731 /* confdefs.h.  */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h.  */
7736 #if HAVE_DLFCN_H
7737 #  include <dlfcn.h>
7738 #endif
7739
7740 int
7741 main ()
7742 {
7743 dlopen(0, 0);
7744   ;
7745   return 0;
7746 }
7747 _ACEOF
7748 rm -f conftest.$ac_objext conftest$ac_exeext
7749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7750   (eval $ac_link) 2>conftest.er1
7751   ac_status=$?
7752   grep -v '^ *+' conftest.er1 >conftest.err
7753   rm -f conftest.er1
7754   cat conftest.err >&5
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); } &&
7757          { ac_try='test -z "$ac_c_werror_flag"
7758                          || test ! -s conftest.err'
7759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760   (eval $ac_try) 2>&5
7761   ac_status=$?
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); }; } &&
7764          { ac_try='test -s conftest$ac_exeext'
7765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766   (eval $ac_try) 2>&5
7767   ac_status=$?
7768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769   (exit $ac_status); }; }; then
7770
7771 cat >>confdefs.h <<\_ACEOF
7772 #define HAVE_LIBDL 1
7773 _ACEOF
7774  libltdl_cv_func_dlopen="yes"
7775 else
7776   echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7778
7779 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7780 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7781 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7782   echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784   ac_check_lib_save_LIBS=$LIBS
7785 LIBS="-lsvld  $LIBS"
7786 cat >conftest.$ac_ext <<_ACEOF
7787 /* confdefs.h.  */
7788 _ACEOF
7789 cat confdefs.h >>conftest.$ac_ext
7790 cat >>conftest.$ac_ext <<_ACEOF
7791 /* end confdefs.h.  */
7792
7793 /* Override any gcc2 internal prototype to avoid an error.  */
7794 #ifdef __cplusplus
7795 extern "C"
7796 #endif
7797 /* We use char because int might match the return type of a gcc2
7798    builtin and then its argument prototype would still apply.  */
7799 char dlopen ();
7800 int
7801 main ()
7802 {
7803 dlopen ();
7804   ;
7805   return 0;
7806 }
7807 _ACEOF
7808 rm -f conftest.$ac_objext conftest$ac_exeext
7809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7810   (eval $ac_link) 2>conftest.er1
7811   ac_status=$?
7812   grep -v '^ *+' conftest.er1 >conftest.err
7813   rm -f conftest.er1
7814   cat conftest.err >&5
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); } &&
7817          { ac_try='test -z "$ac_c_werror_flag"
7818                          || test ! -s conftest.err'
7819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820   (eval $ac_try) 2>&5
7821   ac_status=$?
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); }; } &&
7824          { ac_try='test -s conftest$ac_exeext'
7825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826   (eval $ac_try) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }; }; then
7830   ac_cv_lib_svld_dlopen=yes
7831 else
7832   echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7834
7835 ac_cv_lib_svld_dlopen=no
7836 fi
7837 rm -f conftest.err conftest.$ac_objext \
7838       conftest$ac_exeext conftest.$ac_ext
7839 LIBS=$ac_check_lib_save_LIBS
7840 fi
7841 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7842 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7843 if test $ac_cv_lib_svld_dlopen = yes; then
7844
7845 cat >>confdefs.h <<\_ACEOF
7846 #define HAVE_LIBDL 1
7847 _ACEOF
7848
7849                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7850 else
7851   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7852 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7853 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   ac_check_lib_save_LIBS=$LIBS
7857 LIBS="-ldld  $LIBS"
7858 cat >conftest.$ac_ext <<_ACEOF
7859 /* confdefs.h.  */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h.  */
7864
7865 /* Override any gcc2 internal prototype to avoid an error.  */
7866 #ifdef __cplusplus
7867 extern "C"
7868 #endif
7869 /* We use char because int might match the return type of a gcc2
7870    builtin and then its argument prototype would still apply.  */
7871 char dld_link ();
7872 int
7873 main ()
7874 {
7875 dld_link ();
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882   (eval $ac_link) 2>conftest.er1
7883   ac_status=$?
7884   grep -v '^ *+' conftest.er1 >conftest.err
7885   rm -f conftest.er1
7886   cat conftest.err >&5
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); } &&
7889          { ac_try='test -z "$ac_c_werror_flag"
7890                          || test ! -s conftest.err'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; } &&
7896          { ac_try='test -s conftest$ac_exeext'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; }; then
7902   ac_cv_lib_dld_dld_link=yes
7903 else
7904   echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907 ac_cv_lib_dld_dld_link=no
7908 fi
7909 rm -f conftest.err conftest.$ac_objext \
7910       conftest$ac_exeext conftest.$ac_ext
7911 LIBS=$ac_check_lib_save_LIBS
7912 fi
7913 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7914 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7915 if test $ac_cv_lib_dld_dld_link = yes; then
7916
7917 cat >>confdefs.h <<\_ACEOF
7918 #define HAVE_DLD 1
7919 _ACEOF
7920
7921                 LIBADD_DL="$LIBADD_DL -ldld"
7922 else
7923   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7924 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7925 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7926   echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928   cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h.  */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h.  */
7934 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7936 #define _dyld_func_lookup innocuous__dyld_func_lookup
7937
7938 /* System header to define __stub macros and hopefully few prototypes,
7939     which can conflict with char _dyld_func_lookup (); below.
7940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7941     <limits.h> exists even on freestanding compilers.  */
7942
7943 #ifdef __STDC__
7944 # include <limits.h>
7945 #else
7946 # include <assert.h>
7947 #endif
7948
7949 #undef _dyld_func_lookup
7950
7951 /* Override any gcc2 internal prototype to avoid an error.  */
7952 #ifdef __cplusplus
7953 extern "C"
7954 {
7955 #endif
7956 /* We use char because int might match the return type of a gcc2
7957    builtin and then its argument prototype would still apply.  */
7958 char _dyld_func_lookup ();
7959 /* The GNU C library defines this for functions which it implements
7960     to always fail with ENOSYS.  Some functions are actually named
7961     something starting with __ and the normal name is an alias.  */
7962 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7963 choke me
7964 #else
7965 char (*f) () = _dyld_func_lookup;
7966 #endif
7967 #ifdef __cplusplus
7968 }
7969 #endif
7970
7971 int
7972 main ()
7973 {
7974 return f != _dyld_func_lookup;
7975   ;
7976   return 0;
7977 }
7978 _ACEOF
7979 rm -f conftest.$ac_objext conftest$ac_exeext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7981   (eval $ac_link) 2>conftest.er1
7982   ac_status=$?
7983   grep -v '^ *+' conftest.er1 >conftest.err
7984   rm -f conftest.er1
7985   cat conftest.err >&5
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); } &&
7988          { ac_try='test -z "$ac_c_werror_flag"
7989                          || test ! -s conftest.err'
7990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991   (eval $ac_try) 2>&5
7992   ac_status=$?
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); }; } &&
7995          { ac_try='test -s conftest$ac_exeext'
7996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997   (eval $ac_try) 2>&5
7998   ac_status=$?
7999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000   (exit $ac_status); }; }; then
8001   ac_cv_func__dyld_func_lookup=yes
8002 else
8003   echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8005
8006 ac_cv_func__dyld_func_lookup=no
8007 fi
8008 rm -f conftest.err conftest.$ac_objext \
8009       conftest$ac_exeext conftest.$ac_ext
8010 fi
8011 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8012 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8013 if test $ac_cv_func__dyld_func_lookup = yes; then
8014
8015 cat >>confdefs.h <<\_ACEOF
8016 #define HAVE_DYLD 1
8017 _ACEOF
8018
8019 fi
8020
8021
8022 fi
8023
8024
8025 fi
8026
8027
8028 fi
8029 rm -f conftest.err conftest.$ac_objext \
8030       conftest$ac_exeext conftest.$ac_ext
8031
8032 fi
8033
8034
8035 fi
8036
8037
8038 fi
8039
8040
8041 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8042 then
8043   lt_save_LIBS="$LIBS"
8044   LIBS="$LIBS $LIBADD_DL"
8045
8046 for ac_func in dlerror
8047 do
8048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8049 echo "$as_me:$LINENO: checking for $ac_func" >&5
8050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8051 if eval "test \"\${$as_ac_var+set}\" = set"; then
8052   echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054   cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8062 #define $ac_func innocuous_$ac_func
8063
8064 /* System header to define __stub macros and hopefully few prototypes,
8065     which can conflict with char $ac_func (); below.
8066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8067     <limits.h> exists even on freestanding compilers.  */
8068
8069 #ifdef __STDC__
8070 # include <limits.h>
8071 #else
8072 # include <assert.h>
8073 #endif
8074
8075 #undef $ac_func
8076
8077 /* Override any gcc2 internal prototype to avoid an error.  */
8078 #ifdef __cplusplus
8079 extern "C"
8080 {
8081 #endif
8082 /* We use char because int might match the return type of a gcc2
8083    builtin and then its argument prototype would still apply.  */
8084 char $ac_func ();
8085 /* The GNU C library defines this for functions which it implements
8086     to always fail with ENOSYS.  Some functions are actually named
8087     something starting with __ and the normal name is an alias.  */
8088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8089 choke me
8090 #else
8091 char (*f) () = $ac_func;
8092 #endif
8093 #ifdef __cplusplus
8094 }
8095 #endif
8096
8097 int
8098 main ()
8099 {
8100 return f != $ac_func;
8101   ;
8102   return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107   (eval $ac_link) 2>conftest.er1
8108   ac_status=$?
8109   grep -v '^ *+' conftest.er1 >conftest.err
8110   rm -f conftest.er1
8111   cat conftest.err >&5
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); } &&
8114          { ac_try='test -z "$ac_c_werror_flag"
8115                          || test ! -s conftest.err'
8116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117   (eval $ac_try) 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; } &&
8121          { ac_try='test -s conftest$ac_exeext'
8122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123   (eval $ac_try) 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; }; then
8127   eval "$as_ac_var=yes"
8128 else
8129   echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8131
8132 eval "$as_ac_var=no"
8133 fi
8134 rm -f conftest.err conftest.$ac_objext \
8135       conftest$ac_exeext conftest.$ac_ext
8136 fi
8137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8139 if test `eval echo '${'$as_ac_var'}'` = yes; then
8140   cat >>confdefs.h <<_ACEOF
8141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8142 _ACEOF
8143
8144 fi
8145 done
8146
8147   LIBS="$lt_save_LIBS"
8148 fi
8149 ac_ext=c
8150 ac_cpp='$CPP $CPPFLAGS'
8151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8154
8155
8156
8157 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8158 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8159 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8160   echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162   ac_cv_sys_symbol_underscore=no
8163   cat > conftest.$ac_ext <<EOF
8164 void nm_test_func(){}
8165 int main(){nm_test_func;return 0;}
8166 EOF
8167   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168   (eval $ac_compile) 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); }; then
8172     # Now try to grab the symbols.
8173     ac_nlist=conftest.nm
8174     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8175   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); } && test -s "$ac_nlist"; then
8179       # See whether the symbols have a leading underscore.
8180       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8181         ac_cv_sys_symbol_underscore=yes
8182       else
8183         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8184           :
8185         else
8186           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8187         fi
8188       fi
8189     else
8190       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8191     fi
8192   else
8193     echo "configure: failed program was:" >&5
8194     cat conftest.c >&5
8195   fi
8196   rm -rf conftest*
8197
8198 fi
8199 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8200 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8201
8202
8203 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8204   if test x"$libltdl_cv_func_dlopen" = xyes ||
8205      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8206         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8207 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8208 if test "${libltdl_cv_need_uscore+set}" = set; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211   libltdl_cv_need_uscore=unknown
8212           save_LIBS="$LIBS"
8213           LIBS="$LIBS $LIBADD_DL"
8214           if test "$cross_compiling" = yes; then :
8215   libltdl_cv_need_uscore=cross
8216 else
8217   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8218   lt_status=$lt_dlunknown
8219   cat > conftest.$ac_ext <<EOF
8220 #line 8220 "configure"
8221 #include "confdefs.h"
8222
8223 #if HAVE_DLFCN_H
8224 #include <dlfcn.h>
8225 #endif
8226
8227 #include <stdio.h>
8228
8229 #ifdef RTLD_GLOBAL
8230 #  define LT_DLGLOBAL           RTLD_GLOBAL
8231 #else
8232 #  ifdef DL_GLOBAL
8233 #    define LT_DLGLOBAL         DL_GLOBAL
8234 #  else
8235 #    define LT_DLGLOBAL         0
8236 #  endif
8237 #endif
8238
8239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8240    find out it does not work in some platform. */
8241 #ifndef LT_DLLAZY_OR_NOW
8242 #  ifdef RTLD_LAZY
8243 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8244 #  else
8245 #    ifdef DL_LAZY
8246 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8247 #    else
8248 #      ifdef RTLD_NOW
8249 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8250 #      else
8251 #        ifdef DL_NOW
8252 #          define LT_DLLAZY_OR_NOW      DL_NOW
8253 #        else
8254 #          define LT_DLLAZY_OR_NOW      0
8255 #        endif
8256 #      endif
8257 #    endif
8258 #  endif
8259 #endif
8260
8261 #ifdef __cplusplus
8262 extern "C" void exit (int);
8263 #endif
8264
8265 void fnord() { int i=42;}
8266 int main ()
8267 {
8268   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8269   int status = $lt_dlunknown;
8270
8271   if (self)
8272     {
8273       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8274       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8275       /* dlclose (self); */
8276     }
8277
8278     exit (status);
8279 }
8280 EOF
8281   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282   (eval $ac_link) 2>&5
8283   ac_status=$?
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8286     (./conftest; exit; ) 2>/dev/null
8287     lt_status=$?
8288     case x$lt_status in
8289       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8290       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8291       x$lt_unknown|x*)  ;;
8292     esac
8293   else :
8294     # compilation failed
8295
8296   fi
8297 fi
8298 rm -fr conftest*
8299
8300           LIBS="$save_LIBS"
8301
8302 fi
8303 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8304 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8305   fi
8306 fi
8307
8308 if test x"$libltdl_cv_need_uscore" = xyes; then
8309
8310 cat >>confdefs.h <<\_ACEOF
8311 #define NEED_USCORE 1
8312 _ACEOF
8313
8314 fi
8315
8316
8317 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8318 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8319 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8320   echo $ECHO_N "(cached) $ECHO_C" >&6
8321 else
8322   # PORTME does your system automatically load deplibs for dlopen?
8323   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8324   # For now, we just catch OSes we know something about -- in the
8325   # future, we'll try test this programmatically.
8326   libltdl_cv_sys_dlopen_deplibs=unknown
8327   case "$host_os" in
8328   aix3*|aix4.1.*|aix4.2.*)
8329     # Unknown whether this is true for these versions of AIX, but
8330     # we want this `case' here to explicitly catch those versions.
8331     libltdl_cv_sys_dlopen_deplibs=unknown
8332     ;;
8333   aix[45]*)
8334     libltdl_cv_sys_dlopen_deplibs=yes
8335     ;;
8336   darwin*)
8337     # Assuming the user has installed a libdl from somewhere, this is true
8338     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8339     libltdl_cv_sys_dlopen_deplibs=yes
8340     ;;
8341   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8342     # GNU and its variants, using gnu ld.so (Glibc)
8343     libltdl_cv_sys_dlopen_deplibs=yes
8344     ;;
8345   hpux10*|hpux11*)
8346     libltdl_cv_sys_dlopen_deplibs=yes
8347     ;;
8348   irix[12345]*|irix6.[01]*)
8349     # Catch all versions of IRIX before 6.2, and indicate that we don't
8350     # know how it worked for any of those versions.
8351     libltdl_cv_sys_dlopen_deplibs=unknown
8352     ;;
8353   irix*)
8354     # The case above catches anything before 6.2, and it's known that
8355     # at 6.2 and later dlopen does load deplibs.
8356     libltdl_cv_sys_dlopen_deplibs=yes
8357     ;;
8358   netbsd*)
8359     libltdl_cv_sys_dlopen_deplibs=yes
8360     ;;
8361   openbsd*)
8362     libltdl_cv_sys_dlopen_deplibs=yes
8363     ;;
8364   osf[1234]*)
8365     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8366     # it did *not* use an RPATH in a shared library to find objects the
8367     # library depends on, so we explictly say `no'.
8368     libltdl_cv_sys_dlopen_deplibs=no
8369     ;;
8370   osf5.0|osf5.0a|osf5.1)
8371     # dlopen *does* load deplibs and with the right loader patch applied
8372     # it even uses RPATH in a shared library to search for shared objects
8373     # that the library depends on, but there's no easy way to know if that
8374     # patch is installed.  Since this is the case, all we can really
8375     # say is unknown -- it depends on the patch being installed.  If
8376     # it is, this changes to `yes'.  Without it, it would be `no'.
8377     libltdl_cv_sys_dlopen_deplibs=unknown
8378     ;;
8379   osf*)
8380     # the two cases above should catch all versions of osf <= 5.1.  Read
8381     # the comments above for what we know about them.
8382     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8383     # is used to find them so we can finally say `yes'.
8384     libltdl_cv_sys_dlopen_deplibs=yes
8385     ;;
8386   solaris*)
8387     libltdl_cv_sys_dlopen_deplibs=yes
8388     ;;
8389   esac
8390
8391 fi
8392 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8393 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8394 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8395
8396 cat >>confdefs.h <<\_ACEOF
8397 #define LTDL_DLOPEN_DEPLIBS 1
8398 _ACEOF
8399
8400 fi
8401
8402
8403 for ac_header in argz.h
8404 do
8405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8407   echo "$as_me:$LINENO: checking for $ac_header" >&5
8408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8410   echo $ECHO_N "(cached) $ECHO_C" >&6
8411 fi
8412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8414 else
8415   # Is the header compilable?
8416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8418 cat >conftest.$ac_ext <<_ACEOF
8419 /* confdefs.h.  */
8420 _ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h.  */
8424 $ac_includes_default
8425 #include <$ac_header>
8426 _ACEOF
8427 rm -f conftest.$ac_objext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8429   (eval $ac_compile) 2>conftest.er1
8430   ac_status=$?
8431   grep -v '^ *+' conftest.er1 >conftest.err
8432   rm -f conftest.er1
8433   cat conftest.err >&5
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); } &&
8436          { ac_try='test -z "$ac_c_werror_flag"
8437                          || test ! -s conftest.err'
8438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439   (eval $ac_try) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; } &&
8443          { ac_try='test -s conftest.$ac_objext'
8444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445   (eval $ac_try) 2>&5
8446   ac_status=$?
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); }; }; then
8449   ac_header_compiler=yes
8450 else
8451   echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8453
8454 ac_header_compiler=no
8455 fi
8456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8458 echo "${ECHO_T}$ac_header_compiler" >&6
8459
8460 # Is the header present?
8461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8463 cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h.  */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h.  */
8469 #include <$ac_header>
8470 _ACEOF
8471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8472   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8473   ac_status=$?
8474   grep -v '^ *+' conftest.er1 >conftest.err
8475   rm -f conftest.er1
8476   cat conftest.err >&5
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); } >/dev/null; then
8479   if test -s conftest.err; then
8480     ac_cpp_err=$ac_c_preproc_warn_flag
8481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8482   else
8483     ac_cpp_err=
8484   fi
8485 else
8486   ac_cpp_err=yes
8487 fi
8488 if test -z "$ac_cpp_err"; then
8489   ac_header_preproc=yes
8490 else
8491   echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8493
8494   ac_header_preproc=no
8495 fi
8496 rm -f conftest.err conftest.$ac_ext
8497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8498 echo "${ECHO_T}$ac_header_preproc" >&6
8499
8500 # So?  What about this header?
8501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8502   yes:no: )
8503     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8507     ac_header_preproc=yes
8508     ;;
8509   no:yes:* )
8510     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8512     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8513 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8514     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8516     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8517 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8520     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8522     (
8523       cat <<\_ASBOX
8524 ## ----------------------------------- ##
8525 ## Report this to llvmbugs@cs.uiuc.edu ##
8526 ## ----------------------------------- ##
8527 _ASBOX
8528     ) |
8529       sed "s/^/$as_me: WARNING:     /" >&2
8530     ;;
8531 esac
8532 echo "$as_me:$LINENO: checking for $ac_header" >&5
8533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8535   echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537   eval "$as_ac_Header=\$ac_header_preproc"
8538 fi
8539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8541
8542 fi
8543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8544   cat >>confdefs.h <<_ACEOF
8545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8546 _ACEOF
8547
8548 fi
8549
8550 done
8551
8552
8553 echo "$as_me:$LINENO: checking for error_t" >&5
8554 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8555 if test "${ac_cv_type_error_t+set}" = set; then
8556   echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558   cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8564 #if HAVE_ARGZ_H
8565 #  include <argz.h>
8566 #endif
8567
8568 int
8569 main ()
8570 {
8571 if ((error_t *) 0)
8572   return 0;
8573 if (sizeof (error_t))
8574   return 0;
8575   ;
8576   return 0;
8577 }
8578 _ACEOF
8579 rm -f conftest.$ac_objext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8581   (eval $ac_compile) 2>conftest.er1
8582   ac_status=$?
8583   grep -v '^ *+' conftest.er1 >conftest.err
8584   rm -f conftest.er1
8585   cat conftest.err >&5
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); } &&
8588          { ac_try='test -z "$ac_c_werror_flag"
8589                          || test ! -s conftest.err'
8590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591   (eval $ac_try) 2>&5
8592   ac_status=$?
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); }; } &&
8595          { ac_try='test -s conftest.$ac_objext'
8596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597   (eval $ac_try) 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; }; then
8601   ac_cv_type_error_t=yes
8602 else
8603   echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606 ac_cv_type_error_t=no
8607 fi
8608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8609 fi
8610 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8611 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8612 if test $ac_cv_type_error_t = yes; then
8613
8614 cat >>confdefs.h <<_ACEOF
8615 #define HAVE_ERROR_T 1
8616 _ACEOF
8617
8618
8619 else
8620
8621 cat >>confdefs.h <<\_ACEOF
8622 #define error_t int
8623 _ACEOF
8624
8625 fi
8626
8627
8628
8629
8630
8631
8632
8633 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8634 do
8635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8636 echo "$as_me:$LINENO: checking for $ac_func" >&5
8637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8638 if eval "test \"\${$as_ac_var+set}\" = set"; then
8639   echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641   cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h.  */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h.  */
8647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8649 #define $ac_func innocuous_$ac_func
8650
8651 /* System header to define __stub macros and hopefully few prototypes,
8652     which can conflict with char $ac_func (); below.
8653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8654     <limits.h> exists even on freestanding compilers.  */
8655
8656 #ifdef __STDC__
8657 # include <limits.h>
8658 #else
8659 # include <assert.h>
8660 #endif
8661
8662 #undef $ac_func
8663
8664 /* Override any gcc2 internal prototype to avoid an error.  */
8665 #ifdef __cplusplus
8666 extern "C"
8667 {
8668 #endif
8669 /* We use char because int might match the return type of a gcc2
8670    builtin and then its argument prototype would still apply.  */
8671 char $ac_func ();
8672 /* The GNU C library defines this for functions which it implements
8673     to always fail with ENOSYS.  Some functions are actually named
8674     something starting with __ and the normal name is an alias.  */
8675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8676 choke me
8677 #else
8678 char (*f) () = $ac_func;
8679 #endif
8680 #ifdef __cplusplus
8681 }
8682 #endif
8683
8684 int
8685 main ()
8686 {
8687 return f != $ac_func;
8688   ;
8689   return 0;
8690 }
8691 _ACEOF
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694   (eval $ac_link) 2>conftest.er1
8695   ac_status=$?
8696   grep -v '^ *+' conftest.er1 >conftest.err
8697   rm -f conftest.er1
8698   cat conftest.err >&5
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); } &&
8701          { ac_try='test -z "$ac_c_werror_flag"
8702                          || test ! -s conftest.err'
8703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704   (eval $ac_try) 2>&5
8705   ac_status=$?
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); }; } &&
8708          { ac_try='test -s conftest$ac_exeext'
8709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710   (eval $ac_try) 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); }; }; then
8714   eval "$as_ac_var=yes"
8715 else
8716   echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8718
8719 eval "$as_ac_var=no"
8720 fi
8721 rm -f conftest.err conftest.$ac_objext \
8722       conftest$ac_exeext conftest.$ac_ext
8723 fi
8724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8726 if test `eval echo '${'$as_ac_var'}'` = yes; then
8727   cat >>confdefs.h <<_ACEOF
8728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8729 _ACEOF
8730
8731 fi
8732 done
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8762                   stdio.h unistd.h
8763 do
8764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8766   echo "$as_me:$LINENO: checking for $ac_header" >&5
8767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8769   echo $ECHO_N "(cached) $ECHO_C" >&6
8770 fi
8771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8773 else
8774   # Is the header compilable?
8775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h.  */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h.  */
8783 $ac_includes_default
8784 #include <$ac_header>
8785 _ACEOF
8786 rm -f conftest.$ac_objext
8787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8788   (eval $ac_compile) 2>conftest.er1
8789   ac_status=$?
8790   grep -v '^ *+' conftest.er1 >conftest.err
8791   rm -f conftest.er1
8792   cat conftest.err >&5
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); } &&
8795          { ac_try='test -z "$ac_c_werror_flag"
8796                          || test ! -s conftest.err'
8797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798   (eval $ac_try) 2>&5
8799   ac_status=$?
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); }; } &&
8802          { ac_try='test -s conftest.$ac_objext'
8803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804   (eval $ac_try) 2>&5
8805   ac_status=$?
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); }; }; then
8808   ac_header_compiler=yes
8809 else
8810   echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8812
8813 ac_header_compiler=no
8814 fi
8815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8817 echo "${ECHO_T}$ac_header_compiler" >&6
8818
8819 # Is the header present?
8820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h.  */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h.  */
8828 #include <$ac_header>
8829 _ACEOF
8830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8832   ac_status=$?
8833   grep -v '^ *+' conftest.er1 >conftest.err
8834   rm -f conftest.er1
8835   cat conftest.err >&5
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); } >/dev/null; then
8838   if test -s conftest.err; then
8839     ac_cpp_err=$ac_c_preproc_warn_flag
8840     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8841   else
8842     ac_cpp_err=
8843   fi
8844 else
8845   ac_cpp_err=yes
8846 fi
8847 if test -z "$ac_cpp_err"; then
8848   ac_header_preproc=yes
8849 else
8850   echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8852
8853   ac_header_preproc=no
8854 fi
8855 rm -f conftest.err conftest.$ac_ext
8856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8857 echo "${ECHO_T}$ac_header_preproc" >&6
8858
8859 # So?  What about this header?
8860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8861   yes:no: )
8862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8866     ac_header_preproc=yes
8867     ;;
8868   no:yes:* )
8869     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8871     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8872 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8873     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8875     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8876 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8879     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8881     (
8882       cat <<\_ASBOX
8883 ## ----------------------------------- ##
8884 ## Report this to llvmbugs@cs.uiuc.edu ##
8885 ## ----------------------------------- ##
8886 _ASBOX
8887     ) |
8888       sed "s/^/$as_me: WARNING:     /" >&2
8889     ;;
8890 esac
8891 echo "$as_me:$LINENO: checking for $ac_header" >&5
8892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8894   echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896   eval "$as_ac_Header=\$ac_header_preproc"
8897 fi
8898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8900
8901 fi
8902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8903   cat >>confdefs.h <<_ACEOF
8904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8905 _ACEOF
8906
8907 fi
8908
8909 done
8910
8911
8912
8913
8914
8915 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8916 do
8917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8919   echo "$as_me:$LINENO: checking for $ac_header" >&5
8920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8922   echo $ECHO_N "(cached) $ECHO_C" >&6
8923 fi
8924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8926 else
8927   # Is the header compilable?
8928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8930 cat >conftest.$ac_ext <<_ACEOF
8931 /* confdefs.h.  */
8932 _ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h.  */
8936 $ac_includes_default
8937 #include <$ac_header>
8938 _ACEOF
8939 rm -f conftest.$ac_objext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8941   (eval $ac_compile) 2>conftest.er1
8942   ac_status=$?
8943   grep -v '^ *+' conftest.er1 >conftest.err
8944   rm -f conftest.er1
8945   cat conftest.err >&5
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); } &&
8948          { ac_try='test -z "$ac_c_werror_flag"
8949                          || test ! -s conftest.err'
8950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951   (eval $ac_try) 2>&5
8952   ac_status=$?
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); }; } &&
8955          { ac_try='test -s conftest.$ac_objext'
8956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957   (eval $ac_try) 2>&5
8958   ac_status=$?
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); }; }; then
8961   ac_header_compiler=yes
8962 else
8963   echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8965
8966 ac_header_compiler=no
8967 fi
8968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8970 echo "${ECHO_T}$ac_header_compiler" >&6
8971
8972 # Is the header present?
8973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8975 cat >conftest.$ac_ext <<_ACEOF
8976 /* confdefs.h.  */
8977 _ACEOF
8978 cat confdefs.h >>conftest.$ac_ext
8979 cat >>conftest.$ac_ext <<_ACEOF
8980 /* end confdefs.h.  */
8981 #include <$ac_header>
8982 _ACEOF
8983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8985   ac_status=$?
8986   grep -v '^ *+' conftest.er1 >conftest.err
8987   rm -f conftest.er1
8988   cat conftest.err >&5
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } >/dev/null; then
8991   if test -s conftest.err; then
8992     ac_cpp_err=$ac_c_preproc_warn_flag
8993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8994   else
8995     ac_cpp_err=
8996   fi
8997 else
8998   ac_cpp_err=yes
8999 fi
9000 if test -z "$ac_cpp_err"; then
9001   ac_header_preproc=yes
9002 else
9003   echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9005
9006   ac_header_preproc=no
9007 fi
9008 rm -f conftest.err conftest.$ac_ext
9009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9010 echo "${ECHO_T}$ac_header_preproc" >&6
9011
9012 # So?  What about this header?
9013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9014   yes:no: )
9015     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9019     ac_header_preproc=yes
9020     ;;
9021   no:yes:* )
9022     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9024     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9025 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9026     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9028     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9029 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9032     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9034     (
9035       cat <<\_ASBOX
9036 ## ----------------------------------- ##
9037 ## Report this to llvmbugs@cs.uiuc.edu ##
9038 ## ----------------------------------- ##
9039 _ASBOX
9040     ) |
9041       sed "s/^/$as_me: WARNING:     /" >&2
9042     ;;
9043 esac
9044 echo "$as_me:$LINENO: checking for $ac_header" >&5
9045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9047   echo $ECHO_N "(cached) $ECHO_C" >&6
9048 else
9049   eval "$as_ac_Header=\$ac_header_preproc"
9050 fi
9051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9053
9054 fi
9055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9056   cat >>confdefs.h <<_ACEOF
9057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9058 _ACEOF
9059
9060 fi
9061
9062 done
9063
9064
9065
9066 for ac_header in string.h strings.h
9067 do
9068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9070   echo "$as_me:$LINENO: checking for $ac_header" >&5
9071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9073   echo $ECHO_N "(cached) $ECHO_C" >&6
9074 fi
9075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9077 else
9078   # Is the header compilable?
9079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9081 cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h.  */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h.  */
9087 $ac_includes_default
9088 #include <$ac_header>
9089 _ACEOF
9090 rm -f conftest.$ac_objext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9092   (eval $ac_compile) 2>conftest.er1
9093   ac_status=$?
9094   grep -v '^ *+' conftest.er1 >conftest.err
9095   rm -f conftest.er1
9096   cat conftest.err >&5
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); } &&
9099          { ac_try='test -z "$ac_c_werror_flag"
9100                          || test ! -s conftest.err'
9101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102   (eval $ac_try) 2>&5
9103   ac_status=$?
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); }; } &&
9106          { ac_try='test -s conftest.$ac_objext'
9107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108   (eval $ac_try) 2>&5
9109   ac_status=$?
9110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); }; }; then
9112   ac_header_compiler=yes
9113 else
9114   echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9116
9117 ac_header_compiler=no
9118 fi
9119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9121 echo "${ECHO_T}$ac_header_compiler" >&6
9122
9123 # Is the header present?
9124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9126 cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h.  */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h.  */
9132 #include <$ac_header>
9133 _ACEOF
9134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9136   ac_status=$?
9137   grep -v '^ *+' conftest.er1 >conftest.err
9138   rm -f conftest.er1
9139   cat conftest.err >&5
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); } >/dev/null; then
9142   if test -s conftest.err; then
9143     ac_cpp_err=$ac_c_preproc_warn_flag
9144     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9145   else
9146     ac_cpp_err=
9147   fi
9148 else
9149   ac_cpp_err=yes
9150 fi
9151 if test -z "$ac_cpp_err"; then
9152   ac_header_preproc=yes
9153 else
9154   echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9156
9157   ac_header_preproc=no
9158 fi
9159 rm -f conftest.err conftest.$ac_ext
9160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9161 echo "${ECHO_T}$ac_header_preproc" >&6
9162
9163 # So?  What about this header?
9164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9165   yes:no: )
9166     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9170     ac_header_preproc=yes
9171     ;;
9172   no:yes:* )
9173     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9175     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9176 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9177     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9179     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9180 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9183     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9185     (
9186       cat <<\_ASBOX
9187 ## ----------------------------------- ##
9188 ## Report this to llvmbugs@cs.uiuc.edu ##
9189 ## ----------------------------------- ##
9190 _ASBOX
9191     ) |
9192       sed "s/^/$as_me: WARNING:     /" >&2
9193     ;;
9194 esac
9195 echo "$as_me:$LINENO: checking for $ac_header" >&5
9196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9198   echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200   eval "$as_ac_Header=\$ac_header_preproc"
9201 fi
9202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9204
9205 fi
9206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9207   cat >>confdefs.h <<_ACEOF
9208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9209 _ACEOF
9210  break
9211 fi
9212
9213 done
9214
9215
9216
9217
9218 for ac_func in strchr index
9219 do
9220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9221 echo "$as_me:$LINENO: checking for $ac_func" >&5
9222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9223 if eval "test \"\${$as_ac_var+set}\" = set"; then
9224   echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226   cat >conftest.$ac_ext <<_ACEOF
9227 /* confdefs.h.  */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h.  */
9232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9234 #define $ac_func innocuous_$ac_func
9235
9236 /* System header to define __stub macros and hopefully few prototypes,
9237     which can conflict with char $ac_func (); below.
9238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9239     <limits.h> exists even on freestanding compilers.  */
9240
9241 #ifdef __STDC__
9242 # include <limits.h>
9243 #else
9244 # include <assert.h>
9245 #endif
9246
9247 #undef $ac_func
9248
9249 /* Override any gcc2 internal prototype to avoid an error.  */
9250 #ifdef __cplusplus
9251 extern "C"
9252 {
9253 #endif
9254 /* We use char because int might match the return type of a gcc2
9255    builtin and then its argument prototype would still apply.  */
9256 char $ac_func ();
9257 /* The GNU C library defines this for functions which it implements
9258     to always fail with ENOSYS.  Some functions are actually named
9259     something starting with __ and the normal name is an alias.  */
9260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9261 choke me
9262 #else
9263 char (*f) () = $ac_func;
9264 #endif
9265 #ifdef __cplusplus
9266 }
9267 #endif
9268
9269 int
9270 main ()
9271 {
9272 return f != $ac_func;
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   eval "$as_ac_var=yes"
9300 else
9301   echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 eval "$as_ac_var=no"
9305 fi
9306 rm -f conftest.err conftest.$ac_objext \
9307       conftest$ac_exeext conftest.$ac_ext
9308 fi
9309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9311 if test `eval echo '${'$as_ac_var'}'` = yes; then
9312   cat >>confdefs.h <<_ACEOF
9313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9314 _ACEOF
9315  break
9316 fi
9317 done
9318
9319
9320
9321 for ac_func in strrchr rindex
9322 do
9323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9324 echo "$as_me:$LINENO: checking for $ac_func" >&5
9325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9326 if eval "test \"\${$as_ac_var+set}\" = set"; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329   cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h.  */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h.  */
9335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9337 #define $ac_func innocuous_$ac_func
9338
9339 /* System header to define __stub macros and hopefully few prototypes,
9340     which can conflict with char $ac_func (); below.
9341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9342     <limits.h> exists even on freestanding compilers.  */
9343
9344 #ifdef __STDC__
9345 # include <limits.h>
9346 #else
9347 # include <assert.h>
9348 #endif
9349
9350 #undef $ac_func
9351
9352 /* Override any gcc2 internal prototype to avoid an error.  */
9353 #ifdef __cplusplus
9354 extern "C"
9355 {
9356 #endif
9357 /* We use char because int might match the return type of a gcc2
9358    builtin and then its argument prototype would still apply.  */
9359 char $ac_func ();
9360 /* The GNU C library defines this for functions which it implements
9361     to always fail with ENOSYS.  Some functions are actually named
9362     something starting with __ and the normal name is an alias.  */
9363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9364 choke me
9365 #else
9366 char (*f) () = $ac_func;
9367 #endif
9368 #ifdef __cplusplus
9369 }
9370 #endif
9371
9372 int
9373 main ()
9374 {
9375 return f != $ac_func;
9376   ;
9377   return 0;
9378 }
9379 _ACEOF
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382   (eval $ac_link) 2>conftest.er1
9383   ac_status=$?
9384   grep -v '^ *+' conftest.er1 >conftest.err
9385   rm -f conftest.er1
9386   cat conftest.err >&5
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); } &&
9389          { ac_try='test -z "$ac_c_werror_flag"
9390                          || test ! -s conftest.err'
9391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392   (eval $ac_try) 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); }; } &&
9396          { ac_try='test -s conftest$ac_exeext'
9397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398   (eval $ac_try) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); }; }; then
9402   eval "$as_ac_var=yes"
9403 else
9404   echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407 eval "$as_ac_var=no"
9408 fi
9409 rm -f conftest.err conftest.$ac_objext \
9410       conftest$ac_exeext conftest.$ac_ext
9411 fi
9412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9414 if test `eval echo '${'$as_ac_var'}'` = yes; then
9415   cat >>confdefs.h <<_ACEOF
9416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9417 _ACEOF
9418  break
9419 fi
9420 done
9421
9422
9423
9424 for ac_func in memcpy bcopy
9425 do
9426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9427 echo "$as_me:$LINENO: checking for $ac_func" >&5
9428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9429 if eval "test \"\${$as_ac_var+set}\" = set"; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432   cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h.  */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h.  */
9438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9440 #define $ac_func innocuous_$ac_func
9441
9442 /* System header to define __stub macros and hopefully few prototypes,
9443     which can conflict with char $ac_func (); below.
9444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9445     <limits.h> exists even on freestanding compilers.  */
9446
9447 #ifdef __STDC__
9448 # include <limits.h>
9449 #else
9450 # include <assert.h>
9451 #endif
9452
9453 #undef $ac_func
9454
9455 /* Override any gcc2 internal prototype to avoid an error.  */
9456 #ifdef __cplusplus
9457 extern "C"
9458 {
9459 #endif
9460 /* We use char because int might match the return type of a gcc2
9461    builtin and then its argument prototype would still apply.  */
9462 char $ac_func ();
9463 /* The GNU C library defines this for functions which it implements
9464     to always fail with ENOSYS.  Some functions are actually named
9465     something starting with __ and the normal name is an alias.  */
9466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9467 choke me
9468 #else
9469 char (*f) () = $ac_func;
9470 #endif
9471 #ifdef __cplusplus
9472 }
9473 #endif
9474
9475 int
9476 main ()
9477 {
9478 return f != $ac_func;
9479   ;
9480   return 0;
9481 }
9482 _ACEOF
9483 rm -f conftest.$ac_objext conftest$ac_exeext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9485   (eval $ac_link) 2>conftest.er1
9486   ac_status=$?
9487   grep -v '^ *+' conftest.er1 >conftest.err
9488   rm -f conftest.er1
9489   cat conftest.err >&5
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); } &&
9492          { ac_try='test -z "$ac_c_werror_flag"
9493                          || test ! -s conftest.err'
9494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495   (eval $ac_try) 2>&5
9496   ac_status=$?
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); }; } &&
9499          { ac_try='test -s conftest$ac_exeext'
9500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501   (eval $ac_try) 2>&5
9502   ac_status=$?
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); }; }; then
9505   eval "$as_ac_var=yes"
9506 else
9507   echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9509
9510 eval "$as_ac_var=no"
9511 fi
9512 rm -f conftest.err conftest.$ac_objext \
9513       conftest$ac_exeext conftest.$ac_ext
9514 fi
9515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9517 if test `eval echo '${'$as_ac_var'}'` = yes; then
9518   cat >>confdefs.h <<_ACEOF
9519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9520 _ACEOF
9521  break
9522 fi
9523 done
9524
9525
9526
9527 for ac_func in memmove strcmp
9528 do
9529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9530 echo "$as_me:$LINENO: checking for $ac_func" >&5
9531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9532 if eval "test \"\${$as_ac_var+set}\" = set"; then
9533   echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535   cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h.  */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h.  */
9541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9543 #define $ac_func innocuous_$ac_func
9544
9545 /* System header to define __stub macros and hopefully few prototypes,
9546     which can conflict with char $ac_func (); below.
9547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9548     <limits.h> exists even on freestanding compilers.  */
9549
9550 #ifdef __STDC__
9551 # include <limits.h>
9552 #else
9553 # include <assert.h>
9554 #endif
9555
9556 #undef $ac_func
9557
9558 /* Override any gcc2 internal prototype to avoid an error.  */
9559 #ifdef __cplusplus
9560 extern "C"
9561 {
9562 #endif
9563 /* We use char because int might match the return type of a gcc2
9564    builtin and then its argument prototype would still apply.  */
9565 char $ac_func ();
9566 /* The GNU C library defines this for functions which it implements
9567     to always fail with ENOSYS.  Some functions are actually named
9568     something starting with __ and the normal name is an alias.  */
9569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9570 choke me
9571 #else
9572 char (*f) () = $ac_func;
9573 #endif
9574 #ifdef __cplusplus
9575 }
9576 #endif
9577
9578 int
9579 main ()
9580 {
9581 return f != $ac_func;
9582   ;
9583   return 0;
9584 }
9585 _ACEOF
9586 rm -f conftest.$ac_objext conftest$ac_exeext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9588   (eval $ac_link) 2>conftest.er1
9589   ac_status=$?
9590   grep -v '^ *+' conftest.er1 >conftest.err
9591   rm -f conftest.er1
9592   cat conftest.err >&5
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); } &&
9595          { ac_try='test -z "$ac_c_werror_flag"
9596                          || test ! -s conftest.err'
9597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598   (eval $ac_try) 2>&5
9599   ac_status=$?
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); }; } &&
9602          { ac_try='test -s conftest$ac_exeext'
9603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604   (eval $ac_try) 2>&5
9605   ac_status=$?
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); }; }; then
9608   eval "$as_ac_var=yes"
9609 else
9610   echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.$ac_ext >&5
9612
9613 eval "$as_ac_var=no"
9614 fi
9615 rm -f conftest.err conftest.$ac_objext \
9616       conftest$ac_exeext conftest.$ac_ext
9617 fi
9618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9620 if test `eval echo '${'$as_ac_var'}'` = yes; then
9621   cat >>confdefs.h <<_ACEOF
9622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9623 _ACEOF
9624
9625 fi
9626 done
9627
9628
9629
9630
9631 for ac_func in closedir opendir readdir
9632 do
9633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9634 echo "$as_me:$LINENO: checking for $ac_func" >&5
9635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9636 if eval "test \"\${$as_ac_var+set}\" = set"; then
9637   echo $ECHO_N "(cached) $ECHO_C" >&6
9638 else
9639   cat >conftest.$ac_ext <<_ACEOF
9640 /* confdefs.h.  */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h.  */
9645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9647 #define $ac_func innocuous_$ac_func
9648
9649 /* System header to define __stub macros and hopefully few prototypes,
9650     which can conflict with char $ac_func (); below.
9651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9652     <limits.h> exists even on freestanding compilers.  */
9653
9654 #ifdef __STDC__
9655 # include <limits.h>
9656 #else
9657 # include <assert.h>
9658 #endif
9659
9660 #undef $ac_func
9661
9662 /* Override any gcc2 internal prototype to avoid an error.  */
9663 #ifdef __cplusplus
9664 extern "C"
9665 {
9666 #endif
9667 /* We use char because int might match the return type of a gcc2
9668    builtin and then its argument prototype would still apply.  */
9669 char $ac_func ();
9670 /* The GNU C library defines this for functions which it implements
9671     to always fail with ENOSYS.  Some functions are actually named
9672     something starting with __ and the normal name is an alias.  */
9673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9674 choke me
9675 #else
9676 char (*f) () = $ac_func;
9677 #endif
9678 #ifdef __cplusplus
9679 }
9680 #endif
9681
9682 int
9683 main ()
9684 {
9685 return f != $ac_func;
9686   ;
9687   return 0;
9688 }
9689 _ACEOF
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9692   (eval $ac_link) 2>conftest.er1
9693   ac_status=$?
9694   grep -v '^ *+' conftest.er1 >conftest.err
9695   rm -f conftest.er1
9696   cat conftest.err >&5
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); } &&
9699          { ac_try='test -z "$ac_c_werror_flag"
9700                          || test ! -s conftest.err'
9701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702   (eval $ac_try) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }; } &&
9706          { ac_try='test -s conftest$ac_exeext'
9707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708   (eval $ac_try) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); }; }; then
9712   eval "$as_ac_var=yes"
9713 else
9714   echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717 eval "$as_ac_var=no"
9718 fi
9719 rm -f conftest.err conftest.$ac_objext \
9720       conftest$ac_exeext conftest.$ac_ext
9721 fi
9722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9724 if test `eval echo '${'$as_ac_var'}'` = yes; then
9725   cat >>confdefs.h <<_ACEOF
9726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9727 _ACEOF
9728
9729 fi
9730 done
9731
9732
9733 # Check whether --enable-shared or --disable-shared was given.
9734 if test "${enable_shared+set}" = set; then
9735   enableval="$enable_shared"
9736   p=${PACKAGE-default}
9737     case $enableval in
9738     yes) enable_shared=yes ;;
9739     no) enable_shared=no ;;
9740     *)
9741       enable_shared=no
9742       # Look at the argument we got.  We use all the common list separators.
9743       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9744       for pkg in $enableval; do
9745         IFS="$lt_save_ifs"
9746         if test "X$pkg" = "X$p"; then
9747           enable_shared=yes
9748         fi
9749       done
9750       IFS="$lt_save_ifs"
9751       ;;
9752     esac
9753 else
9754   enable_shared=yes
9755 fi;
9756
9757 # Check whether --enable-static or --disable-static was given.
9758 if test "${enable_static+set}" = set; then
9759   enableval="$enable_static"
9760   p=${PACKAGE-default}
9761     case $enableval in
9762     yes) enable_static=yes ;;
9763     no) enable_static=no ;;
9764     *)
9765      enable_static=no
9766       # Look at the argument we got.  We use all the common list separators.
9767       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9768       for pkg in $enableval; do
9769         IFS="$lt_save_ifs"
9770         if test "X$pkg" = "X$p"; then
9771           enable_static=yes
9772         fi
9773       done
9774       IFS="$lt_save_ifs"
9775       ;;
9776     esac
9777 else
9778   enable_static=yes
9779 fi;
9780
9781 # Check whether --enable-fast-install or --disable-fast-install was given.
9782 if test "${enable_fast_install+set}" = set; then
9783   enableval="$enable_fast_install"
9784   p=${PACKAGE-default}
9785     case $enableval in
9786     yes) enable_fast_install=yes ;;
9787     no) enable_fast_install=no ;;
9788     *)
9789       enable_fast_install=no
9790       # Look at the argument we got.  We use all the common list separators.
9791       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9792       for pkg in $enableval; do
9793         IFS="$lt_save_ifs"
9794         if test "X$pkg" = "X$p"; then
9795           enable_fast_install=yes
9796         fi
9797       done
9798       IFS="$lt_save_ifs"
9799       ;;
9800     esac
9801 else
9802   enable_fast_install=yes
9803 fi;
9804
9805 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9806 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9807 if test "${lt_cv_path_SED+set}" = set; then
9808   echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810   # Loop through the user's path and test for sed and gsed.
9811 # Then use that list of sed's as ones to test for truncation.
9812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813 for as_dir in $PATH
9814 do
9815   IFS=$as_save_IFS
9816   test -z "$as_dir" && as_dir=.
9817   for lt_ac_prog in sed gsed; do
9818     for ac_exec_ext in '' $ac_executable_extensions; do
9819       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9820         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9821       fi
9822     done
9823   done
9824 done
9825 lt_ac_max=0
9826 lt_ac_count=0
9827 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9828 # along with /bin/sed that truncates output.
9829 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9830   test ! -f $lt_ac_sed && break
9831   cat /dev/null > conftest.in
9832   lt_ac_count=0
9833   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9834   # Check for GNU sed and select it if it is found.
9835   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9836     lt_cv_path_SED=$lt_ac_sed
9837     break
9838   fi
9839   while true; do
9840     cat conftest.in conftest.in >conftest.tmp
9841     mv conftest.tmp conftest.in
9842     cp conftest.in conftest.nl
9843     echo >>conftest.nl
9844     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9845     cmp -s conftest.out conftest.nl || break
9846     # 10000 chars as input seems more than enough
9847     test $lt_ac_count -gt 10 && break
9848     lt_ac_count=`expr $lt_ac_count + 1`
9849     if test $lt_ac_count -gt $lt_ac_max; then
9850       lt_ac_max=$lt_ac_count
9851       lt_cv_path_SED=$lt_ac_sed
9852     fi
9853   done
9854 done
9855
9856 fi
9857
9858 SED=$lt_cv_path_SED
9859 echo "$as_me:$LINENO: result: $SED" >&5
9860 echo "${ECHO_T}$SED" >&6
9861
9862
9863 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9864 if test "${with_gnu_ld+set}" = set; then
9865   withval="$with_gnu_ld"
9866   test "$withval" = no || with_gnu_ld=yes
9867 else
9868   with_gnu_ld=no
9869 fi;
9870 ac_prog=ld
9871 if test "$GCC" = yes; then
9872   # Check if gcc -print-prog-name=ld gives a path.
9873   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9874 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9875   case $host in
9876   *-*-mingw*)
9877     # gcc leaves a trailing carriage return which upsets mingw
9878     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9879   *)
9880     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9881   esac
9882   case $ac_prog in
9883     # Accept absolute paths.
9884     [\\/]* | ?:[\\/]*)
9885       re_direlt='/[^/][^/]*/\.\./'
9886       # Canonicalize the pathname of ld
9887       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9888       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9889         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9890       done
9891       test -z "$LD" && LD="$ac_prog"
9892       ;;
9893   "")
9894     # If it fails, then pretend we aren't using GCC.
9895     ac_prog=ld
9896     ;;
9897   *)
9898     # If it is relative, then search for the first ld in PATH.
9899     with_gnu_ld=unknown
9900     ;;
9901   esac
9902 elif test "$with_gnu_ld" = yes; then
9903   echo "$as_me:$LINENO: checking for GNU ld" >&5
9904 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9905 else
9906   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9907 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9908 fi
9909 if test "${lt_cv_path_LD+set}" = set; then
9910   echo $ECHO_N "(cached) $ECHO_C" >&6
9911 else
9912   if test -z "$LD"; then
9913   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9914   for ac_dir in $PATH; do
9915     IFS="$lt_save_ifs"
9916     test -z "$ac_dir" && ac_dir=.
9917     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9918       lt_cv_path_LD="$ac_dir/$ac_prog"
9919       # Check to see if the program is GNU ld.  I'd rather use --version,
9920       # but apparently some GNU ld's only accept -v.
9921       # Break only if it was the GNU/non-GNU ld that we prefer.
9922       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9923       *GNU* | *'with BFD'*)
9924         test "$with_gnu_ld" != no && break
9925         ;;
9926       *)
9927         test "$with_gnu_ld" != yes && break
9928         ;;
9929       esac
9930     fi
9931   done
9932   IFS="$lt_save_ifs"
9933 else
9934   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9935 fi
9936 fi
9937
9938 LD="$lt_cv_path_LD"
9939 if test -n "$LD"; then
9940   echo "$as_me:$LINENO: result: $LD" >&5
9941 echo "${ECHO_T}$LD" >&6
9942 else
9943   echo "$as_me:$LINENO: result: no" >&5
9944 echo "${ECHO_T}no" >&6
9945 fi
9946 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9947 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9948    { (exit 1); exit 1; }; }
9949 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9950 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9951 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9952   echo $ECHO_N "(cached) $ECHO_C" >&6
9953 else
9954   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9955 case `$LD -v 2>&1 </dev/null` in
9956 *GNU* | *'with BFD'*)
9957   lt_cv_prog_gnu_ld=yes
9958   ;;
9959 *)
9960   lt_cv_prog_gnu_ld=no
9961   ;;
9962 esac
9963 fi
9964 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9965 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9966 with_gnu_ld=$lt_cv_prog_gnu_ld
9967
9968
9969 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9970 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9971 if test "${lt_cv_ld_reload_flag+set}" = set; then
9972   echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974   lt_cv_ld_reload_flag='-r'
9975 fi
9976 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9977 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9978 reload_flag=$lt_cv_ld_reload_flag
9979 case $reload_flag in
9980 "" | " "*) ;;
9981 *) reload_flag=" $reload_flag" ;;
9982 esac
9983 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9984 case $host_os in
9985   darwin*)
9986     if test "$GCC" = yes; then
9987       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9988     else
9989       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9990     fi
9991     ;;
9992 esac
9993
9994 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9995 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9996 if test "${lt_cv_deplibs_check_method+set}" = set; then
9997   echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999   lt_cv_file_magic_cmd='$MAGIC_CMD'
10000 lt_cv_file_magic_test_file=
10001 lt_cv_deplibs_check_method='unknown'
10002 # Need to set the preceding variable on all platforms that support
10003 # interlibrary dependencies.
10004 # 'none' -- dependencies not supported.
10005 # `unknown' -- same as none, but documents that we really don't know.
10006 # 'pass_all' -- all dependencies passed with no checks.
10007 # 'test_compile' -- check by making test program.
10008 # 'file_magic [[regex]]' -- check by looking for files in library path
10009 # which responds to the $file_magic_cmd with a given extended regex.
10010 # If you have `file' or equivalent on your system and you're not sure
10011 # whether `pass_all' will *always* work, you probably want this one.
10012
10013 case $host_os in
10014 aix4* | aix5*)
10015   lt_cv_deplibs_check_method=pass_all
10016   ;;
10017
10018 beos*)
10019   lt_cv_deplibs_check_method=pass_all
10020   ;;
10021
10022 bsdi[45]*)
10023   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10024   lt_cv_file_magic_cmd='/usr/bin/file -L'
10025   lt_cv_file_magic_test_file=/shlib/libc.so
10026   ;;
10027
10028 cygwin*)
10029   # func_win32_libid is a shell function defined in ltmain.sh
10030   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10031   lt_cv_file_magic_cmd='func_win32_libid'
10032   ;;
10033
10034 mingw* | pw32*)
10035   # Base MSYS/MinGW do not provide the 'file' command needed by
10036   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10037   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10038   lt_cv_file_magic_cmd='$OBJDUMP -f'
10039   ;;
10040
10041 darwin* | rhapsody*)
10042   lt_cv_deplibs_check_method=pass_all
10043   ;;
10044
10045 freebsd* | kfreebsd*-gnu)
10046   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10047     case $host_cpu in
10048     i*86 )
10049       # Not sure whether the presence of OpenBSD here was a mistake.
10050       # Let's accept both of them until this is cleared up.
10051       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10052       lt_cv_file_magic_cmd=/usr/bin/file
10053       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10054       ;;
10055     esac
10056   else
10057     lt_cv_deplibs_check_method=pass_all
10058   fi
10059   ;;
10060
10061 gnu*)
10062   lt_cv_deplibs_check_method=pass_all
10063   ;;
10064
10065 hpux10.20* | hpux11*)
10066   lt_cv_file_magic_cmd=/usr/bin/file
10067   case "$host_cpu" in
10068   ia64*)
10069     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10070     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10071     ;;
10072   hppa*64*)
10073     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]'
10074     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10075     ;;
10076   *)
10077     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10078     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10079     ;;
10080   esac
10081   ;;
10082
10083 irix5* | irix6* | nonstopux*)
10084   case $LD in
10085   *-32|*"-32 ") libmagic=32-bit;;
10086   *-n32|*"-n32 ") libmagic=N32;;
10087   *-64|*"-64 ") libmagic=64-bit;;
10088   *) libmagic=never-match;;
10089   esac
10090   lt_cv_deplibs_check_method=pass_all
10091   ;;
10092
10093 # This must be Linux ELF.
10094 linux*)
10095   lt_cv_deplibs_check_method=pass_all
10096   ;;
10097
10098 netbsd*)
10099   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10100     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10101   else
10102     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10103   fi
10104   ;;
10105
10106 newos6*)
10107   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10108   lt_cv_file_magic_cmd=/usr/bin/file
10109   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10110   ;;
10111
10112 nto-qnx*)
10113   lt_cv_deplibs_check_method=unknown
10114   ;;
10115
10116 openbsd*)
10117   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10118     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10119   else
10120     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10121   fi
10122   ;;
10123
10124 osf3* | osf4* | osf5*)
10125   lt_cv_deplibs_check_method=pass_all
10126   ;;
10127
10128 sco3.2v5*)
10129   lt_cv_deplibs_check_method=pass_all
10130   ;;
10131
10132 solaris*)
10133   lt_cv_deplibs_check_method=pass_all
10134   ;;
10135
10136 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10137   case $host_vendor in
10138   motorola)
10139     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]'
10140     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10141     ;;
10142   ncr)
10143     lt_cv_deplibs_check_method=pass_all
10144     ;;
10145   sequent)
10146     lt_cv_file_magic_cmd='/bin/file'
10147     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10148     ;;
10149   sni)
10150     lt_cv_file_magic_cmd='/bin/file'
10151     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10152     lt_cv_file_magic_test_file=/lib/libc.so
10153     ;;
10154   siemens)
10155     lt_cv_deplibs_check_method=pass_all
10156     ;;
10157   esac
10158   ;;
10159
10160 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10161   lt_cv_deplibs_check_method=pass_all
10162   ;;
10163 esac
10164
10165 fi
10166 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10167 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10168 file_magic_cmd=$lt_cv_file_magic_cmd
10169 deplibs_check_method=$lt_cv_deplibs_check_method
10170 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10171
10172
10173
10174 # If no C compiler was specified, use CC.
10175 LTCC=${LTCC-"$CC"}
10176
10177 # Allow CC to be a program name with arguments.
10178 compiler=$CC
10179
10180 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10181 if test "${enable_libtool_lock+set}" = set; then
10182   enableval="$enable_libtool_lock"
10183
10184 fi;
10185 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10186
10187 # Some flags need to be propagated to the compiler or linker for good
10188 # libtool support.
10189 case $host in
10190 ia64-*-hpux*)
10191   # Find out which ABI we are using.
10192   echo 'int i;' > conftest.$ac_ext
10193   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194   (eval $ac_compile) 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); }; then
10198     case `/usr/bin/file conftest.$ac_objext` in
10199     *ELF-32*)
10200       HPUX_IA64_MODE="32"
10201       ;;
10202     *ELF-64*)
10203       HPUX_IA64_MODE="64"
10204       ;;
10205     esac
10206   fi
10207   rm -rf conftest*
10208   ;;
10209 *-*-irix6*)
10210   # Find out which ABI we are using.
10211   echo '#line 10211 "configure"' > conftest.$ac_ext
10212   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10213   (eval $ac_compile) 2>&5
10214   ac_status=$?
10215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216   (exit $ac_status); }; then
10217    if test "$lt_cv_prog_gnu_ld" = yes; then
10218     case `/usr/bin/file conftest.$ac_objext` in
10219     *32-bit*)
10220       LD="${LD-ld} -melf32bsmip"
10221       ;;
10222     *N32*)
10223       LD="${LD-ld} -melf32bmipn32"
10224       ;;
10225     *64-bit*)
10226       LD="${LD-ld} -melf64bmip"
10227       ;;
10228     esac
10229    else
10230     case `/usr/bin/file conftest.$ac_objext` in
10231     *32-bit*)
10232       LD="${LD-ld} -32"
10233       ;;
10234     *N32*)
10235       LD="${LD-ld} -n32"
10236       ;;
10237     *64-bit*)
10238       LD="${LD-ld} -64"
10239       ;;
10240     esac
10241    fi
10242   fi
10243   rm -rf conftest*
10244   ;;
10245
10246 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10247   # Find out which ABI we are using.
10248   echo 'int i;' > conftest.$ac_ext
10249   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250   (eval $ac_compile) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; then
10254     case "`/usr/bin/file conftest.o`" in
10255     *32-bit*)
10256       case $host in
10257         x86_64-*linux*)
10258           LD="${LD-ld} -m elf_i386"
10259           ;;
10260         ppc64-*linux*|powerpc64-*linux*)
10261           LD="${LD-ld} -m elf32ppclinux"
10262           ;;
10263         s390x-*linux*)
10264           LD="${LD-ld} -m elf_s390"
10265           ;;
10266         sparc64-*linux*)
10267           LD="${LD-ld} -m elf32_sparc"
10268           ;;
10269       esac
10270       ;;
10271     *64-bit*)
10272       case $host in
10273         x86_64-*linux*)
10274           LD="${LD-ld} -m elf_x86_64"
10275           ;;
10276         ppc*-*linux*|powerpc*-*linux*)
10277           LD="${LD-ld} -m elf64ppc"
10278           ;;
10279         s390*-*linux*)
10280           LD="${LD-ld} -m elf64_s390"
10281           ;;
10282         sparc*-*linux*)
10283           LD="${LD-ld} -m elf64_sparc"
10284           ;;
10285       esac
10286       ;;
10287     esac
10288   fi
10289   rm -rf conftest*
10290   ;;
10291
10292 *-*-sco3.2v5*)
10293   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10294   SAVE_CFLAGS="$CFLAGS"
10295   CFLAGS="$CFLAGS -belf"
10296   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10297 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10298 if test "${lt_cv_cc_needs_belf+set}" = set; then
10299   echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301   ac_ext=c
10302 ac_cpp='$CPP $CPPFLAGS'
10303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10306
10307      cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h.  */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h.  */
10313
10314 _ACEOF
10315 rm -f conftest.$ac_objext conftest$ac_exeext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317   (eval $ac_link) 2>conftest.er1
10318   ac_status=$?
10319   grep -v '^ *+' conftest.er1 >conftest.err
10320   rm -f conftest.er1
10321   cat conftest.err >&5
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); } &&
10324          { ac_try='test -z "$ac_c_werror_flag"
10325                          || test ! -s conftest.err'
10326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327   (eval $ac_try) 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; } &&
10331          { ac_try='test -s conftest$ac_exeext'
10332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333   (eval $ac_try) 2>&5
10334   ac_status=$?
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); }; }; then
10337   lt_cv_cc_needs_belf=yes
10338 else
10339   echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10341
10342 lt_cv_cc_needs_belf=no
10343 fi
10344 rm -f conftest.err conftest.$ac_objext \
10345       conftest$ac_exeext conftest.$ac_ext
10346      ac_ext=c
10347 ac_cpp='$CPP $CPPFLAGS'
10348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10351
10352 fi
10353 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10354 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10355   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10356     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10357     CFLAGS="$SAVE_CFLAGS"
10358   fi
10359   ;;
10360
10361 esac
10362
10363 need_locks="$enable_libtool_lock"
10364
10365
10366
10367
10368 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10369     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10370     (test "X$CXX" != "Xg++"))) ; then
10371   ac_ext=cc
10372 ac_cpp='$CXXCPP $CPPFLAGS'
10373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10376 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10377 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10378 if test -z "$CXXCPP"; then
10379   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10380   echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382       # Double quotes because CXXCPP needs to be expanded
10383     for CXXCPP in "$CXX -E" "/lib/cpp"
10384     do
10385       ac_preproc_ok=false
10386 for ac_cxx_preproc_warn_flag in '' yes
10387 do
10388   # Use a header file that comes with gcc, so configuring glibc
10389   # with a fresh cross-compiler works.
10390   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10391   # <limits.h> exists even on freestanding compilers.
10392   # On the NeXT, cc -E runs the code through the compiler's parser,
10393   # not just through cpp. "Syntax error" is here to catch this case.
10394   cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h.  */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h.  */
10400 #ifdef __STDC__
10401 # include <limits.h>
10402 #else
10403 # include <assert.h>
10404 #endif
10405                      Syntax error
10406 _ACEOF
10407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10408   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10409   ac_status=$?
10410   grep -v '^ *+' conftest.er1 >conftest.err
10411   rm -f conftest.er1
10412   cat conftest.err >&5
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); } >/dev/null; then
10415   if test -s conftest.err; then
10416     ac_cpp_err=$ac_cxx_preproc_warn_flag
10417     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10418   else
10419     ac_cpp_err=
10420   fi
10421 else
10422   ac_cpp_err=yes
10423 fi
10424 if test -z "$ac_cpp_err"; then
10425   :
10426 else
10427   echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430   # Broken: fails on valid input.
10431 continue
10432 fi
10433 rm -f conftest.err conftest.$ac_ext
10434
10435   # OK, works on sane cases.  Now check whether non-existent headers
10436   # can be detected and how.
10437   cat >conftest.$ac_ext <<_ACEOF
10438 /* confdefs.h.  */
10439 _ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h.  */
10443 #include <ac_nonexistent.h>
10444 _ACEOF
10445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10447   ac_status=$?
10448   grep -v '^ *+' conftest.er1 >conftest.err
10449   rm -f conftest.er1
10450   cat conftest.err >&5
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); } >/dev/null; then
10453   if test -s conftest.err; then
10454     ac_cpp_err=$ac_cxx_preproc_warn_flag
10455     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10456   else
10457     ac_cpp_err=
10458   fi
10459 else
10460   ac_cpp_err=yes
10461 fi
10462 if test -z "$ac_cpp_err"; then
10463   # Broken: success on invalid input.
10464 continue
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469   # Passes both tests.
10470 ac_preproc_ok=:
10471 break
10472 fi
10473 rm -f conftest.err conftest.$ac_ext
10474
10475 done
10476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10477 rm -f conftest.err conftest.$ac_ext
10478 if $ac_preproc_ok; then
10479   break
10480 fi
10481
10482     done
10483     ac_cv_prog_CXXCPP=$CXXCPP
10484
10485 fi
10486   CXXCPP=$ac_cv_prog_CXXCPP
10487 else
10488   ac_cv_prog_CXXCPP=$CXXCPP
10489 fi
10490 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10491 echo "${ECHO_T}$CXXCPP" >&6
10492 ac_preproc_ok=false
10493 for ac_cxx_preproc_warn_flag in '' yes
10494 do
10495   # Use a header file that comes with gcc, so configuring glibc
10496   # with a fresh cross-compiler works.
10497   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10498   # <limits.h> exists even on freestanding compilers.
10499   # On the NeXT, cc -E runs the code through the compiler's parser,
10500   # not just through cpp. "Syntax error" is here to catch this case.
10501   cat >conftest.$ac_ext <<_ACEOF
10502 /* confdefs.h.  */
10503 _ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h.  */
10507 #ifdef __STDC__
10508 # include <limits.h>
10509 #else
10510 # include <assert.h>
10511 #endif
10512                      Syntax error
10513 _ACEOF
10514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10515   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10516   ac_status=$?
10517   grep -v '^ *+' conftest.er1 >conftest.err
10518   rm -f conftest.er1
10519   cat conftest.err >&5
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); } >/dev/null; then
10522   if test -s conftest.err; then
10523     ac_cpp_err=$ac_cxx_preproc_warn_flag
10524     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10525   else
10526     ac_cpp_err=
10527   fi
10528 else
10529   ac_cpp_err=yes
10530 fi
10531 if test -z "$ac_cpp_err"; then
10532   :
10533 else
10534   echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.$ac_ext >&5
10536
10537   # Broken: fails on valid input.
10538 continue
10539 fi
10540 rm -f conftest.err conftest.$ac_ext
10541
10542   # OK, works on sane cases.  Now check whether non-existent headers
10543   # can be detected and how.
10544   cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h.  */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h.  */
10550 #include <ac_nonexistent.h>
10551 _ACEOF
10552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10554   ac_status=$?
10555   grep -v '^ *+' conftest.er1 >conftest.err
10556   rm -f conftest.er1
10557   cat conftest.err >&5
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); } >/dev/null; then
10560   if test -s conftest.err; then
10561     ac_cpp_err=$ac_cxx_preproc_warn_flag
10562     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10563   else
10564     ac_cpp_err=
10565   fi
10566 else
10567   ac_cpp_err=yes
10568 fi
10569 if test -z "$ac_cpp_err"; then
10570   # Broken: success on invalid input.
10571 continue
10572 else
10573   echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10575
10576   # Passes both tests.
10577 ac_preproc_ok=:
10578 break
10579 fi
10580 rm -f conftest.err conftest.$ac_ext
10581
10582 done
10583 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10584 rm -f conftest.err conftest.$ac_ext
10585 if $ac_preproc_ok; then
10586   :
10587 else
10588   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10589 See \`config.log' for more details." >&5
10590 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10591 See \`config.log' for more details." >&2;}
10592    { (exit 1); exit 1; }; }
10593 fi
10594
10595 ac_ext=cc
10596 ac_cpp='$CXXCPP $CPPFLAGS'
10597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10600
10601 fi
10602
10603
10604 ac_ext=f
10605 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10606 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10607 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10608 if test -n "$ac_tool_prefix"; then
10609   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10610   do
10611     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10613 echo "$as_me:$LINENO: checking for $ac_word" >&5
10614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10615 if test "${ac_cv_prog_F77+set}" = set; then
10616   echo $ECHO_N "(cached) $ECHO_C" >&6
10617 else
10618   if test -n "$F77"; then
10619   ac_cv_prog_F77="$F77" # Let the user override the test.
10620 else
10621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10622 for as_dir in $PATH
10623 do
10624   IFS=$as_save_IFS
10625   test -z "$as_dir" && as_dir=.
10626   for ac_exec_ext in '' $ac_executable_extensions; do
10627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10628     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10630     break 2
10631   fi
10632 done
10633 done
10634
10635 fi
10636 fi
10637 F77=$ac_cv_prog_F77
10638 if test -n "$F77"; then
10639   echo "$as_me:$LINENO: result: $F77" >&5
10640 echo "${ECHO_T}$F77" >&6
10641 else
10642   echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6
10644 fi
10645
10646     test -n "$F77" && break
10647   done
10648 fi
10649 if test -z "$F77"; then
10650   ac_ct_F77=$F77
10651   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10652 do
10653   # Extract the first word of "$ac_prog", so it can be a program name with args.
10654 set dummy $ac_prog; ac_word=$2
10655 echo "$as_me:$LINENO: checking for $ac_word" >&5
10656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10657 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10658   echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10660   if test -n "$ac_ct_F77"; then
10661   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10662 else
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10665 do
10666   IFS=$as_save_IFS
10667   test -z "$as_dir" && as_dir=.
10668   for ac_exec_ext in '' $ac_executable_extensions; do
10669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10670     ac_cv_prog_ac_ct_F77="$ac_prog"
10671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10672     break 2
10673   fi
10674 done
10675 done
10676
10677 fi
10678 fi
10679 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10680 if test -n "$ac_ct_F77"; then
10681   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10682 echo "${ECHO_T}$ac_ct_F77" >&6
10683 else
10684   echo "$as_me:$LINENO: result: no" >&5
10685 echo "${ECHO_T}no" >&6
10686 fi
10687
10688   test -n "$ac_ct_F77" && break
10689 done
10690
10691   F77=$ac_ct_F77
10692 fi
10693
10694
10695 # Provide some information about the compiler.
10696 echo "$as_me:10696:" \
10697      "checking for Fortran 77 compiler version" >&5
10698 ac_compiler=`set X $ac_compile; echo $2`
10699 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10700   (eval $ac_compiler --version </dev/null >&5) 2>&5
10701   ac_status=$?
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); }
10704 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10705   (eval $ac_compiler -v </dev/null >&5) 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); }
10709 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10710   (eval $ac_compiler -V </dev/null >&5) 2>&5
10711   ac_status=$?
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); }
10714 rm -f a.out
10715
10716 # If we don't use `.F' as extension, the preprocessor is not run on the
10717 # input file.  (Note that this only needs to work for GNU compilers.)
10718 ac_save_ext=$ac_ext
10719 ac_ext=F
10720 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10721 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10722 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10723   echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725   cat >conftest.$ac_ext <<_ACEOF
10726       program main
10727 #ifndef __GNUC__
10728        choke me
10729 #endif
10730
10731       end
10732 _ACEOF
10733 rm -f conftest.$ac_objext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10735   (eval $ac_compile) 2>conftest.er1
10736   ac_status=$?
10737   grep -v '^ *+' conftest.er1 >conftest.err
10738   rm -f conftest.er1
10739   cat conftest.err >&5
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); } &&
10742          { ac_try='test -z "$ac_f77_werror_flag"
10743                          || test ! -s conftest.err'
10744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745   (eval $ac_try) 2>&5
10746   ac_status=$?
10747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748   (exit $ac_status); }; } &&
10749          { ac_try='test -s conftest.$ac_objext'
10750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751   (eval $ac_try) 2>&5
10752   ac_status=$?
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); }; }; then
10755   ac_compiler_gnu=yes
10756 else
10757   echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760 ac_compiler_gnu=no
10761 fi
10762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10763 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10764
10765 fi
10766 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10767 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10768 ac_ext=$ac_save_ext
10769 ac_test_FFLAGS=${FFLAGS+set}
10770 ac_save_FFLAGS=$FFLAGS
10771 FFLAGS=
10772 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10773 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10774 if test "${ac_cv_prog_f77_g+set}" = set; then
10775   echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777   FFLAGS=-g
10778 cat >conftest.$ac_ext <<_ACEOF
10779       program main
10780
10781       end
10782 _ACEOF
10783 rm -f conftest.$ac_objext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10785   (eval $ac_compile) 2>conftest.er1
10786   ac_status=$?
10787   grep -v '^ *+' conftest.er1 >conftest.err
10788   rm -f conftest.er1
10789   cat conftest.err >&5
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); } &&
10792          { ac_try='test -z "$ac_f77_werror_flag"
10793                          || test ! -s conftest.err'
10794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795   (eval $ac_try) 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); }; } &&
10799          { ac_try='test -s conftest.$ac_objext'
10800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801   (eval $ac_try) 2>&5
10802   ac_status=$?
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); }; }; then
10805   ac_cv_prog_f77_g=yes
10806 else
10807   echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10809
10810 ac_cv_prog_f77_g=no
10811 fi
10812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10813
10814 fi
10815 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10816 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10817 if test "$ac_test_FFLAGS" = set; then
10818   FFLAGS=$ac_save_FFLAGS
10819 elif test $ac_cv_prog_f77_g = yes; then
10820   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10821     FFLAGS="-g -O2"
10822   else
10823     FFLAGS="-g"
10824   fi
10825 else
10826   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10827     FFLAGS="-O2"
10828   else
10829     FFLAGS=
10830   fi
10831 fi
10832
10833 G77=`test $ac_compiler_gnu = yes && echo yes`
10834 ac_ext=c
10835 ac_cpp='$CPP $CPPFLAGS'
10836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10839
10840
10841
10842 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10843
10844 # find the maximum length of command line arguments
10845 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10846 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10847 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10848   echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850     i=0
10851   teststring="ABCD"
10852
10853   case $build_os in
10854   msdosdjgpp*)
10855     # On DJGPP, this test can blow up pretty badly due to problems in libc
10856     # (any single argument exceeding 2000 bytes causes a buffer overrun
10857     # during glob expansion).  Even if it were fixed, the result of this
10858     # check would be larger than it should be.
10859     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10860     ;;
10861
10862   gnu*)
10863     # Under GNU Hurd, this test is not required because there is
10864     # no limit to the length of command line arguments.
10865     # Libtool will interpret -1 as no limit whatsoever
10866     lt_cv_sys_max_cmd_len=-1;
10867     ;;
10868
10869   cygwin* | mingw*)
10870     # On Win9x/ME, this test blows up -- it succeeds, but takes
10871     # about 5 minutes as the teststring grows exponentially.
10872     # Worse, since 9x/ME are not pre-emptively multitasking,
10873     # you end up with a "frozen" computer, even though with patience
10874     # the test eventually succeeds (with a max line length of 256k).
10875     # Instead, let's just punt: use the minimum linelength reported by
10876     # all of the supported platforms: 8192 (on NT/2K/XP).
10877     lt_cv_sys_max_cmd_len=8192;
10878     ;;
10879
10880   amigaos*)
10881     # On AmigaOS with pdksh, this test takes hours, literally.
10882     # So we just punt and use a minimum line length of 8192.
10883     lt_cv_sys_max_cmd_len=8192;
10884     ;;
10885
10886   netbsd* | freebsd* | openbsd* | darwin* )
10887     # This has been around since 386BSD, at least.  Likely further.
10888     if test -x /sbin/sysctl; then
10889       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10890     elif test -x /usr/sbin/sysctl; then
10891       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10892     else
10893       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10894     fi
10895     # And add a safety zone
10896     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10897     ;;
10898
10899  *)
10900     # If test is not a shell built-in, we'll probably end up computing a
10901     # maximum length that is only half of the actual maximum length, but
10902     # we can't tell.
10903     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10904     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10905                = "XX$teststring") >/dev/null 2>&1 &&
10906             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10907             lt_cv_sys_max_cmd_len=$new_result &&
10908             test $i != 17 # 1/2 MB should be enough
10909     do
10910       i=`expr $i + 1`
10911       teststring=$teststring$teststring
10912     done
10913     teststring=
10914     # Add a significant safety factor because C++ compilers can tack on massive
10915     # amounts of additional arguments before passing them to the linker.
10916     # It appears as though 1/2 is a usable value.
10917     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10918     ;;
10919   esac
10920
10921 fi
10922
10923 if test -n $lt_cv_sys_max_cmd_len ; then
10924   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10925 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10926 else
10927   echo "$as_me:$LINENO: result: none" >&5
10928 echo "${ECHO_T}none" >&6
10929 fi
10930
10931
10932
10933
10934 # Check for command to grab the raw symbol name followed by C symbol from nm.
10935 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10936 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10937 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10938   echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940
10941 # These are sane defaults that work on at least a few old systems.
10942 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10943
10944 # Character class describing NM global symbol codes.
10945 symcode='[BCDEGRST]'
10946
10947 # Regexp to match symbols that can be accessed directly from C.
10948 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10949
10950 # Transform the above into a raw symbol and a C symbol.
10951 symxfrm='\1 \2\3 \3'
10952
10953 # Transform an extracted symbol line into a proper C declaration
10954 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10955
10956 # Transform an extracted symbol line into symbol name and symbol address
10957 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'"
10958
10959 # Define system-specific variables.
10960 case $host_os in
10961 aix*)
10962   symcode='[BCDT]'
10963   ;;
10964 cygwin* | mingw* | pw32*)
10965   symcode='[ABCDGISTW]'
10966   ;;
10967 hpux*) # Its linker distinguishes data from code symbols
10968   if test "$host_cpu" = ia64; then
10969     symcode='[ABCDEGRST]'
10970   fi
10971   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10972   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'"
10973   ;;
10974 linux*)
10975   if test "$host_cpu" = ia64; then
10976     symcode='[ABCDGIRSTW]'
10977     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10978     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'"
10979   fi
10980   ;;
10981 irix* | nonstopux*)
10982   symcode='[BCDEGRST]'
10983   ;;
10984 osf*)
10985   symcode='[BCDEGQRST]'
10986   ;;
10987 solaris* | sysv5*)
10988   symcode='[BDRT]'
10989   ;;
10990 sysv4)
10991   symcode='[DFNSTU]'
10992   ;;
10993 esac
10994
10995 # Handle CRLF in mingw tool chain
10996 opt_cr=
10997 case $build_os in
10998 mingw*)
10999   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11000   ;;
11001 esac
11002
11003 # If we're using GNU nm, then use its standard symbol codes.
11004 case `$NM -V 2>&1` in
11005 *GNU* | *'with BFD'*)
11006   symcode='[ABCDGIRSTW]' ;;
11007 esac
11008
11009 # Try without a prefix undercore, then with it.
11010 for ac_symprfx in "" "_"; do
11011
11012   # Write the raw and C identifiers.
11013   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11014
11015   # Check to see that the pipe works correctly.
11016   pipe_works=no
11017
11018   rm -f conftest*
11019   cat > conftest.$ac_ext <<EOF
11020 #ifdef __cplusplus
11021 extern "C" {
11022 #endif
11023 char nm_test_var;
11024 void nm_test_func(){}
11025 #ifdef __cplusplus
11026 }
11027 #endif
11028 int main(){nm_test_var='a';nm_test_func();return(0);}
11029 EOF
11030
11031   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11032   (eval $ac_compile) 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }; then
11036     # Now try to grab the symbols.
11037     nlist=conftest.nm
11038     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11039   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } && test -s "$nlist"; then
11043       # Try sorting and uniquifying the output.
11044       if sort "$nlist" | uniq > "$nlist"T; then
11045         mv -f "$nlist"T "$nlist"
11046       else
11047         rm -f "$nlist"T
11048       fi
11049
11050       # Make sure that we snagged all the symbols we need.
11051       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11052         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11053           cat <<EOF > conftest.$ac_ext
11054 #ifdef __cplusplus
11055 extern "C" {
11056 #endif
11057
11058 EOF
11059           # Now generate the symbol file.
11060           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11061
11062           cat <<EOF >> conftest.$ac_ext
11063 #if defined (__STDC__) && __STDC__
11064 # define lt_ptr_t void *
11065 #else
11066 # define lt_ptr_t char *
11067 # define const
11068 #endif
11069
11070 /* The mapping between symbol names and symbols. */
11071 const struct {
11072   const char *name;
11073   lt_ptr_t address;
11074 }
11075 lt_preloaded_symbols[] =
11076 {
11077 EOF
11078           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11079           cat <<\EOF >> conftest.$ac_ext
11080   {0, (lt_ptr_t) 0}
11081 };
11082
11083 #ifdef __cplusplus
11084 }
11085 #endif
11086 EOF
11087           # Now try linking the two files.
11088           mv conftest.$ac_objext conftstm.$ac_objext
11089           lt_save_LIBS="$LIBS"
11090           lt_save_CFLAGS="$CFLAGS"
11091           LIBS="conftstm.$ac_objext"
11092           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11093           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11094   (eval $ac_link) 2>&5
11095   ac_status=$?
11096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11098             pipe_works=yes
11099           fi
11100           LIBS="$lt_save_LIBS"
11101           CFLAGS="$lt_save_CFLAGS"
11102         else
11103           echo "cannot find nm_test_func in $nlist" >&5
11104         fi
11105       else
11106         echo "cannot find nm_test_var in $nlist" >&5
11107       fi
11108     else
11109       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11110     fi
11111   else
11112     echo "$progname: failed program was:" >&5
11113     cat conftest.$ac_ext >&5
11114   fi
11115   rm -f conftest* conftst*
11116
11117   # Do not use the global_symbol_pipe unless it works.
11118   if test "$pipe_works" = yes; then
11119     break
11120   else
11121     lt_cv_sys_global_symbol_pipe=
11122   fi
11123 done
11124
11125 fi
11126
11127 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11128   lt_cv_sys_global_symbol_to_cdecl=
11129 fi
11130 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11131   echo "$as_me:$LINENO: result: failed" >&5
11132 echo "${ECHO_T}failed" >&6
11133 else
11134   echo "$as_me:$LINENO: result: ok" >&5
11135 echo "${ECHO_T}ok" >&6
11136 fi
11137
11138 echo "$as_me:$LINENO: checking for objdir" >&5
11139 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11140 if test "${lt_cv_objdir+set}" = set; then
11141   echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143   rm -f .libs 2>/dev/null
11144 mkdir .libs 2>/dev/null
11145 if test -d .libs; then
11146   lt_cv_objdir=.libs
11147 else
11148   # MS-DOS does not allow filenames that begin with a dot.
11149   lt_cv_objdir=_libs
11150 fi
11151 rmdir .libs 2>/dev/null
11152 fi
11153 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11154 echo "${ECHO_T}$lt_cv_objdir" >&6
11155 objdir=$lt_cv_objdir
11156
11157
11158
11159
11160
11161 case $host_os in
11162 aix3*)
11163   # AIX sometimes has problems with the GCC collect2 program.  For some
11164   # reason, if we set the COLLECT_NAMES environment variable, the problems
11165   # vanish in a puff of smoke.
11166   if test "X${COLLECT_NAMES+set}" != Xset; then
11167     COLLECT_NAMES=
11168     export COLLECT_NAMES
11169   fi
11170   ;;
11171 esac
11172
11173 # Sed substitution that helps us do robust quoting.  It backslashifies
11174 # metacharacters that are still active within double-quoted strings.
11175 Xsed='sed -e s/^X//'
11176 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11177
11178 # Same as above, but do not quote variable references.
11179 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11180
11181 # Sed substitution to delay expansion of an escaped shell variable in a
11182 # double_quote_subst'ed string.
11183 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11184
11185 # Sed substitution to avoid accidental globbing in evaled expressions
11186 no_glob_subst='s/\*/\\\*/g'
11187
11188 # Constants:
11189 rm="rm -f"
11190
11191 # Global variables:
11192 default_ofile=mklib
11193 can_build_shared=yes
11194
11195 # All known linkers require a `.a' archive for static linking (except M$VC,
11196 # which needs '.lib').
11197 libext=a
11198 ltmain="$ac_aux_dir/ltmain.sh"
11199 ofile="$default_ofile"
11200 with_gnu_ld="$lt_cv_prog_gnu_ld"
11201
11202 if test -n "$ac_tool_prefix"; then
11203   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11204 set dummy ${ac_tool_prefix}ar; ac_word=$2
11205 echo "$as_me:$LINENO: checking for $ac_word" >&5
11206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11207 if test "${ac_cv_prog_AR+set}" = set; then
11208   echo $ECHO_N "(cached) $ECHO_C" >&6
11209 else
11210   if test -n "$AR"; then
11211   ac_cv_prog_AR="$AR" # Let the user override the test.
11212 else
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214 for as_dir in $PATH
11215 do
11216   IFS=$as_save_IFS
11217   test -z "$as_dir" && as_dir=.
11218   for ac_exec_ext in '' $ac_executable_extensions; do
11219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11220     ac_cv_prog_AR="${ac_tool_prefix}ar"
11221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11222     break 2
11223   fi
11224 done
11225 done
11226
11227 fi
11228 fi
11229 AR=$ac_cv_prog_AR
11230 if test -n "$AR"; then
11231   echo "$as_me:$LINENO: result: $AR" >&5
11232 echo "${ECHO_T}$AR" >&6
11233 else
11234   echo "$as_me:$LINENO: result: no" >&5
11235 echo "${ECHO_T}no" >&6
11236 fi
11237
11238 fi
11239 if test -z "$ac_cv_prog_AR"; then
11240   ac_ct_AR=$AR
11241   # Extract the first word of "ar", so it can be a program name with args.
11242 set dummy ar; ac_word=$2
11243 echo "$as_me:$LINENO: checking for $ac_word" >&5
11244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11245 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11246   echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248   if test -n "$ac_ct_AR"; then
11249   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11250 else
11251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11253 do
11254   IFS=$as_save_IFS
11255   test -z "$as_dir" && as_dir=.
11256   for ac_exec_ext in '' $ac_executable_extensions; do
11257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11258     ac_cv_prog_ac_ct_AR="ar"
11259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11260     break 2
11261   fi
11262 done
11263 done
11264
11265   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11266 fi
11267 fi
11268 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11269 if test -n "$ac_ct_AR"; then
11270   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11271 echo "${ECHO_T}$ac_ct_AR" >&6
11272 else
11273   echo "$as_me:$LINENO: result: no" >&5
11274 echo "${ECHO_T}no" >&6
11275 fi
11276
11277   AR=$ac_ct_AR
11278 else
11279   AR="$ac_cv_prog_AR"
11280 fi
11281
11282 if test -n "$ac_tool_prefix"; then
11283   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11284 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11285 echo "$as_me:$LINENO: checking for $ac_word" >&5
11286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11287 if test "${ac_cv_prog_RANLIB+set}" = set; then
11288   echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290   if test -n "$RANLIB"; then
11291   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11292 else
11293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294 for as_dir in $PATH
11295 do
11296   IFS=$as_save_IFS
11297   test -z "$as_dir" && as_dir=.
11298   for ac_exec_ext in '' $ac_executable_extensions; do
11299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11300     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11302     break 2
11303   fi
11304 done
11305 done
11306
11307 fi
11308 fi
11309 RANLIB=$ac_cv_prog_RANLIB
11310 if test -n "$RANLIB"; then
11311   echo "$as_me:$LINENO: result: $RANLIB" >&5
11312 echo "${ECHO_T}$RANLIB" >&6
11313 else
11314   echo "$as_me:$LINENO: result: no" >&5
11315 echo "${ECHO_T}no" >&6
11316 fi
11317
11318 fi
11319 if test -z "$ac_cv_prog_RANLIB"; then
11320   ac_ct_RANLIB=$RANLIB
11321   # Extract the first word of "ranlib", so it can be a program name with args.
11322 set dummy ranlib; ac_word=$2
11323 echo "$as_me:$LINENO: checking for $ac_word" >&5
11324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11325 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11326   echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328   if test -n "$ac_ct_RANLIB"; then
11329   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11330 else
11331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332 for as_dir in $PATH
11333 do
11334   IFS=$as_save_IFS
11335   test -z "$as_dir" && as_dir=.
11336   for ac_exec_ext in '' $ac_executable_extensions; do
11337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11338     ac_cv_prog_ac_ct_RANLIB="ranlib"
11339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11340     break 2
11341   fi
11342 done
11343 done
11344
11345   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11346 fi
11347 fi
11348 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11349 if test -n "$ac_ct_RANLIB"; then
11350   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11351 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11352 else
11353   echo "$as_me:$LINENO: result: no" >&5
11354 echo "${ECHO_T}no" >&6
11355 fi
11356
11357   RANLIB=$ac_ct_RANLIB
11358 else
11359   RANLIB="$ac_cv_prog_RANLIB"
11360 fi
11361
11362 if test -n "$ac_tool_prefix"; then
11363   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11364 set dummy ${ac_tool_prefix}strip; ac_word=$2
11365 echo "$as_me:$LINENO: checking for $ac_word" >&5
11366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11367 if test "${ac_cv_prog_STRIP+set}" = set; then
11368   echo $ECHO_N "(cached) $ECHO_C" >&6
11369 else
11370   if test -n "$STRIP"; then
11371   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11372 else
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11375 do
11376   IFS=$as_save_IFS
11377   test -z "$as_dir" && as_dir=.
11378   for ac_exec_ext in '' $ac_executable_extensions; do
11379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11382     break 2
11383   fi
11384 done
11385 done
11386
11387 fi
11388 fi
11389 STRIP=$ac_cv_prog_STRIP
11390 if test -n "$STRIP"; then
11391   echo "$as_me:$LINENO: result: $STRIP" >&5
11392 echo "${ECHO_T}$STRIP" >&6
11393 else
11394   echo "$as_me:$LINENO: result: no" >&5
11395 echo "${ECHO_T}no" >&6
11396 fi
11397
11398 fi
11399 if test -z "$ac_cv_prog_STRIP"; then
11400   ac_ct_STRIP=$STRIP
11401   # Extract the first word of "strip", so it can be a program name with args.
11402 set dummy strip; ac_word=$2
11403 echo "$as_me:$LINENO: checking for $ac_word" >&5
11404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11405 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11406   echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408   if test -n "$ac_ct_STRIP"; then
11409   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11410 else
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $PATH
11413 do
11414   IFS=$as_save_IFS
11415   test -z "$as_dir" && as_dir=.
11416   for ac_exec_ext in '' $ac_executable_extensions; do
11417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11418     ac_cv_prog_ac_ct_STRIP="strip"
11419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11420     break 2
11421   fi
11422 done
11423 done
11424
11425   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11426 fi
11427 fi
11428 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11429 if test -n "$ac_ct_STRIP"; then
11430   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11431 echo "${ECHO_T}$ac_ct_STRIP" >&6
11432 else
11433   echo "$as_me:$LINENO: result: no" >&5
11434 echo "${ECHO_T}no" >&6
11435 fi
11436
11437   STRIP=$ac_ct_STRIP
11438 else
11439   STRIP="$ac_cv_prog_STRIP"
11440 fi
11441
11442
11443 old_CC="$CC"
11444 old_CFLAGS="$CFLAGS"
11445
11446 # Set sane defaults for various variables
11447 test -z "$AR" && AR=ar
11448 test -z "$AR_FLAGS" && AR_FLAGS=cru
11449 test -z "$AS" && AS=as
11450 test -z "$CC" && CC=cc
11451 test -z "$LTCC" && LTCC=$CC
11452 test -z "$DLLTOOL" && DLLTOOL=dlltool
11453 test -z "$LD" && LD=ld
11454 test -z "$LN_S" && LN_S="ln -s"
11455 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11456 test -z "$NM" && NM=nm
11457 test -z "$SED" && SED=sed
11458 test -z "$OBJDUMP" && OBJDUMP=objdump
11459 test -z "$RANLIB" && RANLIB=:
11460 test -z "$STRIP" && STRIP=:
11461 test -z "$ac_objext" && ac_objext=o
11462
11463 # Determine commands to create old-style static archives.
11464 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11465 old_postinstall_cmds='chmod 644 $oldlib'
11466 old_postuninstall_cmds=
11467
11468 if test -n "$RANLIB"; then
11469   case $host_os in
11470   openbsd*)
11471     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11472     ;;
11473   *)
11474     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11475     ;;
11476   esac
11477   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11478 fi
11479
11480 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11481
11482 # Only perform the check for file, if the check method requires it
11483 case $deplibs_check_method in
11484 file_magic*)
11485   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11486     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11487 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11489   echo $ECHO_N "(cached) $ECHO_C" >&6
11490 else
11491   case $MAGIC_CMD in
11492 [\\/*] |  ?:[\\/]*)
11493   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11494   ;;
11495 *)
11496   lt_save_MAGIC_CMD="$MAGIC_CMD"
11497   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11498   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11499   for ac_dir in $ac_dummy; do
11500     IFS="$lt_save_ifs"
11501     test -z "$ac_dir" && ac_dir=.
11502     if test -f $ac_dir/${ac_tool_prefix}file; then
11503       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11504       if test -n "$file_magic_test_file"; then
11505         case $deplibs_check_method in
11506         "file_magic "*)
11507           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11508           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11509           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11510             $EGREP "$file_magic_regex" > /dev/null; then
11511             :
11512           else
11513             cat <<EOF 1>&2
11514
11515 *** Warning: the command libtool uses to detect shared libraries,
11516 *** $file_magic_cmd, produces output that libtool cannot recognize.
11517 *** The result is that libtool may fail to recognize shared libraries
11518 *** as such.  This will affect the creation of libtool libraries that
11519 *** depend on shared libraries, but programs linked with such libtool
11520 *** libraries will work regardless of this problem.  Nevertheless, you
11521 *** may want to report the problem to your system manager and/or to
11522 *** bug-libtool@gnu.org
11523
11524 EOF
11525           fi ;;
11526         esac
11527       fi
11528       break
11529     fi
11530   done
11531   IFS="$lt_save_ifs"
11532   MAGIC_CMD="$lt_save_MAGIC_CMD"
11533   ;;
11534 esac
11535 fi
11536
11537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11538 if test -n "$MAGIC_CMD"; then
11539   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11540 echo "${ECHO_T}$MAGIC_CMD" >&6
11541 else
11542   echo "$as_me:$LINENO: result: no" >&5
11543 echo "${ECHO_T}no" >&6
11544 fi
11545
11546 if test -z "$lt_cv_path_MAGIC_CMD"; then
11547   if test -n "$ac_tool_prefix"; then
11548     echo "$as_me:$LINENO: checking for file" >&5
11549 echo $ECHO_N "checking for file... $ECHO_C" >&6
11550 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11551   echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553   case $MAGIC_CMD in
11554 [\\/*] |  ?:[\\/]*)
11555   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11556   ;;
11557 *)
11558   lt_save_MAGIC_CMD="$MAGIC_CMD"
11559   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11560   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11561   for ac_dir in $ac_dummy; do
11562     IFS="$lt_save_ifs"
11563     test -z "$ac_dir" && ac_dir=.
11564     if test -f $ac_dir/file; then
11565       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11566       if test -n "$file_magic_test_file"; then
11567         case $deplibs_check_method in
11568         "file_magic "*)
11569           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11570           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11571           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11572             $EGREP "$file_magic_regex" > /dev/null; then
11573             :
11574           else
11575             cat <<EOF 1>&2
11576
11577 *** Warning: the command libtool uses to detect shared libraries,
11578 *** $file_magic_cmd, produces output that libtool cannot recognize.
11579 *** The result is that libtool may fail to recognize shared libraries
11580 *** as such.  This will affect the creation of libtool libraries that
11581 *** depend on shared libraries, but programs linked with such libtool
11582 *** libraries will work regardless of this problem.  Nevertheless, you
11583 *** may want to report the problem to your system manager and/or to
11584 *** bug-libtool@gnu.org
11585
11586 EOF
11587           fi ;;
11588         esac
11589       fi
11590       break
11591     fi
11592   done
11593   IFS="$lt_save_ifs"
11594   MAGIC_CMD="$lt_save_MAGIC_CMD"
11595   ;;
11596 esac
11597 fi
11598
11599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11600 if test -n "$MAGIC_CMD"; then
11601   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11602 echo "${ECHO_T}$MAGIC_CMD" >&6
11603 else
11604   echo "$as_me:$LINENO: result: no" >&5
11605 echo "${ECHO_T}no" >&6
11606 fi
11607
11608   else
11609     MAGIC_CMD=:
11610   fi
11611 fi
11612
11613   fi
11614   ;;
11615 esac
11616
11617 enable_dlopen=yes
11618 enable_win32_dll=no
11619
11620 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11621 if test "${enable_libtool_lock+set}" = set; then
11622   enableval="$enable_libtool_lock"
11623
11624 fi;
11625 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11626
11627
11628 # Check whether --with-pic or --without-pic was given.
11629 if test "${with_pic+set}" = set; then
11630   withval="$with_pic"
11631   pic_mode="$withval"
11632 else
11633   pic_mode=default
11634 fi;
11635 test -z "$pic_mode" && pic_mode=default
11636
11637 # Use C for the default configuration in the libtool script
11638 tagname=
11639 lt_save_CC="$CC"
11640 ac_ext=c
11641 ac_cpp='$CPP $CPPFLAGS'
11642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11645
11646
11647 # Source file extension for C test sources.
11648 ac_ext=c
11649
11650 # Object file extension for compiled C test sources.
11651 objext=o
11652 objext=$objext
11653
11654 # Code to be used in simple compile tests
11655 lt_simple_compile_test_code="int some_variable = 0;\n"
11656
11657 # Code to be used in simple link tests
11658 lt_simple_link_test_code='int main(){return(0);}\n'
11659
11660
11661 # If no C compiler was specified, use CC.
11662 LTCC=${LTCC-"$CC"}
11663
11664 # Allow CC to be a program name with arguments.
11665 compiler=$CC
11666
11667
11668 #
11669 # Check for any special shared library compilation flags.
11670 #
11671 lt_prog_cc_shlib=
11672 if test "$GCC" = no; then
11673   case $host_os in
11674   sco3.2v5*)
11675     lt_prog_cc_shlib='-belf'
11676     ;;
11677   esac
11678 fi
11679 if test -n "$lt_prog_cc_shlib"; then
11680   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11681 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11682   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11683   else
11684     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11685 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11686     lt_cv_prog_cc_can_build_shared=no
11687   fi
11688 fi
11689
11690
11691 #
11692 # Check to make sure the static flag actually works.
11693 #
11694 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11695 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11696 if test "${lt_prog_compiler_static_works+set}" = set; then
11697   echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699   lt_prog_compiler_static_works=no
11700    save_LDFLAGS="$LDFLAGS"
11701    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11702    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11703    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11704      # The compiler can only warn and ignore the option if not recognized
11705      # So say no if there are warnings
11706      if test -s conftest.err; then
11707        # Append any errors to the config.log.
11708        cat conftest.err 1>&5
11709      else
11710        lt_prog_compiler_static_works=yes
11711      fi
11712    fi
11713    $rm conftest*
11714    LDFLAGS="$save_LDFLAGS"
11715
11716 fi
11717 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11718 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11719
11720 if test x"$lt_prog_compiler_static_works" = xyes; then
11721     :
11722 else
11723     lt_prog_compiler_static=
11724 fi
11725
11726
11727
11728
11729 lt_prog_compiler_no_builtin_flag=
11730
11731 if test "$GCC" = yes; then
11732   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11733
11734
11735 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11736 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11737 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11738   echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740   lt_cv_prog_compiler_rtti_exceptions=no
11741   ac_outfile=conftest.$ac_objext
11742    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11743    lt_compiler_flag="-fno-rtti -fno-exceptions"
11744    # Insert the option either (1) after the last *FLAGS variable, or
11745    # (2) before a word containing "conftest.", or (3) at the end.
11746    # Note that $ac_compile itself does not contain backslashes and begins
11747    # with a dollar sign (not a hyphen), so the echo should work correctly.
11748    # The option is referenced via a variable to avoid confusing sed.
11749    lt_compile=`echo "$ac_compile" | $SED \
11750    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11751    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11752    -e 's:$: $lt_compiler_flag:'`
11753    (eval echo "\"\$as_me:11753: $lt_compile\"" >&5)
11754    (eval "$lt_compile" 2>conftest.err)
11755    ac_status=$?
11756    cat conftest.err >&5
11757    echo "$as_me:11757: \$? = $ac_status" >&5
11758    if (exit $ac_status) && test -s "$ac_outfile"; then
11759      # The compiler can only warn and ignore the option if not recognized
11760      # So say no if there are warnings
11761      if test ! -s conftest.err; then
11762        lt_cv_prog_compiler_rtti_exceptions=yes
11763      fi
11764    fi
11765    $rm conftest*
11766
11767 fi
11768 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11769 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11770
11771 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11772     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11773 else
11774     :
11775 fi
11776
11777 fi
11778
11779 lt_prog_compiler_wl=
11780 lt_prog_compiler_pic=
11781 lt_prog_compiler_static=
11782
11783 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11784 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11785
11786   if test "$GCC" = yes; then
11787     lt_prog_compiler_wl='-Wl,'
11788     lt_prog_compiler_static='-static'
11789
11790     case $host_os in
11791       aix*)
11792       # All AIX code is PIC.
11793       if test "$host_cpu" = ia64; then
11794         # AIX 5 now supports IA64 processor
11795         lt_prog_compiler_static='-Bstatic'
11796       fi
11797       ;;
11798
11799     amigaos*)
11800       # FIXME: we need at least 68020 code to build shared libraries, but
11801       # adding the `-m68020' flag to GCC prevents building anything better,
11802       # like `-m68040'.
11803       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11804       ;;
11805
11806     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11807       # PIC is the default for these OSes.
11808       ;;
11809
11810     mingw* | pw32* | os2*)
11811       # This hack is so that the source file can tell whether it is being
11812       # built for inclusion in a dll (and should export symbols for example).
11813       lt_prog_compiler_pic='-DDLL_EXPORT'
11814       ;;
11815
11816     darwin* | rhapsody*)
11817       # PIC is the default on this platform
11818       # Common symbols not allowed in MH_DYLIB files
11819       lt_prog_compiler_pic='-fno-common'
11820       ;;
11821
11822     msdosdjgpp*)
11823       # Just because we use GCC doesn't mean we suddenly get shared libraries
11824       # on systems that don't support them.
11825       lt_prog_compiler_can_build_shared=no
11826       enable_shared=no
11827       ;;
11828
11829     sysv4*MP*)
11830       if test -d /usr/nec; then
11831         lt_prog_compiler_pic=-Kconform_pic
11832       fi
11833       ;;
11834
11835     hpux*)
11836       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11837       # not for PA HP-UX.
11838       case "$host_cpu" in
11839       hppa*64*|ia64*)
11840         # +Z the default
11841         ;;
11842       *)
11843         lt_prog_compiler_pic='-fPIC'
11844         ;;
11845       esac
11846       ;;
11847
11848     *)
11849       lt_prog_compiler_pic='-fPIC'
11850       ;;
11851     esac
11852   else
11853     # PORTME Check for flag to pass linker flags through the system compiler.
11854     case $host_os in
11855     aix*)
11856       lt_prog_compiler_wl='-Wl,'
11857       if test "$host_cpu" = ia64; then
11858         # AIX 5 now supports IA64 processor
11859         lt_prog_compiler_static='-Bstatic'
11860       else
11861         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11862       fi
11863       ;;
11864       darwin*)
11865         # PIC is the default on this platform
11866         # Common symbols not allowed in MH_DYLIB files
11867        case "$cc_basename" in
11868          xlc*)
11869          lt_prog_compiler_pic='-qnocommon'
11870          lt_prog_compiler_wl='-Wl,'
11871          ;;
11872        esac
11873        ;;
11874
11875     mingw* | pw32* | os2*)
11876       # This hack is so that the source file can tell whether it is being
11877       # built for inclusion in a dll (and should export symbols for example).
11878       lt_prog_compiler_pic='-DDLL_EXPORT'
11879       ;;
11880
11881     hpux9* | hpux10* | hpux11*)
11882       lt_prog_compiler_wl='-Wl,'
11883       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11884       # not for PA HP-UX.
11885       case "$host_cpu" in
11886       hppa*64*|ia64*)
11887         # +Z the default
11888         ;;
11889       *)
11890         lt_prog_compiler_pic='+Z'
11891         ;;
11892       esac
11893       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11894       lt_prog_compiler_static='${wl}-a ${wl}archive'
11895       ;;
11896
11897     irix5* | irix6* | nonstopux*)
11898       lt_prog_compiler_wl='-Wl,'
11899       # PIC (with -KPIC) is the default.
11900       lt_prog_compiler_static='-non_shared'
11901       ;;
11902
11903     newsos6)
11904       lt_prog_compiler_pic='-KPIC'
11905       lt_prog_compiler_static='-Bstatic'
11906       ;;
11907
11908     linux*)
11909       case $CC in
11910       icc* | ecc*)
11911         lt_prog_compiler_wl='-Wl,'
11912         lt_prog_compiler_pic='-KPIC'
11913         lt_prog_compiler_static='-static'
11914         ;;
11915       ccc*)
11916         lt_prog_compiler_wl='-Wl,'
11917         # All Alpha code is PIC.
11918         lt_prog_compiler_static='-non_shared'
11919         ;;
11920       esac
11921       ;;
11922
11923     osf3* | osf4* | osf5*)
11924       lt_prog_compiler_wl='-Wl,'
11925       # All OSF/1 code is PIC.
11926       lt_prog_compiler_static='-non_shared'
11927       ;;
11928
11929     sco3.2v5*)
11930       lt_prog_compiler_pic='-Kpic'
11931       lt_prog_compiler_static='-dn'
11932       ;;
11933
11934     solaris*)
11935       lt_prog_compiler_wl='-Wl,'
11936       lt_prog_compiler_pic='-KPIC'
11937       lt_prog_compiler_static='-Bstatic'
11938       ;;
11939
11940     sunos4*)
11941       lt_prog_compiler_wl='-Qoption ld '
11942       lt_prog_compiler_pic='-PIC'
11943       lt_prog_compiler_static='-Bstatic'
11944       ;;
11945
11946     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11947       lt_prog_compiler_wl='-Wl,'
11948       lt_prog_compiler_pic='-KPIC'
11949       lt_prog_compiler_static='-Bstatic'
11950       ;;
11951
11952     sysv4*MP*)
11953       if test -d /usr/nec ;then
11954         lt_prog_compiler_pic='-Kconform_pic'
11955         lt_prog_compiler_static='-Bstatic'
11956       fi
11957       ;;
11958
11959     uts4*)
11960       lt_prog_compiler_pic='-pic'
11961       lt_prog_compiler_static='-Bstatic'
11962       ;;
11963
11964     *)
11965       lt_prog_compiler_can_build_shared=no
11966       ;;
11967     esac
11968   fi
11969
11970 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11971 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11972
11973 #
11974 # Check to make sure the PIC flag actually works.
11975 #
11976 if test -n "$lt_prog_compiler_pic"; then
11977
11978 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11979 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11980 if test "${lt_prog_compiler_pic_works+set}" = set; then
11981   echo $ECHO_N "(cached) $ECHO_C" >&6
11982 else
11983   lt_prog_compiler_pic_works=no
11984   ac_outfile=conftest.$ac_objext
11985    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11986    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11987    # Insert the option either (1) after the last *FLAGS variable, or
11988    # (2) before a word containing "conftest.", or (3) at the end.
11989    # Note that $ac_compile itself does not contain backslashes and begins
11990    # with a dollar sign (not a hyphen), so the echo should work correctly.
11991    # The option is referenced via a variable to avoid confusing sed.
11992    lt_compile=`echo "$ac_compile" | $SED \
11993    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11994    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11995    -e 's:$: $lt_compiler_flag:'`
11996    (eval echo "\"\$as_me:11996: $lt_compile\"" >&5)
11997    (eval "$lt_compile" 2>conftest.err)
11998    ac_status=$?
11999    cat conftest.err >&5
12000    echo "$as_me:12000: \$? = $ac_status" >&5
12001    if (exit $ac_status) && test -s "$ac_outfile"; then
12002      # The compiler can only warn and ignore the option if not recognized
12003      # So say no if there are warnings
12004      if test ! -s conftest.err; then
12005        lt_prog_compiler_pic_works=yes
12006      fi
12007    fi
12008    $rm conftest*
12009
12010 fi
12011 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12012 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12013
12014 if test x"$lt_prog_compiler_pic_works" = xyes; then
12015     case $lt_prog_compiler_pic in
12016      "" | " "*) ;;
12017      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12018      esac
12019 else
12020     lt_prog_compiler_pic=
12021      lt_prog_compiler_can_build_shared=no
12022 fi
12023
12024 fi
12025 case "$host_os" in
12026   # For platforms which do not support PIC, -DPIC is meaningless:
12027   *djgpp*)
12028     lt_prog_compiler_pic=
12029     ;;
12030   *)
12031     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12032     ;;
12033 esac
12034
12035 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12036 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12037 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12038   echo $ECHO_N "(cached) $ECHO_C" >&6
12039 else
12040   lt_cv_prog_compiler_c_o=no
12041    $rm -r conftest 2>/dev/null
12042    mkdir conftest
12043    cd conftest
12044    mkdir out
12045    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12046
12047    lt_compiler_flag="-o out/conftest2.$ac_objext"
12048    # Insert the option either (1) after the last *FLAGS variable, or
12049    # (2) before a word containing "conftest.", or (3) at the end.
12050    # Note that $ac_compile itself does not contain backslashes and begins
12051    # with a dollar sign (not a hyphen), so the echo should work correctly.
12052    lt_compile=`echo "$ac_compile" | $SED \
12053    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12054    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12055    -e 's:$: $lt_compiler_flag:'`
12056    (eval echo "\"\$as_me:12056: $lt_compile\"" >&5)
12057    (eval "$lt_compile" 2>out/conftest.err)
12058    ac_status=$?
12059    cat out/conftest.err >&5
12060    echo "$as_me:12060: \$? = $ac_status" >&5
12061    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12062    then
12063      # The compiler can only warn and ignore the option if not recognized
12064      # So say no if there are warnings
12065      if test ! -s out/conftest.err; then
12066        lt_cv_prog_compiler_c_o=yes
12067      fi
12068    fi
12069    chmod u+w .
12070    $rm conftest*
12071    # SGI C++ compiler will create directory out/ii_files/ for
12072    # template instantiation
12073    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12074    $rm out/* && rmdir out
12075    cd ..
12076    rmdir conftest
12077    $rm conftest*
12078
12079 fi
12080 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12081 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12082
12083
12084 hard_links="nottested"
12085 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12086   # do not overwrite the value of need_locks provided by the user
12087   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12088 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12089   hard_links=yes
12090   $rm conftest*
12091   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12092   touch conftest.a
12093   ln conftest.a conftest.b 2>&5 || hard_links=no
12094   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12095   echo "$as_me:$LINENO: result: $hard_links" >&5
12096 echo "${ECHO_T}$hard_links" >&6
12097   if test "$hard_links" = no; then
12098     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12099 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12100     need_locks=warn
12101   fi
12102 else
12103   need_locks=no
12104 fi
12105
12106 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12107 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12108
12109   runpath_var=
12110   allow_undefined_flag=
12111   enable_shared_with_static_runtimes=no
12112   archive_cmds=
12113   archive_expsym_cmds=
12114   old_archive_From_new_cmds=
12115   old_archive_from_expsyms_cmds=
12116   export_dynamic_flag_spec=
12117   whole_archive_flag_spec=
12118   thread_safe_flag_spec=
12119   hardcode_libdir_flag_spec=
12120   hardcode_libdir_flag_spec_ld=
12121   hardcode_libdir_separator=
12122   hardcode_direct=no
12123   hardcode_minus_L=no
12124   hardcode_shlibpath_var=unsupported
12125   link_all_deplibs=unknown
12126   hardcode_automatic=no
12127   module_cmds=
12128   module_expsym_cmds=
12129   always_export_symbols=no
12130   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12131   # include_expsyms should be a list of space-separated symbols to be *always*
12132   # included in the symbol list
12133   include_expsyms=
12134   # exclude_expsyms can be an extended regexp of symbols to exclude
12135   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12136   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12137   # as well as any symbol that contains `d'.
12138   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12139   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12140   # platforms (ab)use it in PIC code, but their linkers get confused if
12141   # the symbol is explicitly referenced.  Since portable code cannot
12142   # rely on this symbol name, it's probably fine to never include it in
12143   # preloaded symbol tables.
12144   extract_expsyms_cmds=
12145
12146   case $host_os in
12147   cygwin* | mingw* | pw32*)
12148     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12149     # When not using gcc, we currently assume that we are using
12150     # Microsoft Visual C++.
12151     if test "$GCC" != yes; then
12152       with_gnu_ld=no
12153     fi
12154     ;;
12155   openbsd*)
12156     with_gnu_ld=no
12157     ;;
12158   esac
12159
12160   ld_shlibs=yes
12161   if test "$with_gnu_ld" = yes; then
12162     # If archive_cmds runs LD, not CC, wlarc should be empty
12163     wlarc='${wl}'
12164
12165     # See if GNU ld supports shared libraries.
12166     case $host_os in
12167     aix3* | aix4* | aix5*)
12168       # On AIX/PPC, the GNU linker is very broken
12169       if test "$host_cpu" != ia64; then
12170         ld_shlibs=no
12171         cat <<EOF 1>&2
12172
12173 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12174 *** to be unable to reliably create shared libraries on AIX.
12175 *** Therefore, libtool is disabling shared libraries support.  If you
12176 *** really care for shared libraries, you may want to modify your PATH
12177 *** so that a non-GNU linker is found, and then restart.
12178
12179 EOF
12180       fi
12181       ;;
12182
12183     amigaos*)
12184       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)'
12185       hardcode_libdir_flag_spec='-L$libdir'
12186       hardcode_minus_L=yes
12187
12188       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12189       # that the semantics of dynamic libraries on AmigaOS, at least up
12190       # to version 4, is to share data among multiple programs linked
12191       # with the same dynamic library.  Since this doesn't match the
12192       # behavior of shared libraries on other platforms, we can't use
12193       # them.
12194       ld_shlibs=no
12195       ;;
12196
12197     beos*)
12198       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12199         allow_undefined_flag=unsupported
12200         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12201         # support --undefined.  This deserves some investigation.  FIXME
12202         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12203       else
12204         ld_shlibs=no
12205       fi
12206       ;;
12207
12208     cygwin* | mingw* | pw32*)
12209       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12210       # as there is no search path for DLLs.
12211       hardcode_libdir_flag_spec='-L$libdir'
12212       allow_undefined_flag=unsupported
12213       always_export_symbols=no
12214       enable_shared_with_static_runtimes=yes
12215       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12216
12217       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12218         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12219         # If the export-symbols file already is a .def file (1st line
12220         # is EXPORTS), use it as is; otherwise, prepend...
12221         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12222           cp $export_symbols $output_objdir/$soname.def;
12223         else
12224           echo EXPORTS > $output_objdir/$soname.def;
12225           cat $export_symbols >> $output_objdir/$soname.def;
12226         fi~
12227         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12228       else
12229         ld_shlibs=no
12230       fi
12231       ;;
12232
12233     netbsd*)
12234       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12235         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12236         wlarc=
12237       else
12238         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12239         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12240       fi
12241       ;;
12242
12243     solaris* | sysv5*)
12244       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12245         ld_shlibs=no
12246         cat <<EOF 1>&2
12247
12248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12249 *** create shared libraries on Solaris systems.  Therefore, libtool
12250 *** is disabling shared libraries support.  We urge you to upgrade GNU
12251 *** binutils to release 2.9.1 or newer.  Another option is to modify
12252 *** your PATH or compiler configuration so that the native linker is
12253 *** used, and then restart.
12254
12255 EOF
12256       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12257         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12258         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12259       else
12260         ld_shlibs=no
12261       fi
12262       ;;
12263
12264     sunos4*)
12265       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12266       wlarc=
12267       hardcode_direct=yes
12268       hardcode_shlibpath_var=no
12269       ;;
12270
12271   linux*)
12272     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12273         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12274         archive_cmds="$tmp_archive_cmds"
12275       supports_anon_versioning=no
12276       case `$LD -v 2>/dev/null` in
12277         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12278         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12279         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12280         *\ 2.11.*) ;; # other 2.11 versions
12281         *) supports_anon_versioning=yes ;;
12282       esac
12283       if test $supports_anon_versioning = yes; then
12284         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12285 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12286 $echo "local: *; };" >> $output_objdir/$libname.ver~
12287         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12288       else
12289         archive_expsym_cmds="$tmp_archive_cmds"
12290       fi
12291     else
12292       ld_shlibs=no
12293     fi
12294     ;;
12295
12296     *)
12297       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12298         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12299         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12300       else
12301         ld_shlibs=no
12302       fi
12303       ;;
12304     esac
12305
12306     if test "$ld_shlibs" = yes; then
12307       runpath_var=LD_RUN_PATH
12308       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12309       export_dynamic_flag_spec='${wl}--export-dynamic'
12310       # ancient GNU ld didn't support --whole-archive et. al.
12311       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12312         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12313       else
12314         whole_archive_flag_spec=
12315       fi
12316     fi
12317   else
12318     # PORTME fill in a description of your system's linker (not GNU ld)
12319     case $host_os in
12320     aix3*)
12321       allow_undefined_flag=unsupported
12322       always_export_symbols=yes
12323       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'
12324       # Note: this linker hardcodes the directories in LIBPATH if there
12325       # are no directories specified by -L.
12326       hardcode_minus_L=yes
12327       if test "$GCC" = yes && test -z "$link_static_flag"; then
12328         # Neither direct hardcoding nor static linking is supported with a
12329         # broken collect2.
12330         hardcode_direct=unsupported
12331       fi
12332       ;;
12333
12334     aix4* | aix5*)
12335       if test "$host_cpu" = ia64; then
12336         # On IA64, the linker does run time linking by default, so we don't
12337         # have to do anything special.
12338         aix_use_runtimelinking=no
12339         exp_sym_flag='-Bexport'
12340         no_entry_flag=""
12341       else
12342         # If we're using GNU nm, then we don't want the "-C" option.
12343         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12344         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12345           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'
12346         else
12347           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'
12348         fi
12349         aix_use_runtimelinking=no
12350
12351         # Test if we are trying to use run time linking or normal
12352         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12353         # need to do runtime linking.
12354         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12355           for ld_flag in $LDFLAGS; do
12356           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12357             aix_use_runtimelinking=yes
12358             break
12359           fi
12360           done
12361         esac
12362
12363         exp_sym_flag='-bexport'
12364         no_entry_flag='-bnoentry'
12365       fi
12366
12367       # When large executables or shared objects are built, AIX ld can
12368       # have problems creating the table of contents.  If linking a library
12369       # or program results in "error TOC overflow" add -mminimal-toc to
12370       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12371       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12372
12373       archive_cmds=''
12374       hardcode_direct=yes
12375       hardcode_libdir_separator=':'
12376       link_all_deplibs=yes
12377
12378       if test "$GCC" = yes; then
12379         case $host_os in aix4.012|aix4.012.*)
12380         # We only want to do this on AIX 4.2 and lower, the check
12381         # below for broken collect2 doesn't work under 4.3+
12382           collect2name=`${CC} -print-prog-name=collect2`
12383           if test -f "$collect2name" && \
12384            strings "$collect2name" | grep resolve_lib_name >/dev/null
12385           then
12386           # We have reworked collect2
12387           hardcode_direct=yes
12388           else
12389           # We have old collect2
12390           hardcode_direct=unsupported
12391           # It fails to find uninstalled libraries when the uninstalled
12392           # path is not listed in the libpath.  Setting hardcode_minus_L
12393           # to unsupported forces relinking
12394           hardcode_minus_L=yes
12395           hardcode_libdir_flag_spec='-L$libdir'
12396           hardcode_libdir_separator=
12397           fi
12398         esac
12399         shared_flag='-shared'
12400       else
12401         # not using gcc
12402         if test "$host_cpu" = ia64; then
12403         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12404         # chokes on -Wl,-G. The following line is correct:
12405           shared_flag='-G'
12406         else
12407         if test "$aix_use_runtimelinking" = yes; then
12408             shared_flag='${wl}-G'
12409           else
12410             shared_flag='${wl}-bM:SRE'
12411         fi
12412         fi
12413       fi
12414
12415       # It seems that -bexpall does not export symbols beginning with
12416       # underscore (_), so it is better to generate a list of symbols to export.
12417       always_export_symbols=yes
12418       if test "$aix_use_runtimelinking" = yes; then
12419         # Warning - without using the other runtime loading flags (-brtl),
12420         # -berok will link without error, but may produce a broken library.
12421         allow_undefined_flag='-berok'
12422        # Determine the default libpath from the value encoded in an empty executable.
12423        cat >conftest.$ac_ext <<_ACEOF
12424 /* confdefs.h.  */
12425 _ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h.  */
12429
12430 int
12431 main ()
12432 {
12433
12434   ;
12435   return 0;
12436 }
12437 _ACEOF
12438 rm -f conftest.$ac_objext conftest$ac_exeext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12440   (eval $ac_link) 2>conftest.er1
12441   ac_status=$?
12442   grep -v '^ *+' conftest.er1 >conftest.err
12443   rm -f conftest.er1
12444   cat conftest.err >&5
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); } &&
12447          { ac_try='test -z "$ac_c_werror_flag"
12448                          || test ! -s conftest.err'
12449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450   (eval $ac_try) 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; } &&
12454          { ac_try='test -s conftest$ac_exeext'
12455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456   (eval $ac_try) 2>&5
12457   ac_status=$?
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); }; }; then
12460
12461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12462 }'`
12463 # Check for a 64-bit object if we didn't find anything.
12464 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; }
12465 }'`; fi
12466 else
12467   echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12469
12470 fi
12471 rm -f conftest.err conftest.$ac_objext \
12472       conftest$ac_exeext conftest.$ac_ext
12473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12474
12475        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12476         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"
12477        else
12478         if test "$host_cpu" = ia64; then
12479           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12480           allow_undefined_flag="-z nodefs"
12481           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"
12482         else
12483          # Determine the default libpath from the value encoded in an empty executable.
12484          cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h.  */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h.  */
12490
12491 int
12492 main ()
12493 {
12494
12495   ;
12496   return 0;
12497 }
12498 _ACEOF
12499 rm -f conftest.$ac_objext conftest$ac_exeext
12500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12501   (eval $ac_link) 2>conftest.er1
12502   ac_status=$?
12503   grep -v '^ *+' conftest.er1 >conftest.err
12504   rm -f conftest.er1
12505   cat conftest.err >&5
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } &&
12508          { ac_try='test -z "$ac_c_werror_flag"
12509                          || test ! -s conftest.err'
12510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511   (eval $ac_try) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); }; } &&
12515          { ac_try='test -s conftest$ac_exeext'
12516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517   (eval $ac_try) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; }; then
12521
12522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12523 }'`
12524 # Check for a 64-bit object if we didn't find anything.
12525 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; }
12526 }'`; fi
12527 else
12528   echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12530
12531 fi
12532 rm -f conftest.err conftest.$ac_objext \
12533       conftest$ac_exeext conftest.$ac_ext
12534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12535
12536          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12537           # Warning - without using the other run time loading flags,
12538           # -berok will link without error, but may produce a broken library.
12539           no_undefined_flag=' ${wl}-bernotok'
12540           allow_undefined_flag=' ${wl}-berok'
12541           # -bexpall does not export symbols beginning with underscore (_)
12542           always_export_symbols=yes
12543           # Exported symbols can be pulled into shared objects from archives
12544           whole_archive_flag_spec=' '
12545           archive_cmds_need_lc=yes
12546           # This is similar to how AIX traditionally builds it's shared libraries.
12547           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'
12548         fi
12549       fi
12550       ;;
12551
12552     amigaos*)
12553       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)'
12554       hardcode_libdir_flag_spec='-L$libdir'
12555       hardcode_minus_L=yes
12556       # see comment about different semantics on the GNU ld section
12557       ld_shlibs=no
12558       ;;
12559
12560     bsdi[45]*)
12561       export_dynamic_flag_spec=-rdynamic
12562       ;;
12563
12564     cygwin* | mingw* | pw32*)
12565       # When not using gcc, we currently assume that we are using
12566       # Microsoft Visual C++.
12567       # hardcode_libdir_flag_spec is actually meaningless, as there is
12568       # no search path for DLLs.
12569       hardcode_libdir_flag_spec=' '
12570       allow_undefined_flag=unsupported
12571       # Tell ltmain to make .lib files, not .a files.
12572       libext=lib
12573       # Tell ltmain to make .dll files, not .so files.
12574       shrext_cmds=".dll"
12575       # FIXME: Setting linknames here is a bad hack.
12576       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12577       # The linker will automatically build a .lib file if we build a DLL.
12578       old_archive_From_new_cmds='true'
12579       # FIXME: Should let the user specify the lib program.
12580       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12581       fix_srcfile_path='`cygpath -w "$srcfile"`'
12582       enable_shared_with_static_runtimes=yes
12583       ;;
12584
12585     darwin* | rhapsody*)
12586       case "$host_os" in
12587         rhapsody* | darwin1.[012])
12588          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12589          ;;
12590        *) # Darwin 1.3 on
12591          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12592            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12593          else
12594            case ${MACOSX_DEPLOYMENT_TARGET} in
12595              10.[012])
12596                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12597                ;;
12598              10.*)
12599                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12600                ;;
12601            esac
12602          fi
12603          ;;
12604       esac
12605       archive_cmds_need_lc=no
12606       hardcode_direct=no
12607       hardcode_automatic=yes
12608       hardcode_shlibpath_var=unsupported
12609       whole_archive_flag_spec=''
12610       link_all_deplibs=yes
12611     if test "$GCC" = yes ; then
12612         output_verbose_link_cmd='echo'
12613         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12614       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12615       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12616       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}'
12617       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}'
12618     else
12619       case "$cc_basename" in
12620         xlc*)
12621          output_verbose_link_cmd='echo'
12622          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12623          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12624           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12625          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}'
12626           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}'
12627           ;;
12628        *)
12629          ld_shlibs=no
12630           ;;
12631       esac
12632     fi
12633       ;;
12634
12635     dgux*)
12636       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12637       hardcode_libdir_flag_spec='-L$libdir'
12638       hardcode_shlibpath_var=no
12639       ;;
12640
12641     freebsd1*)
12642       ld_shlibs=no
12643       ;;
12644
12645     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12646     # support.  Future versions do this automatically, but an explicit c++rt0.o
12647     # does not break anything, and helps significantly (at the cost of a little
12648     # extra space).
12649     freebsd2.2*)
12650       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12651       hardcode_libdir_flag_spec='-R$libdir'
12652       hardcode_direct=yes
12653       hardcode_shlibpath_var=no
12654       ;;
12655
12656     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12657     freebsd2*)
12658       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12659       hardcode_direct=yes
12660       hardcode_minus_L=yes
12661       hardcode_shlibpath_var=no
12662       ;;
12663
12664     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12665     freebsd* | kfreebsd*-gnu)
12666       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12667       hardcode_libdir_flag_spec='-R$libdir'
12668       hardcode_direct=yes
12669       hardcode_shlibpath_var=no
12670       ;;
12671
12672     hpux9*)
12673       if test "$GCC" = yes; then
12674         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'
12675       else
12676         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'
12677       fi
12678       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12679       hardcode_libdir_separator=:
12680       hardcode_direct=yes
12681
12682       # hardcode_minus_L: Not really in the search PATH,
12683       # but as the default location of the library.
12684       hardcode_minus_L=yes
12685       export_dynamic_flag_spec='${wl}-E'
12686       ;;
12687
12688     hpux10* | hpux11*)
12689       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12690         case "$host_cpu" in
12691         hppa*64*|ia64*)
12692           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12693           ;;
12694         *)
12695           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12696           ;;
12697         esac
12698       else
12699         case "$host_cpu" in
12700         hppa*64*|ia64*)
12701           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12702           ;;
12703         *)
12704           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12705           ;;
12706         esac
12707       fi
12708       if test "$with_gnu_ld" = no; then
12709         case "$host_cpu" in
12710         hppa*64*)
12711           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12712           hardcode_libdir_flag_spec_ld='+b $libdir'
12713           hardcode_libdir_separator=:
12714           hardcode_direct=no
12715           hardcode_shlibpath_var=no
12716           ;;
12717         ia64*)
12718           hardcode_libdir_flag_spec='-L$libdir'
12719           hardcode_direct=no
12720           hardcode_shlibpath_var=no
12721
12722           # hardcode_minus_L: Not really in the search PATH,
12723           # but as the default location of the library.
12724           hardcode_minus_L=yes
12725           ;;
12726         *)
12727           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12728           hardcode_libdir_separator=:
12729           hardcode_direct=yes
12730           export_dynamic_flag_spec='${wl}-E'
12731
12732           # hardcode_minus_L: Not really in the search PATH,
12733           # but as the default location of the library.
12734           hardcode_minus_L=yes
12735           ;;
12736         esac
12737       fi
12738       ;;
12739
12740     irix5* | irix6* | nonstopux*)
12741       if test "$GCC" = yes; then
12742         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'
12743       else
12744         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'
12745         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12746       fi
12747       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12748       hardcode_libdir_separator=:
12749       link_all_deplibs=yes
12750       ;;
12751
12752     netbsd*)
12753       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12754         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12755       else
12756         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12757       fi
12758       hardcode_libdir_flag_spec='-R$libdir'
12759       hardcode_direct=yes
12760       hardcode_shlibpath_var=no
12761       ;;
12762
12763     newsos6)
12764       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12765       hardcode_direct=yes
12766       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12767       hardcode_libdir_separator=:
12768       hardcode_shlibpath_var=no
12769       ;;
12770
12771     openbsd*)
12772       hardcode_direct=yes
12773       hardcode_shlibpath_var=no
12774       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12775         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12776         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12777         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12778         export_dynamic_flag_spec='${wl}-E'
12779       else
12780        case $host_os in
12781          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12782            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12783            hardcode_libdir_flag_spec='-R$libdir'
12784            ;;
12785          *)
12786            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12787            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12788            ;;
12789        esac
12790       fi
12791       ;;
12792
12793     os2*)
12794       hardcode_libdir_flag_spec='-L$libdir'
12795       hardcode_minus_L=yes
12796       allow_undefined_flag=unsupported
12797       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'
12798       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12799       ;;
12800
12801     osf3*)
12802       if test "$GCC" = yes; then
12803         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12804         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'
12805       else
12806         allow_undefined_flag=' -expect_unresolved \*'
12807         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'
12808       fi
12809       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12810       hardcode_libdir_separator=:
12811       ;;
12812
12813     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12814       if test "$GCC" = yes; then
12815         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12816         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'
12817         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12818       else
12819         allow_undefined_flag=' -expect_unresolved \*'
12820         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'
12821         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12822         $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'
12823
12824         # Both c and cxx compiler support -rpath directly
12825         hardcode_libdir_flag_spec='-rpath $libdir'
12826       fi
12827       hardcode_libdir_separator=:
12828       ;;
12829
12830     sco3.2v5*)
12831       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12832       hardcode_shlibpath_var=no
12833       export_dynamic_flag_spec='${wl}-Bexport'
12834       runpath_var=LD_RUN_PATH
12835       hardcode_runpath_var=yes
12836       ;;
12837
12838     solaris*)
12839       no_undefined_flag=' -z text'
12840       if test "$GCC" = yes; then
12841         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12842         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12843           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12844       else
12845         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12846         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12847         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12848       fi
12849       hardcode_libdir_flag_spec='-R$libdir'
12850       hardcode_shlibpath_var=no
12851       case $host_os in
12852       solaris2.[0-5] | solaris2.[0-5].*) ;;
12853       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12854         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12855       esac
12856       link_all_deplibs=yes
12857       ;;
12858
12859     sunos4*)
12860       if test "x$host_vendor" = xsequent; then
12861         # Use $CC to link under sequent, because it throws in some extra .o
12862         # files that make .init and .fini sections work.
12863         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12864       else
12865         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12866       fi
12867       hardcode_libdir_flag_spec='-L$libdir'
12868       hardcode_direct=yes
12869       hardcode_minus_L=yes
12870       hardcode_shlibpath_var=no
12871       ;;
12872
12873     sysv4)
12874       case $host_vendor in
12875         sni)
12876           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12877           hardcode_direct=yes # is this really true???
12878         ;;
12879         siemens)
12880           ## LD is ld it makes a PLAMLIB
12881           ## CC just makes a GrossModule.
12882           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12883           reload_cmds='$CC -r -o $output$reload_objs'
12884           hardcode_direct=no
12885         ;;
12886         motorola)
12887           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12888           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12889         ;;
12890       esac
12891       runpath_var='LD_RUN_PATH'
12892       hardcode_shlibpath_var=no
12893       ;;
12894
12895     sysv4.3*)
12896       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897       hardcode_shlibpath_var=no
12898       export_dynamic_flag_spec='-Bexport'
12899       ;;
12900
12901     sysv4*MP*)
12902       if test -d /usr/nec; then
12903         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12904         hardcode_shlibpath_var=no
12905         runpath_var=LD_RUN_PATH
12906         hardcode_runpath_var=yes
12907         ld_shlibs=yes
12908       fi
12909       ;;
12910
12911     sysv4.2uw2*)
12912       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12913       hardcode_direct=yes
12914       hardcode_minus_L=no
12915       hardcode_shlibpath_var=no
12916       hardcode_runpath_var=yes
12917       runpath_var=LD_RUN_PATH
12918       ;;
12919
12920    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12921       no_undefined_flag='${wl}-z ${wl}text'
12922       if test "$GCC" = yes; then
12923         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12924       else
12925         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12926       fi
12927       runpath_var='LD_RUN_PATH'
12928       hardcode_shlibpath_var=no
12929       ;;
12930
12931     sysv5*)
12932       no_undefined_flag=' -z text'
12933       # $CC -shared without GNU ld will not create a library from C++
12934       # object files and a static libstdc++, better avoid it by now
12935       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12936       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12937                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12938       hardcode_libdir_flag_spec=
12939       hardcode_shlibpath_var=no
12940       runpath_var='LD_RUN_PATH'
12941       ;;
12942
12943     uts4*)
12944       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12945       hardcode_libdir_flag_spec='-L$libdir'
12946       hardcode_shlibpath_var=no
12947       ;;
12948
12949     *)
12950       ld_shlibs=no
12951       ;;
12952     esac
12953   fi
12954
12955 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12956 echo "${ECHO_T}$ld_shlibs" >&6
12957 test "$ld_shlibs" = no && can_build_shared=no
12958
12959 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12960 if test "$GCC" = yes; then
12961   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12962 fi
12963
12964 #
12965 # Do we need to explicitly link libc?
12966 #
12967 case "x$archive_cmds_need_lc" in
12968 x|xyes)
12969   # Assume -lc should be added
12970   archive_cmds_need_lc=yes
12971
12972   if test "$enable_shared" = yes && test "$GCC" = yes; then
12973     case $archive_cmds in
12974     *'~'*)
12975       # FIXME: we may have to deal with multi-command sequences.
12976       ;;
12977     '$CC '*)
12978       # Test whether the compiler implicitly links with -lc since on some
12979       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12980       # to ld, don't add -lc before -lgcc.
12981       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12982 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12983       $rm conftest*
12984       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12985
12986       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987   (eval $ac_compile) 2>&5
12988   ac_status=$?
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); } 2>conftest.err; then
12991         soname=conftest
12992         lib=conftest
12993         libobjs=conftest.$ac_objext
12994         deplibs=
12995         wl=$lt_prog_compiler_wl
12996         compiler_flags=-v
12997         linker_flags=-v
12998         verstring=
12999         output_objdir=.
13000         libname=conftest
13001         lt_save_allow_undefined_flag=$allow_undefined_flag
13002         allow_undefined_flag=
13003         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13004   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); }
13008         then
13009           archive_cmds_need_lc=no
13010         else
13011           archive_cmds_need_lc=yes
13012         fi
13013         allow_undefined_flag=$lt_save_allow_undefined_flag
13014       else
13015         cat conftest.err 1>&5
13016       fi
13017       $rm conftest*
13018       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13019 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13020       ;;
13021     esac
13022   fi
13023   ;;
13024 esac
13025
13026 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13027 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13028 library_names_spec=
13029 libname_spec='lib$name'
13030 soname_spec=
13031 shrext_cmds=".so"
13032 postinstall_cmds=
13033 postuninstall_cmds=
13034 finish_cmds=
13035 finish_eval=
13036 shlibpath_var=
13037 shlibpath_overrides_runpath=unknown
13038 version_type=none
13039 dynamic_linker="$host_os ld.so"
13040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13041 if test "$GCC" = yes; then
13042   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13043   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13044     # if the path contains ";" then we assume it to be the separator
13045     # otherwise default to the standard path separator (i.e. ":") - it is
13046     # assumed that no part of a normal pathname contains ";" but that should
13047     # okay in the real world where ";" in dirpaths is itself problematic.
13048     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13049   else
13050     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13051   fi
13052 else
13053   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13054 fi
13055 need_lib_prefix=unknown
13056 hardcode_into_libs=no
13057
13058 # when you set need_version to no, make sure it does not cause -set_version
13059 # flags to be left without arguments
13060 need_version=unknown
13061
13062 case $host_os in
13063 aix3*)
13064   version_type=linux
13065   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13066   shlibpath_var=LIBPATH
13067
13068   # AIX 3 has no versioning support, so we append a major version to the name.
13069   soname_spec='${libname}${release}${shared_ext}$major'
13070   ;;
13071
13072 aix4* | aix5*)
13073   version_type=linux
13074   need_lib_prefix=no
13075   need_version=no
13076   hardcode_into_libs=yes
13077   if test "$host_cpu" = ia64; then
13078     # AIX 5 supports IA64
13079     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13080     shlibpath_var=LD_LIBRARY_PATH
13081   else
13082     # With GCC up to 2.95.x, collect2 would create an import file
13083     # for dependence libraries.  The import file would start with
13084     # the line `#! .'.  This would cause the generated library to
13085     # depend on `.', always an invalid library.  This was fixed in
13086     # development snapshots of GCC prior to 3.0.
13087     case $host_os in
13088       aix4 | aix4.[01] | aix4.[01].*)
13089       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13090            echo ' yes '
13091            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13092         :
13093       else
13094         can_build_shared=no
13095       fi
13096       ;;
13097     esac
13098     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13099     # soname into executable. Probably we can add versioning support to
13100     # collect2, so additional links can be useful in future.
13101     if test "$aix_use_runtimelinking" = yes; then
13102       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13103       # instead of lib<name>.a to let people know that these are not
13104       # typical AIX shared libraries.
13105       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13106     else
13107       # We preserve .a as extension for shared libraries through AIX4.2
13108       # and later when we are not doing run time linking.
13109       library_names_spec='${libname}${release}.a $libname.a'
13110       soname_spec='${libname}${release}${shared_ext}$major'
13111     fi
13112     shlibpath_var=LIBPATH
13113   fi
13114   ;;
13115
13116 amigaos*)
13117   library_names_spec='$libname.ixlibrary $libname.a'
13118   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13119   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'
13120   ;;
13121
13122 beos*)
13123   library_names_spec='${libname}${shared_ext}'
13124   dynamic_linker="$host_os ld.so"
13125   shlibpath_var=LIBRARY_PATH
13126   ;;
13127
13128 bsdi[45]*)
13129   version_type=linux
13130   need_version=no
13131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132   soname_spec='${libname}${release}${shared_ext}$major'
13133   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13134   shlibpath_var=LD_LIBRARY_PATH
13135   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13136   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13137   # the default ld.so.conf also contains /usr/contrib/lib and
13138   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13139   # libtool to hard-code these into programs
13140   ;;
13141
13142 cygwin* | mingw* | pw32*)
13143   version_type=windows
13144   shrext_cmds=".dll"
13145   need_version=no
13146   need_lib_prefix=no
13147
13148   case $GCC,$host_os in
13149   yes,cygwin* | yes,mingw* | yes,pw32*)
13150     library_names_spec='$libname.dll.a'
13151     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13152     postinstall_cmds='base_file=`basename \${file}`~
13153       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13154       dldir=$destdir/`dirname \$dlpath`~
13155       test -d \$dldir || mkdir -p \$dldir~
13156       $install_prog $dir/$dlname \$dldir/$dlname'
13157     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13158       dlpath=$dir/\$dldll~
13159        $rm \$dlpath'
13160     shlibpath_overrides_runpath=yes
13161
13162     case $host_os in
13163     cygwin*)
13164       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13165       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13166       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13167       ;;
13168     mingw*)
13169       # MinGW DLLs use traditional 'lib' prefix
13170       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13171       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13172       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13173         # It is most probably a Windows format PATH printed by
13174         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13175         # path with ; separators, and with drive letters. We can handle the
13176         # drive letters (cygwin fileutils understands them), so leave them,
13177         # especially as we might pass files found there to a mingw objdump,
13178         # which wouldn't understand a cygwinified path. Ahh.
13179         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13180       else
13181         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13182       fi
13183       ;;
13184     pw32*)
13185       # pw32 DLLs use 'pw' prefix rather than 'lib'
13186       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13187       ;;
13188     esac
13189     ;;
13190
13191   *)
13192     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13193     ;;
13194   esac
13195   dynamic_linker='Win32 ld.exe'
13196   # FIXME: first we should search . and the directory the executable is in
13197   shlibpath_var=PATH
13198   ;;
13199
13200 darwin* | rhapsody*)
13201   dynamic_linker="$host_os dyld"
13202   version_type=darwin
13203   need_lib_prefix=no
13204   need_version=no
13205   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13206   soname_spec='${libname}${release}${major}$shared_ext'
13207   shlibpath_overrides_runpath=yes
13208   shlibpath_var=DYLD_LIBRARY_PATH
13209   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13210   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13211   if test "$GCC" = yes; then
13212     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"`
13213   else
13214     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13215   fi
13216   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13217   ;;
13218
13219 dgux*)
13220   version_type=linux
13221   need_lib_prefix=no
13222   need_version=no
13223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13224   soname_spec='${libname}${release}${shared_ext}$major'
13225   shlibpath_var=LD_LIBRARY_PATH
13226   ;;
13227
13228 freebsd1*)
13229   dynamic_linker=no
13230   ;;
13231
13232 kfreebsd*-gnu)
13233   version_type=linux
13234   need_lib_prefix=no
13235   need_version=no
13236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13237   soname_spec='${libname}${release}${shared_ext}$major'
13238   shlibpath_var=LD_LIBRARY_PATH
13239   shlibpath_overrides_runpath=no
13240   hardcode_into_libs=yes
13241   dynamic_linker='GNU ld.so'
13242   ;;
13243
13244 freebsd*)
13245   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13246   version_type=freebsd-$objformat
13247   case $version_type in
13248     freebsd-elf*)
13249       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13250       need_version=no
13251       need_lib_prefix=no
13252       ;;
13253     freebsd-*)
13254       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13255       need_version=yes
13256       ;;
13257   esac
13258   shlibpath_var=LD_LIBRARY_PATH
13259   case $host_os in
13260   freebsd2*)
13261     shlibpath_overrides_runpath=yes
13262     ;;
13263   freebsd3.01* | freebsdelf3.01*)
13264     shlibpath_overrides_runpath=yes
13265     hardcode_into_libs=yes
13266     ;;
13267   *) # from 3.2 on
13268     shlibpath_overrides_runpath=no
13269     hardcode_into_libs=yes
13270     ;;
13271   esac
13272   ;;
13273
13274 gnu*)
13275   version_type=linux
13276   need_lib_prefix=no
13277   need_version=no
13278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13279   soname_spec='${libname}${release}${shared_ext}$major'
13280   shlibpath_var=LD_LIBRARY_PATH
13281   hardcode_into_libs=yes
13282   ;;
13283
13284 hpux9* | hpux10* | hpux11*)
13285   # Give a soname corresponding to the major version so that dld.sl refuses to
13286   # link against other versions.
13287   version_type=sunos
13288   need_lib_prefix=no
13289   need_version=no
13290   case "$host_cpu" in
13291   ia64*)
13292     shrext_cmds='.so'
13293     hardcode_into_libs=yes
13294     dynamic_linker="$host_os dld.so"
13295     shlibpath_var=LD_LIBRARY_PATH
13296     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298     soname_spec='${libname}${release}${shared_ext}$major'
13299     if test "X$HPUX_IA64_MODE" = X32; then
13300       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13301     else
13302       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13303     fi
13304     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13305     ;;
13306    hppa*64*)
13307      shrext_cmds='.sl'
13308      hardcode_into_libs=yes
13309      dynamic_linker="$host_os dld.sl"
13310      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13311      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13312      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13313      soname_spec='${libname}${release}${shared_ext}$major'
13314      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13315      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13316      ;;
13317    *)
13318     shrext_cmds='.sl'
13319     dynamic_linker="$host_os dld.sl"
13320     shlibpath_var=SHLIB_PATH
13321     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13323     soname_spec='${libname}${release}${shared_ext}$major'
13324     ;;
13325   esac
13326   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13327   postinstall_cmds='chmod 555 $lib'
13328   ;;
13329
13330 irix5* | irix6* | nonstopux*)
13331   case $host_os in
13332     nonstopux*) version_type=nonstopux ;;
13333     *)
13334         if test "$lt_cv_prog_gnu_ld" = yes; then
13335                 version_type=linux
13336         else
13337                 version_type=irix
13338         fi ;;
13339   esac
13340   need_lib_prefix=no
13341   need_version=no
13342   soname_spec='${libname}${release}${shared_ext}$major'
13343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13344   case $host_os in
13345   irix5* | nonstopux*)
13346     libsuff= shlibsuff=
13347     ;;
13348   *)
13349     case $LD in # libtool.m4 will add one of these switches to LD
13350     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13351       libsuff= shlibsuff= libmagic=32-bit;;
13352     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13353       libsuff=32 shlibsuff=N32 libmagic=N32;;
13354     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13355       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13356     *) libsuff= shlibsuff= libmagic=never-match;;
13357     esac
13358     ;;
13359   esac
13360   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13361   shlibpath_overrides_runpath=no
13362   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13363   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13364   hardcode_into_libs=yes
13365   ;;
13366
13367 # No shared lib support for Linux oldld, aout, or coff.
13368 linux*oldld* | linux*aout* | linux*coff*)
13369   dynamic_linker=no
13370   ;;
13371
13372 # This must be Linux ELF.
13373 linux*)
13374   version_type=linux
13375   need_lib_prefix=no
13376   need_version=no
13377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13378   soname_spec='${libname}${release}${shared_ext}$major'
13379   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13380   shlibpath_var=LD_LIBRARY_PATH
13381   shlibpath_overrides_runpath=no
13382   # This implies no fast_install, which is unacceptable.
13383   # Some rework will be needed to allow for fast_install
13384   # before this can be enabled.
13385   hardcode_into_libs=yes
13386
13387   # Append ld.so.conf contents to the search path
13388   if test -f /etc/ld.so.conf; then
13389     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13390     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13391   fi
13392
13393   # We used to test for /lib/ld.so.1 and disable shared libraries on
13394   # powerpc, because MkLinux only supported shared libraries with the
13395   # GNU dynamic linker.  Since this was broken with cross compilers,
13396   # most powerpc-linux boxes support dynamic linking these days and
13397   # people can always --disable-shared, the test was removed, and we
13398   # assume the GNU/Linux dynamic linker is in use.
13399   dynamic_linker='GNU/Linux ld.so'
13400   ;;
13401
13402 knetbsd*-gnu)
13403   version_type=linux
13404   need_lib_prefix=no
13405   need_version=no
13406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13407   soname_spec='${libname}${release}${shared_ext}$major'
13408   shlibpath_var=LD_LIBRARY_PATH
13409   shlibpath_overrides_runpath=no
13410   hardcode_into_libs=yes
13411   dynamic_linker='GNU ld.so'
13412   ;;
13413
13414 netbsd*)
13415   version_type=sunos
13416   need_lib_prefix=no
13417   need_version=no
13418   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13420     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13421     dynamic_linker='NetBSD (a.out) ld.so'
13422   else
13423     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13424     soname_spec='${libname}${release}${shared_ext}$major'
13425     dynamic_linker='NetBSD ld.elf_so'
13426   fi
13427   shlibpath_var=LD_LIBRARY_PATH
13428   shlibpath_overrides_runpath=yes
13429   hardcode_into_libs=yes
13430   ;;
13431
13432 newsos6)
13433   version_type=linux
13434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435   shlibpath_var=LD_LIBRARY_PATH
13436   shlibpath_overrides_runpath=yes
13437   ;;
13438
13439 nto-qnx*)
13440   version_type=linux
13441   need_lib_prefix=no
13442   need_version=no
13443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444   soname_spec='${libname}${release}${shared_ext}$major'
13445   shlibpath_var=LD_LIBRARY_PATH
13446   shlibpath_overrides_runpath=yes
13447   ;;
13448
13449 openbsd*)
13450   version_type=sunos
13451   need_lib_prefix=no
13452   need_version=no
13453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13454   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13455   shlibpath_var=LD_LIBRARY_PATH
13456   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13457     case $host_os in
13458       openbsd2.[89] | openbsd2.[89].*)
13459         shlibpath_overrides_runpath=no
13460         ;;
13461       *)
13462         shlibpath_overrides_runpath=yes
13463         ;;
13464       esac
13465   else
13466     shlibpath_overrides_runpath=yes
13467   fi
13468   ;;
13469
13470 os2*)
13471   libname_spec='$name'
13472   shrext_cmds=".dll"
13473   need_lib_prefix=no
13474   library_names_spec='$libname${shared_ext} $libname.a'
13475   dynamic_linker='OS/2 ld.exe'
13476   shlibpath_var=LIBPATH
13477   ;;
13478
13479 osf3* | osf4* | osf5*)
13480   version_type=osf
13481   need_lib_prefix=no
13482   need_version=no
13483   soname_spec='${libname}${release}${shared_ext}$major'
13484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485   shlibpath_var=LD_LIBRARY_PATH
13486   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13487   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13488   ;;
13489
13490 sco3.2v5*)
13491   version_type=osf
13492   soname_spec='${libname}${release}${shared_ext}$major'
13493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494   shlibpath_var=LD_LIBRARY_PATH
13495   ;;
13496
13497 solaris*)
13498   version_type=linux
13499   need_lib_prefix=no
13500   need_version=no
13501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502   soname_spec='${libname}${release}${shared_ext}$major'
13503   shlibpath_var=LD_LIBRARY_PATH
13504   shlibpath_overrides_runpath=yes
13505   hardcode_into_libs=yes
13506   # ldd complains unless libraries are executable
13507   postinstall_cmds='chmod +x $lib'
13508   ;;
13509
13510 sunos4*)
13511   version_type=sunos
13512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13513   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13514   shlibpath_var=LD_LIBRARY_PATH
13515   shlibpath_overrides_runpath=yes
13516   if test "$with_gnu_ld" = yes; then
13517     need_lib_prefix=no
13518   fi
13519   need_version=yes
13520   ;;
13521
13522 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13523   version_type=linux
13524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13525   soname_spec='${libname}${release}${shared_ext}$major'
13526   shlibpath_var=LD_LIBRARY_PATH
13527   case $host_vendor in
13528     sni)
13529       shlibpath_overrides_runpath=no
13530       need_lib_prefix=no
13531       export_dynamic_flag_spec='${wl}-Blargedynsym'
13532       runpath_var=LD_RUN_PATH
13533       ;;
13534     siemens)
13535       need_lib_prefix=no
13536       ;;
13537     motorola)
13538       need_lib_prefix=no
13539       need_version=no
13540       shlibpath_overrides_runpath=no
13541       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13542       ;;
13543   esac
13544   ;;
13545
13546 sysv4*MP*)
13547   if test -d /usr/nec ;then
13548     version_type=linux
13549     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13550     soname_spec='$libname${shared_ext}.$major'
13551     shlibpath_var=LD_LIBRARY_PATH
13552   fi
13553   ;;
13554
13555 uts4*)
13556   version_type=linux
13557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558   soname_spec='${libname}${release}${shared_ext}$major'
13559   shlibpath_var=LD_LIBRARY_PATH
13560   ;;
13561
13562 *)
13563   dynamic_linker=no
13564   ;;
13565 esac
13566 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13567 echo "${ECHO_T}$dynamic_linker" >&6
13568 test "$dynamic_linker" = no && can_build_shared=no
13569
13570 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13571 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13572 hardcode_action=
13573 if test -n "$hardcode_libdir_flag_spec" || \
13574    test -n "$runpath_var" || \
13575    test "X$hardcode_automatic" = "Xyes" ; then
13576
13577   # We can hardcode non-existant directories.
13578   if test "$hardcode_direct" != no &&
13579      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13580      # have to relink, otherwise we might link with an installed library
13581      # when we should be linking with a yet-to-be-installed one
13582      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13583      test "$hardcode_minus_L" != no; then
13584     # Linking always hardcodes the temporary library directory.
13585     hardcode_action=relink
13586   else
13587     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13588     hardcode_action=immediate
13589   fi
13590 else
13591   # We cannot hardcode anything, or else we can only hardcode existing
13592   # directories.
13593   hardcode_action=unsupported
13594 fi
13595 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13596 echo "${ECHO_T}$hardcode_action" >&6
13597
13598 if test "$hardcode_action" = relink; then
13599   # Fast installation is not supported
13600   enable_fast_install=no
13601 elif test "$shlibpath_overrides_runpath" = yes ||
13602      test "$enable_shared" = no; then
13603   # Fast installation is not necessary
13604   enable_fast_install=needless
13605 fi
13606
13607 striplib=
13608 old_striplib=
13609 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13610 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13611 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13612   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13613   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13614   echo "$as_me:$LINENO: result: yes" >&5
13615 echo "${ECHO_T}yes" >&6
13616 else
13617 # FIXME - insert some real tests, host_os isn't really good enough
13618   case $host_os in
13619    darwin*)
13620        if test -n "$STRIP" ; then
13621          striplib="$STRIP -x"
13622          echo "$as_me:$LINENO: result: yes" >&5
13623 echo "${ECHO_T}yes" >&6
13624        else
13625   echo "$as_me:$LINENO: result: no" >&5
13626 echo "${ECHO_T}no" >&6
13627 fi
13628        ;;
13629    *)
13630   echo "$as_me:$LINENO: result: no" >&5
13631 echo "${ECHO_T}no" >&6
13632     ;;
13633   esac
13634 fi
13635
13636 if test "x$enable_dlopen" != xyes; then
13637   enable_dlopen=unknown
13638   enable_dlopen_self=unknown
13639   enable_dlopen_self_static=unknown
13640 else
13641   lt_cv_dlopen=no
13642   lt_cv_dlopen_libs=
13643
13644   case $host_os in
13645   beos*)
13646     lt_cv_dlopen="load_add_on"
13647     lt_cv_dlopen_libs=
13648     lt_cv_dlopen_self=yes
13649     ;;
13650
13651   mingw* | pw32*)
13652     lt_cv_dlopen="LoadLibrary"
13653     lt_cv_dlopen_libs=
13654    ;;
13655
13656   cygwin*)
13657     lt_cv_dlopen="dlopen"
13658     lt_cv_dlopen_libs=
13659    ;;
13660
13661   darwin*)
13662   # if libdl is installed we need to link against it
13663     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13666   echo $ECHO_N "(cached) $ECHO_C" >&6
13667 else
13668   ac_check_lib_save_LIBS=$LIBS
13669 LIBS="-ldl  $LIBS"
13670 cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h.  */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h.  */
13676
13677 /* Override any gcc2 internal prototype to avoid an error.  */
13678 #ifdef __cplusplus
13679 extern "C"
13680 #endif
13681 /* We use char because int might match the return type of a gcc2
13682    builtin and then its argument prototype would still apply.  */
13683 char dlopen ();
13684 int
13685 main ()
13686 {
13687 dlopen ();
13688   ;
13689   return 0;
13690 }
13691 _ACEOF
13692 rm -f conftest.$ac_objext conftest$ac_exeext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13694   (eval $ac_link) 2>conftest.er1
13695   ac_status=$?
13696   grep -v '^ *+' conftest.er1 >conftest.err
13697   rm -f conftest.er1
13698   cat conftest.err >&5
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); } &&
13701          { ac_try='test -z "$ac_c_werror_flag"
13702                          || test ! -s conftest.err'
13703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704   (eval $ac_try) 2>&5
13705   ac_status=$?
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); }; } &&
13708          { ac_try='test -s conftest$ac_exeext'
13709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710   (eval $ac_try) 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); }; }; then
13714   ac_cv_lib_dl_dlopen=yes
13715 else
13716   echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13718
13719 ac_cv_lib_dl_dlopen=no
13720 fi
13721 rm -f conftest.err conftest.$ac_objext \
13722       conftest$ac_exeext conftest.$ac_ext
13723 LIBS=$ac_check_lib_save_LIBS
13724 fi
13725 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13726 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13727 if test $ac_cv_lib_dl_dlopen = yes; then
13728   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13729 else
13730
13731     lt_cv_dlopen="dyld"
13732     lt_cv_dlopen_libs=
13733     lt_cv_dlopen_self=yes
13734
13735 fi
13736
13737    ;;
13738
13739   *)
13740     echo "$as_me:$LINENO: checking for shl_load" >&5
13741 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13742 if test "${ac_cv_func_shl_load+set}" = set; then
13743   echo $ECHO_N "(cached) $ECHO_C" >&6
13744 else
13745   cat >conftest.$ac_ext <<_ACEOF
13746 /* confdefs.h.  */
13747 _ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h.  */
13751 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13753 #define shl_load innocuous_shl_load
13754
13755 /* System header to define __stub macros and hopefully few prototypes,
13756     which can conflict with char shl_load (); below.
13757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13758     <limits.h> exists even on freestanding compilers.  */
13759
13760 #ifdef __STDC__
13761 # include <limits.h>
13762 #else
13763 # include <assert.h>
13764 #endif
13765
13766 #undef shl_load
13767
13768 /* Override any gcc2 internal prototype to avoid an error.  */
13769 #ifdef __cplusplus
13770 extern "C"
13771 {
13772 #endif
13773 /* We use char because int might match the return type of a gcc2
13774    builtin and then its argument prototype would still apply.  */
13775 char shl_load ();
13776 /* The GNU C library defines this for functions which it implements
13777     to always fail with ENOSYS.  Some functions are actually named
13778     something starting with __ and the normal name is an alias.  */
13779 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13780 choke me
13781 #else
13782 char (*f) () = shl_load;
13783 #endif
13784 #ifdef __cplusplus
13785 }
13786 #endif
13787
13788 int
13789 main ()
13790 {
13791 return f != shl_load;
13792   ;
13793   return 0;
13794 }
13795 _ACEOF
13796 rm -f conftest.$ac_objext conftest$ac_exeext
13797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13798   (eval $ac_link) 2>conftest.er1
13799   ac_status=$?
13800   grep -v '^ *+' conftest.er1 >conftest.err
13801   rm -f conftest.er1
13802   cat conftest.err >&5
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); } &&
13805          { ac_try='test -z "$ac_c_werror_flag"
13806                          || test ! -s conftest.err'
13807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808   (eval $ac_try) 2>&5
13809   ac_status=$?
13810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811   (exit $ac_status); }; } &&
13812          { ac_try='test -s conftest$ac_exeext'
13813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814   (eval $ac_try) 2>&5
13815   ac_status=$?
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); }; }; then
13818   ac_cv_func_shl_load=yes
13819 else
13820   echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13822
13823 ac_cv_func_shl_load=no
13824 fi
13825 rm -f conftest.err conftest.$ac_objext \
13826       conftest$ac_exeext conftest.$ac_ext
13827 fi
13828 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13829 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13830 if test $ac_cv_func_shl_load = yes; then
13831   lt_cv_dlopen="shl_load"
13832 else
13833   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13834 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13835 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13836   echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838   ac_check_lib_save_LIBS=$LIBS
13839 LIBS="-ldld  $LIBS"
13840 cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h.  */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h.  */
13846
13847 /* Override any gcc2 internal prototype to avoid an error.  */
13848 #ifdef __cplusplus
13849 extern "C"
13850 #endif
13851 /* We use char because int might match the return type of a gcc2
13852    builtin and then its argument prototype would still apply.  */
13853 char shl_load ();
13854 int
13855 main ()
13856 {
13857 shl_load ();
13858   ;
13859   return 0;
13860 }
13861 _ACEOF
13862 rm -f conftest.$ac_objext conftest$ac_exeext
13863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13864   (eval $ac_link) 2>conftest.er1
13865   ac_status=$?
13866   grep -v '^ *+' conftest.er1 >conftest.err
13867   rm -f conftest.er1
13868   cat conftest.err >&5
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); } &&
13871          { ac_try='test -z "$ac_c_werror_flag"
13872                          || test ! -s conftest.err'
13873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874   (eval $ac_try) 2>&5
13875   ac_status=$?
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); }; } &&
13878          { ac_try='test -s conftest$ac_exeext'
13879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880   (eval $ac_try) 2>&5
13881   ac_status=$?
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); }; }; then
13884   ac_cv_lib_dld_shl_load=yes
13885 else
13886   echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13888
13889 ac_cv_lib_dld_shl_load=no
13890 fi
13891 rm -f conftest.err conftest.$ac_objext \
13892       conftest$ac_exeext conftest.$ac_ext
13893 LIBS=$ac_check_lib_save_LIBS
13894 fi
13895 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13896 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13897 if test $ac_cv_lib_dld_shl_load = yes; then
13898   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13899 else
13900   echo "$as_me:$LINENO: checking for dlopen" >&5
13901 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13902 if test "${ac_cv_func_dlopen+set}" = set; then
13903   echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905   cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h.  */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h.  */
13911 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13913 #define dlopen innocuous_dlopen
13914
13915 /* System header to define __stub macros and hopefully few prototypes,
13916     which can conflict with char dlopen (); below.
13917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13918     <limits.h> exists even on freestanding compilers.  */
13919
13920 #ifdef __STDC__
13921 # include <limits.h>
13922 #else
13923 # include <assert.h>
13924 #endif
13925
13926 #undef dlopen
13927
13928 /* Override any gcc2 internal prototype to avoid an error.  */
13929 #ifdef __cplusplus
13930 extern "C"
13931 {
13932 #endif
13933 /* We use char because int might match the return type of a gcc2
13934    builtin and then its argument prototype would still apply.  */
13935 char dlopen ();
13936 /* The GNU C library defines this for functions which it implements
13937     to always fail with ENOSYS.  Some functions are actually named
13938     something starting with __ and the normal name is an alias.  */
13939 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13940 choke me
13941 #else
13942 char (*f) () = dlopen;
13943 #endif
13944 #ifdef __cplusplus
13945 }
13946 #endif
13947
13948 int
13949 main ()
13950 {
13951 return f != dlopen;
13952   ;
13953   return 0;
13954 }
13955 _ACEOF
13956 rm -f conftest.$ac_objext conftest$ac_exeext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13958   (eval $ac_link) 2>conftest.er1
13959   ac_status=$?
13960   grep -v '^ *+' conftest.er1 >conftest.err
13961   rm -f conftest.er1
13962   cat conftest.err >&5
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } &&
13965          { ac_try='test -z "$ac_c_werror_flag"
13966                          || test ! -s conftest.err'
13967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968   (eval $ac_try) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); }; } &&
13972          { ac_try='test -s conftest$ac_exeext'
13973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974   (eval $ac_try) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; }; then
13978   ac_cv_func_dlopen=yes
13979 else
13980   echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13982
13983 ac_cv_func_dlopen=no
13984 fi
13985 rm -f conftest.err conftest.$ac_objext \
13986       conftest$ac_exeext conftest.$ac_ext
13987 fi
13988 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13989 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13990 if test $ac_cv_func_dlopen = yes; then
13991   lt_cv_dlopen="dlopen"
13992 else
13993   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13994 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13995 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13996   echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998   ac_check_lib_save_LIBS=$LIBS
13999 LIBS="-ldl  $LIBS"
14000 cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h.  */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h.  */
14006
14007 /* Override any gcc2 internal prototype to avoid an error.  */
14008 #ifdef __cplusplus
14009 extern "C"
14010 #endif
14011 /* We use char because int might match the return type of a gcc2
14012    builtin and then its argument prototype would still apply.  */
14013 char dlopen ();
14014 int
14015 main ()
14016 {
14017 dlopen ();
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14024   (eval $ac_link) 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -z "$ac_c_werror_flag"
14032                          || test ! -s conftest.err'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; } &&
14038          { ac_try='test -s conftest$ac_exeext'
14039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040   (eval $ac_try) 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; }; then
14044   ac_cv_lib_dl_dlopen=yes
14045 else
14046   echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049 ac_cv_lib_dl_dlopen=no
14050 fi
14051 rm -f conftest.err conftest.$ac_objext \
14052       conftest$ac_exeext conftest.$ac_ext
14053 LIBS=$ac_check_lib_save_LIBS
14054 fi
14055 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14056 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14057 if test $ac_cv_lib_dl_dlopen = yes; then
14058   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14059 else
14060   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14061 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14062 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14063   echo $ECHO_N "(cached) $ECHO_C" >&6
14064 else
14065   ac_check_lib_save_LIBS=$LIBS
14066 LIBS="-lsvld  $LIBS"
14067 cat >conftest.$ac_ext <<_ACEOF
14068 /* confdefs.h.  */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h.  */
14073
14074 /* Override any gcc2 internal prototype to avoid an error.  */
14075 #ifdef __cplusplus
14076 extern "C"
14077 #endif
14078 /* We use char because int might match the return type of a gcc2
14079    builtin and then its argument prototype would still apply.  */
14080 char dlopen ();
14081 int
14082 main ()
14083 {
14084 dlopen ();
14085   ;
14086   return 0;
14087 }
14088 _ACEOF
14089 rm -f conftest.$ac_objext conftest$ac_exeext
14090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14091   (eval $ac_link) 2>conftest.er1
14092   ac_status=$?
14093   grep -v '^ *+' conftest.er1 >conftest.err
14094   rm -f conftest.er1
14095   cat conftest.err >&5
14096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); } &&
14098          { ac_try='test -z "$ac_c_werror_flag"
14099                          || test ! -s conftest.err'
14100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101   (eval $ac_try) 2>&5
14102   ac_status=$?
14103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); }; } &&
14105          { ac_try='test -s conftest$ac_exeext'
14106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107   (eval $ac_try) 2>&5
14108   ac_status=$?
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); }; }; then
14111   ac_cv_lib_svld_dlopen=yes
14112 else
14113   echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14115
14116 ac_cv_lib_svld_dlopen=no
14117 fi
14118 rm -f conftest.err conftest.$ac_objext \
14119       conftest$ac_exeext conftest.$ac_ext
14120 LIBS=$ac_check_lib_save_LIBS
14121 fi
14122 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14123 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14124 if test $ac_cv_lib_svld_dlopen = yes; then
14125   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14126 else
14127   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14130   echo $ECHO_N "(cached) $ECHO_C" >&6
14131 else
14132   ac_check_lib_save_LIBS=$LIBS
14133 LIBS="-ldld  $LIBS"
14134 cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h.  */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h.  */
14140
14141 /* Override any gcc2 internal prototype to avoid an error.  */
14142 #ifdef __cplusplus
14143 extern "C"
14144 #endif
14145 /* We use char because int might match the return type of a gcc2
14146    builtin and then its argument prototype would still apply.  */
14147 char dld_link ();
14148 int
14149 main ()
14150 {
14151 dld_link ();
14152   ;
14153   return 0;
14154 }
14155 _ACEOF
14156 rm -f conftest.$ac_objext conftest$ac_exeext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14158   (eval $ac_link) 2>conftest.er1
14159   ac_status=$?
14160   grep -v '^ *+' conftest.er1 >conftest.err
14161   rm -f conftest.er1
14162   cat conftest.err >&5
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); } &&
14165          { ac_try='test -z "$ac_c_werror_flag"
14166                          || test ! -s conftest.err'
14167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168   (eval $ac_try) 2>&5
14169   ac_status=$?
14170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); }; } &&
14172          { ac_try='test -s conftest$ac_exeext'
14173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174   (eval $ac_try) 2>&5
14175   ac_status=$?
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); }; }; then
14178   ac_cv_lib_dld_dld_link=yes
14179 else
14180   echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14182
14183 ac_cv_lib_dld_dld_link=no
14184 fi
14185 rm -f conftest.err conftest.$ac_objext \
14186       conftest$ac_exeext conftest.$ac_ext
14187 LIBS=$ac_check_lib_save_LIBS
14188 fi
14189 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14190 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14191 if test $ac_cv_lib_dld_dld_link = yes; then
14192   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14193 fi
14194
14195
14196 fi
14197
14198
14199 fi
14200
14201
14202 fi
14203
14204
14205 fi
14206
14207
14208 fi
14209
14210     ;;
14211   esac
14212
14213   if test "x$lt_cv_dlopen" != xno; then
14214     enable_dlopen=yes
14215   else
14216     enable_dlopen=no
14217   fi
14218
14219   case $lt_cv_dlopen in
14220   dlopen)
14221     save_CPPFLAGS="$CPPFLAGS"
14222     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14223
14224     save_LDFLAGS="$LDFLAGS"
14225     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14226
14227     save_LIBS="$LIBS"
14228     LIBS="$lt_cv_dlopen_libs $LIBS"
14229
14230     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14231 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14232 if test "${lt_cv_dlopen_self+set}" = set; then
14233   echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235           if test "$cross_compiling" = yes; then :
14236   lt_cv_dlopen_self=cross
14237 else
14238   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14239   lt_status=$lt_dlunknown
14240   cat > conftest.$ac_ext <<EOF
14241 #line 14241 "configure"
14242 #include "confdefs.h"
14243
14244 #if HAVE_DLFCN_H
14245 #include <dlfcn.h>
14246 #endif
14247
14248 #include <stdio.h>
14249
14250 #ifdef RTLD_GLOBAL
14251 #  define LT_DLGLOBAL           RTLD_GLOBAL
14252 #else
14253 #  ifdef DL_GLOBAL
14254 #    define LT_DLGLOBAL         DL_GLOBAL
14255 #  else
14256 #    define LT_DLGLOBAL         0
14257 #  endif
14258 #endif
14259
14260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14261    find out it does not work in some platform. */
14262 #ifndef LT_DLLAZY_OR_NOW
14263 #  ifdef RTLD_LAZY
14264 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14265 #  else
14266 #    ifdef DL_LAZY
14267 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14268 #    else
14269 #      ifdef RTLD_NOW
14270 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14271 #      else
14272 #        ifdef DL_NOW
14273 #          define LT_DLLAZY_OR_NOW      DL_NOW
14274 #        else
14275 #          define LT_DLLAZY_OR_NOW      0
14276 #        endif
14277 #      endif
14278 #    endif
14279 #  endif
14280 #endif
14281
14282 #ifdef __cplusplus
14283 extern "C" void exit (int);
14284 #endif
14285
14286 void fnord() { int i=42;}
14287 int main ()
14288 {
14289   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14290   int status = $lt_dlunknown;
14291
14292   if (self)
14293     {
14294       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14295       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14296       /* dlclose (self); */
14297     }
14298
14299     exit (status);
14300 }
14301 EOF
14302   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14303   (eval $ac_link) 2>&5
14304   ac_status=$?
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14307     (./conftest; exit; ) 2>/dev/null
14308     lt_status=$?
14309     case x$lt_status in
14310       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14311       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14312       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14313     esac
14314   else :
14315     # compilation failed
14316     lt_cv_dlopen_self=no
14317   fi
14318 fi
14319 rm -fr conftest*
14320
14321
14322 fi
14323 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14324 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14325
14326     if test "x$lt_cv_dlopen_self" = xyes; then
14327       LDFLAGS="$LDFLAGS $link_static_flag"
14328       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14329 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14330 if test "${lt_cv_dlopen_self_static+set}" = set; then
14331   echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333           if test "$cross_compiling" = yes; then :
14334   lt_cv_dlopen_self_static=cross
14335 else
14336   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14337   lt_status=$lt_dlunknown
14338   cat > conftest.$ac_ext <<EOF
14339 #line 14339 "configure"
14340 #include "confdefs.h"
14341
14342 #if HAVE_DLFCN_H
14343 #include <dlfcn.h>
14344 #endif
14345
14346 #include <stdio.h>
14347
14348 #ifdef RTLD_GLOBAL
14349 #  define LT_DLGLOBAL           RTLD_GLOBAL
14350 #else
14351 #  ifdef DL_GLOBAL
14352 #    define LT_DLGLOBAL         DL_GLOBAL
14353 #  else
14354 #    define LT_DLGLOBAL         0
14355 #  endif
14356 #endif
14357
14358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14359    find out it does not work in some platform. */
14360 #ifndef LT_DLLAZY_OR_NOW
14361 #  ifdef RTLD_LAZY
14362 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14363 #  else
14364 #    ifdef DL_LAZY
14365 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14366 #    else
14367 #      ifdef RTLD_NOW
14368 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14369 #      else
14370 #        ifdef DL_NOW
14371 #          define LT_DLLAZY_OR_NOW      DL_NOW
14372 #        else
14373 #          define LT_DLLAZY_OR_NOW      0
14374 #        endif
14375 #      endif
14376 #    endif
14377 #  endif
14378 #endif
14379
14380 #ifdef __cplusplus
14381 extern "C" void exit (int);
14382 #endif
14383
14384 void fnord() { int i=42;}
14385 int main ()
14386 {
14387   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14388   int status = $lt_dlunknown;
14389
14390   if (self)
14391     {
14392       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14393       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14394       /* dlclose (self); */
14395     }
14396
14397     exit (status);
14398 }
14399 EOF
14400   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14401   (eval $ac_link) 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14405     (./conftest; exit; ) 2>/dev/null
14406     lt_status=$?
14407     case x$lt_status in
14408       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14409       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14410       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14411     esac
14412   else :
14413     # compilation failed
14414     lt_cv_dlopen_self_static=no
14415   fi
14416 fi
14417 rm -fr conftest*
14418
14419
14420 fi
14421 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14422 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14423     fi
14424
14425     CPPFLAGS="$save_CPPFLAGS"
14426     LDFLAGS="$save_LDFLAGS"
14427     LIBS="$save_LIBS"
14428     ;;
14429   esac
14430
14431   case $lt_cv_dlopen_self in
14432   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14433   *) enable_dlopen_self=unknown ;;
14434   esac
14435
14436   case $lt_cv_dlopen_self_static in
14437   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14438   *) enable_dlopen_self_static=unknown ;;
14439   esac
14440 fi
14441
14442
14443 # Report which librarie types wil actually be built
14444 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14445 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14446 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14447 echo "${ECHO_T}$can_build_shared" >&6
14448
14449 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14450 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14451 test "$can_build_shared" = "no" && enable_shared=no
14452
14453 # On AIX, shared libraries and static libraries use the same namespace, and
14454 # are all built from PIC.
14455 case "$host_os" in
14456 aix3*)
14457   test "$enable_shared" = yes && enable_static=no
14458   if test -n "$RANLIB"; then
14459     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14460     postinstall_cmds='$RANLIB $lib'
14461   fi
14462   ;;
14463
14464 aix4* | aix5*)
14465   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14466     test "$enable_shared" = yes && enable_static=no
14467   fi
14468     ;;
14469 esac
14470 echo "$as_me:$LINENO: result: $enable_shared" >&5
14471 echo "${ECHO_T}$enable_shared" >&6
14472
14473 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14474 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14475 # Make sure either enable_shared or enable_static is yes.
14476 test "$enable_shared" = yes || enable_static=yes
14477 echo "$as_me:$LINENO: result: $enable_static" >&5
14478 echo "${ECHO_T}$enable_static" >&6
14479
14480 # The else clause should only fire when bootstrapping the
14481 # libtool distribution, otherwise you forgot to ship ltmain.sh
14482 # with your package, and you will get complaints that there are
14483 # no rules to generate ltmain.sh.
14484 if test -f "$ltmain"; then
14485   # See if we are running on zsh, and set the options which allow our commands through
14486   # without removal of \ escapes.
14487   if test -n "${ZSH_VERSION+set}" ; then
14488     setopt NO_GLOB_SUBST
14489   fi
14490   # Now quote all the things that may contain metacharacters while being
14491   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14492   # variables and quote the copies for generation of the libtool script.
14493   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14494     SED SHELL STRIP \
14495     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14496     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14497     deplibs_check_method reload_flag reload_cmds need_locks \
14498     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14499     lt_cv_sys_global_symbol_to_c_name_address \
14500     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14501     old_postinstall_cmds old_postuninstall_cmds \
14502     compiler \
14503     CC \
14504     LD \
14505     lt_prog_compiler_wl \
14506     lt_prog_compiler_pic \
14507     lt_prog_compiler_static \
14508     lt_prog_compiler_no_builtin_flag \
14509     export_dynamic_flag_spec \
14510     thread_safe_flag_spec \
14511     whole_archive_flag_spec \
14512     enable_shared_with_static_runtimes \
14513     old_archive_cmds \
14514     old_archive_from_new_cmds \
14515     predep_objects \
14516     postdep_objects \
14517     predeps \
14518     postdeps \
14519     compiler_lib_search_path \
14520     archive_cmds \
14521     archive_expsym_cmds \
14522     postinstall_cmds \
14523     postuninstall_cmds \
14524     old_archive_from_expsyms_cmds \
14525     allow_undefined_flag \
14526     no_undefined_flag \
14527     export_symbols_cmds \
14528     hardcode_libdir_flag_spec \
14529     hardcode_libdir_flag_spec_ld \
14530     hardcode_libdir_separator \
14531     hardcode_automatic \
14532     module_cmds \
14533     module_expsym_cmds \
14534     lt_cv_prog_compiler_c_o \
14535     exclude_expsyms \
14536     include_expsyms; do
14537
14538     case $var in
14539     old_archive_cmds | \
14540     old_archive_from_new_cmds | \
14541     archive_cmds | \
14542     archive_expsym_cmds | \
14543     module_cmds | \
14544     module_expsym_cmds | \
14545     old_archive_from_expsyms_cmds | \
14546     export_symbols_cmds | \
14547     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14548     postinstall_cmds | postuninstall_cmds | \
14549     old_postinstall_cmds | old_postuninstall_cmds | \
14550     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14551       # Double-quote double-evaled strings.
14552       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14553       ;;
14554     *)
14555       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14556       ;;
14557     esac
14558   done
14559
14560   case $lt_echo in
14561   *'\$0 --fallback-echo"')
14562     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14563     ;;
14564   esac
14565
14566 cfgfile="${ofile}T"
14567   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14568   $rm -f "$cfgfile"
14569   { echo "$as_me:$LINENO: creating $ofile" >&5
14570 echo "$as_me: creating $ofile" >&6;}
14571
14572   cat <<__EOF__ >> "$cfgfile"
14573 #! $SHELL
14574
14575 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14576 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14578 #
14579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14580 # Free Software Foundation, Inc.
14581 #
14582 # This file is part of GNU Libtool:
14583 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14584 #
14585 # This program is free software; you can redistribute it and/or modify
14586 # it under the terms of the GNU General Public License as published by
14587 # the Free Software Foundation; either version 2 of the License, or
14588 # (at your option) any later version.
14589 #
14590 # This program is distributed in the hope that it will be useful, but
14591 # WITHOUT ANY WARRANTY; without even the implied warranty of
14592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14593 # General Public License for more details.
14594 #
14595 # You should have received a copy of the GNU General Public License
14596 # along with this program; if not, write to the Free Software
14597 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14598 #
14599 # As a special exception to the GNU General Public License, if you
14600 # distribute this file as part of a program that contains a
14601 # configuration script generated by Autoconf, you may include it under
14602 # the same distribution terms that you use for the rest of that program.
14603
14604 # A sed program that does not truncate output.
14605 SED=$lt_SED
14606
14607 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14608 Xsed="$SED -e s/^X//"
14609
14610 # The HP-UX ksh and POSIX shell print the target directory to stdout
14611 # if CDPATH is set.
14612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14613
14614 # The names of the tagged configurations supported by this script.
14615 available_tags=
14616
14617 # ### BEGIN LIBTOOL CONFIG
14618
14619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14620
14621 # Shell to use when invoking shell scripts.
14622 SHELL=$lt_SHELL
14623
14624 # Whether or not to build shared libraries.
14625 build_libtool_libs=$enable_shared
14626
14627 # Whether or not to build static libraries.
14628 build_old_libs=$enable_static
14629
14630 # Whether or not to add -lc for building shared libraries.
14631 build_libtool_need_lc=$archive_cmds_need_lc
14632
14633 # Whether or not to disallow shared libs when runtime libs are static
14634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14635
14636 # Whether or not to optimize for fast installation.
14637 fast_install=$enable_fast_install
14638
14639 # The host system.
14640 host_alias=$host_alias
14641 host=$host
14642
14643 # An echo program that does not interpret backslashes.
14644 echo=$lt_echo
14645
14646 # The archiver.
14647 AR=$lt_AR
14648 AR_FLAGS=$lt_AR_FLAGS
14649
14650 # A C compiler.
14651 LTCC=$lt_LTCC
14652
14653 # A language-specific compiler.
14654 CC=$lt_compiler
14655
14656 # Is the compiler the GNU C compiler?
14657 with_gcc=$GCC
14658
14659 # An ERE matcher.
14660 EGREP=$lt_EGREP
14661
14662 # The linker used to build libraries.
14663 LD=$lt_LD
14664
14665 # Whether we need hard or soft links.
14666 LN_S=$lt_LN_S
14667
14668 # A BSD-compatible nm program.
14669 NM=$lt_NM
14670
14671 # A symbol stripping program
14672 STRIP=$lt_STRIP
14673
14674 # Used to examine libraries when file_magic_cmd begins "file"
14675 MAGIC_CMD=$MAGIC_CMD
14676
14677 # Used on cygwin: DLL creation program.
14678 DLLTOOL="$DLLTOOL"
14679
14680 # Used on cygwin: object dumper.
14681 OBJDUMP="$OBJDUMP"
14682
14683 # Used on cygwin: assembler.
14684 AS="$AS"
14685
14686 # The name of the directory that contains temporary libtool files.
14687 objdir=$objdir
14688
14689 # How to create reloadable object files.
14690 reload_flag=$lt_reload_flag
14691 reload_cmds=$lt_reload_cmds
14692
14693 # How to pass a linker flag through the compiler.
14694 wl=$lt_lt_prog_compiler_wl
14695
14696 # Object file suffix (normally "o").
14697 objext="$ac_objext"
14698
14699 # Old archive suffix (normally "a").
14700 libext="$libext"
14701
14702 # Shared library suffix (normally ".so").
14703 shrext_cmds='$shrext_cmds'
14704
14705 # Executable file suffix (normally "").
14706 exeext="$exeext"
14707
14708 # Additional compiler flags for building library objects.
14709 pic_flag=$lt_lt_prog_compiler_pic
14710 pic_mode=$pic_mode
14711
14712 # What is the maximum length of a command?
14713 max_cmd_len=$lt_cv_sys_max_cmd_len
14714
14715 # Does compiler simultaneously support -c and -o options?
14716 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14717
14718 # Must we lock files when doing compilation ?
14719 need_locks=$lt_need_locks
14720
14721 # Do we need the lib prefix for modules?
14722 need_lib_prefix=$need_lib_prefix
14723
14724 # Do we need a version for libraries?
14725 need_version=$need_version
14726
14727 # Whether dlopen is supported.
14728 dlopen_support=$enable_dlopen
14729
14730 # Whether dlopen of programs is supported.
14731 dlopen_self=$enable_dlopen_self
14732
14733 # Whether dlopen of statically linked programs is supported.
14734 dlopen_self_static=$enable_dlopen_self_static
14735
14736 # Compiler flag to prevent dynamic linking.
14737 link_static_flag=$lt_lt_prog_compiler_static
14738
14739 # Compiler flag to turn off builtin functions.
14740 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14741
14742 # Compiler flag to allow reflexive dlopens.
14743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14744
14745 # Compiler flag to generate shared objects directly from archives.
14746 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14747
14748 # Compiler flag to generate thread-safe objects.
14749 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14750
14751 # Library versioning type.
14752 version_type=$version_type
14753
14754 # Format of library name prefix.
14755 libname_spec=$lt_libname_spec
14756
14757 # List of archive names.  First name is the real one, the rest are links.
14758 # The last name is the one that the linker finds with -lNAME.
14759 library_names_spec=$lt_library_names_spec
14760
14761 # The coded name of the library, if different from the real name.
14762 soname_spec=$lt_soname_spec
14763
14764 # Commands used to build and install an old-style archive.
14765 RANLIB=$lt_RANLIB
14766 old_archive_cmds=$lt_old_archive_cmds
14767 old_postinstall_cmds=$lt_old_postinstall_cmds
14768 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14769
14770 # Create an old-style archive from a shared archive.
14771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14772
14773 # Create a temporary old-style archive to link instead of a shared archive.
14774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14775
14776 # Commands used to build and install a shared archive.
14777 archive_cmds=$lt_archive_cmds
14778 archive_expsym_cmds=$lt_archive_expsym_cmds
14779 postinstall_cmds=$lt_postinstall_cmds
14780 postuninstall_cmds=$lt_postuninstall_cmds
14781
14782 # Commands used to build a loadable module (assumed same as above if empty)
14783 module_cmds=$lt_module_cmds
14784 module_expsym_cmds=$lt_module_expsym_cmds
14785
14786 # Commands to strip libraries.
14787 old_striplib=$lt_old_striplib
14788 striplib=$lt_striplib
14789
14790 # Dependencies to place before the objects being linked to create a
14791 # shared library.
14792 predep_objects=$lt_predep_objects
14793
14794 # Dependencies to place after the objects being linked to create a
14795 # shared library.
14796 postdep_objects=$lt_postdep_objects
14797
14798 # Dependencies to place before the objects being linked to create a
14799 # shared library.
14800 predeps=$lt_predeps
14801
14802 # Dependencies to place after the objects being linked to create a
14803 # shared library.
14804 postdeps=$lt_postdeps
14805
14806 # The library search path used internally by the compiler when linking
14807 # a shared library.
14808 compiler_lib_search_path=$lt_compiler_lib_search_path
14809
14810 # Method to check whether dependent libraries are shared objects.
14811 deplibs_check_method=$lt_deplibs_check_method
14812
14813 # Command to use when deplibs_check_method == file_magic.
14814 file_magic_cmd=$lt_file_magic_cmd
14815
14816 # Flag that allows shared libraries with undefined symbols to be built.
14817 allow_undefined_flag=$lt_allow_undefined_flag
14818
14819 # Flag that forces no undefined symbols.
14820 no_undefined_flag=$lt_no_undefined_flag
14821
14822 # Commands used to finish a libtool library installation in a directory.
14823 finish_cmds=$lt_finish_cmds
14824
14825 # Same as above, but a single script fragment to be evaled but not shown.
14826 finish_eval=$lt_finish_eval
14827
14828 # Take the output of nm and produce a listing of raw symbols and C names.
14829 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14830
14831 # Transform the output of nm in a proper C declaration
14832 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14833
14834 # Transform the output of nm in a C name address pair
14835 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14836
14837 # This is the shared library runtime path variable.
14838 runpath_var=$runpath_var
14839
14840 # This is the shared library path variable.
14841 shlibpath_var=$shlibpath_var
14842
14843 # Is shlibpath searched before the hard-coded library search path?
14844 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14845
14846 # How to hardcode a shared library path into an executable.
14847 hardcode_action=$hardcode_action
14848
14849 # Whether we should hardcode library paths into libraries.
14850 hardcode_into_libs=$hardcode_into_libs
14851
14852 # Flag to hardcode \$libdir into a binary during linking.
14853 # This must work even if \$libdir does not exist.
14854 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14855
14856 # If ld is used when linking, flag to hardcode \$libdir into
14857 # a binary during linking. This must work even if \$libdir does
14858 # not exist.
14859 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14860
14861 # Whether we need a single -rpath flag with a separated argument.
14862 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14863
14864 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14865 # resulting binary.
14866 hardcode_direct=$hardcode_direct
14867
14868 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14869 # resulting binary.
14870 hardcode_minus_L=$hardcode_minus_L
14871
14872 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14873 # the resulting binary.
14874 hardcode_shlibpath_var=$hardcode_shlibpath_var
14875
14876 # Set to yes if building a shared library automatically hardcodes DIR into the library
14877 # and all subsequent libraries and executables linked against it.
14878 hardcode_automatic=$hardcode_automatic
14879
14880 # Variables whose values should be saved in libtool wrapper scripts and
14881 # restored at relink time.
14882 variables_saved_for_relink="$variables_saved_for_relink"
14883
14884 # Whether libtool must link a program against all its dependency libraries.
14885 link_all_deplibs=$link_all_deplibs
14886
14887 # Compile-time system search path for libraries
14888 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14889
14890 # Run-time system search path for libraries
14891 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14892
14893 # Fix the shell variable \$srcfile for the compiler.
14894 fix_srcfile_path="$fix_srcfile_path"
14895
14896 # Set to yes if exported symbols are required.
14897 always_export_symbols=$always_export_symbols
14898
14899 # The commands to list exported symbols.
14900 export_symbols_cmds=$lt_export_symbols_cmds
14901
14902 # The commands to extract the exported symbol list from a shared archive.
14903 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14904
14905 # Symbols that should not be listed in the preloaded symbols.
14906 exclude_expsyms=$lt_exclude_expsyms
14907
14908 # Symbols that must always be exported.
14909 include_expsyms=$lt_include_expsyms
14910
14911 # ### END LIBTOOL CONFIG
14912
14913 __EOF__
14914
14915
14916   case $host_os in
14917   aix3*)
14918     cat <<\EOF >> "$cfgfile"
14919
14920 # AIX sometimes has problems with the GCC collect2 program.  For some
14921 # reason, if we set the COLLECT_NAMES environment variable, the problems
14922 # vanish in a puff of smoke.
14923 if test "X${COLLECT_NAMES+set}" != Xset; then
14924   COLLECT_NAMES=
14925   export COLLECT_NAMES
14926 fi
14927 EOF
14928     ;;
14929   esac
14930
14931   # We use sed instead of cat because bash on DJGPP gets confused if
14932   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14933   # text mode, it properly converts lines to CR/LF.  This bash problem
14934   # is reportedly fixed, but why not run on old versions too?
14935   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14936
14937   mv -f "$cfgfile" "$ofile" || \
14938     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14939   chmod +x "$ofile"
14940
14941 else
14942   # If there is no Makefile yet, we rely on a make rule to execute
14943   # `config.status --recheck' to rerun these tests and create the
14944   # libtool script then.
14945   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14946   if test -f "$ltmain_in"; then
14947     test -f Makefile && make "$ltmain"
14948   fi
14949 fi
14950
14951
14952 ac_ext=c
14953 ac_cpp='$CPP $CPPFLAGS'
14954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14957
14958 CC="$lt_save_CC"
14959
14960
14961 # Check whether --with-tags or --without-tags was given.
14962 if test "${with_tags+set}" = set; then
14963   withval="$with_tags"
14964   tagnames="$withval"
14965 fi;
14966
14967 if test -f "$ltmain" && test -n "$tagnames"; then
14968   if test ! -f "${ofile}"; then
14969     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14970 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14971   fi
14972
14973   if test -z "$LTCC"; then
14974     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14975     if test -z "$LTCC"; then
14976       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14977 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14978     else
14979       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14980 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14981     fi
14982   fi
14983
14984   # Extract list of available tagged configurations in $ofile.
14985   # Note that this assumes the entire list is on one line.
14986   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14987
14988   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14989   for tagname in $tagnames; do
14990     IFS="$lt_save_ifs"
14991     # Check whether tagname contains only valid characters
14992     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14993     "") ;;
14994     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14995 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14996    { (exit 1); exit 1; }; }
14997         ;;
14998     esac
14999
15000     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15001     then
15002       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15003 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15004    { (exit 1); exit 1; }; }
15005     fi
15006
15007     # Update the list of available tags.
15008     if test -n "$tagname"; then
15009       echo appending configuration tag "$tagname" to $ofile
15010
15011       case $tagname in
15012       CXX)
15013         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15014             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15015             (test "X$CXX" != "Xg++"))) ; then
15016           ac_ext=cc
15017 ac_cpp='$CXXCPP $CPPFLAGS'
15018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15021
15022
15023
15024
15025 archive_cmds_need_lc_CXX=no
15026 allow_undefined_flag_CXX=
15027 always_export_symbols_CXX=no
15028 archive_expsym_cmds_CXX=
15029 export_dynamic_flag_spec_CXX=
15030 hardcode_direct_CXX=no
15031 hardcode_libdir_flag_spec_CXX=
15032 hardcode_libdir_flag_spec_ld_CXX=
15033 hardcode_libdir_separator_CXX=
15034 hardcode_minus_L_CXX=no
15035 hardcode_automatic_CXX=no
15036 module_cmds_CXX=
15037 module_expsym_cmds_CXX=
15038 link_all_deplibs_CXX=unknown
15039 old_archive_cmds_CXX=$old_archive_cmds
15040 no_undefined_flag_CXX=
15041 whole_archive_flag_spec_CXX=
15042 enable_shared_with_static_runtimes_CXX=no
15043
15044 # Dependencies to place before and after the object being linked:
15045 predep_objects_CXX=
15046 postdep_objects_CXX=
15047 predeps_CXX=
15048 postdeps_CXX=
15049 compiler_lib_search_path_CXX=
15050
15051 # Source file extension for C++ test sources.
15052 ac_ext=cc
15053
15054 # Object file extension for compiled C++ test sources.
15055 objext=o
15056 objext_CXX=$objext
15057
15058 # Code to be used in simple compile tests
15059 lt_simple_compile_test_code="int some_variable = 0;\n"
15060
15061 # Code to be used in simple link tests
15062 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15063
15064 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15065
15066 # If no C compiler was specified, use CC.
15067 LTCC=${LTCC-"$CC"}
15068
15069 # Allow CC to be a program name with arguments.
15070 compiler=$CC
15071
15072
15073 # Allow CC to be a program name with arguments.
15074 lt_save_CC=$CC
15075 lt_save_LD=$LD
15076 lt_save_GCC=$GCC
15077 GCC=$GXX
15078 lt_save_with_gnu_ld=$with_gnu_ld
15079 lt_save_path_LD=$lt_cv_path_LD
15080 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15081   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15082 else
15083   unset lt_cv_prog_gnu_ld
15084 fi
15085 if test -n "${lt_cv_path_LDCXX+set}"; then
15086   lt_cv_path_LD=$lt_cv_path_LDCXX
15087 else
15088   unset lt_cv_path_LD
15089 fi
15090 test -z "${LDCXX+set}" || LD=$LDCXX
15091 CC=${CXX-"c++"}
15092 compiler=$CC
15093 compiler_CXX=$CC
15094 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15095
15096 # We don't want -fno-exception wen compiling C++ code, so set the
15097 # no_builtin_flag separately
15098 if test "$GXX" = yes; then
15099   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15100 else
15101   lt_prog_compiler_no_builtin_flag_CXX=
15102 fi
15103
15104 if test "$GXX" = yes; then
15105   # Set up default GNU C++ configuration
15106
15107
15108 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15109 if test "${with_gnu_ld+set}" = set; then
15110   withval="$with_gnu_ld"
15111   test "$withval" = no || with_gnu_ld=yes
15112 else
15113   with_gnu_ld=no
15114 fi;
15115 ac_prog=ld
15116 if test "$GCC" = yes; then
15117   # Check if gcc -print-prog-name=ld gives a path.
15118   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15119 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15120   case $host in
15121   *-*-mingw*)
15122     # gcc leaves a trailing carriage return which upsets mingw
15123     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15124   *)
15125     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15126   esac
15127   case $ac_prog in
15128     # Accept absolute paths.
15129     [\\/]* | ?:[\\/]*)
15130       re_direlt='/[^/][^/]*/\.\./'
15131       # Canonicalize the pathname of ld
15132       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15133       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15134         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15135       done
15136       test -z "$LD" && LD="$ac_prog"
15137       ;;
15138   "")
15139     # If it fails, then pretend we aren't using GCC.
15140     ac_prog=ld
15141     ;;
15142   *)
15143     # If it is relative, then search for the first ld in PATH.
15144     with_gnu_ld=unknown
15145     ;;
15146   esac
15147 elif test "$with_gnu_ld" = yes; then
15148   echo "$as_me:$LINENO: checking for GNU ld" >&5
15149 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15150 else
15151   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15152 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15153 fi
15154 if test "${lt_cv_path_LD+set}" = set; then
15155   echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157   if test -z "$LD"; then
15158   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15159   for ac_dir in $PATH; do
15160     IFS="$lt_save_ifs"
15161     test -z "$ac_dir" && ac_dir=.
15162     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15163       lt_cv_path_LD="$ac_dir/$ac_prog"
15164       # Check to see if the program is GNU ld.  I'd rather use --version,
15165       # but apparently some GNU ld's only accept -v.
15166       # Break only if it was the GNU/non-GNU ld that we prefer.
15167       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15168       *GNU* | *'with BFD'*)
15169         test "$with_gnu_ld" != no && break
15170         ;;
15171       *)
15172         test "$with_gnu_ld" != yes && break
15173         ;;
15174       esac
15175     fi
15176   done
15177   IFS="$lt_save_ifs"
15178 else
15179   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15180 fi
15181 fi
15182
15183 LD="$lt_cv_path_LD"
15184 if test -n "$LD"; then
15185   echo "$as_me:$LINENO: result: $LD" >&5
15186 echo "${ECHO_T}$LD" >&6
15187 else
15188   echo "$as_me:$LINENO: result: no" >&5
15189 echo "${ECHO_T}no" >&6
15190 fi
15191 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15192 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15193    { (exit 1); exit 1; }; }
15194 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15195 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15197   echo $ECHO_N "(cached) $ECHO_C" >&6
15198 else
15199   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15200 case `$LD -v 2>&1 </dev/null` in
15201 *GNU* | *'with BFD'*)
15202   lt_cv_prog_gnu_ld=yes
15203   ;;
15204 *)
15205   lt_cv_prog_gnu_ld=no
15206   ;;
15207 esac
15208 fi
15209 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15211 with_gnu_ld=$lt_cv_prog_gnu_ld
15212
15213
15214
15215   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15216   # archiving commands below assume that GNU ld is being used.
15217   if test "$with_gnu_ld" = yes; then
15218     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15219     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'
15220
15221     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15222     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15223
15224     # If archive_cmds runs LD, not CC, wlarc should be empty
15225     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15226     #     investigate it a little bit more. (MM)
15227     wlarc='${wl}'
15228
15229     # ancient GNU ld didn't support --whole-archive et. al.
15230     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15231         grep 'no-whole-archive' > /dev/null; then
15232       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15233     else
15234       whole_archive_flag_spec_CXX=
15235     fi
15236   else
15237     with_gnu_ld=no
15238     wlarc=
15239
15240     # A generic and very simple default shared library creation
15241     # command for GNU C++ for the case where it uses the native
15242     # linker, instead of GNU ld.  If possible, this setting should
15243     # overridden to take advantage of the native linker features on
15244     # the platform it is being used on.
15245     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15246   fi
15247
15248   # Commands to make compiler produce verbose output that lists
15249   # what "hidden" libraries, object files and flags are used when
15250   # linking a shared library.
15251   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15252
15253 else
15254   GXX=no
15255   with_gnu_ld=no
15256   wlarc=
15257 fi
15258
15259 # PORTME: fill in a description of your system's C++ link characteristics
15260 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15261 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15262 ld_shlibs_CXX=yes
15263 case $host_os in
15264   aix3*)
15265     # FIXME: insert proper C++ library support
15266     ld_shlibs_CXX=no
15267     ;;
15268   aix4* | aix5*)
15269     if test "$host_cpu" = ia64; then
15270       # On IA64, the linker does run time linking by default, so we don't
15271       # have to do anything special.
15272       aix_use_runtimelinking=no
15273       exp_sym_flag='-Bexport'
15274       no_entry_flag=""
15275     else
15276       aix_use_runtimelinking=no
15277
15278       # Test if we are trying to use run time linking or normal
15279       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15280       # need to do runtime linking.
15281       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15282         for ld_flag in $LDFLAGS; do
15283           case $ld_flag in
15284           *-brtl*)
15285             aix_use_runtimelinking=yes
15286             break
15287             ;;
15288           esac
15289         done
15290       esac
15291
15292       exp_sym_flag='-bexport'
15293       no_entry_flag='-bnoentry'
15294     fi
15295
15296     # When large executables or shared objects are built, AIX ld can
15297     # have problems creating the table of contents.  If linking a library
15298     # or program results in "error TOC overflow" add -mminimal-toc to
15299     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15300     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15301
15302     archive_cmds_CXX=''
15303     hardcode_direct_CXX=yes
15304     hardcode_libdir_separator_CXX=':'
15305     link_all_deplibs_CXX=yes
15306
15307     if test "$GXX" = yes; then
15308       case $host_os in aix4.012|aix4.012.*)
15309       # We only want to do this on AIX 4.2 and lower, the check
15310       # below for broken collect2 doesn't work under 4.3+
15311         collect2name=`${CC} -print-prog-name=collect2`
15312         if test -f "$collect2name" && \
15313            strings "$collect2name" | grep resolve_lib_name >/dev/null
15314         then
15315           # We have reworked collect2
15316           hardcode_direct_CXX=yes
15317         else
15318           # We have old collect2
15319           hardcode_direct_CXX=unsupported
15320           # It fails to find uninstalled libraries when the uninstalled
15321           # path is not listed in the libpath.  Setting hardcode_minus_L
15322           # to unsupported forces relinking
15323           hardcode_minus_L_CXX=yes
15324           hardcode_libdir_flag_spec_CXX='-L$libdir'
15325           hardcode_libdir_separator_CXX=
15326         fi
15327       esac
15328       shared_flag='-shared'
15329     else
15330       # not using gcc
15331       if test "$host_cpu" = ia64; then
15332         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15333         # chokes on -Wl,-G. The following line is correct:
15334         shared_flag='-G'
15335       else
15336         if test "$aix_use_runtimelinking" = yes; then
15337           shared_flag='${wl}-G'
15338         else
15339           shared_flag='${wl}-bM:SRE'
15340         fi
15341       fi
15342     fi
15343
15344     # It seems that -bexpall does not export symbols beginning with
15345     # underscore (_), so it is better to generate a list of symbols to export.
15346     always_export_symbols_CXX=yes
15347     if test "$aix_use_runtimelinking" = yes; then
15348       # Warning - without using the other runtime loading flags (-brtl),
15349       # -berok will link without error, but may produce a broken library.
15350       allow_undefined_flag_CXX='-berok'
15351       # Determine the default libpath from the value encoded in an empty executable.
15352       cat >conftest.$ac_ext <<_ACEOF
15353 /* confdefs.h.  */
15354 _ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h.  */
15358
15359 int
15360 main ()
15361 {
15362
15363   ;
15364   return 0;
15365 }
15366 _ACEOF
15367 rm -f conftest.$ac_objext conftest$ac_exeext
15368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15369   (eval $ac_link) 2>conftest.er1
15370   ac_status=$?
15371   grep -v '^ *+' conftest.er1 >conftest.err
15372   rm -f conftest.er1
15373   cat conftest.err >&5
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); } &&
15376          { ac_try='test -z "$ac_cxx_werror_flag"
15377                          || test ! -s conftest.err'
15378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379   (eval $ac_try) 2>&5
15380   ac_status=$?
15381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382   (exit $ac_status); }; } &&
15383          { ac_try='test -s conftest$ac_exeext'
15384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385   (eval $ac_try) 2>&5
15386   ac_status=$?
15387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388   (exit $ac_status); }; }; then
15389
15390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15391 }'`
15392 # Check for a 64-bit object if we didn't find anything.
15393 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; }
15394 }'`; fi
15395 else
15396   echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15398
15399 fi
15400 rm -f conftest.err conftest.$ac_objext \
15401       conftest$ac_exeext conftest.$ac_ext
15402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15403
15404       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15405
15406       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"
15407      else
15408       if test "$host_cpu" = ia64; then
15409         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15410         allow_undefined_flag_CXX="-z nodefs"
15411         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"
15412       else
15413         # Determine the default libpath from the value encoded in an empty executable.
15414         cat >conftest.$ac_ext <<_ACEOF
15415 /* confdefs.h.  */
15416 _ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h.  */
15420
15421 int
15422 main ()
15423 {
15424
15425   ;
15426   return 0;
15427 }
15428 _ACEOF
15429 rm -f conftest.$ac_objext conftest$ac_exeext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431   (eval $ac_link) 2>conftest.er1
15432   ac_status=$?
15433   grep -v '^ *+' conftest.er1 >conftest.err
15434   rm -f conftest.er1
15435   cat conftest.err >&5
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); } &&
15438          { ac_try='test -z "$ac_cxx_werror_flag"
15439                          || test ! -s conftest.err'
15440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441   (eval $ac_try) 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; } &&
15445          { ac_try='test -s conftest$ac_exeext'
15446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447   (eval $ac_try) 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; }; then
15451
15452 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15453 }'`
15454 # Check for a 64-bit object if we didn't find anything.
15455 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; }
15456 }'`; fi
15457 else
15458   echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15460
15461 fi
15462 rm -f conftest.err conftest.$ac_objext \
15463       conftest$ac_exeext conftest.$ac_ext
15464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15465
15466         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15467         # Warning - without using the other run time loading flags,
15468         # -berok will link without error, but may produce a broken library.
15469         no_undefined_flag_CXX=' ${wl}-bernotok'
15470         allow_undefined_flag_CXX=' ${wl}-berok'
15471         # -bexpall does not export symbols beginning with underscore (_)
15472         always_export_symbols_CXX=yes
15473         # Exported symbols can be pulled into shared objects from archives
15474         whole_archive_flag_spec_CXX=' '
15475         archive_cmds_need_lc_CXX=yes
15476         # This is similar to how AIX traditionally builds it's shared libraries.
15477         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'
15478       fi
15479     fi
15480     ;;
15481   chorus*)
15482     case $cc_basename in
15483       *)
15484         # FIXME: insert proper C++ library support
15485         ld_shlibs_CXX=no
15486         ;;
15487     esac
15488     ;;
15489
15490
15491   cygwin* | mingw* | pw32*)
15492     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15493     # as there is no search path for DLLs.
15494     hardcode_libdir_flag_spec_CXX='-L$libdir'
15495     allow_undefined_flag_CXX=unsupported
15496     always_export_symbols_CXX=no
15497     enable_shared_with_static_runtimes_CXX=yes
15498
15499     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15500       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'
15501       # If the export-symbols file already is a .def file (1st line
15502       # is EXPORTS), use it as is; otherwise, prepend...
15503       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15504         cp $export_symbols $output_objdir/$soname.def;
15505       else
15506         echo EXPORTS > $output_objdir/$soname.def;
15507         cat $export_symbols >> $output_objdir/$soname.def;
15508       fi~
15509       $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'
15510     else
15511       ld_shlibs_CXX=no
15512     fi
15513   ;;
15514       darwin* | rhapsody*)
15515         case "$host_os" in
15516         rhapsody* | darwin1.[012])
15517          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15518          ;;
15519        *) # Darwin 1.3 on
15520          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15521            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15522          else
15523            case ${MACOSX_DEPLOYMENT_TARGET} in
15524              10.[012])
15525                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15526                ;;
15527              10.*)
15528                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15529                ;;
15530            esac
15531          fi
15532          ;;
15533         esac
15534       archive_cmds_need_lc_CXX=no
15535       hardcode_direct_CXX=no
15536       hardcode_automatic_CXX=yes
15537       hardcode_shlibpath_var_CXX=unsupported
15538       whole_archive_flag_spec_CXX=''
15539       link_all_deplibs_CXX=yes
15540
15541     if test "$GXX" = yes ; then
15542       lt_int_apple_cc_single_mod=no
15543       output_verbose_link_cmd='echo'
15544       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15545        lt_int_apple_cc_single_mod=yes
15546       fi
15547       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15548        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15549       else
15550           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'
15551         fi
15552         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15553         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15554           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15555             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}'
15556           else
15557             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}'
15558           fi
15559             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}'
15560       else
15561       case "$cc_basename" in
15562         xlc*)
15563          output_verbose_link_cmd='echo'
15564           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'
15565           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15566           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15567           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}'
15568           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}'
15569           ;;
15570        *)
15571          ld_shlibs_CXX=no
15572           ;;
15573       esac
15574       fi
15575         ;;
15576
15577   dgux*)
15578     case $cc_basename in
15579       ec++)
15580         # FIXME: insert proper C++ library support
15581         ld_shlibs_CXX=no
15582         ;;
15583       ghcx)
15584         # Green Hills C++ Compiler
15585         # FIXME: insert proper C++ library support
15586         ld_shlibs_CXX=no
15587         ;;
15588       *)
15589         # FIXME: insert proper C++ library support
15590         ld_shlibs_CXX=no
15591         ;;
15592     esac
15593     ;;
15594   freebsd12*)
15595     # C++ shared libraries reported to be fairly broken before switch to ELF
15596     ld_shlibs_CXX=no
15597     ;;
15598   freebsd-elf*)
15599     archive_cmds_need_lc_CXX=no
15600     ;;
15601   freebsd* | kfreebsd*-gnu)
15602     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15603     # conventions
15604     ld_shlibs_CXX=yes
15605     ;;
15606   gnu*)
15607     ;;
15608   hpux9*)
15609     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15610     hardcode_libdir_separator_CXX=:
15611     export_dynamic_flag_spec_CXX='${wl}-E'
15612     hardcode_direct_CXX=yes
15613     hardcode_minus_L_CXX=yes # Not in the search PATH,
15614                                 # but as the default
15615                                 # location of the library.
15616
15617     case $cc_basename in
15618     CC)
15619       # FIXME: insert proper C++ library support
15620       ld_shlibs_CXX=no
15621       ;;
15622     aCC)
15623       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'
15624       # Commands to make compiler produce verbose output that lists
15625       # what "hidden" libraries, object files and flags are used when
15626       # linking a shared library.
15627       #
15628       # There doesn't appear to be a way to prevent this compiler from
15629       # explicitly linking system object files so we need to strip them
15630       # from the output so that they don't get included in the library
15631       # dependencies.
15632       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'
15633       ;;
15634     *)
15635       if test "$GXX" = yes; then
15636         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'
15637       else
15638         # FIXME: insert proper C++ library support
15639         ld_shlibs_CXX=no
15640       fi
15641       ;;
15642     esac
15643     ;;
15644   hpux10*|hpux11*)
15645     if test $with_gnu_ld = no; then
15646       case "$host_cpu" in
15647       hppa*64*)
15648         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15649         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15650         hardcode_libdir_separator_CXX=:
15651         ;;
15652       ia64*)
15653         hardcode_libdir_flag_spec_CXX='-L$libdir'
15654         ;;
15655       *)
15656         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15657         hardcode_libdir_separator_CXX=:
15658         export_dynamic_flag_spec_CXX='${wl}-E'
15659         ;;
15660       esac
15661     fi
15662     case "$host_cpu" in
15663     hppa*64*)
15664       hardcode_direct_CXX=no
15665       hardcode_shlibpath_var_CXX=no
15666       ;;
15667     ia64*)
15668       hardcode_direct_CXX=no
15669       hardcode_shlibpath_var_CXX=no
15670       hardcode_minus_L_CXX=yes # Not in the search PATH,
15671                                               # but as the default
15672                                               # location of the library.
15673       ;;
15674     *)
15675       hardcode_direct_CXX=yes
15676       hardcode_minus_L_CXX=yes # Not in the search PATH,
15677                                               # but as the default
15678                                               # location of the library.
15679       ;;
15680     esac
15681
15682     case $cc_basename in
15683       CC)
15684         # FIXME: insert proper C++ library support
15685         ld_shlibs_CXX=no
15686         ;;
15687       aCC)
15688         case "$host_cpu" in
15689         hppa*64*|ia64*)
15690           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15691           ;;
15692         *)
15693           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15694           ;;
15695         esac
15696         # Commands to make compiler produce verbose output that lists
15697         # what "hidden" libraries, object files and flags are used when
15698         # linking a shared library.
15699         #
15700         # There doesn't appear to be a way to prevent this compiler from
15701         # explicitly linking system object files so we need to strip them
15702         # from the output so that they don't get included in the library
15703         # dependencies.
15704         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'
15705         ;;
15706       *)
15707         if test "$GXX" = yes; then
15708           if test $with_gnu_ld = no; then
15709             case "$host_cpu" in
15710             ia64*|hppa*64*)
15711               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15712               ;;
15713             *)
15714               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'
15715               ;;
15716             esac
15717           fi
15718         else
15719           # FIXME: insert proper C++ library support
15720           ld_shlibs_CXX=no
15721         fi
15722         ;;
15723     esac
15724     ;;
15725   irix5* | irix6*)
15726     case $cc_basename in
15727       CC)
15728         # SGI C++
15729         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'
15730
15731         # Archives containing C++ object files must be created using
15732         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15733         # necessary to make sure instantiated templates are included
15734         # in the archive.
15735         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15736         ;;
15737       *)
15738         if test "$GXX" = yes; then
15739           if test "$with_gnu_ld" = no; then
15740             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'
15741           else
15742             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'
15743           fi
15744         fi
15745         link_all_deplibs_CXX=yes
15746         ;;
15747     esac
15748     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15749     hardcode_libdir_separator_CXX=:
15750     ;;
15751   linux*)
15752     case $cc_basename in
15753       KCC)
15754         # Kuck and Associates, Inc. (KAI) C++ Compiler
15755
15756         # KCC will only create a shared library if the output file
15757         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15758         # to its proper name (with version) after linking.
15759         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'
15760         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'
15761         # Commands to make compiler produce verbose output that lists
15762         # what "hidden" libraries, object files and flags are used when
15763         # linking a shared library.
15764         #
15765         # There doesn't appear to be a way to prevent this compiler from
15766         # explicitly linking system object files so we need to strip them
15767         # from the output so that they don't get included in the library
15768         # dependencies.
15769         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'
15770
15771         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15772         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15773
15774         # Archives containing C++ object files must be created using
15775         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15776         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15777         ;;
15778       icpc)
15779         # Intel C++
15780         with_gnu_ld=yes
15781         # version 8.0 and above of icpc choke on multiply defined symbols
15782         # if we add $predep_objects and $postdep_objects, however 7.1 and
15783         # earlier do not add the objects themselves.
15784         case `$CC -V 2>&1` in
15785         *"Version 7."*)
15786           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15787           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'
15788           ;;
15789         *)  # Version 8.0 or newer
15790           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15791         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15792           ;;
15793         esac
15794         archive_cmds_need_lc_CXX=no
15795         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15796         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15797         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15798         ;;
15799       cxx)
15800         # Compaq C++
15801         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15802         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'
15803
15804         runpath_var=LD_RUN_PATH
15805         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15806         hardcode_libdir_separator_CXX=:
15807
15808         # Commands to make compiler produce verbose output that lists
15809         # what "hidden" libraries, object files and flags are used when
15810         # linking a shared library.
15811         #
15812         # There doesn't appear to be a way to prevent this compiler from
15813         # explicitly linking system object files so we need to strip them
15814         # from the output so that they don't get included in the library
15815         # dependencies.
15816         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'
15817         ;;
15818     esac
15819     ;;
15820   lynxos*)
15821     # FIXME: insert proper C++ library support
15822     ld_shlibs_CXX=no
15823     ;;
15824   m88k*)
15825     # FIXME: insert proper C++ library support
15826     ld_shlibs_CXX=no
15827     ;;
15828   mvs*)
15829     case $cc_basename in
15830       cxx)
15831         # FIXME: insert proper C++ library support
15832         ld_shlibs_CXX=no
15833         ;;
15834       *)
15835         # FIXME: insert proper C++ library support
15836         ld_shlibs_CXX=no
15837         ;;
15838     esac
15839     ;;
15840   netbsd*)
15841     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15842       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15843       wlarc=
15844       hardcode_libdir_flag_spec_CXX='-R$libdir'
15845       hardcode_direct_CXX=yes
15846       hardcode_shlibpath_var_CXX=no
15847     fi
15848     # Workaround some broken pre-1.5 toolchains
15849     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15850     ;;
15851   openbsd2*)
15852     # C++ shared libraries are fairly broken
15853     ld_shlibs_CXX=no
15854     ;;
15855   openbsd*)
15856     hardcode_direct_CXX=yes
15857     hardcode_shlibpath_var_CXX=no
15858     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15859     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15860     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15861       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15862       export_dynamic_flag_spec_CXX='${wl}-E'
15863       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15864     fi
15865     output_verbose_link_cmd='echo'
15866     ;;
15867   osf3*)
15868     case $cc_basename in
15869       KCC)
15870         # Kuck and Associates, Inc. (KAI) C++ Compiler
15871
15872         # KCC will only create a shared library if the output file
15873         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15874         # to its proper name (with version) after linking.
15875         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'
15876
15877         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15878         hardcode_libdir_separator_CXX=:
15879
15880         # Archives containing C++ object files must be created using
15881         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15882         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15883
15884         ;;
15885       RCC)
15886         # Rational C++ 2.4.1
15887         # FIXME: insert proper C++ library support
15888         ld_shlibs_CXX=no
15889         ;;
15890       cxx)
15891         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15892         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'
15893
15894         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15895         hardcode_libdir_separator_CXX=:
15896
15897         # Commands to make compiler produce verbose output that lists
15898         # what "hidden" libraries, object files and flags are used when
15899         # linking a shared library.
15900         #
15901         # There doesn't appear to be a way to prevent this compiler from
15902         # explicitly linking system object files so we need to strip them
15903         # from the output so that they don't get included in the library
15904         # dependencies.
15905         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'
15906         ;;
15907       *)
15908         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15909           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15910           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'
15911
15912           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15913           hardcode_libdir_separator_CXX=:
15914
15915           # Commands to make compiler produce verbose output that lists
15916           # what "hidden" libraries, object files and flags are used when
15917           # linking a shared library.
15918           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15919
15920         else
15921           # FIXME: insert proper C++ library support
15922           ld_shlibs_CXX=no
15923         fi
15924         ;;
15925     esac
15926     ;;
15927   osf4* | osf5*)
15928     case $cc_basename in
15929       KCC)
15930         # Kuck and Associates, Inc. (KAI) C++ Compiler
15931
15932         # KCC will only create a shared library if the output file
15933         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15934         # to its proper name (with version) after linking.
15935         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'
15936
15937         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15938         hardcode_libdir_separator_CXX=:
15939
15940         # Archives containing C++ object files must be created using
15941         # the KAI C++ compiler.
15942         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15943         ;;
15944       RCC)
15945         # Rational C++ 2.4.1
15946         # FIXME: insert proper C++ library support
15947         ld_shlibs_CXX=no
15948         ;;
15949       cxx)
15950         allow_undefined_flag_CXX=' -expect_unresolved \*'
15951         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'
15952         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15953           echo "-hidden">> $lib.exp~
15954           $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~
15955           $rm $lib.exp'
15956
15957         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15958         hardcode_libdir_separator_CXX=:
15959
15960         # Commands to make compiler produce verbose output that lists
15961         # what "hidden" libraries, object files and flags are used when
15962         # linking a shared library.
15963         #
15964         # There doesn't appear to be a way to prevent this compiler from
15965         # explicitly linking system object files so we need to strip them
15966         # from the output so that they don't get included in the library
15967         # dependencies.
15968         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'
15969         ;;
15970       *)
15971         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15972           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15973          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'
15974
15975           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15976           hardcode_libdir_separator_CXX=:
15977
15978           # Commands to make compiler produce verbose output that lists
15979           # what "hidden" libraries, object files and flags are used when
15980           # linking a shared library.
15981           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15982
15983         else
15984           # FIXME: insert proper C++ library support
15985           ld_shlibs_CXX=no
15986         fi
15987         ;;
15988     esac
15989     ;;
15990   psos*)
15991     # FIXME: insert proper C++ library support
15992     ld_shlibs_CXX=no
15993     ;;
15994   sco*)
15995     archive_cmds_need_lc_CXX=no
15996     case $cc_basename in
15997       CC)
15998         # FIXME: insert proper C++ library support
15999         ld_shlibs_CXX=no
16000         ;;
16001       *)
16002         # FIXME: insert proper C++ library support
16003         ld_shlibs_CXX=no
16004         ;;
16005     esac
16006     ;;
16007   sunos4*)
16008     case $cc_basename in
16009       CC)
16010         # Sun C++ 4.x
16011         # FIXME: insert proper C++ library support
16012         ld_shlibs_CXX=no
16013         ;;
16014       lcc)
16015         # Lucid
16016         # FIXME: insert proper C++ library support
16017         ld_shlibs_CXX=no
16018         ;;
16019       *)
16020         # FIXME: insert proper C++ library support
16021         ld_shlibs_CXX=no
16022         ;;
16023     esac
16024     ;;
16025   solaris*)
16026     case $cc_basename in
16027       CC)
16028         # Sun C++ 4.2, 5.x and Centerline C++
16029         no_undefined_flag_CXX=' -zdefs'
16030         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16031         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16032         $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'
16033
16034         hardcode_libdir_flag_spec_CXX='-R$libdir'
16035         hardcode_shlibpath_var_CXX=no
16036         case $host_os in
16037           solaris2.0-5 | solaris2.0-5.*) ;;
16038           *)
16039             # The C++ compiler is used as linker so we must use $wl
16040             # flag to pass the commands to the underlying system
16041             # linker.
16042             # Supported since Solaris 2.6 (maybe 2.5.1?)
16043             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16044             ;;
16045         esac
16046         link_all_deplibs_CXX=yes
16047
16048         # Commands to make compiler produce verbose output that lists
16049         # what "hidden" libraries, object files and flags are used when
16050         # linking a shared library.
16051         #
16052         # There doesn't appear to be a way to prevent this compiler from
16053         # explicitly linking system object files so we need to strip them
16054         # from the output so that they don't get included in the library
16055         # dependencies.
16056         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'
16057
16058         # Archives containing C++ object files must be created using
16059         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16060         # necessary to make sure instantiated templates are included
16061         # in the archive.
16062         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16063         ;;
16064       gcx)
16065         # Green Hills C++ Compiler
16066         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16067
16068         # The C++ compiler must be used to create the archive.
16069         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16070         ;;
16071       *)
16072         # GNU C++ compiler with Solaris linker
16073         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16074           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16075           if $CC --version | grep -v '^2\.7' > /dev/null; then
16076             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16077             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16078                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16079
16080             # Commands to make compiler produce verbose output that lists
16081             # what "hidden" libraries, object files and flags are used when
16082             # linking a shared library.
16083             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16084           else
16085             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16086             # platform.
16087             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16088             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16089                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16090
16091             # Commands to make compiler produce verbose output that lists
16092             # what "hidden" libraries, object files and flags are used when
16093             # linking a shared library.
16094             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16095           fi
16096
16097           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16098         fi
16099         ;;
16100     esac
16101     ;;
16102   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16103     archive_cmds_need_lc_CXX=no
16104     ;;
16105   tandem*)
16106     case $cc_basename in
16107       NCC)
16108         # NonStop-UX NCC 3.20
16109         # FIXME: insert proper C++ library support
16110         ld_shlibs_CXX=no
16111         ;;
16112       *)
16113         # FIXME: insert proper C++ library support
16114         ld_shlibs_CXX=no
16115         ;;
16116     esac
16117     ;;
16118   vxworks*)
16119     # FIXME: insert proper C++ library support
16120     ld_shlibs_CXX=no
16121     ;;
16122   *)
16123     # FIXME: insert proper C++ library support
16124     ld_shlibs_CXX=no
16125     ;;
16126 esac
16127 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16128 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16129 test "$ld_shlibs_CXX" = no && can_build_shared=no
16130
16131 GCC_CXX="$GXX"
16132 LD_CXX="$LD"
16133
16134
16135 cat > conftest.$ac_ext <<EOF
16136 class Foo
16137 {
16138 public:
16139   Foo (void) { a = 0; }
16140 private:
16141   int a;
16142 };
16143 EOF
16144
16145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16146   (eval $ac_compile) 2>&5
16147   ac_status=$?
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); }; then
16150   # Parse the compiler output and extract the necessary
16151   # objects, libraries and library flags.
16152
16153   # Sentinel used to keep track of whether or not we are before
16154   # the conftest object file.
16155   pre_test_object_deps_done=no
16156
16157   # The `*' in the case matches for architectures that use `case' in
16158   # $output_verbose_cmd can trigger glob expansion during the loop
16159   # eval without this substitution.
16160   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16161
16162   for p in `eval $output_verbose_link_cmd`; do
16163     case $p in
16164
16165     -L* | -R* | -l*)
16166        # Some compilers place space between "-{L,R}" and the path.
16167        # Remove the space.
16168        if test $p = "-L" \
16169           || test $p = "-R"; then
16170          prev=$p
16171          continue
16172        else
16173          prev=
16174        fi
16175
16176        if test "$pre_test_object_deps_done" = no; then
16177          case $p in
16178          -L* | -R*)
16179            # Internal compiler library paths should come after those
16180            # provided the user.  The postdeps already come after the
16181            # user supplied libs so there is no need to process them.
16182            if test -z "$compiler_lib_search_path_CXX"; then
16183              compiler_lib_search_path_CXX="${prev}${p}"
16184            else
16185              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16186            fi
16187            ;;
16188          # The "-l" case would never come before the object being
16189          # linked, so don't bother handling this case.
16190          esac
16191        else
16192          if test -z "$postdeps_CXX"; then
16193            postdeps_CXX="${prev}${p}"
16194          else
16195            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16196          fi
16197        fi
16198        ;;
16199
16200     *.$objext)
16201        # This assumes that the test object file only shows up
16202        # once in the compiler output.
16203        if test "$p" = "conftest.$objext"; then
16204          pre_test_object_deps_done=yes
16205          continue
16206        fi
16207
16208        if test "$pre_test_object_deps_done" = no; then
16209          if test -z "$predep_objects_CXX"; then
16210            predep_objects_CXX="$p"
16211          else
16212            predep_objects_CXX="$predep_objects_CXX $p"
16213          fi
16214        else
16215          if test -z "$postdep_objects_CXX"; then
16216            postdep_objects_CXX="$p"
16217          else
16218            postdep_objects_CXX="$postdep_objects_CXX $p"
16219          fi
16220        fi
16221        ;;
16222
16223     *) ;; # Ignore the rest.
16224
16225     esac
16226   done
16227
16228   # Clean up.
16229   rm -f a.out a.exe
16230 else
16231   echo "libtool.m4: error: problem compiling CXX test program"
16232 fi
16233
16234 $rm -f confest.$objext
16235
16236 case " $postdeps_CXX " in
16237 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16238 esac
16239
16240 lt_prog_compiler_wl_CXX=
16241 lt_prog_compiler_pic_CXX=
16242 lt_prog_compiler_static_CXX=
16243
16244 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16245 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16246
16247   # C++ specific cases for pic, static, wl, etc.
16248   if test "$GXX" = yes; then
16249     lt_prog_compiler_wl_CXX='-Wl,'
16250     lt_prog_compiler_static_CXX='-static'
16251
16252     case $host_os in
16253     aix*)
16254       # All AIX code is PIC.
16255       if test "$host_cpu" = ia64; then
16256         # AIX 5 now supports IA64 processor
16257         lt_prog_compiler_static_CXX='-Bstatic'
16258       fi
16259       ;;
16260     amigaos*)
16261       # FIXME: we need at least 68020 code to build shared libraries, but
16262       # adding the `-m68020' flag to GCC prevents building anything better,
16263       # like `-m68040'.
16264       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16265       ;;
16266     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16267       # PIC is the default for these OSes.
16268       ;;
16269     mingw* | os2* | pw32*)
16270       # This hack is so that the source file can tell whether it is being
16271       # built for inclusion in a dll (and should export symbols for example).
16272       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16273       ;;
16274     darwin* | rhapsody*)
16275       # PIC is the default on this platform
16276       # Common symbols not allowed in MH_DYLIB files
16277       lt_prog_compiler_pic_CXX='-fno-common'
16278       ;;
16279     *djgpp*)
16280       # DJGPP does not support shared libraries at all
16281       lt_prog_compiler_pic_CXX=
16282       ;;
16283     sysv4*MP*)
16284       if test -d /usr/nec; then
16285         lt_prog_compiler_pic_CXX=-Kconform_pic
16286       fi
16287       ;;
16288     hpux*)
16289       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16290       # not for PA HP-UX.
16291       case "$host_cpu" in
16292       hppa*64*|ia64*)
16293         ;;
16294       *)
16295         lt_prog_compiler_pic_CXX='-fPIC'
16296         ;;
16297       esac
16298       ;;
16299     *)
16300       lt_prog_compiler_pic_CXX='-fPIC'
16301       ;;
16302     esac
16303   else
16304     case $host_os in
16305       aix4* | aix5*)
16306         # All AIX code is PIC.
16307         if test "$host_cpu" = ia64; then
16308           # AIX 5 now supports IA64 processor
16309           lt_prog_compiler_static_CXX='-Bstatic'
16310         else
16311           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16312         fi
16313         ;;
16314       chorus*)
16315         case $cc_basename in
16316         cxch68)
16317           # Green Hills C++ Compiler
16318           # _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"
16319           ;;
16320         esac
16321         ;;
16322        darwin*)
16323          # PIC is the default on this platform
16324          # Common symbols not allowed in MH_DYLIB files
16325          case "$cc_basename" in
16326            xlc*)
16327            lt_prog_compiler_pic_CXX='-qnocommon'
16328            lt_prog_compiler_wl_CXX='-Wl,'
16329            ;;
16330          esac
16331        ;;
16332       dgux*)
16333         case $cc_basename in
16334           ec++)
16335             lt_prog_compiler_pic_CXX='-KPIC'
16336             ;;
16337           ghcx)
16338             # Green Hills C++ Compiler
16339             lt_prog_compiler_pic_CXX='-pic'
16340             ;;
16341           *)
16342             ;;
16343         esac
16344         ;;
16345       freebsd* | kfreebsd*-gnu)
16346         # FreeBSD uses GNU C++
16347         ;;
16348       hpux9* | hpux10* | hpux11*)
16349         case $cc_basename in
16350           CC)
16351             lt_prog_compiler_wl_CXX='-Wl,'
16352             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16353             if test "$host_cpu" != ia64; then
16354               lt_prog_compiler_pic_CXX='+Z'
16355             fi
16356             ;;
16357           aCC)
16358             lt_prog_compiler_wl_CXX='-Wl,'
16359             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16360             case "$host_cpu" in
16361             hppa*64*|ia64*)
16362               # +Z the default
16363               ;;
16364             *)
16365               lt_prog_compiler_pic_CXX='+Z'
16366               ;;
16367             esac
16368             ;;
16369           *)
16370             ;;
16371         esac
16372         ;;
16373       irix5* | irix6* | nonstopux*)
16374         case $cc_basename in
16375           CC)
16376             lt_prog_compiler_wl_CXX='-Wl,'
16377             lt_prog_compiler_static_CXX='-non_shared'
16378             # CC pic flag -KPIC is the default.
16379             ;;
16380           *)
16381             ;;
16382         esac
16383         ;;
16384       linux*)
16385         case $cc_basename in
16386           KCC)
16387             # KAI C++ Compiler
16388             lt_prog_compiler_wl_CXX='--backend -Wl,'
16389             lt_prog_compiler_pic_CXX='-fPIC'
16390             ;;
16391           icpc)
16392             # Intel C++
16393             lt_prog_compiler_wl_CXX='-Wl,'
16394             lt_prog_compiler_pic_CXX='-KPIC'
16395             lt_prog_compiler_static_CXX='-static'
16396             ;;
16397           cxx)
16398             # Compaq C++
16399             # Make sure the PIC flag is empty.  It appears that all Alpha
16400             # Linux and Compaq Tru64 Unix objects are PIC.
16401             lt_prog_compiler_pic_CXX=
16402             lt_prog_compiler_static_CXX='-non_shared'
16403             ;;
16404           *)
16405             ;;
16406         esac
16407         ;;
16408       lynxos*)
16409         ;;
16410       m88k*)
16411         ;;
16412       mvs*)
16413         case $cc_basename in
16414           cxx)
16415             lt_prog_compiler_pic_CXX='-W c,exportall'
16416             ;;
16417           *)
16418             ;;
16419         esac
16420         ;;
16421       netbsd*)
16422         ;;
16423       osf3* | osf4* | osf5*)
16424         case $cc_basename in
16425           KCC)
16426             lt_prog_compiler_wl_CXX='--backend -Wl,'
16427             ;;
16428           RCC)
16429             # Rational C++ 2.4.1
16430             lt_prog_compiler_pic_CXX='-pic'
16431             ;;
16432           cxx)
16433             # Digital/Compaq C++
16434             lt_prog_compiler_wl_CXX='-Wl,'
16435             # Make sure the PIC flag is empty.  It appears that all Alpha
16436             # Linux and Compaq Tru64 Unix objects are PIC.
16437             lt_prog_compiler_pic_CXX=
16438             lt_prog_compiler_static_CXX='-non_shared'
16439             ;;
16440           *)
16441             ;;
16442         esac
16443         ;;
16444       psos*)
16445         ;;
16446       sco*)
16447         case $cc_basename in
16448           CC)
16449             lt_prog_compiler_pic_CXX='-fPIC'
16450             ;;
16451           *)
16452             ;;
16453         esac
16454         ;;
16455       solaris*)
16456         case $cc_basename in
16457           CC)
16458             # Sun C++ 4.2, 5.x and Centerline C++
16459             lt_prog_compiler_pic_CXX='-KPIC'
16460             lt_prog_compiler_static_CXX='-Bstatic'
16461             lt_prog_compiler_wl_CXX='-Qoption ld '
16462             ;;
16463           gcx)
16464             # Green Hills C++ Compiler
16465             lt_prog_compiler_pic_CXX='-PIC'
16466             ;;
16467           *)
16468             ;;
16469         esac
16470         ;;
16471       sunos4*)
16472         case $cc_basename in
16473           CC)
16474             # Sun C++ 4.x
16475             lt_prog_compiler_pic_CXX='-pic'
16476             lt_prog_compiler_static_CXX='-Bstatic'
16477             ;;
16478           lcc)
16479             # Lucid
16480             lt_prog_compiler_pic_CXX='-pic'
16481             ;;
16482           *)
16483             ;;
16484         esac
16485         ;;
16486       tandem*)
16487         case $cc_basename in
16488           NCC)
16489             # NonStop-UX NCC 3.20
16490             lt_prog_compiler_pic_CXX='-KPIC'
16491             ;;
16492           *)
16493             ;;
16494         esac
16495         ;;
16496       unixware*)
16497         ;;
16498       vxworks*)
16499         ;;
16500       *)
16501         lt_prog_compiler_can_build_shared_CXX=no
16502         ;;
16503     esac
16504   fi
16505
16506 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16507 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16508
16509 #
16510 # Check to make sure the PIC flag actually works.
16511 #
16512 if test -n "$lt_prog_compiler_pic_CXX"; then
16513
16514 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16515 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16516 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16517   echo $ECHO_N "(cached) $ECHO_C" >&6
16518 else
16519   lt_prog_compiler_pic_works_CXX=no
16520   ac_outfile=conftest.$ac_objext
16521    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16522    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16523    # Insert the option either (1) after the last *FLAGS variable, or
16524    # (2) before a word containing "conftest.", or (3) at the end.
16525    # Note that $ac_compile itself does not contain backslashes and begins
16526    # with a dollar sign (not a hyphen), so the echo should work correctly.
16527    # The option is referenced via a variable to avoid confusing sed.
16528    lt_compile=`echo "$ac_compile" | $SED \
16529    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16530    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16531    -e 's:$: $lt_compiler_flag:'`
16532    (eval echo "\"\$as_me:16532: $lt_compile\"" >&5)
16533    (eval "$lt_compile" 2>conftest.err)
16534    ac_status=$?
16535    cat conftest.err >&5
16536    echo "$as_me:16536: \$? = $ac_status" >&5
16537    if (exit $ac_status) && test -s "$ac_outfile"; then
16538      # The compiler can only warn and ignore the option if not recognized
16539      # So say no if there are warnings
16540      if test ! -s conftest.err; then
16541        lt_prog_compiler_pic_works_CXX=yes
16542      fi
16543    fi
16544    $rm conftest*
16545
16546 fi
16547 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16548 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16549
16550 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16551     case $lt_prog_compiler_pic_CXX in
16552      "" | " "*) ;;
16553      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16554      esac
16555 else
16556     lt_prog_compiler_pic_CXX=
16557      lt_prog_compiler_can_build_shared_CXX=no
16558 fi
16559
16560 fi
16561 case "$host_os" in
16562   # For platforms which do not support PIC, -DPIC is meaningless:
16563   *djgpp*)
16564     lt_prog_compiler_pic_CXX=
16565     ;;
16566   *)
16567     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16568     ;;
16569 esac
16570
16571 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16572 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16573 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16574   echo $ECHO_N "(cached) $ECHO_C" >&6
16575 else
16576   lt_cv_prog_compiler_c_o_CXX=no
16577    $rm -r conftest 2>/dev/null
16578    mkdir conftest
16579    cd conftest
16580    mkdir out
16581    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16582
16583    lt_compiler_flag="-o out/conftest2.$ac_objext"
16584    # Insert the option either (1) after the last *FLAGS variable, or
16585    # (2) before a word containing "conftest.", or (3) at the end.
16586    # Note that $ac_compile itself does not contain backslashes and begins
16587    # with a dollar sign (not a hyphen), so the echo should work correctly.
16588    lt_compile=`echo "$ac_compile" | $SED \
16589    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16590    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16591    -e 's:$: $lt_compiler_flag:'`
16592    (eval echo "\"\$as_me:16592: $lt_compile\"" >&5)
16593    (eval "$lt_compile" 2>out/conftest.err)
16594    ac_status=$?
16595    cat out/conftest.err >&5
16596    echo "$as_me:16596: \$? = $ac_status" >&5
16597    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16598    then
16599      # The compiler can only warn and ignore the option if not recognized
16600      # So say no if there are warnings
16601      if test ! -s out/conftest.err; then
16602        lt_cv_prog_compiler_c_o_CXX=yes
16603      fi
16604    fi
16605    chmod u+w .
16606    $rm conftest*
16607    # SGI C++ compiler will create directory out/ii_files/ for
16608    # template instantiation
16609    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16610    $rm out/* && rmdir out
16611    cd ..
16612    rmdir conftest
16613    $rm conftest*
16614
16615 fi
16616 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16617 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16618
16619
16620 hard_links="nottested"
16621 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16622   # do not overwrite the value of need_locks provided by the user
16623   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16624 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16625   hard_links=yes
16626   $rm conftest*
16627   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16628   touch conftest.a
16629   ln conftest.a conftest.b 2>&5 || hard_links=no
16630   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16631   echo "$as_me:$LINENO: result: $hard_links" >&5
16632 echo "${ECHO_T}$hard_links" >&6
16633   if test "$hard_links" = no; then
16634     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16635 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16636     need_locks=warn
16637   fi
16638 else
16639   need_locks=no
16640 fi
16641
16642 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16643 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16644
16645   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16646   case $host_os in
16647   aix4* | aix5*)
16648     # If we're using GNU nm, then we don't want the "-C" option.
16649     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16650     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16651       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'
16652     else
16653       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'
16654     fi
16655     ;;
16656   pw32*)
16657     export_symbols_cmds_CXX="$ltdll_cmds"
16658   ;;
16659   cygwin* | mingw*)
16660     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16661   ;;
16662   *)
16663     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16664   ;;
16665   esac
16666
16667 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16668 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16669 test "$ld_shlibs_CXX" = no && can_build_shared=no
16670
16671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16672 if test "$GCC" = yes; then
16673   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16674 fi
16675
16676 #
16677 # Do we need to explicitly link libc?
16678 #
16679 case "x$archive_cmds_need_lc_CXX" in
16680 x|xyes)
16681   # Assume -lc should be added
16682   archive_cmds_need_lc_CXX=yes
16683
16684   if test "$enable_shared" = yes && test "$GCC" = yes; then
16685     case $archive_cmds_CXX in
16686     *'~'*)
16687       # FIXME: we may have to deal with multi-command sequences.
16688       ;;
16689     '$CC '*)
16690       # Test whether the compiler implicitly links with -lc since on some
16691       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16692       # to ld, don't add -lc before -lgcc.
16693       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16694 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16695       $rm conftest*
16696       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16697
16698       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16699   (eval $ac_compile) 2>&5
16700   ac_status=$?
16701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702   (exit $ac_status); } 2>conftest.err; then
16703         soname=conftest
16704         lib=conftest
16705         libobjs=conftest.$ac_objext
16706         deplibs=
16707         wl=$lt_prog_compiler_wl_CXX
16708         compiler_flags=-v
16709         linker_flags=-v
16710         verstring=
16711         output_objdir=.
16712         libname=conftest
16713         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16714         allow_undefined_flag_CXX=
16715         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16716   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16717   ac_status=$?
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); }
16720         then
16721           archive_cmds_need_lc_CXX=no
16722         else
16723           archive_cmds_need_lc_CXX=yes
16724         fi
16725         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16726       else
16727         cat conftest.err 1>&5
16728       fi
16729       $rm conftest*
16730       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16731 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16732       ;;
16733     esac
16734   fi
16735   ;;
16736 esac
16737
16738 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16739 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16740 library_names_spec=
16741 libname_spec='lib$name'
16742 soname_spec=
16743 shrext_cmds=".so"
16744 postinstall_cmds=
16745 postuninstall_cmds=
16746 finish_cmds=
16747 finish_eval=
16748 shlibpath_var=
16749 shlibpath_overrides_runpath=unknown
16750 version_type=none
16751 dynamic_linker="$host_os ld.so"
16752 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16753 if test "$GCC" = yes; then
16754   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16755   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16756     # if the path contains ";" then we assume it to be the separator
16757     # otherwise default to the standard path separator (i.e. ":") - it is
16758     # assumed that no part of a normal pathname contains ";" but that should
16759     # okay in the real world where ";" in dirpaths is itself problematic.
16760     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16761   else
16762     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16763   fi
16764 else
16765   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16766 fi
16767 need_lib_prefix=unknown
16768 hardcode_into_libs=no
16769
16770 # when you set need_version to no, make sure it does not cause -set_version
16771 # flags to be left without arguments
16772 need_version=unknown
16773
16774 case $host_os in
16775 aix3*)
16776   version_type=linux
16777   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16778   shlibpath_var=LIBPATH
16779
16780   # AIX 3 has no versioning support, so we append a major version to the name.
16781   soname_spec='${libname}${release}${shared_ext}$major'
16782   ;;
16783
16784 aix4* | aix5*)
16785   version_type=linux
16786   need_lib_prefix=no
16787   need_version=no
16788   hardcode_into_libs=yes
16789   if test "$host_cpu" = ia64; then
16790     # AIX 5 supports IA64
16791     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16792     shlibpath_var=LD_LIBRARY_PATH
16793   else
16794     # With GCC up to 2.95.x, collect2 would create an import file
16795     # for dependence libraries.  The import file would start with
16796     # the line `#! .'.  This would cause the generated library to
16797     # depend on `.', always an invalid library.  This was fixed in
16798     # development snapshots of GCC prior to 3.0.
16799     case $host_os in
16800       aix4 | aix4.[01] | aix4.[01].*)
16801       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16802            echo ' yes '
16803            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16804         :
16805       else
16806         can_build_shared=no
16807       fi
16808       ;;
16809     esac
16810     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16811     # soname into executable. Probably we can add versioning support to
16812     # collect2, so additional links can be useful in future.
16813     if test "$aix_use_runtimelinking" = yes; then
16814       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16815       # instead of lib<name>.a to let people know that these are not
16816       # typical AIX shared libraries.
16817       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818     else
16819       # We preserve .a as extension for shared libraries through AIX4.2
16820       # and later when we are not doing run time linking.
16821       library_names_spec='${libname}${release}.a $libname.a'
16822       soname_spec='${libname}${release}${shared_ext}$major'
16823     fi
16824     shlibpath_var=LIBPATH
16825   fi
16826   ;;
16827
16828 amigaos*)
16829   library_names_spec='$libname.ixlibrary $libname.a'
16830   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16831   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'
16832   ;;
16833
16834 beos*)
16835   library_names_spec='${libname}${shared_ext}'
16836   dynamic_linker="$host_os ld.so"
16837   shlibpath_var=LIBRARY_PATH
16838   ;;
16839
16840 bsdi[45]*)
16841   version_type=linux
16842   need_version=no
16843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844   soname_spec='${libname}${release}${shared_ext}$major'
16845   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16846   shlibpath_var=LD_LIBRARY_PATH
16847   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16848   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16849   # the default ld.so.conf also contains /usr/contrib/lib and
16850   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16851   # libtool to hard-code these into programs
16852   ;;
16853
16854 cygwin* | mingw* | pw32*)
16855   version_type=windows
16856   shrext_cmds=".dll"
16857   need_version=no
16858   need_lib_prefix=no
16859
16860   case $GCC,$host_os in
16861   yes,cygwin* | yes,mingw* | yes,pw32*)
16862     library_names_spec='$libname.dll.a'
16863     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16864     postinstall_cmds='base_file=`basename \${file}`~
16865       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16866       dldir=$destdir/`dirname \$dlpath`~
16867       test -d \$dldir || mkdir -p \$dldir~
16868       $install_prog $dir/$dlname \$dldir/$dlname'
16869     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16870       dlpath=$dir/\$dldll~
16871        $rm \$dlpath'
16872     shlibpath_overrides_runpath=yes
16873
16874     case $host_os in
16875     cygwin*)
16876       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16877       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16878       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16879       ;;
16880     mingw*)
16881       # MinGW DLLs use traditional 'lib' prefix
16882       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16883       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16884       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16885         # It is most probably a Windows format PATH printed by
16886         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16887         # path with ; separators, and with drive letters. We can handle the
16888         # drive letters (cygwin fileutils understands them), so leave them,
16889         # especially as we might pass files found there to a mingw objdump,
16890         # which wouldn't understand a cygwinified path. Ahh.
16891         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16892       else
16893         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16894       fi
16895       ;;
16896     pw32*)
16897       # pw32 DLLs use 'pw' prefix rather than 'lib'
16898       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16899       ;;
16900     esac
16901     ;;
16902
16903   *)
16904     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16905     ;;
16906   esac
16907   dynamic_linker='Win32 ld.exe'
16908   # FIXME: first we should search . and the directory the executable is in
16909   shlibpath_var=PATH
16910   ;;
16911
16912 darwin* | rhapsody*)
16913   dynamic_linker="$host_os dyld"
16914   version_type=darwin
16915   need_lib_prefix=no
16916   need_version=no
16917   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16918   soname_spec='${libname}${release}${major}$shared_ext'
16919   shlibpath_overrides_runpath=yes
16920   shlibpath_var=DYLD_LIBRARY_PATH
16921   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16922   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16923   if test "$GCC" = yes; then
16924     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"`
16925   else
16926     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16927   fi
16928   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16929   ;;
16930
16931 dgux*)
16932   version_type=linux
16933   need_lib_prefix=no
16934   need_version=no
16935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16936   soname_spec='${libname}${release}${shared_ext}$major'
16937   shlibpath_var=LD_LIBRARY_PATH
16938   ;;
16939
16940 freebsd1*)
16941   dynamic_linker=no
16942   ;;
16943
16944 kfreebsd*-gnu)
16945   version_type=linux
16946   need_lib_prefix=no
16947   need_version=no
16948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16949   soname_spec='${libname}${release}${shared_ext}$major'
16950   shlibpath_var=LD_LIBRARY_PATH
16951   shlibpath_overrides_runpath=no
16952   hardcode_into_libs=yes
16953   dynamic_linker='GNU ld.so'
16954   ;;
16955
16956 freebsd*)
16957   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16958   version_type=freebsd-$objformat
16959   case $version_type in
16960     freebsd-elf*)
16961       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16962       need_version=no
16963       need_lib_prefix=no
16964       ;;
16965     freebsd-*)
16966       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16967       need_version=yes
16968       ;;
16969   esac
16970   shlibpath_var=LD_LIBRARY_PATH
16971   case $host_os in
16972   freebsd2*)
16973     shlibpath_overrides_runpath=yes
16974     ;;
16975   freebsd3.01* | freebsdelf3.01*)
16976     shlibpath_overrides_runpath=yes
16977     hardcode_into_libs=yes
16978     ;;
16979   *) # from 3.2 on
16980     shlibpath_overrides_runpath=no
16981     hardcode_into_libs=yes
16982     ;;
16983   esac
16984   ;;
16985
16986 gnu*)
16987   version_type=linux
16988   need_lib_prefix=no
16989   need_version=no
16990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16991   soname_spec='${libname}${release}${shared_ext}$major'
16992   shlibpath_var=LD_LIBRARY_PATH
16993   hardcode_into_libs=yes
16994   ;;
16995
16996 hpux9* | hpux10* | hpux11*)
16997   # Give a soname corresponding to the major version so that dld.sl refuses to
16998   # link against other versions.
16999   version_type=sunos
17000   need_lib_prefix=no
17001   need_version=no
17002   case "$host_cpu" in
17003   ia64*)
17004     shrext_cmds='.so'
17005     hardcode_into_libs=yes
17006     dynamic_linker="$host_os dld.so"
17007     shlibpath_var=LD_LIBRARY_PATH
17008     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010     soname_spec='${libname}${release}${shared_ext}$major'
17011     if test "X$HPUX_IA64_MODE" = X32; then
17012       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17013     else
17014       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17015     fi
17016     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17017     ;;
17018    hppa*64*)
17019      shrext_cmds='.sl'
17020      hardcode_into_libs=yes
17021      dynamic_linker="$host_os dld.sl"
17022      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17023      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17024      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025      soname_spec='${libname}${release}${shared_ext}$major'
17026      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17027      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17028      ;;
17029    *)
17030     shrext_cmds='.sl'
17031     dynamic_linker="$host_os dld.sl"
17032     shlibpath_var=SHLIB_PATH
17033     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035     soname_spec='${libname}${release}${shared_ext}$major'
17036     ;;
17037   esac
17038   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17039   postinstall_cmds='chmod 555 $lib'
17040   ;;
17041
17042 irix5* | irix6* | nonstopux*)
17043   case $host_os in
17044     nonstopux*) version_type=nonstopux ;;
17045     *)
17046         if test "$lt_cv_prog_gnu_ld" = yes; then
17047                 version_type=linux
17048         else
17049                 version_type=irix
17050         fi ;;
17051   esac
17052   need_lib_prefix=no
17053   need_version=no
17054   soname_spec='${libname}${release}${shared_ext}$major'
17055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17056   case $host_os in
17057   irix5* | nonstopux*)
17058     libsuff= shlibsuff=
17059     ;;
17060   *)
17061     case $LD in # libtool.m4 will add one of these switches to LD
17062     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17063       libsuff= shlibsuff= libmagic=32-bit;;
17064     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17065       libsuff=32 shlibsuff=N32 libmagic=N32;;
17066     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17067       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17068     *) libsuff= shlibsuff= libmagic=never-match;;
17069     esac
17070     ;;
17071   esac
17072   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17073   shlibpath_overrides_runpath=no
17074   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17075   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17076   hardcode_into_libs=yes
17077   ;;
17078
17079 # No shared lib support for Linux oldld, aout, or coff.
17080 linux*oldld* | linux*aout* | linux*coff*)
17081   dynamic_linker=no
17082   ;;
17083
17084 # This must be Linux ELF.
17085 linux*)
17086   version_type=linux
17087   need_lib_prefix=no
17088   need_version=no
17089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090   soname_spec='${libname}${release}${shared_ext}$major'
17091   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17092   shlibpath_var=LD_LIBRARY_PATH
17093   shlibpath_overrides_runpath=no
17094   # This implies no fast_install, which is unacceptable.
17095   # Some rework will be needed to allow for fast_install
17096   # before this can be enabled.
17097   hardcode_into_libs=yes
17098
17099   # Append ld.so.conf contents to the search path
17100   if test -f /etc/ld.so.conf; then
17101     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17102     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17103   fi
17104
17105   # We used to test for /lib/ld.so.1 and disable shared libraries on
17106   # powerpc, because MkLinux only supported shared libraries with the
17107   # GNU dynamic linker.  Since this was broken with cross compilers,
17108   # most powerpc-linux boxes support dynamic linking these days and
17109   # people can always --disable-shared, the test was removed, and we
17110   # assume the GNU/Linux dynamic linker is in use.
17111   dynamic_linker='GNU/Linux ld.so'
17112   ;;
17113
17114 knetbsd*-gnu)
17115   version_type=linux
17116   need_lib_prefix=no
17117   need_version=no
17118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17119   soname_spec='${libname}${release}${shared_ext}$major'
17120   shlibpath_var=LD_LIBRARY_PATH
17121   shlibpath_overrides_runpath=no
17122   hardcode_into_libs=yes
17123   dynamic_linker='GNU ld.so'
17124   ;;
17125
17126 netbsd*)
17127   version_type=sunos
17128   need_lib_prefix=no
17129   need_version=no
17130   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17131     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17132     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17133     dynamic_linker='NetBSD (a.out) ld.so'
17134   else
17135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17136     soname_spec='${libname}${release}${shared_ext}$major'
17137     dynamic_linker='NetBSD ld.elf_so'
17138   fi
17139   shlibpath_var=LD_LIBRARY_PATH
17140   shlibpath_overrides_runpath=yes
17141   hardcode_into_libs=yes
17142   ;;
17143
17144 newsos6)
17145   version_type=linux
17146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17147   shlibpath_var=LD_LIBRARY_PATH
17148   shlibpath_overrides_runpath=yes
17149   ;;
17150
17151 nto-qnx*)
17152   version_type=linux
17153   need_lib_prefix=no
17154   need_version=no
17155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156   soname_spec='${libname}${release}${shared_ext}$major'
17157   shlibpath_var=LD_LIBRARY_PATH
17158   shlibpath_overrides_runpath=yes
17159   ;;
17160
17161 openbsd*)
17162   version_type=sunos
17163   need_lib_prefix=no
17164   need_version=no
17165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17166   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17167   shlibpath_var=LD_LIBRARY_PATH
17168   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17169     case $host_os in
17170       openbsd2.[89] | openbsd2.[89].*)
17171         shlibpath_overrides_runpath=no
17172         ;;
17173       *)
17174         shlibpath_overrides_runpath=yes
17175         ;;
17176       esac
17177   else
17178     shlibpath_overrides_runpath=yes
17179   fi
17180   ;;
17181
17182 os2*)
17183   libname_spec='$name'
17184   shrext_cmds=".dll"
17185   need_lib_prefix=no
17186   library_names_spec='$libname${shared_ext} $libname.a'
17187   dynamic_linker='OS/2 ld.exe'
17188   shlibpath_var=LIBPATH
17189   ;;
17190
17191 osf3* | osf4* | osf5*)
17192   version_type=osf
17193   need_lib_prefix=no
17194   need_version=no
17195   soname_spec='${libname}${release}${shared_ext}$major'
17196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17197   shlibpath_var=LD_LIBRARY_PATH
17198   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17199   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17200   ;;
17201
17202 sco3.2v5*)
17203   version_type=osf
17204   soname_spec='${libname}${release}${shared_ext}$major'
17205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206   shlibpath_var=LD_LIBRARY_PATH
17207   ;;
17208
17209 solaris*)
17210   version_type=linux
17211   need_lib_prefix=no
17212   need_version=no
17213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214   soname_spec='${libname}${release}${shared_ext}$major'
17215   shlibpath_var=LD_LIBRARY_PATH
17216   shlibpath_overrides_runpath=yes
17217   hardcode_into_libs=yes
17218   # ldd complains unless libraries are executable
17219   postinstall_cmds='chmod +x $lib'
17220   ;;
17221
17222 sunos4*)
17223   version_type=sunos
17224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17225   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17226   shlibpath_var=LD_LIBRARY_PATH
17227   shlibpath_overrides_runpath=yes
17228   if test "$with_gnu_ld" = yes; then
17229     need_lib_prefix=no
17230   fi
17231   need_version=yes
17232   ;;
17233
17234 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17235   version_type=linux
17236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17237   soname_spec='${libname}${release}${shared_ext}$major'
17238   shlibpath_var=LD_LIBRARY_PATH
17239   case $host_vendor in
17240     sni)
17241       shlibpath_overrides_runpath=no
17242       need_lib_prefix=no
17243       export_dynamic_flag_spec='${wl}-Blargedynsym'
17244       runpath_var=LD_RUN_PATH
17245       ;;
17246     siemens)
17247       need_lib_prefix=no
17248       ;;
17249     motorola)
17250       need_lib_prefix=no
17251       need_version=no
17252       shlibpath_overrides_runpath=no
17253       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17254       ;;
17255   esac
17256   ;;
17257
17258 sysv4*MP*)
17259   if test -d /usr/nec ;then
17260     version_type=linux
17261     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17262     soname_spec='$libname${shared_ext}.$major'
17263     shlibpath_var=LD_LIBRARY_PATH
17264   fi
17265   ;;
17266
17267 uts4*)
17268   version_type=linux
17269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270   soname_spec='${libname}${release}${shared_ext}$major'
17271   shlibpath_var=LD_LIBRARY_PATH
17272   ;;
17273
17274 *)
17275   dynamic_linker=no
17276   ;;
17277 esac
17278 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17279 echo "${ECHO_T}$dynamic_linker" >&6
17280 test "$dynamic_linker" = no && can_build_shared=no
17281
17282 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17283 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17284 hardcode_action_CXX=
17285 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17286    test -n "$runpath_var_CXX" || \
17287    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17288
17289   # We can hardcode non-existant directories.
17290   if test "$hardcode_direct_CXX" != no &&
17291      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17292      # have to relink, otherwise we might link with an installed library
17293      # when we should be linking with a yet-to-be-installed one
17294      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17295      test "$hardcode_minus_L_CXX" != no; then
17296     # Linking always hardcodes the temporary library directory.
17297     hardcode_action_CXX=relink
17298   else
17299     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17300     hardcode_action_CXX=immediate
17301   fi
17302 else
17303   # We cannot hardcode anything, or else we can only hardcode existing
17304   # directories.
17305   hardcode_action_CXX=unsupported
17306 fi
17307 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17308 echo "${ECHO_T}$hardcode_action_CXX" >&6
17309
17310 if test "$hardcode_action_CXX" = relink; then
17311   # Fast installation is not supported
17312   enable_fast_install=no
17313 elif test "$shlibpath_overrides_runpath" = yes ||
17314      test "$enable_shared" = no; then
17315   # Fast installation is not necessary
17316   enable_fast_install=needless
17317 fi
17318
17319 striplib=
17320 old_striplib=
17321 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17322 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17323 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17324   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17325   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17326   echo "$as_me:$LINENO: result: yes" >&5
17327 echo "${ECHO_T}yes" >&6
17328 else
17329 # FIXME - insert some real tests, host_os isn't really good enough
17330   case $host_os in
17331    darwin*)
17332        if test -n "$STRIP" ; then
17333          striplib="$STRIP -x"
17334          echo "$as_me:$LINENO: result: yes" >&5
17335 echo "${ECHO_T}yes" >&6
17336        else
17337   echo "$as_me:$LINENO: result: no" >&5
17338 echo "${ECHO_T}no" >&6
17339 fi
17340        ;;
17341    *)
17342   echo "$as_me:$LINENO: result: no" >&5
17343 echo "${ECHO_T}no" >&6
17344     ;;
17345   esac
17346 fi
17347
17348 if test "x$enable_dlopen" != xyes; then
17349   enable_dlopen=unknown
17350   enable_dlopen_self=unknown
17351   enable_dlopen_self_static=unknown
17352 else
17353   lt_cv_dlopen=no
17354   lt_cv_dlopen_libs=
17355
17356   case $host_os in
17357   beos*)
17358     lt_cv_dlopen="load_add_on"
17359     lt_cv_dlopen_libs=
17360     lt_cv_dlopen_self=yes
17361     ;;
17362
17363   mingw* | pw32*)
17364     lt_cv_dlopen="LoadLibrary"
17365     lt_cv_dlopen_libs=
17366    ;;
17367
17368   cygwin*)
17369     lt_cv_dlopen="dlopen"
17370     lt_cv_dlopen_libs=
17371    ;;
17372
17373   darwin*)
17374   # if libdl is installed we need to link against it
17375     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17376 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17377 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17378   echo $ECHO_N "(cached) $ECHO_C" >&6
17379 else
17380   ac_check_lib_save_LIBS=$LIBS
17381 LIBS="-ldl  $LIBS"
17382 cat >conftest.$ac_ext <<_ACEOF
17383 /* confdefs.h.  */
17384 _ACEOF
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h.  */
17388
17389 /* Override any gcc2 internal prototype to avoid an error.  */
17390 #ifdef __cplusplus
17391 extern "C"
17392 #endif
17393 /* We use char because int might match the return type of a gcc2
17394    builtin and then its argument prototype would still apply.  */
17395 char dlopen ();
17396 int
17397 main ()
17398 {
17399 dlopen ();
17400   ;
17401   return 0;
17402 }
17403 _ACEOF
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17406   (eval $ac_link) 2>conftest.er1
17407   ac_status=$?
17408   grep -v '^ *+' conftest.er1 >conftest.err
17409   rm -f conftest.er1
17410   cat conftest.err >&5
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); } &&
17413          { ac_try='test -z "$ac_cxx_werror_flag"
17414                          || test ! -s conftest.err'
17415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416   (eval $ac_try) 2>&5
17417   ac_status=$?
17418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); }; } &&
17420          { ac_try='test -s conftest$ac_exeext'
17421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422   (eval $ac_try) 2>&5
17423   ac_status=$?
17424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425   (exit $ac_status); }; }; then
17426   ac_cv_lib_dl_dlopen=yes
17427 else
17428   echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17430
17431 ac_cv_lib_dl_dlopen=no
17432 fi
17433 rm -f conftest.err conftest.$ac_objext \
17434       conftest$ac_exeext conftest.$ac_ext
17435 LIBS=$ac_check_lib_save_LIBS
17436 fi
17437 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17438 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17439 if test $ac_cv_lib_dl_dlopen = yes; then
17440   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17441 else
17442
17443     lt_cv_dlopen="dyld"
17444     lt_cv_dlopen_libs=
17445     lt_cv_dlopen_self=yes
17446
17447 fi
17448
17449    ;;
17450
17451   *)
17452     echo "$as_me:$LINENO: checking for shl_load" >&5
17453 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17454 if test "${ac_cv_func_shl_load+set}" = set; then
17455   echo $ECHO_N "(cached) $ECHO_C" >&6
17456 else
17457   cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h.  */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h.  */
17463 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17465 #define shl_load innocuous_shl_load
17466
17467 /* System header to define __stub macros and hopefully few prototypes,
17468     which can conflict with char shl_load (); below.
17469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17470     <limits.h> exists even on freestanding compilers.  */
17471
17472 #ifdef __STDC__
17473 # include <limits.h>
17474 #else
17475 # include <assert.h>
17476 #endif
17477
17478 #undef shl_load
17479
17480 /* Override any gcc2 internal prototype to avoid an error.  */
17481 #ifdef __cplusplus
17482 extern "C"
17483 {
17484 #endif
17485 /* We use char because int might match the return type of a gcc2
17486    builtin and then its argument prototype would still apply.  */
17487 char shl_load ();
17488 /* The GNU C library defines this for functions which it implements
17489     to always fail with ENOSYS.  Some functions are actually named
17490     something starting with __ and the normal name is an alias.  */
17491 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17492 choke me
17493 #else
17494 char (*f) () = shl_load;
17495 #endif
17496 #ifdef __cplusplus
17497 }
17498 #endif
17499
17500 int
17501 main ()
17502 {
17503 return f != shl_load;
17504   ;
17505   return 0;
17506 }
17507 _ACEOF
17508 rm -f conftest.$ac_objext conftest$ac_exeext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17510   (eval $ac_link) 2>conftest.er1
17511   ac_status=$?
17512   grep -v '^ *+' conftest.er1 >conftest.err
17513   rm -f conftest.er1
17514   cat conftest.err >&5
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); } &&
17517          { ac_try='test -z "$ac_cxx_werror_flag"
17518                          || test ! -s conftest.err'
17519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520   (eval $ac_try) 2>&5
17521   ac_status=$?
17522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523   (exit $ac_status); }; } &&
17524          { ac_try='test -s conftest$ac_exeext'
17525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526   (eval $ac_try) 2>&5
17527   ac_status=$?
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); }; }; then
17530   ac_cv_func_shl_load=yes
17531 else
17532   echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17534
17535 ac_cv_func_shl_load=no
17536 fi
17537 rm -f conftest.err conftest.$ac_objext \
17538       conftest$ac_exeext conftest.$ac_ext
17539 fi
17540 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17541 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17542 if test $ac_cv_func_shl_load = yes; then
17543   lt_cv_dlopen="shl_load"
17544 else
17545   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17546 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17547 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17548   echo $ECHO_N "(cached) $ECHO_C" >&6
17549 else
17550   ac_check_lib_save_LIBS=$LIBS
17551 LIBS="-ldld  $LIBS"
17552 cat >conftest.$ac_ext <<_ACEOF
17553 /* confdefs.h.  */
17554 _ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h.  */
17558
17559 /* Override any gcc2 internal prototype to avoid an error.  */
17560 #ifdef __cplusplus
17561 extern "C"
17562 #endif
17563 /* We use char because int might match the return type of a gcc2
17564    builtin and then its argument prototype would still apply.  */
17565 char shl_load ();
17566 int
17567 main ()
17568 {
17569 shl_load ();
17570   ;
17571   return 0;
17572 }
17573 _ACEOF
17574 rm -f conftest.$ac_objext conftest$ac_exeext
17575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17576   (eval $ac_link) 2>conftest.er1
17577   ac_status=$?
17578   grep -v '^ *+' conftest.er1 >conftest.err
17579   rm -f conftest.er1
17580   cat conftest.err >&5
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); } &&
17583          { ac_try='test -z "$ac_cxx_werror_flag"
17584                          || test ! -s conftest.err'
17585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586   (eval $ac_try) 2>&5
17587   ac_status=$?
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); }; } &&
17590          { ac_try='test -s conftest$ac_exeext'
17591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592   (eval $ac_try) 2>&5
17593   ac_status=$?
17594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595   (exit $ac_status); }; }; then
17596   ac_cv_lib_dld_shl_load=yes
17597 else
17598   echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17600
17601 ac_cv_lib_dld_shl_load=no
17602 fi
17603 rm -f conftest.err conftest.$ac_objext \
17604       conftest$ac_exeext conftest.$ac_ext
17605 LIBS=$ac_check_lib_save_LIBS
17606 fi
17607 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17608 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17609 if test $ac_cv_lib_dld_shl_load = yes; then
17610   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17611 else
17612   echo "$as_me:$LINENO: checking for dlopen" >&5
17613 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17614 if test "${ac_cv_func_dlopen+set}" = set; then
17615   echo $ECHO_N "(cached) $ECHO_C" >&6
17616 else
17617   cat >conftest.$ac_ext <<_ACEOF
17618 /* confdefs.h.  */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h.  */
17623 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17625 #define dlopen innocuous_dlopen
17626
17627 /* System header to define __stub macros and hopefully few prototypes,
17628     which can conflict with char dlopen (); below.
17629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17630     <limits.h> exists even on freestanding compilers.  */
17631
17632 #ifdef __STDC__
17633 # include <limits.h>
17634 #else
17635 # include <assert.h>
17636 #endif
17637
17638 #undef dlopen
17639
17640 /* Override any gcc2 internal prototype to avoid an error.  */
17641 #ifdef __cplusplus
17642 extern "C"
17643 {
17644 #endif
17645 /* We use char because int might match the return type of a gcc2
17646    builtin and then its argument prototype would still apply.  */
17647 char dlopen ();
17648 /* The GNU C library defines this for functions which it implements
17649     to always fail with ENOSYS.  Some functions are actually named
17650     something starting with __ and the normal name is an alias.  */
17651 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17652 choke me
17653 #else
17654 char (*f) () = dlopen;
17655 #endif
17656 #ifdef __cplusplus
17657 }
17658 #endif
17659
17660 int
17661 main ()
17662 {
17663 return f != dlopen;
17664   ;
17665   return 0;
17666 }
17667 _ACEOF
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17670   (eval $ac_link) 2>conftest.er1
17671   ac_status=$?
17672   grep -v '^ *+' conftest.er1 >conftest.err
17673   rm -f conftest.er1
17674   cat conftest.err >&5
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); } &&
17677          { ac_try='test -z "$ac_cxx_werror_flag"
17678                          || test ! -s conftest.err'
17679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680   (eval $ac_try) 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); }; } &&
17684          { ac_try='test -s conftest$ac_exeext'
17685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686   (eval $ac_try) 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); }; }; then
17690   ac_cv_func_dlopen=yes
17691 else
17692   echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17694
17695 ac_cv_func_dlopen=no
17696 fi
17697 rm -f conftest.err conftest.$ac_objext \
17698       conftest$ac_exeext conftest.$ac_ext
17699 fi
17700 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17701 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17702 if test $ac_cv_func_dlopen = yes; then
17703   lt_cv_dlopen="dlopen"
17704 else
17705   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17706 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17707 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17708   echo $ECHO_N "(cached) $ECHO_C" >&6
17709 else
17710   ac_check_lib_save_LIBS=$LIBS
17711 LIBS="-ldl  $LIBS"
17712 cat >conftest.$ac_ext <<_ACEOF
17713 /* confdefs.h.  */
17714 _ACEOF
17715 cat confdefs.h >>conftest.$ac_ext
17716 cat >>conftest.$ac_ext <<_ACEOF
17717 /* end confdefs.h.  */
17718
17719 /* Override any gcc2 internal prototype to avoid an error.  */
17720 #ifdef __cplusplus
17721 extern "C"
17722 #endif
17723 /* We use char because int might match the return type of a gcc2
17724    builtin and then its argument prototype would still apply.  */
17725 char dlopen ();
17726 int
17727 main ()
17728 {
17729 dlopen ();
17730   ;
17731   return 0;
17732 }
17733 _ACEOF
17734 rm -f conftest.$ac_objext conftest$ac_exeext
17735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17736   (eval $ac_link) 2>conftest.er1
17737   ac_status=$?
17738   grep -v '^ *+' conftest.er1 >conftest.err
17739   rm -f conftest.er1
17740   cat conftest.err >&5
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); } &&
17743          { ac_try='test -z "$ac_cxx_werror_flag"
17744                          || test ! -s conftest.err'
17745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746   (eval $ac_try) 2>&5
17747   ac_status=$?
17748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749   (exit $ac_status); }; } &&
17750          { ac_try='test -s conftest$ac_exeext'
17751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752   (eval $ac_try) 2>&5
17753   ac_status=$?
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); }; }; then
17756   ac_cv_lib_dl_dlopen=yes
17757 else
17758   echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17760
17761 ac_cv_lib_dl_dlopen=no
17762 fi
17763 rm -f conftest.err conftest.$ac_objext \
17764       conftest$ac_exeext conftest.$ac_ext
17765 LIBS=$ac_check_lib_save_LIBS
17766 fi
17767 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17768 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17769 if test $ac_cv_lib_dl_dlopen = yes; then
17770   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17771 else
17772   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17773 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17774 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17775   echo $ECHO_N "(cached) $ECHO_C" >&6
17776 else
17777   ac_check_lib_save_LIBS=$LIBS
17778 LIBS="-lsvld  $LIBS"
17779 cat >conftest.$ac_ext <<_ACEOF
17780 /* confdefs.h.  */
17781 _ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h.  */
17785
17786 /* Override any gcc2 internal prototype to avoid an error.  */
17787 #ifdef __cplusplus
17788 extern "C"
17789 #endif
17790 /* We use char because int might match the return type of a gcc2
17791    builtin and then its argument prototype would still apply.  */
17792 char dlopen ();
17793 int
17794 main ()
17795 {
17796 dlopen ();
17797   ;
17798   return 0;
17799 }
17800 _ACEOF
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803   (eval $ac_link) 2>conftest.er1
17804   ac_status=$?
17805   grep -v '^ *+' conftest.er1 >conftest.err
17806   rm -f conftest.er1
17807   cat conftest.err >&5
17808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809   (exit $ac_status); } &&
17810          { ac_try='test -z "$ac_cxx_werror_flag"
17811                          || test ! -s conftest.err'
17812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813   (eval $ac_try) 2>&5
17814   ac_status=$?
17815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816   (exit $ac_status); }; } &&
17817          { ac_try='test -s conftest$ac_exeext'
17818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819   (eval $ac_try) 2>&5
17820   ac_status=$?
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); }; }; then
17823   ac_cv_lib_svld_dlopen=yes
17824 else
17825   echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17827
17828 ac_cv_lib_svld_dlopen=no
17829 fi
17830 rm -f conftest.err conftest.$ac_objext \
17831       conftest$ac_exeext conftest.$ac_ext
17832 LIBS=$ac_check_lib_save_LIBS
17833 fi
17834 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17835 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17836 if test $ac_cv_lib_svld_dlopen = yes; then
17837   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17838 else
17839   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17840 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17841 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17842   echo $ECHO_N "(cached) $ECHO_C" >&6
17843 else
17844   ac_check_lib_save_LIBS=$LIBS
17845 LIBS="-ldld  $LIBS"
17846 cat >conftest.$ac_ext <<_ACEOF
17847 /* confdefs.h.  */
17848 _ACEOF
17849 cat confdefs.h >>conftest.$ac_ext
17850 cat >>conftest.$ac_ext <<_ACEOF
17851 /* end confdefs.h.  */
17852
17853 /* Override any gcc2 internal prototype to avoid an error.  */
17854 #ifdef __cplusplus
17855 extern "C"
17856 #endif
17857 /* We use char because int might match the return type of a gcc2
17858    builtin and then its argument prototype would still apply.  */
17859 char dld_link ();
17860 int
17861 main ()
17862 {
17863 dld_link ();
17864   ;
17865   return 0;
17866 }
17867 _ACEOF
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17870   (eval $ac_link) 2>conftest.er1
17871   ac_status=$?
17872   grep -v '^ *+' conftest.er1 >conftest.err
17873   rm -f conftest.er1
17874   cat conftest.err >&5
17875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876   (exit $ac_status); } &&
17877          { ac_try='test -z "$ac_cxx_werror_flag"
17878                          || test ! -s conftest.err'
17879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880   (eval $ac_try) 2>&5
17881   ac_status=$?
17882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883   (exit $ac_status); }; } &&
17884          { ac_try='test -s conftest$ac_exeext'
17885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886   (eval $ac_try) 2>&5
17887   ac_status=$?
17888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); }; }; then
17890   ac_cv_lib_dld_dld_link=yes
17891 else
17892   echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17894
17895 ac_cv_lib_dld_dld_link=no
17896 fi
17897 rm -f conftest.err conftest.$ac_objext \
17898       conftest$ac_exeext conftest.$ac_ext
17899 LIBS=$ac_check_lib_save_LIBS
17900 fi
17901 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17902 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17903 if test $ac_cv_lib_dld_dld_link = yes; then
17904   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17905 fi
17906
17907
17908 fi
17909
17910
17911 fi
17912
17913
17914 fi
17915
17916
17917 fi
17918
17919
17920 fi
17921
17922     ;;
17923   esac
17924
17925   if test "x$lt_cv_dlopen" != xno; then
17926     enable_dlopen=yes
17927   else
17928     enable_dlopen=no
17929   fi
17930
17931   case $lt_cv_dlopen in
17932   dlopen)
17933     save_CPPFLAGS="$CPPFLAGS"
17934     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17935
17936     save_LDFLAGS="$LDFLAGS"
17937     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17938
17939     save_LIBS="$LIBS"
17940     LIBS="$lt_cv_dlopen_libs $LIBS"
17941
17942     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17943 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17944 if test "${lt_cv_dlopen_self+set}" = set; then
17945   echo $ECHO_N "(cached) $ECHO_C" >&6
17946 else
17947           if test "$cross_compiling" = yes; then :
17948   lt_cv_dlopen_self=cross
17949 else
17950   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17951   lt_status=$lt_dlunknown
17952   cat > conftest.$ac_ext <<EOF
17953 #line 17953 "configure"
17954 #include "confdefs.h"
17955
17956 #if HAVE_DLFCN_H
17957 #include <dlfcn.h>
17958 #endif
17959
17960 #include <stdio.h>
17961
17962 #ifdef RTLD_GLOBAL
17963 #  define LT_DLGLOBAL           RTLD_GLOBAL
17964 #else
17965 #  ifdef DL_GLOBAL
17966 #    define LT_DLGLOBAL         DL_GLOBAL
17967 #  else
17968 #    define LT_DLGLOBAL         0
17969 #  endif
17970 #endif
17971
17972 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17973    find out it does not work in some platform. */
17974 #ifndef LT_DLLAZY_OR_NOW
17975 #  ifdef RTLD_LAZY
17976 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17977 #  else
17978 #    ifdef DL_LAZY
17979 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17980 #    else
17981 #      ifdef RTLD_NOW
17982 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17983 #      else
17984 #        ifdef DL_NOW
17985 #          define LT_DLLAZY_OR_NOW      DL_NOW
17986 #        else
17987 #          define LT_DLLAZY_OR_NOW      0
17988 #        endif
17989 #      endif
17990 #    endif
17991 #  endif
17992 #endif
17993
17994 #ifdef __cplusplus
17995 extern "C" void exit (int);
17996 #endif
17997
17998 void fnord() { int i=42;}
17999 int main ()
18000 {
18001   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18002   int status = $lt_dlunknown;
18003
18004   if (self)
18005     {
18006       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18007       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18008       /* dlclose (self); */
18009     }
18010
18011     exit (status);
18012 }
18013 EOF
18014   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18015   (eval $ac_link) 2>&5
18016   ac_status=$?
18017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18019     (./conftest; exit; ) 2>/dev/null
18020     lt_status=$?
18021     case x$lt_status in
18022       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18023       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18024       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18025     esac
18026   else :
18027     # compilation failed
18028     lt_cv_dlopen_self=no
18029   fi
18030 fi
18031 rm -fr conftest*
18032
18033
18034 fi
18035 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18036 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18037
18038     if test "x$lt_cv_dlopen_self" = xyes; then
18039       LDFLAGS="$LDFLAGS $link_static_flag"
18040       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18041 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18042 if test "${lt_cv_dlopen_self_static+set}" = set; then
18043   echo $ECHO_N "(cached) $ECHO_C" >&6
18044 else
18045           if test "$cross_compiling" = yes; then :
18046   lt_cv_dlopen_self_static=cross
18047 else
18048   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18049   lt_status=$lt_dlunknown
18050   cat > conftest.$ac_ext <<EOF
18051 #line 18051 "configure"
18052 #include "confdefs.h"
18053
18054 #if HAVE_DLFCN_H
18055 #include <dlfcn.h>
18056 #endif
18057
18058 #include <stdio.h>
18059
18060 #ifdef RTLD_GLOBAL
18061 #  define LT_DLGLOBAL           RTLD_GLOBAL
18062 #else
18063 #  ifdef DL_GLOBAL
18064 #    define LT_DLGLOBAL         DL_GLOBAL
18065 #  else
18066 #    define LT_DLGLOBAL         0
18067 #  endif
18068 #endif
18069
18070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18071    find out it does not work in some platform. */
18072 #ifndef LT_DLLAZY_OR_NOW
18073 #  ifdef RTLD_LAZY
18074 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18075 #  else
18076 #    ifdef DL_LAZY
18077 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18078 #    else
18079 #      ifdef RTLD_NOW
18080 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18081 #      else
18082 #        ifdef DL_NOW
18083 #          define LT_DLLAZY_OR_NOW      DL_NOW
18084 #        else
18085 #          define LT_DLLAZY_OR_NOW      0
18086 #        endif
18087 #      endif
18088 #    endif
18089 #  endif
18090 #endif
18091
18092 #ifdef __cplusplus
18093 extern "C" void exit (int);
18094 #endif
18095
18096 void fnord() { int i=42;}
18097 int main ()
18098 {
18099   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18100   int status = $lt_dlunknown;
18101
18102   if (self)
18103     {
18104       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18105       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18106       /* dlclose (self); */
18107     }
18108
18109     exit (status);
18110 }
18111 EOF
18112   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18113   (eval $ac_link) 2>&5
18114   ac_status=$?
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18117     (./conftest; exit; ) 2>/dev/null
18118     lt_status=$?
18119     case x$lt_status in
18120       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18121       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18122       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18123     esac
18124   else :
18125     # compilation failed
18126     lt_cv_dlopen_self_static=no
18127   fi
18128 fi
18129 rm -fr conftest*
18130
18131
18132 fi
18133 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18134 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18135     fi
18136
18137     CPPFLAGS="$save_CPPFLAGS"
18138     LDFLAGS="$save_LDFLAGS"
18139     LIBS="$save_LIBS"
18140     ;;
18141   esac
18142
18143   case $lt_cv_dlopen_self in
18144   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18145   *) enable_dlopen_self=unknown ;;
18146   esac
18147
18148   case $lt_cv_dlopen_self_static in
18149   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18150   *) enable_dlopen_self_static=unknown ;;
18151   esac
18152 fi
18153
18154
18155 # The else clause should only fire when bootstrapping the
18156 # libtool distribution, otherwise you forgot to ship ltmain.sh
18157 # with your package, and you will get complaints that there are
18158 # no rules to generate ltmain.sh.
18159 if test -f "$ltmain"; then
18160   # See if we are running on zsh, and set the options which allow our commands through
18161   # without removal of \ escapes.
18162   if test -n "${ZSH_VERSION+set}" ; then
18163     setopt NO_GLOB_SUBST
18164   fi
18165   # Now quote all the things that may contain metacharacters while being
18166   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18167   # variables and quote the copies for generation of the libtool script.
18168   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18169     SED SHELL STRIP \
18170     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18171     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18172     deplibs_check_method reload_flag reload_cmds need_locks \
18173     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18174     lt_cv_sys_global_symbol_to_c_name_address \
18175     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18176     old_postinstall_cmds old_postuninstall_cmds \
18177     compiler_CXX \
18178     CC_CXX \
18179     LD_CXX \
18180     lt_prog_compiler_wl_CXX \
18181     lt_prog_compiler_pic_CXX \
18182     lt_prog_compiler_static_CXX \
18183     lt_prog_compiler_no_builtin_flag_CXX \
18184     export_dynamic_flag_spec_CXX \
18185     thread_safe_flag_spec_CXX \
18186     whole_archive_flag_spec_CXX \
18187     enable_shared_with_static_runtimes_CXX \
18188     old_archive_cmds_CXX \
18189     old_archive_from_new_cmds_CXX \
18190     predep_objects_CXX \
18191     postdep_objects_CXX \
18192     predeps_CXX \
18193     postdeps_CXX \
18194     compiler_lib_search_path_CXX \
18195     archive_cmds_CXX \
18196     archive_expsym_cmds_CXX \
18197     postinstall_cmds_CXX \
18198     postuninstall_cmds_CXX \
18199     old_archive_from_expsyms_cmds_CXX \
18200     allow_undefined_flag_CXX \
18201     no_undefined_flag_CXX \
18202     export_symbols_cmds_CXX \
18203     hardcode_libdir_flag_spec_CXX \
18204     hardcode_libdir_flag_spec_ld_CXX \
18205     hardcode_libdir_separator_CXX \
18206     hardcode_automatic_CXX \
18207     module_cmds_CXX \
18208     module_expsym_cmds_CXX \
18209     lt_cv_prog_compiler_c_o_CXX \
18210     exclude_expsyms_CXX \
18211     include_expsyms_CXX; do
18212
18213     case $var in
18214     old_archive_cmds_CXX | \
18215     old_archive_from_new_cmds_CXX | \
18216     archive_cmds_CXX | \
18217     archive_expsym_cmds_CXX | \
18218     module_cmds_CXX | \
18219     module_expsym_cmds_CXX | \
18220     old_archive_from_expsyms_cmds_CXX | \
18221     export_symbols_cmds_CXX | \
18222     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18223     postinstall_cmds | postuninstall_cmds | \
18224     old_postinstall_cmds | old_postuninstall_cmds | \
18225     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18226       # Double-quote double-evaled strings.
18227       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18228       ;;
18229     *)
18230       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18231       ;;
18232     esac
18233   done
18234
18235   case $lt_echo in
18236   *'\$0 --fallback-echo"')
18237     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18238     ;;
18239   esac
18240
18241 cfgfile="$ofile"
18242
18243   cat <<__EOF__ >> "$cfgfile"
18244 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18245
18246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18247
18248 # Shell to use when invoking shell scripts.
18249 SHELL=$lt_SHELL
18250
18251 # Whether or not to build shared libraries.
18252 build_libtool_libs=$enable_shared
18253
18254 # Whether or not to build static libraries.
18255 build_old_libs=$enable_static
18256
18257 # Whether or not to add -lc for building shared libraries.
18258 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18259
18260 # Whether or not to disallow shared libs when runtime libs are static
18261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18262
18263 # Whether or not to optimize for fast installation.
18264 fast_install=$enable_fast_install
18265
18266 # The host system.
18267 host_alias=$host_alias
18268 host=$host
18269
18270 # An echo program that does not interpret backslashes.
18271 echo=$lt_echo
18272
18273 # The archiver.
18274 AR=$lt_AR
18275 AR_FLAGS=$lt_AR_FLAGS
18276
18277 # A C compiler.
18278 LTCC=$lt_LTCC
18279
18280 # A language-specific compiler.
18281 CC=$lt_compiler_CXX
18282
18283 # Is the compiler the GNU C compiler?
18284 with_gcc=$GCC_CXX
18285
18286 # An ERE matcher.
18287 EGREP=$lt_EGREP
18288
18289 # The linker used to build libraries.
18290 LD=$lt_LD_CXX
18291
18292 # Whether we need hard or soft links.
18293 LN_S=$lt_LN_S
18294
18295 # A BSD-compatible nm program.
18296 NM=$lt_NM
18297
18298 # A symbol stripping program
18299 STRIP=$lt_STRIP
18300
18301 # Used to examine libraries when file_magic_cmd begins "file"
18302 MAGIC_CMD=$MAGIC_CMD
18303
18304 # Used on cygwin: DLL creation program.
18305 DLLTOOL="$DLLTOOL"
18306
18307 # Used on cygwin: object dumper.
18308 OBJDUMP="$OBJDUMP"
18309
18310 # Used on cygwin: assembler.
18311 AS="$AS"
18312
18313 # The name of the directory that contains temporary libtool files.
18314 objdir=$objdir
18315
18316 # How to create reloadable object files.
18317 reload_flag=$lt_reload_flag
18318 reload_cmds=$lt_reload_cmds
18319
18320 # How to pass a linker flag through the compiler.
18321 wl=$lt_lt_prog_compiler_wl_CXX
18322
18323 # Object file suffix (normally "o").
18324 objext="$ac_objext"
18325
18326 # Old archive suffix (normally "a").
18327 libext="$libext"
18328
18329 # Shared library suffix (normally ".so").
18330 shrext_cmds='$shrext_cmds'
18331
18332 # Executable file suffix (normally "").
18333 exeext="$exeext"
18334
18335 # Additional compiler flags for building library objects.
18336 pic_flag=$lt_lt_prog_compiler_pic_CXX
18337 pic_mode=$pic_mode
18338
18339 # What is the maximum length of a command?
18340 max_cmd_len=$lt_cv_sys_max_cmd_len
18341
18342 # Does compiler simultaneously support -c and -o options?
18343 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18344
18345 # Must we lock files when doing compilation ?
18346 need_locks=$lt_need_locks
18347
18348 # Do we need the lib prefix for modules?
18349 need_lib_prefix=$need_lib_prefix
18350
18351 # Do we need a version for libraries?
18352 need_version=$need_version
18353
18354 # Whether dlopen is supported.
18355 dlopen_support=$enable_dlopen
18356
18357 # Whether dlopen of programs is supported.
18358 dlopen_self=$enable_dlopen_self
18359
18360 # Whether dlopen of statically linked programs is supported.
18361 dlopen_self_static=$enable_dlopen_self_static
18362
18363 # Compiler flag to prevent dynamic linking.
18364 link_static_flag=$lt_lt_prog_compiler_static_CXX
18365
18366 # Compiler flag to turn off builtin functions.
18367 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18368
18369 # Compiler flag to allow reflexive dlopens.
18370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18371
18372 # Compiler flag to generate shared objects directly from archives.
18373 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18374
18375 # Compiler flag to generate thread-safe objects.
18376 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18377
18378 # Library versioning type.
18379 version_type=$version_type
18380
18381 # Format of library name prefix.
18382 libname_spec=$lt_libname_spec
18383
18384 # List of archive names.  First name is the real one, the rest are links.
18385 # The last name is the one that the linker finds with -lNAME.
18386 library_names_spec=$lt_library_names_spec
18387
18388 # The coded name of the library, if different from the real name.
18389 soname_spec=$lt_soname_spec
18390
18391 # Commands used to build and install an old-style archive.
18392 RANLIB=$lt_RANLIB
18393 old_archive_cmds=$lt_old_archive_cmds_CXX
18394 old_postinstall_cmds=$lt_old_postinstall_cmds
18395 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18396
18397 # Create an old-style archive from a shared archive.
18398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18399
18400 # Create a temporary old-style archive to link instead of a shared archive.
18401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18402
18403 # Commands used to build and install a shared archive.
18404 archive_cmds=$lt_archive_cmds_CXX
18405 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18406 postinstall_cmds=$lt_postinstall_cmds
18407 postuninstall_cmds=$lt_postuninstall_cmds
18408
18409 # Commands used to build a loadable module (assumed same as above if empty)
18410 module_cmds=$lt_module_cmds_CXX
18411 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18412
18413 # Commands to strip libraries.
18414 old_striplib=$lt_old_striplib
18415 striplib=$lt_striplib
18416
18417 # Dependencies to place before the objects being linked to create a
18418 # shared library.
18419 predep_objects=$lt_predep_objects_CXX
18420
18421 # Dependencies to place after the objects being linked to create a
18422 # shared library.
18423 postdep_objects=$lt_postdep_objects_CXX
18424
18425 # Dependencies to place before the objects being linked to create a
18426 # shared library.
18427 predeps=$lt_predeps_CXX
18428
18429 # Dependencies to place after the objects being linked to create a
18430 # shared library.
18431 postdeps=$lt_postdeps_CXX
18432
18433 # The library search path used internally by the compiler when linking
18434 # a shared library.
18435 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18436
18437 # Method to check whether dependent libraries are shared objects.
18438 deplibs_check_method=$lt_deplibs_check_method
18439
18440 # Command to use when deplibs_check_method == file_magic.
18441 file_magic_cmd=$lt_file_magic_cmd
18442
18443 # Flag that allows shared libraries with undefined symbols to be built.
18444 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18445
18446 # Flag that forces no undefined symbols.
18447 no_undefined_flag=$lt_no_undefined_flag_CXX
18448
18449 # Commands used to finish a libtool library installation in a directory.
18450 finish_cmds=$lt_finish_cmds
18451
18452 # Same as above, but a single script fragment to be evaled but not shown.
18453 finish_eval=$lt_finish_eval
18454
18455 # Take the output of nm and produce a listing of raw symbols and C names.
18456 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18457
18458 # Transform the output of nm in a proper C declaration
18459 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18460
18461 # Transform the output of nm in a C name address pair
18462 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18463
18464 # This is the shared library runtime path variable.
18465 runpath_var=$runpath_var
18466
18467 # This is the shared library path variable.
18468 shlibpath_var=$shlibpath_var
18469
18470 # Is shlibpath searched before the hard-coded library search path?
18471 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18472
18473 # How to hardcode a shared library path into an executable.
18474 hardcode_action=$hardcode_action_CXX
18475
18476 # Whether we should hardcode library paths into libraries.
18477 hardcode_into_libs=$hardcode_into_libs
18478
18479 # Flag to hardcode \$libdir into a binary during linking.
18480 # This must work even if \$libdir does not exist.
18481 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18482
18483 # If ld is used when linking, flag to hardcode \$libdir into
18484 # a binary during linking. This must work even if \$libdir does
18485 # not exist.
18486 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18487
18488 # Whether we need a single -rpath flag with a separated argument.
18489 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18490
18491 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18492 # resulting binary.
18493 hardcode_direct=$hardcode_direct_CXX
18494
18495 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18496 # resulting binary.
18497 hardcode_minus_L=$hardcode_minus_L_CXX
18498
18499 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18500 # the resulting binary.
18501 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18502
18503 # Set to yes if building a shared library automatically hardcodes DIR into the library
18504 # and all subsequent libraries and executables linked against it.
18505 hardcode_automatic=$hardcode_automatic_CXX
18506
18507 # Variables whose values should be saved in libtool wrapper scripts and
18508 # restored at relink time.
18509 variables_saved_for_relink="$variables_saved_for_relink"
18510
18511 # Whether libtool must link a program against all its dependency libraries.
18512 link_all_deplibs=$link_all_deplibs_CXX
18513
18514 # Compile-time system search path for libraries
18515 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18516
18517 # Run-time system search path for libraries
18518 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18519
18520 # Fix the shell variable \$srcfile for the compiler.
18521 fix_srcfile_path="$fix_srcfile_path_CXX"
18522
18523 # Set to yes if exported symbols are required.
18524 always_export_symbols=$always_export_symbols_CXX
18525
18526 # The commands to list exported symbols.
18527 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18528
18529 # The commands to extract the exported symbol list from a shared archive.
18530 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18531
18532 # Symbols that should not be listed in the preloaded symbols.
18533 exclude_expsyms=$lt_exclude_expsyms_CXX
18534
18535 # Symbols that must always be exported.
18536 include_expsyms=$lt_include_expsyms_CXX
18537
18538 # ### END LIBTOOL TAG CONFIG: $tagname
18539
18540 __EOF__
18541
18542
18543 else
18544   # If there is no Makefile yet, we rely on a make rule to execute
18545   # `config.status --recheck' to rerun these tests and create the
18546   # libtool script then.
18547   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18548   if test -f "$ltmain_in"; then
18549     test -f Makefile && make "$ltmain"
18550   fi
18551 fi
18552
18553
18554 ac_ext=c
18555 ac_cpp='$CPP $CPPFLAGS'
18556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18559
18560 CC=$lt_save_CC
18561 LDCXX=$LD
18562 LD=$lt_save_LD
18563 GCC=$lt_save_GCC
18564 with_gnu_ldcxx=$with_gnu_ld
18565 with_gnu_ld=$lt_save_with_gnu_ld
18566 lt_cv_path_LDCXX=$lt_cv_path_LD
18567 lt_cv_path_LD=$lt_save_path_LD
18568 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18569 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18570
18571         else
18572           tagname=""
18573         fi
18574         ;;
18575
18576       F77)
18577         if test -n "$F77" && test "X$F77" != "Xno"; then
18578
18579 ac_ext=f
18580 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18581 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18582 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18583
18584
18585 archive_cmds_need_lc_F77=no
18586 allow_undefined_flag_F77=
18587 always_export_symbols_F77=no
18588 archive_expsym_cmds_F77=
18589 export_dynamic_flag_spec_F77=
18590 hardcode_direct_F77=no
18591 hardcode_libdir_flag_spec_F77=
18592 hardcode_libdir_flag_spec_ld_F77=
18593 hardcode_libdir_separator_F77=
18594 hardcode_minus_L_F77=no
18595 hardcode_automatic_F77=no
18596 module_cmds_F77=
18597 module_expsym_cmds_F77=
18598 link_all_deplibs_F77=unknown
18599 old_archive_cmds_F77=$old_archive_cmds
18600 no_undefined_flag_F77=
18601 whole_archive_flag_spec_F77=
18602 enable_shared_with_static_runtimes_F77=no
18603
18604 # Source file extension for f77 test sources.
18605 ac_ext=f
18606
18607 # Object file extension for compiled f77 test sources.
18608 objext=o
18609 objext_F77=$objext
18610
18611 # Code to be used in simple compile tests
18612 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18613
18614 # Code to be used in simple link tests
18615 lt_simple_link_test_code="      program t\n      end\n"
18616
18617 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18618
18619 # If no C compiler was specified, use CC.
18620 LTCC=${LTCC-"$CC"}
18621
18622 # Allow CC to be a program name with arguments.
18623 compiler=$CC
18624
18625
18626 # Allow CC to be a program name with arguments.
18627 lt_save_CC="$CC"
18628 CC=${F77-"f77"}
18629 compiler=$CC
18630 compiler_F77=$CC
18631 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18632
18633 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18634 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18635 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18636 echo "${ECHO_T}$can_build_shared" >&6
18637
18638 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18639 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18640 test "$can_build_shared" = "no" && enable_shared=no
18641
18642 # On AIX, shared libraries and static libraries use the same namespace, and
18643 # are all built from PIC.
18644 case "$host_os" in
18645 aix3*)
18646   test "$enable_shared" = yes && enable_static=no
18647   if test -n "$RANLIB"; then
18648     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18649     postinstall_cmds='$RANLIB $lib'
18650   fi
18651   ;;
18652 aix4* | aix5*)
18653   test "$enable_shared" = yes && enable_static=no
18654   ;;
18655 esac
18656 echo "$as_me:$LINENO: result: $enable_shared" >&5
18657 echo "${ECHO_T}$enable_shared" >&6
18658
18659 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18660 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18661 # Make sure either enable_shared or enable_static is yes.
18662 test "$enable_shared" = yes || enable_static=yes
18663 echo "$as_me:$LINENO: result: $enable_static" >&5
18664 echo "${ECHO_T}$enable_static" >&6
18665
18666 test "$ld_shlibs_F77" = no && can_build_shared=no
18667
18668 GCC_F77="$G77"
18669 LD_F77="$LD"
18670
18671 lt_prog_compiler_wl_F77=
18672 lt_prog_compiler_pic_F77=
18673 lt_prog_compiler_static_F77=
18674
18675 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18676 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18677
18678   if test "$GCC" = yes; then
18679     lt_prog_compiler_wl_F77='-Wl,'
18680     lt_prog_compiler_static_F77='-static'
18681
18682     case $host_os in
18683       aix*)
18684       # All AIX code is PIC.
18685       if test "$host_cpu" = ia64; then
18686         # AIX 5 now supports IA64 processor
18687         lt_prog_compiler_static_F77='-Bstatic'
18688       fi
18689       ;;
18690
18691     amigaos*)
18692       # FIXME: we need at least 68020 code to build shared libraries, but
18693       # adding the `-m68020' flag to GCC prevents building anything better,
18694       # like `-m68040'.
18695       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18696       ;;
18697
18698     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18699       # PIC is the default for these OSes.
18700       ;;
18701
18702     mingw* | pw32* | os2*)
18703       # This hack is so that the source file can tell whether it is being
18704       # built for inclusion in a dll (and should export symbols for example).
18705       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18706       ;;
18707
18708     darwin* | rhapsody*)
18709       # PIC is the default on this platform
18710       # Common symbols not allowed in MH_DYLIB files
18711       lt_prog_compiler_pic_F77='-fno-common'
18712       ;;
18713
18714     msdosdjgpp*)
18715       # Just because we use GCC doesn't mean we suddenly get shared libraries
18716       # on systems that don't support them.
18717       lt_prog_compiler_can_build_shared_F77=no
18718       enable_shared=no
18719       ;;
18720
18721     sysv4*MP*)
18722       if test -d /usr/nec; then
18723         lt_prog_compiler_pic_F77=-Kconform_pic
18724       fi
18725       ;;
18726
18727     hpux*)
18728       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18729       # not for PA HP-UX.
18730       case "$host_cpu" in
18731       hppa*64*|ia64*)
18732         # +Z the default
18733         ;;
18734       *)
18735         lt_prog_compiler_pic_F77='-fPIC'
18736         ;;
18737       esac
18738       ;;
18739
18740     *)
18741       lt_prog_compiler_pic_F77='-fPIC'
18742       ;;
18743     esac
18744   else
18745     # PORTME Check for flag to pass linker flags through the system compiler.
18746     case $host_os in
18747     aix*)
18748       lt_prog_compiler_wl_F77='-Wl,'
18749       if test "$host_cpu" = ia64; then
18750         # AIX 5 now supports IA64 processor
18751         lt_prog_compiler_static_F77='-Bstatic'
18752       else
18753         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18754       fi
18755       ;;
18756       darwin*)
18757         # PIC is the default on this platform
18758         # Common symbols not allowed in MH_DYLIB files
18759        case "$cc_basename" in
18760          xlc*)
18761          lt_prog_compiler_pic_F77='-qnocommon'
18762          lt_prog_compiler_wl_F77='-Wl,'
18763          ;;
18764        esac
18765        ;;
18766
18767     mingw* | pw32* | os2*)
18768       # This hack is so that the source file can tell whether it is being
18769       # built for inclusion in a dll (and should export symbols for example).
18770       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18771       ;;
18772
18773     hpux9* | hpux10* | hpux11*)
18774       lt_prog_compiler_wl_F77='-Wl,'
18775       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18776       # not for PA HP-UX.
18777       case "$host_cpu" in
18778       hppa*64*|ia64*)
18779         # +Z the default
18780         ;;
18781       *)
18782         lt_prog_compiler_pic_F77='+Z'
18783         ;;
18784       esac
18785       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18786       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18787       ;;
18788
18789     irix5* | irix6* | nonstopux*)
18790       lt_prog_compiler_wl_F77='-Wl,'
18791       # PIC (with -KPIC) is the default.
18792       lt_prog_compiler_static_F77='-non_shared'
18793       ;;
18794
18795     newsos6)
18796       lt_prog_compiler_pic_F77='-KPIC'
18797       lt_prog_compiler_static_F77='-Bstatic'
18798       ;;
18799
18800     linux*)
18801       case $CC in
18802       icc* | ecc*)
18803         lt_prog_compiler_wl_F77='-Wl,'
18804         lt_prog_compiler_pic_F77='-KPIC'
18805         lt_prog_compiler_static_F77='-static'
18806         ;;
18807       ccc*)
18808         lt_prog_compiler_wl_F77='-Wl,'
18809         # All Alpha code is PIC.
18810         lt_prog_compiler_static_F77='-non_shared'
18811         ;;
18812       esac
18813       ;;
18814
18815     osf3* | osf4* | osf5*)
18816       lt_prog_compiler_wl_F77='-Wl,'
18817       # All OSF/1 code is PIC.
18818       lt_prog_compiler_static_F77='-non_shared'
18819       ;;
18820
18821     sco3.2v5*)
18822       lt_prog_compiler_pic_F77='-Kpic'
18823       lt_prog_compiler_static_F77='-dn'
18824       ;;
18825
18826     solaris*)
18827       lt_prog_compiler_wl_F77='-Wl,'
18828       lt_prog_compiler_pic_F77='-KPIC'
18829       lt_prog_compiler_static_F77='-Bstatic'
18830       ;;
18831
18832     sunos4*)
18833       lt_prog_compiler_wl_F77='-Qoption ld '
18834       lt_prog_compiler_pic_F77='-PIC'
18835       lt_prog_compiler_static_F77='-Bstatic'
18836       ;;
18837
18838     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18839       lt_prog_compiler_wl_F77='-Wl,'
18840       lt_prog_compiler_pic_F77='-KPIC'
18841       lt_prog_compiler_static_F77='-Bstatic'
18842       ;;
18843
18844     sysv4*MP*)
18845       if test -d /usr/nec ;then
18846         lt_prog_compiler_pic_F77='-Kconform_pic'
18847         lt_prog_compiler_static_F77='-Bstatic'
18848       fi
18849       ;;
18850
18851     uts4*)
18852       lt_prog_compiler_pic_F77='-pic'
18853       lt_prog_compiler_static_F77='-Bstatic'
18854       ;;
18855
18856     *)
18857       lt_prog_compiler_can_build_shared_F77=no
18858       ;;
18859     esac
18860   fi
18861
18862 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18863 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18864
18865 #
18866 # Check to make sure the PIC flag actually works.
18867 #
18868 if test -n "$lt_prog_compiler_pic_F77"; then
18869
18870 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18871 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18872 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18873   echo $ECHO_N "(cached) $ECHO_C" >&6
18874 else
18875   lt_prog_compiler_pic_works_F77=no
18876   ac_outfile=conftest.$ac_objext
18877    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18878    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18879    # Insert the option either (1) after the last *FLAGS variable, or
18880    # (2) before a word containing "conftest.", or (3) at the end.
18881    # Note that $ac_compile itself does not contain backslashes and begins
18882    # with a dollar sign (not a hyphen), so the echo should work correctly.
18883    # The option is referenced via a variable to avoid confusing sed.
18884    lt_compile=`echo "$ac_compile" | $SED \
18885    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18886    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18887    -e 's:$: $lt_compiler_flag:'`
18888    (eval echo "\"\$as_me:18888: $lt_compile\"" >&5)
18889    (eval "$lt_compile" 2>conftest.err)
18890    ac_status=$?
18891    cat conftest.err >&5
18892    echo "$as_me:18892: \$? = $ac_status" >&5
18893    if (exit $ac_status) && test -s "$ac_outfile"; then
18894      # The compiler can only warn and ignore the option if not recognized
18895      # So say no if there are warnings
18896      if test ! -s conftest.err; then
18897        lt_prog_compiler_pic_works_F77=yes
18898      fi
18899    fi
18900    $rm conftest*
18901
18902 fi
18903 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18904 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18905
18906 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18907     case $lt_prog_compiler_pic_F77 in
18908      "" | " "*) ;;
18909      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18910      esac
18911 else
18912     lt_prog_compiler_pic_F77=
18913      lt_prog_compiler_can_build_shared_F77=no
18914 fi
18915
18916 fi
18917 case "$host_os" in
18918   # For platforms which do not support PIC, -DPIC is meaningless:
18919   *djgpp*)
18920     lt_prog_compiler_pic_F77=
18921     ;;
18922   *)
18923     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18924     ;;
18925 esac
18926
18927 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18928 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18929 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18930   echo $ECHO_N "(cached) $ECHO_C" >&6
18931 else
18932   lt_cv_prog_compiler_c_o_F77=no
18933    $rm -r conftest 2>/dev/null
18934    mkdir conftest
18935    cd conftest
18936    mkdir out
18937    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18938
18939    lt_compiler_flag="-o out/conftest2.$ac_objext"
18940    # Insert the option either (1) after the last *FLAGS variable, or
18941    # (2) before a word containing "conftest.", or (3) at the end.
18942    # Note that $ac_compile itself does not contain backslashes and begins
18943    # with a dollar sign (not a hyphen), so the echo should work correctly.
18944    lt_compile=`echo "$ac_compile" | $SED \
18945    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18946    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18947    -e 's:$: $lt_compiler_flag:'`
18948    (eval echo "\"\$as_me:18948: $lt_compile\"" >&5)
18949    (eval "$lt_compile" 2>out/conftest.err)
18950    ac_status=$?
18951    cat out/conftest.err >&5
18952    echo "$as_me:18952: \$? = $ac_status" >&5
18953    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18954    then
18955      # The compiler can only warn and ignore the option if not recognized
18956      # So say no if there are warnings
18957      if test ! -s out/conftest.err; then
18958        lt_cv_prog_compiler_c_o_F77=yes
18959      fi
18960    fi
18961    chmod u+w .
18962    $rm conftest*
18963    # SGI C++ compiler will create directory out/ii_files/ for
18964    # template instantiation
18965    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18966    $rm out/* && rmdir out
18967    cd ..
18968    rmdir conftest
18969    $rm conftest*
18970
18971 fi
18972 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18973 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18974
18975
18976 hard_links="nottested"
18977 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18978   # do not overwrite the value of need_locks provided by the user
18979   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18980 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18981   hard_links=yes
18982   $rm conftest*
18983   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18984   touch conftest.a
18985   ln conftest.a conftest.b 2>&5 || hard_links=no
18986   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18987   echo "$as_me:$LINENO: result: $hard_links" >&5
18988 echo "${ECHO_T}$hard_links" >&6
18989   if test "$hard_links" = no; then
18990     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18991 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18992     need_locks=warn
18993   fi
18994 else
18995   need_locks=no
18996 fi
18997
18998 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18999 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19000
19001   runpath_var=
19002   allow_undefined_flag_F77=
19003   enable_shared_with_static_runtimes_F77=no
19004   archive_cmds_F77=
19005   archive_expsym_cmds_F77=
19006   old_archive_From_new_cmds_F77=
19007   old_archive_from_expsyms_cmds_F77=
19008   export_dynamic_flag_spec_F77=
19009   whole_archive_flag_spec_F77=
19010   thread_safe_flag_spec_F77=
19011   hardcode_libdir_flag_spec_F77=
19012   hardcode_libdir_flag_spec_ld_F77=
19013   hardcode_libdir_separator_F77=
19014   hardcode_direct_F77=no
19015   hardcode_minus_L_F77=no
19016   hardcode_shlibpath_var_F77=unsupported
19017   link_all_deplibs_F77=unknown
19018   hardcode_automatic_F77=no
19019   module_cmds_F77=
19020   module_expsym_cmds_F77=
19021   always_export_symbols_F77=no
19022   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19023   # include_expsyms should be a list of space-separated symbols to be *always*
19024   # included in the symbol list
19025   include_expsyms_F77=
19026   # exclude_expsyms can be an extended regexp of symbols to exclude
19027   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19028   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19029   # as well as any symbol that contains `d'.
19030   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19031   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19032   # platforms (ab)use it in PIC code, but their linkers get confused if
19033   # the symbol is explicitly referenced.  Since portable code cannot
19034   # rely on this symbol name, it's probably fine to never include it in
19035   # preloaded symbol tables.
19036   extract_expsyms_cmds=
19037
19038   case $host_os in
19039   cygwin* | mingw* | pw32*)
19040     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19041     # When not using gcc, we currently assume that we are using
19042     # Microsoft Visual C++.
19043     if test "$GCC" != yes; then
19044       with_gnu_ld=no
19045     fi
19046     ;;
19047   openbsd*)
19048     with_gnu_ld=no
19049     ;;
19050   esac
19051
19052   ld_shlibs_F77=yes
19053   if test "$with_gnu_ld" = yes; then
19054     # If archive_cmds runs LD, not CC, wlarc should be empty
19055     wlarc='${wl}'
19056
19057     # See if GNU ld supports shared libraries.
19058     case $host_os in
19059     aix3* | aix4* | aix5*)
19060       # On AIX/PPC, the GNU linker is very broken
19061       if test "$host_cpu" != ia64; then
19062         ld_shlibs_F77=no
19063         cat <<EOF 1>&2
19064
19065 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19066 *** to be unable to reliably create shared libraries on AIX.
19067 *** Therefore, libtool is disabling shared libraries support.  If you
19068 *** really care for shared libraries, you may want to modify your PATH
19069 *** so that a non-GNU linker is found, and then restart.
19070
19071 EOF
19072       fi
19073       ;;
19074
19075     amigaos*)
19076       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)'
19077       hardcode_libdir_flag_spec_F77='-L$libdir'
19078       hardcode_minus_L_F77=yes
19079
19080       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19081       # that the semantics of dynamic libraries on AmigaOS, at least up
19082       # to version 4, is to share data among multiple programs linked
19083       # with the same dynamic library.  Since this doesn't match the
19084       # behavior of shared libraries on other platforms, we can't use
19085       # them.
19086       ld_shlibs_F77=no
19087       ;;
19088
19089     beos*)
19090       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19091         allow_undefined_flag_F77=unsupported
19092         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19093         # support --undefined.  This deserves some investigation.  FIXME
19094         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19095       else
19096         ld_shlibs_F77=no
19097       fi
19098       ;;
19099
19100     cygwin* | mingw* | pw32*)
19101       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19102       # as there is no search path for DLLs.
19103       hardcode_libdir_flag_spec_F77='-L$libdir'
19104       allow_undefined_flag_F77=unsupported
19105       always_export_symbols_F77=no
19106       enable_shared_with_static_runtimes_F77=yes
19107       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19108
19109       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19110         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19111         # If the export-symbols file already is a .def file (1st line
19112         # is EXPORTS), use it as is; otherwise, prepend...
19113         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19114           cp $export_symbols $output_objdir/$soname.def;
19115         else
19116           echo EXPORTS > $output_objdir/$soname.def;
19117           cat $export_symbols >> $output_objdir/$soname.def;
19118         fi~
19119         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19120       else
19121         ld_shlibs=no
19122       fi
19123       ;;
19124
19125     netbsd*)
19126       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19127         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19128         wlarc=
19129       else
19130         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19131         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19132       fi
19133       ;;
19134
19135     solaris* | sysv5*)
19136       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19137         ld_shlibs_F77=no
19138         cat <<EOF 1>&2
19139
19140 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19141 *** create shared libraries on Solaris systems.  Therefore, libtool
19142 *** is disabling shared libraries support.  We urge you to upgrade GNU
19143 *** binutils to release 2.9.1 or newer.  Another option is to modify
19144 *** your PATH or compiler configuration so that the native linker is
19145 *** used, and then restart.
19146
19147 EOF
19148       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19149         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19150         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19151       else
19152         ld_shlibs_F77=no
19153       fi
19154       ;;
19155
19156     sunos4*)
19157       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19158       wlarc=
19159       hardcode_direct_F77=yes
19160       hardcode_shlibpath_var_F77=no
19161       ;;
19162
19163   linux*)
19164     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19165         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19166         archive_cmds_F77="$tmp_archive_cmds"
19167       supports_anon_versioning=no
19168       case `$LD -v 2>/dev/null` in
19169         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19170         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19171         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19172         *\ 2.11.*) ;; # other 2.11 versions
19173         *) supports_anon_versioning=yes ;;
19174       esac
19175       if test $supports_anon_versioning = yes; then
19176         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19178 $echo "local: *; };" >> $output_objdir/$libname.ver~
19179         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19180       else
19181         archive_expsym_cmds_F77="$tmp_archive_cmds"
19182       fi
19183     else
19184       ld_shlibs_F77=no
19185     fi
19186     ;;
19187
19188     *)
19189       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19190         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19191         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19192       else
19193         ld_shlibs_F77=no
19194       fi
19195       ;;
19196     esac
19197
19198     if test "$ld_shlibs_F77" = yes; then
19199       runpath_var=LD_RUN_PATH
19200       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19201       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19202       # ancient GNU ld didn't support --whole-archive et. al.
19203       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19204         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19205       else
19206         whole_archive_flag_spec_F77=
19207       fi
19208     fi
19209   else
19210     # PORTME fill in a description of your system's linker (not GNU ld)
19211     case $host_os in
19212     aix3*)
19213       allow_undefined_flag_F77=unsupported
19214       always_export_symbols_F77=yes
19215       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'
19216       # Note: this linker hardcodes the directories in LIBPATH if there
19217       # are no directories specified by -L.
19218       hardcode_minus_L_F77=yes
19219       if test "$GCC" = yes && test -z "$link_static_flag"; then
19220         # Neither direct hardcoding nor static linking is supported with a
19221         # broken collect2.
19222         hardcode_direct_F77=unsupported
19223       fi
19224       ;;
19225
19226     aix4* | aix5*)
19227       if test "$host_cpu" = ia64; then
19228         # On IA64, the linker does run time linking by default, so we don't
19229         # have to do anything special.
19230         aix_use_runtimelinking=no
19231         exp_sym_flag='-Bexport'
19232         no_entry_flag=""
19233       else
19234         # If we're using GNU nm, then we don't want the "-C" option.
19235         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19236         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19237           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'
19238         else
19239           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'
19240         fi
19241         aix_use_runtimelinking=no
19242
19243         # Test if we are trying to use run time linking or normal
19244         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19245         # need to do runtime linking.
19246         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19247           for ld_flag in $LDFLAGS; do
19248           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19249             aix_use_runtimelinking=yes
19250             break
19251           fi
19252           done
19253         esac
19254
19255         exp_sym_flag='-bexport'
19256         no_entry_flag='-bnoentry'
19257       fi
19258
19259       # When large executables or shared objects are built, AIX ld can
19260       # have problems creating the table of contents.  If linking a library
19261       # or program results in "error TOC overflow" add -mminimal-toc to
19262       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19263       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19264
19265       archive_cmds_F77=''
19266       hardcode_direct_F77=yes
19267       hardcode_libdir_separator_F77=':'
19268       link_all_deplibs_F77=yes
19269
19270       if test "$GCC" = yes; then
19271         case $host_os in aix4.012|aix4.012.*)
19272         # We only want to do this on AIX 4.2 and lower, the check
19273         # below for broken collect2 doesn't work under 4.3+
19274           collect2name=`${CC} -print-prog-name=collect2`
19275           if test -f "$collect2name" && \
19276            strings "$collect2name" | grep resolve_lib_name >/dev/null
19277           then
19278           # We have reworked collect2
19279           hardcode_direct_F77=yes
19280           else
19281           # We have old collect2
19282           hardcode_direct_F77=unsupported
19283           # It fails to find uninstalled libraries when the uninstalled
19284           # path is not listed in the libpath.  Setting hardcode_minus_L
19285           # to unsupported forces relinking
19286           hardcode_minus_L_F77=yes
19287           hardcode_libdir_flag_spec_F77='-L$libdir'
19288           hardcode_libdir_separator_F77=
19289           fi
19290         esac
19291         shared_flag='-shared'
19292       else
19293         # not using gcc
19294         if test "$host_cpu" = ia64; then
19295         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19296         # chokes on -Wl,-G. The following line is correct:
19297           shared_flag='-G'
19298         else
19299         if test "$aix_use_runtimelinking" = yes; then
19300             shared_flag='${wl}-G'
19301           else
19302             shared_flag='${wl}-bM:SRE'
19303         fi
19304         fi
19305       fi
19306
19307       # It seems that -bexpall does not export symbols beginning with
19308       # underscore (_), so it is better to generate a list of symbols to export.
19309       always_export_symbols_F77=yes
19310       if test "$aix_use_runtimelinking" = yes; then
19311         # Warning - without using the other runtime loading flags (-brtl),
19312         # -berok will link without error, but may produce a broken library.
19313         allow_undefined_flag_F77='-berok'
19314        # Determine the default libpath from the value encoded in an empty executable.
19315        cat >conftest.$ac_ext <<_ACEOF
19316       program main
19317
19318       end
19319 _ACEOF
19320 rm -f conftest.$ac_objext conftest$ac_exeext
19321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19322   (eval $ac_link) 2>conftest.er1
19323   ac_status=$?
19324   grep -v '^ *+' conftest.er1 >conftest.err
19325   rm -f conftest.er1
19326   cat conftest.err >&5
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); } &&
19329          { ac_try='test -z "$ac_f77_werror_flag"
19330                          || test ! -s conftest.err'
19331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332   (eval $ac_try) 2>&5
19333   ac_status=$?
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); }; } &&
19336          { ac_try='test -s conftest$ac_exeext'
19337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338   (eval $ac_try) 2>&5
19339   ac_status=$?
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); }; }; then
19342
19343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19344 }'`
19345 # Check for a 64-bit object if we didn't find anything.
19346 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; }
19347 }'`; fi
19348 else
19349   echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19351
19352 fi
19353 rm -f conftest.err conftest.$ac_objext \
19354       conftest$ac_exeext conftest.$ac_ext
19355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19356
19357        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19358         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"
19359        else
19360         if test "$host_cpu" = ia64; then
19361           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19362           allow_undefined_flag_F77="-z nodefs"
19363           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"
19364         else
19365          # Determine the default libpath from the value encoded in an empty executable.
19366          cat >conftest.$ac_ext <<_ACEOF
19367       program main
19368
19369       end
19370 _ACEOF
19371 rm -f conftest.$ac_objext conftest$ac_exeext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19373   (eval $ac_link) 2>conftest.er1
19374   ac_status=$?
19375   grep -v '^ *+' conftest.er1 >conftest.err
19376   rm -f conftest.er1
19377   cat conftest.err >&5
19378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379   (exit $ac_status); } &&
19380          { ac_try='test -z "$ac_f77_werror_flag"
19381                          || test ! -s conftest.err'
19382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383   (eval $ac_try) 2>&5
19384   ac_status=$?
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); }; } &&
19387          { ac_try='test -s conftest$ac_exeext'
19388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389   (eval $ac_try) 2>&5
19390   ac_status=$?
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); }; }; then
19393
19394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19395 }'`
19396 # Check for a 64-bit object if we didn't find anything.
19397 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; }
19398 }'`; fi
19399 else
19400   echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19402
19403 fi
19404 rm -f conftest.err conftest.$ac_objext \
19405       conftest$ac_exeext conftest.$ac_ext
19406 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19407
19408          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19409           # Warning - without using the other run time loading flags,
19410           # -berok will link without error, but may produce a broken library.
19411           no_undefined_flag_F77=' ${wl}-bernotok'
19412           allow_undefined_flag_F77=' ${wl}-berok'
19413           # -bexpall does not export symbols beginning with underscore (_)
19414           always_export_symbols_F77=yes
19415           # Exported symbols can be pulled into shared objects from archives
19416           whole_archive_flag_spec_F77=' '
19417           archive_cmds_need_lc_F77=yes
19418           # This is similar to how AIX traditionally builds it's shared libraries.
19419           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'
19420         fi
19421       fi
19422       ;;
19423
19424     amigaos*)
19425       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)'
19426       hardcode_libdir_flag_spec_F77='-L$libdir'
19427       hardcode_minus_L_F77=yes
19428       # see comment about different semantics on the GNU ld section
19429       ld_shlibs_F77=no
19430       ;;
19431
19432     bsdi[45]*)
19433       export_dynamic_flag_spec_F77=-rdynamic
19434       ;;
19435
19436     cygwin* | mingw* | pw32*)
19437       # When not using gcc, we currently assume that we are using
19438       # Microsoft Visual C++.
19439       # hardcode_libdir_flag_spec is actually meaningless, as there is
19440       # no search path for DLLs.
19441       hardcode_libdir_flag_spec_F77=' '
19442       allow_undefined_flag_F77=unsupported
19443       # Tell ltmain to make .lib files, not .a files.
19444       libext=lib
19445       # Tell ltmain to make .dll files, not .so files.
19446       shrext_cmds=".dll"
19447       # FIXME: Setting linknames here is a bad hack.
19448       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19449       # The linker will automatically build a .lib file if we build a DLL.
19450       old_archive_From_new_cmds_F77='true'
19451       # FIXME: Should let the user specify the lib program.
19452       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19453       fix_srcfile_path='`cygpath -w "$srcfile"`'
19454       enable_shared_with_static_runtimes_F77=yes
19455       ;;
19456
19457     darwin* | rhapsody*)
19458       case "$host_os" in
19459         rhapsody* | darwin1.[012])
19460          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19461          ;;
19462        *) # Darwin 1.3 on
19463          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19464            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19465          else
19466            case ${MACOSX_DEPLOYMENT_TARGET} in
19467              10.[012])
19468                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19469                ;;
19470              10.*)
19471                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19472                ;;
19473            esac
19474          fi
19475          ;;
19476       esac
19477       archive_cmds_need_lc_F77=no
19478       hardcode_direct_F77=no
19479       hardcode_automatic_F77=yes
19480       hardcode_shlibpath_var_F77=unsupported
19481       whole_archive_flag_spec_F77=''
19482       link_all_deplibs_F77=yes
19483     if test "$GCC" = yes ; then
19484         output_verbose_link_cmd='echo'
19485         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19486       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19487       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19488       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}'
19489       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}'
19490     else
19491       case "$cc_basename" in
19492         xlc*)
19493          output_verbose_link_cmd='echo'
19494          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19495          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19496           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19497          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}'
19498           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}'
19499           ;;
19500        *)
19501          ld_shlibs_F77=no
19502           ;;
19503       esac
19504     fi
19505       ;;
19506
19507     dgux*)
19508       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19509       hardcode_libdir_flag_spec_F77='-L$libdir'
19510       hardcode_shlibpath_var_F77=no
19511       ;;
19512
19513     freebsd1*)
19514       ld_shlibs_F77=no
19515       ;;
19516
19517     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19518     # support.  Future versions do this automatically, but an explicit c++rt0.o
19519     # does not break anything, and helps significantly (at the cost of a little
19520     # extra space).
19521     freebsd2.2*)
19522       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19523       hardcode_libdir_flag_spec_F77='-R$libdir'
19524       hardcode_direct_F77=yes
19525       hardcode_shlibpath_var_F77=no
19526       ;;
19527
19528     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19529     freebsd2*)
19530       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19531       hardcode_direct_F77=yes
19532       hardcode_minus_L_F77=yes
19533       hardcode_shlibpath_var_F77=no
19534       ;;
19535
19536     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19537     freebsd* | kfreebsd*-gnu)
19538       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19539       hardcode_libdir_flag_spec_F77='-R$libdir'
19540       hardcode_direct_F77=yes
19541       hardcode_shlibpath_var_F77=no
19542       ;;
19543
19544     hpux9*)
19545       if test "$GCC" = yes; then
19546         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'
19547       else
19548         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'
19549       fi
19550       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19551       hardcode_libdir_separator_F77=:
19552       hardcode_direct_F77=yes
19553
19554       # hardcode_minus_L: Not really in the search PATH,
19555       # but as the default location of the library.
19556       hardcode_minus_L_F77=yes
19557       export_dynamic_flag_spec_F77='${wl}-E'
19558       ;;
19559
19560     hpux10* | hpux11*)
19561       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19562         case "$host_cpu" in
19563         hppa*64*|ia64*)
19564           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19565           ;;
19566         *)
19567           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19568           ;;
19569         esac
19570       else
19571         case "$host_cpu" in
19572         hppa*64*|ia64*)
19573           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19574           ;;
19575         *)
19576           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19577           ;;
19578         esac
19579       fi
19580       if test "$with_gnu_ld" = no; then
19581         case "$host_cpu" in
19582         hppa*64*)
19583           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19584           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19585           hardcode_libdir_separator_F77=:
19586           hardcode_direct_F77=no
19587           hardcode_shlibpath_var_F77=no
19588           ;;
19589         ia64*)
19590           hardcode_libdir_flag_spec_F77='-L$libdir'
19591           hardcode_direct_F77=no
19592           hardcode_shlibpath_var_F77=no
19593
19594           # hardcode_minus_L: Not really in the search PATH,
19595           # but as the default location of the library.
19596           hardcode_minus_L_F77=yes
19597           ;;
19598         *)
19599           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19600           hardcode_libdir_separator_F77=:
19601           hardcode_direct_F77=yes
19602           export_dynamic_flag_spec_F77='${wl}-E'
19603
19604           # hardcode_minus_L: Not really in the search PATH,
19605           # but as the default location of the library.
19606           hardcode_minus_L_F77=yes
19607           ;;
19608         esac
19609       fi
19610       ;;
19611
19612     irix5* | irix6* | nonstopux*)
19613       if test "$GCC" = yes; then
19614         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'
19615       else
19616         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'
19617         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19618       fi
19619       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19620       hardcode_libdir_separator_F77=:
19621       link_all_deplibs_F77=yes
19622       ;;
19623
19624     netbsd*)
19625       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19626         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19627       else
19628         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19629       fi
19630       hardcode_libdir_flag_spec_F77='-R$libdir'
19631       hardcode_direct_F77=yes
19632       hardcode_shlibpath_var_F77=no
19633       ;;
19634
19635     newsos6)
19636       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19637       hardcode_direct_F77=yes
19638       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19639       hardcode_libdir_separator_F77=:
19640       hardcode_shlibpath_var_F77=no
19641       ;;
19642
19643     openbsd*)
19644       hardcode_direct_F77=yes
19645       hardcode_shlibpath_var_F77=no
19646       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19647         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19648         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19649         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19650         export_dynamic_flag_spec_F77='${wl}-E'
19651       else
19652        case $host_os in
19653          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19654            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19655            hardcode_libdir_flag_spec_F77='-R$libdir'
19656            ;;
19657          *)
19658            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19659            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19660            ;;
19661        esac
19662       fi
19663       ;;
19664
19665     os2*)
19666       hardcode_libdir_flag_spec_F77='-L$libdir'
19667       hardcode_minus_L_F77=yes
19668       allow_undefined_flag_F77=unsupported
19669       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'
19670       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19671       ;;
19672
19673     osf3*)
19674       if test "$GCC" = yes; then
19675         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19676         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'
19677       else
19678         allow_undefined_flag_F77=' -expect_unresolved \*'
19679         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'
19680       fi
19681       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19682       hardcode_libdir_separator_F77=:
19683       ;;
19684
19685     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19686       if test "$GCC" = yes; then
19687         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19688         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'
19689         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19690       else
19691         allow_undefined_flag_F77=' -expect_unresolved \*'
19692         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'
19693         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~
19694         $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'
19695
19696         # Both c and cxx compiler support -rpath directly
19697         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19698       fi
19699       hardcode_libdir_separator_F77=:
19700       ;;
19701
19702     sco3.2v5*)
19703       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19704       hardcode_shlibpath_var_F77=no
19705       export_dynamic_flag_spec_F77='${wl}-Bexport'
19706       runpath_var=LD_RUN_PATH
19707       hardcode_runpath_var=yes
19708       ;;
19709
19710     solaris*)
19711       no_undefined_flag_F77=' -z text'
19712       if test "$GCC" = yes; then
19713         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19714         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19715           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19716       else
19717         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19718         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19719         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19720       fi
19721       hardcode_libdir_flag_spec_F77='-R$libdir'
19722       hardcode_shlibpath_var_F77=no
19723       case $host_os in
19724       solaris2.[0-5] | solaris2.[0-5].*) ;;
19725       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19726         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19727       esac
19728       link_all_deplibs_F77=yes
19729       ;;
19730
19731     sunos4*)
19732       if test "x$host_vendor" = xsequent; then
19733         # Use $CC to link under sequent, because it throws in some extra .o
19734         # files that make .init and .fini sections work.
19735         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19736       else
19737         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19738       fi
19739       hardcode_libdir_flag_spec_F77='-L$libdir'
19740       hardcode_direct_F77=yes
19741       hardcode_minus_L_F77=yes
19742       hardcode_shlibpath_var_F77=no
19743       ;;
19744
19745     sysv4)
19746       case $host_vendor in
19747         sni)
19748           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19749           hardcode_direct_F77=yes # is this really true???
19750         ;;
19751         siemens)
19752           ## LD is ld it makes a PLAMLIB
19753           ## CC just makes a GrossModule.
19754           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19755           reload_cmds_F77='$CC -r -o $output$reload_objs'
19756           hardcode_direct_F77=no
19757         ;;
19758         motorola)
19759           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19760           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19761         ;;
19762       esac
19763       runpath_var='LD_RUN_PATH'
19764       hardcode_shlibpath_var_F77=no
19765       ;;
19766
19767     sysv4.3*)
19768       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19769       hardcode_shlibpath_var_F77=no
19770       export_dynamic_flag_spec_F77='-Bexport'
19771       ;;
19772
19773     sysv4*MP*)
19774       if test -d /usr/nec; then
19775         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19776         hardcode_shlibpath_var_F77=no
19777         runpath_var=LD_RUN_PATH
19778         hardcode_runpath_var=yes
19779         ld_shlibs_F77=yes
19780       fi
19781       ;;
19782
19783     sysv4.2uw2*)
19784       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19785       hardcode_direct_F77=yes
19786       hardcode_minus_L_F77=no
19787       hardcode_shlibpath_var_F77=no
19788       hardcode_runpath_var=yes
19789       runpath_var=LD_RUN_PATH
19790       ;;
19791
19792    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19793       no_undefined_flag_F77='${wl}-z ${wl}text'
19794       if test "$GCC" = yes; then
19795         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19796       else
19797         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19798       fi
19799       runpath_var='LD_RUN_PATH'
19800       hardcode_shlibpath_var_F77=no
19801       ;;
19802
19803     sysv5*)
19804       no_undefined_flag_F77=' -z text'
19805       # $CC -shared without GNU ld will not create a library from C++
19806       # object files and a static libstdc++, better avoid it by now
19807       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19808       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19809                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19810       hardcode_libdir_flag_spec_F77=
19811       hardcode_shlibpath_var_F77=no
19812       runpath_var='LD_RUN_PATH'
19813       ;;
19814
19815     uts4*)
19816       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19817       hardcode_libdir_flag_spec_F77='-L$libdir'
19818       hardcode_shlibpath_var_F77=no
19819       ;;
19820
19821     *)
19822       ld_shlibs_F77=no
19823       ;;
19824     esac
19825   fi
19826
19827 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19828 echo "${ECHO_T}$ld_shlibs_F77" >&6
19829 test "$ld_shlibs_F77" = no && can_build_shared=no
19830
19831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19832 if test "$GCC" = yes; then
19833   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19834 fi
19835
19836 #
19837 # Do we need to explicitly link libc?
19838 #
19839 case "x$archive_cmds_need_lc_F77" in
19840 x|xyes)
19841   # Assume -lc should be added
19842   archive_cmds_need_lc_F77=yes
19843
19844   if test "$enable_shared" = yes && test "$GCC" = yes; then
19845     case $archive_cmds_F77 in
19846     *'~'*)
19847       # FIXME: we may have to deal with multi-command sequences.
19848       ;;
19849     '$CC '*)
19850       # Test whether the compiler implicitly links with -lc since on some
19851       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19852       # to ld, don't add -lc before -lgcc.
19853       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19854 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19855       $rm conftest*
19856       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19857
19858       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19859   (eval $ac_compile) 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); } 2>conftest.err; then
19863         soname=conftest
19864         lib=conftest
19865         libobjs=conftest.$ac_objext
19866         deplibs=
19867         wl=$lt_prog_compiler_wl_F77
19868         compiler_flags=-v
19869         linker_flags=-v
19870         verstring=
19871         output_objdir=.
19872         libname=conftest
19873         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19874         allow_undefined_flag_F77=
19875         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19876   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19877   ac_status=$?
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); }
19880         then
19881           archive_cmds_need_lc_F77=no
19882         else
19883           archive_cmds_need_lc_F77=yes
19884         fi
19885         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19886       else
19887         cat conftest.err 1>&5
19888       fi
19889       $rm conftest*
19890       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19891 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19892       ;;
19893     esac
19894   fi
19895   ;;
19896 esac
19897
19898 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19899 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19900 library_names_spec=
19901 libname_spec='lib$name'
19902 soname_spec=
19903 shrext_cmds=".so"
19904 postinstall_cmds=
19905 postuninstall_cmds=
19906 finish_cmds=
19907 finish_eval=
19908 shlibpath_var=
19909 shlibpath_overrides_runpath=unknown
19910 version_type=none
19911 dynamic_linker="$host_os ld.so"
19912 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19913 if test "$GCC" = yes; then
19914   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19915   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19916     # if the path contains ";" then we assume it to be the separator
19917     # otherwise default to the standard path separator (i.e. ":") - it is
19918     # assumed that no part of a normal pathname contains ";" but that should
19919     # okay in the real world where ";" in dirpaths is itself problematic.
19920     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19921   else
19922     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19923   fi
19924 else
19925   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19926 fi
19927 need_lib_prefix=unknown
19928 hardcode_into_libs=no
19929
19930 # when you set need_version to no, make sure it does not cause -set_version
19931 # flags to be left without arguments
19932 need_version=unknown
19933
19934 case $host_os in
19935 aix3*)
19936   version_type=linux
19937   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19938   shlibpath_var=LIBPATH
19939
19940   # AIX 3 has no versioning support, so we append a major version to the name.
19941   soname_spec='${libname}${release}${shared_ext}$major'
19942   ;;
19943
19944 aix4* | aix5*)
19945   version_type=linux
19946   need_lib_prefix=no
19947   need_version=no
19948   hardcode_into_libs=yes
19949   if test "$host_cpu" = ia64; then
19950     # AIX 5 supports IA64
19951     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19952     shlibpath_var=LD_LIBRARY_PATH
19953   else
19954     # With GCC up to 2.95.x, collect2 would create an import file
19955     # for dependence libraries.  The import file would start with
19956     # the line `#! .'.  This would cause the generated library to
19957     # depend on `.', always an invalid library.  This was fixed in
19958     # development snapshots of GCC prior to 3.0.
19959     case $host_os in
19960       aix4 | aix4.[01] | aix4.[01].*)
19961       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19962            echo ' yes '
19963            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19964         :
19965       else
19966         can_build_shared=no
19967       fi
19968       ;;
19969     esac
19970     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19971     # soname into executable. Probably we can add versioning support to
19972     # collect2, so additional links can be useful in future.
19973     if test "$aix_use_runtimelinking" = yes; then
19974       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19975       # instead of lib<name>.a to let people know that these are not
19976       # typical AIX shared libraries.
19977       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19978     else
19979       # We preserve .a as extension for shared libraries through AIX4.2
19980       # and later when we are not doing run time linking.
19981       library_names_spec='${libname}${release}.a $libname.a'
19982       soname_spec='${libname}${release}${shared_ext}$major'
19983     fi
19984     shlibpath_var=LIBPATH
19985   fi
19986   ;;
19987
19988 amigaos*)
19989   library_names_spec='$libname.ixlibrary $libname.a'
19990   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19991   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'
19992   ;;
19993
19994 beos*)
19995   library_names_spec='${libname}${shared_ext}'
19996   dynamic_linker="$host_os ld.so"
19997   shlibpath_var=LIBRARY_PATH
19998   ;;
19999
20000 bsdi[45]*)
20001   version_type=linux
20002   need_version=no
20003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20004   soname_spec='${libname}${release}${shared_ext}$major'
20005   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20006   shlibpath_var=LD_LIBRARY_PATH
20007   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20008   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20009   # the default ld.so.conf also contains /usr/contrib/lib and
20010   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20011   # libtool to hard-code these into programs
20012   ;;
20013
20014 cygwin* | mingw* | pw32*)
20015   version_type=windows
20016   shrext_cmds=".dll"
20017   need_version=no
20018   need_lib_prefix=no
20019
20020   case $GCC,$host_os in
20021   yes,cygwin* | yes,mingw* | yes,pw32*)
20022     library_names_spec='$libname.dll.a'
20023     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20024     postinstall_cmds='base_file=`basename \${file}`~
20025       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20026       dldir=$destdir/`dirname \$dlpath`~
20027       test -d \$dldir || mkdir -p \$dldir~
20028       $install_prog $dir/$dlname \$dldir/$dlname'
20029     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20030       dlpath=$dir/\$dldll~
20031        $rm \$dlpath'
20032     shlibpath_overrides_runpath=yes
20033
20034     case $host_os in
20035     cygwin*)
20036       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20037       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20038       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20039       ;;
20040     mingw*)
20041       # MinGW DLLs use traditional 'lib' prefix
20042       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20043       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20044       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20045         # It is most probably a Windows format PATH printed by
20046         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20047         # path with ; separators, and with drive letters. We can handle the
20048         # drive letters (cygwin fileutils understands them), so leave them,
20049         # especially as we might pass files found there to a mingw objdump,
20050         # which wouldn't understand a cygwinified path. Ahh.
20051         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20052       else
20053         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20054       fi
20055       ;;
20056     pw32*)
20057       # pw32 DLLs use 'pw' prefix rather than 'lib'
20058       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20059       ;;
20060     esac
20061     ;;
20062
20063   *)
20064     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20065     ;;
20066   esac
20067   dynamic_linker='Win32 ld.exe'
20068   # FIXME: first we should search . and the directory the executable is in
20069   shlibpath_var=PATH
20070   ;;
20071
20072 darwin* | rhapsody*)
20073   dynamic_linker="$host_os dyld"
20074   version_type=darwin
20075   need_lib_prefix=no
20076   need_version=no
20077   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20078   soname_spec='${libname}${release}${major}$shared_ext'
20079   shlibpath_overrides_runpath=yes
20080   shlibpath_var=DYLD_LIBRARY_PATH
20081   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20082   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20083   if test "$GCC" = yes; then
20084     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"`
20085   else
20086     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20087   fi
20088   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20089   ;;
20090
20091 dgux*)
20092   version_type=linux
20093   need_lib_prefix=no
20094   need_version=no
20095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20096   soname_spec='${libname}${release}${shared_ext}$major'
20097   shlibpath_var=LD_LIBRARY_PATH
20098   ;;
20099
20100 freebsd1*)
20101   dynamic_linker=no
20102   ;;
20103
20104 kfreebsd*-gnu)
20105   version_type=linux
20106   need_lib_prefix=no
20107   need_version=no
20108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20109   soname_spec='${libname}${release}${shared_ext}$major'
20110   shlibpath_var=LD_LIBRARY_PATH
20111   shlibpath_overrides_runpath=no
20112   hardcode_into_libs=yes
20113   dynamic_linker='GNU ld.so'
20114   ;;
20115
20116 freebsd*)
20117   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20118   version_type=freebsd-$objformat
20119   case $version_type in
20120     freebsd-elf*)
20121       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20122       need_version=no
20123       need_lib_prefix=no
20124       ;;
20125     freebsd-*)
20126       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20127       need_version=yes
20128       ;;
20129   esac
20130   shlibpath_var=LD_LIBRARY_PATH
20131   case $host_os in
20132   freebsd2*)
20133     shlibpath_overrides_runpath=yes
20134     ;;
20135   freebsd3.01* | freebsdelf3.01*)
20136     shlibpath_overrides_runpath=yes
20137     hardcode_into_libs=yes
20138     ;;
20139   *) # from 3.2 on
20140     shlibpath_overrides_runpath=no
20141     hardcode_into_libs=yes
20142     ;;
20143   esac
20144   ;;
20145
20146 gnu*)
20147   version_type=linux
20148   need_lib_prefix=no
20149   need_version=no
20150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20151   soname_spec='${libname}${release}${shared_ext}$major'
20152   shlibpath_var=LD_LIBRARY_PATH
20153   hardcode_into_libs=yes
20154   ;;
20155
20156 hpux9* | hpux10* | hpux11*)
20157   # Give a soname corresponding to the major version so that dld.sl refuses to
20158   # link against other versions.
20159   version_type=sunos
20160   need_lib_prefix=no
20161   need_version=no
20162   case "$host_cpu" in
20163   ia64*)
20164     shrext_cmds='.so'
20165     hardcode_into_libs=yes
20166     dynamic_linker="$host_os dld.so"
20167     shlibpath_var=LD_LIBRARY_PATH
20168     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20170     soname_spec='${libname}${release}${shared_ext}$major'
20171     if test "X$HPUX_IA64_MODE" = X32; then
20172       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20173     else
20174       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20175     fi
20176     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20177     ;;
20178    hppa*64*)
20179      shrext_cmds='.sl'
20180      hardcode_into_libs=yes
20181      dynamic_linker="$host_os dld.sl"
20182      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20183      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20184      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20185      soname_spec='${libname}${release}${shared_ext}$major'
20186      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20187      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20188      ;;
20189    *)
20190     shrext_cmds='.sl'
20191     dynamic_linker="$host_os dld.sl"
20192     shlibpath_var=SHLIB_PATH
20193     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195     soname_spec='${libname}${release}${shared_ext}$major'
20196     ;;
20197   esac
20198   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20199   postinstall_cmds='chmod 555 $lib'
20200   ;;
20201
20202 irix5* | irix6* | nonstopux*)
20203   case $host_os in
20204     nonstopux*) version_type=nonstopux ;;
20205     *)
20206         if test "$lt_cv_prog_gnu_ld" = yes; then
20207                 version_type=linux
20208         else
20209                 version_type=irix
20210         fi ;;
20211   esac
20212   need_lib_prefix=no
20213   need_version=no
20214   soname_spec='${libname}${release}${shared_ext}$major'
20215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20216   case $host_os in
20217   irix5* | nonstopux*)
20218     libsuff= shlibsuff=
20219     ;;
20220   *)
20221     case $LD in # libtool.m4 will add one of these switches to LD
20222     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20223       libsuff= shlibsuff= libmagic=32-bit;;
20224     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20225       libsuff=32 shlibsuff=N32 libmagic=N32;;
20226     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20227       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20228     *) libsuff= shlibsuff= libmagic=never-match;;
20229     esac
20230     ;;
20231   esac
20232   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20233   shlibpath_overrides_runpath=no
20234   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20235   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20236   hardcode_into_libs=yes
20237   ;;
20238
20239 # No shared lib support for Linux oldld, aout, or coff.
20240 linux*oldld* | linux*aout* | linux*coff*)
20241   dynamic_linker=no
20242   ;;
20243
20244 # This must be Linux ELF.
20245 linux*)
20246   version_type=linux
20247   need_lib_prefix=no
20248   need_version=no
20249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250   soname_spec='${libname}${release}${shared_ext}$major'
20251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20252   shlibpath_var=LD_LIBRARY_PATH
20253   shlibpath_overrides_runpath=no
20254   # This implies no fast_install, which is unacceptable.
20255   # Some rework will be needed to allow for fast_install
20256   # before this can be enabled.
20257   hardcode_into_libs=yes
20258
20259   # Append ld.so.conf contents to the search path
20260   if test -f /etc/ld.so.conf; then
20261     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20262     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20263   fi
20264
20265   # We used to test for /lib/ld.so.1 and disable shared libraries on
20266   # powerpc, because MkLinux only supported shared libraries with the
20267   # GNU dynamic linker.  Since this was broken with cross compilers,
20268   # most powerpc-linux boxes support dynamic linking these days and
20269   # people can always --disable-shared, the test was removed, and we
20270   # assume the GNU/Linux dynamic linker is in use.
20271   dynamic_linker='GNU/Linux ld.so'
20272   ;;
20273
20274 knetbsd*-gnu)
20275   version_type=linux
20276   need_lib_prefix=no
20277   need_version=no
20278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20279   soname_spec='${libname}${release}${shared_ext}$major'
20280   shlibpath_var=LD_LIBRARY_PATH
20281   shlibpath_overrides_runpath=no
20282   hardcode_into_libs=yes
20283   dynamic_linker='GNU ld.so'
20284   ;;
20285
20286 netbsd*)
20287   version_type=sunos
20288   need_lib_prefix=no
20289   need_version=no
20290   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20292     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20293     dynamic_linker='NetBSD (a.out) ld.so'
20294   else
20295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20296     soname_spec='${libname}${release}${shared_ext}$major'
20297     dynamic_linker='NetBSD ld.elf_so'
20298   fi
20299   shlibpath_var=LD_LIBRARY_PATH
20300   shlibpath_overrides_runpath=yes
20301   hardcode_into_libs=yes
20302   ;;
20303
20304 newsos6)
20305   version_type=linux
20306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20307   shlibpath_var=LD_LIBRARY_PATH
20308   shlibpath_overrides_runpath=yes
20309   ;;
20310
20311 nto-qnx*)
20312   version_type=linux
20313   need_lib_prefix=no
20314   need_version=no
20315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316   soname_spec='${libname}${release}${shared_ext}$major'
20317   shlibpath_var=LD_LIBRARY_PATH
20318   shlibpath_overrides_runpath=yes
20319   ;;
20320
20321 openbsd*)
20322   version_type=sunos
20323   need_lib_prefix=no
20324   need_version=no
20325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20326   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20327   shlibpath_var=LD_LIBRARY_PATH
20328   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20329     case $host_os in
20330       openbsd2.[89] | openbsd2.[89].*)
20331         shlibpath_overrides_runpath=no
20332         ;;
20333       *)
20334         shlibpath_overrides_runpath=yes
20335         ;;
20336       esac
20337   else
20338     shlibpath_overrides_runpath=yes
20339   fi
20340   ;;
20341
20342 os2*)
20343   libname_spec='$name'
20344   shrext_cmds=".dll"
20345   need_lib_prefix=no
20346   library_names_spec='$libname${shared_ext} $libname.a'
20347   dynamic_linker='OS/2 ld.exe'
20348   shlibpath_var=LIBPATH
20349   ;;
20350
20351 osf3* | osf4* | osf5*)
20352   version_type=osf
20353   need_lib_prefix=no
20354   need_version=no
20355   soname_spec='${libname}${release}${shared_ext}$major'
20356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20357   shlibpath_var=LD_LIBRARY_PATH
20358   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20359   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20360   ;;
20361
20362 sco3.2v5*)
20363   version_type=osf
20364   soname_spec='${libname}${release}${shared_ext}$major'
20365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366   shlibpath_var=LD_LIBRARY_PATH
20367   ;;
20368
20369 solaris*)
20370   version_type=linux
20371   need_lib_prefix=no
20372   need_version=no
20373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20374   soname_spec='${libname}${release}${shared_ext}$major'
20375   shlibpath_var=LD_LIBRARY_PATH
20376   shlibpath_overrides_runpath=yes
20377   hardcode_into_libs=yes
20378   # ldd complains unless libraries are executable
20379   postinstall_cmds='chmod +x $lib'
20380   ;;
20381
20382 sunos4*)
20383   version_type=sunos
20384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20385   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20386   shlibpath_var=LD_LIBRARY_PATH
20387   shlibpath_overrides_runpath=yes
20388   if test "$with_gnu_ld" = yes; then
20389     need_lib_prefix=no
20390   fi
20391   need_version=yes
20392   ;;
20393
20394 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20395   version_type=linux
20396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20397   soname_spec='${libname}${release}${shared_ext}$major'
20398   shlibpath_var=LD_LIBRARY_PATH
20399   case $host_vendor in
20400     sni)
20401       shlibpath_overrides_runpath=no
20402       need_lib_prefix=no
20403       export_dynamic_flag_spec='${wl}-Blargedynsym'
20404       runpath_var=LD_RUN_PATH
20405       ;;
20406     siemens)
20407       need_lib_prefix=no
20408       ;;
20409     motorola)
20410       need_lib_prefix=no
20411       need_version=no
20412       shlibpath_overrides_runpath=no
20413       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20414       ;;
20415   esac
20416   ;;
20417
20418 sysv4*MP*)
20419   if test -d /usr/nec ;then
20420     version_type=linux
20421     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20422     soname_spec='$libname${shared_ext}.$major'
20423     shlibpath_var=LD_LIBRARY_PATH
20424   fi
20425   ;;
20426
20427 uts4*)
20428   version_type=linux
20429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20430   soname_spec='${libname}${release}${shared_ext}$major'
20431   shlibpath_var=LD_LIBRARY_PATH
20432   ;;
20433
20434 *)
20435   dynamic_linker=no
20436   ;;
20437 esac
20438 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20439 echo "${ECHO_T}$dynamic_linker" >&6
20440 test "$dynamic_linker" = no && can_build_shared=no
20441
20442 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20443 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20444 hardcode_action_F77=
20445 if test -n "$hardcode_libdir_flag_spec_F77" || \
20446    test -n "$runpath_var_F77" || \
20447    test "X$hardcode_automatic_F77" = "Xyes" ; then
20448
20449   # We can hardcode non-existant directories.
20450   if test "$hardcode_direct_F77" != no &&
20451      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20452      # have to relink, otherwise we might link with an installed library
20453      # when we should be linking with a yet-to-be-installed one
20454      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20455      test "$hardcode_minus_L_F77" != no; then
20456     # Linking always hardcodes the temporary library directory.
20457     hardcode_action_F77=relink
20458   else
20459     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20460     hardcode_action_F77=immediate
20461   fi
20462 else
20463   # We cannot hardcode anything, or else we can only hardcode existing
20464   # directories.
20465   hardcode_action_F77=unsupported
20466 fi
20467 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20468 echo "${ECHO_T}$hardcode_action_F77" >&6
20469
20470 if test "$hardcode_action_F77" = relink; then
20471   # Fast installation is not supported
20472   enable_fast_install=no
20473 elif test "$shlibpath_overrides_runpath" = yes ||
20474      test "$enable_shared" = no; then
20475   # Fast installation is not necessary
20476   enable_fast_install=needless
20477 fi
20478
20479 striplib=
20480 old_striplib=
20481 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20482 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20483 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20484   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20485   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20486   echo "$as_me:$LINENO: result: yes" >&5
20487 echo "${ECHO_T}yes" >&6
20488 else
20489 # FIXME - insert some real tests, host_os isn't really good enough
20490   case $host_os in
20491    darwin*)
20492        if test -n "$STRIP" ; then
20493          striplib="$STRIP -x"
20494          echo "$as_me:$LINENO: result: yes" >&5
20495 echo "${ECHO_T}yes" >&6
20496        else
20497   echo "$as_me:$LINENO: result: no" >&5
20498 echo "${ECHO_T}no" >&6
20499 fi
20500        ;;
20501    *)
20502   echo "$as_me:$LINENO: result: no" >&5
20503 echo "${ECHO_T}no" >&6
20504     ;;
20505   esac
20506 fi
20507
20508
20509
20510 # The else clause should only fire when bootstrapping the
20511 # libtool distribution, otherwise you forgot to ship ltmain.sh
20512 # with your package, and you will get complaints that there are
20513 # no rules to generate ltmain.sh.
20514 if test -f "$ltmain"; then
20515   # See if we are running on zsh, and set the options which allow our commands through
20516   # without removal of \ escapes.
20517   if test -n "${ZSH_VERSION+set}" ; then
20518     setopt NO_GLOB_SUBST
20519   fi
20520   # Now quote all the things that may contain metacharacters while being
20521   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20522   # variables and quote the copies for generation of the libtool script.
20523   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20524     SED SHELL STRIP \
20525     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20526     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20527     deplibs_check_method reload_flag reload_cmds need_locks \
20528     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20529     lt_cv_sys_global_symbol_to_c_name_address \
20530     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20531     old_postinstall_cmds old_postuninstall_cmds \
20532     compiler_F77 \
20533     CC_F77 \
20534     LD_F77 \
20535     lt_prog_compiler_wl_F77 \
20536     lt_prog_compiler_pic_F77 \
20537     lt_prog_compiler_static_F77 \
20538     lt_prog_compiler_no_builtin_flag_F77 \
20539     export_dynamic_flag_spec_F77 \
20540     thread_safe_flag_spec_F77 \
20541     whole_archive_flag_spec_F77 \
20542     enable_shared_with_static_runtimes_F77 \
20543     old_archive_cmds_F77 \
20544     old_archive_from_new_cmds_F77 \
20545     predep_objects_F77 \
20546     postdep_objects_F77 \
20547     predeps_F77 \
20548     postdeps_F77 \
20549     compiler_lib_search_path_F77 \
20550     archive_cmds_F77 \
20551     archive_expsym_cmds_F77 \
20552     postinstall_cmds_F77 \
20553     postuninstall_cmds_F77 \
20554     old_archive_from_expsyms_cmds_F77 \
20555     allow_undefined_flag_F77 \
20556     no_undefined_flag_F77 \
20557     export_symbols_cmds_F77 \
20558     hardcode_libdir_flag_spec_F77 \
20559     hardcode_libdir_flag_spec_ld_F77 \
20560     hardcode_libdir_separator_F77 \
20561     hardcode_automatic_F77 \
20562     module_cmds_F77 \
20563     module_expsym_cmds_F77 \
20564     lt_cv_prog_compiler_c_o_F77 \
20565     exclude_expsyms_F77 \
20566     include_expsyms_F77; do
20567
20568     case $var in
20569     old_archive_cmds_F77 | \
20570     old_archive_from_new_cmds_F77 | \
20571     archive_cmds_F77 | \
20572     archive_expsym_cmds_F77 | \
20573     module_cmds_F77 | \
20574     module_expsym_cmds_F77 | \
20575     old_archive_from_expsyms_cmds_F77 | \
20576     export_symbols_cmds_F77 | \
20577     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20578     postinstall_cmds | postuninstall_cmds | \
20579     old_postinstall_cmds | old_postuninstall_cmds | \
20580     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20581       # Double-quote double-evaled strings.
20582       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20583       ;;
20584     *)
20585       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20586       ;;
20587     esac
20588   done
20589
20590   case $lt_echo in
20591   *'\$0 --fallback-echo"')
20592     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20593     ;;
20594   esac
20595
20596 cfgfile="$ofile"
20597
20598   cat <<__EOF__ >> "$cfgfile"
20599 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20600
20601 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20602
20603 # Shell to use when invoking shell scripts.
20604 SHELL=$lt_SHELL
20605
20606 # Whether or not to build shared libraries.
20607 build_libtool_libs=$enable_shared
20608
20609 # Whether or not to build static libraries.
20610 build_old_libs=$enable_static
20611
20612 # Whether or not to add -lc for building shared libraries.
20613 build_libtool_need_lc=$archive_cmds_need_lc_F77
20614
20615 # Whether or not to disallow shared libs when runtime libs are static
20616 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20617
20618 # Whether or not to optimize for fast installation.
20619 fast_install=$enable_fast_install
20620
20621 # The host system.
20622 host_alias=$host_alias
20623 host=$host
20624
20625 # An echo program that does not interpret backslashes.
20626 echo=$lt_echo
20627
20628 # The archiver.
20629 AR=$lt_AR
20630 AR_FLAGS=$lt_AR_FLAGS
20631
20632 # A C compiler.
20633 LTCC=$lt_LTCC
20634
20635 # A language-specific compiler.
20636 CC=$lt_compiler_F77
20637
20638 # Is the compiler the GNU C compiler?
20639 with_gcc=$GCC_F77
20640
20641 # An ERE matcher.
20642 EGREP=$lt_EGREP
20643
20644 # The linker used to build libraries.
20645 LD=$lt_LD_F77
20646
20647 # Whether we need hard or soft links.
20648 LN_S=$lt_LN_S
20649
20650 # A BSD-compatible nm program.
20651 NM=$lt_NM
20652
20653 # A symbol stripping program
20654 STRIP=$lt_STRIP
20655
20656 # Used to examine libraries when file_magic_cmd begins "file"
20657 MAGIC_CMD=$MAGIC_CMD
20658
20659 # Used on cygwin: DLL creation program.
20660 DLLTOOL="$DLLTOOL"
20661
20662 # Used on cygwin: object dumper.
20663 OBJDUMP="$OBJDUMP"
20664
20665 # Used on cygwin: assembler.
20666 AS="$AS"
20667
20668 # The name of the directory that contains temporary libtool files.
20669 objdir=$objdir
20670
20671 # How to create reloadable object files.
20672 reload_flag=$lt_reload_flag
20673 reload_cmds=$lt_reload_cmds
20674
20675 # How to pass a linker flag through the compiler.
20676 wl=$lt_lt_prog_compiler_wl_F77
20677
20678 # Object file suffix (normally "o").
20679 objext="$ac_objext"
20680
20681 # Old archive suffix (normally "a").
20682 libext="$libext"
20683
20684 # Shared library suffix (normally ".so").
20685 shrext_cmds='$shrext_cmds'
20686
20687 # Executable file suffix (normally "").
20688 exeext="$exeext"
20689
20690 # Additional compiler flags for building library objects.
20691 pic_flag=$lt_lt_prog_compiler_pic_F77
20692 pic_mode=$pic_mode
20693
20694 # What is the maximum length of a command?
20695 max_cmd_len=$lt_cv_sys_max_cmd_len
20696
20697 # Does compiler simultaneously support -c and -o options?
20698 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20699
20700 # Must we lock files when doing compilation ?
20701 need_locks=$lt_need_locks
20702
20703 # Do we need the lib prefix for modules?
20704 need_lib_prefix=$need_lib_prefix
20705
20706 # Do we need a version for libraries?
20707 need_version=$need_version
20708
20709 # Whether dlopen is supported.
20710 dlopen_support=$enable_dlopen
20711
20712 # Whether dlopen of programs is supported.
20713 dlopen_self=$enable_dlopen_self
20714
20715 # Whether dlopen of statically linked programs is supported.
20716 dlopen_self_static=$enable_dlopen_self_static
20717
20718 # Compiler flag to prevent dynamic linking.
20719 link_static_flag=$lt_lt_prog_compiler_static_F77
20720
20721 # Compiler flag to turn off builtin functions.
20722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20723
20724 # Compiler flag to allow reflexive dlopens.
20725 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20726
20727 # Compiler flag to generate shared objects directly from archives.
20728 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20729
20730 # Compiler flag to generate thread-safe objects.
20731 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20732
20733 # Library versioning type.
20734 version_type=$version_type
20735
20736 # Format of library name prefix.
20737 libname_spec=$lt_libname_spec
20738
20739 # List of archive names.  First name is the real one, the rest are links.
20740 # The last name is the one that the linker finds with -lNAME.
20741 library_names_spec=$lt_library_names_spec
20742
20743 # The coded name of the library, if different from the real name.
20744 soname_spec=$lt_soname_spec
20745
20746 # Commands used to build and install an old-style archive.
20747 RANLIB=$lt_RANLIB
20748 old_archive_cmds=$lt_old_archive_cmds_F77
20749 old_postinstall_cmds=$lt_old_postinstall_cmds
20750 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20751
20752 # Create an old-style archive from a shared archive.
20753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20754
20755 # Create a temporary old-style archive to link instead of a shared archive.
20756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20757
20758 # Commands used to build and install a shared archive.
20759 archive_cmds=$lt_archive_cmds_F77
20760 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20761 postinstall_cmds=$lt_postinstall_cmds
20762 postuninstall_cmds=$lt_postuninstall_cmds
20763
20764 # Commands used to build a loadable module (assumed same as above if empty)
20765 module_cmds=$lt_module_cmds_F77
20766 module_expsym_cmds=$lt_module_expsym_cmds_F77
20767
20768 # Commands to strip libraries.
20769 old_striplib=$lt_old_striplib
20770 striplib=$lt_striplib
20771
20772 # Dependencies to place before the objects being linked to create a
20773 # shared library.
20774 predep_objects=$lt_predep_objects_F77
20775
20776 # Dependencies to place after the objects being linked to create a
20777 # shared library.
20778 postdep_objects=$lt_postdep_objects_F77
20779
20780 # Dependencies to place before the objects being linked to create a
20781 # shared library.
20782 predeps=$lt_predeps_F77
20783
20784 # Dependencies to place after the objects being linked to create a
20785 # shared library.
20786 postdeps=$lt_postdeps_F77
20787
20788 # The library search path used internally by the compiler when linking
20789 # a shared library.
20790 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20791
20792 # Method to check whether dependent libraries are shared objects.
20793 deplibs_check_method=$lt_deplibs_check_method
20794
20795 # Command to use when deplibs_check_method == file_magic.
20796 file_magic_cmd=$lt_file_magic_cmd
20797
20798 # Flag that allows shared libraries with undefined symbols to be built.
20799 allow_undefined_flag=$lt_allow_undefined_flag_F77
20800
20801 # Flag that forces no undefined symbols.
20802 no_undefined_flag=$lt_no_undefined_flag_F77
20803
20804 # Commands used to finish a libtool library installation in a directory.
20805 finish_cmds=$lt_finish_cmds
20806
20807 # Same as above, but a single script fragment to be evaled but not shown.
20808 finish_eval=$lt_finish_eval
20809
20810 # Take the output of nm and produce a listing of raw symbols and C names.
20811 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20812
20813 # Transform the output of nm in a proper C declaration
20814 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20815
20816 # Transform the output of nm in a C name address pair
20817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20818
20819 # This is the shared library runtime path variable.
20820 runpath_var=$runpath_var
20821
20822 # This is the shared library path variable.
20823 shlibpath_var=$shlibpath_var
20824
20825 # Is shlibpath searched before the hard-coded library search path?
20826 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20827
20828 # How to hardcode a shared library path into an executable.
20829 hardcode_action=$hardcode_action_F77
20830
20831 # Whether we should hardcode library paths into libraries.
20832 hardcode_into_libs=$hardcode_into_libs
20833
20834 # Flag to hardcode \$libdir into a binary during linking.
20835 # This must work even if \$libdir does not exist.
20836 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20837
20838 # If ld is used when linking, flag to hardcode \$libdir into
20839 # a binary during linking. This must work even if \$libdir does
20840 # not exist.
20841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20842
20843 # Whether we need a single -rpath flag with a separated argument.
20844 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20845
20846 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20847 # resulting binary.
20848 hardcode_direct=$hardcode_direct_F77
20849
20850 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20851 # resulting binary.
20852 hardcode_minus_L=$hardcode_minus_L_F77
20853
20854 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20855 # the resulting binary.
20856 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20857
20858 # Set to yes if building a shared library automatically hardcodes DIR into the library
20859 # and all subsequent libraries and executables linked against it.
20860 hardcode_automatic=$hardcode_automatic_F77
20861
20862 # Variables whose values should be saved in libtool wrapper scripts and
20863 # restored at relink time.
20864 variables_saved_for_relink="$variables_saved_for_relink"
20865
20866 # Whether libtool must link a program against all its dependency libraries.
20867 link_all_deplibs=$link_all_deplibs_F77
20868
20869 # Compile-time system search path for libraries
20870 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20871
20872 # Run-time system search path for libraries
20873 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20874
20875 # Fix the shell variable \$srcfile for the compiler.
20876 fix_srcfile_path="$fix_srcfile_path_F77"
20877
20878 # Set to yes if exported symbols are required.
20879 always_export_symbols=$always_export_symbols_F77
20880
20881 # The commands to list exported symbols.
20882 export_symbols_cmds=$lt_export_symbols_cmds_F77
20883
20884 # The commands to extract the exported symbol list from a shared archive.
20885 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20886
20887 # Symbols that should not be listed in the preloaded symbols.
20888 exclude_expsyms=$lt_exclude_expsyms_F77
20889
20890 # Symbols that must always be exported.
20891 include_expsyms=$lt_include_expsyms_F77
20892
20893 # ### END LIBTOOL TAG CONFIG: $tagname
20894
20895 __EOF__
20896
20897
20898 else
20899   # If there is no Makefile yet, we rely on a make rule to execute
20900   # `config.status --recheck' to rerun these tests and create the
20901   # libtool script then.
20902   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20903   if test -f "$ltmain_in"; then
20904     test -f Makefile && make "$ltmain"
20905   fi
20906 fi
20907
20908
20909 ac_ext=c
20910 ac_cpp='$CPP $CPPFLAGS'
20911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20914
20915 CC="$lt_save_CC"
20916
20917         else
20918           tagname=""
20919         fi
20920         ;;
20921
20922       GCJ)
20923         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20924           ac_ext=c
20925 ac_cpp='$CPP $CPPFLAGS'
20926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20929
20930
20931 # Source file extension for Java test sources.
20932 ac_ext=java
20933
20934 # Object file extension for compiled Java test sources.
20935 objext=o
20936 objext_GCJ=$objext
20937
20938 # Code to be used in simple compile tests
20939 lt_simple_compile_test_code="class foo {}\n"
20940
20941 # Code to be used in simple link tests
20942 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20943
20944 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20945
20946 # If no C compiler was specified, use CC.
20947 LTCC=${LTCC-"$CC"}
20948
20949 # Allow CC to be a program name with arguments.
20950 compiler=$CC
20951
20952
20953 # Allow CC to be a program name with arguments.
20954 lt_save_CC="$CC"
20955 CC=${GCJ-"gcj"}
20956 compiler=$CC
20957 compiler_GCJ=$CC
20958
20959 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20960 archive_cmds_need_lc_GCJ=no
20961
20962
20963 lt_prog_compiler_no_builtin_flag_GCJ=
20964
20965 if test "$GCC" = yes; then
20966   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20967
20968
20969 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20970 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20971 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20972   echo $ECHO_N "(cached) $ECHO_C" >&6
20973 else
20974   lt_cv_prog_compiler_rtti_exceptions=no
20975   ac_outfile=conftest.$ac_objext
20976    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20977    lt_compiler_flag="-fno-rtti -fno-exceptions"
20978    # Insert the option either (1) after the last *FLAGS variable, or
20979    # (2) before a word containing "conftest.", or (3) at the end.
20980    # Note that $ac_compile itself does not contain backslashes and begins
20981    # with a dollar sign (not a hyphen), so the echo should work correctly.
20982    # The option is referenced via a variable to avoid confusing sed.
20983    lt_compile=`echo "$ac_compile" | $SED \
20984    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20985    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20986    -e 's:$: $lt_compiler_flag:'`
20987    (eval echo "\"\$as_me:20987: $lt_compile\"" >&5)
20988    (eval "$lt_compile" 2>conftest.err)
20989    ac_status=$?
20990    cat conftest.err >&5
20991    echo "$as_me:20991: \$? = $ac_status" >&5
20992    if (exit $ac_status) && test -s "$ac_outfile"; then
20993      # The compiler can only warn and ignore the option if not recognized
20994      # So say no if there are warnings
20995      if test ! -s conftest.err; then
20996        lt_cv_prog_compiler_rtti_exceptions=yes
20997      fi
20998    fi
20999    $rm conftest*
21000
21001 fi
21002 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21003 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21004
21005 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21006     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21007 else
21008     :
21009 fi
21010
21011 fi
21012
21013 lt_prog_compiler_wl_GCJ=
21014 lt_prog_compiler_pic_GCJ=
21015 lt_prog_compiler_static_GCJ=
21016
21017 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21018 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21019
21020   if test "$GCC" = yes; then
21021     lt_prog_compiler_wl_GCJ='-Wl,'
21022     lt_prog_compiler_static_GCJ='-static'
21023
21024     case $host_os in
21025       aix*)
21026       # All AIX code is PIC.
21027       if test "$host_cpu" = ia64; then
21028         # AIX 5 now supports IA64 processor
21029         lt_prog_compiler_static_GCJ='-Bstatic'
21030       fi
21031       ;;
21032
21033     amigaos*)
21034       # FIXME: we need at least 68020 code to build shared libraries, but
21035       # adding the `-m68020' flag to GCC prevents building anything better,
21036       # like `-m68040'.
21037       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21038       ;;
21039
21040     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21041       # PIC is the default for these OSes.
21042       ;;
21043
21044     mingw* | pw32* | os2*)
21045       # This hack is so that the source file can tell whether it is being
21046       # built for inclusion in a dll (and should export symbols for example).
21047       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21048       ;;
21049
21050     darwin* | rhapsody*)
21051       # PIC is the default on this platform
21052       # Common symbols not allowed in MH_DYLIB files
21053       lt_prog_compiler_pic_GCJ='-fno-common'
21054       ;;
21055
21056     msdosdjgpp*)
21057       # Just because we use GCC doesn't mean we suddenly get shared libraries
21058       # on systems that don't support them.
21059       lt_prog_compiler_can_build_shared_GCJ=no
21060       enable_shared=no
21061       ;;
21062
21063     sysv4*MP*)
21064       if test -d /usr/nec; then
21065         lt_prog_compiler_pic_GCJ=-Kconform_pic
21066       fi
21067       ;;
21068
21069     hpux*)
21070       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21071       # not for PA HP-UX.
21072       case "$host_cpu" in
21073       hppa*64*|ia64*)
21074         # +Z the default
21075         ;;
21076       *)
21077         lt_prog_compiler_pic_GCJ='-fPIC'
21078         ;;
21079       esac
21080       ;;
21081
21082     *)
21083       lt_prog_compiler_pic_GCJ='-fPIC'
21084       ;;
21085     esac
21086   else
21087     # PORTME Check for flag to pass linker flags through the system compiler.
21088     case $host_os in
21089     aix*)
21090       lt_prog_compiler_wl_GCJ='-Wl,'
21091       if test "$host_cpu" = ia64; then
21092         # AIX 5 now supports IA64 processor
21093         lt_prog_compiler_static_GCJ='-Bstatic'
21094       else
21095         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21096       fi
21097       ;;
21098       darwin*)
21099         # PIC is the default on this platform
21100         # Common symbols not allowed in MH_DYLIB files
21101        case "$cc_basename" in
21102          xlc*)
21103          lt_prog_compiler_pic_GCJ='-qnocommon'
21104          lt_prog_compiler_wl_GCJ='-Wl,'
21105          ;;
21106        esac
21107        ;;
21108
21109     mingw* | pw32* | os2*)
21110       # This hack is so that the source file can tell whether it is being
21111       # built for inclusion in a dll (and should export symbols for example).
21112       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21113       ;;
21114
21115     hpux9* | hpux10* | hpux11*)
21116       lt_prog_compiler_wl_GCJ='-Wl,'
21117       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21118       # not for PA HP-UX.
21119       case "$host_cpu" in
21120       hppa*64*|ia64*)
21121         # +Z the default
21122         ;;
21123       *)
21124         lt_prog_compiler_pic_GCJ='+Z'
21125         ;;
21126       esac
21127       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21128       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21129       ;;
21130
21131     irix5* | irix6* | nonstopux*)
21132       lt_prog_compiler_wl_GCJ='-Wl,'
21133       # PIC (with -KPIC) is the default.
21134       lt_prog_compiler_static_GCJ='-non_shared'
21135       ;;
21136
21137     newsos6)
21138       lt_prog_compiler_pic_GCJ='-KPIC'
21139       lt_prog_compiler_static_GCJ='-Bstatic'
21140       ;;
21141
21142     linux*)
21143       case $CC in
21144       icc* | ecc*)
21145         lt_prog_compiler_wl_GCJ='-Wl,'
21146         lt_prog_compiler_pic_GCJ='-KPIC'
21147         lt_prog_compiler_static_GCJ='-static'
21148         ;;
21149       ccc*)
21150         lt_prog_compiler_wl_GCJ='-Wl,'
21151         # All Alpha code is PIC.
21152         lt_prog_compiler_static_GCJ='-non_shared'
21153         ;;
21154       esac
21155       ;;
21156
21157     osf3* | osf4* | osf5*)
21158       lt_prog_compiler_wl_GCJ='-Wl,'
21159       # All OSF/1 code is PIC.
21160       lt_prog_compiler_static_GCJ='-non_shared'
21161       ;;
21162
21163     sco3.2v5*)
21164       lt_prog_compiler_pic_GCJ='-Kpic'
21165       lt_prog_compiler_static_GCJ='-dn'
21166       ;;
21167
21168     solaris*)
21169       lt_prog_compiler_wl_GCJ='-Wl,'
21170       lt_prog_compiler_pic_GCJ='-KPIC'
21171       lt_prog_compiler_static_GCJ='-Bstatic'
21172       ;;
21173
21174     sunos4*)
21175       lt_prog_compiler_wl_GCJ='-Qoption ld '
21176       lt_prog_compiler_pic_GCJ='-PIC'
21177       lt_prog_compiler_static_GCJ='-Bstatic'
21178       ;;
21179
21180     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21181       lt_prog_compiler_wl_GCJ='-Wl,'
21182       lt_prog_compiler_pic_GCJ='-KPIC'
21183       lt_prog_compiler_static_GCJ='-Bstatic'
21184       ;;
21185
21186     sysv4*MP*)
21187       if test -d /usr/nec ;then
21188         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21189         lt_prog_compiler_static_GCJ='-Bstatic'
21190       fi
21191       ;;
21192
21193     uts4*)
21194       lt_prog_compiler_pic_GCJ='-pic'
21195       lt_prog_compiler_static_GCJ='-Bstatic'
21196       ;;
21197
21198     *)
21199       lt_prog_compiler_can_build_shared_GCJ=no
21200       ;;
21201     esac
21202   fi
21203
21204 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21205 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21206
21207 #
21208 # Check to make sure the PIC flag actually works.
21209 #
21210 if test -n "$lt_prog_compiler_pic_GCJ"; then
21211
21212 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21213 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21214 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21215   echo $ECHO_N "(cached) $ECHO_C" >&6
21216 else
21217   lt_prog_compiler_pic_works_GCJ=no
21218   ac_outfile=conftest.$ac_objext
21219    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21220    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21221    # Insert the option either (1) after the last *FLAGS variable, or
21222    # (2) before a word containing "conftest.", or (3) at the end.
21223    # Note that $ac_compile itself does not contain backslashes and begins
21224    # with a dollar sign (not a hyphen), so the echo should work correctly.
21225    # The option is referenced via a variable to avoid confusing sed.
21226    lt_compile=`echo "$ac_compile" | $SED \
21227    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21228    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21229    -e 's:$: $lt_compiler_flag:'`
21230    (eval echo "\"\$as_me:21230: $lt_compile\"" >&5)
21231    (eval "$lt_compile" 2>conftest.err)
21232    ac_status=$?
21233    cat conftest.err >&5
21234    echo "$as_me:21234: \$? = $ac_status" >&5
21235    if (exit $ac_status) && test -s "$ac_outfile"; then
21236      # The compiler can only warn and ignore the option if not recognized
21237      # So say no if there are warnings
21238      if test ! -s conftest.err; then
21239        lt_prog_compiler_pic_works_GCJ=yes
21240      fi
21241    fi
21242    $rm conftest*
21243
21244 fi
21245 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21246 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21247
21248 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21249     case $lt_prog_compiler_pic_GCJ in
21250      "" | " "*) ;;
21251      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21252      esac
21253 else
21254     lt_prog_compiler_pic_GCJ=
21255      lt_prog_compiler_can_build_shared_GCJ=no
21256 fi
21257
21258 fi
21259 case "$host_os" in
21260   # For platforms which do not support PIC, -DPIC is meaningless:
21261   *djgpp*)
21262     lt_prog_compiler_pic_GCJ=
21263     ;;
21264   *)
21265     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21266     ;;
21267 esac
21268
21269 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21270 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21271 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21272   echo $ECHO_N "(cached) $ECHO_C" >&6
21273 else
21274   lt_cv_prog_compiler_c_o_GCJ=no
21275    $rm -r conftest 2>/dev/null
21276    mkdir conftest
21277    cd conftest
21278    mkdir out
21279    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21280
21281    lt_compiler_flag="-o out/conftest2.$ac_objext"
21282    # Insert the option either (1) after the last *FLAGS variable, or
21283    # (2) before a word containing "conftest.", or (3) at the end.
21284    # Note that $ac_compile itself does not contain backslashes and begins
21285    # with a dollar sign (not a hyphen), so the echo should work correctly.
21286    lt_compile=`echo "$ac_compile" | $SED \
21287    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21288    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21289    -e 's:$: $lt_compiler_flag:'`
21290    (eval echo "\"\$as_me:21290: $lt_compile\"" >&5)
21291    (eval "$lt_compile" 2>out/conftest.err)
21292    ac_status=$?
21293    cat out/conftest.err >&5
21294    echo "$as_me:21294: \$? = $ac_status" >&5
21295    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21296    then
21297      # The compiler can only warn and ignore the option if not recognized
21298      # So say no if there are warnings
21299      if test ! -s out/conftest.err; then
21300        lt_cv_prog_compiler_c_o_GCJ=yes
21301      fi
21302    fi
21303    chmod u+w .
21304    $rm conftest*
21305    # SGI C++ compiler will create directory out/ii_files/ for
21306    # template instantiation
21307    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21308    $rm out/* && rmdir out
21309    cd ..
21310    rmdir conftest
21311    $rm conftest*
21312
21313 fi
21314 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21315 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21316
21317
21318 hard_links="nottested"
21319 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21320   # do not overwrite the value of need_locks provided by the user
21321   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21322 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21323   hard_links=yes
21324   $rm conftest*
21325   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21326   touch conftest.a
21327   ln conftest.a conftest.b 2>&5 || hard_links=no
21328   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21329   echo "$as_me:$LINENO: result: $hard_links" >&5
21330 echo "${ECHO_T}$hard_links" >&6
21331   if test "$hard_links" = no; then
21332     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21333 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21334     need_locks=warn
21335   fi
21336 else
21337   need_locks=no
21338 fi
21339
21340 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21341 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21342
21343   runpath_var=
21344   allow_undefined_flag_GCJ=
21345   enable_shared_with_static_runtimes_GCJ=no
21346   archive_cmds_GCJ=
21347   archive_expsym_cmds_GCJ=
21348   old_archive_From_new_cmds_GCJ=
21349   old_archive_from_expsyms_cmds_GCJ=
21350   export_dynamic_flag_spec_GCJ=
21351   whole_archive_flag_spec_GCJ=
21352   thread_safe_flag_spec_GCJ=
21353   hardcode_libdir_flag_spec_GCJ=
21354   hardcode_libdir_flag_spec_ld_GCJ=
21355   hardcode_libdir_separator_GCJ=
21356   hardcode_direct_GCJ=no
21357   hardcode_minus_L_GCJ=no
21358   hardcode_shlibpath_var_GCJ=unsupported
21359   link_all_deplibs_GCJ=unknown
21360   hardcode_automatic_GCJ=no
21361   module_cmds_GCJ=
21362   module_expsym_cmds_GCJ=
21363   always_export_symbols_GCJ=no
21364   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21365   # include_expsyms should be a list of space-separated symbols to be *always*
21366   # included in the symbol list
21367   include_expsyms_GCJ=
21368   # exclude_expsyms can be an extended regexp of symbols to exclude
21369   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21370   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21371   # as well as any symbol that contains `d'.
21372   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21373   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21374   # platforms (ab)use it in PIC code, but their linkers get confused if
21375   # the symbol is explicitly referenced.  Since portable code cannot
21376   # rely on this symbol name, it's probably fine to never include it in
21377   # preloaded symbol tables.
21378   extract_expsyms_cmds=
21379
21380   case $host_os in
21381   cygwin* | mingw* | pw32*)
21382     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21383     # When not using gcc, we currently assume that we are using
21384     # Microsoft Visual C++.
21385     if test "$GCC" != yes; then
21386       with_gnu_ld=no
21387     fi
21388     ;;
21389   openbsd*)
21390     with_gnu_ld=no
21391     ;;
21392   esac
21393
21394   ld_shlibs_GCJ=yes
21395   if test "$with_gnu_ld" = yes; then
21396     # If archive_cmds runs LD, not CC, wlarc should be empty
21397     wlarc='${wl}'
21398
21399     # See if GNU ld supports shared libraries.
21400     case $host_os in
21401     aix3* | aix4* | aix5*)
21402       # On AIX/PPC, the GNU linker is very broken
21403       if test "$host_cpu" != ia64; then
21404         ld_shlibs_GCJ=no
21405         cat <<EOF 1>&2
21406
21407 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21408 *** to be unable to reliably create shared libraries on AIX.
21409 *** Therefore, libtool is disabling shared libraries support.  If you
21410 *** really care for shared libraries, you may want to modify your PATH
21411 *** so that a non-GNU linker is found, and then restart.
21412
21413 EOF
21414       fi
21415       ;;
21416
21417     amigaos*)
21418       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)'
21419       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21420       hardcode_minus_L_GCJ=yes
21421
21422       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21423       # that the semantics of dynamic libraries on AmigaOS, at least up
21424       # to version 4, is to share data among multiple programs linked
21425       # with the same dynamic library.  Since this doesn't match the
21426       # behavior of shared libraries on other platforms, we can't use
21427       # them.
21428       ld_shlibs_GCJ=no
21429       ;;
21430
21431     beos*)
21432       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21433         allow_undefined_flag_GCJ=unsupported
21434         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21435         # support --undefined.  This deserves some investigation.  FIXME
21436         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21437       else
21438         ld_shlibs_GCJ=no
21439       fi
21440       ;;
21441
21442     cygwin* | mingw* | pw32*)
21443       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21444       # as there is no search path for DLLs.
21445       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21446       allow_undefined_flag_GCJ=unsupported
21447       always_export_symbols_GCJ=no
21448       enable_shared_with_static_runtimes_GCJ=yes
21449       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21450
21451       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21452         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21453         # If the export-symbols file already is a .def file (1st line
21454         # is EXPORTS), use it as is; otherwise, prepend...
21455         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21456           cp $export_symbols $output_objdir/$soname.def;
21457         else
21458           echo EXPORTS > $output_objdir/$soname.def;
21459           cat $export_symbols >> $output_objdir/$soname.def;
21460         fi~
21461         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21462       else
21463         ld_shlibs=no
21464       fi
21465       ;;
21466
21467     netbsd*)
21468       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21469         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21470         wlarc=
21471       else
21472         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21473         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21474       fi
21475       ;;
21476
21477     solaris* | sysv5*)
21478       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21479         ld_shlibs_GCJ=no
21480         cat <<EOF 1>&2
21481
21482 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21483 *** create shared libraries on Solaris systems.  Therefore, libtool
21484 *** is disabling shared libraries support.  We urge you to upgrade GNU
21485 *** binutils to release 2.9.1 or newer.  Another option is to modify
21486 *** your PATH or compiler configuration so that the native linker is
21487 *** used, and then restart.
21488
21489 EOF
21490       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21491         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21492         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21493       else
21494         ld_shlibs_GCJ=no
21495       fi
21496       ;;
21497
21498     sunos4*)
21499       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21500       wlarc=
21501       hardcode_direct_GCJ=yes
21502       hardcode_shlibpath_var_GCJ=no
21503       ;;
21504
21505   linux*)
21506     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21507         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21508         archive_cmds_GCJ="$tmp_archive_cmds"
21509       supports_anon_versioning=no
21510       case `$LD -v 2>/dev/null` in
21511         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21512         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21513         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21514         *\ 2.11.*) ;; # other 2.11 versions
21515         *) supports_anon_versioning=yes ;;
21516       esac
21517       if test $supports_anon_versioning = yes; then
21518         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21519 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21520 $echo "local: *; };" >> $output_objdir/$libname.ver~
21521         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21522       else
21523         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21524       fi
21525     else
21526       ld_shlibs_GCJ=no
21527     fi
21528     ;;
21529
21530     *)
21531       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21532         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21533         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21534       else
21535         ld_shlibs_GCJ=no
21536       fi
21537       ;;
21538     esac
21539
21540     if test "$ld_shlibs_GCJ" = yes; then
21541       runpath_var=LD_RUN_PATH
21542       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21543       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21544       # ancient GNU ld didn't support --whole-archive et. al.
21545       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21546         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21547       else
21548         whole_archive_flag_spec_GCJ=
21549       fi
21550     fi
21551   else
21552     # PORTME fill in a description of your system's linker (not GNU ld)
21553     case $host_os in
21554     aix3*)
21555       allow_undefined_flag_GCJ=unsupported
21556       always_export_symbols_GCJ=yes
21557       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'
21558       # Note: this linker hardcodes the directories in LIBPATH if there
21559       # are no directories specified by -L.
21560       hardcode_minus_L_GCJ=yes
21561       if test "$GCC" = yes && test -z "$link_static_flag"; then
21562         # Neither direct hardcoding nor static linking is supported with a
21563         # broken collect2.
21564         hardcode_direct_GCJ=unsupported
21565       fi
21566       ;;
21567
21568     aix4* | aix5*)
21569       if test "$host_cpu" = ia64; then
21570         # On IA64, the linker does run time linking by default, so we don't
21571         # have to do anything special.
21572         aix_use_runtimelinking=no
21573         exp_sym_flag='-Bexport'
21574         no_entry_flag=""
21575       else
21576         # If we're using GNU nm, then we don't want the "-C" option.
21577         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21578         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21579           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'
21580         else
21581           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'
21582         fi
21583         aix_use_runtimelinking=no
21584
21585         # Test if we are trying to use run time linking or normal
21586         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21587         # need to do runtime linking.
21588         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21589           for ld_flag in $LDFLAGS; do
21590           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21591             aix_use_runtimelinking=yes
21592             break
21593           fi
21594           done
21595         esac
21596
21597         exp_sym_flag='-bexport'
21598         no_entry_flag='-bnoentry'
21599       fi
21600
21601       # When large executables or shared objects are built, AIX ld can
21602       # have problems creating the table of contents.  If linking a library
21603       # or program results in "error TOC overflow" add -mminimal-toc to
21604       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21605       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21606
21607       archive_cmds_GCJ=''
21608       hardcode_direct_GCJ=yes
21609       hardcode_libdir_separator_GCJ=':'
21610       link_all_deplibs_GCJ=yes
21611
21612       if test "$GCC" = yes; then
21613         case $host_os in aix4.012|aix4.012.*)
21614         # We only want to do this on AIX 4.2 and lower, the check
21615         # below for broken collect2 doesn't work under 4.3+
21616           collect2name=`${CC} -print-prog-name=collect2`
21617           if test -f "$collect2name" && \
21618            strings "$collect2name" | grep resolve_lib_name >/dev/null
21619           then
21620           # We have reworked collect2
21621           hardcode_direct_GCJ=yes
21622           else
21623           # We have old collect2
21624           hardcode_direct_GCJ=unsupported
21625           # It fails to find uninstalled libraries when the uninstalled
21626           # path is not listed in the libpath.  Setting hardcode_minus_L
21627           # to unsupported forces relinking
21628           hardcode_minus_L_GCJ=yes
21629           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21630           hardcode_libdir_separator_GCJ=
21631           fi
21632         esac
21633         shared_flag='-shared'
21634       else
21635         # not using gcc
21636         if test "$host_cpu" = ia64; then
21637         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21638         # chokes on -Wl,-G. The following line is correct:
21639           shared_flag='-G'
21640         else
21641         if test "$aix_use_runtimelinking" = yes; then
21642             shared_flag='${wl}-G'
21643           else
21644             shared_flag='${wl}-bM:SRE'
21645         fi
21646         fi
21647       fi
21648
21649       # It seems that -bexpall does not export symbols beginning with
21650       # underscore (_), so it is better to generate a list of symbols to export.
21651       always_export_symbols_GCJ=yes
21652       if test "$aix_use_runtimelinking" = yes; then
21653         # Warning - without using the other runtime loading flags (-brtl),
21654         # -berok will link without error, but may produce a broken library.
21655         allow_undefined_flag_GCJ='-berok'
21656        # Determine the default libpath from the value encoded in an empty executable.
21657        cat >conftest.$ac_ext <<_ACEOF
21658 /* confdefs.h.  */
21659 _ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h.  */
21663
21664 int
21665 main ()
21666 {
21667
21668   ;
21669   return 0;
21670 }
21671 _ACEOF
21672 rm -f conftest.$ac_objext conftest$ac_exeext
21673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21674   (eval $ac_link) 2>conftest.er1
21675   ac_status=$?
21676   grep -v '^ *+' conftest.er1 >conftest.err
21677   rm -f conftest.er1
21678   cat conftest.err >&5
21679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680   (exit $ac_status); } &&
21681          { ac_try='test -z "$ac_c_werror_flag"
21682                          || test ! -s conftest.err'
21683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684   (eval $ac_try) 2>&5
21685   ac_status=$?
21686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); }; } &&
21688          { ac_try='test -s conftest$ac_exeext'
21689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690   (eval $ac_try) 2>&5
21691   ac_status=$?
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); }; }; then
21694
21695 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21696 }'`
21697 # Check for a 64-bit object if we didn't find anything.
21698 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; }
21699 }'`; fi
21700 else
21701   echo "$as_me: failed program was:" >&5
21702 sed 's/^/| /' conftest.$ac_ext >&5
21703
21704 fi
21705 rm -f conftest.err conftest.$ac_objext \
21706       conftest$ac_exeext conftest.$ac_ext
21707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21708
21709        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21710         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"
21711        else
21712         if test "$host_cpu" = ia64; then
21713           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21714           allow_undefined_flag_GCJ="-z nodefs"
21715           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"
21716         else
21717          # Determine the default libpath from the value encoded in an empty executable.
21718          cat >conftest.$ac_ext <<_ACEOF
21719 /* confdefs.h.  */
21720 _ACEOF
21721 cat confdefs.h >>conftest.$ac_ext
21722 cat >>conftest.$ac_ext <<_ACEOF
21723 /* end confdefs.h.  */
21724
21725 int
21726 main ()
21727 {
21728
21729   ;
21730   return 0;
21731 }
21732 _ACEOF
21733 rm -f conftest.$ac_objext conftest$ac_exeext
21734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21735   (eval $ac_link) 2>conftest.er1
21736   ac_status=$?
21737   grep -v '^ *+' conftest.er1 >conftest.err
21738   rm -f conftest.er1
21739   cat conftest.err >&5
21740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741   (exit $ac_status); } &&
21742          { ac_try='test -z "$ac_c_werror_flag"
21743                          || test ! -s conftest.err'
21744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745   (eval $ac_try) 2>&5
21746   ac_status=$?
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); }; } &&
21749          { ac_try='test -s conftest$ac_exeext'
21750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751   (eval $ac_try) 2>&5
21752   ac_status=$?
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); }; }; then
21755
21756 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21757 }'`
21758 # Check for a 64-bit object if we didn't find anything.
21759 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; }
21760 }'`; fi
21761 else
21762   echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21764
21765 fi
21766 rm -f conftest.err conftest.$ac_objext \
21767       conftest$ac_exeext conftest.$ac_ext
21768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21769
21770          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21771           # Warning - without using the other run time loading flags,
21772           # -berok will link without error, but may produce a broken library.
21773           no_undefined_flag_GCJ=' ${wl}-bernotok'
21774           allow_undefined_flag_GCJ=' ${wl}-berok'
21775           # -bexpall does not export symbols beginning with underscore (_)
21776           always_export_symbols_GCJ=yes
21777           # Exported symbols can be pulled into shared objects from archives
21778           whole_archive_flag_spec_GCJ=' '
21779           archive_cmds_need_lc_GCJ=yes
21780           # This is similar to how AIX traditionally builds it's shared libraries.
21781           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'
21782         fi
21783       fi
21784       ;;
21785
21786     amigaos*)
21787       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)'
21788       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21789       hardcode_minus_L_GCJ=yes
21790       # see comment about different semantics on the GNU ld section
21791       ld_shlibs_GCJ=no
21792       ;;
21793
21794     bsdi[45]*)
21795       export_dynamic_flag_spec_GCJ=-rdynamic
21796       ;;
21797
21798     cygwin* | mingw* | pw32*)
21799       # When not using gcc, we currently assume that we are using
21800       # Microsoft Visual C++.
21801       # hardcode_libdir_flag_spec is actually meaningless, as there is
21802       # no search path for DLLs.
21803       hardcode_libdir_flag_spec_GCJ=' '
21804       allow_undefined_flag_GCJ=unsupported
21805       # Tell ltmain to make .lib files, not .a files.
21806       libext=lib
21807       # Tell ltmain to make .dll files, not .so files.
21808       shrext_cmds=".dll"
21809       # FIXME: Setting linknames here is a bad hack.
21810       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21811       # The linker will automatically build a .lib file if we build a DLL.
21812       old_archive_From_new_cmds_GCJ='true'
21813       # FIXME: Should let the user specify the lib program.
21814       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21815       fix_srcfile_path='`cygpath -w "$srcfile"`'
21816       enable_shared_with_static_runtimes_GCJ=yes
21817       ;;
21818
21819     darwin* | rhapsody*)
21820       case "$host_os" in
21821         rhapsody* | darwin1.[012])
21822          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21823          ;;
21824        *) # Darwin 1.3 on
21825          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21826            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21827          else
21828            case ${MACOSX_DEPLOYMENT_TARGET} in
21829              10.[012])
21830                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21831                ;;
21832              10.*)
21833                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21834                ;;
21835            esac
21836          fi
21837          ;;
21838       esac
21839       archive_cmds_need_lc_GCJ=no
21840       hardcode_direct_GCJ=no
21841       hardcode_automatic_GCJ=yes
21842       hardcode_shlibpath_var_GCJ=unsupported
21843       whole_archive_flag_spec_GCJ=''
21844       link_all_deplibs_GCJ=yes
21845     if test "$GCC" = yes ; then
21846         output_verbose_link_cmd='echo'
21847         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21848       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21849       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21850       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}'
21851       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}'
21852     else
21853       case "$cc_basename" in
21854         xlc*)
21855          output_verbose_link_cmd='echo'
21856          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21857          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21858           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21859          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}'
21860           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}'
21861           ;;
21862        *)
21863          ld_shlibs_GCJ=no
21864           ;;
21865       esac
21866     fi
21867       ;;
21868
21869     dgux*)
21870       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21871       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21872       hardcode_shlibpath_var_GCJ=no
21873       ;;
21874
21875     freebsd1*)
21876       ld_shlibs_GCJ=no
21877       ;;
21878
21879     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21880     # support.  Future versions do this automatically, but an explicit c++rt0.o
21881     # does not break anything, and helps significantly (at the cost of a little
21882     # extra space).
21883     freebsd2.2*)
21884       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21885       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21886       hardcode_direct_GCJ=yes
21887       hardcode_shlibpath_var_GCJ=no
21888       ;;
21889
21890     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21891     freebsd2*)
21892       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21893       hardcode_direct_GCJ=yes
21894       hardcode_minus_L_GCJ=yes
21895       hardcode_shlibpath_var_GCJ=no
21896       ;;
21897
21898     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21899     freebsd* | kfreebsd*-gnu)
21900       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21901       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21902       hardcode_direct_GCJ=yes
21903       hardcode_shlibpath_var_GCJ=no
21904       ;;
21905
21906     hpux9*)
21907       if test "$GCC" = yes; then
21908         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'
21909       else
21910         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'
21911       fi
21912       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21913       hardcode_libdir_separator_GCJ=:
21914       hardcode_direct_GCJ=yes
21915
21916       # hardcode_minus_L: Not really in the search PATH,
21917       # but as the default location of the library.
21918       hardcode_minus_L_GCJ=yes
21919       export_dynamic_flag_spec_GCJ='${wl}-E'
21920       ;;
21921
21922     hpux10* | hpux11*)
21923       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21924         case "$host_cpu" in
21925         hppa*64*|ia64*)
21926           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21927           ;;
21928         *)
21929           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21930           ;;
21931         esac
21932       else
21933         case "$host_cpu" in
21934         hppa*64*|ia64*)
21935           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21936           ;;
21937         *)
21938           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21939           ;;
21940         esac
21941       fi
21942       if test "$with_gnu_ld" = no; then
21943         case "$host_cpu" in
21944         hppa*64*)
21945           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21946           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21947           hardcode_libdir_separator_GCJ=:
21948           hardcode_direct_GCJ=no
21949           hardcode_shlibpath_var_GCJ=no
21950           ;;
21951         ia64*)
21952           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21953           hardcode_direct_GCJ=no
21954           hardcode_shlibpath_var_GCJ=no
21955
21956           # hardcode_minus_L: Not really in the search PATH,
21957           # but as the default location of the library.
21958           hardcode_minus_L_GCJ=yes
21959           ;;
21960         *)
21961           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21962           hardcode_libdir_separator_GCJ=:
21963           hardcode_direct_GCJ=yes
21964           export_dynamic_flag_spec_GCJ='${wl}-E'
21965
21966           # hardcode_minus_L: Not really in the search PATH,
21967           # but as the default location of the library.
21968           hardcode_minus_L_GCJ=yes
21969           ;;
21970         esac
21971       fi
21972       ;;
21973
21974     irix5* | irix6* | nonstopux*)
21975       if test "$GCC" = yes; then
21976         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'
21977       else
21978         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'
21979         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21980       fi
21981       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21982       hardcode_libdir_separator_GCJ=:
21983       link_all_deplibs_GCJ=yes
21984       ;;
21985
21986     netbsd*)
21987       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21988         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21989       else
21990         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21991       fi
21992       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21993       hardcode_direct_GCJ=yes
21994       hardcode_shlibpath_var_GCJ=no
21995       ;;
21996
21997     newsos6)
21998       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21999       hardcode_direct_GCJ=yes
22000       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22001       hardcode_libdir_separator_GCJ=:
22002       hardcode_shlibpath_var_GCJ=no
22003       ;;
22004
22005     openbsd*)
22006       hardcode_direct_GCJ=yes
22007       hardcode_shlibpath_var_GCJ=no
22008       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22009         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22010         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22011         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22012         export_dynamic_flag_spec_GCJ='${wl}-E'
22013       else
22014        case $host_os in
22015          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22016            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22017            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22018            ;;
22019          *)
22020            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22021            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22022            ;;
22023        esac
22024       fi
22025       ;;
22026
22027     os2*)
22028       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22029       hardcode_minus_L_GCJ=yes
22030       allow_undefined_flag_GCJ=unsupported
22031       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'
22032       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22033       ;;
22034
22035     osf3*)
22036       if test "$GCC" = yes; then
22037         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22038         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'
22039       else
22040         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22041         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'
22042       fi
22043       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22044       hardcode_libdir_separator_GCJ=:
22045       ;;
22046
22047     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22048       if test "$GCC" = yes; then
22049         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22050         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'
22051         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22052       else
22053         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22054         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'
22055         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~
22056         $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'
22057
22058         # Both c and cxx compiler support -rpath directly
22059         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22060       fi
22061       hardcode_libdir_separator_GCJ=:
22062       ;;
22063
22064     sco3.2v5*)
22065       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22066       hardcode_shlibpath_var_GCJ=no
22067       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22068       runpath_var=LD_RUN_PATH
22069       hardcode_runpath_var=yes
22070       ;;
22071
22072     solaris*)
22073       no_undefined_flag_GCJ=' -z text'
22074       if test "$GCC" = yes; then
22075         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22076         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22077           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22078       else
22079         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22080         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22081         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22082       fi
22083       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22084       hardcode_shlibpath_var_GCJ=no
22085       case $host_os in
22086       solaris2.[0-5] | solaris2.[0-5].*) ;;
22087       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22088         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22089       esac
22090       link_all_deplibs_GCJ=yes
22091       ;;
22092
22093     sunos4*)
22094       if test "x$host_vendor" = xsequent; then
22095         # Use $CC to link under sequent, because it throws in some extra .o
22096         # files that make .init and .fini sections work.
22097         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22098       else
22099         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22100       fi
22101       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22102       hardcode_direct_GCJ=yes
22103       hardcode_minus_L_GCJ=yes
22104       hardcode_shlibpath_var_GCJ=no
22105       ;;
22106
22107     sysv4)
22108       case $host_vendor in
22109         sni)
22110           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22111           hardcode_direct_GCJ=yes # is this really true???
22112         ;;
22113         siemens)
22114           ## LD is ld it makes a PLAMLIB
22115           ## CC just makes a GrossModule.
22116           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22117           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22118           hardcode_direct_GCJ=no
22119         ;;
22120         motorola)
22121           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22122           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22123         ;;
22124       esac
22125       runpath_var='LD_RUN_PATH'
22126       hardcode_shlibpath_var_GCJ=no
22127       ;;
22128
22129     sysv4.3*)
22130       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22131       hardcode_shlibpath_var_GCJ=no
22132       export_dynamic_flag_spec_GCJ='-Bexport'
22133       ;;
22134
22135     sysv4*MP*)
22136       if test -d /usr/nec; then
22137         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22138         hardcode_shlibpath_var_GCJ=no
22139         runpath_var=LD_RUN_PATH
22140         hardcode_runpath_var=yes
22141         ld_shlibs_GCJ=yes
22142       fi
22143       ;;
22144
22145     sysv4.2uw2*)
22146       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22147       hardcode_direct_GCJ=yes
22148       hardcode_minus_L_GCJ=no
22149       hardcode_shlibpath_var_GCJ=no
22150       hardcode_runpath_var=yes
22151       runpath_var=LD_RUN_PATH
22152       ;;
22153
22154    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22155       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22156       if test "$GCC" = yes; then
22157         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22158       else
22159         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22160       fi
22161       runpath_var='LD_RUN_PATH'
22162       hardcode_shlibpath_var_GCJ=no
22163       ;;
22164
22165     sysv5*)
22166       no_undefined_flag_GCJ=' -z text'
22167       # $CC -shared without GNU ld will not create a library from C++
22168       # object files and a static libstdc++, better avoid it by now
22169       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22170       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22171                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22172       hardcode_libdir_flag_spec_GCJ=
22173       hardcode_shlibpath_var_GCJ=no
22174       runpath_var='LD_RUN_PATH'
22175       ;;
22176
22177     uts4*)
22178       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22179       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22180       hardcode_shlibpath_var_GCJ=no
22181       ;;
22182
22183     *)
22184       ld_shlibs_GCJ=no
22185       ;;
22186     esac
22187   fi
22188
22189 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22190 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22191 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22192
22193 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22194 if test "$GCC" = yes; then
22195   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22196 fi
22197
22198 #
22199 # Do we need to explicitly link libc?
22200 #
22201 case "x$archive_cmds_need_lc_GCJ" in
22202 x|xyes)
22203   # Assume -lc should be added
22204   archive_cmds_need_lc_GCJ=yes
22205
22206   if test "$enable_shared" = yes && test "$GCC" = yes; then
22207     case $archive_cmds_GCJ in
22208     *'~'*)
22209       # FIXME: we may have to deal with multi-command sequences.
22210       ;;
22211     '$CC '*)
22212       # Test whether the compiler implicitly links with -lc since on some
22213       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22214       # to ld, don't add -lc before -lgcc.
22215       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22216 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22217       $rm conftest*
22218       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22219
22220       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22221   (eval $ac_compile) 2>&5
22222   ac_status=$?
22223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224   (exit $ac_status); } 2>conftest.err; then
22225         soname=conftest
22226         lib=conftest
22227         libobjs=conftest.$ac_objext
22228         deplibs=
22229         wl=$lt_prog_compiler_wl_GCJ
22230         compiler_flags=-v
22231         linker_flags=-v
22232         verstring=
22233         output_objdir=.
22234         libname=conftest
22235         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22236         allow_undefined_flag_GCJ=
22237         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22238   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22239   ac_status=$?
22240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241   (exit $ac_status); }
22242         then
22243           archive_cmds_need_lc_GCJ=no
22244         else
22245           archive_cmds_need_lc_GCJ=yes
22246         fi
22247         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22248       else
22249         cat conftest.err 1>&5
22250       fi
22251       $rm conftest*
22252       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22253 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22254       ;;
22255     esac
22256   fi
22257   ;;
22258 esac
22259
22260 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22261 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22262 library_names_spec=
22263 libname_spec='lib$name'
22264 soname_spec=
22265 shrext_cmds=".so"
22266 postinstall_cmds=
22267 postuninstall_cmds=
22268 finish_cmds=
22269 finish_eval=
22270 shlibpath_var=
22271 shlibpath_overrides_runpath=unknown
22272 version_type=none
22273 dynamic_linker="$host_os ld.so"
22274 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22275 if test "$GCC" = yes; then
22276   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22277   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22278     # if the path contains ";" then we assume it to be the separator
22279     # otherwise default to the standard path separator (i.e. ":") - it is
22280     # assumed that no part of a normal pathname contains ";" but that should
22281     # okay in the real world where ";" in dirpaths is itself problematic.
22282     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22283   else
22284     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22285   fi
22286 else
22287   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22288 fi
22289 need_lib_prefix=unknown
22290 hardcode_into_libs=no
22291
22292 # when you set need_version to no, make sure it does not cause -set_version
22293 # flags to be left without arguments
22294 need_version=unknown
22295
22296 case $host_os in
22297 aix3*)
22298   version_type=linux
22299   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22300   shlibpath_var=LIBPATH
22301
22302   # AIX 3 has no versioning support, so we append a major version to the name.
22303   soname_spec='${libname}${release}${shared_ext}$major'
22304   ;;
22305
22306 aix4* | aix5*)
22307   version_type=linux
22308   need_lib_prefix=no
22309   need_version=no
22310   hardcode_into_libs=yes
22311   if test "$host_cpu" = ia64; then
22312     # AIX 5 supports IA64
22313     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22314     shlibpath_var=LD_LIBRARY_PATH
22315   else
22316     # With GCC up to 2.95.x, collect2 would create an import file
22317     # for dependence libraries.  The import file would start with
22318     # the line `#! .'.  This would cause the generated library to
22319     # depend on `.', always an invalid library.  This was fixed in
22320     # development snapshots of GCC prior to 3.0.
22321     case $host_os in
22322       aix4 | aix4.[01] | aix4.[01].*)
22323       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22324            echo ' yes '
22325            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22326         :
22327       else
22328         can_build_shared=no
22329       fi
22330       ;;
22331     esac
22332     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22333     # soname into executable. Probably we can add versioning support to
22334     # collect2, so additional links can be useful in future.
22335     if test "$aix_use_runtimelinking" = yes; then
22336       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22337       # instead of lib<name>.a to let people know that these are not
22338       # typical AIX shared libraries.
22339       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22340     else
22341       # We preserve .a as extension for shared libraries through AIX4.2
22342       # and later when we are not doing run time linking.
22343       library_names_spec='${libname}${release}.a $libname.a'
22344       soname_spec='${libname}${release}${shared_ext}$major'
22345     fi
22346     shlibpath_var=LIBPATH
22347   fi
22348   ;;
22349
22350 amigaos*)
22351   library_names_spec='$libname.ixlibrary $libname.a'
22352   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22353   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'
22354   ;;
22355
22356 beos*)
22357   library_names_spec='${libname}${shared_ext}'
22358   dynamic_linker="$host_os ld.so"
22359   shlibpath_var=LIBRARY_PATH
22360   ;;
22361
22362 bsdi[45]*)
22363   version_type=linux
22364   need_version=no
22365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22366   soname_spec='${libname}${release}${shared_ext}$major'
22367   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22368   shlibpath_var=LD_LIBRARY_PATH
22369   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22370   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22371   # the default ld.so.conf also contains /usr/contrib/lib and
22372   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22373   # libtool to hard-code these into programs
22374   ;;
22375
22376 cygwin* | mingw* | pw32*)
22377   version_type=windows
22378   shrext_cmds=".dll"
22379   need_version=no
22380   need_lib_prefix=no
22381
22382   case $GCC,$host_os in
22383   yes,cygwin* | yes,mingw* | yes,pw32*)
22384     library_names_spec='$libname.dll.a'
22385     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22386     postinstall_cmds='base_file=`basename \${file}`~
22387       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22388       dldir=$destdir/`dirname \$dlpath`~
22389       test -d \$dldir || mkdir -p \$dldir~
22390       $install_prog $dir/$dlname \$dldir/$dlname'
22391     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22392       dlpath=$dir/\$dldll~
22393        $rm \$dlpath'
22394     shlibpath_overrides_runpath=yes
22395
22396     case $host_os in
22397     cygwin*)
22398       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22399       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22400       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22401       ;;
22402     mingw*)
22403       # MinGW DLLs use traditional 'lib' prefix
22404       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22405       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22406       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22407         # It is most probably a Windows format PATH printed by
22408         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22409         # path with ; separators, and with drive letters. We can handle the
22410         # drive letters (cygwin fileutils understands them), so leave them,
22411         # especially as we might pass files found there to a mingw objdump,
22412         # which wouldn't understand a cygwinified path. Ahh.
22413         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22414       else
22415         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22416       fi
22417       ;;
22418     pw32*)
22419       # pw32 DLLs use 'pw' prefix rather than 'lib'
22420       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22421       ;;
22422     esac
22423     ;;
22424
22425   *)
22426     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22427     ;;
22428   esac
22429   dynamic_linker='Win32 ld.exe'
22430   # FIXME: first we should search . and the directory the executable is in
22431   shlibpath_var=PATH
22432   ;;
22433
22434 darwin* | rhapsody*)
22435   dynamic_linker="$host_os dyld"
22436   version_type=darwin
22437   need_lib_prefix=no
22438   need_version=no
22439   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22440   soname_spec='${libname}${release}${major}$shared_ext'
22441   shlibpath_overrides_runpath=yes
22442   shlibpath_var=DYLD_LIBRARY_PATH
22443   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22444   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22445   if test "$GCC" = yes; then
22446     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"`
22447   else
22448     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22449   fi
22450   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22451   ;;
22452
22453 dgux*)
22454   version_type=linux
22455   need_lib_prefix=no
22456   need_version=no
22457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22458   soname_spec='${libname}${release}${shared_ext}$major'
22459   shlibpath_var=LD_LIBRARY_PATH
22460   ;;
22461
22462 freebsd1*)
22463   dynamic_linker=no
22464   ;;
22465
22466 kfreebsd*-gnu)
22467   version_type=linux
22468   need_lib_prefix=no
22469   need_version=no
22470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22471   soname_spec='${libname}${release}${shared_ext}$major'
22472   shlibpath_var=LD_LIBRARY_PATH
22473   shlibpath_overrides_runpath=no
22474   hardcode_into_libs=yes
22475   dynamic_linker='GNU ld.so'
22476   ;;
22477
22478 freebsd*)
22479   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22480   version_type=freebsd-$objformat
22481   case $version_type in
22482     freebsd-elf*)
22483       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22484       need_version=no
22485       need_lib_prefix=no
22486       ;;
22487     freebsd-*)
22488       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22489       need_version=yes
22490       ;;
22491   esac
22492   shlibpath_var=LD_LIBRARY_PATH
22493   case $host_os in
22494   freebsd2*)
22495     shlibpath_overrides_runpath=yes
22496     ;;
22497   freebsd3.01* | freebsdelf3.01*)
22498     shlibpath_overrides_runpath=yes
22499     hardcode_into_libs=yes
22500     ;;
22501   *) # from 3.2 on
22502     shlibpath_overrides_runpath=no
22503     hardcode_into_libs=yes
22504     ;;
22505   esac
22506   ;;
22507
22508 gnu*)
22509   version_type=linux
22510   need_lib_prefix=no
22511   need_version=no
22512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22513   soname_spec='${libname}${release}${shared_ext}$major'
22514   shlibpath_var=LD_LIBRARY_PATH
22515   hardcode_into_libs=yes
22516   ;;
22517
22518 hpux9* | hpux10* | hpux11*)
22519   # Give a soname corresponding to the major version so that dld.sl refuses to
22520   # link against other versions.
22521   version_type=sunos
22522   need_lib_prefix=no
22523   need_version=no
22524   case "$host_cpu" in
22525   ia64*)
22526     shrext_cmds='.so'
22527     hardcode_into_libs=yes
22528     dynamic_linker="$host_os dld.so"
22529     shlibpath_var=LD_LIBRARY_PATH
22530     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22531     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22532     soname_spec='${libname}${release}${shared_ext}$major'
22533     if test "X$HPUX_IA64_MODE" = X32; then
22534       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22535     else
22536       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22537     fi
22538     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22539     ;;
22540    hppa*64*)
22541      shrext_cmds='.sl'
22542      hardcode_into_libs=yes
22543      dynamic_linker="$host_os dld.sl"
22544      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22545      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22546      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22547      soname_spec='${libname}${release}${shared_ext}$major'
22548      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22549      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22550      ;;
22551    *)
22552     shrext_cmds='.sl'
22553     dynamic_linker="$host_os dld.sl"
22554     shlibpath_var=SHLIB_PATH
22555     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22557     soname_spec='${libname}${release}${shared_ext}$major'
22558     ;;
22559   esac
22560   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22561   postinstall_cmds='chmod 555 $lib'
22562   ;;
22563
22564 irix5* | irix6* | nonstopux*)
22565   case $host_os in
22566     nonstopux*) version_type=nonstopux ;;
22567     *)
22568         if test "$lt_cv_prog_gnu_ld" = yes; then
22569                 version_type=linux
22570         else
22571                 version_type=irix
22572         fi ;;
22573   esac
22574   need_lib_prefix=no
22575   need_version=no
22576   soname_spec='${libname}${release}${shared_ext}$major'
22577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22578   case $host_os in
22579   irix5* | nonstopux*)
22580     libsuff= shlibsuff=
22581     ;;
22582   *)
22583     case $LD in # libtool.m4 will add one of these switches to LD
22584     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22585       libsuff= shlibsuff= libmagic=32-bit;;
22586     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22587       libsuff=32 shlibsuff=N32 libmagic=N32;;
22588     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22589       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22590     *) libsuff= shlibsuff= libmagic=never-match;;
22591     esac
22592     ;;
22593   esac
22594   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22595   shlibpath_overrides_runpath=no
22596   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22597   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22598   hardcode_into_libs=yes
22599   ;;
22600
22601 # No shared lib support for Linux oldld, aout, or coff.
22602 linux*oldld* | linux*aout* | linux*coff*)
22603   dynamic_linker=no
22604   ;;
22605
22606 # This must be Linux ELF.
22607 linux*)
22608   version_type=linux
22609   need_lib_prefix=no
22610   need_version=no
22611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22612   soname_spec='${libname}${release}${shared_ext}$major'
22613   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22614   shlibpath_var=LD_LIBRARY_PATH
22615   shlibpath_overrides_runpath=no
22616   # This implies no fast_install, which is unacceptable.
22617   # Some rework will be needed to allow for fast_install
22618   # before this can be enabled.
22619   hardcode_into_libs=yes
22620
22621   # Append ld.so.conf contents to the search path
22622   if test -f /etc/ld.so.conf; then
22623     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22624     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22625   fi
22626
22627   # We used to test for /lib/ld.so.1 and disable shared libraries on
22628   # powerpc, because MkLinux only supported shared libraries with the
22629   # GNU dynamic linker.  Since this was broken with cross compilers,
22630   # most powerpc-linux boxes support dynamic linking these days and
22631   # people can always --disable-shared, the test was removed, and we
22632   # assume the GNU/Linux dynamic linker is in use.
22633   dynamic_linker='GNU/Linux ld.so'
22634   ;;
22635
22636 knetbsd*-gnu)
22637   version_type=linux
22638   need_lib_prefix=no
22639   need_version=no
22640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22641   soname_spec='${libname}${release}${shared_ext}$major'
22642   shlibpath_var=LD_LIBRARY_PATH
22643   shlibpath_overrides_runpath=no
22644   hardcode_into_libs=yes
22645   dynamic_linker='GNU ld.so'
22646   ;;
22647
22648 netbsd*)
22649   version_type=sunos
22650   need_lib_prefix=no
22651   need_version=no
22652   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22654     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22655     dynamic_linker='NetBSD (a.out) ld.so'
22656   else
22657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22658     soname_spec='${libname}${release}${shared_ext}$major'
22659     dynamic_linker='NetBSD ld.elf_so'
22660   fi
22661   shlibpath_var=LD_LIBRARY_PATH
22662   shlibpath_overrides_runpath=yes
22663   hardcode_into_libs=yes
22664   ;;
22665
22666 newsos6)
22667   version_type=linux
22668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22669   shlibpath_var=LD_LIBRARY_PATH
22670   shlibpath_overrides_runpath=yes
22671   ;;
22672
22673 nto-qnx*)
22674   version_type=linux
22675   need_lib_prefix=no
22676   need_version=no
22677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22678   soname_spec='${libname}${release}${shared_ext}$major'
22679   shlibpath_var=LD_LIBRARY_PATH
22680   shlibpath_overrides_runpath=yes
22681   ;;
22682
22683 openbsd*)
22684   version_type=sunos
22685   need_lib_prefix=no
22686   need_version=no
22687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22688   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22689   shlibpath_var=LD_LIBRARY_PATH
22690   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22691     case $host_os in
22692       openbsd2.[89] | openbsd2.[89].*)
22693         shlibpath_overrides_runpath=no
22694         ;;
22695       *)
22696         shlibpath_overrides_runpath=yes
22697         ;;
22698       esac
22699   else
22700     shlibpath_overrides_runpath=yes
22701   fi
22702   ;;
22703
22704 os2*)
22705   libname_spec='$name'
22706   shrext_cmds=".dll"
22707   need_lib_prefix=no
22708   library_names_spec='$libname${shared_ext} $libname.a'
22709   dynamic_linker='OS/2 ld.exe'
22710   shlibpath_var=LIBPATH
22711   ;;
22712
22713 osf3* | osf4* | osf5*)
22714   version_type=osf
22715   need_lib_prefix=no
22716   need_version=no
22717   soname_spec='${libname}${release}${shared_ext}$major'
22718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22719   shlibpath_var=LD_LIBRARY_PATH
22720   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22721   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22722   ;;
22723
22724 sco3.2v5*)
22725   version_type=osf
22726   soname_spec='${libname}${release}${shared_ext}$major'
22727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728   shlibpath_var=LD_LIBRARY_PATH
22729   ;;
22730
22731 solaris*)
22732   version_type=linux
22733   need_lib_prefix=no
22734   need_version=no
22735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22736   soname_spec='${libname}${release}${shared_ext}$major'
22737   shlibpath_var=LD_LIBRARY_PATH
22738   shlibpath_overrides_runpath=yes
22739   hardcode_into_libs=yes
22740   # ldd complains unless libraries are executable
22741   postinstall_cmds='chmod +x $lib'
22742   ;;
22743
22744 sunos4*)
22745   version_type=sunos
22746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22747   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22748   shlibpath_var=LD_LIBRARY_PATH
22749   shlibpath_overrides_runpath=yes
22750   if test "$with_gnu_ld" = yes; then
22751     need_lib_prefix=no
22752   fi
22753   need_version=yes
22754   ;;
22755
22756 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22757   version_type=linux
22758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22759   soname_spec='${libname}${release}${shared_ext}$major'
22760   shlibpath_var=LD_LIBRARY_PATH
22761   case $host_vendor in
22762     sni)
22763       shlibpath_overrides_runpath=no
22764       need_lib_prefix=no
22765       export_dynamic_flag_spec='${wl}-Blargedynsym'
22766       runpath_var=LD_RUN_PATH
22767       ;;
22768     siemens)
22769       need_lib_prefix=no
22770       ;;
22771     motorola)
22772       need_lib_prefix=no
22773       need_version=no
22774       shlibpath_overrides_runpath=no
22775       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22776       ;;
22777   esac
22778   ;;
22779
22780 sysv4*MP*)
22781   if test -d /usr/nec ;then
22782     version_type=linux
22783     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22784     soname_spec='$libname${shared_ext}.$major'
22785     shlibpath_var=LD_LIBRARY_PATH
22786   fi
22787   ;;
22788
22789 uts4*)
22790   version_type=linux
22791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22792   soname_spec='${libname}${release}${shared_ext}$major'
22793   shlibpath_var=LD_LIBRARY_PATH
22794   ;;
22795
22796 *)
22797   dynamic_linker=no
22798   ;;
22799 esac
22800 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22801 echo "${ECHO_T}$dynamic_linker" >&6
22802 test "$dynamic_linker" = no && can_build_shared=no
22803
22804 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22805 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22806 hardcode_action_GCJ=
22807 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22808    test -n "$runpath_var_GCJ" || \
22809    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22810
22811   # We can hardcode non-existant directories.
22812   if test "$hardcode_direct_GCJ" != no &&
22813      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22814      # have to relink, otherwise we might link with an installed library
22815      # when we should be linking with a yet-to-be-installed one
22816      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22817      test "$hardcode_minus_L_GCJ" != no; then
22818     # Linking always hardcodes the temporary library directory.
22819     hardcode_action_GCJ=relink
22820   else
22821     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22822     hardcode_action_GCJ=immediate
22823   fi
22824 else
22825   # We cannot hardcode anything, or else we can only hardcode existing
22826   # directories.
22827   hardcode_action_GCJ=unsupported
22828 fi
22829 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22830 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22831
22832 if test "$hardcode_action_GCJ" = relink; then
22833   # Fast installation is not supported
22834   enable_fast_install=no
22835 elif test "$shlibpath_overrides_runpath" = yes ||
22836      test "$enable_shared" = no; then
22837   # Fast installation is not necessary
22838   enable_fast_install=needless
22839 fi
22840
22841 striplib=
22842 old_striplib=
22843 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22844 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22845 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22846   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22847   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22848   echo "$as_me:$LINENO: result: yes" >&5
22849 echo "${ECHO_T}yes" >&6
22850 else
22851 # FIXME - insert some real tests, host_os isn't really good enough
22852   case $host_os in
22853    darwin*)
22854        if test -n "$STRIP" ; then
22855          striplib="$STRIP -x"
22856          echo "$as_me:$LINENO: result: yes" >&5
22857 echo "${ECHO_T}yes" >&6
22858        else
22859   echo "$as_me:$LINENO: result: no" >&5
22860 echo "${ECHO_T}no" >&6
22861 fi
22862        ;;
22863    *)
22864   echo "$as_me:$LINENO: result: no" >&5
22865 echo "${ECHO_T}no" >&6
22866     ;;
22867   esac
22868 fi
22869
22870 if test "x$enable_dlopen" != xyes; then
22871   enable_dlopen=unknown
22872   enable_dlopen_self=unknown
22873   enable_dlopen_self_static=unknown
22874 else
22875   lt_cv_dlopen=no
22876   lt_cv_dlopen_libs=
22877
22878   case $host_os in
22879   beos*)
22880     lt_cv_dlopen="load_add_on"
22881     lt_cv_dlopen_libs=
22882     lt_cv_dlopen_self=yes
22883     ;;
22884
22885   mingw* | pw32*)
22886     lt_cv_dlopen="LoadLibrary"
22887     lt_cv_dlopen_libs=
22888    ;;
22889
22890   cygwin*)
22891     lt_cv_dlopen="dlopen"
22892     lt_cv_dlopen_libs=
22893    ;;
22894
22895   darwin*)
22896   # if libdl is installed we need to link against it
22897     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22898 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22900   echo $ECHO_N "(cached) $ECHO_C" >&6
22901 else
22902   ac_check_lib_save_LIBS=$LIBS
22903 LIBS="-ldl  $LIBS"
22904 cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h.  */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h.  */
22910
22911 /* Override any gcc2 internal prototype to avoid an error.  */
22912 #ifdef __cplusplus
22913 extern "C"
22914 #endif
22915 /* We use char because int might match the return type of a gcc2
22916    builtin and then its argument prototype would still apply.  */
22917 char dlopen ();
22918 int
22919 main ()
22920 {
22921 dlopen ();
22922   ;
22923   return 0;
22924 }
22925 _ACEOF
22926 rm -f conftest.$ac_objext conftest$ac_exeext
22927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22928   (eval $ac_link) 2>conftest.er1
22929   ac_status=$?
22930   grep -v '^ *+' conftest.er1 >conftest.err
22931   rm -f conftest.er1
22932   cat conftest.err >&5
22933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934   (exit $ac_status); } &&
22935          { ac_try='test -z "$ac_c_werror_flag"
22936                          || test ! -s conftest.err'
22937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938   (eval $ac_try) 2>&5
22939   ac_status=$?
22940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941   (exit $ac_status); }; } &&
22942          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
22948   ac_cv_lib_dl_dlopen=yes
22949 else
22950   echo "$as_me: failed program was:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22952
22953 ac_cv_lib_dl_dlopen=no
22954 fi
22955 rm -f conftest.err conftest.$ac_objext \
22956       conftest$ac_exeext conftest.$ac_ext
22957 LIBS=$ac_check_lib_save_LIBS
22958 fi
22959 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22960 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22961 if test $ac_cv_lib_dl_dlopen = yes; then
22962   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22963 else
22964
22965     lt_cv_dlopen="dyld"
22966     lt_cv_dlopen_libs=
22967     lt_cv_dlopen_self=yes
22968
22969 fi
22970
22971    ;;
22972
22973   *)
22974     echo "$as_me:$LINENO: checking for shl_load" >&5
22975 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22976 if test "${ac_cv_func_shl_load+set}" = set; then
22977   echo $ECHO_N "(cached) $ECHO_C" >&6
22978 else
22979   cat >conftest.$ac_ext <<_ACEOF
22980 /* confdefs.h.  */
22981 _ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h.  */
22985 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22987 #define shl_load innocuous_shl_load
22988
22989 /* System header to define __stub macros and hopefully few prototypes,
22990     which can conflict with char shl_load (); below.
22991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22992     <limits.h> exists even on freestanding compilers.  */
22993
22994 #ifdef __STDC__
22995 # include <limits.h>
22996 #else
22997 # include <assert.h>
22998 #endif
22999
23000 #undef shl_load
23001
23002 /* Override any gcc2 internal prototype to avoid an error.  */
23003 #ifdef __cplusplus
23004 extern "C"
23005 {
23006 #endif
23007 /* We use char because int might match the return type of a gcc2
23008    builtin and then its argument prototype would still apply.  */
23009 char shl_load ();
23010 /* The GNU C library defines this for functions which it implements
23011     to always fail with ENOSYS.  Some functions are actually named
23012     something starting with __ and the normal name is an alias.  */
23013 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23014 choke me
23015 #else
23016 char (*f) () = shl_load;
23017 #endif
23018 #ifdef __cplusplus
23019 }
23020 #endif
23021
23022 int
23023 main ()
23024 {
23025 return f != shl_load;
23026   ;
23027   return 0;
23028 }
23029 _ACEOF
23030 rm -f conftest.$ac_objext conftest$ac_exeext
23031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23032   (eval $ac_link) 2>conftest.er1
23033   ac_status=$?
23034   grep -v '^ *+' conftest.er1 >conftest.err
23035   rm -f conftest.er1
23036   cat conftest.err >&5
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); } &&
23039          { ac_try='test -z "$ac_c_werror_flag"
23040                          || test ! -s conftest.err'
23041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042   (eval $ac_try) 2>&5
23043   ac_status=$?
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); }; } &&
23046          { ac_try='test -s conftest$ac_exeext'
23047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048   (eval $ac_try) 2>&5
23049   ac_status=$?
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); }; }; then
23052   ac_cv_func_shl_load=yes
23053 else
23054   echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057 ac_cv_func_shl_load=no
23058 fi
23059 rm -f conftest.err conftest.$ac_objext \
23060       conftest$ac_exeext conftest.$ac_ext
23061 fi
23062 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23063 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23064 if test $ac_cv_func_shl_load = yes; then
23065   lt_cv_dlopen="shl_load"
23066 else
23067   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23068 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23069 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23070   echo $ECHO_N "(cached) $ECHO_C" >&6
23071 else
23072   ac_check_lib_save_LIBS=$LIBS
23073 LIBS="-ldld  $LIBS"
23074 cat >conftest.$ac_ext <<_ACEOF
23075 /* confdefs.h.  */
23076 _ACEOF
23077 cat confdefs.h >>conftest.$ac_ext
23078 cat >>conftest.$ac_ext <<_ACEOF
23079 /* end confdefs.h.  */
23080
23081 /* Override any gcc2 internal prototype to avoid an error.  */
23082 #ifdef __cplusplus
23083 extern "C"
23084 #endif
23085 /* We use char because int might match the return type of a gcc2
23086    builtin and then its argument prototype would still apply.  */
23087 char shl_load ();
23088 int
23089 main ()
23090 {
23091 shl_load ();
23092   ;
23093   return 0;
23094 }
23095 _ACEOF
23096 rm -f conftest.$ac_objext conftest$ac_exeext
23097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23098   (eval $ac_link) 2>conftest.er1
23099   ac_status=$?
23100   grep -v '^ *+' conftest.er1 >conftest.err
23101   rm -f conftest.er1
23102   cat conftest.err >&5
23103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104   (exit $ac_status); } &&
23105          { ac_try='test -z "$ac_c_werror_flag"
23106                          || test ! -s conftest.err'
23107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23108   (eval $ac_try) 2>&5
23109   ac_status=$?
23110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111   (exit $ac_status); }; } &&
23112          { ac_try='test -s conftest$ac_exeext'
23113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114   (eval $ac_try) 2>&5
23115   ac_status=$?
23116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117   (exit $ac_status); }; }; then
23118   ac_cv_lib_dld_shl_load=yes
23119 else
23120   echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23122
23123 ac_cv_lib_dld_shl_load=no
23124 fi
23125 rm -f conftest.err conftest.$ac_objext \
23126       conftest$ac_exeext conftest.$ac_ext
23127 LIBS=$ac_check_lib_save_LIBS
23128 fi
23129 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23130 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23131 if test $ac_cv_lib_dld_shl_load = yes; then
23132   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23133 else
23134   echo "$as_me:$LINENO: checking for dlopen" >&5
23135 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23136 if test "${ac_cv_func_dlopen+set}" = set; then
23137   echo $ECHO_N "(cached) $ECHO_C" >&6
23138 else
23139   cat >conftest.$ac_ext <<_ACEOF
23140 /* confdefs.h.  */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h.  */
23145 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23147 #define dlopen innocuous_dlopen
23148
23149 /* System header to define __stub macros and hopefully few prototypes,
23150     which can conflict with char dlopen (); below.
23151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23152     <limits.h> exists even on freestanding compilers.  */
23153
23154 #ifdef __STDC__
23155 # include <limits.h>
23156 #else
23157 # include <assert.h>
23158 #endif
23159
23160 #undef dlopen
23161
23162 /* Override any gcc2 internal prototype to avoid an error.  */
23163 #ifdef __cplusplus
23164 extern "C"
23165 {
23166 #endif
23167 /* We use char because int might match the return type of a gcc2
23168    builtin and then its argument prototype would still apply.  */
23169 char dlopen ();
23170 /* The GNU C library defines this for functions which it implements
23171     to always fail with ENOSYS.  Some functions are actually named
23172     something starting with __ and the normal name is an alias.  */
23173 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23174 choke me
23175 #else
23176 char (*f) () = dlopen;
23177 #endif
23178 #ifdef __cplusplus
23179 }
23180 #endif
23181
23182 int
23183 main ()
23184 {
23185 return f != dlopen;
23186   ;
23187   return 0;
23188 }
23189 _ACEOF
23190 rm -f conftest.$ac_objext conftest$ac_exeext
23191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23192   (eval $ac_link) 2>conftest.er1
23193   ac_status=$?
23194   grep -v '^ *+' conftest.er1 >conftest.err
23195   rm -f conftest.er1
23196   cat conftest.err >&5
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); } &&
23199          { ac_try='test -z "$ac_c_werror_flag"
23200                          || test ! -s conftest.err'
23201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202   (eval $ac_try) 2>&5
23203   ac_status=$?
23204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205   (exit $ac_status); }; } &&
23206          { ac_try='test -s conftest$ac_exeext'
23207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208   (eval $ac_try) 2>&5
23209   ac_status=$?
23210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211   (exit $ac_status); }; }; then
23212   ac_cv_func_dlopen=yes
23213 else
23214   echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23216
23217 ac_cv_func_dlopen=no
23218 fi
23219 rm -f conftest.err conftest.$ac_objext \
23220       conftest$ac_exeext conftest.$ac_ext
23221 fi
23222 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23223 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23224 if test $ac_cv_func_dlopen = yes; then
23225   lt_cv_dlopen="dlopen"
23226 else
23227   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23228 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23229 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23230   echo $ECHO_N "(cached) $ECHO_C" >&6
23231 else
23232   ac_check_lib_save_LIBS=$LIBS
23233 LIBS="-ldl  $LIBS"
23234 cat >conftest.$ac_ext <<_ACEOF
23235 /* confdefs.h.  */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h.  */
23240
23241 /* Override any gcc2 internal prototype to avoid an error.  */
23242 #ifdef __cplusplus
23243 extern "C"
23244 #endif
23245 /* We use char because int might match the return type of a gcc2
23246    builtin and then its argument prototype would still apply.  */
23247 char dlopen ();
23248 int
23249 main ()
23250 {
23251 dlopen ();
23252   ;
23253   return 0;
23254 }
23255 _ACEOF
23256 rm -f conftest.$ac_objext conftest$ac_exeext
23257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23258   (eval $ac_link) 2>conftest.er1
23259   ac_status=$?
23260   grep -v '^ *+' conftest.er1 >conftest.err
23261   rm -f conftest.er1
23262   cat conftest.err >&5
23263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264   (exit $ac_status); } &&
23265          { ac_try='test -z "$ac_c_werror_flag"
23266                          || test ! -s conftest.err'
23267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268   (eval $ac_try) 2>&5
23269   ac_status=$?
23270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271   (exit $ac_status); }; } &&
23272          { ac_try='test -s conftest$ac_exeext'
23273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274   (eval $ac_try) 2>&5
23275   ac_status=$?
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); }; }; then
23278   ac_cv_lib_dl_dlopen=yes
23279 else
23280   echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23282
23283 ac_cv_lib_dl_dlopen=no
23284 fi
23285 rm -f conftest.err conftest.$ac_objext \
23286       conftest$ac_exeext conftest.$ac_ext
23287 LIBS=$ac_check_lib_save_LIBS
23288 fi
23289 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23290 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23291 if test $ac_cv_lib_dl_dlopen = yes; then
23292   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23293 else
23294   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23295 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23296 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23297   echo $ECHO_N "(cached) $ECHO_C" >&6
23298 else
23299   ac_check_lib_save_LIBS=$LIBS
23300 LIBS="-lsvld  $LIBS"
23301 cat >conftest.$ac_ext <<_ACEOF
23302 /* confdefs.h.  */
23303 _ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h.  */
23307
23308 /* Override any gcc2 internal prototype to avoid an error.  */
23309 #ifdef __cplusplus
23310 extern "C"
23311 #endif
23312 /* We use char because int might match the return type of a gcc2
23313    builtin and then its argument prototype would still apply.  */
23314 char dlopen ();
23315 int
23316 main ()
23317 {
23318 dlopen ();
23319   ;
23320   return 0;
23321 }
23322 _ACEOF
23323 rm -f conftest.$ac_objext conftest$ac_exeext
23324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23325   (eval $ac_link) 2>conftest.er1
23326   ac_status=$?
23327   grep -v '^ *+' conftest.er1 >conftest.err
23328   rm -f conftest.er1
23329   cat conftest.err >&5
23330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331   (exit $ac_status); } &&
23332          { ac_try='test -z "$ac_c_werror_flag"
23333                          || test ! -s conftest.err'
23334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335   (eval $ac_try) 2>&5
23336   ac_status=$?
23337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338   (exit $ac_status); }; } &&
23339          { ac_try='test -s conftest$ac_exeext'
23340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341   (eval $ac_try) 2>&5
23342   ac_status=$?
23343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344   (exit $ac_status); }; }; then
23345   ac_cv_lib_svld_dlopen=yes
23346 else
23347   echo "$as_me: failed program was:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23349
23350 ac_cv_lib_svld_dlopen=no
23351 fi
23352 rm -f conftest.err conftest.$ac_objext \
23353       conftest$ac_exeext conftest.$ac_ext
23354 LIBS=$ac_check_lib_save_LIBS
23355 fi
23356 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23357 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23358 if test $ac_cv_lib_svld_dlopen = yes; then
23359   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23360 else
23361   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23362 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23363 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23364   echo $ECHO_N "(cached) $ECHO_C" >&6
23365 else
23366   ac_check_lib_save_LIBS=$LIBS
23367 LIBS="-ldld  $LIBS"
23368 cat >conftest.$ac_ext <<_ACEOF
23369 /* confdefs.h.  */
23370 _ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h.  */
23374
23375 /* Override any gcc2 internal prototype to avoid an error.  */
23376 #ifdef __cplusplus
23377 extern "C"
23378 #endif
23379 /* We use char because int might match the return type of a gcc2
23380    builtin and then its argument prototype would still apply.  */
23381 char dld_link ();
23382 int
23383 main ()
23384 {
23385 dld_link ();
23386   ;
23387   return 0;
23388 }
23389 _ACEOF
23390 rm -f conftest.$ac_objext conftest$ac_exeext
23391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23392   (eval $ac_link) 2>conftest.er1
23393   ac_status=$?
23394   grep -v '^ *+' conftest.er1 >conftest.err
23395   rm -f conftest.er1
23396   cat conftest.err >&5
23397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398   (exit $ac_status); } &&
23399          { ac_try='test -z "$ac_c_werror_flag"
23400                          || test ! -s conftest.err'
23401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402   (eval $ac_try) 2>&5
23403   ac_status=$?
23404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405   (exit $ac_status); }; } &&
23406          { ac_try='test -s conftest$ac_exeext'
23407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23408   (eval $ac_try) 2>&5
23409   ac_status=$?
23410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411   (exit $ac_status); }; }; then
23412   ac_cv_lib_dld_dld_link=yes
23413 else
23414   echo "$as_me: failed program was:" >&5
23415 sed 's/^/| /' conftest.$ac_ext >&5
23416
23417 ac_cv_lib_dld_dld_link=no
23418 fi
23419 rm -f conftest.err conftest.$ac_objext \
23420       conftest$ac_exeext conftest.$ac_ext
23421 LIBS=$ac_check_lib_save_LIBS
23422 fi
23423 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23424 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23425 if test $ac_cv_lib_dld_dld_link = yes; then
23426   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23427 fi
23428
23429
23430 fi
23431
23432
23433 fi
23434
23435
23436 fi
23437
23438
23439 fi
23440
23441
23442 fi
23443
23444     ;;
23445   esac
23446
23447   if test "x$lt_cv_dlopen" != xno; then
23448     enable_dlopen=yes
23449   else
23450     enable_dlopen=no
23451   fi
23452
23453   case $lt_cv_dlopen in
23454   dlopen)
23455     save_CPPFLAGS="$CPPFLAGS"
23456     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23457
23458     save_LDFLAGS="$LDFLAGS"
23459     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23460
23461     save_LIBS="$LIBS"
23462     LIBS="$lt_cv_dlopen_libs $LIBS"
23463
23464     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23465 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23466 if test "${lt_cv_dlopen_self+set}" = set; then
23467   echo $ECHO_N "(cached) $ECHO_C" >&6
23468 else
23469           if test "$cross_compiling" = yes; then :
23470   lt_cv_dlopen_self=cross
23471 else
23472   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23473   lt_status=$lt_dlunknown
23474   cat > conftest.$ac_ext <<EOF
23475 #line 23475 "configure"
23476 #include "confdefs.h"
23477
23478 #if HAVE_DLFCN_H
23479 #include <dlfcn.h>
23480 #endif
23481
23482 #include <stdio.h>
23483
23484 #ifdef RTLD_GLOBAL
23485 #  define LT_DLGLOBAL           RTLD_GLOBAL
23486 #else
23487 #  ifdef DL_GLOBAL
23488 #    define LT_DLGLOBAL         DL_GLOBAL
23489 #  else
23490 #    define LT_DLGLOBAL         0
23491 #  endif
23492 #endif
23493
23494 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23495    find out it does not work in some platform. */
23496 #ifndef LT_DLLAZY_OR_NOW
23497 #  ifdef RTLD_LAZY
23498 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23499 #  else
23500 #    ifdef DL_LAZY
23501 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23502 #    else
23503 #      ifdef RTLD_NOW
23504 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23505 #      else
23506 #        ifdef DL_NOW
23507 #          define LT_DLLAZY_OR_NOW      DL_NOW
23508 #        else
23509 #          define LT_DLLAZY_OR_NOW      0
23510 #        endif
23511 #      endif
23512 #    endif
23513 #  endif
23514 #endif
23515
23516 #ifdef __cplusplus
23517 extern "C" void exit (int);
23518 #endif
23519
23520 void fnord() { int i=42;}
23521 int main ()
23522 {
23523   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23524   int status = $lt_dlunknown;
23525
23526   if (self)
23527     {
23528       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23529       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23530       /* dlclose (self); */
23531     }
23532
23533     exit (status);
23534 }
23535 EOF
23536   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23537   (eval $ac_link) 2>&5
23538   ac_status=$?
23539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23541     (./conftest; exit; ) 2>/dev/null
23542     lt_status=$?
23543     case x$lt_status in
23544       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23545       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23546       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23547     esac
23548   else :
23549     # compilation failed
23550     lt_cv_dlopen_self=no
23551   fi
23552 fi
23553 rm -fr conftest*
23554
23555
23556 fi
23557 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23558 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23559
23560     if test "x$lt_cv_dlopen_self" = xyes; then
23561       LDFLAGS="$LDFLAGS $link_static_flag"
23562       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23563 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23564 if test "${lt_cv_dlopen_self_static+set}" = set; then
23565   echo $ECHO_N "(cached) $ECHO_C" >&6
23566 else
23567           if test "$cross_compiling" = yes; then :
23568   lt_cv_dlopen_self_static=cross
23569 else
23570   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23571   lt_status=$lt_dlunknown
23572   cat > conftest.$ac_ext <<EOF
23573 #line 23573 "configure"
23574 #include "confdefs.h"
23575
23576 #if HAVE_DLFCN_H
23577 #include <dlfcn.h>
23578 #endif
23579
23580 #include <stdio.h>
23581
23582 #ifdef RTLD_GLOBAL
23583 #  define LT_DLGLOBAL           RTLD_GLOBAL
23584 #else
23585 #  ifdef DL_GLOBAL
23586 #    define LT_DLGLOBAL         DL_GLOBAL
23587 #  else
23588 #    define LT_DLGLOBAL         0
23589 #  endif
23590 #endif
23591
23592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23593    find out it does not work in some platform. */
23594 #ifndef LT_DLLAZY_OR_NOW
23595 #  ifdef RTLD_LAZY
23596 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23597 #  else
23598 #    ifdef DL_LAZY
23599 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23600 #    else
23601 #      ifdef RTLD_NOW
23602 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23603 #      else
23604 #        ifdef DL_NOW
23605 #          define LT_DLLAZY_OR_NOW      DL_NOW
23606 #        else
23607 #          define LT_DLLAZY_OR_NOW      0
23608 #        endif
23609 #      endif
23610 #    endif
23611 #  endif
23612 #endif
23613
23614 #ifdef __cplusplus
23615 extern "C" void exit (int);
23616 #endif
23617
23618 void fnord() { int i=42;}
23619 int main ()
23620 {
23621   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23622   int status = $lt_dlunknown;
23623
23624   if (self)
23625     {
23626       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23627       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23628       /* dlclose (self); */
23629     }
23630
23631     exit (status);
23632 }
23633 EOF
23634   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23635   (eval $ac_link) 2>&5
23636   ac_status=$?
23637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23639     (./conftest; exit; ) 2>/dev/null
23640     lt_status=$?
23641     case x$lt_status in
23642       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23643       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23644       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23645     esac
23646   else :
23647     # compilation failed
23648     lt_cv_dlopen_self_static=no
23649   fi
23650 fi
23651 rm -fr conftest*
23652
23653
23654 fi
23655 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23656 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23657     fi
23658
23659     CPPFLAGS="$save_CPPFLAGS"
23660     LDFLAGS="$save_LDFLAGS"
23661     LIBS="$save_LIBS"
23662     ;;
23663   esac
23664
23665   case $lt_cv_dlopen_self in
23666   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23667   *) enable_dlopen_self=unknown ;;
23668   esac
23669
23670   case $lt_cv_dlopen_self_static in
23671   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23672   *) enable_dlopen_self_static=unknown ;;
23673   esac
23674 fi
23675
23676
23677 # The else clause should only fire when bootstrapping the
23678 # libtool distribution, otherwise you forgot to ship ltmain.sh
23679 # with your package, and you will get complaints that there are
23680 # no rules to generate ltmain.sh.
23681 if test -f "$ltmain"; then
23682   # See if we are running on zsh, and set the options which allow our commands through
23683   # without removal of \ escapes.
23684   if test -n "${ZSH_VERSION+set}" ; then
23685     setopt NO_GLOB_SUBST
23686   fi
23687   # Now quote all the things that may contain metacharacters while being
23688   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23689   # variables and quote the copies for generation of the libtool script.
23690   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23691     SED SHELL STRIP \
23692     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23693     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23694     deplibs_check_method reload_flag reload_cmds need_locks \
23695     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23696     lt_cv_sys_global_symbol_to_c_name_address \
23697     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23698     old_postinstall_cmds old_postuninstall_cmds \
23699     compiler_GCJ \
23700     CC_GCJ \
23701     LD_GCJ \
23702     lt_prog_compiler_wl_GCJ \
23703     lt_prog_compiler_pic_GCJ \
23704     lt_prog_compiler_static_GCJ \
23705     lt_prog_compiler_no_builtin_flag_GCJ \
23706     export_dynamic_flag_spec_GCJ \
23707     thread_safe_flag_spec_GCJ \
23708     whole_archive_flag_spec_GCJ \
23709     enable_shared_with_static_runtimes_GCJ \
23710     old_archive_cmds_GCJ \
23711     old_archive_from_new_cmds_GCJ \
23712     predep_objects_GCJ \
23713     postdep_objects_GCJ \
23714     predeps_GCJ \
23715     postdeps_GCJ \
23716     compiler_lib_search_path_GCJ \
23717     archive_cmds_GCJ \
23718     archive_expsym_cmds_GCJ \
23719     postinstall_cmds_GCJ \
23720     postuninstall_cmds_GCJ \
23721     old_archive_from_expsyms_cmds_GCJ \
23722     allow_undefined_flag_GCJ \
23723     no_undefined_flag_GCJ \
23724     export_symbols_cmds_GCJ \
23725     hardcode_libdir_flag_spec_GCJ \
23726     hardcode_libdir_flag_spec_ld_GCJ \
23727     hardcode_libdir_separator_GCJ \
23728     hardcode_automatic_GCJ \
23729     module_cmds_GCJ \
23730     module_expsym_cmds_GCJ \
23731     lt_cv_prog_compiler_c_o_GCJ \
23732     exclude_expsyms_GCJ \
23733     include_expsyms_GCJ; do
23734
23735     case $var in
23736     old_archive_cmds_GCJ | \
23737     old_archive_from_new_cmds_GCJ | \
23738     archive_cmds_GCJ | \
23739     archive_expsym_cmds_GCJ | \
23740     module_cmds_GCJ | \
23741     module_expsym_cmds_GCJ | \
23742     old_archive_from_expsyms_cmds_GCJ | \
23743     export_symbols_cmds_GCJ | \
23744     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23745     postinstall_cmds | postuninstall_cmds | \
23746     old_postinstall_cmds | old_postuninstall_cmds | \
23747     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23748       # Double-quote double-evaled strings.
23749       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23750       ;;
23751     *)
23752       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23753       ;;
23754     esac
23755   done
23756
23757   case $lt_echo in
23758   *'\$0 --fallback-echo"')
23759     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23760     ;;
23761   esac
23762
23763 cfgfile="$ofile"
23764
23765   cat <<__EOF__ >> "$cfgfile"
23766 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23767
23768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23769
23770 # Shell to use when invoking shell scripts.
23771 SHELL=$lt_SHELL
23772
23773 # Whether or not to build shared libraries.
23774 build_libtool_libs=$enable_shared
23775
23776 # Whether or not to build static libraries.
23777 build_old_libs=$enable_static
23778
23779 # Whether or not to add -lc for building shared libraries.
23780 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23781
23782 # Whether or not to disallow shared libs when runtime libs are static
23783 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23784
23785 # Whether or not to optimize for fast installation.
23786 fast_install=$enable_fast_install
23787
23788 # The host system.
23789 host_alias=$host_alias
23790 host=$host
23791
23792 # An echo program that does not interpret backslashes.
23793 echo=$lt_echo
23794
23795 # The archiver.
23796 AR=$lt_AR
23797 AR_FLAGS=$lt_AR_FLAGS
23798
23799 # A C compiler.
23800 LTCC=$lt_LTCC
23801
23802 # A language-specific compiler.
23803 CC=$lt_compiler_GCJ
23804
23805 # Is the compiler the GNU C compiler?
23806 with_gcc=$GCC_GCJ
23807
23808 # An ERE matcher.
23809 EGREP=$lt_EGREP
23810
23811 # The linker used to build libraries.
23812 LD=$lt_LD_GCJ
23813
23814 # Whether we need hard or soft links.
23815 LN_S=$lt_LN_S
23816
23817 # A BSD-compatible nm program.
23818 NM=$lt_NM
23819
23820 # A symbol stripping program
23821 STRIP=$lt_STRIP
23822
23823 # Used to examine libraries when file_magic_cmd begins "file"
23824 MAGIC_CMD=$MAGIC_CMD
23825
23826 # Used on cygwin: DLL creation program.
23827 DLLTOOL="$DLLTOOL"
23828
23829 # Used on cygwin: object dumper.
23830 OBJDUMP="$OBJDUMP"
23831
23832 # Used on cygwin: assembler.
23833 AS="$AS"
23834
23835 # The name of the directory that contains temporary libtool files.
23836 objdir=$objdir
23837
23838 # How to create reloadable object files.
23839 reload_flag=$lt_reload_flag
23840 reload_cmds=$lt_reload_cmds
23841
23842 # How to pass a linker flag through the compiler.
23843 wl=$lt_lt_prog_compiler_wl_GCJ
23844
23845 # Object file suffix (normally "o").
23846 objext="$ac_objext"
23847
23848 # Old archive suffix (normally "a").
23849 libext="$libext"
23850
23851 # Shared library suffix (normally ".so").
23852 shrext_cmds='$shrext_cmds'
23853
23854 # Executable file suffix (normally "").
23855 exeext="$exeext"
23856
23857 # Additional compiler flags for building library objects.
23858 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23859 pic_mode=$pic_mode
23860
23861 # What is the maximum length of a command?
23862 max_cmd_len=$lt_cv_sys_max_cmd_len
23863
23864 # Does compiler simultaneously support -c and -o options?
23865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23866
23867 # Must we lock files when doing compilation ?
23868 need_locks=$lt_need_locks
23869
23870 # Do we need the lib prefix for modules?
23871 need_lib_prefix=$need_lib_prefix
23872
23873 # Do we need a version for libraries?
23874 need_version=$need_version
23875
23876 # Whether dlopen is supported.
23877 dlopen_support=$enable_dlopen
23878
23879 # Whether dlopen of programs is supported.
23880 dlopen_self=$enable_dlopen_self
23881
23882 # Whether dlopen of statically linked programs is supported.
23883 dlopen_self_static=$enable_dlopen_self_static
23884
23885 # Compiler flag to prevent dynamic linking.
23886 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23887
23888 # Compiler flag to turn off builtin functions.
23889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23890
23891 # Compiler flag to allow reflexive dlopens.
23892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23893
23894 # Compiler flag to generate shared objects directly from archives.
23895 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23896
23897 # Compiler flag to generate thread-safe objects.
23898 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23899
23900 # Library versioning type.
23901 version_type=$version_type
23902
23903 # Format of library name prefix.
23904 libname_spec=$lt_libname_spec
23905
23906 # List of archive names.  First name is the real one, the rest are links.
23907 # The last name is the one that the linker finds with -lNAME.
23908 library_names_spec=$lt_library_names_spec
23909
23910 # The coded name of the library, if different from the real name.
23911 soname_spec=$lt_soname_spec
23912
23913 # Commands used to build and install an old-style archive.
23914 RANLIB=$lt_RANLIB
23915 old_archive_cmds=$lt_old_archive_cmds_GCJ
23916 old_postinstall_cmds=$lt_old_postinstall_cmds
23917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23918
23919 # Create an old-style archive from a shared archive.
23920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23921
23922 # Create a temporary old-style archive to link instead of a shared archive.
23923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23924
23925 # Commands used to build and install a shared archive.
23926 archive_cmds=$lt_archive_cmds_GCJ
23927 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23928 postinstall_cmds=$lt_postinstall_cmds
23929 postuninstall_cmds=$lt_postuninstall_cmds
23930
23931 # Commands used to build a loadable module (assumed same as above if empty)
23932 module_cmds=$lt_module_cmds_GCJ
23933 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23934
23935 # Commands to strip libraries.
23936 old_striplib=$lt_old_striplib
23937 striplib=$lt_striplib
23938
23939 # Dependencies to place before the objects being linked to create a
23940 # shared library.
23941 predep_objects=$lt_predep_objects_GCJ
23942
23943 # Dependencies to place after the objects being linked to create a
23944 # shared library.
23945 postdep_objects=$lt_postdep_objects_GCJ
23946
23947 # Dependencies to place before the objects being linked to create a
23948 # shared library.
23949 predeps=$lt_predeps_GCJ
23950
23951 # Dependencies to place after the objects being linked to create a
23952 # shared library.
23953 postdeps=$lt_postdeps_GCJ
23954
23955 # The library search path used internally by the compiler when linking
23956 # a shared library.
23957 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23958
23959 # Method to check whether dependent libraries are shared objects.
23960 deplibs_check_method=$lt_deplibs_check_method
23961
23962 # Command to use when deplibs_check_method == file_magic.
23963 file_magic_cmd=$lt_file_magic_cmd
23964
23965 # Flag that allows shared libraries with undefined symbols to be built.
23966 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23967
23968 # Flag that forces no undefined symbols.
23969 no_undefined_flag=$lt_no_undefined_flag_GCJ
23970
23971 # Commands used to finish a libtool library installation in a directory.
23972 finish_cmds=$lt_finish_cmds
23973
23974 # Same as above, but a single script fragment to be evaled but not shown.
23975 finish_eval=$lt_finish_eval
23976
23977 # Take the output of nm and produce a listing of raw symbols and C names.
23978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23979
23980 # Transform the output of nm in a proper C declaration
23981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23982
23983 # Transform the output of nm in a C name address pair
23984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23985
23986 # This is the shared library runtime path variable.
23987 runpath_var=$runpath_var
23988
23989 # This is the shared library path variable.
23990 shlibpath_var=$shlibpath_var
23991
23992 # Is shlibpath searched before the hard-coded library search path?
23993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23994
23995 # How to hardcode a shared library path into an executable.
23996 hardcode_action=$hardcode_action_GCJ
23997
23998 # Whether we should hardcode library paths into libraries.
23999 hardcode_into_libs=$hardcode_into_libs
24000
24001 # Flag to hardcode \$libdir into a binary during linking.
24002 # This must work even if \$libdir does not exist.
24003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24004
24005 # If ld is used when linking, flag to hardcode \$libdir into
24006 # a binary during linking. This must work even if \$libdir does
24007 # not exist.
24008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24009
24010 # Whether we need a single -rpath flag with a separated argument.
24011 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24012
24013 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24014 # resulting binary.
24015 hardcode_direct=$hardcode_direct_GCJ
24016
24017 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24018 # resulting binary.
24019 hardcode_minus_L=$hardcode_minus_L_GCJ
24020
24021 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24022 # the resulting binary.
24023 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24024
24025 # Set to yes if building a shared library automatically hardcodes DIR into the library
24026 # and all subsequent libraries and executables linked against it.
24027 hardcode_automatic=$hardcode_automatic_GCJ
24028
24029 # Variables whose values should be saved in libtool wrapper scripts and
24030 # restored at relink time.
24031 variables_saved_for_relink="$variables_saved_for_relink"
24032
24033 # Whether libtool must link a program against all its dependency libraries.
24034 link_all_deplibs=$link_all_deplibs_GCJ
24035
24036 # Compile-time system search path for libraries
24037 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24038
24039 # Run-time system search path for libraries
24040 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24041
24042 # Fix the shell variable \$srcfile for the compiler.
24043 fix_srcfile_path="$fix_srcfile_path_GCJ"
24044
24045 # Set to yes if exported symbols are required.
24046 always_export_symbols=$always_export_symbols_GCJ
24047
24048 # The commands to list exported symbols.
24049 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24050
24051 # The commands to extract the exported symbol list from a shared archive.
24052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24053
24054 # Symbols that should not be listed in the preloaded symbols.
24055 exclude_expsyms=$lt_exclude_expsyms_GCJ
24056
24057 # Symbols that must always be exported.
24058 include_expsyms=$lt_include_expsyms_GCJ
24059
24060 # ### END LIBTOOL TAG CONFIG: $tagname
24061
24062 __EOF__
24063
24064
24065 else
24066   # If there is no Makefile yet, we rely on a make rule to execute
24067   # `config.status --recheck' to rerun these tests and create the
24068   # libtool script then.
24069   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24070   if test -f "$ltmain_in"; then
24071     test -f Makefile && make "$ltmain"
24072   fi
24073 fi
24074
24075
24076 ac_ext=c
24077 ac_cpp='$CPP $CPPFLAGS'
24078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24081
24082 CC="$lt_save_CC"
24083
24084         else
24085           tagname=""
24086         fi
24087         ;;
24088
24089       RC)
24090         ac_ext=c
24091 ac_cpp='$CPP $CPPFLAGS'
24092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24095
24096
24097 # Source file extension for RC test sources.
24098 ac_ext=rc
24099
24100 # Object file extension for compiled RC test sources.
24101 objext=o
24102 objext_RC=$objext
24103
24104 # Code to be used in simple compile tests
24105 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24106
24107 # Code to be used in simple link tests
24108 lt_simple_link_test_code="$lt_simple_compile_test_code"
24109
24110 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24111
24112 # If no C compiler was specified, use CC.
24113 LTCC=${LTCC-"$CC"}
24114
24115 # Allow CC to be a program name with arguments.
24116 compiler=$CC
24117
24118
24119 # Allow CC to be a program name with arguments.
24120 lt_save_CC="$CC"
24121 CC=${RC-"windres"}
24122 compiler=$CC
24123 compiler_RC=$CC
24124 lt_cv_prog_compiler_c_o_RC=yes
24125
24126 # The else clause should only fire when bootstrapping the
24127 # libtool distribution, otherwise you forgot to ship ltmain.sh
24128 # with your package, and you will get complaints that there are
24129 # no rules to generate ltmain.sh.
24130 if test -f "$ltmain"; then
24131   # See if we are running on zsh, and set the options which allow our commands through
24132   # without removal of \ escapes.
24133   if test -n "${ZSH_VERSION+set}" ; then
24134     setopt NO_GLOB_SUBST
24135   fi
24136   # Now quote all the things that may contain metacharacters while being
24137   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24138   # variables and quote the copies for generation of the libtool script.
24139   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24140     SED SHELL STRIP \
24141     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24142     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24143     deplibs_check_method reload_flag reload_cmds need_locks \
24144     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24145     lt_cv_sys_global_symbol_to_c_name_address \
24146     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24147     old_postinstall_cmds old_postuninstall_cmds \
24148     compiler_RC \
24149     CC_RC \
24150     LD_RC \
24151     lt_prog_compiler_wl_RC \
24152     lt_prog_compiler_pic_RC \
24153     lt_prog_compiler_static_RC \
24154     lt_prog_compiler_no_builtin_flag_RC \
24155     export_dynamic_flag_spec_RC \
24156     thread_safe_flag_spec_RC \
24157     whole_archive_flag_spec_RC \
24158     enable_shared_with_static_runtimes_RC \
24159     old_archive_cmds_RC \
24160     old_archive_from_new_cmds_RC \
24161     predep_objects_RC \
24162     postdep_objects_RC \
24163     predeps_RC \
24164     postdeps_RC \
24165     compiler_lib_search_path_RC \
24166     archive_cmds_RC \
24167     archive_expsym_cmds_RC \
24168     postinstall_cmds_RC \
24169     postuninstall_cmds_RC \
24170     old_archive_from_expsyms_cmds_RC \
24171     allow_undefined_flag_RC \
24172     no_undefined_flag_RC \
24173     export_symbols_cmds_RC \
24174     hardcode_libdir_flag_spec_RC \
24175     hardcode_libdir_flag_spec_ld_RC \
24176     hardcode_libdir_separator_RC \
24177     hardcode_automatic_RC \
24178     module_cmds_RC \
24179     module_expsym_cmds_RC \
24180     lt_cv_prog_compiler_c_o_RC \
24181     exclude_expsyms_RC \
24182     include_expsyms_RC; do
24183
24184     case $var in
24185     old_archive_cmds_RC | \
24186     old_archive_from_new_cmds_RC | \
24187     archive_cmds_RC | \
24188     archive_expsym_cmds_RC | \
24189     module_cmds_RC | \
24190     module_expsym_cmds_RC | \
24191     old_archive_from_expsyms_cmds_RC | \
24192     export_symbols_cmds_RC | \
24193     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24194     postinstall_cmds | postuninstall_cmds | \
24195     old_postinstall_cmds | old_postuninstall_cmds | \
24196     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24197       # Double-quote double-evaled strings.
24198       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24199       ;;
24200     *)
24201       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24202       ;;
24203     esac
24204   done
24205
24206   case $lt_echo in
24207   *'\$0 --fallback-echo"')
24208     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24209     ;;
24210   esac
24211
24212 cfgfile="$ofile"
24213
24214   cat <<__EOF__ >> "$cfgfile"
24215 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24216
24217 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24218
24219 # Shell to use when invoking shell scripts.
24220 SHELL=$lt_SHELL
24221
24222 # Whether or not to build shared libraries.
24223 build_libtool_libs=$enable_shared
24224
24225 # Whether or not to build static libraries.
24226 build_old_libs=$enable_static
24227
24228 # Whether or not to add -lc for building shared libraries.
24229 build_libtool_need_lc=$archive_cmds_need_lc_RC
24230
24231 # Whether or not to disallow shared libs when runtime libs are static
24232 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24233
24234 # Whether or not to optimize for fast installation.
24235 fast_install=$enable_fast_install
24236
24237 # The host system.
24238 host_alias=$host_alias
24239 host=$host
24240
24241 # An echo program that does not interpret backslashes.
24242 echo=$lt_echo
24243
24244 # The archiver.
24245 AR=$lt_AR
24246 AR_FLAGS=$lt_AR_FLAGS
24247
24248 # A C compiler.
24249 LTCC=$lt_LTCC
24250
24251 # A language-specific compiler.
24252 CC=$lt_compiler_RC
24253
24254 # Is the compiler the GNU C compiler?
24255 with_gcc=$GCC_RC
24256
24257 # An ERE matcher.
24258 EGREP=$lt_EGREP
24259
24260 # The linker used to build libraries.
24261 LD=$lt_LD_RC
24262
24263 # Whether we need hard or soft links.
24264 LN_S=$lt_LN_S
24265
24266 # A BSD-compatible nm program.
24267 NM=$lt_NM
24268
24269 # A symbol stripping program
24270 STRIP=$lt_STRIP
24271
24272 # Used to examine libraries when file_magic_cmd begins "file"
24273 MAGIC_CMD=$MAGIC_CMD
24274
24275 # Used on cygwin: DLL creation program.
24276 DLLTOOL="$DLLTOOL"
24277
24278 # Used on cygwin: object dumper.
24279 OBJDUMP="$OBJDUMP"
24280
24281 # Used on cygwin: assembler.
24282 AS="$AS"
24283
24284 # The name of the directory that contains temporary libtool files.
24285 objdir=$objdir
24286
24287 # How to create reloadable object files.
24288 reload_flag=$lt_reload_flag
24289 reload_cmds=$lt_reload_cmds
24290
24291 # How to pass a linker flag through the compiler.
24292 wl=$lt_lt_prog_compiler_wl_RC
24293
24294 # Object file suffix (normally "o").
24295 objext="$ac_objext"
24296
24297 # Old archive suffix (normally "a").
24298 libext="$libext"
24299
24300 # Shared library suffix (normally ".so").
24301 shrext_cmds='$shrext_cmds'
24302
24303 # Executable file suffix (normally "").
24304 exeext="$exeext"
24305
24306 # Additional compiler flags for building library objects.
24307 pic_flag=$lt_lt_prog_compiler_pic_RC
24308 pic_mode=$pic_mode
24309
24310 # What is the maximum length of a command?
24311 max_cmd_len=$lt_cv_sys_max_cmd_len
24312
24313 # Does compiler simultaneously support -c and -o options?
24314 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24315
24316 # Must we lock files when doing compilation ?
24317 need_locks=$lt_need_locks
24318
24319 # Do we need the lib prefix for modules?
24320 need_lib_prefix=$need_lib_prefix
24321
24322 # Do we need a version for libraries?
24323 need_version=$need_version
24324
24325 # Whether dlopen is supported.
24326 dlopen_support=$enable_dlopen
24327
24328 # Whether dlopen of programs is supported.
24329 dlopen_self=$enable_dlopen_self
24330
24331 # Whether dlopen of statically linked programs is supported.
24332 dlopen_self_static=$enable_dlopen_self_static
24333
24334 # Compiler flag to prevent dynamic linking.
24335 link_static_flag=$lt_lt_prog_compiler_static_RC
24336
24337 # Compiler flag to turn off builtin functions.
24338 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24339
24340 # Compiler flag to allow reflexive dlopens.
24341 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24342
24343 # Compiler flag to generate shared objects directly from archives.
24344 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24345
24346 # Compiler flag to generate thread-safe objects.
24347 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24348
24349 # Library versioning type.
24350 version_type=$version_type
24351
24352 # Format of library name prefix.
24353 libname_spec=$lt_libname_spec
24354
24355 # List of archive names.  First name is the real one, the rest are links.
24356 # The last name is the one that the linker finds with -lNAME.
24357 library_names_spec=$lt_library_names_spec
24358
24359 # The coded name of the library, if different from the real name.
24360 soname_spec=$lt_soname_spec
24361
24362 # Commands used to build and install an old-style archive.
24363 RANLIB=$lt_RANLIB
24364 old_archive_cmds=$lt_old_archive_cmds_RC
24365 old_postinstall_cmds=$lt_old_postinstall_cmds
24366 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24367
24368 # Create an old-style archive from a shared archive.
24369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24370
24371 # Create a temporary old-style archive to link instead of a shared archive.
24372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24373
24374 # Commands used to build and install a shared archive.
24375 archive_cmds=$lt_archive_cmds_RC
24376 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24377 postinstall_cmds=$lt_postinstall_cmds
24378 postuninstall_cmds=$lt_postuninstall_cmds
24379
24380 # Commands used to build a loadable module (assumed same as above if empty)
24381 module_cmds=$lt_module_cmds_RC
24382 module_expsym_cmds=$lt_module_expsym_cmds_RC
24383
24384 # Commands to strip libraries.
24385 old_striplib=$lt_old_striplib
24386 striplib=$lt_striplib
24387
24388 # Dependencies to place before the objects being linked to create a
24389 # shared library.
24390 predep_objects=$lt_predep_objects_RC
24391
24392 # Dependencies to place after the objects being linked to create a
24393 # shared library.
24394 postdep_objects=$lt_postdep_objects_RC
24395
24396 # Dependencies to place before the objects being linked to create a
24397 # shared library.
24398 predeps=$lt_predeps_RC
24399
24400 # Dependencies to place after the objects being linked to create a
24401 # shared library.
24402 postdeps=$lt_postdeps_RC
24403
24404 # The library search path used internally by the compiler when linking
24405 # a shared library.
24406 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24407
24408 # Method to check whether dependent libraries are shared objects.
24409 deplibs_check_method=$lt_deplibs_check_method
24410
24411 # Command to use when deplibs_check_method == file_magic.
24412 file_magic_cmd=$lt_file_magic_cmd
24413
24414 # Flag that allows shared libraries with undefined symbols to be built.
24415 allow_undefined_flag=$lt_allow_undefined_flag_RC
24416
24417 # Flag that forces no undefined symbols.
24418 no_undefined_flag=$lt_no_undefined_flag_RC
24419
24420 # Commands used to finish a libtool library installation in a directory.
24421 finish_cmds=$lt_finish_cmds
24422
24423 # Same as above, but a single script fragment to be evaled but not shown.
24424 finish_eval=$lt_finish_eval
24425
24426 # Take the output of nm and produce a listing of raw symbols and C names.
24427 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24428
24429 # Transform the output of nm in a proper C declaration
24430 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24431
24432 # Transform the output of nm in a C name address pair
24433 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24434
24435 # This is the shared library runtime path variable.
24436 runpath_var=$runpath_var
24437
24438 # This is the shared library path variable.
24439 shlibpath_var=$shlibpath_var
24440
24441 # Is shlibpath searched before the hard-coded library search path?
24442 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24443
24444 # How to hardcode a shared library path into an executable.
24445 hardcode_action=$hardcode_action_RC
24446
24447 # Whether we should hardcode library paths into libraries.
24448 hardcode_into_libs=$hardcode_into_libs
24449
24450 # Flag to hardcode \$libdir into a binary during linking.
24451 # This must work even if \$libdir does not exist.
24452 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24453
24454 # If ld is used when linking, flag to hardcode \$libdir into
24455 # a binary during linking. This must work even if \$libdir does
24456 # not exist.
24457 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24458
24459 # Whether we need a single -rpath flag with a separated argument.
24460 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24461
24462 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24463 # resulting binary.
24464 hardcode_direct=$hardcode_direct_RC
24465
24466 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24467 # resulting binary.
24468 hardcode_minus_L=$hardcode_minus_L_RC
24469
24470 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24471 # the resulting binary.
24472 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24473
24474 # Set to yes if building a shared library automatically hardcodes DIR into the library
24475 # and all subsequent libraries and executables linked against it.
24476 hardcode_automatic=$hardcode_automatic_RC
24477
24478 # Variables whose values should be saved in libtool wrapper scripts and
24479 # restored at relink time.
24480 variables_saved_for_relink="$variables_saved_for_relink"
24481
24482 # Whether libtool must link a program against all its dependency libraries.
24483 link_all_deplibs=$link_all_deplibs_RC
24484
24485 # Compile-time system search path for libraries
24486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24487
24488 # Run-time system search path for libraries
24489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24490
24491 # Fix the shell variable \$srcfile for the compiler.
24492 fix_srcfile_path="$fix_srcfile_path_RC"
24493
24494 # Set to yes if exported symbols are required.
24495 always_export_symbols=$always_export_symbols_RC
24496
24497 # The commands to list exported symbols.
24498 export_symbols_cmds=$lt_export_symbols_cmds_RC
24499
24500 # The commands to extract the exported symbol list from a shared archive.
24501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24502
24503 # Symbols that should not be listed in the preloaded symbols.
24504 exclude_expsyms=$lt_exclude_expsyms_RC
24505
24506 # Symbols that must always be exported.
24507 include_expsyms=$lt_include_expsyms_RC
24508
24509 # ### END LIBTOOL TAG CONFIG: $tagname
24510
24511 __EOF__
24512
24513
24514 else
24515   # If there is no Makefile yet, we rely on a make rule to execute
24516   # `config.status --recheck' to rerun these tests and create the
24517   # libtool script then.
24518   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24519   if test -f "$ltmain_in"; then
24520     test -f Makefile && make "$ltmain"
24521   fi
24522 fi
24523
24524
24525 ac_ext=c
24526 ac_cpp='$CPP $CPPFLAGS'
24527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24530
24531 CC="$lt_save_CC"
24532
24533         ;;
24534
24535       *)
24536         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24537 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24538    { (exit 1); exit 1; }; }
24539         ;;
24540       esac
24541
24542       # Append the new tag name to the list of available tags.
24543       if test -n "$tagname" ; then
24544       available_tags="$available_tags $tagname"
24545     fi
24546     fi
24547   done
24548   IFS="$lt_save_ifs"
24549
24550   # Now substitute the updated list of available tags.
24551   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24552     mv "${ofile}T" "$ofile"
24553     chmod +x "$ofile"
24554   else
24555     rm -f "${ofile}T"
24556     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24557 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24558    { (exit 1); exit 1; }; }
24559   fi
24560 fi
24561
24562
24563
24564 # This can be used to rebuild libtool when needed
24565 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24566
24567 # Always use our own libtool.
24568 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24569
24570 # Prevent multiple expansion
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592 etags_version=`$ETAGS --version 2>&1`
24593 case "$etags_version" in
24594         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24595         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24596         *) ETAGSFLAGS="" ;;
24597 esac
24598 ETAGSFLAGS=$ETAGSFLAGS
24599
24600
24601 if test "$WITH_LLVMGCCDIR" = "default" ; then
24602   # Extract the first word of "llvm-gcc", so it can be a program name with args.
24603 set dummy llvm-gcc; ac_word=$2
24604 echo "$as_me:$LINENO: checking for $ac_word" >&5
24605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24606 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24607   echo $ECHO_N "(cached) $ECHO_C" >&6
24608 else
24609   case $LLVMGCC in
24610   [\\/]* | ?:[\\/]*)
24611   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24612   ;;
24613   *)
24614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24615 for as_dir in $PATH
24616 do
24617   IFS=$as_save_IFS
24618   test -z "$as_dir" && as_dir=.
24619   for ac_exec_ext in '' $ac_executable_extensions; do
24620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24621     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24623     break 2
24624   fi
24625 done
24626 done
24627
24628   test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24629   ;;
24630 esac
24631 fi
24632 LLVMGCC=$ac_cv_path_LLVMGCC
24633
24634 if test -n "$LLVMGCC"; then
24635   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24636 echo "${ECHO_T}$LLVMGCC" >&6
24637 else
24638   echo "$as_me:$LINENO: result: no" >&5
24639 echo "${ECHO_T}no" >&6
24640 fi
24641
24642   # Extract the first word of "llvm-g++", so it can be a program name with args.
24643 set dummy llvm-g++; ac_word=$2
24644 echo "$as_me:$LINENO: checking for $ac_word" >&5
24645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24646 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24647   echo $ECHO_N "(cached) $ECHO_C" >&6
24648 else
24649   case $LLVMGXX in
24650   [\\/]* | ?:[\\/]*)
24651   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24652   ;;
24653   *)
24654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24655 for as_dir in $PATH
24656 do
24657   IFS=$as_save_IFS
24658   test -z "$as_dir" && as_dir=.
24659   for ac_exec_ext in '' $ac_executable_extensions; do
24660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24661     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24663     break 2
24664   fi
24665 done
24666 done
24667
24668   test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24669   ;;
24670 esac
24671 fi
24672 LLVMGXX=$ac_cv_path_LLVMGXX
24673
24674 if test -n "$LLVMGXX"; then
24675   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24676 echo "${ECHO_T}$LLVMGXX" >&6
24677 else
24678   echo "$as_me:$LINENO: result: no" >&5
24679 echo "${ECHO_T}no" >&6
24680 fi
24681
24682 else
24683   LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24684   LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24685   LLVMGCC=$LLVMGCC
24686
24687   LLVMGXX=$LLVMGXX
24688
24689 fi
24690
24691 echo "$as_me:$LINENO: checking tool compatibility" >&5
24692 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24693
24694 ICC=no
24695 IXX=no
24696 case $CC in
24697   icc*|icpc*)
24698     ICC=yes
24699     IXX=yes
24700     ;;
24701    *)
24702     ;;
24703 esac
24704
24705 if test "$GCC" != "yes" && test "$ICC" != "yes"
24706 then
24707   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24708 echo "$as_me: error: gcc|icc required but not found" >&2;}
24709    { (exit 1); exit 1; }; }
24710 fi
24711
24712 if test "$GXX" != "yes" && test "$IXX" != "yes"
24713 then
24714   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24715 echo "$as_me: error: g++|icc required but not found" >&2;}
24716    { (exit 1); exit 1; }; }
24717 fi
24718
24719 if test "$GCC" = "yes"
24720 then
24721   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24722   if test "$gccmajor" -lt "3"
24723   then
24724     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24725 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24726    { (exit 1); exit 1; }; }
24727   fi
24728 fi
24729
24730 if test -z "$llvm_cv_gnu_make_command"
24731 then
24732   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24733 echo "$as_me: error: GNU Make required but not found" >&2;}
24734    { (exit 1); exit 1; }; }
24735 fi
24736
24737 echo "$as_me:$LINENO: result: ok" >&5
24738 echo "${ECHO_T}ok" >&6
24739
24740
24741
24742 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24743 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24744 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24745   echo $ECHO_N "(cached) $ECHO_C" >&6
24746 else
24747   ac_check_lib_save_LIBS=$LIBS
24748 LIBS="-lelf  $LIBS"
24749 cat >conftest.$ac_ext <<_ACEOF
24750 /* confdefs.h.  */
24751 _ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h.  */
24755
24756 /* Override any gcc2 internal prototype to avoid an error.  */
24757 #ifdef __cplusplus
24758 extern "C"
24759 #endif
24760 /* We use char because int might match the return type of a gcc2
24761    builtin and then its argument prototype would still apply.  */
24762 char elf_begin ();
24763 int
24764 main ()
24765 {
24766 elf_begin ();
24767   ;
24768   return 0;
24769 }
24770 _ACEOF
24771 rm -f conftest.$ac_objext conftest$ac_exeext
24772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24773   (eval $ac_link) 2>conftest.er1
24774   ac_status=$?
24775   grep -v '^ *+' conftest.er1 >conftest.err
24776   rm -f conftest.er1
24777   cat conftest.err >&5
24778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779   (exit $ac_status); } &&
24780          { ac_try='test -z "$ac_c_werror_flag"
24781                          || test ! -s conftest.err'
24782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24783   (eval $ac_try) 2>&5
24784   ac_status=$?
24785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786   (exit $ac_status); }; } &&
24787          { ac_try='test -s conftest$ac_exeext'
24788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24789   (eval $ac_try) 2>&5
24790   ac_status=$?
24791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792   (exit $ac_status); }; }; then
24793   ac_cv_lib_elf_elf_begin=yes
24794 else
24795   echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.$ac_ext >&5
24797
24798 ac_cv_lib_elf_elf_begin=no
24799 fi
24800 rm -f conftest.err conftest.$ac_objext \
24801       conftest$ac_exeext conftest.$ac_ext
24802 LIBS=$ac_check_lib_save_LIBS
24803 fi
24804 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24805 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24806 if test $ac_cv_lib_elf_elf_begin = yes; then
24807   cat >>confdefs.h <<_ACEOF
24808 #define HAVE_LIBELF 1
24809 _ACEOF
24810
24811   LIBS="-lelf $LIBS"
24812
24813 fi
24814
24815
24816 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24817 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24818 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24819   echo $ECHO_N "(cached) $ECHO_C" >&6
24820 else
24821   ac_func_search_save_LIBS=$LIBS
24822 ac_cv_search_lt_dlopen=no
24823 cat >conftest.$ac_ext <<_ACEOF
24824 /* confdefs.h.  */
24825 _ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h.  */
24829
24830 /* Override any gcc2 internal prototype to avoid an error.  */
24831 #ifdef __cplusplus
24832 extern "C"
24833 #endif
24834 /* We use char because int might match the return type of a gcc2
24835    builtin and then its argument prototype would still apply.  */
24836 char lt_dlopen ();
24837 int
24838 main ()
24839 {
24840 lt_dlopen ();
24841   ;
24842   return 0;
24843 }
24844 _ACEOF
24845 rm -f conftest.$ac_objext conftest$ac_exeext
24846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24847   (eval $ac_link) 2>conftest.er1
24848   ac_status=$?
24849   grep -v '^ *+' conftest.er1 >conftest.err
24850   rm -f conftest.er1
24851   cat conftest.err >&5
24852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853   (exit $ac_status); } &&
24854          { ac_try='test -z "$ac_c_werror_flag"
24855                          || test ! -s conftest.err'
24856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857   (eval $ac_try) 2>&5
24858   ac_status=$?
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); }; } &&
24861          { ac_try='test -s conftest$ac_exeext'
24862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863   (eval $ac_try) 2>&5
24864   ac_status=$?
24865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866   (exit $ac_status); }; }; then
24867   ac_cv_search_lt_dlopen="none required"
24868 else
24869   echo "$as_me: failed program was:" >&5
24870 sed 's/^/| /' conftest.$ac_ext >&5
24871
24872 fi
24873 rm -f conftest.err conftest.$ac_objext \
24874       conftest$ac_exeext conftest.$ac_ext
24875 if test "$ac_cv_search_lt_dlopen" = no; then
24876   for ac_lib in ltdl; do
24877     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24878     cat >conftest.$ac_ext <<_ACEOF
24879 /* confdefs.h.  */
24880 _ACEOF
24881 cat confdefs.h >>conftest.$ac_ext
24882 cat >>conftest.$ac_ext <<_ACEOF
24883 /* end confdefs.h.  */
24884
24885 /* Override any gcc2 internal prototype to avoid an error.  */
24886 #ifdef __cplusplus
24887 extern "C"
24888 #endif
24889 /* We use char because int might match the return type of a gcc2
24890    builtin and then its argument prototype would still apply.  */
24891 char lt_dlopen ();
24892 int
24893 main ()
24894 {
24895 lt_dlopen ();
24896   ;
24897   return 0;
24898 }
24899 _ACEOF
24900 rm -f conftest.$ac_objext conftest$ac_exeext
24901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24902   (eval $ac_link) 2>conftest.er1
24903   ac_status=$?
24904   grep -v '^ *+' conftest.er1 >conftest.err
24905   rm -f conftest.er1
24906   cat conftest.err >&5
24907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908   (exit $ac_status); } &&
24909          { ac_try='test -z "$ac_c_werror_flag"
24910                          || test ! -s conftest.err'
24911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24912   (eval $ac_try) 2>&5
24913   ac_status=$?
24914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915   (exit $ac_status); }; } &&
24916          { ac_try='test -s conftest$ac_exeext'
24917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918   (eval $ac_try) 2>&5
24919   ac_status=$?
24920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921   (exit $ac_status); }; }; then
24922   ac_cv_search_lt_dlopen="-l$ac_lib"
24923 break
24924 else
24925   echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24927
24928 fi
24929 rm -f conftest.err conftest.$ac_objext \
24930       conftest$ac_exeext conftest.$ac_ext
24931   done
24932 fi
24933 LIBS=$ac_func_search_save_LIBS
24934 fi
24935 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24936 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24937 if test "$ac_cv_search_lt_dlopen" != no; then
24938   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24939
24940 cat >>confdefs.h <<\_ACEOF
24941 #define HAVE_LT_DLOPEN 1
24942 _ACEOF
24943
24944 else
24945   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24946                            not be available" >&5
24947 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24948                            not be available" >&2;}
24949 fi
24950
24951
24952 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24953 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24954 if test "${ac_cv_search_dlopen+set}" = set; then
24955   echo $ECHO_N "(cached) $ECHO_C" >&6
24956 else
24957   ac_func_search_save_LIBS=$LIBS
24958 ac_cv_search_dlopen=no
24959 cat >conftest.$ac_ext <<_ACEOF
24960 /* confdefs.h.  */
24961 _ACEOF
24962 cat confdefs.h >>conftest.$ac_ext
24963 cat >>conftest.$ac_ext <<_ACEOF
24964 /* end confdefs.h.  */
24965
24966 /* Override any gcc2 internal prototype to avoid an error.  */
24967 #ifdef __cplusplus
24968 extern "C"
24969 #endif
24970 /* We use char because int might match the return type of a gcc2
24971    builtin and then its argument prototype would still apply.  */
24972 char dlopen ();
24973 int
24974 main ()
24975 {
24976 dlopen ();
24977   ;
24978   return 0;
24979 }
24980 _ACEOF
24981 rm -f conftest.$ac_objext conftest$ac_exeext
24982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24983   (eval $ac_link) 2>conftest.er1
24984   ac_status=$?
24985   grep -v '^ *+' conftest.er1 >conftest.err
24986   rm -f conftest.er1
24987   cat conftest.err >&5
24988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989   (exit $ac_status); } &&
24990          { ac_try='test -z "$ac_c_werror_flag"
24991                          || test ! -s conftest.err'
24992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993   (eval $ac_try) 2>&5
24994   ac_status=$?
24995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996   (exit $ac_status); }; } &&
24997          { ac_try='test -s conftest$ac_exeext'
24998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24999   (eval $ac_try) 2>&5
25000   ac_status=$?
25001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002   (exit $ac_status); }; }; then
25003   ac_cv_search_dlopen="none required"
25004 else
25005   echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25007
25008 fi
25009 rm -f conftest.err conftest.$ac_objext \
25010       conftest$ac_exeext conftest.$ac_ext
25011 if test "$ac_cv_search_dlopen" = no; then
25012   for ac_lib in dl; do
25013     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25014     cat >conftest.$ac_ext <<_ACEOF
25015 /* confdefs.h.  */
25016 _ACEOF
25017 cat confdefs.h >>conftest.$ac_ext
25018 cat >>conftest.$ac_ext <<_ACEOF
25019 /* end confdefs.h.  */
25020
25021 /* Override any gcc2 internal prototype to avoid an error.  */
25022 #ifdef __cplusplus
25023 extern "C"
25024 #endif
25025 /* We use char because int might match the return type of a gcc2
25026    builtin and then its argument prototype would still apply.  */
25027 char dlopen ();
25028 int
25029 main ()
25030 {
25031 dlopen ();
25032   ;
25033   return 0;
25034 }
25035 _ACEOF
25036 rm -f conftest.$ac_objext conftest$ac_exeext
25037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25038   (eval $ac_link) 2>conftest.er1
25039   ac_status=$?
25040   grep -v '^ *+' conftest.er1 >conftest.err
25041   rm -f conftest.er1
25042   cat conftest.err >&5
25043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044   (exit $ac_status); } &&
25045          { ac_try='test -z "$ac_c_werror_flag"
25046                          || test ! -s conftest.err'
25047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25048   (eval $ac_try) 2>&5
25049   ac_status=$?
25050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051   (exit $ac_status); }; } &&
25052          { ac_try='test -s conftest$ac_exeext'
25053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25054   (eval $ac_try) 2>&5
25055   ac_status=$?
25056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057   (exit $ac_status); }; }; then
25058   ac_cv_search_dlopen="-l$ac_lib"
25059 break
25060 else
25061   echo "$as_me: failed program was:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25063
25064 fi
25065 rm -f conftest.err conftest.$ac_objext \
25066       conftest$ac_exeext conftest.$ac_ext
25067   done
25068 fi
25069 LIBS=$ac_func_search_save_LIBS
25070 fi
25071 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25072 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25073 if test "$ac_cv_search_dlopen" != no; then
25074   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25075
25076 cat >>confdefs.h <<\_ACEOF
25077 #define HAVE_DLOPEN 1
25078 _ACEOF
25079
25080 else
25081   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25082 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25083 fi
25084
25085
25086 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25087 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25088 if test "${ac_cv_search_mallinfo+set}" = set; then
25089   echo $ECHO_N "(cached) $ECHO_C" >&6
25090 else
25091   ac_func_search_save_LIBS=$LIBS
25092 ac_cv_search_mallinfo=no
25093 cat >conftest.$ac_ext <<_ACEOF
25094 /* confdefs.h.  */
25095 _ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h.  */
25099
25100 /* Override any gcc2 internal prototype to avoid an error.  */
25101 #ifdef __cplusplus
25102 extern "C"
25103 #endif
25104 /* We use char because int might match the return type of a gcc2
25105    builtin and then its argument prototype would still apply.  */
25106 char mallinfo ();
25107 int
25108 main ()
25109 {
25110 mallinfo ();
25111   ;
25112   return 0;
25113 }
25114 _ACEOF
25115 rm -f conftest.$ac_objext conftest$ac_exeext
25116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25117   (eval $ac_link) 2>conftest.er1
25118   ac_status=$?
25119   grep -v '^ *+' conftest.er1 >conftest.err
25120   rm -f conftest.er1
25121   cat conftest.err >&5
25122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123   (exit $ac_status); } &&
25124          { ac_try='test -z "$ac_c_werror_flag"
25125                          || test ! -s conftest.err'
25126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25127   (eval $ac_try) 2>&5
25128   ac_status=$?
25129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130   (exit $ac_status); }; } &&
25131          { ac_try='test -s conftest$ac_exeext'
25132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25133   (eval $ac_try) 2>&5
25134   ac_status=$?
25135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136   (exit $ac_status); }; }; then
25137   ac_cv_search_mallinfo="none required"
25138 else
25139   echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25141
25142 fi
25143 rm -f conftest.err conftest.$ac_objext \
25144       conftest$ac_exeext conftest.$ac_ext
25145 if test "$ac_cv_search_mallinfo" = no; then
25146   for ac_lib in malloc; do
25147     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25148     cat >conftest.$ac_ext <<_ACEOF
25149 /* confdefs.h.  */
25150 _ACEOF
25151 cat confdefs.h >>conftest.$ac_ext
25152 cat >>conftest.$ac_ext <<_ACEOF
25153 /* end confdefs.h.  */
25154
25155 /* Override any gcc2 internal prototype to avoid an error.  */
25156 #ifdef __cplusplus
25157 extern "C"
25158 #endif
25159 /* We use char because int might match the return type of a gcc2
25160    builtin and then its argument prototype would still apply.  */
25161 char mallinfo ();
25162 int
25163 main ()
25164 {
25165 mallinfo ();
25166   ;
25167   return 0;
25168 }
25169 _ACEOF
25170 rm -f conftest.$ac_objext conftest$ac_exeext
25171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25172   (eval $ac_link) 2>conftest.er1
25173   ac_status=$?
25174   grep -v '^ *+' conftest.er1 >conftest.err
25175   rm -f conftest.er1
25176   cat conftest.err >&5
25177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178   (exit $ac_status); } &&
25179          { ac_try='test -z "$ac_c_werror_flag"
25180                          || test ! -s conftest.err'
25181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25182   (eval $ac_try) 2>&5
25183   ac_status=$?
25184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185   (exit $ac_status); }; } &&
25186          { ac_try='test -s conftest$ac_exeext'
25187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25188   (eval $ac_try) 2>&5
25189   ac_status=$?
25190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191   (exit $ac_status); }; }; then
25192   ac_cv_search_mallinfo="-l$ac_lib"
25193 break
25194 else
25195   echo "$as_me: failed program was:" >&5
25196 sed 's/^/| /' conftest.$ac_ext >&5
25197
25198 fi
25199 rm -f conftest.err conftest.$ac_objext \
25200       conftest$ac_exeext conftest.$ac_ext
25201   done
25202 fi
25203 LIBS=$ac_func_search_save_LIBS
25204 fi
25205 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25206 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25207 if test "$ac_cv_search_mallinfo" != no; then
25208   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25209
25210 cat >>confdefs.h <<\_ACEOF
25211 #define HAVE_MALLINFO 1
25212 _ACEOF
25213
25214 fi
25215
25216
25217 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25218 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25219 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25220   echo $ECHO_N "(cached) $ECHO_C" >&6
25221 else
25222   ac_func_search_save_LIBS=$LIBS
25223 ac_cv_search_pthread_mutex_lock=no
25224 cat >conftest.$ac_ext <<_ACEOF
25225 /* confdefs.h.  */
25226 _ACEOF
25227 cat confdefs.h >>conftest.$ac_ext
25228 cat >>conftest.$ac_ext <<_ACEOF
25229 /* end confdefs.h.  */
25230
25231 /* Override any gcc2 internal prototype to avoid an error.  */
25232 #ifdef __cplusplus
25233 extern "C"
25234 #endif
25235 /* We use char because int might match the return type of a gcc2
25236    builtin and then its argument prototype would still apply.  */
25237 char pthread_mutex_lock ();
25238 int
25239 main ()
25240 {
25241 pthread_mutex_lock ();
25242   ;
25243   return 0;
25244 }
25245 _ACEOF
25246 rm -f conftest.$ac_objext conftest$ac_exeext
25247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25248   (eval $ac_link) 2>conftest.er1
25249   ac_status=$?
25250   grep -v '^ *+' conftest.er1 >conftest.err
25251   rm -f conftest.er1
25252   cat conftest.err >&5
25253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254   (exit $ac_status); } &&
25255          { ac_try='test -z "$ac_c_werror_flag"
25256                          || test ! -s conftest.err'
25257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258   (eval $ac_try) 2>&5
25259   ac_status=$?
25260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261   (exit $ac_status); }; } &&
25262          { ac_try='test -s conftest$ac_exeext'
25263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25264   (eval $ac_try) 2>&5
25265   ac_status=$?
25266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267   (exit $ac_status); }; }; then
25268   ac_cv_search_pthread_mutex_lock="none required"
25269 else
25270   echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25272
25273 fi
25274 rm -f conftest.err conftest.$ac_objext \
25275       conftest$ac_exeext conftest.$ac_ext
25276 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25277   for ac_lib in pthread; do
25278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25279     cat >conftest.$ac_ext <<_ACEOF
25280 /* confdefs.h.  */
25281 _ACEOF
25282 cat confdefs.h >>conftest.$ac_ext
25283 cat >>conftest.$ac_ext <<_ACEOF
25284 /* end confdefs.h.  */
25285
25286 /* Override any gcc2 internal prototype to avoid an error.  */
25287 #ifdef __cplusplus
25288 extern "C"
25289 #endif
25290 /* We use char because int might match the return type of a gcc2
25291    builtin and then its argument prototype would still apply.  */
25292 char pthread_mutex_lock ();
25293 int
25294 main ()
25295 {
25296 pthread_mutex_lock ();
25297   ;
25298   return 0;
25299 }
25300 _ACEOF
25301 rm -f conftest.$ac_objext conftest$ac_exeext
25302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25303   (eval $ac_link) 2>conftest.er1
25304   ac_status=$?
25305   grep -v '^ *+' conftest.er1 >conftest.err
25306   rm -f conftest.er1
25307   cat conftest.err >&5
25308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309   (exit $ac_status); } &&
25310          { ac_try='test -z "$ac_c_werror_flag"
25311                          || test ! -s conftest.err'
25312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25313   (eval $ac_try) 2>&5
25314   ac_status=$?
25315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316   (exit $ac_status); }; } &&
25317          { ac_try='test -s conftest$ac_exeext'
25318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25319   (eval $ac_try) 2>&5
25320   ac_status=$?
25321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322   (exit $ac_status); }; }; then
25323   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25324 break
25325 else
25326   echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25328
25329 fi
25330 rm -f conftest.err conftest.$ac_objext \
25331       conftest$ac_exeext conftest.$ac_ext
25332   done
25333 fi
25334 LIBS=$ac_func_search_save_LIBS
25335 fi
25336 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25337 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25338 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25339   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25340
25341 cat >>confdefs.h <<\_ACEOF
25342 #define HAVE_PTHREAD_MUTEX_LOCK 1
25343 _ACEOF
25344
25345 fi
25346
25347
25348
25349
25350
25351
25352
25353
25354 ac_header_dirent=no
25355 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25356   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25357 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25358 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25360   echo $ECHO_N "(cached) $ECHO_C" >&6
25361 else
25362   cat >conftest.$ac_ext <<_ACEOF
25363 /* confdefs.h.  */
25364 _ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h.  */
25368 #include <sys/types.h>
25369 #include <$ac_hdr>
25370
25371 int
25372 main ()
25373 {
25374 if ((DIR *) 0)
25375 return 0;
25376   ;
25377   return 0;
25378 }
25379 _ACEOF
25380 rm -f conftest.$ac_objext
25381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25382   (eval $ac_compile) 2>conftest.er1
25383   ac_status=$?
25384   grep -v '^ *+' conftest.er1 >conftest.err
25385   rm -f conftest.er1
25386   cat conftest.err >&5
25387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388   (exit $ac_status); } &&
25389          { ac_try='test -z "$ac_c_werror_flag"
25390                          || test ! -s conftest.err'
25391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25392   (eval $ac_try) 2>&5
25393   ac_status=$?
25394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395   (exit $ac_status); }; } &&
25396          { ac_try='test -s conftest.$ac_objext'
25397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25398   (eval $ac_try) 2>&5
25399   ac_status=$?
25400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401   (exit $ac_status); }; }; then
25402   eval "$as_ac_Header=yes"
25403 else
25404   echo "$as_me: failed program was:" >&5
25405 sed 's/^/| /' conftest.$ac_ext >&5
25406
25407 eval "$as_ac_Header=no"
25408 fi
25409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25410 fi
25411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25414   cat >>confdefs.h <<_ACEOF
25415 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25416 _ACEOF
25417
25418 ac_header_dirent=$ac_hdr; break
25419 fi
25420
25421 done
25422 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25423 if test $ac_header_dirent = dirent.h; then
25424   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25425 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25426 if test "${ac_cv_search_opendir+set}" = set; then
25427   echo $ECHO_N "(cached) $ECHO_C" >&6
25428 else
25429   ac_func_search_save_LIBS=$LIBS
25430 ac_cv_search_opendir=no
25431 cat >conftest.$ac_ext <<_ACEOF
25432 /* confdefs.h.  */
25433 _ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h.  */
25437
25438 /* Override any gcc2 internal prototype to avoid an error.  */
25439 #ifdef __cplusplus
25440 extern "C"
25441 #endif
25442 /* We use char because int might match the return type of a gcc2
25443    builtin and then its argument prototype would still apply.  */
25444 char opendir ();
25445 int
25446 main ()
25447 {
25448 opendir ();
25449   ;
25450   return 0;
25451 }
25452 _ACEOF
25453 rm -f conftest.$ac_objext conftest$ac_exeext
25454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25455   (eval $ac_link) 2>conftest.er1
25456   ac_status=$?
25457   grep -v '^ *+' conftest.er1 >conftest.err
25458   rm -f conftest.er1
25459   cat conftest.err >&5
25460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461   (exit $ac_status); } &&
25462          { ac_try='test -z "$ac_c_werror_flag"
25463                          || test ! -s conftest.err'
25464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25465   (eval $ac_try) 2>&5
25466   ac_status=$?
25467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468   (exit $ac_status); }; } &&
25469          { ac_try='test -s conftest$ac_exeext'
25470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25471   (eval $ac_try) 2>&5
25472   ac_status=$?
25473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474   (exit $ac_status); }; }; then
25475   ac_cv_search_opendir="none required"
25476 else
25477   echo "$as_me: failed program was:" >&5
25478 sed 's/^/| /' conftest.$ac_ext >&5
25479
25480 fi
25481 rm -f conftest.err conftest.$ac_objext \
25482       conftest$ac_exeext conftest.$ac_ext
25483 if test "$ac_cv_search_opendir" = no; then
25484   for ac_lib in dir; do
25485     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25486     cat >conftest.$ac_ext <<_ACEOF
25487 /* confdefs.h.  */
25488 _ACEOF
25489 cat confdefs.h >>conftest.$ac_ext
25490 cat >>conftest.$ac_ext <<_ACEOF
25491 /* end confdefs.h.  */
25492
25493 /* Override any gcc2 internal prototype to avoid an error.  */
25494 #ifdef __cplusplus
25495 extern "C"
25496 #endif
25497 /* We use char because int might match the return type of a gcc2
25498    builtin and then its argument prototype would still apply.  */
25499 char opendir ();
25500 int
25501 main ()
25502 {
25503 opendir ();
25504   ;
25505   return 0;
25506 }
25507 _ACEOF
25508 rm -f conftest.$ac_objext conftest$ac_exeext
25509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25510   (eval $ac_link) 2>conftest.er1
25511   ac_status=$?
25512   grep -v '^ *+' conftest.er1 >conftest.err
25513   rm -f conftest.er1
25514   cat conftest.err >&5
25515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516   (exit $ac_status); } &&
25517          { ac_try='test -z "$ac_c_werror_flag"
25518                          || test ! -s conftest.err'
25519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520   (eval $ac_try) 2>&5
25521   ac_status=$?
25522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523   (exit $ac_status); }; } &&
25524          { ac_try='test -s 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_search_opendir="-l$ac_lib"
25531 break
25532 else
25533   echo "$as_me: failed program was:" >&5
25534 sed 's/^/| /' conftest.$ac_ext >&5
25535
25536 fi
25537 rm -f conftest.err conftest.$ac_objext \
25538       conftest$ac_exeext conftest.$ac_ext
25539   done
25540 fi
25541 LIBS=$ac_func_search_save_LIBS
25542 fi
25543 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25544 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25545 if test "$ac_cv_search_opendir" != no; then
25546   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25547
25548 fi
25549
25550 else
25551   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25552 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25553 if test "${ac_cv_search_opendir+set}" = set; then
25554   echo $ECHO_N "(cached) $ECHO_C" >&6
25555 else
25556   ac_func_search_save_LIBS=$LIBS
25557 ac_cv_search_opendir=no
25558 cat >conftest.$ac_ext <<_ACEOF
25559 /* confdefs.h.  */
25560 _ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h.  */
25564
25565 /* Override any gcc2 internal prototype to avoid an error.  */
25566 #ifdef __cplusplus
25567 extern "C"
25568 #endif
25569 /* We use char because int might match the return type of a gcc2
25570    builtin and then its argument prototype would still apply.  */
25571 char opendir ();
25572 int
25573 main ()
25574 {
25575 opendir ();
25576   ;
25577   return 0;
25578 }
25579 _ACEOF
25580 rm -f conftest.$ac_objext conftest$ac_exeext
25581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25582   (eval $ac_link) 2>conftest.er1
25583   ac_status=$?
25584   grep -v '^ *+' conftest.er1 >conftest.err
25585   rm -f conftest.er1
25586   cat conftest.err >&5
25587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588   (exit $ac_status); } &&
25589          { ac_try='test -z "$ac_c_werror_flag"
25590                          || test ! -s conftest.err'
25591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592   (eval $ac_try) 2>&5
25593   ac_status=$?
25594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595   (exit $ac_status); }; } &&
25596          { ac_try='test -s conftest$ac_exeext'
25597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25598   (eval $ac_try) 2>&5
25599   ac_status=$?
25600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601   (exit $ac_status); }; }; then
25602   ac_cv_search_opendir="none required"
25603 else
25604   echo "$as_me: failed program was:" >&5
25605 sed 's/^/| /' conftest.$ac_ext >&5
25606
25607 fi
25608 rm -f conftest.err conftest.$ac_objext \
25609       conftest$ac_exeext conftest.$ac_ext
25610 if test "$ac_cv_search_opendir" = no; then
25611   for ac_lib in x; do
25612     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25613     cat >conftest.$ac_ext <<_ACEOF
25614 /* confdefs.h.  */
25615 _ACEOF
25616 cat confdefs.h >>conftest.$ac_ext
25617 cat >>conftest.$ac_ext <<_ACEOF
25618 /* end confdefs.h.  */
25619
25620 /* Override any gcc2 internal prototype to avoid an error.  */
25621 #ifdef __cplusplus
25622 extern "C"
25623 #endif
25624 /* We use char because int might match the return type of a gcc2
25625    builtin and then its argument prototype would still apply.  */
25626 char opendir ();
25627 int
25628 main ()
25629 {
25630 opendir ();
25631   ;
25632   return 0;
25633 }
25634 _ACEOF
25635 rm -f conftest.$ac_objext conftest$ac_exeext
25636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25637   (eval $ac_link) 2>conftest.er1
25638   ac_status=$?
25639   grep -v '^ *+' conftest.er1 >conftest.err
25640   rm -f conftest.er1
25641   cat conftest.err >&5
25642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643   (exit $ac_status); } &&
25644          { ac_try='test -z "$ac_c_werror_flag"
25645                          || test ! -s conftest.err'
25646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25647   (eval $ac_try) 2>&5
25648   ac_status=$?
25649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650   (exit $ac_status); }; } &&
25651          { ac_try='test -s conftest$ac_exeext'
25652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25653   (eval $ac_try) 2>&5
25654   ac_status=$?
25655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656   (exit $ac_status); }; }; then
25657   ac_cv_search_opendir="-l$ac_lib"
25658 break
25659 else
25660   echo "$as_me: failed program was:" >&5
25661 sed 's/^/| /' conftest.$ac_ext >&5
25662
25663 fi
25664 rm -f conftest.err conftest.$ac_objext \
25665       conftest$ac_exeext conftest.$ac_ext
25666   done
25667 fi
25668 LIBS=$ac_func_search_save_LIBS
25669 fi
25670 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25671 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25672 if test "$ac_cv_search_opendir" != no; then
25673   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25674
25675 fi
25676
25677 fi
25678
25679 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25680 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25681 if test "${ac_cv_header_mmap_anon+set}" = set; then
25682   echo $ECHO_N "(cached) $ECHO_C" >&6
25683 else
25684    ac_ext=c
25685 ac_cpp='$CPP $CPPFLAGS'
25686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25689
25690   cat >conftest.$ac_ext <<_ACEOF
25691 /* confdefs.h.  */
25692 _ACEOF
25693 cat confdefs.h >>conftest.$ac_ext
25694 cat >>conftest.$ac_ext <<_ACEOF
25695 /* end confdefs.h.  */
25696 #include <sys/mman.h>
25697 #include <unistd.h>
25698 #include <fcntl.h>
25699 int
25700 main ()
25701 {
25702 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25703   ;
25704   return 0;
25705 }
25706 _ACEOF
25707 rm -f conftest.$ac_objext
25708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25709   (eval $ac_compile) 2>conftest.er1
25710   ac_status=$?
25711   grep -v '^ *+' conftest.er1 >conftest.err
25712   rm -f conftest.er1
25713   cat conftest.err >&5
25714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715   (exit $ac_status); } &&
25716          { ac_try='test -z "$ac_c_werror_flag"
25717                          || test ! -s conftest.err'
25718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25719   (eval $ac_try) 2>&5
25720   ac_status=$?
25721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722   (exit $ac_status); }; } &&
25723          { ac_try='test -s conftest.$ac_objext'
25724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25725   (eval $ac_try) 2>&5
25726   ac_status=$?
25727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728   (exit $ac_status); }; }; then
25729   ac_cv_header_mmap_anon=yes
25730 else
25731   echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25733
25734 ac_cv_header_mmap_anon=no
25735 fi
25736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25737   ac_ext=c
25738 ac_cpp='$CPP $CPPFLAGS'
25739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25742
25743
25744 fi
25745 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25746 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25747 if test "$ac_cv_header_mmap_anon" = yes; then
25748
25749 cat >>confdefs.h <<\_ACEOF
25750 #define HAVE_MMAP_ANONYMOUS 1
25751 _ACEOF
25752
25753 fi
25754
25755 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25756 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25757 if test "${ac_cv_header_stat_broken+set}" = set; then
25758   echo $ECHO_N "(cached) $ECHO_C" >&6
25759 else
25760   cat >conftest.$ac_ext <<_ACEOF
25761 /* confdefs.h.  */
25762 _ACEOF
25763 cat confdefs.h >>conftest.$ac_ext
25764 cat >>conftest.$ac_ext <<_ACEOF
25765 /* end confdefs.h.  */
25766 #include <sys/types.h>
25767 #include <sys/stat.h>
25768
25769 #if defined(S_ISBLK) && defined(S_IFDIR)
25770 # if S_ISBLK (S_IFDIR)
25771 You lose.
25772 # endif
25773 #endif
25774
25775 #if defined(S_ISBLK) && defined(S_IFCHR)
25776 # if S_ISBLK (S_IFCHR)
25777 You lose.
25778 # endif
25779 #endif
25780
25781 #if defined(S_ISLNK) && defined(S_IFREG)
25782 # if S_ISLNK (S_IFREG)
25783 You lose.
25784 # endif
25785 #endif
25786
25787 #if defined(S_ISSOCK) && defined(S_IFREG)
25788 # if S_ISSOCK (S_IFREG)
25789 You lose.
25790 # endif
25791 #endif
25792
25793 _ACEOF
25794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25795   $EGREP "You lose" >/dev/null 2>&1; then
25796   ac_cv_header_stat_broken=yes
25797 else
25798   ac_cv_header_stat_broken=no
25799 fi
25800 rm -f conftest*
25801
25802 fi
25803 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25804 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25805 if test $ac_cv_header_stat_broken = yes; then
25806
25807 cat >>confdefs.h <<\_ACEOF
25808 #define STAT_MACROS_BROKEN 1
25809 _ACEOF
25810
25811 fi
25812
25813 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25815 if test "${ac_cv_header_stdc+set}" = set; then
25816   echo $ECHO_N "(cached) $ECHO_C" >&6
25817 else
25818   cat >conftest.$ac_ext <<_ACEOF
25819 /* confdefs.h.  */
25820 _ACEOF
25821 cat confdefs.h >>conftest.$ac_ext
25822 cat >>conftest.$ac_ext <<_ACEOF
25823 /* end confdefs.h.  */
25824 #include <stdlib.h>
25825 #include <stdarg.h>
25826 #include <string.h>
25827 #include <float.h>
25828
25829 int
25830 main ()
25831 {
25832
25833   ;
25834   return 0;
25835 }
25836 _ACEOF
25837 rm -f conftest.$ac_objext
25838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25839   (eval $ac_compile) 2>conftest.er1
25840   ac_status=$?
25841   grep -v '^ *+' conftest.er1 >conftest.err
25842   rm -f conftest.er1
25843   cat conftest.err >&5
25844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845   (exit $ac_status); } &&
25846          { ac_try='test -z "$ac_c_werror_flag"
25847                          || test ! -s conftest.err'
25848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849   (eval $ac_try) 2>&5
25850   ac_status=$?
25851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852   (exit $ac_status); }; } &&
25853          { ac_try='test -s conftest.$ac_objext'
25854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855   (eval $ac_try) 2>&5
25856   ac_status=$?
25857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); }; }; then
25859   ac_cv_header_stdc=yes
25860 else
25861   echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25863
25864 ac_cv_header_stdc=no
25865 fi
25866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25867
25868 if test $ac_cv_header_stdc = yes; then
25869   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25870   cat >conftest.$ac_ext <<_ACEOF
25871 /* confdefs.h.  */
25872 _ACEOF
25873 cat confdefs.h >>conftest.$ac_ext
25874 cat >>conftest.$ac_ext <<_ACEOF
25875 /* end confdefs.h.  */
25876 #include <string.h>
25877
25878 _ACEOF
25879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25880   $EGREP "memchr" >/dev/null 2>&1; then
25881   :
25882 else
25883   ac_cv_header_stdc=no
25884 fi
25885 rm -f conftest*
25886
25887 fi
25888
25889 if test $ac_cv_header_stdc = yes; then
25890   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25891   cat >conftest.$ac_ext <<_ACEOF
25892 /* confdefs.h.  */
25893 _ACEOF
25894 cat confdefs.h >>conftest.$ac_ext
25895 cat >>conftest.$ac_ext <<_ACEOF
25896 /* end confdefs.h.  */
25897 #include <stdlib.h>
25898
25899 _ACEOF
25900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25901   $EGREP "free" >/dev/null 2>&1; then
25902   :
25903 else
25904   ac_cv_header_stdc=no
25905 fi
25906 rm -f conftest*
25907
25908 fi
25909
25910 if test $ac_cv_header_stdc = yes; then
25911   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25912   if test "$cross_compiling" = yes; then
25913   :
25914 else
25915   cat >conftest.$ac_ext <<_ACEOF
25916 /* confdefs.h.  */
25917 _ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h.  */
25921 #include <ctype.h>
25922 #if ((' ' & 0x0FF) == 0x020)
25923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25925 #else
25926 # define ISLOWER(c) \
25927                    (('a' <= (c) && (c) <= 'i') \
25928                      || ('j' <= (c) && (c) <= 'r') \
25929                      || ('s' <= (c) && (c) <= 'z'))
25930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25931 #endif
25932
25933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25934 int
25935 main ()
25936 {
25937   int i;
25938   for (i = 0; i < 256; i++)
25939     if (XOR (islower (i), ISLOWER (i))
25940         || toupper (i) != TOUPPER (i))
25941       exit(2);
25942   exit (0);
25943 }
25944 _ACEOF
25945 rm -f conftest$ac_exeext
25946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25947   (eval $ac_link) 2>&5
25948   ac_status=$?
25949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952   (eval $ac_try) 2>&5
25953   ac_status=$?
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); }; }; then
25956   :
25957 else
25958   echo "$as_me: program exited with status $ac_status" >&5
25959 echo "$as_me: failed program was:" >&5
25960 sed 's/^/| /' conftest.$ac_ext >&5
25961
25962 ( exit $ac_status )
25963 ac_cv_header_stdc=no
25964 fi
25965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25966 fi
25967 fi
25968 fi
25969 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25970 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25971 if test $ac_cv_header_stdc = yes; then
25972
25973 cat >>confdefs.h <<\_ACEOF
25974 #define STDC_HEADERS 1
25975 _ACEOF
25976
25977 fi
25978
25979 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25980 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25981 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25982   echo $ECHO_N "(cached) $ECHO_C" >&6
25983 else
25984   cat >conftest.$ac_ext <<_ACEOF
25985 /* confdefs.h.  */
25986 _ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h.  */
25990 #include <sys/types.h>
25991 #include <sys/wait.h>
25992 #ifndef WEXITSTATUS
25993 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25994 #endif
25995 #ifndef WIFEXITED
25996 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25997 #endif
25998
25999 int
26000 main ()
26001 {
26002   int s;
26003   wait (&s);
26004   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26005   ;
26006   return 0;
26007 }
26008 _ACEOF
26009 rm -f conftest.$ac_objext
26010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26011   (eval $ac_compile) 2>conftest.er1
26012   ac_status=$?
26013   grep -v '^ *+' conftest.er1 >conftest.err
26014   rm -f conftest.er1
26015   cat conftest.err >&5
26016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017   (exit $ac_status); } &&
26018          { ac_try='test -z "$ac_c_werror_flag"
26019                          || test ! -s conftest.err'
26020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021   (eval $ac_try) 2>&5
26022   ac_status=$?
26023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024   (exit $ac_status); }; } &&
26025          { ac_try='test -s conftest.$ac_objext'
26026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027   (eval $ac_try) 2>&5
26028   ac_status=$?
26029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030   (exit $ac_status); }; }; then
26031   ac_cv_header_sys_wait_h=yes
26032 else
26033   echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26035
26036 ac_cv_header_sys_wait_h=no
26037 fi
26038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26039 fi
26040 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26041 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26042 if test $ac_cv_header_sys_wait_h = yes; then
26043
26044 cat >>confdefs.h <<\_ACEOF
26045 #define HAVE_SYS_WAIT_H 1
26046 _ACEOF
26047
26048 fi
26049
26050 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26051 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26052 if test "${ac_cv_header_time+set}" = set; then
26053   echo $ECHO_N "(cached) $ECHO_C" >&6
26054 else
26055   cat >conftest.$ac_ext <<_ACEOF
26056 /* confdefs.h.  */
26057 _ACEOF
26058 cat confdefs.h >>conftest.$ac_ext
26059 cat >>conftest.$ac_ext <<_ACEOF
26060 /* end confdefs.h.  */
26061 #include <sys/types.h>
26062 #include <sys/time.h>
26063 #include <time.h>
26064
26065 int
26066 main ()
26067 {
26068 if ((struct tm *) 0)
26069 return 0;
26070   ;
26071   return 0;
26072 }
26073 _ACEOF
26074 rm -f conftest.$ac_objext
26075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26076   (eval $ac_compile) 2>conftest.er1
26077   ac_status=$?
26078   grep -v '^ *+' conftest.er1 >conftest.err
26079   rm -f conftest.er1
26080   cat conftest.err >&5
26081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082   (exit $ac_status); } &&
26083          { ac_try='test -z "$ac_c_werror_flag"
26084                          || test ! -s conftest.err'
26085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26086   (eval $ac_try) 2>&5
26087   ac_status=$?
26088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089   (exit $ac_status); }; } &&
26090          { ac_try='test -s conftest.$ac_objext'
26091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26092   (eval $ac_try) 2>&5
26093   ac_status=$?
26094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095   (exit $ac_status); }; }; then
26096   ac_cv_header_time=yes
26097 else
26098   echo "$as_me: failed program was:" >&5
26099 sed 's/^/| /' conftest.$ac_ext >&5
26100
26101 ac_cv_header_time=no
26102 fi
26103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26104 fi
26105 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26106 echo "${ECHO_T}$ac_cv_header_time" >&6
26107 if test $ac_cv_header_time = yes; then
26108
26109 cat >>confdefs.h <<\_ACEOF
26110 #define TIME_WITH_SYS_TIME 1
26111 _ACEOF
26112
26113 fi
26114
26115
26116
26117
26118
26119
26120
26121
26122 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26123 do
26124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26126   echo "$as_me:$LINENO: checking for $ac_header" >&5
26127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26129   echo $ECHO_N "(cached) $ECHO_C" >&6
26130 fi
26131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26133 else
26134   # Is the header compilable?
26135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26137 cat >conftest.$ac_ext <<_ACEOF
26138 /* confdefs.h.  */
26139 _ACEOF
26140 cat confdefs.h >>conftest.$ac_ext
26141 cat >>conftest.$ac_ext <<_ACEOF
26142 /* end confdefs.h.  */
26143 $ac_includes_default
26144 #include <$ac_header>
26145 _ACEOF
26146 rm -f conftest.$ac_objext
26147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26148   (eval $ac_compile) 2>conftest.er1
26149   ac_status=$?
26150   grep -v '^ *+' conftest.er1 >conftest.err
26151   rm -f conftest.er1
26152   cat conftest.err >&5
26153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154   (exit $ac_status); } &&
26155          { ac_try='test -z "$ac_c_werror_flag"
26156                          || test ! -s conftest.err'
26157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26158   (eval $ac_try) 2>&5
26159   ac_status=$?
26160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161   (exit $ac_status); }; } &&
26162          { ac_try='test -s conftest.$ac_objext'
26163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26164   (eval $ac_try) 2>&5
26165   ac_status=$?
26166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167   (exit $ac_status); }; }; then
26168   ac_header_compiler=yes
26169 else
26170   echo "$as_me: failed program was:" >&5
26171 sed 's/^/| /' conftest.$ac_ext >&5
26172
26173 ac_header_compiler=no
26174 fi
26175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26177 echo "${ECHO_T}$ac_header_compiler" >&6
26178
26179 # Is the header present?
26180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26182 cat >conftest.$ac_ext <<_ACEOF
26183 /* confdefs.h.  */
26184 _ACEOF
26185 cat confdefs.h >>conftest.$ac_ext
26186 cat >>conftest.$ac_ext <<_ACEOF
26187 /* end confdefs.h.  */
26188 #include <$ac_header>
26189 _ACEOF
26190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26192   ac_status=$?
26193   grep -v '^ *+' conftest.er1 >conftest.err
26194   rm -f conftest.er1
26195   cat conftest.err >&5
26196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197   (exit $ac_status); } >/dev/null; then
26198   if test -s conftest.err; then
26199     ac_cpp_err=$ac_c_preproc_warn_flag
26200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26201   else
26202     ac_cpp_err=
26203   fi
26204 else
26205   ac_cpp_err=yes
26206 fi
26207 if test -z "$ac_cpp_err"; then
26208   ac_header_preproc=yes
26209 else
26210   echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26212
26213   ac_header_preproc=no
26214 fi
26215 rm -f conftest.err conftest.$ac_ext
26216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26217 echo "${ECHO_T}$ac_header_preproc" >&6
26218
26219 # So?  What about this header?
26220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26221   yes:no: )
26222     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26226     ac_header_preproc=yes
26227     ;;
26228   no:yes:* )
26229     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26231     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26232 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26233     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26235     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26236 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26239     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26241     (
26242       cat <<\_ASBOX
26243 ## ----------------------------------- ##
26244 ## Report this to llvmbugs@cs.uiuc.edu ##
26245 ## ----------------------------------- ##
26246 _ASBOX
26247     ) |
26248       sed "s/^/$as_me: WARNING:     /" >&2
26249     ;;
26250 esac
26251 echo "$as_me:$LINENO: checking for $ac_header" >&5
26252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26254   echo $ECHO_N "(cached) $ECHO_C" >&6
26255 else
26256   eval "$as_ac_Header=\$ac_header_preproc"
26257 fi
26258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26260
26261 fi
26262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26263   cat >>confdefs.h <<_ACEOF
26264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26265 _ACEOF
26266
26267 fi
26268
26269 done
26270
26271
26272
26273
26274
26275
26276
26277 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26278 do
26279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26281   echo "$as_me:$LINENO: checking for $ac_header" >&5
26282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26284   echo $ECHO_N "(cached) $ECHO_C" >&6
26285 fi
26286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26288 else
26289   # Is the header compilable?
26290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26292 cat >conftest.$ac_ext <<_ACEOF
26293 /* confdefs.h.  */
26294 _ACEOF
26295 cat confdefs.h >>conftest.$ac_ext
26296 cat >>conftest.$ac_ext <<_ACEOF
26297 /* end confdefs.h.  */
26298 $ac_includes_default
26299 #include <$ac_header>
26300 _ACEOF
26301 rm -f conftest.$ac_objext
26302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26303   (eval $ac_compile) 2>conftest.er1
26304   ac_status=$?
26305   grep -v '^ *+' conftest.er1 >conftest.err
26306   rm -f conftest.er1
26307   cat conftest.err >&5
26308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309   (exit $ac_status); } &&
26310          { ac_try='test -z "$ac_c_werror_flag"
26311                          || test ! -s conftest.err'
26312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313   (eval $ac_try) 2>&5
26314   ac_status=$?
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); }; } &&
26317          { ac_try='test -s conftest.$ac_objext'
26318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319   (eval $ac_try) 2>&5
26320   ac_status=$?
26321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322   (exit $ac_status); }; }; then
26323   ac_header_compiler=yes
26324 else
26325   echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.$ac_ext >&5
26327
26328 ac_header_compiler=no
26329 fi
26330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26332 echo "${ECHO_T}$ac_header_compiler" >&6
26333
26334 # Is the header present?
26335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26337 cat >conftest.$ac_ext <<_ACEOF
26338 /* confdefs.h.  */
26339 _ACEOF
26340 cat confdefs.h >>conftest.$ac_ext
26341 cat >>conftest.$ac_ext <<_ACEOF
26342 /* end confdefs.h.  */
26343 #include <$ac_header>
26344 _ACEOF
26345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26347   ac_status=$?
26348   grep -v '^ *+' conftest.er1 >conftest.err
26349   rm -f conftest.er1
26350   cat conftest.err >&5
26351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352   (exit $ac_status); } >/dev/null; then
26353   if test -s conftest.err; then
26354     ac_cpp_err=$ac_c_preproc_warn_flag
26355     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26356   else
26357     ac_cpp_err=
26358   fi
26359 else
26360   ac_cpp_err=yes
26361 fi
26362 if test -z "$ac_cpp_err"; then
26363   ac_header_preproc=yes
26364 else
26365   echo "$as_me: failed program was:" >&5
26366 sed 's/^/| /' conftest.$ac_ext >&5
26367
26368   ac_header_preproc=no
26369 fi
26370 rm -f conftest.err conftest.$ac_ext
26371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26372 echo "${ECHO_T}$ac_header_preproc" >&6
26373
26374 # So?  What about this header?
26375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26376   yes:no: )
26377     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26381     ac_header_preproc=yes
26382     ;;
26383   no:yes:* )
26384     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26386     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26387 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26388     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26390     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26391 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26394     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26396     (
26397       cat <<\_ASBOX
26398 ## ----------------------------------- ##
26399 ## Report this to llvmbugs@cs.uiuc.edu ##
26400 ## ----------------------------------- ##
26401 _ASBOX
26402     ) |
26403       sed "s/^/$as_me: WARNING:     /" >&2
26404     ;;
26405 esac
26406 echo "$as_me:$LINENO: checking for $ac_header" >&5
26407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26409   echo $ECHO_N "(cached) $ECHO_C" >&6
26410 else
26411   eval "$as_ac_Header=\$ac_header_preproc"
26412 fi
26413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26415
26416 fi
26417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26418   cat >>confdefs.h <<_ACEOF
26419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26420 _ACEOF
26421
26422 fi
26423
26424 done
26425
26426
26427
26428
26429
26430
26431 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26432 do
26433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26435   echo "$as_me:$LINENO: checking for $ac_header" >&5
26436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26438   echo $ECHO_N "(cached) $ECHO_C" >&6
26439 fi
26440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26442 else
26443   # Is the header compilable?
26444 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26446 cat >conftest.$ac_ext <<_ACEOF
26447 /* confdefs.h.  */
26448 _ACEOF
26449 cat confdefs.h >>conftest.$ac_ext
26450 cat >>conftest.$ac_ext <<_ACEOF
26451 /* end confdefs.h.  */
26452 $ac_includes_default
26453 #include <$ac_header>
26454 _ACEOF
26455 rm -f conftest.$ac_objext
26456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26457   (eval $ac_compile) 2>conftest.er1
26458   ac_status=$?
26459   grep -v '^ *+' conftest.er1 >conftest.err
26460   rm -f conftest.er1
26461   cat conftest.err >&5
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); } &&
26464          { ac_try='test -z "$ac_c_werror_flag"
26465                          || test ! -s conftest.err'
26466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26467   (eval $ac_try) 2>&5
26468   ac_status=$?
26469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470   (exit $ac_status); }; } &&
26471          { ac_try='test -s conftest.$ac_objext'
26472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26473   (eval $ac_try) 2>&5
26474   ac_status=$?
26475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476   (exit $ac_status); }; }; then
26477   ac_header_compiler=yes
26478 else
26479   echo "$as_me: failed program was:" >&5
26480 sed 's/^/| /' conftest.$ac_ext >&5
26481
26482 ac_header_compiler=no
26483 fi
26484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26486 echo "${ECHO_T}$ac_header_compiler" >&6
26487
26488 # Is the header present?
26489 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26491 cat >conftest.$ac_ext <<_ACEOF
26492 /* confdefs.h.  */
26493 _ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h.  */
26497 #include <$ac_header>
26498 _ACEOF
26499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26501   ac_status=$?
26502   grep -v '^ *+' conftest.er1 >conftest.err
26503   rm -f conftest.er1
26504   cat conftest.err >&5
26505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506   (exit $ac_status); } >/dev/null; then
26507   if test -s conftest.err; then
26508     ac_cpp_err=$ac_c_preproc_warn_flag
26509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26510   else
26511     ac_cpp_err=
26512   fi
26513 else
26514   ac_cpp_err=yes
26515 fi
26516 if test -z "$ac_cpp_err"; then
26517   ac_header_preproc=yes
26518 else
26519   echo "$as_me: failed program was:" >&5
26520 sed 's/^/| /' conftest.$ac_ext >&5
26521
26522   ac_header_preproc=no
26523 fi
26524 rm -f conftest.err conftest.$ac_ext
26525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26526 echo "${ECHO_T}$ac_header_preproc" >&6
26527
26528 # So?  What about this header?
26529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26530   yes:no: )
26531     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26535     ac_header_preproc=yes
26536     ;;
26537   no:yes:* )
26538     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26540     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26541 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26542     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26544     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26545 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26548     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26550     (
26551       cat <<\_ASBOX
26552 ## ----------------------------------- ##
26553 ## Report this to llvmbugs@cs.uiuc.edu ##
26554 ## ----------------------------------- ##
26555 _ASBOX
26556     ) |
26557       sed "s/^/$as_me: WARNING:     /" >&2
26558     ;;
26559 esac
26560 echo "$as_me:$LINENO: checking for $ac_header" >&5
26561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26563   echo $ECHO_N "(cached) $ECHO_C" >&6
26564 else
26565   eval "$as_ac_Header=\$ac_header_preproc"
26566 fi
26567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26569
26570 fi
26571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26572   cat >>confdefs.h <<_ACEOF
26573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26574 _ACEOF
26575
26576 fi
26577
26578 done
26579
26580
26581
26582 echo "$as_me:$LINENO: checking for pid_t" >&5
26583 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26584 if test "${ac_cv_type_pid_t+set}" = set; then
26585   echo $ECHO_N "(cached) $ECHO_C" >&6
26586 else
26587   cat >conftest.$ac_ext <<_ACEOF
26588 /* confdefs.h.  */
26589 _ACEOF
26590 cat confdefs.h >>conftest.$ac_ext
26591 cat >>conftest.$ac_ext <<_ACEOF
26592 /* end confdefs.h.  */
26593 $ac_includes_default
26594 int
26595 main ()
26596 {
26597 if ((pid_t *) 0)
26598   return 0;
26599 if (sizeof (pid_t))
26600   return 0;
26601   ;
26602   return 0;
26603 }
26604 _ACEOF
26605 rm -f conftest.$ac_objext
26606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26607   (eval $ac_compile) 2>conftest.er1
26608   ac_status=$?
26609   grep -v '^ *+' conftest.er1 >conftest.err
26610   rm -f conftest.er1
26611   cat conftest.err >&5
26612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613   (exit $ac_status); } &&
26614          { ac_try='test -z "$ac_c_werror_flag"
26615                          || test ! -s conftest.err'
26616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617   (eval $ac_try) 2>&5
26618   ac_status=$?
26619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620   (exit $ac_status); }; } &&
26621          { ac_try='test -s conftest.$ac_objext'
26622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26623   (eval $ac_try) 2>&5
26624   ac_status=$?
26625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626   (exit $ac_status); }; }; then
26627   ac_cv_type_pid_t=yes
26628 else
26629   echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26631
26632 ac_cv_type_pid_t=no
26633 fi
26634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26635 fi
26636 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26637 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26638 if test $ac_cv_type_pid_t = yes; then
26639   :
26640 else
26641
26642 cat >>confdefs.h <<_ACEOF
26643 #define pid_t int
26644 _ACEOF
26645
26646 fi
26647
26648 echo "$as_me:$LINENO: checking for size_t" >&5
26649 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26650 if test "${ac_cv_type_size_t+set}" = set; then
26651   echo $ECHO_N "(cached) $ECHO_C" >&6
26652 else
26653   cat >conftest.$ac_ext <<_ACEOF
26654 /* confdefs.h.  */
26655 _ACEOF
26656 cat confdefs.h >>conftest.$ac_ext
26657 cat >>conftest.$ac_ext <<_ACEOF
26658 /* end confdefs.h.  */
26659 $ac_includes_default
26660 int
26661 main ()
26662 {
26663 if ((size_t *) 0)
26664   return 0;
26665 if (sizeof (size_t))
26666   return 0;
26667   ;
26668   return 0;
26669 }
26670 _ACEOF
26671 rm -f conftest.$ac_objext
26672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26673   (eval $ac_compile) 2>conftest.er1
26674   ac_status=$?
26675   grep -v '^ *+' conftest.er1 >conftest.err
26676   rm -f conftest.er1
26677   cat conftest.err >&5
26678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679   (exit $ac_status); } &&
26680          { ac_try='test -z "$ac_c_werror_flag"
26681                          || test ! -s conftest.err'
26682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683   (eval $ac_try) 2>&5
26684   ac_status=$?
26685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686   (exit $ac_status); }; } &&
26687          { ac_try='test -s conftest.$ac_objext'
26688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26689   (eval $ac_try) 2>&5
26690   ac_status=$?
26691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692   (exit $ac_status); }; }; then
26693   ac_cv_type_size_t=yes
26694 else
26695   echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26697
26698 ac_cv_type_size_t=no
26699 fi
26700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26701 fi
26702 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26703 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26704 if test $ac_cv_type_size_t = yes; then
26705   :
26706 else
26707
26708 cat >>confdefs.h <<_ACEOF
26709 #define size_t unsigned
26710 _ACEOF
26711
26712 fi
26713
26714 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26715 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26716 if test "${ac_cv_type_signal+set}" = set; then
26717   echo $ECHO_N "(cached) $ECHO_C" >&6
26718 else
26719   cat >conftest.$ac_ext <<_ACEOF
26720 /* confdefs.h.  */
26721 _ACEOF
26722 cat confdefs.h >>conftest.$ac_ext
26723 cat >>conftest.$ac_ext <<_ACEOF
26724 /* end confdefs.h.  */
26725 #include <sys/types.h>
26726 #include <signal.h>
26727 #ifdef signal
26728 # undef signal
26729 #endif
26730 #ifdef __cplusplus
26731 extern "C" void (*signal (int, void (*)(int)))(int);
26732 #else
26733 void (*signal ()) ();
26734 #endif
26735
26736 int
26737 main ()
26738 {
26739 int i;
26740   ;
26741   return 0;
26742 }
26743 _ACEOF
26744 rm -f conftest.$ac_objext
26745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26746   (eval $ac_compile) 2>conftest.er1
26747   ac_status=$?
26748   grep -v '^ *+' conftest.er1 >conftest.err
26749   rm -f conftest.er1
26750   cat conftest.err >&5
26751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752   (exit $ac_status); } &&
26753          { ac_try='test -z "$ac_c_werror_flag"
26754                          || test ! -s conftest.err'
26755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756   (eval $ac_try) 2>&5
26757   ac_status=$?
26758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759   (exit $ac_status); }; } &&
26760          { ac_try='test -s conftest.$ac_objext'
26761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26762   (eval $ac_try) 2>&5
26763   ac_status=$?
26764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765   (exit $ac_status); }; }; then
26766   ac_cv_type_signal=void
26767 else
26768   echo "$as_me: failed program was:" >&5
26769 sed 's/^/| /' conftest.$ac_ext >&5
26770
26771 ac_cv_type_signal=int
26772 fi
26773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26774 fi
26775 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26776 echo "${ECHO_T}$ac_cv_type_signal" >&6
26777
26778 cat >>confdefs.h <<_ACEOF
26779 #define RETSIGTYPE $ac_cv_type_signal
26780 _ACEOF
26781
26782
26783 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26784 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26785 if test "${ac_cv_struct_tm+set}" = set; then
26786   echo $ECHO_N "(cached) $ECHO_C" >&6
26787 else
26788   cat >conftest.$ac_ext <<_ACEOF
26789 /* confdefs.h.  */
26790 _ACEOF
26791 cat confdefs.h >>conftest.$ac_ext
26792 cat >>conftest.$ac_ext <<_ACEOF
26793 /* end confdefs.h.  */
26794 #include <sys/types.h>
26795 #include <time.h>
26796
26797 int
26798 main ()
26799 {
26800 struct tm *tp; tp->tm_sec;
26801   ;
26802   return 0;
26803 }
26804 _ACEOF
26805 rm -f conftest.$ac_objext
26806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26807   (eval $ac_compile) 2>conftest.er1
26808   ac_status=$?
26809   grep -v '^ *+' conftest.er1 >conftest.err
26810   rm -f conftest.er1
26811   cat conftest.err >&5
26812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813   (exit $ac_status); } &&
26814          { ac_try='test -z "$ac_c_werror_flag"
26815                          || test ! -s conftest.err'
26816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26817   (eval $ac_try) 2>&5
26818   ac_status=$?
26819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820   (exit $ac_status); }; } &&
26821          { ac_try='test -s conftest.$ac_objext'
26822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26823   (eval $ac_try) 2>&5
26824   ac_status=$?
26825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826   (exit $ac_status); }; }; then
26827   ac_cv_struct_tm=time.h
26828 else
26829   echo "$as_me: failed program was:" >&5
26830 sed 's/^/| /' conftest.$ac_ext >&5
26831
26832 ac_cv_struct_tm=sys/time.h
26833 fi
26834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26835 fi
26836 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26837 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26838 if test $ac_cv_struct_tm = sys/time.h; then
26839
26840 cat >>confdefs.h <<\_ACEOF
26841 #define TM_IN_SYS_TIME 1
26842 _ACEOF
26843
26844 fi
26845
26846 echo "$as_me:$LINENO: checking for int64_t" >&5
26847 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26848 if test "${ac_cv_type_int64_t+set}" = set; then
26849   echo $ECHO_N "(cached) $ECHO_C" >&6
26850 else
26851   cat >conftest.$ac_ext <<_ACEOF
26852 /* confdefs.h.  */
26853 _ACEOF
26854 cat confdefs.h >>conftest.$ac_ext
26855 cat >>conftest.$ac_ext <<_ACEOF
26856 /* end confdefs.h.  */
26857 $ac_includes_default
26858 int
26859 main ()
26860 {
26861 if ((int64_t *) 0)
26862   return 0;
26863 if (sizeof (int64_t))
26864   return 0;
26865   ;
26866   return 0;
26867 }
26868 _ACEOF
26869 rm -f conftest.$ac_objext
26870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26871   (eval $ac_compile) 2>conftest.er1
26872   ac_status=$?
26873   grep -v '^ *+' conftest.er1 >conftest.err
26874   rm -f conftest.er1
26875   cat conftest.err >&5
26876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877   (exit $ac_status); } &&
26878          { ac_try='test -z "$ac_c_werror_flag"
26879                          || test ! -s conftest.err'
26880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26881   (eval $ac_try) 2>&5
26882   ac_status=$?
26883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884   (exit $ac_status); }; } &&
26885          { ac_try='test -s conftest.$ac_objext'
26886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26887   (eval $ac_try) 2>&5
26888   ac_status=$?
26889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890   (exit $ac_status); }; }; then
26891   ac_cv_type_int64_t=yes
26892 else
26893   echo "$as_me: failed program was:" >&5
26894 sed 's/^/| /' conftest.$ac_ext >&5
26895
26896 ac_cv_type_int64_t=no
26897 fi
26898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26899 fi
26900 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26901 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26902 if test $ac_cv_type_int64_t = yes; then
26903
26904 cat >>confdefs.h <<_ACEOF
26905 #define HAVE_INT64_T 1
26906 _ACEOF
26907
26908
26909 else
26910   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26911 echo "$as_me: error: Type int64_t required but not found" >&2;}
26912    { (exit 1); exit 1; }; }
26913 fi
26914
26915 echo "$as_me:$LINENO: checking for uint64_t" >&5
26916 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26917 if test "${ac_cv_type_uint64_t+set}" = set; then
26918   echo $ECHO_N "(cached) $ECHO_C" >&6
26919 else
26920   cat >conftest.$ac_ext <<_ACEOF
26921 /* confdefs.h.  */
26922 _ACEOF
26923 cat confdefs.h >>conftest.$ac_ext
26924 cat >>conftest.$ac_ext <<_ACEOF
26925 /* end confdefs.h.  */
26926 $ac_includes_default
26927 int
26928 main ()
26929 {
26930 if ((uint64_t *) 0)
26931   return 0;
26932 if (sizeof (uint64_t))
26933   return 0;
26934   ;
26935   return 0;
26936 }
26937 _ACEOF
26938 rm -f conftest.$ac_objext
26939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26940   (eval $ac_compile) 2>conftest.er1
26941   ac_status=$?
26942   grep -v '^ *+' conftest.er1 >conftest.err
26943   rm -f conftest.er1
26944   cat conftest.err >&5
26945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946   (exit $ac_status); } &&
26947          { ac_try='test -z "$ac_c_werror_flag"
26948                          || test ! -s conftest.err'
26949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26950   (eval $ac_try) 2>&5
26951   ac_status=$?
26952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953   (exit $ac_status); }; } &&
26954          { ac_try='test -s conftest.$ac_objext'
26955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26956   (eval $ac_try) 2>&5
26957   ac_status=$?
26958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959   (exit $ac_status); }; }; then
26960   ac_cv_type_uint64_t=yes
26961 else
26962   echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26964
26965 ac_cv_type_uint64_t=no
26966 fi
26967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26968 fi
26969 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26970 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26971 if test $ac_cv_type_uint64_t = yes; then
26972
26973 cat >>confdefs.h <<_ACEOF
26974 #define HAVE_UINT64_T 1
26975 _ACEOF
26976
26977
26978 else
26979   echo "$as_me:$LINENO: checking for u_int64_t" >&5
26980 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26981 if test "${ac_cv_type_u_int64_t+set}" = set; then
26982   echo $ECHO_N "(cached) $ECHO_C" >&6
26983 else
26984   cat >conftest.$ac_ext <<_ACEOF
26985 /* confdefs.h.  */
26986 _ACEOF
26987 cat confdefs.h >>conftest.$ac_ext
26988 cat >>conftest.$ac_ext <<_ACEOF
26989 /* end confdefs.h.  */
26990 $ac_includes_default
26991 int
26992 main ()
26993 {
26994 if ((u_int64_t *) 0)
26995   return 0;
26996 if (sizeof (u_int64_t))
26997   return 0;
26998   ;
26999   return 0;
27000 }
27001 _ACEOF
27002 rm -f conftest.$ac_objext
27003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27004   (eval $ac_compile) 2>conftest.er1
27005   ac_status=$?
27006   grep -v '^ *+' conftest.er1 >conftest.err
27007   rm -f conftest.er1
27008   cat conftest.err >&5
27009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010   (exit $ac_status); } &&
27011          { ac_try='test -z "$ac_c_werror_flag"
27012                          || test ! -s conftest.err'
27013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27014   (eval $ac_try) 2>&5
27015   ac_status=$?
27016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017   (exit $ac_status); }; } &&
27018          { ac_try='test -s conftest.$ac_objext'
27019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27020   (eval $ac_try) 2>&5
27021   ac_status=$?
27022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023   (exit $ac_status); }; }; then
27024   ac_cv_type_u_int64_t=yes
27025 else
27026   echo "$as_me: failed program was:" >&5
27027 sed 's/^/| /' conftest.$ac_ext >&5
27028
27029 ac_cv_type_u_int64_t=no
27030 fi
27031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27032 fi
27033 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27034 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27035 if test $ac_cv_type_u_int64_t = yes; then
27036
27037 cat >>confdefs.h <<_ACEOF
27038 #define HAVE_U_INT64_T 1
27039 _ACEOF
27040
27041
27042 else
27043   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27044 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27045    { (exit 1); exit 1; }; }
27046 fi
27047
27048 fi
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27059 do
27060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27061 echo "$as_me:$LINENO: checking for $ac_func" >&5
27062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27063 if eval "test \"\${$as_ac_var+set}\" = set"; then
27064   echo $ECHO_N "(cached) $ECHO_C" >&6
27065 else
27066   cat >conftest.$ac_ext <<_ACEOF
27067 /* confdefs.h.  */
27068 _ACEOF
27069 cat confdefs.h >>conftest.$ac_ext
27070 cat >>conftest.$ac_ext <<_ACEOF
27071 /* end confdefs.h.  */
27072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27074 #define $ac_func innocuous_$ac_func
27075
27076 /* System header to define __stub macros and hopefully few prototypes,
27077     which can conflict with char $ac_func (); below.
27078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27079     <limits.h> exists even on freestanding compilers.  */
27080
27081 #ifdef __STDC__
27082 # include <limits.h>
27083 #else
27084 # include <assert.h>
27085 #endif
27086
27087 #undef $ac_func
27088
27089 /* Override any gcc2 internal prototype to avoid an error.  */
27090 #ifdef __cplusplus
27091 extern "C"
27092 {
27093 #endif
27094 /* We use char because int might match the return type of a gcc2
27095    builtin and then its argument prototype would still apply.  */
27096 char $ac_func ();
27097 /* The GNU C library defines this for functions which it implements
27098     to always fail with ENOSYS.  Some functions are actually named
27099     something starting with __ and the normal name is an alias.  */
27100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27101 choke me
27102 #else
27103 char (*f) () = $ac_func;
27104 #endif
27105 #ifdef __cplusplus
27106 }
27107 #endif
27108
27109 int
27110 main ()
27111 {
27112 return f != $ac_func;
27113   ;
27114   return 0;
27115 }
27116 _ACEOF
27117 rm -f conftest.$ac_objext conftest$ac_exeext
27118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27119   (eval $ac_link) 2>conftest.er1
27120   ac_status=$?
27121   grep -v '^ *+' conftest.er1 >conftest.err
27122   rm -f conftest.er1
27123   cat conftest.err >&5
27124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125   (exit $ac_status); } &&
27126          { ac_try='test -z "$ac_c_werror_flag"
27127                          || test ! -s conftest.err'
27128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27129   (eval $ac_try) 2>&5
27130   ac_status=$?
27131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132   (exit $ac_status); }; } &&
27133          { ac_try='test -s conftest$ac_exeext'
27134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27135   (eval $ac_try) 2>&5
27136   ac_status=$?
27137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138   (exit $ac_status); }; }; then
27139   eval "$as_ac_var=yes"
27140 else
27141   echo "$as_me: failed program was:" >&5
27142 sed 's/^/| /' conftest.$ac_ext >&5
27143
27144 eval "$as_ac_var=no"
27145 fi
27146 rm -f conftest.err conftest.$ac_objext \
27147       conftest$ac_exeext conftest.$ac_ext
27148 fi
27149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27151 if test `eval echo '${'$as_ac_var'}'` = yes; then
27152   cat >>confdefs.h <<_ACEOF
27153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27154 _ACEOF
27155
27156 fi
27157 done
27158
27159
27160
27161
27162 for ac_func in mkdtemp mkstemp mktemp
27163 do
27164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27165 echo "$as_me:$LINENO: checking for $ac_func" >&5
27166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27167 if eval "test \"\${$as_ac_var+set}\" = set"; then
27168   echo $ECHO_N "(cached) $ECHO_C" >&6
27169 else
27170   cat >conftest.$ac_ext <<_ACEOF
27171 /* confdefs.h.  */
27172 _ACEOF
27173 cat confdefs.h >>conftest.$ac_ext
27174 cat >>conftest.$ac_ext <<_ACEOF
27175 /* end confdefs.h.  */
27176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27178 #define $ac_func innocuous_$ac_func
27179
27180 /* System header to define __stub macros and hopefully few prototypes,
27181     which can conflict with char $ac_func (); below.
27182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27183     <limits.h> exists even on freestanding compilers.  */
27184
27185 #ifdef __STDC__
27186 # include <limits.h>
27187 #else
27188 # include <assert.h>
27189 #endif
27190
27191 #undef $ac_func
27192
27193 /* Override any gcc2 internal prototype to avoid an error.  */
27194 #ifdef __cplusplus
27195 extern "C"
27196 {
27197 #endif
27198 /* We use char because int might match the return type of a gcc2
27199    builtin and then its argument prototype would still apply.  */
27200 char $ac_func ();
27201 /* The GNU C library defines this for functions which it implements
27202     to always fail with ENOSYS.  Some functions are actually named
27203     something starting with __ and the normal name is an alias.  */
27204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27205 choke me
27206 #else
27207 char (*f) () = $ac_func;
27208 #endif
27209 #ifdef __cplusplus
27210 }
27211 #endif
27212
27213 int
27214 main ()
27215 {
27216 return f != $ac_func;
27217   ;
27218   return 0;
27219 }
27220 _ACEOF
27221 rm -f conftest.$ac_objext conftest$ac_exeext
27222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27223   (eval $ac_link) 2>conftest.er1
27224   ac_status=$?
27225   grep -v '^ *+' conftest.er1 >conftest.err
27226   rm -f conftest.er1
27227   cat conftest.err >&5
27228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229   (exit $ac_status); } &&
27230          { ac_try='test -z "$ac_c_werror_flag"
27231                          || test ! -s conftest.err'
27232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27233   (eval $ac_try) 2>&5
27234   ac_status=$?
27235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236   (exit $ac_status); }; } &&
27237          { ac_try='test -s conftest$ac_exeext'
27238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27239   (eval $ac_try) 2>&5
27240   ac_status=$?
27241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); }; }; then
27243   eval "$as_ac_var=yes"
27244 else
27245   echo "$as_me: failed program was:" >&5
27246 sed 's/^/| /' conftest.$ac_ext >&5
27247
27248 eval "$as_ac_var=no"
27249 fi
27250 rm -f conftest.err conftest.$ac_objext \
27251       conftest$ac_exeext conftest.$ac_ext
27252 fi
27253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27255 if test `eval echo '${'$as_ac_var'}'` = yes; then
27256   cat >>confdefs.h <<_ACEOF
27257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27258 _ACEOF
27259
27260 fi
27261 done
27262
27263
27264
27265
27266
27267
27268
27269
27270 for ac_func in realpath setrlimit strdup strerror strerror_r strtoll strtoq
27271 do
27272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27273 echo "$as_me:$LINENO: checking for $ac_func" >&5
27274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27275 if eval "test \"\${$as_ac_var+set}\" = set"; then
27276   echo $ECHO_N "(cached) $ECHO_C" >&6
27277 else
27278   cat >conftest.$ac_ext <<_ACEOF
27279 /* confdefs.h.  */
27280 _ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h.  */
27284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27286 #define $ac_func innocuous_$ac_func
27287
27288 /* System header to define __stub macros and hopefully few prototypes,
27289     which can conflict with char $ac_func (); below.
27290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27291     <limits.h> exists even on freestanding compilers.  */
27292
27293 #ifdef __STDC__
27294 # include <limits.h>
27295 #else
27296 # include <assert.h>
27297 #endif
27298
27299 #undef $ac_func
27300
27301 /* Override any gcc2 internal prototype to avoid an error.  */
27302 #ifdef __cplusplus
27303 extern "C"
27304 {
27305 #endif
27306 /* We use char because int might match the return type of a gcc2
27307    builtin and then its argument prototype would still apply.  */
27308 char $ac_func ();
27309 /* The GNU C library defines this for functions which it implements
27310     to always fail with ENOSYS.  Some functions are actually named
27311     something starting with __ and the normal name is an alias.  */
27312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27313 choke me
27314 #else
27315 char (*f) () = $ac_func;
27316 #endif
27317 #ifdef __cplusplus
27318 }
27319 #endif
27320
27321 int
27322 main ()
27323 {
27324 return f != $ac_func;
27325   ;
27326   return 0;
27327 }
27328 _ACEOF
27329 rm -f conftest.$ac_objext conftest$ac_exeext
27330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27331   (eval $ac_link) 2>conftest.er1
27332   ac_status=$?
27333   grep -v '^ *+' conftest.er1 >conftest.err
27334   rm -f conftest.er1
27335   cat conftest.err >&5
27336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337   (exit $ac_status); } &&
27338          { ac_try='test -z "$ac_c_werror_flag"
27339                          || test ! -s conftest.err'
27340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27341   (eval $ac_try) 2>&5
27342   ac_status=$?
27343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344   (exit $ac_status); }; } &&
27345          { ac_try='test -s conftest$ac_exeext'
27346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27347   (eval $ac_try) 2>&5
27348   ac_status=$?
27349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350   (exit $ac_status); }; }; then
27351   eval "$as_ac_var=yes"
27352 else
27353   echo "$as_me: failed program was:" >&5
27354 sed 's/^/| /' conftest.$ac_ext >&5
27355
27356 eval "$as_ac_var=no"
27357 fi
27358 rm -f conftest.err conftest.$ac_objext \
27359       conftest$ac_exeext conftest.$ac_ext
27360 fi
27361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27363 if test `eval echo '${'$as_ac_var'}'` = yes; then
27364   cat >>confdefs.h <<_ACEOF
27365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27366 _ACEOF
27367
27368 fi
27369 done
27370
27371
27372 for ac_func in sysconf
27373 do
27374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27375 echo "$as_me:$LINENO: checking for $ac_func" >&5
27376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27377 if eval "test \"\${$as_ac_var+set}\" = set"; then
27378   echo $ECHO_N "(cached) $ECHO_C" >&6
27379 else
27380   cat >conftest.$ac_ext <<_ACEOF
27381 /* confdefs.h.  */
27382 _ACEOF
27383 cat confdefs.h >>conftest.$ac_ext
27384 cat >>conftest.$ac_ext <<_ACEOF
27385 /* end confdefs.h.  */
27386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27388 #define $ac_func innocuous_$ac_func
27389
27390 /* System header to define __stub macros and hopefully few prototypes,
27391     which can conflict with char $ac_func (); below.
27392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27393     <limits.h> exists even on freestanding compilers.  */
27394
27395 #ifdef __STDC__
27396 # include <limits.h>
27397 #else
27398 # include <assert.h>
27399 #endif
27400
27401 #undef $ac_func
27402
27403 /* Override any gcc2 internal prototype to avoid an error.  */
27404 #ifdef __cplusplus
27405 extern "C"
27406 {
27407 #endif
27408 /* We use char because int might match the return type of a gcc2
27409    builtin and then its argument prototype would still apply.  */
27410 char $ac_func ();
27411 /* The GNU C library defines this for functions which it implements
27412     to always fail with ENOSYS.  Some functions are actually named
27413     something starting with __ and the normal name is an alias.  */
27414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27415 choke me
27416 #else
27417 char (*f) () = $ac_func;
27418 #endif
27419 #ifdef __cplusplus
27420 }
27421 #endif
27422
27423 int
27424 main ()
27425 {
27426 return f != $ac_func;
27427   ;
27428   return 0;
27429 }
27430 _ACEOF
27431 rm -f conftest.$ac_objext conftest$ac_exeext
27432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27433   (eval $ac_link) 2>conftest.er1
27434   ac_status=$?
27435   grep -v '^ *+' conftest.er1 >conftest.err
27436   rm -f conftest.er1
27437   cat conftest.err >&5
27438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439   (exit $ac_status); } &&
27440          { ac_try='test -z "$ac_c_werror_flag"
27441                          || test ! -s conftest.err'
27442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27443   (eval $ac_try) 2>&5
27444   ac_status=$?
27445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446   (exit $ac_status); }; } &&
27447          { ac_try='test -s conftest$ac_exeext'
27448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27449   (eval $ac_try) 2>&5
27450   ac_status=$?
27451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452   (exit $ac_status); }; }; then
27453   eval "$as_ac_var=yes"
27454 else
27455   echo "$as_me: failed program was:" >&5
27456 sed 's/^/| /' conftest.$ac_ext >&5
27457
27458 eval "$as_ac_var=no"
27459 fi
27460 rm -f conftest.err conftest.$ac_objext \
27461       conftest$ac_exeext conftest.$ac_ext
27462 fi
27463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27465 if test `eval echo '${'$as_ac_var'}'` = yes; then
27466   cat >>confdefs.h <<_ACEOF
27467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27468 _ACEOF
27469
27470 fi
27471 done
27472
27473 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27474 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27475 if test "${llvm_cv_c_printf_a+set}" = set; then
27476   echo $ECHO_N "(cached) $ECHO_C" >&6
27477 else
27478   ac_ext=c
27479 ac_cpp='$CPP $CPPFLAGS'
27480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27483
27484  if test "$cross_compiling" = yes; then
27485   llvmac_cv_c_printf_a=no
27486 else
27487   cat >conftest.$ac_ext <<_ACEOF
27488
27489   /* confdefs.h.  */
27490 _ACEOF
27491 cat confdefs.h >>conftest.$ac_ext
27492 cat >>conftest.$ac_ext <<_ACEOF
27493 /* end confdefs.h.  */
27494
27495 #include <stdio.h>
27496 #include <stdlib.h>
27497
27498 int
27499 main ()
27500 {
27501
27502 volatile double A, B;
27503 char Buffer[100];
27504 A = 1;
27505 A /= 10.0;
27506 sprintf(Buffer, "%a", A);
27507 B = atof(Buffer);
27508 if (A != B)
27509   return (1);
27510 if (A != 0x1.999999999999ap-4)
27511   return (1);
27512 return (0);
27513   ;
27514   return 0;
27515 }
27516 _ACEOF
27517 rm -f conftest$ac_exeext
27518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27519   (eval $ac_link) 2>&5
27520   ac_status=$?
27521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524   (eval $ac_try) 2>&5
27525   ac_status=$?
27526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527   (exit $ac_status); }; }; then
27528   llvm_cv_c_printf_a=yes
27529 else
27530   echo "$as_me: program exited with status $ac_status" >&5
27531 echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27533
27534 ( exit $ac_status )
27535 llvmac_cv_c_printf_a=no
27536 fi
27537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27538 fi
27539  ac_ext=c
27540 ac_cpp='$CPP $CPPFLAGS'
27541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27544
27545 fi
27546 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27547 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27548  if test "$llvm_cv_c_printf_a" = "yes"; then
27549
27550 cat >>confdefs.h <<\_ACEOF
27551 #define HAVE_PRINTF_A 1
27552 _ACEOF
27553
27554  fi
27555
27556 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27557 # for constant arguments.  Useless!
27558 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27559 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27560 if test "${ac_cv_working_alloca_h+set}" = set; then
27561   echo $ECHO_N "(cached) $ECHO_C" >&6
27562 else
27563   cat >conftest.$ac_ext <<_ACEOF
27564 /* confdefs.h.  */
27565 _ACEOF
27566 cat confdefs.h >>conftest.$ac_ext
27567 cat >>conftest.$ac_ext <<_ACEOF
27568 /* end confdefs.h.  */
27569 #include <alloca.h>
27570 int
27571 main ()
27572 {
27573 char *p = (char *) alloca (2 * sizeof (int));
27574   ;
27575   return 0;
27576 }
27577 _ACEOF
27578 rm -f conftest.$ac_objext conftest$ac_exeext
27579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27580   (eval $ac_link) 2>conftest.er1
27581   ac_status=$?
27582   grep -v '^ *+' conftest.er1 >conftest.err
27583   rm -f conftest.er1
27584   cat conftest.err >&5
27585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); } &&
27587          { ac_try='test -z "$ac_c_werror_flag"
27588                          || test ! -s conftest.err'
27589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27590   (eval $ac_try) 2>&5
27591   ac_status=$?
27592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593   (exit $ac_status); }; } &&
27594          { ac_try='test -s conftest$ac_exeext'
27595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27596   (eval $ac_try) 2>&5
27597   ac_status=$?
27598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599   (exit $ac_status); }; }; then
27600   ac_cv_working_alloca_h=yes
27601 else
27602   echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27604
27605 ac_cv_working_alloca_h=no
27606 fi
27607 rm -f conftest.err conftest.$ac_objext \
27608       conftest$ac_exeext conftest.$ac_ext
27609 fi
27610 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27611 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27612 if test $ac_cv_working_alloca_h = yes; then
27613
27614 cat >>confdefs.h <<\_ACEOF
27615 #define HAVE_ALLOCA_H 1
27616 _ACEOF
27617
27618 fi
27619
27620 echo "$as_me:$LINENO: checking for alloca" >&5
27621 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27622 if test "${ac_cv_func_alloca_works+set}" = set; then
27623   echo $ECHO_N "(cached) $ECHO_C" >&6
27624 else
27625   cat >conftest.$ac_ext <<_ACEOF
27626 /* confdefs.h.  */
27627 _ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h.  */
27631 #ifdef __GNUC__
27632 # define alloca __builtin_alloca
27633 #else
27634 # ifdef _MSC_VER
27635 #  include <malloc.h>
27636 #  define alloca _alloca
27637 # else
27638 #  if HAVE_ALLOCA_H
27639 #   include <alloca.h>
27640 #  else
27641 #   ifdef _AIX
27642  #pragma alloca
27643 #   else
27644 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27645 char *alloca ();
27646 #    endif
27647 #   endif
27648 #  endif
27649 # endif
27650 #endif
27651
27652 int
27653 main ()
27654 {
27655 char *p = (char *) alloca (1);
27656   ;
27657   return 0;
27658 }
27659 _ACEOF
27660 rm -f conftest.$ac_objext conftest$ac_exeext
27661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27662   (eval $ac_link) 2>conftest.er1
27663   ac_status=$?
27664   grep -v '^ *+' conftest.er1 >conftest.err
27665   rm -f conftest.er1
27666   cat conftest.err >&5
27667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668   (exit $ac_status); } &&
27669          { ac_try='test -z "$ac_c_werror_flag"
27670                          || test ! -s conftest.err'
27671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27672   (eval $ac_try) 2>&5
27673   ac_status=$?
27674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675   (exit $ac_status); }; } &&
27676          { ac_try='test -s conftest$ac_exeext'
27677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27678   (eval $ac_try) 2>&5
27679   ac_status=$?
27680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681   (exit $ac_status); }; }; then
27682   ac_cv_func_alloca_works=yes
27683 else
27684   echo "$as_me: failed program was:" >&5
27685 sed 's/^/| /' conftest.$ac_ext >&5
27686
27687 ac_cv_func_alloca_works=no
27688 fi
27689 rm -f conftest.err conftest.$ac_objext \
27690       conftest$ac_exeext conftest.$ac_ext
27691 fi
27692 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27693 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27694
27695 if test $ac_cv_func_alloca_works = yes; then
27696
27697 cat >>confdefs.h <<\_ACEOF
27698 #define HAVE_ALLOCA 1
27699 _ACEOF
27700
27701 else
27702   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27703 # that cause trouble.  Some versions do not even contain alloca or
27704 # contain a buggy version.  If you still want to use their alloca,
27705 # use ar to extract alloca.o from them instead of compiling alloca.c.
27706
27707 ALLOCA=alloca.$ac_objext
27708
27709 cat >>confdefs.h <<\_ACEOF
27710 #define C_ALLOCA 1
27711 _ACEOF
27712
27713
27714 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27715 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27716 if test "${ac_cv_os_cray+set}" = set; then
27717   echo $ECHO_N "(cached) $ECHO_C" >&6
27718 else
27719   cat >conftest.$ac_ext <<_ACEOF
27720 /* confdefs.h.  */
27721 _ACEOF
27722 cat confdefs.h >>conftest.$ac_ext
27723 cat >>conftest.$ac_ext <<_ACEOF
27724 /* end confdefs.h.  */
27725 #if defined(CRAY) && ! defined(CRAY2)
27726 webecray
27727 #else
27728 wenotbecray
27729 #endif
27730
27731 _ACEOF
27732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27733   $EGREP "webecray" >/dev/null 2>&1; then
27734   ac_cv_os_cray=yes
27735 else
27736   ac_cv_os_cray=no
27737 fi
27738 rm -f conftest*
27739
27740 fi
27741 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27742 echo "${ECHO_T}$ac_cv_os_cray" >&6
27743 if test $ac_cv_os_cray = yes; then
27744   for ac_func in _getb67 GETB67 getb67; do
27745     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27746 echo "$as_me:$LINENO: checking for $ac_func" >&5
27747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27748 if eval "test \"\${$as_ac_var+set}\" = set"; then
27749   echo $ECHO_N "(cached) $ECHO_C" >&6
27750 else
27751   cat >conftest.$ac_ext <<_ACEOF
27752 /* confdefs.h.  */
27753 _ACEOF
27754 cat confdefs.h >>conftest.$ac_ext
27755 cat >>conftest.$ac_ext <<_ACEOF
27756 /* end confdefs.h.  */
27757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27759 #define $ac_func innocuous_$ac_func
27760
27761 /* System header to define __stub macros and hopefully few prototypes,
27762     which can conflict with char $ac_func (); below.
27763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27764     <limits.h> exists even on freestanding compilers.  */
27765
27766 #ifdef __STDC__
27767 # include <limits.h>
27768 #else
27769 # include <assert.h>
27770 #endif
27771
27772 #undef $ac_func
27773
27774 /* Override any gcc2 internal prototype to avoid an error.  */
27775 #ifdef __cplusplus
27776 extern "C"
27777 {
27778 #endif
27779 /* We use char because int might match the return type of a gcc2
27780    builtin and then its argument prototype would still apply.  */
27781 char $ac_func ();
27782 /* The GNU C library defines this for functions which it implements
27783     to always fail with ENOSYS.  Some functions are actually named
27784     something starting with __ and the normal name is an alias.  */
27785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27786 choke me
27787 #else
27788 char (*f) () = $ac_func;
27789 #endif
27790 #ifdef __cplusplus
27791 }
27792 #endif
27793
27794 int
27795 main ()
27796 {
27797 return f != $ac_func;
27798   ;
27799   return 0;
27800 }
27801 _ACEOF
27802 rm -f conftest.$ac_objext conftest$ac_exeext
27803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27804   (eval $ac_link) 2>conftest.er1
27805   ac_status=$?
27806   grep -v '^ *+' conftest.er1 >conftest.err
27807   rm -f conftest.er1
27808   cat conftest.err >&5
27809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810   (exit $ac_status); } &&
27811          { ac_try='test -z "$ac_c_werror_flag"
27812                          || test ! -s conftest.err'
27813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27814   (eval $ac_try) 2>&5
27815   ac_status=$?
27816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817   (exit $ac_status); }; } &&
27818          { ac_try='test -s conftest$ac_exeext'
27819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27820   (eval $ac_try) 2>&5
27821   ac_status=$?
27822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823   (exit $ac_status); }; }; then
27824   eval "$as_ac_var=yes"
27825 else
27826   echo "$as_me: failed program was:" >&5
27827 sed 's/^/| /' conftest.$ac_ext >&5
27828
27829 eval "$as_ac_var=no"
27830 fi
27831 rm -f conftest.err conftest.$ac_objext \
27832       conftest$ac_exeext conftest.$ac_ext
27833 fi
27834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27836 if test `eval echo '${'$as_ac_var'}'` = yes; then
27837
27838 cat >>confdefs.h <<_ACEOF
27839 #define CRAY_STACKSEG_END $ac_func
27840 _ACEOF
27841
27842     break
27843 fi
27844
27845   done
27846 fi
27847
27848 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27849 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27850 if test "${ac_cv_c_stack_direction+set}" = set; then
27851   echo $ECHO_N "(cached) $ECHO_C" >&6
27852 else
27853   if test "$cross_compiling" = yes; then
27854   ac_cv_c_stack_direction=0
27855 else
27856   cat >conftest.$ac_ext <<_ACEOF
27857 /* confdefs.h.  */
27858 _ACEOF
27859 cat confdefs.h >>conftest.$ac_ext
27860 cat >>conftest.$ac_ext <<_ACEOF
27861 /* end confdefs.h.  */
27862 int
27863 find_stack_direction ()
27864 {
27865   static char *addr = 0;
27866   auto char dummy;
27867   if (addr == 0)
27868     {
27869       addr = &dummy;
27870       return find_stack_direction ();
27871     }
27872   else
27873     return (&dummy > addr) ? 1 : -1;
27874 }
27875
27876 int
27877 main ()
27878 {
27879   exit (find_stack_direction () < 0);
27880 }
27881 _ACEOF
27882 rm -f conftest$ac_exeext
27883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27884   (eval $ac_link) 2>&5
27885   ac_status=$?
27886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889   (eval $ac_try) 2>&5
27890   ac_status=$?
27891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892   (exit $ac_status); }; }; then
27893   ac_cv_c_stack_direction=1
27894 else
27895   echo "$as_me: program exited with status $ac_status" >&5
27896 echo "$as_me: failed program was:" >&5
27897 sed 's/^/| /' conftest.$ac_ext >&5
27898
27899 ( exit $ac_status )
27900 ac_cv_c_stack_direction=-1
27901 fi
27902 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27903 fi
27904 fi
27905 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27906 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27907
27908 cat >>confdefs.h <<_ACEOF
27909 #define STACK_DIRECTION $ac_cv_c_stack_direction
27910 _ACEOF
27911
27912
27913 fi
27914
27915
27916 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27917 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27918 if test "${ac_cv_func_rand48+set}" = set; then
27919   echo $ECHO_N "(cached) $ECHO_C" >&6
27920 else
27921   ac_ext=cc
27922 ac_cpp='$CXXCPP $CPPFLAGS'
27923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27926
27927    cat >conftest.$ac_ext <<_ACEOF
27928 /* confdefs.h.  */
27929 _ACEOF
27930 cat confdefs.h >>conftest.$ac_ext
27931 cat >>conftest.$ac_ext <<_ACEOF
27932 /* end confdefs.h.  */
27933 #include <stdlib.h>
27934 int
27935 main ()
27936 {
27937 srand48(0);lrand48();drand48();
27938   ;
27939   return 0;
27940 }
27941 _ACEOF
27942 rm -f conftest.$ac_objext
27943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27944   (eval $ac_compile) 2>conftest.er1
27945   ac_status=$?
27946   grep -v '^ *+' conftest.er1 >conftest.err
27947   rm -f conftest.er1
27948   cat conftest.err >&5
27949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950   (exit $ac_status); } &&
27951          { ac_try='test -z "$ac_cxx_werror_flag"
27952                          || test ! -s conftest.err'
27953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954   (eval $ac_try) 2>&5
27955   ac_status=$?
27956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957   (exit $ac_status); }; } &&
27958          { ac_try='test -s conftest.$ac_objext'
27959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960   (eval $ac_try) 2>&5
27961   ac_status=$?
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); }; }; then
27964   ac_cv_func_rand48=yes
27965 else
27966   echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27968
27969 ac_cv_func_rand48=no
27970 fi
27971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27972   ac_ext=c
27973 ac_cpp='$CPP $CPPFLAGS'
27974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27977
27978 fi
27979 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27980 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27981
27982 if test "$ac_cv_func_rand48" = "yes" ; then
27983
27984 cat >>confdefs.h <<\_ACEOF
27985 #define HAVE_RAND48 1
27986 _ACEOF
27987
27988 fi
27989
27990
27991 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27992 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27993 if test "${ac_cv_cxx_namespaces+set}" = set; then
27994   echo $ECHO_N "(cached) $ECHO_C" >&6
27995 else
27996   ac_ext=cc
27997 ac_cpp='$CXXCPP $CPPFLAGS'
27998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28001
28002  cat >conftest.$ac_ext <<_ACEOF
28003 /* confdefs.h.  */
28004 _ACEOF
28005 cat confdefs.h >>conftest.$ac_ext
28006 cat >>conftest.$ac_ext <<_ACEOF
28007 /* end confdefs.h.  */
28008 namespace Outer { namespace Inner { int i = 0; }}
28009 int
28010 main ()
28011 {
28012 using namespace Outer::Inner; return i;
28013   ;
28014   return 0;
28015 }
28016 _ACEOF
28017 rm -f conftest.$ac_objext
28018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28019   (eval $ac_compile) 2>conftest.er1
28020   ac_status=$?
28021   grep -v '^ *+' conftest.er1 >conftest.err
28022   rm -f conftest.er1
28023   cat conftest.err >&5
28024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025   (exit $ac_status); } &&
28026          { ac_try='test -z "$ac_cxx_werror_flag"
28027                          || test ! -s conftest.err'
28028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28029   (eval $ac_try) 2>&5
28030   ac_status=$?
28031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032   (exit $ac_status); }; } &&
28033          { ac_try='test -s conftest.$ac_objext'
28034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28035   (eval $ac_try) 2>&5
28036   ac_status=$?
28037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038   (exit $ac_status); }; }; then
28039   ac_cv_cxx_namespaces=yes
28040 else
28041   echo "$as_me: failed program was:" >&5
28042 sed 's/^/| /' conftest.$ac_ext >&5
28043
28044 ac_cv_cxx_namespaces=no
28045 fi
28046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28047  ac_ext=c
28048 ac_cpp='$CPP $CPPFLAGS'
28049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28052
28053
28054 fi
28055 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28056 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28057 if test "$ac_cv_cxx_namespaces" = yes; then
28058
28059 cat >>confdefs.h <<\_ACEOF
28060 #define HAVE_NAMESPACES
28061 _ACEOF
28062
28063 fi
28064
28065 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28066 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28067 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28068   echo $ECHO_N "(cached) $ECHO_C" >&6
28069 else
28070
28071   ac_ext=cc
28072 ac_cpp='$CXXCPP $CPPFLAGS'
28073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28076
28077   cat >conftest.$ac_ext <<_ACEOF
28078 /* confdefs.h.  */
28079 _ACEOF
28080 cat confdefs.h >>conftest.$ac_ext
28081 cat >>conftest.$ac_ext <<_ACEOF
28082 /* end confdefs.h.  */
28083 #include <ext/hash_map>
28084 #ifdef HAVE_NAMESPACES
28085 using namespace std;
28086 #endif
28087 int
28088 main ()
28089 {
28090 hash_map<int, int> t;
28091   ;
28092   return 0;
28093 }
28094 _ACEOF
28095 rm -f conftest.$ac_objext
28096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28097   (eval $ac_compile) 2>conftest.er1
28098   ac_status=$?
28099   grep -v '^ *+' conftest.er1 >conftest.err
28100   rm -f conftest.er1
28101   cat conftest.err >&5
28102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103   (exit $ac_status); } &&
28104          { ac_try='test -z "$ac_cxx_werror_flag"
28105                          || test ! -s conftest.err'
28106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28107   (eval $ac_try) 2>&5
28108   ac_status=$?
28109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110   (exit $ac_status); }; } &&
28111          { ac_try='test -s conftest.$ac_objext'
28112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28113   (eval $ac_try) 2>&5
28114   ac_status=$?
28115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116   (exit $ac_status); }; }; then
28117   ac_cv_cxx_have_std_ext_hash_map=yes
28118 else
28119   echo "$as_me: failed program was:" >&5
28120 sed 's/^/| /' conftest.$ac_ext >&5
28121
28122 ac_cv_cxx_have_std_ext_hash_map=no
28123 fi
28124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28125   ac_ext=c
28126 ac_cpp='$CPP $CPPFLAGS'
28127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28130
28131 fi
28132 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28133 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28134  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28135  then
28136
28137 cat >>confdefs.h <<\_ACEOF
28138 #define HAVE_STD_EXT_HASH_MAP 1
28139 _ACEOF
28140
28141  else
28142
28143 cat >>confdefs.h <<\_ACEOF
28144 #define HAVE_STD_EXT_HASH_MAP 0
28145 _ACEOF
28146
28147  fi
28148
28149  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28150 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28151 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28152   echo $ECHO_N "(cached) $ECHO_C" >&6
28153 else
28154
28155   ac_ext=cc
28156 ac_cpp='$CXXCPP $CPPFLAGS'
28157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28160
28161   cat >conftest.$ac_ext <<_ACEOF
28162 /* confdefs.h.  */
28163 _ACEOF
28164 cat confdefs.h >>conftest.$ac_ext
28165 cat >>conftest.$ac_ext <<_ACEOF
28166 /* end confdefs.h.  */
28167 #include <ext/hash_map>
28168 #ifdef HAVE_NAMESPACES
28169 using namespace __gnu_cxx;
28170 #endif
28171 int
28172 main ()
28173 {
28174 hash_map<int,int> t;
28175   ;
28176   return 0;
28177 }
28178 _ACEOF
28179 rm -f conftest.$ac_objext
28180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28181   (eval $ac_compile) 2>conftest.er1
28182   ac_status=$?
28183   grep -v '^ *+' conftest.er1 >conftest.err
28184   rm -f conftest.er1
28185   cat conftest.err >&5
28186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187   (exit $ac_status); } &&
28188          { ac_try='test -z "$ac_cxx_werror_flag"
28189                          || test ! -s conftest.err'
28190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28191   (eval $ac_try) 2>&5
28192   ac_status=$?
28193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194   (exit $ac_status); }; } &&
28195          { ac_try='test -s conftest.$ac_objext'
28196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28197   (eval $ac_try) 2>&5
28198   ac_status=$?
28199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200   (exit $ac_status); }; }; then
28201   ac_cv_cxx_have_gnu_ext_hash_map=yes
28202 else
28203   echo "$as_me: failed program was:" >&5
28204 sed 's/^/| /' conftest.$ac_ext >&5
28205
28206 ac_cv_cxx_have_gnu_ext_hash_map=no
28207 fi
28208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28209   ac_ext=c
28210 ac_cpp='$CPP $CPPFLAGS'
28211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28214
28215 fi
28216 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28217 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28218  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28219  then
28220
28221 cat >>confdefs.h <<\_ACEOF
28222 #define HAVE_GNU_EXT_HASH_MAP 1
28223 _ACEOF
28224
28225  else
28226
28227 cat >>confdefs.h <<\_ACEOF
28228 #define HAVE_GNU_EXT_HASH_MAP 0
28229 _ACEOF
28230
28231  fi
28232
28233  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28234 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28235 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28236   echo $ECHO_N "(cached) $ECHO_C" >&6
28237 else
28238
28239   ac_ext=cc
28240 ac_cpp='$CXXCPP $CPPFLAGS'
28241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28244
28245   cat >conftest.$ac_ext <<_ACEOF
28246 /* confdefs.h.  */
28247 _ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h.  */
28251 #include <hash_map>
28252 int
28253 main ()
28254 {
28255 hash_map<int,int> t;
28256   ;
28257   return 0;
28258 }
28259 _ACEOF
28260 rm -f conftest.$ac_objext
28261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28262   (eval $ac_compile) 2>conftest.er1
28263   ac_status=$?
28264   grep -v '^ *+' conftest.er1 >conftest.err
28265   rm -f conftest.er1
28266   cat conftest.err >&5
28267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268   (exit $ac_status); } &&
28269          { ac_try='test -z "$ac_cxx_werror_flag"
28270                          || test ! -s conftest.err'
28271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28272   (eval $ac_try) 2>&5
28273   ac_status=$?
28274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275   (exit $ac_status); }; } &&
28276          { ac_try='test -s conftest.$ac_objext'
28277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28278   (eval $ac_try) 2>&5
28279   ac_status=$?
28280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281   (exit $ac_status); }; }; then
28282   ac_cv_cxx_have_global_hash_map=yes
28283 else
28284   echo "$as_me: failed program was:" >&5
28285 sed 's/^/| /' conftest.$ac_ext >&5
28286
28287 ac_cv_cxx_have_global_hash_map=no
28288 fi
28289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28290   ac_ext=c
28291 ac_cpp='$CPP $CPPFLAGS'
28292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28295
28296 fi
28297 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28298 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28299  if test "$ac_cv_cxx_have_global_hash_map" = yes
28300  then
28301
28302 cat >>confdefs.h <<\_ACEOF
28303 #define HAVE_GLOBAL_HASH_MAP 1
28304 _ACEOF
28305
28306  else
28307
28308 cat >>confdefs.h <<\_ACEOF
28309 #define HAVE_GLOBAL_HASH_MAP 0
28310 _ACEOF
28311
28312  fi
28313
28314 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28315 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28316 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28317   echo $ECHO_N "(cached) $ECHO_C" >&6
28318 else
28319
28320   ac_ext=cc
28321 ac_cpp='$CXXCPP $CPPFLAGS'
28322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28325
28326   cat >conftest.$ac_ext <<_ACEOF
28327 /* confdefs.h.  */
28328 _ACEOF
28329 cat confdefs.h >>conftest.$ac_ext
28330 cat >>conftest.$ac_ext <<_ACEOF
28331 /* end confdefs.h.  */
28332 #include <ext/hash_set>
28333 #ifdef HAVE_NAMESPACES
28334 using namespace std;
28335 #endif
28336 int
28337 main ()
28338 {
28339 hash_set<int> t;
28340   ;
28341   return 0;
28342 }
28343 _ACEOF
28344 rm -f conftest.$ac_objext
28345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28346   (eval $ac_compile) 2>conftest.er1
28347   ac_status=$?
28348   grep -v '^ *+' conftest.er1 >conftest.err
28349   rm -f conftest.er1
28350   cat conftest.err >&5
28351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352   (exit $ac_status); } &&
28353          { ac_try='test -z "$ac_cxx_werror_flag"
28354                          || test ! -s conftest.err'
28355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28356   (eval $ac_try) 2>&5
28357   ac_status=$?
28358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359   (exit $ac_status); }; } &&
28360          { ac_try='test -s conftest.$ac_objext'
28361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28362   (eval $ac_try) 2>&5
28363   ac_status=$?
28364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365   (exit $ac_status); }; }; then
28366   ac_cv_cxx_have_std_ext_hash_set=yes
28367 else
28368   echo "$as_me: failed program was:" >&5
28369 sed 's/^/| /' conftest.$ac_ext >&5
28370
28371 ac_cv_cxx_have_std_ext_hash_set=no
28372 fi
28373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28374   ac_ext=c
28375 ac_cpp='$CPP $CPPFLAGS'
28376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28379
28380 fi
28381 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28382 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28383  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28384  then
28385
28386 cat >>confdefs.h <<\_ACEOF
28387 #define HAVE_STD_EXT_HASH_SET 1
28388 _ACEOF
28389
28390  else
28391
28392 cat >>confdefs.h <<\_ACEOF
28393 #define HAVE_STD_EXT_HASH_SET 0
28394 _ACEOF
28395
28396  fi
28397
28398  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28399 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28400 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28401   echo $ECHO_N "(cached) $ECHO_C" >&6
28402 else
28403
28404   ac_ext=cc
28405 ac_cpp='$CXXCPP $CPPFLAGS'
28406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28409
28410   cat >conftest.$ac_ext <<_ACEOF
28411 /* confdefs.h.  */
28412 _ACEOF
28413 cat confdefs.h >>conftest.$ac_ext
28414 cat >>conftest.$ac_ext <<_ACEOF
28415 /* end confdefs.h.  */
28416 #include <ext/hash_set>
28417 #ifdef HAVE_NAMESPACES
28418 using namespace __gnu_cxx;
28419 #endif
28420 int
28421 main ()
28422 {
28423 hash_set<int> t;
28424   ;
28425   return 0;
28426 }
28427 _ACEOF
28428 rm -f conftest.$ac_objext
28429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28430   (eval $ac_compile) 2>conftest.er1
28431   ac_status=$?
28432   grep -v '^ *+' conftest.er1 >conftest.err
28433   rm -f conftest.er1
28434   cat conftest.err >&5
28435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436   (exit $ac_status); } &&
28437          { ac_try='test -z "$ac_cxx_werror_flag"
28438                          || test ! -s conftest.err'
28439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28440   (eval $ac_try) 2>&5
28441   ac_status=$?
28442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443   (exit $ac_status); }; } &&
28444          { ac_try='test -s conftest.$ac_objext'
28445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28446   (eval $ac_try) 2>&5
28447   ac_status=$?
28448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449   (exit $ac_status); }; }; then
28450   ac_cv_cxx_have_gnu_ext_hash_set=yes
28451 else
28452   echo "$as_me: failed program was:" >&5
28453 sed 's/^/| /' conftest.$ac_ext >&5
28454
28455 ac_cv_cxx_have_gnu_ext_hash_set=no
28456 fi
28457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28458   ac_ext=c
28459 ac_cpp='$CPP $CPPFLAGS'
28460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28463
28464 fi
28465 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28466 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28467  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28468  then
28469
28470 cat >>confdefs.h <<\_ACEOF
28471 #define HAVE_GNU_EXT_HASH_SET 1
28472 _ACEOF
28473
28474  else
28475
28476 cat >>confdefs.h <<\_ACEOF
28477 #define HAVE_GNU_EXT_HASH_SET 0
28478 _ACEOF
28479
28480  fi
28481
28482  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28483 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28484 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28485   echo $ECHO_N "(cached) $ECHO_C" >&6
28486 else
28487
28488   ac_ext=cc
28489 ac_cpp='$CXXCPP $CPPFLAGS'
28490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28493
28494   cat >conftest.$ac_ext <<_ACEOF
28495 /* confdefs.h.  */
28496 _ACEOF
28497 cat confdefs.h >>conftest.$ac_ext
28498 cat >>conftest.$ac_ext <<_ACEOF
28499 /* end confdefs.h.  */
28500 #include <hash_set>
28501 int
28502 main ()
28503 {
28504 hash_set<int> t; return 0;
28505   ;
28506   return 0;
28507 }
28508 _ACEOF
28509 rm -f conftest.$ac_objext
28510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28511   (eval $ac_compile) 2>conftest.er1
28512   ac_status=$?
28513   grep -v '^ *+' conftest.er1 >conftest.err
28514   rm -f conftest.er1
28515   cat conftest.err >&5
28516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517   (exit $ac_status); } &&
28518          { ac_try='test -z "$ac_cxx_werror_flag"
28519                          || test ! -s conftest.err'
28520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28521   (eval $ac_try) 2>&5
28522   ac_status=$?
28523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524   (exit $ac_status); }; } &&
28525          { ac_try='test -s conftest.$ac_objext'
28526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28527   (eval $ac_try) 2>&5
28528   ac_status=$?
28529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530   (exit $ac_status); }; }; then
28531   ac_cv_cxx_have_global_hash_set=yes
28532 else
28533   echo "$as_me: failed program was:" >&5
28534 sed 's/^/| /' conftest.$ac_ext >&5
28535
28536 ac_cv_cxx_have_global_hash_set=no
28537 fi
28538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28539   ac_ext=c
28540 ac_cpp='$CPP $CPPFLAGS'
28541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28544
28545 fi
28546 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28547 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28548  if test "$ac_cv_cxx_have_global_hash_set" = yes
28549  then
28550
28551 cat >>confdefs.h <<\_ACEOF
28552 #define HAVE_GLOBAL_HASH_SET 1
28553 _ACEOF
28554
28555  else
28556
28557 cat >>confdefs.h <<\_ACEOF
28558 #define HAVE_GLOBAL_HASH_SET 0
28559 _ACEOF
28560
28561  fi
28562
28563 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28564 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28565 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28566   echo $ECHO_N "(cached) $ECHO_C" >&6
28567 else
28568
28569   ac_ext=cc
28570 ac_cpp='$CXXCPP $CPPFLAGS'
28571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28574
28575   cat >conftest.$ac_ext <<_ACEOF
28576 /* confdefs.h.  */
28577 _ACEOF
28578 cat confdefs.h >>conftest.$ac_ext
28579 cat >>conftest.$ac_ext <<_ACEOF
28580 /* end confdefs.h.  */
28581 #include <iterator>
28582 #ifdef HAVE_NAMESPACES
28583 using namespace std;
28584 #endif
28585 int
28586 main ()
28587 {
28588 iterator<int,int,int> t; return 0;
28589   ;
28590   return 0;
28591 }
28592 _ACEOF
28593 rm -f conftest.$ac_objext
28594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28595   (eval $ac_compile) 2>conftest.er1
28596   ac_status=$?
28597   grep -v '^ *+' conftest.er1 >conftest.err
28598   rm -f conftest.er1
28599   cat conftest.err >&5
28600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28601   (exit $ac_status); } &&
28602          { ac_try='test -z "$ac_cxx_werror_flag"
28603                          || test ! -s conftest.err'
28604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28605   (eval $ac_try) 2>&5
28606   ac_status=$?
28607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608   (exit $ac_status); }; } &&
28609          { ac_try='test -s conftest.$ac_objext'
28610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28611   (eval $ac_try) 2>&5
28612   ac_status=$?
28613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614   (exit $ac_status); }; }; then
28615   ac_cv_cxx_have_std_iterator=yes
28616 else
28617   echo "$as_me: failed program was:" >&5
28618 sed 's/^/| /' conftest.$ac_ext >&5
28619
28620 ac_cv_cxx_have_std_iterator=no
28621 fi
28622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28623   ac_ext=c
28624 ac_cpp='$CPP $CPPFLAGS'
28625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28628
28629
28630 fi
28631 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28632 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28633 if test "$ac_cv_cxx_have_std_iterator" = yes
28634 then
28635
28636 cat >>confdefs.h <<\_ACEOF
28637 #define HAVE_STD_ITERATOR 1
28638 _ACEOF
28639
28640 else
28641
28642 cat >>confdefs.h <<\_ACEOF
28643 #define HAVE_STD_ITERATOR 0
28644 _ACEOF
28645
28646 fi
28647
28648 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28649 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28650 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28651   echo $ECHO_N "(cached) $ECHO_C" >&6
28652 else
28653
28654   ac_ext=cc
28655 ac_cpp='$CXXCPP $CPPFLAGS'
28656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28659
28660   cat >conftest.$ac_ext <<_ACEOF
28661 /* confdefs.h.  */
28662 _ACEOF
28663 cat confdefs.h >>conftest.$ac_ext
28664 cat >>conftest.$ac_ext <<_ACEOF
28665 /* end confdefs.h.  */
28666 #include <iterator>
28667 #ifdef HAVE_NAMESPACES
28668 using namespace std;
28669 #endif
28670 int
28671 main ()
28672 {
28673 bidirectional_iterator<int,int> t; return 0;
28674   ;
28675   return 0;
28676 }
28677 _ACEOF
28678 rm -f conftest.$ac_objext
28679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28680   (eval $ac_compile) 2>conftest.er1
28681   ac_status=$?
28682   grep -v '^ *+' conftest.er1 >conftest.err
28683   rm -f conftest.er1
28684   cat conftest.err >&5
28685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); } &&
28687          { ac_try='test -z "$ac_cxx_werror_flag"
28688                          || test ! -s conftest.err'
28689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690   (eval $ac_try) 2>&5
28691   ac_status=$?
28692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693   (exit $ac_status); }; } &&
28694          { ac_try='test -s conftest.$ac_objext'
28695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696   (eval $ac_try) 2>&5
28697   ac_status=$?
28698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699   (exit $ac_status); }; }; then
28700   ac_cv_cxx_have_bi_iterator=yes
28701 else
28702   echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28704
28705 ac_cv_cxx_have_bi_iterator=no
28706 fi
28707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28708   ac_ext=c
28709 ac_cpp='$CPP $CPPFLAGS'
28710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28713
28714
28715 fi
28716 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28717 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28718 if test "$ac_cv_cxx_have_bi_iterator" = yes
28719 then
28720
28721 cat >>confdefs.h <<\_ACEOF
28722 #define HAVE_BI_ITERATOR 1
28723 _ACEOF
28724
28725 else
28726
28727 cat >>confdefs.h <<\_ACEOF
28728 #define HAVE_BI_ITERATOR 0
28729 _ACEOF
28730
28731 fi
28732
28733 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28734 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28735 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28736   echo $ECHO_N "(cached) $ECHO_C" >&6
28737 else
28738
28739   ac_ext=cc
28740 ac_cpp='$CXXCPP $CPPFLAGS'
28741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28744
28745   cat >conftest.$ac_ext <<_ACEOF
28746 /* confdefs.h.  */
28747 _ACEOF
28748 cat confdefs.h >>conftest.$ac_ext
28749 cat >>conftest.$ac_ext <<_ACEOF
28750 /* end confdefs.h.  */
28751 #include <iterator>
28752 #ifdef HAVE_NAMESPACES
28753 using namespace std;
28754 #endif
28755 int
28756 main ()
28757 {
28758 forward_iterator<int,int> t; return 0;
28759   ;
28760   return 0;
28761 }
28762 _ACEOF
28763 rm -f conftest.$ac_objext
28764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28765   (eval $ac_compile) 2>conftest.er1
28766   ac_status=$?
28767   grep -v '^ *+' conftest.er1 >conftest.err
28768   rm -f conftest.er1
28769   cat conftest.err >&5
28770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771   (exit $ac_status); } &&
28772          { ac_try='test -z "$ac_cxx_werror_flag"
28773                          || test ! -s conftest.err'
28774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775   (eval $ac_try) 2>&5
28776   ac_status=$?
28777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778   (exit $ac_status); }; } &&
28779          { ac_try='test -s conftest.$ac_objext'
28780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781   (eval $ac_try) 2>&5
28782   ac_status=$?
28783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784   (exit $ac_status); }; }; then
28785   ac_cv_cxx_have_fwd_iterator=yes
28786 else
28787   echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28789
28790 ac_cv_cxx_have_fwd_iterator=no
28791 fi
28792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28793   ac_ext=c
28794 ac_cpp='$CPP $CPPFLAGS'
28795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28798
28799
28800 fi
28801 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28802 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28803 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28804 then
28805
28806 cat >>confdefs.h <<\_ACEOF
28807 #define HAVE_FWD_ITERATOR 1
28808 _ACEOF
28809
28810 else
28811
28812 cat >>confdefs.h <<\_ACEOF
28813 #define HAVE_FWD_ITERATOR 0
28814 _ACEOF
28815
28816 fi
28817
28818
28819 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28820 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28821 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28822   echo $ECHO_N "(cached) $ECHO_C" >&6
28823 else
28824   ac_ext=cc
28825 ac_cpp='$CXXCPP $CPPFLAGS'
28826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28829
28830    cat >conftest.$ac_ext <<_ACEOF
28831 /* confdefs.h.  */
28832 _ACEOF
28833 cat confdefs.h >>conftest.$ac_ext
28834 cat >>conftest.$ac_ext <<_ACEOF
28835 /* end confdefs.h.  */
28836 #include <math.h>
28837 int
28838 main ()
28839 {
28840 float f; isnan(f);
28841   ;
28842   return 0;
28843 }
28844 _ACEOF
28845 rm -f conftest.$ac_objext
28846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28847   (eval $ac_compile) 2>conftest.er1
28848   ac_status=$?
28849   grep -v '^ *+' conftest.er1 >conftest.err
28850   rm -f conftest.er1
28851   cat conftest.err >&5
28852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853   (exit $ac_status); } &&
28854          { ac_try='test -z "$ac_cxx_werror_flag"
28855                          || test ! -s conftest.err'
28856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28857   (eval $ac_try) 2>&5
28858   ac_status=$?
28859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860   (exit $ac_status); }; } &&
28861          { ac_try='test -s conftest.$ac_objext'
28862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863   (eval $ac_try) 2>&5
28864   ac_status=$?
28865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866   (exit $ac_status); }; }; then
28867   ac_cv_func_isnan_in_math_h=yes
28868 else
28869   echo "$as_me: failed program was:" >&5
28870 sed 's/^/| /' conftest.$ac_ext >&5
28871
28872 ac_cv_func_isnan_in_math_h=no
28873 fi
28874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28875   ac_ext=c
28876 ac_cpp='$CPP $CPPFLAGS'
28877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28880
28881 fi
28882 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28883 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28884
28885
28886 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28887
28888 cat >>confdefs.h <<\_ACEOF
28889 #define HAVE_ISNAN_IN_MATH_H 1
28890 _ACEOF
28891
28892 fi
28893
28894 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28895 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28896 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28897   echo $ECHO_N "(cached) $ECHO_C" >&6
28898 else
28899   ac_ext=cc
28900 ac_cpp='$CXXCPP $CPPFLAGS'
28901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28904
28905    cat >conftest.$ac_ext <<_ACEOF
28906 /* confdefs.h.  */
28907 _ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h.  */
28911 #include <cmath>
28912 int
28913 main ()
28914 {
28915 float f; isnan(f);
28916   ;
28917   return 0;
28918 }
28919 _ACEOF
28920 rm -f conftest.$ac_objext
28921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28922   (eval $ac_compile) 2>conftest.er1
28923   ac_status=$?
28924   grep -v '^ *+' conftest.er1 >conftest.err
28925   rm -f conftest.er1
28926   cat conftest.err >&5
28927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928   (exit $ac_status); } &&
28929          { ac_try='test -z "$ac_cxx_werror_flag"
28930                          || test ! -s conftest.err'
28931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28932   (eval $ac_try) 2>&5
28933   ac_status=$?
28934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935   (exit $ac_status); }; } &&
28936          { ac_try='test -s conftest.$ac_objext'
28937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28938   (eval $ac_try) 2>&5
28939   ac_status=$?
28940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941   (exit $ac_status); }; }; then
28942   ac_cv_func_isnan_in_cmath=yes
28943 else
28944   echo "$as_me: failed program was:" >&5
28945 sed 's/^/| /' conftest.$ac_ext >&5
28946
28947 ac_cv_func_isnan_in_cmath=no
28948 fi
28949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28950   ac_ext=c
28951 ac_cpp='$CPP $CPPFLAGS'
28952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28955
28956 fi
28957 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28958 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28959
28960 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28961
28962 cat >>confdefs.h <<\_ACEOF
28963 #define HAVE_ISNAN_IN_CMATH 1
28964 _ACEOF
28965
28966 fi
28967
28968 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28969 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28970 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28971   echo $ECHO_N "(cached) $ECHO_C" >&6
28972 else
28973   ac_ext=cc
28974 ac_cpp='$CXXCPP $CPPFLAGS'
28975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28978
28979    cat >conftest.$ac_ext <<_ACEOF
28980 /* confdefs.h.  */
28981 _ACEOF
28982 cat confdefs.h >>conftest.$ac_ext
28983 cat >>conftest.$ac_ext <<_ACEOF
28984 /* end confdefs.h.  */
28985 #include <cmath>
28986 int
28987 main ()
28988 {
28989 float f; std::isnan(f);
28990   ;
28991   return 0;
28992 }
28993 _ACEOF
28994 rm -f conftest.$ac_objext
28995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28996   (eval $ac_compile) 2>conftest.er1
28997   ac_status=$?
28998   grep -v '^ *+' conftest.er1 >conftest.err
28999   rm -f conftest.er1
29000   cat conftest.err >&5
29001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002   (exit $ac_status); } &&
29003          { ac_try='test -z "$ac_cxx_werror_flag"
29004                          || test ! -s conftest.err'
29005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29006   (eval $ac_try) 2>&5
29007   ac_status=$?
29008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009   (exit $ac_status); }; } &&
29010          { ac_try='test -s conftest.$ac_objext'
29011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29012   (eval $ac_try) 2>&5
29013   ac_status=$?
29014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015   (exit $ac_status); }; }; then
29016   ac_cv_func_std_isnan_in_cmath=yes
29017 else
29018   echo "$as_me: failed program was:" >&5
29019 sed 's/^/| /' conftest.$ac_ext >&5
29020
29021 ac_cv_func_std_isnan_in_cmath=no
29022 fi
29023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29024   ac_ext=c
29025 ac_cpp='$CPP $CPPFLAGS'
29026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29029
29030 fi
29031 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29032 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29033
29034 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29035
29036 cat >>confdefs.h <<\_ACEOF
29037 #define HAVE_STD_ISNAN_IN_CMATH 1
29038 _ACEOF
29039
29040 fi
29041
29042
29043 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29044 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29045 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29046   echo $ECHO_N "(cached) $ECHO_C" >&6
29047 else
29048   ac_ext=cc
29049 ac_cpp='$CXXCPP $CPPFLAGS'
29050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29053
29054    cat >conftest.$ac_ext <<_ACEOF
29055 /* confdefs.h.  */
29056 _ACEOF
29057 cat confdefs.h >>conftest.$ac_ext
29058 cat >>conftest.$ac_ext <<_ACEOF
29059 /* end confdefs.h.  */
29060 #include <math.h>
29061 int
29062 main ()
29063 {
29064 float f; isinf(f);
29065   ;
29066   return 0;
29067 }
29068 _ACEOF
29069 rm -f conftest.$ac_objext
29070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29071   (eval $ac_compile) 2>conftest.er1
29072   ac_status=$?
29073   grep -v '^ *+' conftest.er1 >conftest.err
29074   rm -f conftest.er1
29075   cat conftest.err >&5
29076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29077   (exit $ac_status); } &&
29078          { ac_try='test -z "$ac_cxx_werror_flag"
29079                          || test ! -s conftest.err'
29080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29081   (eval $ac_try) 2>&5
29082   ac_status=$?
29083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084   (exit $ac_status); }; } &&
29085          { ac_try='test -s conftest.$ac_objext'
29086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29087   (eval $ac_try) 2>&5
29088   ac_status=$?
29089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090   (exit $ac_status); }; }; then
29091   ac_cv_func_isinf_in_math_h=yes
29092 else
29093   echo "$as_me: failed program was:" >&5
29094 sed 's/^/| /' conftest.$ac_ext >&5
29095
29096 ac_cv_func_isinf_in_math_h=no
29097 fi
29098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29099   ac_ext=c
29100 ac_cpp='$CPP $CPPFLAGS'
29101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29104
29105 fi
29106 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29107 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29108
29109 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29110
29111 cat >>confdefs.h <<\_ACEOF
29112 #define HAVE_ISINF_IN_MATH_H 1
29113 _ACEOF
29114
29115 fi
29116
29117 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29118 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29119 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29120   echo $ECHO_N "(cached) $ECHO_C" >&6
29121 else
29122   ac_ext=cc
29123 ac_cpp='$CXXCPP $CPPFLAGS'
29124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29127
29128    cat >conftest.$ac_ext <<_ACEOF
29129 /* confdefs.h.  */
29130 _ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h.  */
29134 #include <cmath>
29135 int
29136 main ()
29137 {
29138 float f; isinf(f);
29139   ;
29140   return 0;
29141 }
29142 _ACEOF
29143 rm -f conftest.$ac_objext
29144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29145   (eval $ac_compile) 2>conftest.er1
29146   ac_status=$?
29147   grep -v '^ *+' conftest.er1 >conftest.err
29148   rm -f conftest.er1
29149   cat conftest.err >&5
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); } &&
29152          { ac_try='test -z "$ac_cxx_werror_flag"
29153                          || test ! -s conftest.err'
29154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155   (eval $ac_try) 2>&5
29156   ac_status=$?
29157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158   (exit $ac_status); }; } &&
29159          { ac_try='test -s conftest.$ac_objext'
29160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29161   (eval $ac_try) 2>&5
29162   ac_status=$?
29163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164   (exit $ac_status); }; }; then
29165   ac_cv_func_isinf_in_cmath=yes
29166 else
29167   echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29169
29170 ac_cv_func_isinf_in_cmath=no
29171 fi
29172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29173   ac_ext=c
29174 ac_cpp='$CPP $CPPFLAGS'
29175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29178
29179 fi
29180 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29181 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29182
29183 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29184
29185 cat >>confdefs.h <<\_ACEOF
29186 #define HAVE_ISINF_IN_CMATH 1
29187 _ACEOF
29188
29189 fi
29190
29191 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29192 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29193 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29194   echo $ECHO_N "(cached) $ECHO_C" >&6
29195 else
29196   ac_ext=cc
29197 ac_cpp='$CXXCPP $CPPFLAGS'
29198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29201
29202    cat >conftest.$ac_ext <<_ACEOF
29203 /* confdefs.h.  */
29204 _ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h.  */
29208 #include <cmath>
29209 int
29210 main ()
29211 {
29212 float f; std::isinf(f)}
29213   ;
29214   return 0;
29215 }
29216 _ACEOF
29217 rm -f conftest.$ac_objext
29218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29219   (eval $ac_compile) 2>conftest.er1
29220   ac_status=$?
29221   grep -v '^ *+' conftest.er1 >conftest.err
29222   rm -f conftest.er1
29223   cat conftest.err >&5
29224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225   (exit $ac_status); } &&
29226          { ac_try='test -z "$ac_cxx_werror_flag"
29227                          || test ! -s conftest.err'
29228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29229   (eval $ac_try) 2>&5
29230   ac_status=$?
29231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232   (exit $ac_status); }; } &&
29233          { ac_try='test -s conftest.$ac_objext'
29234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29235   (eval $ac_try) 2>&5
29236   ac_status=$?
29237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238   (exit $ac_status); }; }; then
29239   ac_cv_func_std_isinf_in_cmath=yes
29240 else
29241   echo "$as_me: failed program was:" >&5
29242 sed 's/^/| /' conftest.$ac_ext >&5
29243
29244 ac_cv_func_std_isinf_in_cmath=no
29245 fi
29246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29247   ac_ext=c
29248 ac_cpp='$CPP $CPPFLAGS'
29249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29252
29253 fi
29254 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29255 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29256
29257 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29258
29259 cat >>confdefs.h <<\_ACEOF
29260 #define HAVE_STD_ISINF_IN_CMATH 1
29261 _ACEOF
29262
29263 fi
29264
29265 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29266 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29267 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29268   echo $ECHO_N "(cached) $ECHO_C" >&6
29269 else
29270   ac_ext=cc
29271 ac_cpp='$CXXCPP $CPPFLAGS'
29272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29275
29276    cat >conftest.$ac_ext <<_ACEOF
29277 /* confdefs.h.  */
29278 _ACEOF
29279 cat confdefs.h >>conftest.$ac_ext
29280 cat >>conftest.$ac_ext <<_ACEOF
29281 /* end confdefs.h.  */
29282 #include <ieeefp.h>
29283 int
29284 main ()
29285 {
29286 float f; finite(f);
29287   ;
29288   return 0;
29289 }
29290 _ACEOF
29291 rm -f conftest.$ac_objext
29292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29293   (eval $ac_compile) 2>conftest.er1
29294   ac_status=$?
29295   grep -v '^ *+' conftest.er1 >conftest.err
29296   rm -f conftest.er1
29297   cat conftest.err >&5
29298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299   (exit $ac_status); } &&
29300          { ac_try='test -z "$ac_cxx_werror_flag"
29301                          || test ! -s conftest.err'
29302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29303   (eval $ac_try) 2>&5
29304   ac_status=$?
29305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306   (exit $ac_status); }; } &&
29307          { ac_try='test -s conftest.$ac_objext'
29308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309   (eval $ac_try) 2>&5
29310   ac_status=$?
29311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312   (exit $ac_status); }; }; then
29313   ac_cv_func_finite_in_ieeefp_h=yes
29314 else
29315   echo "$as_me: failed program was:" >&5
29316 sed 's/^/| /' conftest.$ac_ext >&5
29317
29318 ac_cv_func_finite_in_ieeefp_h=no
29319 fi
29320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29321   ac_ext=c
29322 ac_cpp='$CPP $CPPFLAGS'
29323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29326
29327 fi
29328 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29329 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29330
29331 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29332
29333 cat >>confdefs.h <<\_ACEOF
29334 #define HAVE_FINITE_IN_IEEEFP_H 1
29335 _ACEOF
29336
29337 fi
29338
29339
29340
29341
29342
29343 for ac_header in stdlib.h unistd.h
29344 do
29345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29347   echo "$as_me:$LINENO: checking for $ac_header" >&5
29348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29350   echo $ECHO_N "(cached) $ECHO_C" >&6
29351 fi
29352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29354 else
29355   # Is the header compilable?
29356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29358 cat >conftest.$ac_ext <<_ACEOF
29359 /* confdefs.h.  */
29360 _ACEOF
29361 cat confdefs.h >>conftest.$ac_ext
29362 cat >>conftest.$ac_ext <<_ACEOF
29363 /* end confdefs.h.  */
29364 $ac_includes_default
29365 #include <$ac_header>
29366 _ACEOF
29367 rm -f conftest.$ac_objext
29368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29369   (eval $ac_compile) 2>conftest.er1
29370   ac_status=$?
29371   grep -v '^ *+' conftest.er1 >conftest.err
29372   rm -f conftest.er1
29373   cat conftest.err >&5
29374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375   (exit $ac_status); } &&
29376          { ac_try='test -z "$ac_c_werror_flag"
29377                          || test ! -s conftest.err'
29378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29379   (eval $ac_try) 2>&5
29380   ac_status=$?
29381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382   (exit $ac_status); }; } &&
29383          { ac_try='test -s conftest.$ac_objext'
29384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29385   (eval $ac_try) 2>&5
29386   ac_status=$?
29387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388   (exit $ac_status); }; }; then
29389   ac_header_compiler=yes
29390 else
29391   echo "$as_me: failed program was:" >&5
29392 sed 's/^/| /' conftest.$ac_ext >&5
29393
29394 ac_header_compiler=no
29395 fi
29396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29398 echo "${ECHO_T}$ac_header_compiler" >&6
29399
29400 # Is the header present?
29401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29403 cat >conftest.$ac_ext <<_ACEOF
29404 /* confdefs.h.  */
29405 _ACEOF
29406 cat confdefs.h >>conftest.$ac_ext
29407 cat >>conftest.$ac_ext <<_ACEOF
29408 /* end confdefs.h.  */
29409 #include <$ac_header>
29410 _ACEOF
29411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29413   ac_status=$?
29414   grep -v '^ *+' conftest.er1 >conftest.err
29415   rm -f conftest.er1
29416   cat conftest.err >&5
29417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418   (exit $ac_status); } >/dev/null; then
29419   if test -s conftest.err; then
29420     ac_cpp_err=$ac_c_preproc_warn_flag
29421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29422   else
29423     ac_cpp_err=
29424   fi
29425 else
29426   ac_cpp_err=yes
29427 fi
29428 if test -z "$ac_cpp_err"; then
29429   ac_header_preproc=yes
29430 else
29431   echo "$as_me: failed program was:" >&5
29432 sed 's/^/| /' conftest.$ac_ext >&5
29433
29434   ac_header_preproc=no
29435 fi
29436 rm -f conftest.err conftest.$ac_ext
29437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29438 echo "${ECHO_T}$ac_header_preproc" >&6
29439
29440 # So?  What about this header?
29441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29442   yes:no: )
29443     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29447     ac_header_preproc=yes
29448     ;;
29449   no:yes:* )
29450     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29452     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29453 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29454     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29456     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29457 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29460     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29462     (
29463       cat <<\_ASBOX
29464 ## ----------------------------------- ##
29465 ## Report this to llvmbugs@cs.uiuc.edu ##
29466 ## ----------------------------------- ##
29467 _ASBOX
29468     ) |
29469       sed "s/^/$as_me: WARNING:     /" >&2
29470     ;;
29471 esac
29472 echo "$as_me:$LINENO: checking for $ac_header" >&5
29473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29475   echo $ECHO_N "(cached) $ECHO_C" >&6
29476 else
29477   eval "$as_ac_Header=\$ac_header_preproc"
29478 fi
29479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29481
29482 fi
29483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29484   cat >>confdefs.h <<_ACEOF
29485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29486 _ACEOF
29487
29488 fi
29489
29490 done
29491
29492
29493 for ac_func in getpagesize
29494 do
29495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29496 echo "$as_me:$LINENO: checking for $ac_func" >&5
29497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29498 if eval "test \"\${$as_ac_var+set}\" = set"; then
29499   echo $ECHO_N "(cached) $ECHO_C" >&6
29500 else
29501   cat >conftest.$ac_ext <<_ACEOF
29502 /* confdefs.h.  */
29503 _ACEOF
29504 cat confdefs.h >>conftest.$ac_ext
29505 cat >>conftest.$ac_ext <<_ACEOF
29506 /* end confdefs.h.  */
29507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29509 #define $ac_func innocuous_$ac_func
29510
29511 /* System header to define __stub macros and hopefully few prototypes,
29512     which can conflict with char $ac_func (); below.
29513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29514     <limits.h> exists even on freestanding compilers.  */
29515
29516 #ifdef __STDC__
29517 # include <limits.h>
29518 #else
29519 # include <assert.h>
29520 #endif
29521
29522 #undef $ac_func
29523
29524 /* Override any gcc2 internal prototype to avoid an error.  */
29525 #ifdef __cplusplus
29526 extern "C"
29527 {
29528 #endif
29529 /* We use char because int might match the return type of a gcc2
29530    builtin and then its argument prototype would still apply.  */
29531 char $ac_func ();
29532 /* The GNU C library defines this for functions which it implements
29533     to always fail with ENOSYS.  Some functions are actually named
29534     something starting with __ and the normal name is an alias.  */
29535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29536 choke me
29537 #else
29538 char (*f) () = $ac_func;
29539 #endif
29540 #ifdef __cplusplus
29541 }
29542 #endif
29543
29544 int
29545 main ()
29546 {
29547 return f != $ac_func;
29548   ;
29549   return 0;
29550 }
29551 _ACEOF
29552 rm -f conftest.$ac_objext conftest$ac_exeext
29553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29554   (eval $ac_link) 2>conftest.er1
29555   ac_status=$?
29556   grep -v '^ *+' conftest.er1 >conftest.err
29557   rm -f conftest.er1
29558   cat conftest.err >&5
29559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560   (exit $ac_status); } &&
29561          { ac_try='test -z "$ac_c_werror_flag"
29562                          || test ! -s conftest.err'
29563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29564   (eval $ac_try) 2>&5
29565   ac_status=$?
29566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567   (exit $ac_status); }; } &&
29568          { ac_try='test -s conftest$ac_exeext'
29569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29570   (eval $ac_try) 2>&5
29571   ac_status=$?
29572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573   (exit $ac_status); }; }; then
29574   eval "$as_ac_var=yes"
29575 else
29576   echo "$as_me: failed program was:" >&5
29577 sed 's/^/| /' conftest.$ac_ext >&5
29578
29579 eval "$as_ac_var=no"
29580 fi
29581 rm -f conftest.err conftest.$ac_objext \
29582       conftest$ac_exeext conftest.$ac_ext
29583 fi
29584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29586 if test `eval echo '${'$as_ac_var'}'` = yes; then
29587   cat >>confdefs.h <<_ACEOF
29588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29589 _ACEOF
29590
29591 fi
29592 done
29593
29594 echo "$as_me:$LINENO: checking for working mmap" >&5
29595 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29596 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29597   echo $ECHO_N "(cached) $ECHO_C" >&6
29598 else
29599   if test "$cross_compiling" = yes; then
29600   ac_cv_func_mmap_fixed_mapped=no
29601 else
29602   cat >conftest.$ac_ext <<_ACEOF
29603 /* confdefs.h.  */
29604 _ACEOF
29605 cat confdefs.h >>conftest.$ac_ext
29606 cat >>conftest.$ac_ext <<_ACEOF
29607 /* end confdefs.h.  */
29608 $ac_includes_default
29609 /* malloc might have been renamed as rpl_malloc. */
29610 #undef malloc
29611
29612 /* Thanks to Mike Haertel and Jim Avera for this test.
29613    Here is a matrix of mmap possibilities:
29614         mmap private not fixed
29615         mmap private fixed at somewhere currently unmapped
29616         mmap private fixed at somewhere already mapped
29617         mmap shared not fixed
29618         mmap shared fixed at somewhere currently unmapped
29619         mmap shared fixed at somewhere already mapped
29620    For private mappings, we should verify that changes cannot be read()
29621    back from the file, nor mmap's back from the file at a different
29622    address.  (There have been systems where private was not correctly
29623    implemented like the infamous i386 svr4.0, and systems where the
29624    VM page cache was not coherent with the file system buffer cache
29625    like early versions of FreeBSD and possibly contemporary NetBSD.)
29626    For shared mappings, we should conversely verify that changes get
29627    propagated back to all the places they're supposed to be.
29628
29629    Grep wants private fixed already mapped.
29630    The main things grep needs to know about mmap are:
29631    * does it exist and is it safe to write into the mmap'd area
29632    * how to use it (BSD variants)  */
29633
29634 #include <fcntl.h>
29635 #include <sys/mman.h>
29636
29637 #if !STDC_HEADERS && !HAVE_STDLIB_H
29638 char *malloc ();
29639 #endif
29640
29641 /* This mess was copied from the GNU getpagesize.h.  */
29642 #if !HAVE_GETPAGESIZE
29643 /* Assume that all systems that can run configure have sys/param.h.  */
29644 # if !HAVE_SYS_PARAM_H
29645 #  define HAVE_SYS_PARAM_H 1
29646 # endif
29647
29648 # ifdef _SC_PAGESIZE
29649 #  define getpagesize() sysconf(_SC_PAGESIZE)
29650 # else /* no _SC_PAGESIZE */
29651 #  if HAVE_SYS_PARAM_H
29652 #   include <sys/param.h>
29653 #   ifdef EXEC_PAGESIZE
29654 #    define getpagesize() EXEC_PAGESIZE
29655 #   else /* no EXEC_PAGESIZE */
29656 #    ifdef NBPG
29657 #     define getpagesize() NBPG * CLSIZE
29658 #     ifndef CLSIZE
29659 #      define CLSIZE 1
29660 #     endif /* no CLSIZE */
29661 #    else /* no NBPG */
29662 #     ifdef NBPC
29663 #      define getpagesize() NBPC
29664 #     else /* no NBPC */
29665 #      ifdef PAGESIZE
29666 #       define getpagesize() PAGESIZE
29667 #      endif /* PAGESIZE */
29668 #     endif /* no NBPC */
29669 #    endif /* no NBPG */
29670 #   endif /* no EXEC_PAGESIZE */
29671 #  else /* no HAVE_SYS_PARAM_H */
29672 #   define getpagesize() 8192   /* punt totally */
29673 #  endif /* no HAVE_SYS_PARAM_H */
29674 # endif /* no _SC_PAGESIZE */
29675
29676 #endif /* no HAVE_GETPAGESIZE */
29677
29678 int
29679 main ()
29680 {
29681   char *data, *data2, *data3;
29682   int i, pagesize;
29683   int fd;
29684
29685   pagesize = getpagesize ();
29686
29687   /* First, make a file with some known garbage in it. */
29688   data = (char *) malloc (pagesize);
29689   if (!data)
29690     exit (1);
29691   for (i = 0; i < pagesize; ++i)
29692     *(data + i) = rand ();
29693   umask (0);
29694   fd = creat ("conftest.mmap", 0600);
29695   if (fd < 0)
29696     exit (1);
29697   if (write (fd, data, pagesize) != pagesize)
29698     exit (1);
29699   close (fd);
29700
29701   /* Next, try to mmap the file at a fixed address which already has
29702      something else allocated at it.  If we can, also make sure that
29703      we see the same garbage.  */
29704   fd = open ("conftest.mmap", O_RDWR);
29705   if (fd < 0)
29706     exit (1);
29707   data2 = (char *) malloc (2 * pagesize);
29708   if (!data2)
29709     exit (1);
29710   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29711   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29712                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29713     exit (1);
29714   for (i = 0; i < pagesize; ++i)
29715     if (*(data + i) != *(data2 + i))
29716       exit (1);
29717
29718   /* Finally, make sure that changes to the mapped area do not
29719      percolate back to the file as seen by read().  (This is a bug on
29720      some variants of i386 svr4.0.)  */
29721   for (i = 0; i < pagesize; ++i)
29722     *(data2 + i) = *(data2 + i) + 1;
29723   data3 = (char *) malloc (pagesize);
29724   if (!data3)
29725     exit (1);
29726   if (read (fd, data3, pagesize) != pagesize)
29727     exit (1);
29728   for (i = 0; i < pagesize; ++i)
29729     if (*(data + i) != *(data3 + i))
29730       exit (1);
29731   close (fd);
29732   exit (0);
29733 }
29734 _ACEOF
29735 rm -f conftest$ac_exeext
29736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29737   (eval $ac_link) 2>&5
29738   ac_status=$?
29739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29742   (eval $ac_try) 2>&5
29743   ac_status=$?
29744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745   (exit $ac_status); }; }; then
29746   ac_cv_func_mmap_fixed_mapped=yes
29747 else
29748   echo "$as_me: program exited with status $ac_status" >&5
29749 echo "$as_me: failed program was:" >&5
29750 sed 's/^/| /' conftest.$ac_ext >&5
29751
29752 ( exit $ac_status )
29753 ac_cv_func_mmap_fixed_mapped=no
29754 fi
29755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29756 fi
29757 fi
29758 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29759 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29760 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29761
29762 cat >>confdefs.h <<\_ACEOF
29763 #define HAVE_MMAP 1
29764 _ACEOF
29765
29766 fi
29767 rm -f conftest.mmap
29768
29769 echo "$as_me:$LINENO: checking for mmap of files" >&5
29770 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29771 if test "${ac_cv_func_mmap_file+set}" = set; then
29772   echo $ECHO_N "(cached) $ECHO_C" >&6
29773 else
29774    ac_ext=c
29775 ac_cpp='$CPP $CPPFLAGS'
29776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29779
29780   if test "$cross_compiling" = yes; then
29781   ac_cv_func_mmap_file=no
29782 else
29783   cat >conftest.$ac_ext <<_ACEOF
29784
29785     /* confdefs.h.  */
29786 _ACEOF
29787 cat confdefs.h >>conftest.$ac_ext
29788 cat >>conftest.$ac_ext <<_ACEOF
29789 /* end confdefs.h.  */
29790
29791 #include <sys/types.h>
29792 #include <sys/mman.h>
29793 #include <fcntl.h>
29794
29795 int
29796 main ()
29797 {
29798
29799   int fd;
29800   fd = creat ("foo",0777);
29801   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29802   unlink ("foo");
29803   return (fd != (int) MAP_FAILED);
29804   ;
29805   return 0;
29806 }
29807 _ACEOF
29808 rm -f conftest$ac_exeext
29809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29810   (eval $ac_link) 2>&5
29811   ac_status=$?
29812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29815   (eval $ac_try) 2>&5
29816   ac_status=$?
29817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818   (exit $ac_status); }; }; then
29819   ac_cv_func_mmap_file=yes
29820 else
29821   echo "$as_me: program exited with status $ac_status" >&5
29822 echo "$as_me: failed program was:" >&5
29823 sed 's/^/| /' conftest.$ac_ext >&5
29824
29825 ( exit $ac_status )
29826 ac_cv_func_mmap_file=no
29827 fi
29828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29829 fi
29830   ac_ext=c
29831 ac_cpp='$CPP $CPPFLAGS'
29832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29835
29836
29837 fi
29838 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29839 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29840 if test "$ac_cv_func_mmap_file" = yes; then
29841
29842 cat >>confdefs.h <<\_ACEOF
29843 #define HAVE_MMAP_FILE
29844 _ACEOF
29845
29846    MMAP_FILE=yes
29847
29848 fi
29849
29850 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
29851 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
29852 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
29853   echo $ECHO_N "(cached) $ECHO_C" >&6
29854 else
29855   if test "$llvm_cv_os_type" == "Interix" ; then
29856    ac_cv_need_dev_zero_for_mmap=yes
29857  else
29858    ac_cv_need_dev_zero_for_mmap=no
29859  fi
29860
29861 fi
29862 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
29863 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
29864 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
29865
29866 cat >>confdefs.h <<\_ACEOF
29867 #define NEED_DEV_ZERO_FOR_MMAP 1
29868 _ACEOF
29869
29870 fi
29871 echo "$as_me:$LINENO: checking for mprotect" >&5
29872 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29873 if test "${ac_cv_func_mprotect+set}" = set; then
29874   echo $ECHO_N "(cached) $ECHO_C" >&6
29875 else
29876   cat >conftest.$ac_ext <<_ACEOF
29877 /* confdefs.h.  */
29878 _ACEOF
29879 cat confdefs.h >>conftest.$ac_ext
29880 cat >>conftest.$ac_ext <<_ACEOF
29881 /* end confdefs.h.  */
29882 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29884 #define mprotect innocuous_mprotect
29885
29886 /* System header to define __stub macros and hopefully few prototypes,
29887     which can conflict with char mprotect (); below.
29888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29889     <limits.h> exists even on freestanding compilers.  */
29890
29891 #ifdef __STDC__
29892 # include <limits.h>
29893 #else
29894 # include <assert.h>
29895 #endif
29896
29897 #undef mprotect
29898
29899 /* Override any gcc2 internal prototype to avoid an error.  */
29900 #ifdef __cplusplus
29901 extern "C"
29902 {
29903 #endif
29904 /* We use char because int might match the return type of a gcc2
29905    builtin and then its argument prototype would still apply.  */
29906 char mprotect ();
29907 /* The GNU C library defines this for functions which it implements
29908     to always fail with ENOSYS.  Some functions are actually named
29909     something starting with __ and the normal name is an alias.  */
29910 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29911 choke me
29912 #else
29913 char (*f) () = mprotect;
29914 #endif
29915 #ifdef __cplusplus
29916 }
29917 #endif
29918
29919 int
29920 main ()
29921 {
29922 return f != mprotect;
29923   ;
29924   return 0;
29925 }
29926 _ACEOF
29927 rm -f conftest.$ac_objext conftest$ac_exeext
29928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29929   (eval $ac_link) 2>conftest.er1
29930   ac_status=$?
29931   grep -v '^ *+' conftest.er1 >conftest.err
29932   rm -f conftest.er1
29933   cat conftest.err >&5
29934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935   (exit $ac_status); } &&
29936          { ac_try='test -z "$ac_c_werror_flag"
29937                          || test ! -s conftest.err'
29938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29939   (eval $ac_try) 2>&5
29940   ac_status=$?
29941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942   (exit $ac_status); }; } &&
29943          { ac_try='test -s conftest$ac_exeext'
29944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29945   (eval $ac_try) 2>&5
29946   ac_status=$?
29947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948   (exit $ac_status); }; }; then
29949   ac_cv_func_mprotect=yes
29950 else
29951   echo "$as_me: failed program was:" >&5
29952 sed 's/^/| /' conftest.$ac_ext >&5
29953
29954 ac_cv_func_mprotect=no
29955 fi
29956 rm -f conftest.err conftest.$ac_objext \
29957       conftest$ac_exeext conftest.$ac_ext
29958 fi
29959 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29960 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29961 if test $ac_cv_func_mprotect = yes; then
29962   :
29963 else
29964   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29965 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29966    { (exit 1); exit 1; }; }
29967 fi
29968
29969
29970 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29971 then
29972   { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29973 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29974 fi
29975 if test "$ac_cv_func_mmap_file" = "no"
29976 then
29977   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29978 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29979 fi
29980
29981
29982 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29983 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29984 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29985   echo $ECHO_N "(cached) $ECHO_C" >&6
29986 else
29987   llvm_cv_llvmgcc_sanity="no"
29988 if test -x "$LLVMGCC" ; then
29989   cp /dev/null conftest.c
29990   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29991   if test $? -eq 0 ; then
29992     llvm_cv_llvmgcc_sanity="yes"
29993   fi
29994   rm conftest.c
29995 fi
29996 fi
29997 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29998 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29999
30000 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30001   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30002   LLVMCC1=$llvmcc1path
30003
30004   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30005   LLVMCC1PLUS=$llvmcc1pluspath
30006
30007   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30008   LLVMGCCDIR=$llvmgccdir
30009
30010 fi
30011
30012 SHLIBEXT=$libltdl_cv_shlibext
30013
30014
30015 # Translate the various configuration directories and other basic
30016 # information into substitutions that will end up in Makefile.config.in
30017 # that these configured values can be used by the makefiles
30018 eval LLVM_PREFIX="${prefix}";
30019 eval LLVM_BINDIR="${prefix}/bin";
30020 eval LLVM_LIBDIR="${prefix}/lib";
30021 eval LLVM_DATADIR="${prefix}/share/llvm";
30022 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30023 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30024 eval LLVM_INCLUDEDIR="${prefix}/include";
30025 eval LLVM_INFODIR="${prefix}/info";
30026 eval LLVM_MANDIR="${prefix}/man";
30027 LLVM_CONFIGTIME=`date`
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039 # Place the various directores into the config.h file as #defines so that we
30040 # can know about the installation paths within LLVM.
30041
30042 cat >>confdefs.h <<_ACEOF
30043 #define LLVM_PREFIX "$LLVM_PREFIX"
30044 _ACEOF
30045
30046
30047 cat >>confdefs.h <<_ACEOF
30048 #define LLVM_BINDIR "$LLVM_BINDIR"
30049 _ACEOF
30050
30051
30052 cat >>confdefs.h <<_ACEOF
30053 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30054 _ACEOF
30055
30056
30057 cat >>confdefs.h <<_ACEOF
30058 #define LLVM_DATADIR "$LLVM_DATADIR"
30059 _ACEOF
30060
30061
30062 cat >>confdefs.h <<_ACEOF
30063 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30064 _ACEOF
30065
30066
30067 cat >>confdefs.h <<_ACEOF
30068 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30069 _ACEOF
30070
30071
30072 cat >>confdefs.h <<_ACEOF
30073 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30074 _ACEOF
30075
30076
30077 cat >>confdefs.h <<_ACEOF
30078 #define LLVM_INFODIR "$LLVM_INFODIR"
30079 _ACEOF
30080
30081
30082 cat >>confdefs.h <<_ACEOF
30083 #define LLVM_MANDIR "$LLVM_MANDIR"
30084 _ACEOF
30085
30086
30087 cat >>confdefs.h <<_ACEOF
30088 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30089 _ACEOF
30090
30091
30092
30093           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30094
30095
30096           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30097
30098           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30099
30100           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30101
30102           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30103
30104           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30105
30106
30107           ac_config_files="$ac_config_files Makefile.config"
30108
30109
30110                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30111
30112
30113           ac_config_files="$ac_config_files docs/doxygen.cfg"
30114
30115
30116           ac_config_commands="$ac_config_commands Makefile"
30117
30118
30119           ac_config_commands="$ac_config_commands Makefile.common"
30120
30121
30122           ac_config_commands="$ac_config_commands examples/Makefile"
30123
30124
30125           ac_config_commands="$ac_config_commands lib/Makefile"
30126
30127
30128           ac_config_commands="$ac_config_commands runtime/Makefile"
30129
30130
30131           ac_config_commands="$ac_config_commands test/Makefile"
30132
30133
30134           ac_config_commands="$ac_config_commands test/Makefile.tests"
30135
30136
30137           ac_config_commands="$ac_config_commands tools/Makefile"
30138
30139
30140           ac_config_commands="$ac_config_commands utils/Makefile"
30141
30142
30143           ac_config_commands="$ac_config_commands projects/Makefile"
30144
30145
30146
30147 cat >confcache <<\_ACEOF
30148 # This file is a shell script that caches the results of configure
30149 # tests run on this system so they can be shared between configure
30150 # scripts and configure runs, see configure's option --config-cache.
30151 # It is not useful on other systems.  If it contains results you don't
30152 # want to keep, you may remove or edit it.
30153 #
30154 # config.status only pays attention to the cache file if you give it
30155 # the --recheck option to rerun configure.
30156 #
30157 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30158 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30159 # following values.
30160
30161 _ACEOF
30162
30163 # The following way of writing the cache mishandles newlines in values,
30164 # but we know of no workaround that is simple, portable, and efficient.
30165 # So, don't put newlines in cache variables' values.
30166 # Ultrix sh set writes to stderr and can't be redirected directly,
30167 # and sets the high bit in the cache file unless we assign to the vars.
30168 {
30169   (set) 2>&1 |
30170     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30171     *ac_space=\ *)
30172       # `set' does not quote correctly, so add quotes (double-quote
30173       # substitution turns \\\\ into \\, and sed turns \\ into \).
30174       sed -n \
30175         "s/'/'\\\\''/g;
30176           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30177       ;;
30178     *)
30179       # `set' quotes correctly as required by POSIX, so do not add quotes.
30180       sed -n \
30181         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30182       ;;
30183     esac;
30184 } |
30185   sed '
30186      t clear
30187      : clear
30188      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30189      t end
30190      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30191      : end' >>confcache
30192 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30193   if test -w $cache_file; then
30194     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30195     cat confcache >$cache_file
30196   else
30197     echo "not updating unwritable cache $cache_file"
30198   fi
30199 fi
30200 rm -f confcache
30201
30202 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30203 # Let make expand exec_prefix.
30204 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30205
30206 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30207 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30208 # trailing colons and then remove the whole line if VPATH becomes empty
30209 # (actually we leave an empty line to preserve line numbers).
30210 if test "x$srcdir" = x.; then
30211   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30212 s/:*\$(srcdir):*/:/;
30213 s/:*\${srcdir}:*/:/;
30214 s/:*@srcdir@:*/:/;
30215 s/^\([^=]*=[     ]*\):*/\1/;
30216 s/:*$//;
30217 s/^[^=]*=[       ]*$//;
30218 }'
30219 fi
30220
30221 DEFS=-DHAVE_CONFIG_H
30222
30223 ac_libobjs=
30224 ac_ltlibobjs=
30225 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30226   # 1. Remove the extension, and $U if already installed.
30227   ac_i=`echo "$ac_i" |
30228          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30229   # 2. Add them.
30230   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30231   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30232 done
30233 LIBOBJS=$ac_libobjs
30234
30235 LTLIBOBJS=$ac_ltlibobjs
30236
30237
30238 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30239   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30240 Usually this means the macro was only invoked conditionally." >&5
30241 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30242 Usually this means the macro was only invoked conditionally." >&2;}
30243    { (exit 1); exit 1; }; }
30244 fi
30245 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30246   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30247 Usually this means the macro was only invoked conditionally." >&5
30248 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30249 Usually this means the macro was only invoked conditionally." >&2;}
30250    { (exit 1); exit 1; }; }
30251 fi
30252
30253 : ${CONFIG_STATUS=./config.status}
30254 ac_clean_files_save=$ac_clean_files
30255 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30256 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30257 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30258 cat >$CONFIG_STATUS <<_ACEOF
30259 #! $SHELL
30260 # Generated by $as_me.
30261 # Run this file to recreate the current configuration.
30262 # Compiler output produced by configure, useful for debugging
30263 # configure, is in config.log if it exists.
30264
30265 debug=false
30266 ac_cs_recheck=false
30267 ac_cs_silent=false
30268 SHELL=\${CONFIG_SHELL-$SHELL}
30269 _ACEOF
30270
30271 cat >>$CONFIG_STATUS <<\_ACEOF
30272 ## --------------------- ##
30273 ## M4sh Initialization.  ##
30274 ## --------------------- ##
30275
30276 # Be Bourne compatible
30277 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30278   emulate sh
30279   NULLCMD=:
30280   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30281   # is contrary to our usage.  Disable this feature.
30282   alias -g '${1+"$@"}'='"$@"'
30283 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30284   set -o posix
30285 fi
30286 DUALCASE=1; export DUALCASE # for MKS sh
30287
30288 # Support unset when possible.
30289 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30290   as_unset=unset
30291 else
30292   as_unset=false
30293 fi
30294
30295
30296 # Work around bugs in pre-3.0 UWIN ksh.
30297 $as_unset ENV MAIL MAILPATH
30298 PS1='$ '
30299 PS2='> '
30300 PS4='+ '
30301
30302 # NLS nuisances.
30303 for as_var in \
30304   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30305   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30306   LC_TELEPHONE LC_TIME
30307 do
30308   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30309     eval $as_var=C; export $as_var
30310   else
30311     $as_unset $as_var
30312   fi
30313 done
30314
30315 # Required to use basename.
30316 if expr a : '\(a\)' >/dev/null 2>&1; then
30317   as_expr=expr
30318 else
30319   as_expr=false
30320 fi
30321
30322 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30323   as_basename=basename
30324 else
30325   as_basename=false
30326 fi
30327
30328
30329 # Name of the executable.
30330 as_me=`$as_basename "$0" ||
30331 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30332          X"$0" : 'X\(//\)$' \| \
30333          X"$0" : 'X\(/\)$' \| \
30334          .     : '\(.\)' 2>/dev/null ||
30335 echo X/"$0" |
30336     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30337           /^X\/\(\/\/\)$/{ s//\1/; q; }
30338           /^X\/\(\/\).*/{ s//\1/; q; }
30339           s/.*/./; q'`
30340
30341
30342 # PATH needs CR, and LINENO needs CR and PATH.
30343 # Avoid depending upon Character Ranges.
30344 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30345 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30346 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30347 as_cr_digits='0123456789'
30348 as_cr_alnum=$as_cr_Letters$as_cr_digits
30349
30350 # The user is always right.
30351 if test "${PATH_SEPARATOR+set}" != set; then
30352   echo "#! /bin/sh" >conf$$.sh
30353   echo  "exit 0"   >>conf$$.sh
30354   chmod +x conf$$.sh
30355   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30356     PATH_SEPARATOR=';'
30357   else
30358     PATH_SEPARATOR=:
30359   fi
30360   rm -f conf$$.sh
30361 fi
30362
30363
30364   as_lineno_1=$LINENO
30365   as_lineno_2=$LINENO
30366   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30367   test "x$as_lineno_1" != "x$as_lineno_2" &&
30368   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30369   # Find who we are.  Look in the path if we contain no path at all
30370   # relative or not.
30371   case $0 in
30372     *[\\/]* ) as_myself=$0 ;;
30373     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30374 for as_dir in $PATH
30375 do
30376   IFS=$as_save_IFS
30377   test -z "$as_dir" && as_dir=.
30378   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30379 done
30380
30381        ;;
30382   esac
30383   # We did not find ourselves, most probably we were run as `sh COMMAND'
30384   # in which case we are not to be found in the path.
30385   if test "x$as_myself" = x; then
30386     as_myself=$0
30387   fi
30388   if test ! -f "$as_myself"; then
30389     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30390 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30391    { (exit 1); exit 1; }; }
30392   fi
30393   case $CONFIG_SHELL in
30394   '')
30395     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30396 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30397 do
30398   IFS=$as_save_IFS
30399   test -z "$as_dir" && as_dir=.
30400   for as_base in sh bash ksh sh5; do
30401          case $as_dir in
30402          /*)
30403            if ("$as_dir/$as_base" -c '
30404   as_lineno_1=$LINENO
30405   as_lineno_2=$LINENO
30406   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30407   test "x$as_lineno_1" != "x$as_lineno_2" &&
30408   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30409              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30410              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30411              CONFIG_SHELL=$as_dir/$as_base
30412              export CONFIG_SHELL
30413              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30414            fi;;
30415          esac
30416        done
30417 done
30418 ;;
30419   esac
30420
30421   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30422   # uniformly replaced by the line number.  The first 'sed' inserts a
30423   # line-number line before each line; the second 'sed' does the real
30424   # work.  The second script uses 'N' to pair each line-number line
30425   # with the numbered line, and appends trailing '-' during
30426   # substitution so that $LINENO is not a special case at line end.
30427   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30428   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30429   sed '=' <$as_myself |
30430     sed '
30431       N
30432       s,$,-,
30433       : loop
30434       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30435       t loop
30436       s,-$,,
30437       s,^['$as_cr_digits']*\n,,
30438     ' >$as_me.lineno &&
30439   chmod +x $as_me.lineno ||
30440     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30441 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30442    { (exit 1); exit 1; }; }
30443
30444   # Don't try to exec as it changes $[0], causing all sort of problems
30445   # (the dirname of $[0] is not the place where we might find the
30446   # original and so on.  Autoconf is especially sensible to this).
30447   . ./$as_me.lineno
30448   # Exit status is that of the last command.
30449   exit
30450 }
30451
30452
30453 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30454   *c*,-n*) ECHO_N= ECHO_C='
30455 ' ECHO_T='      ' ;;
30456   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30457   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30458 esac
30459
30460 if expr a : '\(a\)' >/dev/null 2>&1; then
30461   as_expr=expr
30462 else
30463   as_expr=false
30464 fi
30465
30466 rm -f conf$$ conf$$.exe conf$$.file
30467 echo >conf$$.file
30468 if ln -s conf$$.file conf$$ 2>/dev/null; then
30469   # We could just check for DJGPP; but this test a) works b) is more generic
30470   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30471   if test -f conf$$.exe; then
30472     # Don't use ln at all; we don't have any links
30473     as_ln_s='cp -p'
30474   else
30475     as_ln_s='ln -s'
30476   fi
30477 elif ln conf$$.file conf$$ 2>/dev/null; then
30478   as_ln_s=ln
30479 else
30480   as_ln_s='cp -p'
30481 fi
30482 rm -f conf$$ conf$$.exe conf$$.file
30483
30484 if mkdir -p . 2>/dev/null; then
30485   as_mkdir_p=:
30486 else
30487   test -d ./-p && rmdir ./-p
30488   as_mkdir_p=false
30489 fi
30490
30491 as_executable_p="test -f"
30492
30493 # Sed expression to map a string onto a valid CPP name.
30494 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30495
30496 # Sed expression to map a string onto a valid variable name.
30497 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30498
30499
30500 # IFS
30501 # We need space, tab and new line, in precisely that order.
30502 as_nl='
30503 '
30504 IFS="   $as_nl"
30505
30506 # CDPATH.
30507 $as_unset CDPATH
30508
30509 exec 6>&1
30510
30511 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30512 # report actual input values of CONFIG_FILES etc. instead of their
30513 # values after options handling.  Logging --version etc. is OK.
30514 exec 5>>config.log
30515 {
30516   echo
30517   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30518 ## Running $as_me. ##
30519 _ASBOX
30520 } >&5
30521 cat >&5 <<_CSEOF
30522
30523 This file was extended by llvm $as_me 1.4, which was
30524 generated by GNU Autoconf 2.59.  Invocation command line was
30525
30526   CONFIG_FILES    = $CONFIG_FILES
30527   CONFIG_HEADERS  = $CONFIG_HEADERS
30528   CONFIG_LINKS    = $CONFIG_LINKS
30529   CONFIG_COMMANDS = $CONFIG_COMMANDS
30530   $ $0 $@
30531
30532 _CSEOF
30533 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30534 echo >&5
30535 _ACEOF
30536
30537 # Files that config.status was made for.
30538 if test -n "$ac_config_files"; then
30539   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30540 fi
30541
30542 if test -n "$ac_config_headers"; then
30543   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30544 fi
30545
30546 if test -n "$ac_config_links"; then
30547   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30548 fi
30549
30550 if test -n "$ac_config_commands"; then
30551   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30552 fi
30553
30554 cat >>$CONFIG_STATUS <<\_ACEOF
30555
30556 ac_cs_usage="\
30557 \`$as_me' instantiates files from templates according to the
30558 current configuration.
30559
30560 Usage: $0 [OPTIONS] [FILE]...
30561
30562   -h, --help       print this help, then exit
30563   -V, --version    print version number, then exit
30564   -q, --quiet      do not print progress messages
30565   -d, --debug      don't remove temporary files
30566       --recheck    update $as_me by reconfiguring in the same conditions
30567   --file=FILE[:TEMPLATE]
30568                    instantiate the configuration file FILE
30569   --header=FILE[:TEMPLATE]
30570                    instantiate the configuration header FILE
30571
30572 Configuration files:
30573 $config_files
30574
30575 Configuration headers:
30576 $config_headers
30577
30578 Configuration commands:
30579 $config_commands
30580
30581 Report bugs to <bug-autoconf@gnu.org>."
30582 _ACEOF
30583
30584 cat >>$CONFIG_STATUS <<_ACEOF
30585 ac_cs_version="\\
30586 llvm config.status 1.4
30587 configured by $0, generated by GNU Autoconf 2.59,
30588   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30589
30590 Copyright (C) 2003 Free Software Foundation, Inc.
30591 This config.status script is free software; the Free Software Foundation
30592 gives unlimited permission to copy, distribute and modify it."
30593 srcdir=$srcdir
30594 INSTALL="$INSTALL"
30595 _ACEOF
30596
30597 cat >>$CONFIG_STATUS <<\_ACEOF
30598 # If no file are specified by the user, then we need to provide default
30599 # value.  By we need to know if files were specified by the user.
30600 ac_need_defaults=:
30601 while test $# != 0
30602 do
30603   case $1 in
30604   --*=*)
30605     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30606     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30607     ac_shift=:
30608     ;;
30609   -*)
30610     ac_option=$1
30611     ac_optarg=$2
30612     ac_shift=shift
30613     ;;
30614   *) # This is not an option, so the user has probably given explicit
30615      # arguments.
30616      ac_option=$1
30617      ac_need_defaults=false;;
30618   esac
30619
30620   case $ac_option in
30621   # Handling of the options.
30622 _ACEOF
30623 cat >>$CONFIG_STATUS <<\_ACEOF
30624   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30625     ac_cs_recheck=: ;;
30626   --version | --vers* | -V )
30627     echo "$ac_cs_version"; exit 0 ;;
30628   --he | --h)
30629     # Conflict between --help and --header
30630     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30631 Try \`$0 --help' for more information." >&5
30632 echo "$as_me: error: ambiguous option: $1
30633 Try \`$0 --help' for more information." >&2;}
30634    { (exit 1); exit 1; }; };;
30635   --help | --hel | -h )
30636     echo "$ac_cs_usage"; exit 0 ;;
30637   --debug | --d* | -d )
30638     debug=: ;;
30639   --file | --fil | --fi | --f )
30640     $ac_shift
30641     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30642     ac_need_defaults=false;;
30643   --header | --heade | --head | --hea )
30644     $ac_shift
30645     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30646     ac_need_defaults=false;;
30647   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30648   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30649     ac_cs_silent=: ;;
30650
30651   # This is an error.
30652   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30653 Try \`$0 --help' for more information." >&5
30654 echo "$as_me: error: unrecognized option: $1
30655 Try \`$0 --help' for more information." >&2;}
30656    { (exit 1); exit 1; }; } ;;
30657
30658   *) ac_config_targets="$ac_config_targets $1" ;;
30659
30660   esac
30661   shift
30662 done
30663
30664 ac_configure_extra_args=
30665
30666 if $ac_cs_silent; then
30667   exec 6>/dev/null
30668   ac_configure_extra_args="$ac_configure_extra_args --silent"
30669 fi
30670
30671 _ACEOF
30672 cat >>$CONFIG_STATUS <<_ACEOF
30673 if \$ac_cs_recheck; then
30674   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30675   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30676 fi
30677
30678 _ACEOF
30679
30680 cat >>$CONFIG_STATUS <<_ACEOF
30681 #
30682 # INIT-COMMANDS section.
30683 #
30684
30685 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30686 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30687 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30688 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30689 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30690 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30691 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30692 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30693 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30694 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30695
30696 _ACEOF
30697
30698
30699
30700 cat >>$CONFIG_STATUS <<\_ACEOF
30701 for ac_config_target in $ac_config_targets
30702 do
30703   case "$ac_config_target" in
30704   # Handling of arguments.
30705   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30706   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30707   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30708   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30709   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30710   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30711   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30712   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30713   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30714   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30715   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30716   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30717   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30718   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30719   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30720   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30721   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30722   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30723   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30724   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30725   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30726   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30727   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30728 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30729    { (exit 1); exit 1; }; };;
30730   esac
30731 done
30732
30733 # If the user did not use the arguments to specify the items to instantiate,
30734 # then the envvar interface is used.  Set only those that are not.
30735 # We use the long form for the default assignment because of an extremely
30736 # bizarre bug on SunOS 4.1.3.
30737 if $ac_need_defaults; then
30738   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30739   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30740   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30741 fi
30742
30743 # Have a temporary directory for convenience.  Make it in the build tree
30744 # simply because there is no reason to put it here, and in addition,
30745 # creating and moving files from /tmp can sometimes cause problems.
30746 # Create a temporary directory, and hook for its removal unless debugging.
30747 $debug ||
30748 {
30749   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30750   trap '{ (exit 1); exit 1; }' 1 2 13 15
30751 }
30752
30753 # Create a (secure) tmp directory for tmp files.
30754
30755 {
30756   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30757   test -n "$tmp" && test -d "$tmp"
30758 }  ||
30759 {
30760   tmp=./confstat$$-$RANDOM
30761   (umask 077 && mkdir $tmp)
30762 } ||
30763 {
30764    echo "$me: cannot create a temporary directory in ." >&2
30765    { (exit 1); exit 1; }
30766 }
30767
30768 _ACEOF
30769
30770 cat >>$CONFIG_STATUS <<_ACEOF
30771
30772 #
30773 # CONFIG_FILES section.
30774 #
30775
30776 # No need to generate the scripts if there are no CONFIG_FILES.
30777 # This happens for instance when ./config.status config.h
30778 if test -n "\$CONFIG_FILES"; then
30779   # Protect against being on the right side of a sed subst in config.status.
30780   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30781    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30782 s,@SHELL@,$SHELL,;t t
30783 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30784 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30785 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30786 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30787 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30788 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30789 s,@exec_prefix@,$exec_prefix,;t t
30790 s,@prefix@,$prefix,;t t
30791 s,@program_transform_name@,$program_transform_name,;t t
30792 s,@bindir@,$bindir,;t t
30793 s,@sbindir@,$sbindir,;t t
30794 s,@libexecdir@,$libexecdir,;t t
30795 s,@datadir@,$datadir,;t t
30796 s,@sysconfdir@,$sysconfdir,;t t
30797 s,@sharedstatedir@,$sharedstatedir,;t t
30798 s,@localstatedir@,$localstatedir,;t t
30799 s,@libdir@,$libdir,;t t
30800 s,@includedir@,$includedir,;t t
30801 s,@oldincludedir@,$oldincludedir,;t t
30802 s,@infodir@,$infodir,;t t
30803 s,@mandir@,$mandir,;t t
30804 s,@build_alias@,$build_alias,;t t
30805 s,@host_alias@,$host_alias,;t t
30806 s,@target_alias@,$target_alias,;t t
30807 s,@DEFS@,$DEFS,;t t
30808 s,@ECHO_C@,$ECHO_C,;t t
30809 s,@ECHO_N@,$ECHO_N,;t t
30810 s,@ECHO_T@,$ECHO_T,;t t
30811 s,@LIBS@,$LIBS,;t t
30812 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30813 s,@subdirs@,$subdirs,;t t
30814 s,@build@,$build,;t t
30815 s,@build_cpu@,$build_cpu,;t t
30816 s,@build_vendor@,$build_vendor,;t t
30817 s,@build_os@,$build_os,;t t
30818 s,@host@,$host,;t t
30819 s,@host_cpu@,$host_cpu,;t t
30820 s,@host_vendor@,$host_vendor,;t t
30821 s,@host_os@,$host_os,;t t
30822 s,@target@,$target,;t t
30823 s,@target_cpu@,$target_cpu,;t t
30824 s,@target_vendor@,$target_vendor,;t t
30825 s,@target_os@,$target_os,;t t
30826 s,@OS@,$OS,;t t
30827 s,@ARCH@,$ARCH,;t t
30828 s,@ENDIAN@,$ENDIAN,;t t
30829 s,@CC@,$CC,;t t
30830 s,@CFLAGS@,$CFLAGS,;t t
30831 s,@LDFLAGS@,$LDFLAGS,;t t
30832 s,@CPPFLAGS@,$CPPFLAGS,;t t
30833 s,@ac_ct_CC@,$ac_ct_CC,;t t
30834 s,@EXEEXT@,$EXEEXT,;t t
30835 s,@OBJEXT@,$OBJEXT,;t t
30836 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30837 s,@JIT@,$JIT,;t t
30838 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30839 s,@CPP@,$CPP,;t t
30840 s,@CXX@,$CXX,;t t
30841 s,@CXXFLAGS@,$CXXFLAGS,;t t
30842 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30843 s,@LEX@,$LEX,;t t
30844 s,@LEXLIB@,$LEXLIB,;t t
30845 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30846 s,@FLEX@,$FLEX,;t t
30847 s,@YACC@,$YACC,;t t
30848 s,@BISON@,$BISON,;t t
30849 s,@ifGNUmake@,$ifGNUmake,;t t
30850 s,@LN_S@,$LN_S,;t t
30851 s,@CMP@,$CMP,;t t
30852 s,@CP@,$CP,;t t
30853 s,@DATE@,$DATE,;t t
30854 s,@FIND@,$FIND,;t t
30855 s,@GREP@,$GREP,;t t
30856 s,@MKDIR@,$MKDIR,;t t
30857 s,@MV@,$MV,;t t
30858 s,@PAX@,$PAX,;t t
30859 s,@RANLIB@,$RANLIB,;t t
30860 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30861 s,@RM@,$RM,;t t
30862 s,@SED@,$SED,;t t
30863 s,@TAR@,$TAR,;t t
30864 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30865 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30866 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30867 s,@BZIP2@,$BZIP2,;t t
30868 s,@DOT@,$DOT,;t t
30869 s,@DOXYGEN@,$DOXYGEN,;t t
30870 s,@ETAGS@,$ETAGS,;t t
30871 s,@GROFF@,$GROFF,;t t
30872 s,@GZIP@,$GZIP,;t t
30873 s,@POD2HTML@,$POD2HTML,;t t
30874 s,@POD2MAN@,$POD2MAN,;t t
30875 s,@RUNTEST@,$RUNTEST,;t t
30876 s,@TCLSH@,$TCLSH,;t t
30877 s,@ZIP@,$ZIP,;t t
30878 s,@EGREP@,$EGREP,;t t
30879 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30880 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30881 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30882 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30883 s,@LIBADD_DL@,$LIBADD_DL,;t t
30884 s,@ECHO@,$ECHO,;t t
30885 s,@AR@,$AR,;t t
30886 s,@ac_ct_AR@,$ac_ct_AR,;t t
30887 s,@STRIP@,$STRIP,;t t
30888 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30889 s,@CXXCPP@,$CXXCPP,;t t
30890 s,@F77@,$F77,;t t
30891 s,@FFLAGS@,$FFLAGS,;t t
30892 s,@ac_ct_F77@,$ac_ct_F77,;t t
30893 s,@LIBTOOL@,$LIBTOOL,;t t
30894 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30895 s,@LLVMGCC@,$LLVMGCC,;t t
30896 s,@LLVMGXX@,$LLVMGXX,;t t
30897 s,@ALLOCA@,$ALLOCA,;t t
30898 s,@MMAP_FILE@,$MMAP_FILE,;t t
30899 s,@LLVMCC1@,$LLVMCC1,;t t
30900 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30901 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30902 s,@SHLIBEXT@,$SHLIBEXT,;t t
30903 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30904 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30905 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30906 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30907 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30908 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30909 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30910 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30911 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30912 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30913 s,@LIBOBJS@,$LIBOBJS,;t t
30914 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30915 CEOF
30916
30917 _ACEOF
30918
30919   cat >>$CONFIG_STATUS <<\_ACEOF
30920   # Split the substitutions into bite-sized pieces for seds with
30921   # small command number limits, like on Digital OSF/1 and HP-UX.
30922   ac_max_sed_lines=48
30923   ac_sed_frag=1 # Number of current file.
30924   ac_beg=1 # First line for current file.
30925   ac_end=$ac_max_sed_lines # Line after last line for current file.
30926   ac_more_lines=:
30927   ac_sed_cmds=
30928   while $ac_more_lines; do
30929     if test $ac_beg -gt 1; then
30930       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30931     else
30932       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30933     fi
30934     if test ! -s $tmp/subs.frag; then
30935       ac_more_lines=false
30936     else
30937       # The purpose of the label and of the branching condition is to
30938       # speed up the sed processing (if there are no `@' at all, there
30939       # is no need to browse any of the substitutions).
30940       # These are the two extra sed commands mentioned above.
30941       (echo ':t
30942   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30943       if test -z "$ac_sed_cmds"; then
30944         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30945       else
30946         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30947       fi
30948       ac_sed_frag=`expr $ac_sed_frag + 1`
30949       ac_beg=$ac_end
30950       ac_end=`expr $ac_end + $ac_max_sed_lines`
30951     fi
30952   done
30953   if test -z "$ac_sed_cmds"; then
30954     ac_sed_cmds=cat
30955   fi
30956 fi # test -n "$CONFIG_FILES"
30957
30958 _ACEOF
30959 cat >>$CONFIG_STATUS <<\_ACEOF
30960 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30961   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30962   case $ac_file in
30963   - | *:- | *:-:* ) # input from stdin
30964         cat >$tmp/stdin
30965         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30966         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30967   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30968         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30969   * )   ac_file_in=$ac_file.in ;;
30970   esac
30971
30972   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30973   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30974 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30975          X"$ac_file" : 'X\(//\)[^/]' \| \
30976          X"$ac_file" : 'X\(//\)$' \| \
30977          X"$ac_file" : 'X\(/\)' \| \
30978          .     : '\(.\)' 2>/dev/null ||
30979 echo X"$ac_file" |
30980     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30981           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30982           /^X\(\/\/\)$/{ s//\1/; q; }
30983           /^X\(\/\).*/{ s//\1/; q; }
30984           s/.*/./; q'`
30985   { if $as_mkdir_p; then
30986     mkdir -p "$ac_dir"
30987   else
30988     as_dir="$ac_dir"
30989     as_dirs=
30990     while test ! -d "$as_dir"; do
30991       as_dirs="$as_dir $as_dirs"
30992       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30994          X"$as_dir" : 'X\(//\)[^/]' \| \
30995          X"$as_dir" : 'X\(//\)$' \| \
30996          X"$as_dir" : 'X\(/\)' \| \
30997          .     : '\(.\)' 2>/dev/null ||
30998 echo X"$as_dir" |
30999     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31000           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31001           /^X\(\/\/\)$/{ s//\1/; q; }
31002           /^X\(\/\).*/{ s//\1/; q; }
31003           s/.*/./; q'`
31004     done
31005     test ! -n "$as_dirs" || mkdir $as_dirs
31006   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31007 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31008    { (exit 1); exit 1; }; }; }
31009
31010   ac_builddir=.
31011
31012 if test "$ac_dir" != .; then
31013   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31014   # A "../" for each directory in $ac_dir_suffix.
31015   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31016 else
31017   ac_dir_suffix= ac_top_builddir=
31018 fi
31019
31020 case $srcdir in
31021   .)  # No --srcdir option.  We are building in place.
31022     ac_srcdir=.
31023     if test -z "$ac_top_builddir"; then
31024        ac_top_srcdir=.
31025     else
31026        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31027     fi ;;
31028   [\\/]* | ?:[\\/]* )  # Absolute path.
31029     ac_srcdir=$srcdir$ac_dir_suffix;
31030     ac_top_srcdir=$srcdir ;;
31031   *) # Relative path.
31032     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31033     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31034 esac
31035
31036 # Do not use `cd foo && pwd` to compute absolute paths, because
31037 # the directories may not exist.
31038 case `pwd` in
31039 .) ac_abs_builddir="$ac_dir";;
31040 *)
31041   case "$ac_dir" in
31042   .) ac_abs_builddir=`pwd`;;
31043   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31044   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31045   esac;;
31046 esac
31047 case $ac_abs_builddir in
31048 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31049 *)
31050   case ${ac_top_builddir}. in
31051   .) ac_abs_top_builddir=$ac_abs_builddir;;
31052   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31053   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31054   esac;;
31055 esac
31056 case $ac_abs_builddir in
31057 .) ac_abs_srcdir=$ac_srcdir;;
31058 *)
31059   case $ac_srcdir in
31060   .) ac_abs_srcdir=$ac_abs_builddir;;
31061   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31062   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31063   esac;;
31064 esac
31065 case $ac_abs_builddir in
31066 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31067 *)
31068   case $ac_top_srcdir in
31069   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31070   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31071   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31072   esac;;
31073 esac
31074
31075
31076   case $INSTALL in
31077   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31078   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31079   esac
31080
31081   if test x"$ac_file" != x-; then
31082     { echo "$as_me:$LINENO: creating $ac_file" >&5
31083 echo "$as_me: creating $ac_file" >&6;}
31084     rm -f "$ac_file"
31085   fi
31086   # Let's still pretend it is `configure' which instantiates (i.e., don't
31087   # use $as_me), people would be surprised to read:
31088   #    /* config.h.  Generated by config.status.  */
31089   if test x"$ac_file" = x-; then
31090     configure_input=
31091   else
31092     configure_input="$ac_file.  "
31093   fi
31094   configure_input=$configure_input"Generated from `echo $ac_file_in |
31095                                      sed 's,.*/,,'` by configure."
31096
31097   # First look for the input files in the build tree, otherwise in the
31098   # src tree.
31099   ac_file_inputs=`IFS=:
31100     for f in $ac_file_in; do
31101       case $f in
31102       -) echo $tmp/stdin ;;
31103       [\\/$]*)
31104          # Absolute (can't be DOS-style, as IFS=:)
31105          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31106 echo "$as_me: error: cannot find input file: $f" >&2;}
31107    { (exit 1); exit 1; }; }
31108          echo "$f";;
31109       *) # Relative
31110          if test -f "$f"; then
31111            # Build tree
31112            echo "$f"
31113          elif test -f "$srcdir/$f"; then
31114            # Source tree
31115            echo "$srcdir/$f"
31116          else
31117            # /dev/null tree
31118            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31119 echo "$as_me: error: cannot find input file: $f" >&2;}
31120    { (exit 1); exit 1; }; }
31121          fi;;
31122       esac
31123     done` || { (exit 1); exit 1; }
31124 _ACEOF
31125 cat >>$CONFIG_STATUS <<_ACEOF
31126   sed "$ac_vpsub
31127 $extrasub
31128 _ACEOF
31129 cat >>$CONFIG_STATUS <<\_ACEOF
31130 :t
31131 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31132 s,@configure_input@,$configure_input,;t t
31133 s,@srcdir@,$ac_srcdir,;t t
31134 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31135 s,@top_srcdir@,$ac_top_srcdir,;t t
31136 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31137 s,@builddir@,$ac_builddir,;t t
31138 s,@abs_builddir@,$ac_abs_builddir,;t t
31139 s,@top_builddir@,$ac_top_builddir,;t t
31140 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31141 s,@INSTALL@,$ac_INSTALL,;t t
31142 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31143   rm -f $tmp/stdin
31144   if test x"$ac_file" != x-; then
31145     mv $tmp/out $ac_file
31146   else
31147     cat $tmp/out
31148     rm -f $tmp/out
31149   fi
31150
31151 done
31152 _ACEOF
31153 cat >>$CONFIG_STATUS <<\_ACEOF
31154
31155 #
31156 # CONFIG_HEADER section.
31157 #
31158
31159 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31160 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31161 #
31162 # ac_d sets the value in "#define NAME VALUE" lines.
31163 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31164 ac_dB='[         ].*$,\1#\2'
31165 ac_dC=' '
31166 ac_dD=',;t'
31167 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31168 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31169 ac_uB='$,\1#\2define\3'
31170 ac_uC=' '
31171 ac_uD=',;t'
31172
31173 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31174   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31175   case $ac_file in
31176   - | *:- | *:-:* ) # input from stdin
31177         cat >$tmp/stdin
31178         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31179         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31180   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31181         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31182   * )   ac_file_in=$ac_file.in ;;
31183   esac
31184
31185   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31186 echo "$as_me: creating $ac_file" >&6;}
31187
31188   # First look for the input files in the build tree, otherwise in the
31189   # src tree.
31190   ac_file_inputs=`IFS=:
31191     for f in $ac_file_in; do
31192       case $f in
31193       -) echo $tmp/stdin ;;
31194       [\\/$]*)
31195          # Absolute (can't be DOS-style, as IFS=:)
31196          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31197 echo "$as_me: error: cannot find input file: $f" >&2;}
31198    { (exit 1); exit 1; }; }
31199          # Do quote $f, to prevent DOS paths from being IFS'd.
31200          echo "$f";;
31201       *) # Relative
31202          if test -f "$f"; then
31203            # Build tree
31204            echo "$f"
31205          elif test -f "$srcdir/$f"; then
31206            # Source tree
31207            echo "$srcdir/$f"
31208          else
31209            # /dev/null tree
31210            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31211 echo "$as_me: error: cannot find input file: $f" >&2;}
31212    { (exit 1); exit 1; }; }
31213          fi;;
31214       esac
31215     done` || { (exit 1); exit 1; }
31216   # Remove the trailing spaces.
31217   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31218
31219 _ACEOF
31220
31221 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31222 # `conftest.undefs', that substitutes the proper values into
31223 # config.h.in to produce config.h.  The first handles `#define'
31224 # templates, and the second `#undef' templates.
31225 # And first: Protect against being on the right side of a sed subst in
31226 # config.status.  Protect against being in an unquoted here document
31227 # in config.status.
31228 rm -f conftest.defines conftest.undefs
31229 # Using a here document instead of a string reduces the quoting nightmare.
31230 # Putting comments in sed scripts is not portable.
31231 #
31232 # `end' is used to avoid that the second main sed command (meant for
31233 # 0-ary CPP macros) applies to n-ary macro definitions.
31234 # See the Autoconf documentation for `clear'.
31235 cat >confdef2sed.sed <<\_ACEOF
31236 s/[\\&,]/\\&/g
31237 s,[\\$`],\\&,g
31238 t clear
31239 : clear
31240 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31241 t end
31242 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31243 : end
31244 _ACEOF
31245 # If some macros were called several times there might be several times
31246 # the same #defines, which is useless.  Nevertheless, we may not want to
31247 # sort them, since we want the *last* AC-DEFINE to be honored.
31248 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31249 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31250 rm -f confdef2sed.sed
31251
31252 # This sed command replaces #undef with comments.  This is necessary, for
31253 # example, in the case of _POSIX_SOURCE, which is predefined and required
31254 # on some systems where configure will not decide to define it.
31255 cat >>conftest.undefs <<\_ACEOF
31256 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31257 _ACEOF
31258
31259 # Break up conftest.defines because some shells have a limit on the size
31260 # of here documents, and old seds have small limits too (100 cmds).
31261 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31262 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31263 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31264 echo '  :' >>$CONFIG_STATUS
31265 rm -f conftest.tail
31266 while grep . conftest.defines >/dev/null
31267 do
31268   # Write a limited-size here document to $tmp/defines.sed.
31269   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31270   # Speed up: don't consider the non `#define' lines.
31271   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31272   # Work around the forget-to-reset-the-flag bug.
31273   echo 't clr' >>$CONFIG_STATUS
31274   echo ': clr' >>$CONFIG_STATUS
31275   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31276   echo 'CEOF
31277   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31278   rm -f $tmp/in
31279   mv $tmp/out $tmp/in
31280 ' >>$CONFIG_STATUS
31281   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31282   rm -f conftest.defines
31283   mv conftest.tail conftest.defines
31284 done
31285 rm -f conftest.defines
31286 echo '  fi # grep' >>$CONFIG_STATUS
31287 echo >>$CONFIG_STATUS
31288
31289 # Break up conftest.undefs because some shells have a limit on the size
31290 # of here documents, and old seds have small limits too (100 cmds).
31291 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31292 rm -f conftest.tail
31293 while grep . conftest.undefs >/dev/null
31294 do
31295   # Write a limited-size here document to $tmp/undefs.sed.
31296   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31297   # Speed up: don't consider the non `#undef'
31298   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31299   # Work around the forget-to-reset-the-flag bug.
31300   echo 't clr' >>$CONFIG_STATUS
31301   echo ': clr' >>$CONFIG_STATUS
31302   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31303   echo 'CEOF
31304   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31305   rm -f $tmp/in
31306   mv $tmp/out $tmp/in
31307 ' >>$CONFIG_STATUS
31308   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31309   rm -f conftest.undefs
31310   mv conftest.tail conftest.undefs
31311 done
31312 rm -f conftest.undefs
31313
31314 cat >>$CONFIG_STATUS <<\_ACEOF
31315   # Let's still pretend it is `configure' which instantiates (i.e., don't
31316   # use $as_me), people would be surprised to read:
31317   #    /* config.h.  Generated by config.status.  */
31318   if test x"$ac_file" = x-; then
31319     echo "/* Generated by configure.  */" >$tmp/config.h
31320   else
31321     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31322   fi
31323   cat $tmp/in >>$tmp/config.h
31324   rm -f $tmp/in
31325   if test x"$ac_file" != x-; then
31326     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31327       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31328 echo "$as_me: $ac_file is unchanged" >&6;}
31329     else
31330       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31331 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31332          X"$ac_file" : 'X\(//\)[^/]' \| \
31333          X"$ac_file" : 'X\(//\)$' \| \
31334          X"$ac_file" : 'X\(/\)' \| \
31335          .     : '\(.\)' 2>/dev/null ||
31336 echo X"$ac_file" |
31337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31338           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31339           /^X\(\/\/\)$/{ s//\1/; q; }
31340           /^X\(\/\).*/{ s//\1/; q; }
31341           s/.*/./; q'`
31342       { if $as_mkdir_p; then
31343     mkdir -p "$ac_dir"
31344   else
31345     as_dir="$ac_dir"
31346     as_dirs=
31347     while test ! -d "$as_dir"; do
31348       as_dirs="$as_dir $as_dirs"
31349       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31351          X"$as_dir" : 'X\(//\)[^/]' \| \
31352          X"$as_dir" : 'X\(//\)$' \| \
31353          X"$as_dir" : 'X\(/\)' \| \
31354          .     : '\(.\)' 2>/dev/null ||
31355 echo X"$as_dir" |
31356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31357           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31358           /^X\(\/\/\)$/{ s//\1/; q; }
31359           /^X\(\/\).*/{ s//\1/; q; }
31360           s/.*/./; q'`
31361     done
31362     test ! -n "$as_dirs" || mkdir $as_dirs
31363   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31364 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31365    { (exit 1); exit 1; }; }; }
31366
31367       rm -f $ac_file
31368       mv $tmp/config.h $ac_file
31369     fi
31370   else
31371     cat $tmp/config.h
31372     rm -f $tmp/config.h
31373   fi
31374 done
31375 _ACEOF
31376 cat >>$CONFIG_STATUS <<\_ACEOF
31377
31378 #
31379 # CONFIG_COMMANDS section.
31380 #
31381 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31382   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31383   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31384   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31385 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31386          X"$ac_dest" : 'X\(//\)[^/]' \| \
31387          X"$ac_dest" : 'X\(//\)$' \| \
31388          X"$ac_dest" : 'X\(/\)' \| \
31389          .     : '\(.\)' 2>/dev/null ||
31390 echo X"$ac_dest" |
31391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31392           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31393           /^X\(\/\/\)$/{ s//\1/; q; }
31394           /^X\(\/\).*/{ s//\1/; q; }
31395           s/.*/./; q'`
31396   { if $as_mkdir_p; then
31397     mkdir -p "$ac_dir"
31398   else
31399     as_dir="$ac_dir"
31400     as_dirs=
31401     while test ! -d "$as_dir"; do
31402       as_dirs="$as_dir $as_dirs"
31403       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31404 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31405          X"$as_dir" : 'X\(//\)[^/]' \| \
31406          X"$as_dir" : 'X\(//\)$' \| \
31407          X"$as_dir" : 'X\(/\)' \| \
31408          .     : '\(.\)' 2>/dev/null ||
31409 echo X"$as_dir" |
31410     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31411           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31412           /^X\(\/\/\)$/{ s//\1/; q; }
31413           /^X\(\/\).*/{ s//\1/; q; }
31414           s/.*/./; q'`
31415     done
31416     test ! -n "$as_dirs" || mkdir $as_dirs
31417   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31418 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31419    { (exit 1); exit 1; }; }; }
31420
31421   ac_builddir=.
31422
31423 if test "$ac_dir" != .; then
31424   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31425   # A "../" for each directory in $ac_dir_suffix.
31426   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31427 else
31428   ac_dir_suffix= ac_top_builddir=
31429 fi
31430
31431 case $srcdir in
31432   .)  # No --srcdir option.  We are building in place.
31433     ac_srcdir=.
31434     if test -z "$ac_top_builddir"; then
31435        ac_top_srcdir=.
31436     else
31437        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31438     fi ;;
31439   [\\/]* | ?:[\\/]* )  # Absolute path.
31440     ac_srcdir=$srcdir$ac_dir_suffix;
31441     ac_top_srcdir=$srcdir ;;
31442   *) # Relative path.
31443     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31444     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31445 esac
31446
31447 # Do not use `cd foo && pwd` to compute absolute paths, because
31448 # the directories may not exist.
31449 case `pwd` in
31450 .) ac_abs_builddir="$ac_dir";;
31451 *)
31452   case "$ac_dir" in
31453   .) ac_abs_builddir=`pwd`;;
31454   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31455   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31456   esac;;
31457 esac
31458 case $ac_abs_builddir in
31459 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31460 *)
31461   case ${ac_top_builddir}. in
31462   .) ac_abs_top_builddir=$ac_abs_builddir;;
31463   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31464   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31465   esac;;
31466 esac
31467 case $ac_abs_builddir in
31468 .) ac_abs_srcdir=$ac_srcdir;;
31469 *)
31470   case $ac_srcdir in
31471   .) ac_abs_srcdir=$ac_abs_builddir;;
31472   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31473   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31474   esac;;
31475 esac
31476 case $ac_abs_builddir in
31477 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31478 *)
31479   case $ac_top_srcdir in
31480   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31481   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31482   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31483   esac;;
31484 esac
31485
31486
31487   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31488 echo "$as_me: executing $ac_dest commands" >&6;}
31489   case $ac_dest in
31490     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31491     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31492     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31493     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31494     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31495     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31496     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31497     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31498     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31499     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31500   esac
31501 done
31502 _ACEOF
31503
31504 cat >>$CONFIG_STATUS <<\_ACEOF
31505
31506 { (exit 0); exit 0; }
31507 _ACEOF
31508 chmod +x $CONFIG_STATUS
31509 ac_clean_files=$ac_clean_files_save
31510
31511
31512 # configure is writing to config.log, and then calls config.status.
31513 # config.status does its own redirection, appending to config.log.
31514 # Unfortunately, on DOS this fails, as config.log is still kept open
31515 # by configure, so config.status won't be able to write to it; its
31516 # output is simply discarded.  So we exec the FD to /dev/null,
31517 # effectively closing config.log, so it can be properly (re)opened and
31518 # appended to by config.status.  When coming back to configure, we
31519 # need to make the FD available again.
31520 if test "$no_create" != yes; then
31521   ac_cs_success=:
31522   ac_config_status_args=
31523   test "$silent" = yes &&
31524     ac_config_status_args="$ac_config_status_args --quiet"
31525   exec 5>/dev/null
31526   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31527   exec 5>>config.log
31528   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31529   # would make configure fail if this is the last instruction.
31530   $ac_cs_success || { (exit 1); exit 1; }
31531 fi
31532
31533 #
31534 # CONFIG_SUBDIRS section.
31535 #
31536 if test "$no_recursion" != yes; then
31537
31538   # Remove --cache-file and --srcdir arguments so they do not pile up.
31539   ac_sub_configure_args=
31540   ac_prev=
31541   for ac_arg in $ac_configure_args; do
31542     if test -n "$ac_prev"; then
31543       ac_prev=
31544       continue
31545     fi
31546     case $ac_arg in
31547     -cache-file | --cache-file | --cache-fil | --cache-fi \
31548     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31549       ac_prev=cache_file ;;
31550     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31551     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31552     | --c=*)
31553       ;;
31554     --config-cache | -C)
31555       ;;
31556     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31557       ac_prev=srcdir ;;
31558     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31559       ;;
31560     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31561       ac_prev=prefix ;;
31562     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31563       ;;
31564     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31565     esac
31566   done
31567
31568   # Always prepend --prefix to ensure using the same prefix
31569   # in subdir configurations.
31570   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31571
31572   ac_popdir=`pwd`
31573   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31574
31575     # Do not complain, so a configure script can configure whichever
31576     # parts of a large source tree are present.
31577     test -d $srcdir/$ac_dir || continue
31578
31579     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31580 echo "$as_me: configuring in $ac_dir" >&6;}
31581     { if $as_mkdir_p; then
31582     mkdir -p "$ac_dir"
31583   else
31584     as_dir="$ac_dir"
31585     as_dirs=
31586     while test ! -d "$as_dir"; do
31587       as_dirs="$as_dir $as_dirs"
31588       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31590          X"$as_dir" : 'X\(//\)[^/]' \| \
31591          X"$as_dir" : 'X\(//\)$' \| \
31592          X"$as_dir" : 'X\(/\)' \| \
31593          .     : '\(.\)' 2>/dev/null ||
31594 echo X"$as_dir" |
31595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31596           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31597           /^X\(\/\/\)$/{ s//\1/; q; }
31598           /^X\(\/\).*/{ s//\1/; q; }
31599           s/.*/./; q'`
31600     done
31601     test ! -n "$as_dirs" || mkdir $as_dirs
31602   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31603 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31604    { (exit 1); exit 1; }; }; }
31605
31606     ac_builddir=.
31607
31608 if test "$ac_dir" != .; then
31609   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31610   # A "../" for each directory in $ac_dir_suffix.
31611   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31612 else
31613   ac_dir_suffix= ac_top_builddir=
31614 fi
31615
31616 case $srcdir in
31617   .)  # No --srcdir option.  We are building in place.
31618     ac_srcdir=.
31619     if test -z "$ac_top_builddir"; then
31620        ac_top_srcdir=.
31621     else
31622        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31623     fi ;;
31624   [\\/]* | ?:[\\/]* )  # Absolute path.
31625     ac_srcdir=$srcdir$ac_dir_suffix;
31626     ac_top_srcdir=$srcdir ;;
31627   *) # Relative path.
31628     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31629     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31630 esac
31631
31632 # Do not use `cd foo && pwd` to compute absolute paths, because
31633 # the directories may not exist.
31634 case `pwd` in
31635 .) ac_abs_builddir="$ac_dir";;
31636 *)
31637   case "$ac_dir" in
31638   .) ac_abs_builddir=`pwd`;;
31639   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31640   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31641   esac;;
31642 esac
31643 case $ac_abs_builddir in
31644 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31645 *)
31646   case ${ac_top_builddir}. in
31647   .) ac_abs_top_builddir=$ac_abs_builddir;;
31648   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31649   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31650   esac;;
31651 esac
31652 case $ac_abs_builddir in
31653 .) ac_abs_srcdir=$ac_srcdir;;
31654 *)
31655   case $ac_srcdir in
31656   .) ac_abs_srcdir=$ac_abs_builddir;;
31657   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31658   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31659   esac;;
31660 esac
31661 case $ac_abs_builddir in
31662 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31663 *)
31664   case $ac_top_srcdir in
31665   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31666   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31667   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31668   esac;;
31669 esac
31670
31671
31672     cd $ac_dir
31673
31674     # Check for guested configure; otherwise get Cygnus style configure.
31675     if test -f $ac_srcdir/configure.gnu; then
31676       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31677     elif test -f $ac_srcdir/configure; then
31678       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31679     elif test -f $ac_srcdir/configure.in; then
31680       ac_sub_configure=$ac_configure
31681     else
31682       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31683 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31684       ac_sub_configure=
31685     fi
31686
31687     # The recursion is here.
31688     if test -n "$ac_sub_configure"; then
31689       # Make the cache file name correct relative to the subdirectory.
31690       case $cache_file in
31691       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31692       *) # Relative path.
31693         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31694       esac
31695
31696       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31697 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31698       # The eval makes quoting arguments work.
31699       eval $ac_sub_configure $ac_sub_configure_args \
31700            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31701         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31702 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31703    { (exit 1); exit 1; }; }
31704     fi
31705
31706     cd $ac_popdir
31707   done
31708 fi
31709
31710
31711 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31712  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31713 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31714  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31715 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31716  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31717 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31718  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31719 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31720  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31721 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
31722 fi